@bigbinary/neeto-editor 1.45.17 → 1.45.19
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 +15 -8
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +8 -5
- package/dist/EditorContent.js.map +1 -1
- package/dist/FormikEditor.js +8 -7
- package/dist/FormikEditor.js.map +1 -1
- package/dist/Menu.js +6 -5
- package/dist/Menu.js.map +1 -1
- package/dist/chunk-BMJOPQ2b.js +19 -0
- package/dist/chunk-BMJOPQ2b.js.map +1 -0
- package/dist/{chunk-DBch3tqq.js → chunk-CXjxEHI4.js} +75 -3
- package/dist/chunk-CXjxEHI4.js.map +1 -0
- package/dist/{chunk-D86RZ044.js → chunk-CxUlY2ns.js} +2 -2
- package/dist/{chunk-D86RZ044.js.map → chunk-CxUlY2ns.js.map} +1 -1
- package/dist/{chunk-dj52vbNl.js → chunk-DLd26xqr.js} +7 -5
- package/dist/{chunk-dj52vbNl.js.map → chunk-DLd26xqr.js.map} +1 -1
- package/dist/{chunk-B8oM63AV.js → chunk-Dt1M1PSn.js} +2 -2
- package/dist/{chunk-B8oM63AV.js.map → chunk-Dt1M1PSn.js.map} +1 -1
- package/dist/{chunk-B4UG02G1.js → chunk-DzSwFO6-.js} +4 -4
- package/dist/{chunk-B4UG02G1.js.map → chunk-DzSwFO6-.js.map} +1 -1
- package/dist/{chunk-BV0txNQ1.js → chunk-Q8kq5V5L.js} +4 -4
- package/dist/{chunk-BV0txNQ1.js.map → chunk-Q8kq5V5L.js.map} +1 -1
- package/dist/{chunk-CDBSVHz6.js → chunk-mYLzFJMK.js} +4 -17
- package/dist/chunk-mYLzFJMK.js.map +1 -0
- package/dist/{chunk-UtuZMtPZ.js → chunk-vS_ygswz.js} +4 -18
- package/dist/chunk-vS_ygswz.js.map +1 -0
- package/dist/cjs/Editor.cjs.js +16 -9
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +12 -9
- package/dist/cjs/EditorContent.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +5 -4
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/Menu.cjs.js +5 -4
- package/dist/cjs/Menu.cjs.js.map +1 -1
- package/dist/cjs/{chunk-DNcqB5sj.cjs.js → chunk-3udi5E4s.cjs.js} +6 -4
- package/dist/cjs/{chunk-DNcqB5sj.cjs.js.map → chunk-3udi5E4s.cjs.js.map} +1 -1
- package/dist/cjs/chunk-Cuak8W9P.cjs.js +48 -0
- package/dist/cjs/chunk-Cuak8W9P.cjs.js.map +1 -0
- package/dist/cjs/{chunk-Juybs_3x.cjs.js → chunk-DK-1ndCW.cjs.js} +4 -39
- package/dist/cjs/chunk-DK-1ndCW.cjs.js.map +1 -0
- package/dist/cjs/{chunk-BIff7Ppc.cjs.js → chunk-DOGA_bpR.cjs.js} +5 -21
- package/dist/cjs/chunk-DOGA_bpR.cjs.js.map +1 -0
- package/dist/cjs/{chunk-Dh0stJ0O.cjs.js → chunk-DoS4ZUHL.cjs.js} +83 -1
- package/dist/cjs/chunk-DoS4ZUHL.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/utils.cjs.js +4 -5
- package/dist/cjs/utils.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/utils.js +5 -6
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-B88REGV6.js +0 -59
- package/dist/chunk-B88REGV6.js.map +0 -1
- package/dist/chunk-CDBSVHz6.js.map +0 -1
- package/dist/chunk-DBch3tqq.js.map +0 -1
- package/dist/chunk-LjMXcuRe.js +0 -6
- package/dist/chunk-LjMXcuRe.js.map +0 -1
- package/dist/chunk-UtuZMtPZ.js.map +0 -1
- package/dist/cjs/chunk-BIff7Ppc.cjs.js.map +0 -1
- package/dist/cjs/chunk-DN1S-KLQ.cjs.js +0 -10
- package/dist/cjs/chunk-DN1S-KLQ.cjs.js.map +0 -1
- package/dist/cjs/chunk-Dh0stJ0O.cjs.js.map +0 -1
- package/dist/cjs/chunk-Juybs_3x.cjs.js.map +0 -1
- package/dist/cjs/chunk-a-cnTJIr.cjs.js +0 -63
- package/dist/cjs/chunk-a-cnTJIr.cjs.js.map +0 -1
package/dist/Attachments.js
CHANGED
|
@@ -10,8 +10,8 @@ import '@bigbinary/neetoui/Button';
|
|
|
10
10
|
import '@bigbinary/neetoui/Toastr';
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import 'react-i18next';
|
|
13
|
-
import './chunk-
|
|
14
|
-
export { A as default } from './chunk-
|
|
13
|
+
import './chunk-Dt1M1PSn.js';
|
|
14
|
+
export { A as default } from './chunk-Q8kq5V5L.js';
|
|
15
15
|
import 'react/jsx-runtime';
|
|
16
16
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
17
17
|
import 'zustand/shallow';
|
|
@@ -20,7 +20,7 @@ import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
|
20
20
|
import 'zustand';
|
|
21
21
|
import '@babel/runtime/helpers/createClass';
|
|
22
22
|
import '@babel/runtime/helpers/classCallCheck';
|
|
23
|
-
import './chunk-
|
|
23
|
+
import './chunk-CxUlY2ns.js';
|
|
24
24
|
import 'i18next';
|
|
25
25
|
import '@bigbinary/neeto-icons/LeftAlign';
|
|
26
26
|
import '@bigbinary/neeto-icons/CenterAlign';
|
package/dist/Editor.js
CHANGED
|
@@ -4,16 +4,19 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { memo, useEffect, useState, useRef, useCallback, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
7
|
-
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-
|
|
7
|
+
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-DLd26xqr.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
|
-
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT,
|
|
9
|
+
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, a as EDITOR_SIZES } from './chunk-CxUlY2ns.js';
|
|
10
10
|
import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
11
11
|
import { useOnClickOutside, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
12
12
|
import Label from '@bigbinary/neetoui/Label';
|
|
13
13
|
import { is, intersection, difference, union, mergeRight, isEmpty as isEmpty$1, isNil, assoc, equals } from 'ramda';
|
|
14
14
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
15
15
|
import { n } from './chunk-DmrvuTKK.js';
|
|
16
|
-
import { P as Plugin, o as PluginKey, b as Slice, F as Fragment$1, T as TextSelection, S as Selection, d as dropPoint, N as NodeSelection,
|
|
16
|
+
import { P as Plugin, o as PluginKey, b as Slice, F as Fragment$1, T as TextSelection, S as Selection, d as dropPoint, N as NodeSelection, q as Mapping$1, M as Mark$1, e as MarkType, R as ReplaceError, s as SelectionRange, v as validateAndFormatUrl, u as getEditorStyles, w as clipboardTextParser, x as transformPastedHTML, y as setInitialPosition } from './chunk-vS_ygswz.js';
|
|
17
|
+
import 'react-dom/server';
|
|
18
|
+
import { l as lowlight, M as MARGIN_HEIGHT, r as removeEmptyTags } from './chunk-CXjxEHI4.js';
|
|
19
|
+
import { L as LINK_VALIDATION_SCHEMA, D as DEFAULT_EDITOR_OPTIONS } from './chunk-BMJOPQ2b.js';
|
|
17
20
|
import * as Y from 'yjs';
|
|
18
21
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$2, XmlElement } from 'yjs';
|
|
19
22
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
@@ -24,12 +27,11 @@ import Input from '@bigbinary/neetoui/Input';
|
|
|
24
27
|
import Button from '@bigbinary/neetoui/Button';
|
|
25
28
|
import { useTranslation } from 'react-i18next';
|
|
26
29
|
import { t } from 'i18next';
|
|
27
|
-
import { l as lowlight } from './chunk-DBch3tqq.js';
|
|
28
30
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
29
31
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
30
32
|
import { flushSync, createPortal } from 'react-dom';
|
|
31
33
|
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
32
|
-
import { h as buildImageOptions, i as DirectUpload } from './chunk-
|
|
34
|
+
import { h as buildImageOptions, i as DirectUpload } from './chunk-Dt1M1PSn.js';
|
|
33
35
|
import tippy, { sticky } from 'tippy.js';
|
|
34
36
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
35
37
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
@@ -44,7 +46,6 @@ import Close from '@bigbinary/neeto-icons/Close';
|
|
|
44
46
|
import Modal from '@bigbinary/neetoui/Modal';
|
|
45
47
|
import Avatar from '@bigbinary/neetoui/Avatar';
|
|
46
48
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
47
|
-
import { M as MARGIN_HEIGHT } from './chunk-LjMXcuRe.js';
|
|
48
49
|
import Tippy from '@tippyjs/react';
|
|
49
50
|
import Paragraph$1 from '@bigbinary/neeto-icons/Paragraph';
|
|
50
51
|
import TextH1 from '@bigbinary/neeto-icons/TextH1';
|
|
@@ -72,7 +73,7 @@ import ToggleHeaderRow from '@bigbinary/neeto-icons/ToggleHeaderRow';
|
|
|
72
73
|
import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
73
74
|
import Form from '@bigbinary/neetoui/formik/Form';
|
|
74
75
|
import Input$1 from '@bigbinary/neetoui/formik/Input';
|
|
75
|
-
import { A as Attachments } from './chunk-
|
|
76
|
+
import { A as Attachments } from './chunk-Q8kq5V5L.js';
|
|
76
77
|
import 'tippy.js/dist/svg-arrow.css';
|
|
77
78
|
import '@bigbinary/neeto-icons/Link';
|
|
78
79
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -19693,6 +19694,12 @@ var Editor = function Editor(_ref, ref) {
|
|
|
19693
19694
|
var editor = _ref2.editor;
|
|
19694
19695
|
return onChange(editor.getHTML());
|
|
19695
19696
|
}, 100);
|
|
19697
|
+
var handleBlur = function handleBlur(props) {
|
|
19698
|
+
var editor = props.editor;
|
|
19699
|
+
var trimmedContent = removeEmptyTags(editor.getHTML());
|
|
19700
|
+
onChange(trimmedContent);
|
|
19701
|
+
onBlur(props);
|
|
19702
|
+
};
|
|
19696
19703
|
var customExtensions = useCustomExtensions({
|
|
19697
19704
|
placeholder: placeholder,
|
|
19698
19705
|
extensions: extensions,
|
|
@@ -19758,7 +19765,7 @@ var Editor = function Editor(_ref, ref) {
|
|
|
19758
19765
|
},
|
|
19759
19766
|
onUpdate: debouncedOnChangeHandler,
|
|
19760
19767
|
onFocus: onFocus,
|
|
19761
|
-
onBlur:
|
|
19768
|
+
onBlur: handleBlur
|
|
19762
19769
|
});
|
|
19763
19770
|
useEditorState({
|
|
19764
19771
|
editor: editor,
|