bump version to 0.24.3 and rebuild
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@
|
|||||||
"react": "^18.3.0",
|
"react": "^18.3.0",
|
||||||
"react-dom": "^18.3.0",
|
"react-dom": "^18.3.0",
|
||||||
"react-intl": "^7.0.0",
|
"react-intl": "^7.0.0",
|
||||||
"tinode-sdk": "^0.24.2",
|
"tinode-sdk": "^0.24.3",
|
||||||
"webm-duration-fix": "^1.0.4"
|
"webm-duration-fix": "^1.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
+3
-2
@@ -11156,6 +11156,7 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
}
|
}
|
||||||
sendFileAttachment(file) {
|
sendFileAttachment(file) {
|
||||||
const maxInbandAttachmentSize = this.props.tinode.getServerParam('maxMessageSize', _config_js__WEBPACK_IMPORTED_MODULE_18__.MAX_INBAND_ATTACHMENT_SIZE) * 0.75 - 1024 | 0;
|
const maxInbandAttachmentSize = this.props.tinode.getServerParam('maxMessageSize', _config_js__WEBPACK_IMPORTED_MODULE_18__.MAX_INBAND_ATTACHMENT_SIZE) * 0.75 - 1024 | 0;
|
||||||
|
const jsonMimeConverter = fileType => fileType == 'application/json' ? 'application/octet-stream' : fileType;
|
||||||
if (file.size > maxInbandAttachmentSize) {
|
if (file.size > maxInbandAttachmentSize) {
|
||||||
const uploader = this.props.tinode.getLargeFileHelper();
|
const uploader = this.props.tinode.getLargeFileHelper();
|
||||||
if (!uploader) {
|
if (!uploader) {
|
||||||
@@ -11164,7 +11165,7 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
}
|
}
|
||||||
const uploadCompletionPromise = uploader.upload(file);
|
const uploadCompletionPromise = uploader.upload(file);
|
||||||
const msg = tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Drafty.attachFile(null, {
|
const msg = tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Drafty.attachFile(null, {
|
||||||
mime: file.type,
|
mime: jsonMimeConverter(file.type),
|
||||||
filename: file.name,
|
filename: file.name,
|
||||||
size: file.size,
|
size: file.size,
|
||||||
urlPromise: uploadCompletionPromise
|
urlPromise: uploadCompletionPromise
|
||||||
@@ -11172,7 +11173,7 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
this.sendMessage(msg, uploadCompletionPromise, uploader);
|
this.sendMessage(msg, uploadCompletionPromise, uploader);
|
||||||
} else {
|
} else {
|
||||||
(0,_lib_blob_helpers_js__WEBPACK_IMPORTED_MODULE_20__.fileToBase64)(file).then(b64 => this.sendMessage(tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Drafty.attachFile(null, {
|
(0,_lib_blob_helpers_js__WEBPACK_IMPORTED_MODULE_20__.fileToBase64)(file).then(b64 => this.sendMessage(tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Drafty.attachFile(null, {
|
||||||
mime: b64.mime,
|
mime: jsonMimeConverter(b64.mime),
|
||||||
data: b64.bits,
|
data: b64.bits,
|
||||||
filename: b64.name,
|
filename: b64.name,
|
||||||
size: file.size
|
size: file.size
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5
-4
@@ -1452,7 +1452,8 @@ class DB {
|
|||||||
const MAX_FORM_ELEMENTS = 8;
|
const MAX_FORM_ELEMENTS = 8;
|
||||||
const MAX_PREVIEW_ATTACHMENTS = 3;
|
const MAX_PREVIEW_ATTACHMENTS = 3;
|
||||||
const MAX_PREVIEW_DATA_SIZE = 64;
|
const MAX_PREVIEW_DATA_SIZE = 64;
|
||||||
const JSON_MIME_TYPE = 'application/json';
|
const JSON_MIME_TYPE = 'application/json+drafty';
|
||||||
|
const JSON_MIME_TYPE_LEGACY = 'application/json';
|
||||||
const DRAFTY_MIME_TYPE = 'text/x-drafty';
|
const DRAFTY_MIME_TYPE = 'text/x-drafty';
|
||||||
const ALLOWED_ENT_FIELDS = ['act', 'height', 'duration', 'incoming', 'mime', 'name', 'premime', 'preref', 'preview', 'ref', 'size', 'state', 'url', 'val', 'width'];
|
const ALLOWED_ENT_FIELDS = ['act', 'height', 'duration', 'incoming', 'mime', 'name', 'premime', 'preref', 'preview', 'ref', 'size', 'state', 'url', 'val', 'width'];
|
||||||
const segmenter = new Intl.Segmenter();
|
const segmenter = new Intl.Segmenter();
|
||||||
@@ -2536,7 +2537,7 @@ Drafty.sanitizeEntities = function (content) {
|
|||||||
};
|
};
|
||||||
Drafty.getDownloadUrl = function (entData) {
|
Drafty.getDownloadUrl = function (entData) {
|
||||||
let url = null;
|
let url = null;
|
||||||
if (entData.mime != JSON_MIME_TYPE && entData.val) {
|
if (entData.mime != JSON_MIME_TYPE && entData.mime != JSON_MIME_TYPE_LEGACY && entData.val) {
|
||||||
url = base64toObjectUrl(entData.val, entData.mime, Drafty.logger);
|
url = base64toObjectUrl(entData.val, entData.mime, Drafty.logger);
|
||||||
} else if (typeof entData.ref == 'string') {
|
} else if (typeof entData.ref == 'string') {
|
||||||
url = entData.ref;
|
url = entData.ref;
|
||||||
@@ -3020,7 +3021,7 @@ function attachmentsToEnd(tree, limit) {
|
|||||||
if (attachments.length == limit) {
|
if (attachments.length == limit) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (c.data['mime'] == JSON_MIME_TYPE) {
|
if (c.data['mime'] == JSON_MIME_TYPE || c.data['mime'] == JSON_MIME_TYPE_LEGACY) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
delete c.att;
|
delete c.att;
|
||||||
@@ -5396,7 +5397,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ PACKAGE_VERSION: () => (/* binding */ PACKAGE_VERSION)
|
/* harmony export */ PACKAGE_VERSION: () => (/* binding */ PACKAGE_VERSION)
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
const PACKAGE_VERSION = "0.24.2";
|
const PACKAGE_VERSION = "0.24.3";
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user