@elliemae/ds-wysiwygeditor 2.2.0-alpha.4 → 3.0.0-next.2
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/cjs/DSWYSIWYGEditor.js +72 -83
- package/cjs/components/CustomImageUploader.js +94 -92
- package/cjs/components/CustomToolbar.js +193 -172
- package/cjs/components/DSWYSIWYGEditorImpl.js +185 -147
- package/cjs/components/ImageLibraryModal.js +55 -75
- package/cjs/components/InsertFieldModal.js +142 -109
- package/cjs/components/TippedButton.js +54 -56
- package/cjs/components/TippedSelect.js +39 -50
- package/cjs/components/colors.js +21 -41
- package/cjs/components/customFields.js +47 -66
- package/cjs/constants.js +38 -112
- package/cjs/index.js +21 -39
- package/cjs/quillMatchers/clipboardLinkWithTagMatcher.js +22 -37
- package/cjs/quillOverrides/IndentStyle.js +19 -41
- package/cjs/quillOverrides/LinkFormat.js +39 -57
- package/cjs/quillOverrides/PlainClipboard.js +21 -41
- package/cjs/utils.js +18 -41
- package/esm/DSWYSIWYGEditor.js +58 -50
- package/esm/components/CustomImageUploader.js +81 -60
- package/esm/components/CustomToolbar.js +184 -145
- package/esm/components/DSWYSIWYGEditorImpl.js +169 -113
- package/esm/components/ImageLibraryModal.js +47 -46
- package/esm/components/InsertFieldModal.js +124 -72
- package/esm/components/TippedButton.js +44 -27
- package/esm/components/TippedSelect.js +31 -21
- package/esm/components/colors.js +17 -12
- package/esm/components/customFields.js +40 -38
- package/esm/constants.js +30 -83
- package/esm/index.js +4 -10
- package/esm/quillMatchers/clipboardLinkWithTagMatcher.js +18 -8
- package/esm/quillOverrides/IndentStyle.js +17 -12
- package/esm/quillOverrides/LinkFormat.js +37 -28
- package/esm/quillOverrides/PlainClipboard.js +19 -12
- package/esm/utils.js +14 -12
- package/package.json +9 -9
- package/cjs/DSWYSIWYGEditor.js.map +0 -7
- package/cjs/components/CustomImageUploader.js.map +0 -7
- package/cjs/components/CustomToolbar.js.map +0 -7
- package/cjs/components/DSWYSIWYGEditorImpl.js.map +0 -7
- package/cjs/components/ImageLibraryModal.js.map +0 -7
- package/cjs/components/InsertFieldModal.js.map +0 -7
- package/cjs/components/TippedButton.js.map +0 -7
- package/cjs/components/TippedSelect.js.map +0 -7
- package/cjs/components/colors.js.map +0 -7
- package/cjs/components/customFields.js.map +0 -7
- package/cjs/constants.js.map +0 -7
- package/cjs/index.js.map +0 -7
- package/cjs/quillMatchers/clipboardLinkWithTagMatcher.js.map +0 -7
- package/cjs/quillOverrides/IndentStyle.js.map +0 -7
- package/cjs/quillOverrides/LinkFormat.js.map +0 -7
- package/cjs/quillOverrides/PlainClipboard.js.map +0 -7
- package/cjs/utils.js.map +0 -7
- package/esm/DSWYSIWYGEditor.js.map +0 -7
- package/esm/components/CustomImageUploader.js.map +0 -7
- package/esm/components/CustomToolbar.js.map +0 -7
- package/esm/components/DSWYSIWYGEditorImpl.js.map +0 -7
- package/esm/components/ImageLibraryModal.js.map +0 -7
- package/esm/components/InsertFieldModal.js.map +0 -7
- package/esm/components/TippedButton.js.map +0 -7
- package/esm/components/TippedSelect.js.map +0 -7
- package/esm/components/colors.js.map +0 -7
- package/esm/components/customFields.js.map +0 -7
- package/esm/constants.js.map +0 -7
- package/esm/index.js.map +0 -7
- package/esm/quillMatchers/clipboardLinkWithTagMatcher.js.map +0 -7
- package/esm/quillOverrides/IndentStyle.js.map +0 -7
- package/esm/quillOverrides/LinkFormat.js.map +0 -7
- package/esm/quillOverrides/PlainClipboard.js.map +0 -7
- package/esm/utils.js.map +0 -7
package/cjs/DSWYSIWYGEditor.js
CHANGED
|
@@ -1,93 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}) => {
|
|
49
|
-
const emptyAction = () => {
|
|
50
|
-
};
|
|
51
|
-
const [showHTML, setShowHTML] = (0, import_react.useState)(showRawHTML);
|
|
52
|
-
(0, import_react.useEffect)(() => setShowHTML(showRawHTML), [showRawHTML]);
|
|
53
|
-
return /* @__PURE__ */ import_react.default.createElement(import_DSWYSIWYGEditorImpl.default, {
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
11
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
12
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
13
|
+
var React = require('react');
|
|
14
|
+
var reactDesc = require('react-desc');
|
|
15
|
+
var DSWYSIWYGEditorImpl = require('./components/DSWYSIWYGEditorImpl.js');
|
|
16
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
17
|
+
|
|
18
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
|
+
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
22
|
+
|
|
23
|
+
const _excluded = ["value", "onChange", "getQuillRef", "quillModules", "customToolbar", "toolbarHandlers", "showRawHTML", "height", "hideItems"];
|
|
24
|
+
|
|
25
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26
|
+
|
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28
|
+
|
|
29
|
+
const DSWYSIWYGEditor = _ref => {
|
|
30
|
+
let {
|
|
31
|
+
value = '',
|
|
32
|
+
onChange = () => null,
|
|
33
|
+
getQuillRef = () => null,
|
|
34
|
+
quillModules = {},
|
|
35
|
+
customToolbar,
|
|
36
|
+
toolbarHandlers,
|
|
37
|
+
showRawHTML = false,
|
|
38
|
+
height,
|
|
39
|
+
hideItems
|
|
40
|
+
} = _ref,
|
|
41
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
42
|
+
|
|
43
|
+
const emptyAction = () => {};
|
|
44
|
+
|
|
45
|
+
const [showHTML, setShowHTML] = React.useState(showRawHTML);
|
|
46
|
+
React.useEffect(() => setShowHTML(showRawHTML), [showRawHTML]);
|
|
47
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSWYSIWYGEditorImpl, _objectSpread({
|
|
54
48
|
forceHttpLink: true,
|
|
55
49
|
handleCustomFieldClick: emptyAction,
|
|
56
50
|
handleImageClick: emptyAction,
|
|
57
51
|
quillOverrides: [],
|
|
58
|
-
value,
|
|
59
|
-
onChange,
|
|
60
|
-
getQuillRef,
|
|
61
|
-
quillModules,
|
|
62
|
-
customToolbar,
|
|
63
|
-
toolbarHandlers,
|
|
52
|
+
value: value,
|
|
53
|
+
onChange: onChange,
|
|
54
|
+
getQuillRef: getQuillRef,
|
|
55
|
+
quillModules: quillModules,
|
|
56
|
+
customToolbar: customToolbar,
|
|
57
|
+
toolbarHandlers: toolbarHandlers,
|
|
64
58
|
showRawHTML: showHTML,
|
|
65
59
|
onShowHTML: () => setShowHTML(!showHTML),
|
|
66
|
-
height,
|
|
67
|
-
hideItems
|
|
68
|
-
|
|
69
|
-
});
|
|
60
|
+
height: height,
|
|
61
|
+
hideItems: hideItems
|
|
62
|
+
}, rest));
|
|
70
63
|
};
|
|
64
|
+
|
|
71
65
|
const wysiwygEditorProps = {
|
|
72
|
-
value:
|
|
73
|
-
onChange:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
height: import_react_desc.PropTypes.string.description("heigth of the editors text area"),
|
|
84
|
-
readOnly: import_react_desc.PropTypes.string.description("If true, the editor won't allow changing its contents. Wraps the Quill disable API."),
|
|
85
|
-
hideItems: import_react_desc.PropTypes.object.description("object of defaultItems to be removed from toolbar").defaultValue({}),
|
|
86
|
-
zIndex: import_react_desc.PropTypes.number.description("zIndex to be used (required when used in a modal for correct tooltips displaying)")
|
|
66
|
+
value: reactDesc.PropTypes.string.description('editors value').isRequired,
|
|
67
|
+
onChange: reactDesc.PropTypes.func.description("(content, delta, source, editor) : Called back with the new contents of the editor after change. \n It will be passed the HTML contents of the editor, a delta object expressing the change, the source of the change, and finally a read-only proxy to editor accessors such as getHTML(). \n \u26A0\uFE0F Do not use this delta object as value, as it will cause a loop. \n Use editor.getContents() instead. See Using Deltas for details. \n Read more: https://github.com/zenoamaro/react-quill#props").isRequired,
|
|
68
|
+
getQuillRef: reactDesc.PropTypes.func.description('function to use quill.js ref'),
|
|
69
|
+
quillModules: reactDesc.PropTypes.object.description('object to override quill modules'),
|
|
70
|
+
customToolbar: reactDesc.PropTypes.element.description('custom toolbar'),
|
|
71
|
+
toolbarHandlers: reactDesc.PropTypes.object.description('object with toolbar handlers'),
|
|
72
|
+
showRawHTML: reactDesc.PropTypes.bool.description('whether to display html view or not').defaultValue(false),
|
|
73
|
+
height: reactDesc.PropTypes.string.description('heigth of the editors text area'),
|
|
74
|
+
readOnly: reactDesc.PropTypes.string.description("If true, the editor won't allow changing its contents. Wraps the Quill disable API."),
|
|
75
|
+
hideItems: reactDesc.PropTypes.object.description('object of defaultItems to be removed from toolbar').defaultValue({}),
|
|
76
|
+
zIndex: reactDesc.PropTypes.number.description('zIndex to be used (required when used in a modal for correct tooltips displaying)')
|
|
87
77
|
};
|
|
88
|
-
|
|
89
|
-
const WYSIWYWithSchema = (0, import_react_desc.describe)(DSWYSIWYGEditor);
|
|
78
|
+
const WYSIWYWithSchema = reactDesc.describe(DSWYSIWYGEditor);
|
|
90
79
|
WYSIWYWithSchema.propTypes = wysiwygEditorProps;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
80
|
+
|
|
81
|
+
exports.WYSIWYWithSchema = WYSIWYWithSchema;
|
|
82
|
+
exports["default"] = DSWYSIWYGEditor;
|
|
@@ -1,71 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var CustomImageUploader_exports = {};
|
|
29
|
-
__export(CustomImageUploader_exports, {
|
|
30
|
-
CustomImageUploader: () => CustomImageUploader
|
|
31
|
-
});
|
|
32
|
-
var React = __toESM(require("react"));
|
|
33
|
-
var import_react = __toESM(require("react"));
|
|
34
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
35
|
-
var import_ds_uploader = __toESM(require("@elliemae/ds-uploader"));
|
|
36
|
-
var import_ds_modal = __toESM(require("@elliemae/ds-modal"));
|
|
37
|
-
var import_TippedButton = require("./TippedButton");
|
|
38
|
-
const ALLOWED_TYPES_TEXT = "JPG, JPEG, PNG, GIF, BMP, TIFF";
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
9
|
+
var DSUploader = require('@elliemae/ds-uploader');
|
|
10
|
+
var DSModal = require('@elliemae/ds-modal');
|
|
11
|
+
var TippedButton = require('./TippedButton.js');
|
|
12
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
17
|
+
var DSUploader__default = /*#__PURE__*/_interopDefaultLegacy(DSUploader);
|
|
18
|
+
var DSModal__default = /*#__PURE__*/_interopDefaultLegacy(DSModal);
|
|
19
|
+
|
|
20
|
+
const ALLOWED_TYPES_TEXT = 'JPG, JPEG, PNG, GIF, BMP, TIFF';
|
|
39
21
|
const ALLOWED_TYPES = /image\/(jpeg|jpg|png|gif|bmp|tiff)/;
|
|
40
|
-
const DEFAULT_MAX_SIZE = 1024 * 1024;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const [
|
|
51
|
-
const [
|
|
52
|
-
const
|
|
53
|
-
const
|
|
22
|
+
const DEFAULT_MAX_SIZE = 1024 * 1024; // 1 MB
|
|
23
|
+
|
|
24
|
+
const CustomImageUploader = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
quillRef,
|
|
27
|
+
editorFieldName,
|
|
28
|
+
allowedImageTypes = ALLOWED_TYPES_TEXT,
|
|
29
|
+
uploadAsset = () => null,
|
|
30
|
+
zIndex = 1
|
|
31
|
+
} = _ref;
|
|
32
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
33
|
+
const [error, setError] = React.useState(null);
|
|
34
|
+
const [inProgress, setInProgress] = React.useState(false);
|
|
35
|
+
const [lastSelection, setLastSelection] = React.useState({
|
|
36
|
+
index: 0,
|
|
37
|
+
length: 0
|
|
38
|
+
});
|
|
39
|
+
const elementId = "uploadImage".concat(editorFieldName); // eslint-disable-next-line consistent-return
|
|
40
|
+
|
|
41
|
+
const handleFileChange = async files => {
|
|
54
42
|
if (!inProgress) {
|
|
55
43
|
setError(null);
|
|
56
44
|
const selectedFile = files[0];
|
|
45
|
+
|
|
57
46
|
if (!selectedFile) {
|
|
58
|
-
setError(
|
|
47
|
+
setError('Please select a file.');
|
|
59
48
|
return false;
|
|
60
49
|
}
|
|
50
|
+
|
|
61
51
|
if (!selectedFile.type.match(ALLOWED_TYPES)) {
|
|
62
|
-
setError(
|
|
52
|
+
setError('File must be an image.');
|
|
63
53
|
} else if (selectedFile.size > DEFAULT_MAX_SIZE) {
|
|
64
|
-
setError(
|
|
54
|
+
setError('File is too large.');
|
|
65
55
|
} else {
|
|
66
56
|
const fr = new FileReader();
|
|
57
|
+
|
|
67
58
|
fr.onload = async () => {
|
|
68
59
|
setInProgress(true);
|
|
60
|
+
|
|
69
61
|
try {
|
|
70
62
|
const url = await uploadAsset({
|
|
71
63
|
name: selectedFile.name,
|
|
@@ -75,49 +67,59 @@ const CustomImageUploader = ({
|
|
|
75
67
|
file: fr.result
|
|
76
68
|
});
|
|
77
69
|
setIsOpen(false);
|
|
78
|
-
quillRef
|
|
70
|
+
quillRef === null || quillRef === void 0 ? void 0 : quillRef.getEditor().insertEmbed((lastSelection === null || lastSelection === void 0 ? void 0 : lastSelection.index) || 0, 'image', url);
|
|
79
71
|
} catch (e) {
|
|
80
|
-
setError(
|
|
72
|
+
setError('An error has occurred, try again');
|
|
81
73
|
}
|
|
74
|
+
|
|
82
75
|
setInProgress(false);
|
|
83
76
|
};
|
|
77
|
+
|
|
84
78
|
fr.readAsArrayBuffer(selectedFile);
|
|
85
79
|
}
|
|
86
80
|
}
|
|
87
81
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
82
|
+
|
|
83
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
84
|
+
children: [/*#__PURE__*/_jsx__default["default"](TippedButton.TippedButton, {
|
|
85
|
+
zIndex: zIndex,
|
|
86
|
+
tip: "Insert Image",
|
|
87
|
+
onClick: () => {
|
|
88
|
+
setLastSelection(quillRef === null || quillRef === void 0 ? void 0 : quillRef.getEditor().getSelection());
|
|
89
|
+
setIsOpen(true);
|
|
90
|
+
}
|
|
91
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](dsIcons.Image, {
|
|
92
|
+
color: ['neutral', 500],
|
|
93
|
+
size: "s"
|
|
94
|
+
})), /*#__PURE__*/_jsx__default["default"](DSModal__default["default"], {
|
|
95
|
+
isOpen: isOpen,
|
|
96
|
+
title: "",
|
|
97
|
+
onConfirm: () => {
|
|
98
|
+
setIsOpen(false);
|
|
99
|
+
},
|
|
100
|
+
onClose: () => {
|
|
101
|
+
setIsOpen(false);
|
|
102
|
+
},
|
|
103
|
+
showClose: true,
|
|
104
|
+
version: 2,
|
|
105
|
+
size: "xsmall",
|
|
106
|
+
modalType: DSModal.MODAL_TYPE_V2.DECISION,
|
|
107
|
+
confirmLabel: "Cancel",
|
|
108
|
+
message: ""
|
|
109
|
+
}, void 0, !inProgress && /*#__PURE__*/_jsx__default["default"](DSUploader__default["default"], {
|
|
110
|
+
containerProps: {
|
|
111
|
+
id: elementId
|
|
112
|
+
},
|
|
113
|
+
showAltAction: false,
|
|
114
|
+
acceptedTypesText: allowedImageTypes,
|
|
115
|
+
onDrop: handleFileChange
|
|
116
|
+
}), inProgress && 'Upload in progress...', error && /*#__PURE__*/_jsx__default["default"]("div", {
|
|
117
|
+
style: {
|
|
118
|
+
color: 'red',
|
|
119
|
+
marginTop: '10px'
|
|
120
|
+
}
|
|
121
|
+
}, void 0, error))]
|
|
122
|
+
});
|
|
121
123
|
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
|
|
125
|
+
exports.CustomImageUploader = CustomImageUploader;
|