@bigbinary/neeto-editor 1.47.119 → 1.47.121
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/Editor.js +60 -45
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +3 -3
- package/dist/FormikEditor.js +8 -9
- package/dist/FormikEditor.js.map +1 -1
- package/dist/Menu.js +5 -7
- package/dist/Menu.js.map +1 -1
- package/dist/chunk-Bmhz4YEy.js +16777 -0
- package/dist/chunk-Bmhz4YEy.js.map +1 -0
- package/dist/{chunk-W5-WB6Fb.js → chunk-BwyS6si8.js} +3 -3
- package/dist/{chunk-W5-WB6Fb.js.map → chunk-BwyS6si8.js.map} +1 -1
- package/dist/{chunk-CBN5naeP.js → chunk-C5svTfyQ.js} +311 -146
- package/dist/chunk-C5svTfyQ.js.map +1 -0
- package/dist/{chunk-BmY70WOK.js → chunk-CHpkesFt.js} +10 -11
- package/dist/chunk-CHpkesFt.js.map +1 -0
- package/dist/{chunk-Ck5Gyhaq.js → chunk-COgPAsPy.js} +11 -12
- package/dist/chunk-COgPAsPy.js.map +1 -0
- package/dist/chunk-ChNzXvhJ.js +20357 -0
- package/dist/chunk-ChNzXvhJ.js.map +1 -0
- package/dist/{chunk-bG6hOjuU.js → chunk-CnsiyshR.js} +2 -2
- package/dist/{chunk-bG6hOjuU.js.map → chunk-CnsiyshR.js.map} +1 -1
- package/dist/{chunk-BR5ZkH7J.js → chunk-Qg4uQqj3.js} +2 -2
- package/dist/{chunk-BR5ZkH7J.js.map → chunk-Qg4uQqj3.js.map} +1 -1
- package/dist/{chunk-D_B4kuIc.js → chunk-aCTMceVU.js} +3 -3
- package/dist/{chunk-D_B4kuIc.js.map → chunk-aCTMceVU.js.map} +1 -1
- package/dist/{chunk-9TNlsObP.js → chunk-fDmcpgqx.js} +2 -2
- package/dist/{chunk-9TNlsObP.js.map → chunk-fDmcpgqx.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +109 -94
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +3 -3
- package/dist/cjs/FormikEditor.cjs.js +8 -9
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/Menu.cjs.js +5 -7
- package/dist/cjs/Menu.cjs.js.map +1 -1
- package/dist/cjs/{chunk-4ILtbNxB.cjs.js → chunk-BGvf6C3z.cjs.js} +2 -2
- package/dist/cjs/{chunk-4ILtbNxB.cjs.js.map → chunk-BGvf6C3z.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-De3nCFAF.cjs.js → chunk-BKvkHB8E.cjs.js} +2 -1
- package/dist/cjs/{chunk-De3nCFAF.cjs.js.map → chunk-BKvkHB8E.cjs.js.map} +1 -1
- package/dist/cjs/chunk-BXZTd0jZ.cjs.js +16844 -0
- package/dist/cjs/chunk-BXZTd0jZ.cjs.js.map +1 -0
- package/dist/cjs/{chunk-TrGAGew5.cjs.js → chunk-CesnwG-V.cjs.js} +3 -3
- package/dist/cjs/{chunk-TrGAGew5.cjs.js.map → chunk-CesnwG-V.cjs.js.map} +1 -1
- package/dist/cjs/chunk-DQoBksKy.cjs.js +20441 -0
- package/dist/cjs/chunk-DQoBksKy.cjs.js.map +1 -0
- package/dist/cjs/{chunk-DE_yHAbe.cjs.js → chunk-DS2JcxXk.cjs.js} +3 -3
- package/dist/cjs/{chunk-DE_yHAbe.cjs.js.map → chunk-DS2JcxXk.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-JCA39oKB.cjs.js → chunk-DXsX8co9.cjs.js} +2 -2
- package/dist/cjs/{chunk-JCA39oKB.cjs.js.map → chunk-DXsX8co9.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-Cqq9Q2Ty.cjs.js → chunk-DoYRXWHQ.cjs.js} +11 -12
- package/dist/cjs/chunk-DoYRXWHQ.cjs.js.map +1 -0
- package/dist/cjs/{chunk-DNpQGCaK.cjs.js → chunk-DpqV12Vi.cjs.js} +10 -11
- package/dist/cjs/chunk-DpqV12Vi.cjs.js.map +1 -0
- package/dist/cjs/{chunk-eyfbjfPH.cjs.js → chunk-NqciyXN3.cjs.js} +312 -147
- package/dist/cjs/chunk-NqciyXN3.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -10
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/utils.cjs.js +5 -5
- package/dist/cjs/v2/Editor.cjs.js +95 -80
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/EditorContent.cjs.js +3 -3
- package/dist/cjs/v2/FormikEditor.cjs.js +8 -9
- package/dist/cjs/v2/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/v2/Menu.cjs.js +5 -7
- package/dist/cjs/v2/Menu.cjs.js.map +1 -1
- package/dist/cjs/v2/index.cjs.js +11 -12
- package/dist/cjs/v2/index.cjs.js.map +1 -1
- package/dist/cjs/v2/utils.cjs.js +5 -5
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/utils.js +5 -5
- package/dist/v2/Editor.js +61 -46
- package/dist/v2/Editor.js.map +1 -1
- package/dist/v2/EditorContent.js +3 -3
- package/dist/v2/FormikEditor.js +8 -9
- package/dist/v2/FormikEditor.js.map +1 -1
- package/dist/v2/Menu.js +5 -7
- package/dist/v2/Menu.js.map +1 -1
- package/dist/v2/index.js +11 -12
- package/dist/v2/index.js.map +1 -1
- package/dist/v2/utils.js +5 -5
- package/package.json +24 -31
- package/dist/chunk-BLXUWWgi.js +0 -15671
- package/dist/chunk-BLXUWWgi.js.map +0 -1
- package/dist/chunk-BmY70WOK.js.map +0 -1
- package/dist/chunk-CBN5naeP.js.map +0 -1
- package/dist/chunk-Ck5Gyhaq.js.map +0 -1
- package/dist/chunk-Dj7lS7Cs.js +0 -16980
- package/dist/chunk-Dj7lS7Cs.js.map +0 -1
- package/dist/cjs/chunk-Cqq9Q2Ty.cjs.js.map +0 -1
- package/dist/cjs/chunk-Cv0ocaVh.cjs.js +0 -15726
- package/dist/cjs/chunk-Cv0ocaVh.cjs.js.map +0 -1
- package/dist/cjs/chunk-DNpQGCaK.cjs.js.map +0 -1
- package/dist/cjs/chunk-DOxH3Agq.cjs.js +0 -17048
- package/dist/cjs/chunk-DOxH3Agq.cjs.js.map +0 -1
- package/dist/cjs/chunk-eyfbjfPH.cjs.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export { E as EDITOR_OPTIONS } from './chunk-DDwycKmK.js';
|
|
2
2
|
export { D as DEFAULT_EDITOR_OPTIONS } from './chunk-CF5f8-fy.js';
|
|
3
|
-
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-
|
|
4
|
-
export { s as substituteVariables } from './chunk-
|
|
5
|
-
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-
|
|
3
|
+
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-CnsiyshR.js';
|
|
4
|
+
export { s as substituteVariables } from './chunk-aCTMceVU.js';
|
|
5
|
+
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-Qg4uQqj3.js';
|
|
6
6
|
export { A as Attachments } from './chunk-DdxH-PMo.js';
|
|
7
7
|
export { default as Editor } from './Editor.js';
|
|
8
8
|
export { default as FormikEditor } from './FormikEditor.js';
|
|
9
|
-
export { M as Menu } from './chunk-
|
|
9
|
+
export { M as Menu } from './chunk-CHpkesFt.js';
|
|
10
10
|
export { default as EditorContent } from './EditorContent.js';
|
|
11
11
|
import { n } from './chunk-C2dztUxs.js';
|
|
12
12
|
import 'ramda';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import 'yup';
|
|
15
15
|
import '@babel/runtime/helpers/defineProperty';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-C5svTfyQ.js';
|
|
17
17
|
import '@bigbinary/neeto-cist';
|
|
18
18
|
import 'react';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-fDmcpgqx.js';
|
|
20
20
|
import './chunk-BFTU3MAI.js';
|
|
21
21
|
import 'react-dom/server';
|
|
22
22
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -61,17 +61,17 @@ import '@bigbinary/neetoui/Spinner';
|
|
|
61
61
|
import '@bigbinary/neetoui/Tooltip';
|
|
62
62
|
import '@bigbinary/neetoui/Typography';
|
|
63
63
|
import '@bigbinary/neetoui/Alert';
|
|
64
|
-
import './chunk-
|
|
65
|
-
import 'tippy.js';
|
|
64
|
+
import './chunk-ChNzXvhJ.js';
|
|
66
65
|
import 'react-dom';
|
|
67
66
|
import '@bigbinary/neetoui/Label';
|
|
68
|
-
import './chunk-
|
|
67
|
+
import './chunk-Bmhz4YEy.js';
|
|
69
68
|
import '@tanstack/react-query';
|
|
70
69
|
import 'yjs';
|
|
71
70
|
import '@bigbinary/neeto-icons/misc/Megaphone';
|
|
72
71
|
import '@bigbinary/neeto-icons/Down';
|
|
73
72
|
import '@bigbinary/neeto-icons/Highlight';
|
|
74
73
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
74
|
+
import 'tippy.js';
|
|
75
75
|
import '@babel/runtime/helpers/possibleConstructorReturn';
|
|
76
76
|
import '@babel/runtime/helpers/getPrototypeOf';
|
|
77
77
|
import '@babel/runtime/helpers/inherits';
|
|
@@ -120,7 +120,6 @@ import '@bigbinary/neetoui/formik/Input';
|
|
|
120
120
|
import '@bigbinary/neeto-icons/Edit';
|
|
121
121
|
import '@bigbinary/neeto-icons/Articles';
|
|
122
122
|
import 'formik';
|
|
123
|
-
import 'tippy.js/dist/svg-arrow.css';
|
|
124
123
|
import '@bigbinary/neeto-icons/Quote';
|
|
125
124
|
import '@bigbinary/neeto-icons/Code';
|
|
126
125
|
import '@bigbinary/neeto-icons/TextCross';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-
|
|
2
|
-
export { s as substituteVariables } from './chunk-
|
|
3
|
-
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-
|
|
1
|
+
export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-CnsiyshR.js';
|
|
2
|
+
export { s as substituteVariables } from './chunk-aCTMceVU.js';
|
|
3
|
+
export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-Qg4uQqj3.js';
|
|
4
4
|
import '@babel/runtime/helpers/defineProperty';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-C5svTfyQ.js';
|
|
6
6
|
import '@bigbinary/neeto-cist';
|
|
7
7
|
import './chunk-DDwycKmK.js';
|
|
8
8
|
import 'ramda';
|
|
@@ -10,7 +10,7 @@ import './chunk-CF5f8-fy.js';
|
|
|
10
10
|
import 'i18next';
|
|
11
11
|
import 'yup';
|
|
12
12
|
import 'react';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-fDmcpgqx.js';
|
|
14
14
|
import './chunk-BFTU3MAI.js';
|
|
15
15
|
import 'react-dom/server';
|
|
16
16
|
import '@babel/runtime/helpers/toConsumableArray';
|
package/dist/v2/Editor.js
CHANGED
|
@@ -4,28 +4,28 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import React__default, { memo, useState, useRef, useCallback, useEffect, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
6
6
|
import { DropdownMenu, Input, Button, Spinner, Tooltip, Toastr, Avatar, Typography, Select, Dialog, Checkbox as Checkbox$1, Label } from '@bigbinary/neeto-atoms';
|
|
7
|
-
import { E as Extension, N as NodeViewWrapper,
|
|
7
|
+
import { a as useEditorState, E as Extension, N as NodeViewWrapper, b as NodeViewContent, c as Node3, R as ReactNodeViewRenderer, m as mergeAttributes, D as DecorationSet, d as Decoration, f as ReactRenderer, e as emojiPickerApi, h as markInputRule, I as InputRule, r as resetFocussedNode, i as highlightFocussedNode, P as PasteRule, C as CellSelection, B as BubbleMenu, j as getMarkType, k as getMarkRange, l as useEditor, n as EditorContent, o as EditorView } from '../chunk-ChNzXvhJ.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { isNotPresent, findBy, isNotEmpty, isPresent, noop, slugify } from '@bigbinary/neeto-cist';
|
|
10
10
|
import { useOnClickOutside, withT, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
11
11
|
import { createPortal, flushSync } from 'react-dom';
|
|
12
|
-
import { B as BulletList$1,
|
|
12
|
+
import { B as BulletList$1, i as index_default, a as index_default$1, R as Resizable, b as index_default$2, L as Link$1, s as scrollHandler, c as index_default$3, O as OrderedList$1, d as index_default$4, f as fuzzySearch, T as Table$2, e as TaskList, g as TaskItem, C as CharacterCount, h as index_default$5, j as index_default$6, k as TextStyle, l as index_default$7, F as Focus, m as index_default$8, n as TableRow, o as TableHeader, p as TableCell, q as Color, r as ListItem, t as index_default$9, u as index_default$a, v as useFetchKbArticles, G as useEditorWarnings, H as useDeletedArticles } from '../chunk-Bmhz4YEy.js';
|
|
13
13
|
import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from '../chunk-DDwycKmK.js';
|
|
14
14
|
import '../chunk-CF5f8-fy.js';
|
|
15
15
|
import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc, equals } from 'ramda';
|
|
16
16
|
import ReactDOM from 'react-dom/server';
|
|
17
|
-
import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from '../chunk-
|
|
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, v as validateUrl, b as buildLevelsFromOptions, g as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, c as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, d as getEditorStyles, M as Menu$3, e as MenuDynamicVariables, f as MediaUploader, h as LinkAddPopOver, j as transformPastedHTML, k as clipboardTextParser, s as setInitialPosition } from '../chunk-
|
|
19
|
+
import { C as CALLOUT_TYPES, E as EmojiPickerMenu, v as validateUrl, b as buildLevelsFromOptions, g as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, c as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, d as getEditorStyles, M as Menu$3, e as MenuDynamicVariables, f as MediaUploader, h as LinkAddPopOver, j as transformPastedHTML, k as clipboardTextParser, s as setInitialPosition } from '../chunk-COgPAsPy.js';
|
|
20
20
|
import Megaphone from '@bigbinary/neeto-icons/misc/Megaphone';
|
|
21
|
-
import {
|
|
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';
|
|
23
23
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/v2/CopyToClipboardButton';
|
|
24
24
|
import { useTranslation } from 'react-i18next';
|
|
25
25
|
import { t } from 'i18next';
|
|
26
26
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
27
27
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
28
|
-
import tippy
|
|
28
|
+
import tippy from 'tippy.js';
|
|
29
29
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
30
30
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
31
31
|
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
@@ -80,12 +80,11 @@ import '@tanstack/react-query';
|
|
|
80
80
|
import 'yjs';
|
|
81
81
|
import 'yup';
|
|
82
82
|
import '../chunk-BFTU3MAI.js';
|
|
83
|
-
import 'tippy.js/dist/svg-arrow.css';
|
|
84
83
|
import '@bigbinary/neeto-commons-frontend/v2/utils';
|
|
85
84
|
import 'react-colorful';
|
|
86
85
|
import '@bigbinary/neeto-image-uploader-frontend/v2/ImageUploader';
|
|
87
86
|
import 'zustand/shallow';
|
|
88
|
-
import '@bigbinary/neeto-molecules/DynamicVariables';
|
|
87
|
+
import '@bigbinary/neeto-molecules/v2/DynamicVariables';
|
|
89
88
|
import '@bigbinary/neeto-icons/LeftAlign';
|
|
90
89
|
import '@bigbinary/neeto-icons/CenterAlign';
|
|
91
90
|
import '@bigbinary/neeto-icons/RightAlign';
|
|
@@ -137,12 +136,20 @@ var ErrorWrapper$1 = /*#__PURE__*/memo(ErrorWrapper);
|
|
|
137
136
|
var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
138
137
|
var editor = _ref.editor,
|
|
139
138
|
children = _ref.children;
|
|
139
|
+
var characters = useEditorState({
|
|
140
|
+
editor: editor,
|
|
141
|
+
selector: function selector(_ref2) {
|
|
142
|
+
var _editor$storage$chara;
|
|
143
|
+
var editor = _ref2.editor;
|
|
144
|
+
return (_editor$storage$chara = editor === null || editor === void 0 ? void 0 : editor.storage.characterCount.characters()) !== null && _editor$storage$chara !== void 0 ? _editor$storage$chara : 0;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
140
147
|
if (!editor) return children;
|
|
141
148
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
142
149
|
children: [children, /*#__PURE__*/jsxs("p", {
|
|
143
150
|
className: "neeto-editor-character-count",
|
|
144
151
|
"data-testid": "neeto-editor-character-count",
|
|
145
|
-
children: [
|
|
152
|
+
children: [characters, " characters"]
|
|
146
153
|
})]
|
|
147
154
|
});
|
|
148
155
|
};
|
|
@@ -227,7 +234,7 @@ var CalloutComponent = function CalloutComponent(_ref) {
|
|
|
227
234
|
});
|
|
228
235
|
};
|
|
229
236
|
|
|
230
|
-
var Callout =
|
|
237
|
+
var Callout = Node3.create({
|
|
231
238
|
name: "callout",
|
|
232
239
|
inline: false,
|
|
233
240
|
group: "block",
|
|
@@ -624,7 +631,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
624
631
|
|
|
625
632
|
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
626
633
|
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
627
|
-
var CodeBlock =
|
|
634
|
+
var CodeBlock = index_default.extend({
|
|
628
635
|
addAttributes: function addAttributes() {
|
|
629
636
|
var _this$parent;
|
|
630
637
|
return _objectSpread$j(_objectSpread$j({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
|
|
@@ -767,7 +774,7 @@ var EditorContainer = Extension.create({
|
|
|
767
774
|
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
768
775
|
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
769
776
|
var EmojiPickerPluginKey = new PluginKey("emoji-picker");
|
|
770
|
-
var EmojiPicker =
|
|
777
|
+
var EmojiPicker = Node3.create({
|
|
771
778
|
name: "emojiPicker",
|
|
772
779
|
group: "inline",
|
|
773
780
|
inline: true,
|
|
@@ -820,7 +827,7 @@ var EmojiPicker = Node.create({
|
|
|
820
827
|
};
|
|
821
828
|
},
|
|
822
829
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
823
|
-
return [
|
|
830
|
+
return [index_default$1(_objectSpread$i({
|
|
824
831
|
editor: this.editor
|
|
825
832
|
}, this.options.suggestion))];
|
|
826
833
|
}
|
|
@@ -1044,7 +1051,7 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
1044
1051
|
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1045
1052
|
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1046
1053
|
var EmojiSuggestionPluginKey = new PluginKey("emoji-suggestion");
|
|
1047
|
-
var EmojiSuggestion =
|
|
1054
|
+
var EmojiSuggestion = Node3.create({
|
|
1048
1055
|
name: "emojiSuggestion",
|
|
1049
1056
|
group: "inline",
|
|
1050
1057
|
inline: true,
|
|
@@ -1121,7 +1128,7 @@ var EmojiSuggestion = Node.create({
|
|
|
1121
1128
|
};
|
|
1122
1129
|
},
|
|
1123
1130
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
1124
|
-
return [
|
|
1131
|
+
return [index_default$1(_objectSpread$h({
|
|
1125
1132
|
editor: this.editor
|
|
1126
1133
|
}, this.options.suggestion))];
|
|
1127
1134
|
}
|
|
@@ -1565,7 +1572,7 @@ var findNextTextPos = function findNextTextPos(editor, pos) {
|
|
|
1565
1572
|
});
|
|
1566
1573
|
return foundPos;
|
|
1567
1574
|
};
|
|
1568
|
-
var ImageExtension =
|
|
1575
|
+
var ImageExtension = Node3.create({
|
|
1569
1576
|
name: "image",
|
|
1570
1577
|
addOptions: function addOptions() {
|
|
1571
1578
|
return {
|
|
@@ -1823,7 +1830,7 @@ var ImageExtension = Node.create({
|
|
|
1823
1830
|
}
|
|
1824
1831
|
});
|
|
1825
1832
|
|
|
1826
|
-
var FigCaption =
|
|
1833
|
+
var FigCaption = Node3.create({
|
|
1827
1834
|
name: "figcaption",
|
|
1828
1835
|
content: "text*",
|
|
1829
1836
|
selectable: false,
|
|
@@ -1839,7 +1846,7 @@ var FigCaption = Node.create({
|
|
|
1839
1846
|
}
|
|
1840
1847
|
});
|
|
1841
1848
|
|
|
1842
|
-
var Italic =
|
|
1849
|
+
var Italic = index_default$2.extend({
|
|
1843
1850
|
addInputRules: function addInputRules() {
|
|
1844
1851
|
return [];
|
|
1845
1852
|
},
|
|
@@ -2178,7 +2185,7 @@ var suggestion$1 = {
|
|
|
2178
2185
|
};
|
|
2179
2186
|
}
|
|
2180
2187
|
};
|
|
2181
|
-
var Mentions =
|
|
2188
|
+
var Mentions = index_default$3.extend({
|
|
2182
2189
|
addCommands: function addCommands() {
|
|
2183
2190
|
var _this = this;
|
|
2184
2191
|
return {
|
|
@@ -2278,7 +2285,7 @@ var Placeholder = Extension.create({
|
|
|
2278
2285
|
}
|
|
2279
2286
|
});
|
|
2280
2287
|
|
|
2281
|
-
var SelectionDecoration =
|
|
2288
|
+
var SelectionDecoration = index_default$4.extend({
|
|
2282
2289
|
name: "selectionDecorator",
|
|
2283
2290
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
2284
2291
|
return [new Plugin({
|
|
@@ -3042,7 +3049,7 @@ var SlashCommands = {
|
|
|
3042
3049
|
};
|
|
3043
3050
|
},
|
|
3044
3051
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
3045
|
-
return [
|
|
3052
|
+
return [index_default$1(_objectSpread$9({
|
|
3046
3053
|
editor: this.editor
|
|
3047
3054
|
}, this.options.suggestion))];
|
|
3048
3055
|
}
|
|
@@ -3109,7 +3116,7 @@ var suggestion = {
|
|
|
3109
3116
|
};
|
|
3110
3117
|
}
|
|
3111
3118
|
};
|
|
3112
|
-
var SpecialMentions =
|
|
3119
|
+
var SpecialMentions = index_default$3.extend({
|
|
3113
3120
|
name: "special-mention",
|
|
3114
3121
|
renderHTML: function renderHTML(_ref2) {
|
|
3115
3122
|
var node = _ref2.node,
|
|
@@ -3432,7 +3439,7 @@ var VariableComponent = function VariableComponent(_ref) {
|
|
|
3432
3439
|
};
|
|
3433
3440
|
|
|
3434
3441
|
new PluginKey("variables");
|
|
3435
|
-
var Variable =
|
|
3442
|
+
var Variable = Node3.create({
|
|
3436
3443
|
name: "variable",
|
|
3437
3444
|
addOptions: function addOptions() {
|
|
3438
3445
|
return {
|
|
@@ -3840,7 +3847,7 @@ var handleVideoPaste = function handleVideoPaste(_ref) {
|
|
|
3840
3847
|
state.tr.setSelection(TextSelection.create(state.tr.doc, range.from + node.nodeSize + 1));
|
|
3841
3848
|
}
|
|
3842
3849
|
};
|
|
3843
|
-
var UnifiedVideoExtension =
|
|
3850
|
+
var UnifiedVideoExtension = Node3.create({
|
|
3844
3851
|
name: "unified-video",
|
|
3845
3852
|
addOptions: function addOptions() {
|
|
3846
3853
|
return {
|
|
@@ -3959,11 +3966,11 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
3959
3966
|
containerRef = _ref.containerRef;
|
|
3960
3967
|
var customExtensions = [EditorContainer.configure({
|
|
3961
3968
|
containerRef: containerRef
|
|
3962
|
-
}), CharacterCount,
|
|
3969
|
+
}), CharacterCount, index_default$5, CodeBlock.configure({
|
|
3963
3970
|
enableReactNodeViewOptimization: enableReactNodeViewOptimization
|
|
3964
|
-
}), CustomCommands,
|
|
3971
|
+
}), CustomCommands, index_default$4, FigCaption, HighlightInternal, SelectionDecoration, Focus.configure({
|
|
3965
3972
|
mode: "shallowest"
|
|
3966
|
-
}),
|
|
3973
|
+
}), index_default$6, ImageExtension.configure({
|
|
3967
3974
|
openImageInNewTab: openImageInNewTab,
|
|
3968
3975
|
enableReactNodeViewOptimization: enableReactNodeViewOptimization
|
|
3969
3976
|
}), Link.configure({
|
|
@@ -3973,7 +3980,7 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
3973
3980
|
}), Placeholder.configure({
|
|
3974
3981
|
placeholder: placeholder,
|
|
3975
3982
|
isSlashCommandsActive: isSlashCommandsActive
|
|
3976
|
-
}),
|
|
3983
|
+
}), index_default$8.configure({
|
|
3977
3984
|
document: false,
|
|
3978
3985
|
codeBlock: false,
|
|
3979
3986
|
code: false,
|
|
@@ -3982,11 +3989,19 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
3982
3989
|
blockquote: options.includes(EDITOR_OPTIONS.BLOCKQUOTE),
|
|
3983
3990
|
orderedList: false,
|
|
3984
3991
|
italic: false,
|
|
3985
|
-
|
|
3992
|
+
link: false,
|
|
3993
|
+
// v3 StarterKit bundles Link; we register a custom Link extension
|
|
3994
|
+
underline: false,
|
|
3995
|
+
// v3 StarterKit bundles Underline; we register it explicitly below
|
|
3996
|
+
listKeymap: false,
|
|
3997
|
+
// new in v3 StarterKit; disabled to keep v2 list behavior
|
|
3998
|
+
trailingNode: false,
|
|
3999
|
+
// new in v3 StarterKit; disabled to keep v2 behavior
|
|
4000
|
+
undoRedo: !collaborationProvider,
|
|
3986
4001
|
heading: {
|
|
3987
4002
|
levels: buildLevelsFromOptions(options)
|
|
3988
4003
|
}
|
|
3989
|
-
}), TextStyle,
|
|
4004
|
+
}), TextStyle, index_default$7, Italic, KeyboardShortcuts$1.configure({
|
|
3990
4005
|
onSubmit: onSubmit,
|
|
3991
4006
|
shortcuts: keyboardShortcuts,
|
|
3992
4007
|
isBlockQuoteActive: options.includes(EDITOR_OPTIONS.BLOCKQUOTE)
|
|
@@ -4051,10 +4066,10 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
|
|
|
4051
4066
|
}
|
|
4052
4067
|
if (collaborationProvider) {
|
|
4053
4068
|
var _collaborationProvide;
|
|
4054
|
-
customExtensions.push(
|
|
4069
|
+
customExtensions.push(index_default$9.configure({
|
|
4055
4070
|
document: (_collaborationProvide = collaborationProvider.document) !== null && _collaborationProvide !== void 0 ? _collaborationProvide : collaborationProvider.doc
|
|
4056
4071
|
}));
|
|
4057
|
-
customExtensions.push(
|
|
4072
|
+
customExtensions.push(index_default$a.configure({
|
|
4058
4073
|
provider: collaborationProvider
|
|
4059
4074
|
}));
|
|
4060
4075
|
}
|
|
@@ -4517,20 +4532,20 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
4517
4532
|
editor: editor,
|
|
4518
4533
|
shouldShow: shouldShow,
|
|
4519
4534
|
className: "neeto-editor-bubble-menu",
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4535
|
+
style: {
|
|
4536
|
+
zIndex: 99999
|
|
4537
|
+
},
|
|
4538
|
+
getReferencedVirtualElement: function getReferencedVirtualElement() {
|
|
4539
|
+
return {
|
|
4540
|
+
getBoundingClientRect: getReferenceClientRect
|
|
4541
|
+
};
|
|
4542
|
+
},
|
|
4543
|
+
options: {
|
|
4544
|
+
offset: {
|
|
4545
|
+
mainAxis: 10,
|
|
4546
|
+
crossAxis: 10
|
|
4530
4547
|
},
|
|
4531
|
-
|
|
4532
|
-
plugins: [sticky],
|
|
4533
|
-
sticky: "popper"
|
|
4548
|
+
flip: false
|
|
4534
4549
|
},
|
|
4535
4550
|
children: tableActions({
|
|
4536
4551
|
editor: editor
|
|
@@ -4570,11 +4585,11 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
4570
4585
|
return /*#__PURE__*/jsx(Button, {
|
|
4571
4586
|
className: "ne-toolbar-item",
|
|
4572
4587
|
icon: IconComponent,
|
|
4588
|
+
variant: "ghost",
|
|
4573
4589
|
tooltipProps: {
|
|
4574
4590
|
content: tooltipLabel,
|
|
4575
4591
|
position: "bottom"
|
|
4576
4592
|
},
|
|
4577
|
-
variant: "ghost",
|
|
4578
4593
|
onClick: function onClick() {
|
|
4579
4594
|
flushSync(function () {
|
|
4580
4595
|
return setIsAlignmentOpen(false);
|