@elliemae/ds-wysiwygeditor 3.0.0-next.2 → 3.0.0-next.3
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/cjs/DSWYSIWYGEditor.js +128 -0
- package/dist/cjs/DSWYSIWYGEditor.js.map +7 -0
- package/dist/cjs/components/CustomImageUploader.js +123 -0
- package/dist/cjs/components/CustomImageUploader.js.map +7 -0
- package/dist/cjs/components/CustomToolbar.js +261 -0
- package/dist/cjs/components/CustomToolbar.js.map +7 -0
- package/dist/cjs/components/DSWYSIWYGEditorImpl.js +255 -0
- package/dist/cjs/components/DSWYSIWYGEditorImpl.js.map +7 -0
- package/dist/cjs/components/ImageLibraryModal.js +108 -0
- package/dist/cjs/components/ImageLibraryModal.js.map +7 -0
- package/dist/cjs/components/InsertFieldModal.js +212 -0
- package/dist/cjs/components/InsertFieldModal.js.map +7 -0
- package/dist/cjs/components/TippedButton.js +91 -0
- package/dist/cjs/components/TippedButton.js.map +7 -0
- package/dist/cjs/components/TippedSelect.js +57 -0
- package/dist/cjs/components/TippedSelect.js.map +7 -0
- package/dist/cjs/components/colors.js +50 -0
- package/dist/cjs/components/colors.js.map +7 -0
- package/dist/cjs/components/customFields.js +76 -0
- package/dist/cjs/components/customFields.js.map +7 -0
- package/dist/cjs/constants.js +114 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/quillMatchers/clipboardLinkWithTagMatcher.js +48 -0
- package/dist/cjs/quillMatchers/clipboardLinkWithTagMatcher.js.map +7 -0
- package/dist/cjs/quillOverrides/IndentStyle.js +51 -0
- package/dist/cjs/quillOverrides/IndentStyle.js.map +7 -0
- package/dist/cjs/quillOverrides/LinkFormat.js +86 -0
- package/dist/cjs/quillOverrides/LinkFormat.js.map +7 -0
- package/dist/cjs/quillOverrides/PlainClipboard.js +47 -0
- package/dist/cjs/quillOverrides/PlainClipboard.js.map +7 -0
- package/dist/cjs/utils.js +50 -0
- package/dist/cjs/utils.js.map +7 -0
- package/dist/esm/DSWYSIWYGEditor.js +101 -0
- package/dist/esm/DSWYSIWYGEditor.js.map +7 -0
- package/dist/esm/components/CustomImageUploader.js +94 -0
- package/dist/esm/components/CustomImageUploader.js.map +7 -0
- package/dist/esm/components/CustomToolbar.js +232 -0
- package/dist/esm/components/CustomToolbar.js.map +7 -0
- package/dist/esm/components/DSWYSIWYGEditorImpl.js +228 -0
- package/dist/esm/components/DSWYSIWYGEditorImpl.js.map +7 -0
- package/dist/esm/components/ImageLibraryModal.js +81 -0
- package/dist/esm/components/ImageLibraryModal.js.map +7 -0
- package/dist/esm/components/InsertFieldModal.js +185 -0
- package/dist/esm/components/InsertFieldModal.js.map +7 -0
- package/dist/esm/components/TippedButton.js +64 -0
- package/dist/esm/components/TippedButton.js.map +7 -0
- package/dist/esm/components/TippedSelect.js +28 -0
- package/dist/esm/components/TippedSelect.js.map +7 -0
- package/dist/esm/components/colors.js +21 -0
- package/dist/esm/components/colors.js.map +7 -0
- package/dist/esm/components/customFields.js +47 -0
- package/dist/esm/components/customFields.js.map +7 -0
- package/dist/esm/constants.js +85 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/quillMatchers/clipboardLinkWithTagMatcher.js +19 -0
- package/dist/esm/quillMatchers/clipboardLinkWithTagMatcher.js.map +7 -0
- package/dist/esm/quillOverrides/IndentStyle.js +22 -0
- package/dist/esm/quillOverrides/IndentStyle.js.map +7 -0
- package/dist/esm/quillOverrides/LinkFormat.js +57 -0
- package/dist/esm/quillOverrides/LinkFormat.js.map +7 -0
- package/dist/esm/quillOverrides/PlainClipboard.js +18 -0
- package/dist/esm/quillOverrides/PlainClipboard.js.map +7 -0
- package/dist/esm/utils.js +21 -0
- package/dist/esm/utils.js.map +7 -0
- package/package.json +64 -55
- package/cjs/DSWYSIWYGEditor.js +0 -82
- package/cjs/components/CustomImageUploader.js +0 -125
- package/cjs/components/CustomToolbar.js +0 -282
- package/cjs/components/DSWYSIWYGEditorImpl.js +0 -256
- package/cjs/components/ImageLibraryModal.js +0 -72
- package/cjs/components/InsertFieldModal.js +0 -218
- package/cjs/components/TippedButton.js +0 -55
- package/cjs/components/TippedSelect.js +0 -45
- package/cjs/components/colors.js +0 -30
- package/cjs/components/customFields.js +0 -57
- package/cjs/constants.js +0 -40
- package/cjs/index.js +0 -21
- package/cjs/quillMatchers/clipboardLinkWithTagMatcher.js +0 -33
- package/cjs/quillOverrides/IndentStyle.js +0 -29
- package/cjs/quillOverrides/LinkFormat.js +0 -68
- package/cjs/quillOverrides/PlainClipboard.js +0 -27
- package/cjs/utils.js +0 -27
- package/esm/DSWYSIWYGEditor.js +0 -72
- package/esm/components/CustomImageUploader.js +0 -115
- package/esm/components/CustomToolbar.js +0 -271
- package/esm/components/DSWYSIWYGEditorImpl.js +0 -245
- package/esm/components/ImageLibraryModal.js +0 -64
- package/esm/components/InsertFieldModal.js +0 -208
- package/esm/components/TippedButton.js +0 -45
- package/esm/components/TippedSelect.js +0 -37
- package/esm/components/colors.js +0 -26
- package/esm/components/customFields.js +0 -49
- package/esm/constants.js +0 -32
- package/esm/index.js +0 -4
- package/esm/quillMatchers/clipboardLinkWithTagMatcher.js +0 -29
- package/esm/quillOverrides/IndentStyle.js +0 -27
- package/esm/quillOverrides/LinkFormat.js +0 -66
- package/esm/quillOverrides/PlainClipboard.js +0 -25
- package/esm/utils.js +0 -23
- package/types/DSWYSIWYGEditor.d.ts +0 -86
- package/types/components/CustomImageUploader.d.ts +0 -8
- package/types/components/CustomToolbar.d.ts +0 -21
- package/types/components/DSWYSIWYGEditorImpl.d.ts +0 -15
- package/types/components/ImageLibraryModal.d.ts +0 -31
- package/types/components/InsertFieldModal.d.ts +0 -41
- package/types/components/TippedButton.d.ts +0 -12
- package/types/components/TippedSelect.d.ts +0 -13
- package/types/components/colors.d.ts +0 -1
- package/types/components/customFields.d.ts +0 -36
- package/types/constants.d.ts +0 -26
- package/types/index.d.ts +0 -4
- package/types/quillMatchers/clipboardLinkWithTagMatcher.d.ts +0 -2
- package/types/quillOverrides/IndentStyle.d.ts +0 -10
- package/types/quillOverrides/LinkFormat.d.ts +0 -12
- package/types/quillOverrides/PlainClipboard.d.ts +0 -8
- package/types/utils.d.ts +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
|
+
var __objRest = (source, exclude) => {
|
|
23
|
+
var target = {};
|
|
24
|
+
for (var prop in source)
|
|
25
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
if (source != null && __getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
39
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(module2))
|
|
41
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
42
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
};
|
|
46
|
+
var __toESM = (module2, isNodeMode) => {
|
|
47
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
48
|
+
};
|
|
49
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
50
|
+
return (module2, temp) => {
|
|
51
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
52
|
+
};
|
|
53
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
54
|
+
var DSWYSIWYGEditor_exports = {};
|
|
55
|
+
__export(DSWYSIWYGEditor_exports, {
|
|
56
|
+
WYSIWYWithSchema: () => WYSIWYWithSchema,
|
|
57
|
+
default: () => DSWYSIWYGEditor_default
|
|
58
|
+
});
|
|
59
|
+
var React = __toESM(require("react"));
|
|
60
|
+
var import_react = __toESM(require("react"));
|
|
61
|
+
var import_react_desc = require("react-desc");
|
|
62
|
+
var import_DSWYSIWYGEditorImpl = __toESM(require("./components/DSWYSIWYGEditorImpl"));
|
|
63
|
+
const DSWYSIWYGEditor = (_a) => {
|
|
64
|
+
var _b = _a, {
|
|
65
|
+
value = "",
|
|
66
|
+
onChange = () => null,
|
|
67
|
+
getQuillRef = () => null,
|
|
68
|
+
quillModules = {},
|
|
69
|
+
customToolbar,
|
|
70
|
+
toolbarHandlers,
|
|
71
|
+
showRawHTML = false,
|
|
72
|
+
height,
|
|
73
|
+
hideItems
|
|
74
|
+
} = _b, rest = __objRest(_b, [
|
|
75
|
+
"value",
|
|
76
|
+
"onChange",
|
|
77
|
+
"getQuillRef",
|
|
78
|
+
"quillModules",
|
|
79
|
+
"customToolbar",
|
|
80
|
+
"toolbarHandlers",
|
|
81
|
+
"showRawHTML",
|
|
82
|
+
"height",
|
|
83
|
+
"hideItems"
|
|
84
|
+
]);
|
|
85
|
+
const emptyAction = () => {
|
|
86
|
+
};
|
|
87
|
+
const [showHTML, setShowHTML] = (0, import_react.useState)(showRawHTML);
|
|
88
|
+
(0, import_react.useEffect)(() => setShowHTML(showRawHTML), [showRawHTML]);
|
|
89
|
+
return /* @__PURE__ */ import_react.default.createElement(import_DSWYSIWYGEditorImpl.default, __spreadValues({
|
|
90
|
+
forceHttpLink: true,
|
|
91
|
+
handleCustomFieldClick: emptyAction,
|
|
92
|
+
handleImageClick: emptyAction,
|
|
93
|
+
quillOverrides: [],
|
|
94
|
+
value,
|
|
95
|
+
onChange,
|
|
96
|
+
getQuillRef,
|
|
97
|
+
quillModules,
|
|
98
|
+
customToolbar,
|
|
99
|
+
toolbarHandlers,
|
|
100
|
+
showRawHTML: showHTML,
|
|
101
|
+
onShowHTML: () => setShowHTML(!showHTML),
|
|
102
|
+
height,
|
|
103
|
+
hideItems
|
|
104
|
+
}, rest));
|
|
105
|
+
};
|
|
106
|
+
const wysiwygEditorProps = {
|
|
107
|
+
value: import_react_desc.PropTypes.string.description("editors value").isRequired,
|
|
108
|
+
onChange: import_react_desc.PropTypes.func.description(`(content, delta, source, editor) : Called back with the new contents of the editor after change.
|
|
109
|
+
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().
|
|
110
|
+
\u26A0\uFE0F Do not use this delta object as value, as it will cause a loop.
|
|
111
|
+
Use editor.getContents() instead. See Using Deltas for details.
|
|
112
|
+
Read more: https://github.com/zenoamaro/react-quill#props`).isRequired,
|
|
113
|
+
getQuillRef: import_react_desc.PropTypes.func.description("function to use quill.js ref"),
|
|
114
|
+
quillModules: import_react_desc.PropTypes.object.description("object to override quill modules"),
|
|
115
|
+
customToolbar: import_react_desc.PropTypes.element.description("custom toolbar"),
|
|
116
|
+
toolbarHandlers: import_react_desc.PropTypes.object.description("object with toolbar handlers"),
|
|
117
|
+
showRawHTML: import_react_desc.PropTypes.bool.description("whether to display html view or not").defaultValue(false),
|
|
118
|
+
height: import_react_desc.PropTypes.string.description("heigth of the editors text area"),
|
|
119
|
+
readOnly: import_react_desc.PropTypes.string.description("If true, the editor won't allow changing its contents. Wraps the Quill disable API."),
|
|
120
|
+
hideItems: import_react_desc.PropTypes.object.description("object of defaultItems to be removed from toolbar").defaultValue({}),
|
|
121
|
+
zIndex: import_react_desc.PropTypes.number.description("zIndex to be used (required when used in a modal for correct tooltips displaying)")
|
|
122
|
+
};
|
|
123
|
+
DSWYSIWYGEditor.propTypes = wysiwygEditorProps;
|
|
124
|
+
const WYSIWYWithSchema = (0, import_react_desc.describe)(DSWYSIWYGEditor);
|
|
125
|
+
WYSIWYWithSchema.propTypes = wysiwygEditorProps;
|
|
126
|
+
var DSWYSIWYGEditor_default = DSWYSIWYGEditor;
|
|
127
|
+
module.exports = __toCommonJS(DSWYSIWYGEditor_exports);
|
|
128
|
+
//# sourceMappingURL=DSWYSIWYGEditor.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSWYSIWYGEditor.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React, { useState, useEffect } from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport DSWYSIWYGEditorImpl from './components/DSWYSIWYGEditorImpl';\n\nconst DSWYSIWYGEditor = ({\n value = '',\n onChange = () => null,\n getQuillRef = () => null,\n quillModules = {},\n customToolbar,\n toolbarHandlers,\n showRawHTML = false,\n height,\n hideItems,\n ...rest\n}) => {\n const emptyAction = () => {};\n const [showHTML, setShowHTML] = useState(showRawHTML);\n\n useEffect(() => setShowHTML(showRawHTML), [showRawHTML]);\n\n return (\n <DSWYSIWYGEditorImpl\n forceHttpLink\n handleCustomFieldClick={emptyAction}\n handleImageClick={emptyAction}\n quillOverrides={[]}\n value={value}\n onChange={onChange}\n getQuillRef={getQuillRef}\n quillModules={quillModules}\n customToolbar={customToolbar}\n toolbarHandlers={toolbarHandlers}\n showRawHTML={showHTML}\n onShowHTML={() => setShowHTML(!showHTML)}\n height={height}\n hideItems={hideItems}\n {...rest}\n />\n );\n};\n\nconst wysiwygEditorProps = {\n value: PropTypes.string.description('editors value').isRequired,\n onChange: PropTypes.func.description(\n `(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`,\n ).isRequired,\n getQuillRef: PropTypes.func.description('function to use quill.js ref'),\n quillModules: PropTypes.object.description('object to override quill modules'),\n customToolbar: PropTypes.element.description('custom toolbar'),\n toolbarHandlers: PropTypes.object.description('object with toolbar handlers'),\n showRawHTML: PropTypes.bool.description('whether to display html view or not').defaultValue(false),\n height: PropTypes.string.description('heigth of the editors text area'),\n readOnly: PropTypes.string.description(\n \"If true, the editor won't allow changing its contents. Wraps the Quill disable API.\",\n ),\n hideItems: PropTypes.object.description('object of defaultItems to be removed from toolbar').defaultValue({}),\n zIndex: PropTypes.number.description(\n 'zIndex to be used (required when used in a modal for correct tooltips displaying)',\n ),\n};\n\nDSWYSIWYGEditor.propTypes = wysiwygEditorProps;\n\nconst WYSIWYWithSchema = describe(DSWYSIWYGEditor);\nWYSIWYWithSchema.propTypes = wysiwygEditorProps;\n\nexport { WYSIWYWithSchema };\nexport default DSWYSIWYGEditor;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA2C;AAC3C,wBAAoC;AACpC,iCAAgC;AAEhC,MAAM,kBAAkB,CAAC,OAWnB;AAXmB,eACvB;AAAA,YAAQ;AAAA,IACR,WAAW,MAAM;AAAA,IACjB,cAAc,MAAM;AAAA,IACpB,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA;AAAA,MATuB,IAUpB,iBAVoB,IAUpB;AAAA,IATH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,cAAc,MAAM;AAAA;AAC1B,QAAM,CAAC,UAAU,eAAe,2BAAS;AAEzC,8BAAU,MAAM,YAAY,cAAc,CAAC;AAE3C,SACE,mDAAC,oCAAD;AAAA,IACE,eAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb,YAAY,MAAM,YAAY,CAAC;AAAA,IAC/B;AAAA,IACA;AAAA,KACI;AAAA;AAKV,MAAM,qBAAqB;AAAA,EACzB,OAAO,4BAAU,OAAO,YAAY,iBAAiB;AAAA,EACrD,UAAU,4BAAU,KAAK,YACvB;AAAA;AAAA;AAAA;AAAA,gEAKA;AAAA,EACF,aAAa,4BAAU,KAAK,YAAY;AAAA,EACxC,cAAc,4BAAU,OAAO,YAAY;AAAA,EAC3C,eAAe,4BAAU,QAAQ,YAAY;AAAA,EAC7C,iBAAiB,4BAAU,OAAO,YAAY;AAAA,EAC9C,aAAa,4BAAU,KAAK,YAAY,uCAAuC,aAAa;AAAA,EAC5F,QAAQ,4BAAU,OAAO,YAAY;AAAA,EACrC,UAAU,4BAAU,OAAO,YACzB;AAAA,EAEF,WAAW,4BAAU,OAAO,YAAY,qDAAqD,aAAa;AAAA,EAC1G,QAAQ,4BAAU,OAAO,YACvB;AAAA;AAIJ,gBAAgB,YAAY;AAE5B,MAAM,mBAAmB,gCAAS;AAClC,iBAAiB,YAAY;AAG7B,IAAO,0BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
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";
|
|
39
|
+
const ALLOWED_TYPES = /image\/(jpeg|jpg|png|gif|bmp|tiff)/;
|
|
40
|
+
const DEFAULT_MAX_SIZE = 1024 * 1024;
|
|
41
|
+
const CustomImageUploader = ({
|
|
42
|
+
quillRef,
|
|
43
|
+
editorFieldName,
|
|
44
|
+
allowedImageTypes = ALLOWED_TYPES_TEXT,
|
|
45
|
+
uploadAsset = () => null,
|
|
46
|
+
zIndex = 1
|
|
47
|
+
}) => {
|
|
48
|
+
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
|
49
|
+
const [error, setError] = (0, import_react.useState)(null);
|
|
50
|
+
const [inProgress, setInProgress] = (0, import_react.useState)(false);
|
|
51
|
+
const [lastSelection, setLastSelection] = (0, import_react.useState)({ index: 0, length: 0 });
|
|
52
|
+
const elementId = `uploadImage${editorFieldName}`;
|
|
53
|
+
const handleFileChange = async (files) => {
|
|
54
|
+
if (!inProgress) {
|
|
55
|
+
setError(null);
|
|
56
|
+
const selectedFile = files[0];
|
|
57
|
+
if (!selectedFile) {
|
|
58
|
+
setError("Please select a file.");
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
if (!selectedFile.type.match(ALLOWED_TYPES)) {
|
|
62
|
+
setError("File must be an image.");
|
|
63
|
+
} else if (selectedFile.size > DEFAULT_MAX_SIZE) {
|
|
64
|
+
setError("File is too large.");
|
|
65
|
+
} else {
|
|
66
|
+
const fr = new FileReader();
|
|
67
|
+
fr.onload = async () => {
|
|
68
|
+
setInProgress(true);
|
|
69
|
+
try {
|
|
70
|
+
const url = await uploadAsset({
|
|
71
|
+
name: selectedFile.name,
|
|
72
|
+
type: selectedFile.type,
|
|
73
|
+
description: selectedFile.name,
|
|
74
|
+
isSystemAsset: false,
|
|
75
|
+
file: fr.result
|
|
76
|
+
});
|
|
77
|
+
setIsOpen(false);
|
|
78
|
+
quillRef?.getEditor().insertEmbed(lastSelection?.index || 0, "image", url);
|
|
79
|
+
} catch (e) {
|
|
80
|
+
setError("An error has occurred, try again");
|
|
81
|
+
}
|
|
82
|
+
setInProgress(false);
|
|
83
|
+
};
|
|
84
|
+
fr.readAsArrayBuffer(selectedFile);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
89
|
+
zIndex,
|
|
90
|
+
tip: "Insert Image",
|
|
91
|
+
onClick: () => {
|
|
92
|
+
setLastSelection(quillRef?.getEditor().getSelection());
|
|
93
|
+
setIsOpen(true);
|
|
94
|
+
}
|
|
95
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_ds_icons.Image, {
|
|
96
|
+
color: ["neutral", 500],
|
|
97
|
+
size: "s"
|
|
98
|
+
})), /* @__PURE__ */ import_react.default.createElement(import_ds_modal.default, {
|
|
99
|
+
isOpen,
|
|
100
|
+
title: "",
|
|
101
|
+
onConfirm: () => {
|
|
102
|
+
setIsOpen(false);
|
|
103
|
+
},
|
|
104
|
+
onClose: () => {
|
|
105
|
+
setIsOpen(false);
|
|
106
|
+
},
|
|
107
|
+
showClose: true,
|
|
108
|
+
version: 2,
|
|
109
|
+
size: "xsmall",
|
|
110
|
+
modalType: import_ds_modal.MODAL_TYPE_V2.DECISION,
|
|
111
|
+
confirmLabel: "Cancel",
|
|
112
|
+
message: ""
|
|
113
|
+
}, !inProgress && /* @__PURE__ */ import_react.default.createElement(import_ds_uploader.default, {
|
|
114
|
+
containerProps: { id: elementId },
|
|
115
|
+
showAltAction: false,
|
|
116
|
+
acceptedTypesText: allowedImageTypes,
|
|
117
|
+
onDrop: handleFileChange
|
|
118
|
+
}), inProgress && "Upload in progress...", error && /* @__PURE__ */ import_react.default.createElement("div", {
|
|
119
|
+
style: { color: "red", marginTop: "10px" }
|
|
120
|
+
}, error)));
|
|
121
|
+
};
|
|
122
|
+
module.exports = __toCommonJS(CustomImageUploader_exports);
|
|
123
|
+
//# sourceMappingURL=CustomImageUploader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/CustomImageUploader.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable react/prop-types */\nimport React, { useState } from 'react';\nimport { Image } from '@elliemae/ds-icons';\nimport DSUploader from '@elliemae/ds-uploader';\nimport DSModal, { MODAL_TYPE_V2 } from '@elliemae/ds-modal';\nimport { TippedButton } from './TippedButton';\n\nconst ALLOWED_TYPES_TEXT = 'JPG, JPEG, PNG, GIF, BMP, TIFF';\nconst ALLOWED_TYPES = /image\\/(jpeg|jpg|png|gif|bmp|tiff)/;\nconst DEFAULT_MAX_SIZE = 1024 * 1024; // 1 MB\n\nexport const CustomImageUploader = ({\n quillRef,\n editorFieldName,\n allowedImageTypes = ALLOWED_TYPES_TEXT,\n uploadAsset = () => null,\n zIndex = 1,\n}) => {\n const [isOpen, setIsOpen] = useState(false);\n const [error, setError] = useState(null);\n const [inProgress, setInProgress] = useState(false);\n const [lastSelection, setLastSelection] = useState({ index: 0, length: 0 });\n\n const elementId = `uploadImage${editorFieldName}`;\n\n // eslint-disable-next-line consistent-return\n const handleFileChange = async (files) => {\n if (!inProgress) {\n setError(null);\n const selectedFile = files[0];\n if (!selectedFile) {\n setError('Please select a file.');\n return false;\n }\n if (!selectedFile.type.match(ALLOWED_TYPES)) {\n setError('File must be an image.');\n } else if (selectedFile.size > DEFAULT_MAX_SIZE) {\n setError('File is too large.');\n } else {\n const fr = new FileReader();\n fr.onload = async () => {\n setInProgress(true);\n try {\n const url = await uploadAsset({\n name: selectedFile.name,\n type: selectedFile.type,\n description: selectedFile.name,\n isSystemAsset: false,\n file: fr.result,\n });\n setIsOpen(false);\n quillRef?.getEditor().insertEmbed(lastSelection?.index || 0, 'image', url);\n } catch (e) {\n setError('An error has occurred, try again');\n }\n setInProgress(false);\n };\n fr.readAsArrayBuffer(selectedFile);\n }\n }\n };\n return (\n <>\n <TippedButton\n zIndex={zIndex}\n tip=\"Insert Image\"\n onClick={() => {\n setLastSelection(quillRef?.getEditor().getSelection());\n setIsOpen(true);\n }}\n >\n <Image color={['neutral', 500]} size=\"s\" />\n </TippedButton>\n <DSModal\n isOpen={isOpen}\n title=\"\"\n onConfirm={() => {\n setIsOpen(false);\n }}\n onClose={() => {\n setIsOpen(false);\n }}\n showClose\n version={2}\n size=\"xsmall\"\n modalType={MODAL_TYPE_V2.DECISION}\n confirmLabel=\"Cancel\"\n message=\"\"\n >\n {!inProgress && (\n <DSUploader\n containerProps={{ id: elementId }}\n showAltAction={false}\n acceptedTypesText={allowedImageTypes}\n onDrop={handleFileChange}\n />\n )}\n {inProgress && 'Upload in progress...'}\n {error && <div style={{ color: 'red', marginTop: '10px' }}>{error}</div>}\n </DSModal>\n </>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,mBAAgC;AAChC,sBAAsB;AACtB,yBAAuB;AACvB,sBAAuC;AACvC,0BAA6B;AAE7B,MAAM,qBAAqB;AAC3B,MAAM,gBAAgB;AACtB,MAAM,mBAAmB,OAAO;AAEzB,MAAM,sBAAsB,CAAC;AAAA,EAClC;AAAA,EACA;AAAA,EACA,oBAAoB;AAAA,EACpB,cAAc,MAAM;AAAA,EACpB,SAAS;AAAA,MACL;AACJ,QAAM,CAAC,QAAQ,aAAa,2BAAS;AACrC,QAAM,CAAC,OAAO,YAAY,2BAAS;AACnC,QAAM,CAAC,YAAY,iBAAiB,2BAAS;AAC7C,QAAM,CAAC,eAAe,oBAAoB,2BAAS,EAAE,OAAO,GAAG,QAAQ;AAEvE,QAAM,YAAY,cAAc;AAGhC,QAAM,mBAAmB,OAAO,UAAU;AACxC,QAAI,CAAC,YAAY;AACf,eAAS;AACT,YAAM,eAAe,MAAM;AAC3B,UAAI,CAAC,cAAc;AACjB,iBAAS;AACT,eAAO;AAAA;AAET,UAAI,CAAC,aAAa,KAAK,MAAM,gBAAgB;AAC3C,iBAAS;AAAA,iBACA,aAAa,OAAO,kBAAkB;AAC/C,iBAAS;AAAA,aACJ;AACL,cAAM,KAAK,IAAI;AACf,WAAG,SAAS,YAAY;AACtB,wBAAc;AACd,cAAI;AACF,kBAAM,MAAM,MAAM,YAAY;AAAA,cAC5B,MAAM,aAAa;AAAA,cACnB,MAAM,aAAa;AAAA,cACnB,aAAa,aAAa;AAAA,cAC1B,eAAe;AAAA,cACf,MAAM,GAAG;AAAA;AAEX,sBAAU;AACV,sBAAU,YAAY,YAAY,eAAe,SAAS,GAAG,SAAS;AAAA,mBAC/D,GAAP;AACA,qBAAS;AAAA;AAEX,wBAAc;AAAA;AAEhB,WAAG,kBAAkB;AAAA;AAAA;AAAA;AAI3B,SACE,wFACE,mDAAC,kCAAD;AAAA,IACE;AAAA,IACA,KAAI;AAAA,IACJ,SAAS,MAAM;AACb,uBAAiB,UAAU,YAAY;AACvC,gBAAU;AAAA;AAAA,KAGZ,mDAAC,uBAAD;AAAA,IAAO,OAAO,CAAC,WAAW;AAAA,IAAM,MAAK;AAAA,OAEvC,mDAAC,yBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,WAAW,MAAM;AACf,gBAAU;AAAA;AAAA,IAEZ,SAAS,MAAM;AACb,gBAAU;AAAA;AAAA,IAEZ,WAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAK;AAAA,IACL,WAAW,8BAAc;AAAA,IACzB,cAAa;AAAA,IACb,SAAQ;AAAA,KAEP,CAAC,cACA,mDAAC,4BAAD;AAAA,IACE,gBAAgB,EAAE,IAAI;AAAA,IACtB,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,QAAQ;AAAA,MAGX,cAAc,yBACd,SAAS,mDAAC,OAAD;AAAA,IAAK,OAAO,EAAE,OAAO,OAAO,WAAW;AAAA,KAAW;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
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 CustomToolbar_exports = {};
|
|
29
|
+
__export(CustomToolbar_exports, {
|
|
30
|
+
CustomDropdown: () => CustomDropdown,
|
|
31
|
+
CustomToolbar: () => CustomToolbar
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_ds_button = __toESM(require("@elliemae/ds-button"));
|
|
36
|
+
var import_ds_icons = require("@elliemae/ds-icons");
|
|
37
|
+
var import_ds_dropdownmenu = __toESM(require("@elliemae/ds-dropdownmenu"));
|
|
38
|
+
var import_constants = require("../constants");
|
|
39
|
+
var import_TippedButton = require("./TippedButton");
|
|
40
|
+
var import_TippedSelect = require("./TippedSelect");
|
|
41
|
+
const optionsToValues = (options) => options.map((opt) => opt.toLowerCase().replace(" ", "-"));
|
|
42
|
+
const CustomFields = () => /* @__PURE__ */ import_react.default.createElement("span", null, "\u1438\u1433");
|
|
43
|
+
const Color = ({ color }) => /* @__PURE__ */ import_react.default.createElement("option", {
|
|
44
|
+
value: color
|
|
45
|
+
});
|
|
46
|
+
const Colors = ({ className, tip, zIndex }) => /* @__PURE__ */ import_react.default.createElement(import_TippedSelect.TippedSelect, {
|
|
47
|
+
className,
|
|
48
|
+
tip,
|
|
49
|
+
zIndex
|
|
50
|
+
}, import_constants.colors.map((color) => /* @__PURE__ */ import_react.default.createElement(Color, {
|
|
51
|
+
key: color,
|
|
52
|
+
color
|
|
53
|
+
})));
|
|
54
|
+
const CustomDropdown = ({
|
|
55
|
+
options,
|
|
56
|
+
label,
|
|
57
|
+
onSelectMenuItem = () => null,
|
|
58
|
+
onClickOutsideMenu = () => null,
|
|
59
|
+
onClose = () => null,
|
|
60
|
+
closeMenuOnItemSelection,
|
|
61
|
+
isOpen,
|
|
62
|
+
minWidth,
|
|
63
|
+
maxWidth,
|
|
64
|
+
zIndex = 10
|
|
65
|
+
}) => /* @__PURE__ */ import_react.default.createElement(import_ds_dropdownmenu.default, {
|
|
66
|
+
onClickOutsideMenu,
|
|
67
|
+
options,
|
|
68
|
+
onSelectMenuItem,
|
|
69
|
+
onClose,
|
|
70
|
+
closeMenuOnItemSelection,
|
|
71
|
+
isOpen,
|
|
72
|
+
minWidth,
|
|
73
|
+
maxWidth,
|
|
74
|
+
zIndex,
|
|
75
|
+
preventOverflow: "scrollParent",
|
|
76
|
+
triggerComponent: /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, {
|
|
77
|
+
labelText: label,
|
|
78
|
+
buttonType: "text",
|
|
79
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_ds_icons.ArrowheadDown, null)
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
const Divider = () => /* @__PURE__ */ import_react.default.createElement("div", {
|
|
83
|
+
style: {
|
|
84
|
+
height: "21px",
|
|
85
|
+
width: "1px",
|
|
86
|
+
margin: "0 10px",
|
|
87
|
+
padding: "0",
|
|
88
|
+
borderLeft: "1px solid #bbb",
|
|
89
|
+
display: "inline-block"
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
const CustomToolbar = ({
|
|
93
|
+
customFields,
|
|
94
|
+
customItems = [],
|
|
95
|
+
hideItems = {},
|
|
96
|
+
onShowHTML = () => {
|
|
97
|
+
},
|
|
98
|
+
id = "toolbar",
|
|
99
|
+
userProps
|
|
100
|
+
}) => {
|
|
101
|
+
const {
|
|
102
|
+
HEADER,
|
|
103
|
+
FONT,
|
|
104
|
+
FONT_SIZE,
|
|
105
|
+
BOLD,
|
|
106
|
+
ITALIC,
|
|
107
|
+
UNDERLINE,
|
|
108
|
+
STRIKE,
|
|
109
|
+
SUB,
|
|
110
|
+
SUPER,
|
|
111
|
+
ORDERED_LIST,
|
|
112
|
+
BULLET_LIST,
|
|
113
|
+
INDENT_MINUS_ONE,
|
|
114
|
+
INDENT_PLUS_ONE,
|
|
115
|
+
ALIGN,
|
|
116
|
+
FONT_COLOR,
|
|
117
|
+
FONT_BACKGROUND_COLOR,
|
|
118
|
+
HYPERLINK,
|
|
119
|
+
IMAGE,
|
|
120
|
+
CLEAR_FORMAT,
|
|
121
|
+
SHOW_HTML
|
|
122
|
+
} = hideItems;
|
|
123
|
+
const [showHTML, setShowHTML] = (0, import_react.useState)(false);
|
|
124
|
+
const handleShowHTML = (e) => {
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
setShowHTML(!showHTML);
|
|
127
|
+
onShowHTML();
|
|
128
|
+
};
|
|
129
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
130
|
+
id,
|
|
131
|
+
className: "ds-ql-custom-toolbar"
|
|
132
|
+
}, (!HEADER || !FONT || !FONT_SIZE) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
133
|
+
className: "ql-formats"
|
|
134
|
+
}, !HEADER && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_TippedSelect.TippedSelect, {
|
|
135
|
+
className: "ql-header",
|
|
136
|
+
tip: "Header",
|
|
137
|
+
values: ["", "1", "2", "3", "4", "5", "6"],
|
|
138
|
+
zIndex: userProps?.zIndex || 1
|
|
139
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null)), !FONT && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_TippedSelect.TippedSelect, {
|
|
140
|
+
className: "ql-font",
|
|
141
|
+
defaultValue: "sans-serif",
|
|
142
|
+
options: import_constants.fonts,
|
|
143
|
+
tip: "Font",
|
|
144
|
+
values: optionsToValues(import_constants.fonts),
|
|
145
|
+
zIndex: userProps?.zIndex || 1
|
|
146
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null)), !FONT_SIZE && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_TippedSelect.TippedSelect, {
|
|
147
|
+
className: "ql-size",
|
|
148
|
+
options: import_constants.sizes,
|
|
149
|
+
tip: "Font Size",
|
|
150
|
+
values: optionsToValues(import_constants.sizesReal),
|
|
151
|
+
zIndex: userProps?.zIndex || 1
|
|
152
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null))), (!BOLD || !ITALIC || !UNDERLINE || !STRIKE) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
153
|
+
className: "ql-formats"
|
|
154
|
+
}, !BOLD && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
155
|
+
zIndex: userProps?.zIndex || 1,
|
|
156
|
+
className: "ql-bold",
|
|
157
|
+
tip: "Bold"
|
|
158
|
+
}), !ITALIC && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
159
|
+
zIndex: userProps?.zIndex || 1,
|
|
160
|
+
className: "ql-italic",
|
|
161
|
+
tip: "Italic"
|
|
162
|
+
}), !UNDERLINE && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
163
|
+
zIndex: userProps?.zIndex || 1,
|
|
164
|
+
className: "ql-underline",
|
|
165
|
+
tip: "Underline"
|
|
166
|
+
}), !STRIKE && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
167
|
+
zIndex: userProps?.zIndex || 1,
|
|
168
|
+
className: "ql-strike",
|
|
169
|
+
tip: "Strike"
|
|
170
|
+
})), (!SUB || !SUPER) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
171
|
+
className: "ql-formats"
|
|
172
|
+
}, !SUB && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
173
|
+
zIndex: userProps?.zIndex || 1,
|
|
174
|
+
className: "ql-script",
|
|
175
|
+
tip: "Sub",
|
|
176
|
+
value: "sub"
|
|
177
|
+
}), !SUPER && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
178
|
+
zIndex: userProps?.zIndex || 1,
|
|
179
|
+
className: "ql-script",
|
|
180
|
+
tip: "Super",
|
|
181
|
+
value: "super"
|
|
182
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null)), (!ORDERED_LIST || !BULLET_LIST) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
183
|
+
className: "ql-formats"
|
|
184
|
+
}, !ORDERED_LIST && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
185
|
+
zIndex: userProps?.zIndex || 1,
|
|
186
|
+
className: "ql-list",
|
|
187
|
+
tip: "Ordered List",
|
|
188
|
+
value: "ordered"
|
|
189
|
+
}), !BULLET_LIST && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
190
|
+
zIndex: userProps?.zIndex || 1,
|
|
191
|
+
className: "ql-list",
|
|
192
|
+
tip: "Bullet List",
|
|
193
|
+
value: "bullet"
|
|
194
|
+
})), (!INDENT_MINUS_ONE || !INDENT_PLUS_ONE) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
195
|
+
className: "ql-formats"
|
|
196
|
+
}, !INDENT_MINUS_ONE && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
197
|
+
zIndex: userProps?.zIndex || 1,
|
|
198
|
+
className: "ql-indent",
|
|
199
|
+
tip: "Indent -1",
|
|
200
|
+
value: "-1"
|
|
201
|
+
}), !INDENT_PLUS_ONE && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
202
|
+
zIndex: userProps?.zIndex || 1,
|
|
203
|
+
className: "ql-indent",
|
|
204
|
+
tip: "Indent +1",
|
|
205
|
+
value: "+1"
|
|
206
|
+
})), !ALIGN && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
207
|
+
className: "ql-formats"
|
|
208
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_TippedSelect.TippedSelect, {
|
|
209
|
+
zIndex: userProps?.zIndex || 1,
|
|
210
|
+
className: "ql-align",
|
|
211
|
+
tip: "Align"
|
|
212
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null)), (!FONT_COLOR || !FONT_BACKGROUND_COLOR) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
213
|
+
className: "ql-formats"
|
|
214
|
+
}, !FONT_COLOR && /* @__PURE__ */ import_react.default.createElement(Colors, {
|
|
215
|
+
zIndex: userProps?.zIndex || 1,
|
|
216
|
+
className: "ql-color",
|
|
217
|
+
tip: "Font Color"
|
|
218
|
+
}), !FONT_BACKGROUND_COLOR && /* @__PURE__ */ import_react.default.createElement(Colors, {
|
|
219
|
+
zIndex: userProps?.zIndex || 1,
|
|
220
|
+
className: "ql-background",
|
|
221
|
+
tip: "Font Background Color"
|
|
222
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null)), (!HYPERLINK || !IMAGE) && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
223
|
+
className: "ql-formats"
|
|
224
|
+
}, !HYPERLINK && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
225
|
+
zIndex: userProps?.zIndex || 1,
|
|
226
|
+
className: "ql-link",
|
|
227
|
+
tip: "Hyperlink: Select Text First"
|
|
228
|
+
}), !IMAGE && /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
229
|
+
zIndex: userProps?.zIndex || 1,
|
|
230
|
+
className: "ql-image",
|
|
231
|
+
tip: "Insert Image"
|
|
232
|
+
}), /* @__PURE__ */ import_react.default.createElement(Divider, null)), !CLEAR_FORMAT && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
233
|
+
className: "ql-formats"
|
|
234
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
235
|
+
zIndex: userProps?.zIndex || 1,
|
|
236
|
+
className: "ql-clean",
|
|
237
|
+
tip: "Clear Format (Select Text)"
|
|
238
|
+
})), !SHOW_HTML && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
239
|
+
className: "ql-formats"
|
|
240
|
+
}, /* @__PURE__ */ import_react.default.createElement(Divider, null), /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
241
|
+
zIndex: userProps?.zIndex || 1,
|
|
242
|
+
style: {
|
|
243
|
+
width: "fit-content",
|
|
244
|
+
color: "#1e79c2",
|
|
245
|
+
fontWeight: "500"
|
|
246
|
+
},
|
|
247
|
+
onClick: handleShowHTML,
|
|
248
|
+
tip: showHTML ? "SHOW TEXT" : "SHOW HTML",
|
|
249
|
+
className: "ql-customFields-html"
|
|
250
|
+
}, showHTML ? "SHOW TEXT" : "SHOW HTML")), customFields && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
251
|
+
className: "ql-formats"
|
|
252
|
+
}, /* @__PURE__ */ import_react.default.createElement(Divider, null), /* @__PURE__ */ import_react.default.createElement(import_TippedButton.TippedButton, {
|
|
253
|
+
zIndex: userProps?.zIndex || 1,
|
|
254
|
+
className: "ql-customFields",
|
|
255
|
+
tip: "Insert Custom Field"
|
|
256
|
+
}, /* @__PURE__ */ import_react.default.createElement(CustomFields, null))), customItems && /* @__PURE__ */ import_react.default.createElement("span", {
|
|
257
|
+
style: { display: "inline-flex" }
|
|
258
|
+
}, customItems.map((Item) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(Divider, null), /* @__PURE__ */ import_react.default.createElement(Item, null)))));
|
|
259
|
+
};
|
|
260
|
+
module.exports = __toCommonJS(CustomToolbar_exports);
|
|
261
|
+
//# sourceMappingURL=CustomToolbar.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/CustomToolbar.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable complexity */\n/* eslint-disable jsx-a11y/control-has-associated-label */\n/* eslint-disable react/prop-types */\n/* eslint-disable max-lines */\n/* eslint-disable react/button-has-type */\nimport React, { useState } from 'react';\nimport DSButton from '@elliemae/ds-button';\nimport { ArrowheadDown } from '@elliemae/ds-icons';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { colors, fonts, sizes, sizesReal } from '../constants';\nimport { TippedButton } from './TippedButton';\nimport { TippedSelect } from './TippedSelect';\n\n// Functions -----------------------------------------\nconst optionsToValues = (options) => options.map((opt) => opt.toLowerCase().replace(' ', '-'));\n\n// Stateless Components -----------------------------------------\n\nconst CustomFields = () => <span>\u1438\u1433</span>; // eslint-disable-line react/jsx-one-expression-per-line\nconst Color = ({ color }) => <option value={color} />;\nconst Colors = ({ className, tip, zIndex }) => (\n <TippedSelect className={className} tip={tip} zIndex={zIndex}>\n {colors.map((color) => (\n <Color key={color} color={color} />\n ))}\n </TippedSelect>\n);\n\nexport const CustomDropdown = ({\n options,\n label,\n onSelectMenuItem = () => null,\n onClickOutsideMenu = () => null,\n onClose = () => null,\n closeMenuOnItemSelection,\n isOpen,\n minWidth,\n maxWidth,\n zIndex = 10,\n}) => (\n <DSDropdownMenu\n onClickOutsideMenu={onClickOutsideMenu}\n options={options}\n onSelectMenuItem={onSelectMenuItem}\n onClose={onClose}\n closeMenuOnItemSelection={closeMenuOnItemSelection}\n isOpen={isOpen}\n minWidth={minWidth}\n maxWidth={maxWidth}\n zIndex={zIndex}\n preventOverflow=\"scrollParent\"\n triggerComponent={<DSButton labelText={label} buttonType=\"text\" icon={<ArrowheadDown />} />}\n />\n);\n\nconst Divider = () => (\n <div\n style={{\n height: '21px',\n width: '1px',\n margin: '0 10px',\n padding: '0',\n borderLeft: '1px solid #bbb',\n display: 'inline-block',\n }}\n ></div>\n);\n\nexport const CustomToolbar = ({\n customFields,\n customItems = [],\n hideItems = {},\n onShowHTML = () => {},\n id = 'toolbar',\n userProps,\n}) => {\n const {\n HEADER,\n FONT,\n FONT_SIZE,\n BOLD,\n ITALIC,\n UNDERLINE,\n STRIKE,\n SUB,\n SUPER,\n ORDERED_LIST,\n BULLET_LIST,\n INDENT_MINUS_ONE,\n INDENT_PLUS_ONE,\n ALIGN,\n FONT_COLOR,\n FONT_BACKGROUND_COLOR,\n HYPERLINK,\n IMAGE,\n CLEAR_FORMAT,\n SHOW_HTML,\n } = hideItems;\n const [showHTML, setShowHTML] = useState(false);\n\n const handleShowHTML = (e) => {\n e.preventDefault();\n setShowHTML(!showHTML);\n onShowHTML();\n };\n\n return (\n <div id={id} className=\"ds-ql-custom-toolbar\">\n {(!HEADER || !FONT || !FONT_SIZE) && (\n <span className=\"ql-formats\">\n {!HEADER && (\n <>\n <TippedSelect\n className=\"ql-header\"\n tip=\"Header\"\n values={['', '1', '2', '3', '4', '5', '6']}\n zIndex={userProps?.zIndex || 1}\n />\n <Divider />\n </>\n )}\n {!FONT && (\n <>\n <TippedSelect\n className=\"ql-font\"\n defaultValue=\"sans-serif\"\n options={fonts}\n tip=\"Font\"\n values={optionsToValues(fonts)}\n zIndex={userProps?.zIndex || 1}\n />\n <Divider />\n </>\n )}\n {!FONT_SIZE && (\n <>\n <TippedSelect\n className=\"ql-size\"\n options={sizes}\n tip=\"Font Size\"\n values={optionsToValues(sizesReal)}\n zIndex={userProps?.zIndex || 1}\n />\n <Divider />\n </>\n )}\n </span>\n )}\n {(!BOLD || !ITALIC || !UNDERLINE || !STRIKE) && (\n <span className=\"ql-formats\">\n {!BOLD && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-bold\" tip=\"Bold\" />}\n {!ITALIC && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-italic\" tip=\"Italic\" />}\n {!UNDERLINE && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-underline\" tip=\"Underline\" />}\n {!STRIKE && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-strike\" tip=\"Strike\" />}\n </span>\n )}\n {(!SUB || !SUPER) && (\n <span className=\"ql-formats\">\n {!SUB && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-script\" tip=\"Sub\" value=\"sub\" />}\n {!SUPER && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-script\" tip=\"Super\" value=\"super\" />}\n <Divider />\n </span>\n )}\n {(!ORDERED_LIST || !BULLET_LIST) && (\n <span className=\"ql-formats\">\n {!ORDERED_LIST && (\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-list\" tip=\"Ordered List\" value=\"ordered\" />\n )}\n {!BULLET_LIST && (\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-list\" tip=\"Bullet List\" value=\"bullet\" />\n )}\n </span>\n )}\n {(!INDENT_MINUS_ONE || !INDENT_PLUS_ONE) && (\n <span className=\"ql-formats\">\n {!INDENT_MINUS_ONE && (\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-indent\" tip=\"Indent -1\" value=\"-1\" />\n )}\n {!INDENT_PLUS_ONE && (\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-indent\" tip=\"Indent +1\" value=\"+1\" />\n )}\n </span>\n )}\n {!ALIGN && (\n <span className=\"ql-formats\">\n <TippedSelect zIndex={userProps?.zIndex || 1} className=\"ql-align\" tip=\"Align\" />\n <Divider />\n </span>\n )}\n {(!FONT_COLOR || !FONT_BACKGROUND_COLOR) && (\n <span className=\"ql-formats\">\n {!FONT_COLOR && <Colors zIndex={userProps?.zIndex || 1} className=\"ql-color\" tip=\"Font Color\" />}\n {!FONT_BACKGROUND_COLOR && (\n <Colors zIndex={userProps?.zIndex || 1} className=\"ql-background\" tip=\"Font Background Color\" />\n )}\n <Divider />\n </span>\n )}\n {(!HYPERLINK || !IMAGE) && (\n <span className=\"ql-formats\">\n {!HYPERLINK && (\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-link\" tip=\"Hyperlink: Select Text First\" />\n )}\n {!IMAGE && <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-image\" tip=\"Insert Image\" />}\n <Divider />\n </span>\n )}\n {!CLEAR_FORMAT && (\n <span className=\"ql-formats\">\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-clean\" tip=\"Clear Format (Select Text)\" />\n </span>\n )}\n {!SHOW_HTML && (\n <span className=\"ql-formats\">\n <Divider />\n <TippedButton\n zIndex={userProps?.zIndex || 1}\n style={{\n width: 'fit-content',\n color: '#1e79c2',\n fontWeight: '500',\n }}\n onClick={handleShowHTML}\n tip={showHTML ? 'SHOW TEXT' : 'SHOW HTML'}\n className=\"ql-customFields-html\"\n >\n {showHTML ? 'SHOW TEXT' : 'SHOW HTML'}\n </TippedButton>\n </span>\n )}\n {customFields && (\n <span className=\"ql-formats\">\n <Divider />\n <TippedButton zIndex={userProps?.zIndex || 1} className=\"ql-customFields\" tip=\"Insert Custom Field\">\n <CustomFields />\n </TippedButton>\n </span>\n )}\n {customItems && (\n <span style={{ display: 'inline-flex' }}>\n {customItems.map((Item) => (\n <>\n <Divider />\n <Item />\n </>\n ))}\n </span>\n )}\n </div>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADMvB,mBAAgC;AAChC,uBAAqB;AACrB,sBAA8B;AAC9B,6BAA2B;AAC3B,uBAAgD;AAChD,0BAA6B;AAC7B,0BAA6B;AAG7B,MAAM,kBAAkB,CAAC,YAAY,QAAQ,IAAI,CAAC,QAAQ,IAAI,cAAc,QAAQ,KAAK;AAIzF,MAAM,eAAe,MAAM,mDAAC,QAAD,MAAM;AACjC,MAAM,QAAQ,CAAC,EAAE,YAAY,mDAAC,UAAD;AAAA,EAAQ,OAAO;AAAA;AAC5C,MAAM,SAAS,CAAC,EAAE,WAAW,KAAK,aAChC,mDAAC,kCAAD;AAAA,EAAc;AAAA,EAAsB;AAAA,EAAU;AAAA,GAC3C,wBAAO,IAAI,CAAC,UACX,mDAAC,OAAD;AAAA,EAAO,KAAK;AAAA,EAAO;AAAA;AAKlB,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA,mBAAmB,MAAM;AAAA,EACzB,qBAAqB,MAAM;AAAA,EAC3B,UAAU,MAAM;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,MAET,mDAAC,gCAAD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAgB;AAAA,EAChB,kBAAkB,mDAAC,0BAAD;AAAA,IAAU,WAAW;AAAA,IAAO,YAAW;AAAA,IAAO,MAAM,mDAAC,+BA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