@bigbinary/neeto-editor 1.47.25 → 1.47.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Attachments.js +3 -3
- package/dist/Editor.js +3 -3
- package/dist/FormikEditor.js +7 -5
- package/dist/FormikEditor.js.map +1 -1
- package/dist/Menu.js +2 -2
- package/dist/{chunk-D9dR29gG.js → chunk--mv_teiM.js} +3 -3
- package/dist/{chunk-D9dR29gG.js.map → chunk--mv_teiM.js.map} +1 -1
- package/dist/{chunk-BtI0VHdj.js → chunk-DahwBJq7.js} +3 -3
- package/dist/{chunk-BtI0VHdj.js.map → chunk-DahwBJq7.js.map} +1 -1
- package/dist/{chunk-DDNaaarN.js → chunk-DxBq2TC7.js} +15 -9
- package/dist/chunk-DxBq2TC7.js.map +1 -0
- package/dist/{chunk-BHPJPlJe.js → chunk-ZiL1jOJN.js} +2 -2
- package/dist/{chunk-BHPJPlJe.js.map → chunk-ZiL1jOJN.js.map} +1 -1
- package/dist/cjs/Attachments.cjs.js +3 -3
- package/dist/cjs/Editor.cjs.js +3 -3
- package/dist/cjs/FormikEditor.cjs.js +6 -4
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-37Za28Yj.cjs.js → chunk-BG9Uh_HP.cjs.js} +3 -3
- package/dist/cjs/{chunk-37Za28Yj.cjs.js.map → chunk-BG9Uh_HP.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-Cql1S6zk.cjs.js → chunk-DMTvF2cL.cjs.js} +2 -2
- package/dist/cjs/{chunk-Cql1S6zk.cjs.js.map → chunk-DMTvF2cL.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-DyGNjGYy.cjs.js → chunk-fuZaKMZ_.cjs.js} +3 -3
- package/dist/cjs/{chunk-DyGNjGYy.cjs.js.map → chunk-fuZaKMZ_.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-CKK9apm6.cjs.js → chunk-vh6bKJf9.cjs.js} +15 -9
- package/dist/cjs/chunk-vh6bKJf9.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/translations/de.json +9 -4
- package/src/translations/en.json +2 -1
- package/src/translations/es.json +9 -4
- package/src/translations/fr.json +9 -4
- package/dist/chunk-DDNaaarN.js.map +0 -1
- package/dist/cjs/chunk-CKK9apm6.cjs.js.map +0 -1
|
@@ -15,8 +15,8 @@ import { withImmutableActions } from '@bigbinary/neeto-commons-frontend/react-ut
|
|
|
15
15
|
import { create as create$1 } from 'zustand';
|
|
16
16
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
17
17
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
18
|
+
import i18n, { t as t$1 } from 'i18next';
|
|
18
19
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './chunk-E-ZsRS8r.js';
|
|
19
|
-
import { t as t$1 } from 'i18next';
|
|
20
20
|
import LeftAlign from '@bigbinary/neeto-icons/LeftAlign';
|
|
21
21
|
import CenterAlign from '@bigbinary/neeto-icons/CenterAlign';
|
|
22
22
|
import RightAlign from '@bigbinary/neeto-icons/RightAlign';
|
|
@@ -7180,23 +7180,29 @@ var DirectUpload = /*#__PURE__*/_createClass(function DirectUpload(_ref) {
|
|
|
7180
7180
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7181
7181
|
while (1) switch (_context.prev = _context.next) {
|
|
7182
7182
|
case 0:
|
|
7183
|
-
|
|
7184
|
-
|
|
7183
|
+
if (!(!_this.file.name || !_this.file.size)) {
|
|
7184
|
+
_context.next = 2;
|
|
7185
|
+
break;
|
|
7186
|
+
}
|
|
7187
|
+
throw new Error(i18n.t("neetoEditor.error.corruptFile"));
|
|
7185
7188
|
case 2:
|
|
7189
|
+
_context.next = 4;
|
|
7190
|
+
return _this.generateUrl();
|
|
7191
|
+
case 4:
|
|
7186
7192
|
response = _context.sent;
|
|
7187
7193
|
_ref3 = response.direct_upload || response.data.direct_upload, url = _ref3.url, headers = _ref3.headers;
|
|
7188
7194
|
_ref4 = response.data || response, id = _ref4.id, signed_id = _ref4.signed_id;
|
|
7189
|
-
_context.next = 7;
|
|
7190
|
-
return _this.uploadToCloud(url, headers);
|
|
7191
|
-
case 7:
|
|
7192
7195
|
_context.next = 9;
|
|
7196
|
+
return _this.uploadToCloud(url, headers);
|
|
7197
|
+
case 9:
|
|
7198
|
+
_context.next = 11;
|
|
7193
7199
|
return directUploadsApi.attach({
|
|
7194
7200
|
id: id,
|
|
7195
7201
|
signed_id: signed_id
|
|
7196
7202
|
});
|
|
7197
|
-
case
|
|
7203
|
+
case 11:
|
|
7198
7204
|
return _context.abrupt("return", response);
|
|
7199
|
-
case
|
|
7205
|
+
case 12:
|
|
7200
7206
|
case "end":
|
|
7201
7207
|
return _context.stop();
|
|
7202
7208
|
}
|
|
@@ -8547,4 +8553,4 @@ var File = function File(_ref) {
|
|
|
8547
8553
|
};
|
|
8548
8554
|
|
|
8549
8555
|
export { ALLOWED_IMAGE_TYPES as A, DEFAULT_IMAGE_UPLOAD_CONFIG as D, File as F, PropTypes as P, VIDEO_EMBED_FORM_VALIDATION_SCHEMA as V, FileIcon as a, useDropFiles as b, ALLOWED_VIDEO_TYPES as c, directUploadsApi as d, convertToFileSize as e, DEFAULT_VIDEO_UPLOAD_CONFIG as f, getTabs as g, buildImageOptions as h, DirectUpload as i, commonjsRequire as j, propTypesExports as p, useFileUploader as u, validateUrl as v };
|
|
8550
|
-
//# sourceMappingURL=chunk-
|
|
8556
|
+
//# sourceMappingURL=chunk-DxBq2TC7.js.map
|