@bigbinary/neeto-editor 1.47.131 → 1.47.132
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/{chunk-LieRrhol.js → chunk-DPXl1H2A.js} +13 -2
- package/dist/chunk-DPXl1H2A.js.map +1 -0
- package/dist/cjs/{chunk-CLrHidij.cjs.js → chunk-D86oGQis.cjs.js} +13 -1
- package/dist/cjs/chunk-D86oGQis.cjs.js.map +1 -0
- package/dist/cjs/v2/Editor.cjs.js +6 -2
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/FormikEditor.cjs.js +1 -1
- package/dist/cjs/v2/Menu.cjs.js +1 -1
- package/dist/cjs/v2/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -19
- package/dist/v2/Editor.js +6 -2
- package/dist/v2/Editor.js.map +1 -1
- package/dist/v2/FormikEditor.js +1 -1
- package/dist/v2/Menu.js +1 -1
- package/dist/v2/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-LieRrhol.js.map +0 -1
- package/dist/cjs/chunk-CLrHidij.cjs.js.map +0 -1
package/dist/v2/Editor.js
CHANGED
|
@@ -16,7 +16,7 @@ import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc,
|
|
|
16
16
|
import ReactDOM from 'react-dom/server';
|
|
17
17
|
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from '../chunk-Qg4uQqj3.js';
|
|
18
18
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
19
|
-
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, g as getSuggestionAppendTo, v as validateUrl, b as buildLevelsFromOptions, c as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, d as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, e as getEditorStyles, M as Menu$3, f as MenuDynamicVariables, h as MediaUploader, j as LinkAddPopOver, k as transformPastedHTML, l as clipboardTextParser, s as setInitialPosition } from '../chunk-
|
|
19
|
+
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, g as getSuggestionAppendTo, v as validateUrl, b as buildLevelsFromOptions, c as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, d as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, e as getEditorStyles, M as Menu$3, f as MenuDynamicVariables, h as MediaUploader, j as LinkAddPopOver, k as transformPastedHTML, l as handlePaste, m as clipboardTextParser, s as setInitialPosition } from '../chunk-DPXl1H2A.js';
|
|
20
20
|
import Megaphone from '@bigbinary/neeto-icons/misc/Megaphone';
|
|
21
21
|
import { m as PluginKey, P as Plugin, T as TextSelection } from '../chunk-C5svTfyQ.js';
|
|
22
22
|
import { ChevronDown, Highlighter, X, Ratio, Ellipsis, AlignLeft, AlignCenter, AlignRight, RectangleHorizontal, RectangleVertical, Square, SquareDashed, Trash2, BookOpen, Pencil } from 'lucide-react';
|
|
@@ -5300,8 +5300,11 @@ var Editor = function Editor(_ref, ref) {
|
|
|
5300
5300
|
};
|
|
5301
5301
|
var debouncedOnChangeHandler = useFuncDebounce(function (_ref2) {
|
|
5302
5302
|
var editor = _ref2.editor;
|
|
5303
|
-
|
|
5303
|
+
if (!editor.isDestroyed) onChange(editor.getHTML());
|
|
5304
5304
|
}, 100);
|
|
5305
|
+
useEffect(function () {
|
|
5306
|
+
return debouncedOnChangeHandler.cancel;
|
|
5307
|
+
}, []);
|
|
5305
5308
|
var handleBlur = function handleBlur(props) {
|
|
5306
5309
|
var editor = props.editor;
|
|
5307
5310
|
if (!disableTrimOnBlur) {
|
|
@@ -5368,6 +5371,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
5368
5371
|
"data-testid": "neeto-editor-content"
|
|
5369
5372
|
}, ariaAttributes), contentAttributes),
|
|
5370
5373
|
clipboardTextParser: clipboardTextParser,
|
|
5374
|
+
handlePaste: handlePaste,
|
|
5371
5375
|
transformPastedHTML: transformPastedHTML
|
|
5372
5376
|
},
|
|
5373
5377
|
parseOptions: {
|