@bigbinary/neeto-editor 1.40.0 → 1.40.1
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 +17 -5
- package/dist/Attachments.js.map +1 -1
- package/dist/Editor.js +629 -508
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +50 -41
- package/dist/EditorContent.js.map +1 -1
- package/dist/FormikEditor.js +91 -30
- package/dist/FormikEditor.js.map +1 -1
- package/dist/Menu.js +45 -5
- package/dist/Menu.js.map +1 -1
- package/dist/{chunk-b39dfdd8.js → chunk-27a003fe.js} +831 -708
- package/dist/{chunk-b39dfdd8.js.map → chunk-27a003fe.js.map} +1 -1
- package/dist/{chunk-6dabc0b1.js → chunk-54bb591c.js} +66 -43
- package/dist/{chunk-6dabc0b1.js.map → chunk-54bb591c.js.map} +1 -1
- package/dist/{chunk-52091cdb.js → chunk-91e5e60f.js} +186 -152
- package/dist/chunk-91e5e60f.js.map +1 -0
- package/dist/{chunk-c1e6a992.js → chunk-eafe8fe4.js} +24 -18
- package/dist/{chunk-c1e6a992.js.map → chunk-eafe8fe4.js.map} +1 -1
- package/dist/cjs/Attachments.cjs.js +17 -5
- package/dist/cjs/Attachments.cjs.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +705 -548
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +61 -50
- package/dist/cjs/EditorContent.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +94 -33
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/Menu.cjs.js +45 -5
- package/dist/cjs/Menu.cjs.js.map +1 -1
- package/dist/cjs/{chunk-d12e89fd.cjs.js → chunk-242eea5e.cjs.js} +1033 -874
- package/dist/cjs/{chunk-d12e89fd.cjs.js.map → chunk-242eea5e.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-d0720eac.cjs.js → chunk-391e4970.cjs.js} +214 -170
- package/dist/cjs/chunk-391e4970.cjs.js.map +1 -0
- package/dist/cjs/{chunk-3777ae13.cjs.js → chunk-969db227.cjs.js} +88 -60
- package/dist/cjs/{chunk-3777ae13.cjs.js.map → chunk-969db227.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-76a5f21a.cjs.js → chunk-ae47a2a1.cjs.js} +41 -31
- package/dist/cjs/{chunk-76a5f21a.cjs.js.map → chunk-ae47a2a1.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +65 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +65 -7
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunk-52091cdb.js.map +0 -1
- package/dist/cjs/chunk-d0720eac.cjs.js.map +0 -1
package/dist/Editor.js
CHANGED
|
@@ -2,25 +2,30 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
|
-
import * as React
|
|
6
|
-
import React__default, { memo, useEffect, useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
7
|
-
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, g as getMarkAttributes, N as Node, D as DecorationSet, d as Decoration, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, n as nodeInputRule, h as findChildren, i as NodeViewWrapper, j as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, l as escapeForRegEx, o as ReactRenderer, p as EmojiPickerMenu, q as emojiPickerApi, r as combineTransactionSteps, s as getChangedRanges, u as findChildrenInRange, x as getMarksBetween, y as getAttributes, I as InputRule, z as highlightFocussedNode, A as resetFocussedNode, B as findParentNodeClosestToPos, C as BubbleMenu, F as getLinkPopoverPosition, G as getMarkType, H as getMarkRange, J as useEditor, M as Menu$3, K as EditorContent, L as MediaUploader, O as EmbedOption, Q as EditorView } from './chunk-
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import React__default, { memo, useEffect, useState, useRef, createElement, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
7
|
+
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, g as getMarkAttributes, N as Node, D as DecorationSet, d as Decoration, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, n as nodeInputRule, h as findChildren, i as NodeViewWrapper, j as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, l as escapeForRegEx, o as ReactRenderer, p as EmojiPickerMenu, q as emojiPickerApi, r as combineTransactionSteps, s as getChangedRanges, u as findChildrenInRange, x as getMarksBetween, y as getAttributes, I as InputRule, z as highlightFocussedNode, A as resetFocussedNode, B as findParentNodeClosestToPos, C as BubbleMenu, F as getLinkPopoverPosition, G as getMarkType, H as getMarkRange, J as useEditor, M as Menu$3, K as EditorContent, L as MediaUploader, O as EmbedOption, Q as EditorView } from './chunk-27a003fe.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS } from './chunk-edd8b9fe.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
|
-
import
|
|
12
|
+
import Label from '@bigbinary/neetoui/Label';
|
|
13
13
|
import { is, isNil, mergeRight, isEmpty as isEmpty$1, assoc, equals } from 'ramda';
|
|
14
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
14
15
|
import { n } from './chunk-15c449f1.js';
|
|
15
|
-
import { P as Plugin, b as PluginKey, T as TextSelection, d as dropPoint, S as Selection, N as NodeSelection, F as Fragment, c as Slice, M as Mapping, l as liftTarget, e as SelectionRange, f as Transform, L as LINK_VALIDATION_SCHEMA, v as validateAndFormatUrl, g as getEditorStyles, h as clipboardTextParser, s as setInitialPosition, D as DEFAULT_EDITOR_OPTIONS } from './chunk-d17f73d0.js';
|
|
16
|
-
import
|
|
16
|
+
import { P as Plugin, b as PluginKey, T as TextSelection, d as dropPoint, S as Selection, N as NodeSelection, F as Fragment$1, c as Slice, M as Mapping, l as liftTarget, e as SelectionRange, f as Transform, L as LINK_VALIDATION_SCHEMA, v as validateAndFormatUrl, g as getEditorStyles, h as clipboardTextParser, s as setInitialPosition, D as DEFAULT_EDITOR_OPTIONS } from './chunk-d17f73d0.js';
|
|
17
|
+
import Down from '@bigbinary/neeto-icons/Down';
|
|
17
18
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
19
|
+
import Dropdown from '@bigbinary/neetoui/Dropdown';
|
|
20
|
+
import Input from '@bigbinary/neetoui/Input';
|
|
18
21
|
import { useTranslation } from 'react-i18next';
|
|
19
22
|
import { l as lowlight } from './chunk-ade4c9e3.js';
|
|
20
23
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
21
24
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
22
25
|
import { flushSync, createPortal } from 'react-dom';
|
|
23
|
-
import
|
|
26
|
+
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
27
|
+
import Button from '@bigbinary/neetoui/Button';
|
|
28
|
+
import { c as buildImageOptions, D as DirectUpload } from './chunk-eafe8fe4.js';
|
|
24
29
|
import tippy, { sticky } from 'tippy.js';
|
|
25
30
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
26
31
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
@@ -28,22 +33,75 @@ import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstruct
|
|
|
28
33
|
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
29
34
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
30
35
|
import { init as init$3, SearchIndex } from 'emoji-mart';
|
|
36
|
+
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
31
37
|
import { t } from 'i18next';
|
|
32
38
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
33
|
-
import
|
|
39
|
+
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
40
|
+
import Close from '@bigbinary/neeto-icons/Close';
|
|
41
|
+
import Modal from '@bigbinary/neetoui/Modal';
|
|
42
|
+
import Avatar from '@bigbinary/neetoui/Avatar';
|
|
43
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
34
44
|
import { M as MARGIN_HEIGHT } from './chunk-5bc5e361.js';
|
|
35
45
|
import Tippy from '@tippyjs/react';
|
|
36
|
-
import
|
|
37
|
-
import
|
|
46
|
+
import Paragraph$1 from '@bigbinary/neeto-icons/Paragraph';
|
|
47
|
+
import TextH1 from '@bigbinary/neeto-icons/TextH1';
|
|
48
|
+
import TextH2 from '@bigbinary/neeto-icons/TextH2';
|
|
49
|
+
import ListDot from '@bigbinary/neeto-icons/ListDot';
|
|
50
|
+
import ListNumber from '@bigbinary/neeto-icons/ListNumber';
|
|
51
|
+
import Blockquote$1 from '@bigbinary/neeto-icons/Blockquote';
|
|
52
|
+
import ImageUpload from '@bigbinary/neeto-icons/ImageUpload';
|
|
53
|
+
import CodeBlock$2 from '@bigbinary/neeto-icons/CodeBlock';
|
|
54
|
+
import Smiley from '@bigbinary/neeto-icons/Smiley';
|
|
55
|
+
import Minus from '@bigbinary/neeto-icons/Minus';
|
|
56
|
+
import Video from '@bigbinary/neeto-icons/Video';
|
|
57
|
+
import Text$2 from '@bigbinary/neeto-icons/Text';
|
|
58
|
+
import Notes from '@bigbinary/neeto-icons/Notes';
|
|
59
|
+
import MediaVideo from '@bigbinary/neeto-icons/MediaVideo';
|
|
60
|
+
import Column from '@bigbinary/neeto-icons/Column';
|
|
61
|
+
import DeleteRow from '@bigbinary/neeto-icons/DeleteRow';
|
|
62
|
+
import DeleteColumn from '@bigbinary/neeto-icons/DeleteColumn';
|
|
63
|
+
import DeleteTable from '@bigbinary/neeto-icons/DeleteTable';
|
|
64
|
+
import InsertRow from '@bigbinary/neeto-icons/InsertRow';
|
|
65
|
+
import InsertColumn from '@bigbinary/neeto-icons/InsertColumn';
|
|
66
|
+
import MergeSplit from '@bigbinary/neeto-icons/MergeSplit';
|
|
67
|
+
import ToggleHeaderRow from '@bigbinary/neeto-icons/ToggleHeaderRow';
|
|
68
|
+
import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
69
|
+
import Form from '@bigbinary/neetoui/formik/Form';
|
|
70
|
+
import Input$1 from '@bigbinary/neetoui/formik/Input';
|
|
71
|
+
import { A as Attachments } from './chunk-91e5e60f.js';
|
|
38
72
|
import 'tippy.js/dist/svg-arrow.css';
|
|
73
|
+
import '@bigbinary/neeto-icons/Link';
|
|
39
74
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
75
|
+
import '@bigbinary/neeto-icons/Check';
|
|
76
|
+
import '@bigbinary/neeto-icons/Quote';
|
|
77
|
+
import '@bigbinary/neeto-icons/Attachment';
|
|
78
|
+
import '@bigbinary/neeto-icons/Code';
|
|
79
|
+
import '@bigbinary/neeto-icons/Highlight';
|
|
80
|
+
import '@bigbinary/neeto-icons/TextBold';
|
|
81
|
+
import '@bigbinary/neeto-icons/TextCross';
|
|
82
|
+
import '@bigbinary/neeto-icons/TextItalic';
|
|
83
|
+
import '@bigbinary/neeto-icons/Underline';
|
|
84
|
+
import '@bigbinary/neeto-icons/Undo';
|
|
85
|
+
import '@bigbinary/neeto-icons/Redo';
|
|
86
|
+
import '@bigbinary/neeto-icons/Email';
|
|
40
87
|
import 'axios';
|
|
88
|
+
import '@bigbinary/neeto-icons/Customize';
|
|
89
|
+
import '@bigbinary/neeto-icons/Refresh';
|
|
41
90
|
import 'react-colorful';
|
|
42
91
|
import '@bigbinary/neeto-molecules/DynamicVariables';
|
|
92
|
+
import '@bigbinary/neetoui/Tab';
|
|
93
|
+
import '@bigbinary/neetoui/Tooltip';
|
|
43
94
|
import './chunk-65f73e5a.js';
|
|
44
95
|
import 'zustand/shallow';
|
|
45
96
|
import 'zustand';
|
|
97
|
+
import '@bigbinary/neeto-icons/File';
|
|
46
98
|
import 'yup';
|
|
99
|
+
import '@bigbinary/neeto-icons/LeftAlign';
|
|
100
|
+
import '@bigbinary/neeto-icons/CenterAlign';
|
|
101
|
+
import '@bigbinary/neeto-icons/RightAlign';
|
|
102
|
+
import '@bigbinary/neeto-icons/Delete';
|
|
103
|
+
import '@bigbinary/neeto-icons/MenuVertical';
|
|
104
|
+
import '@bigbinary/neetoui/Alert';
|
|
47
105
|
|
|
48
106
|
var ErrorWrapper = function ErrorWrapper(_ref) {
|
|
49
107
|
var error = _ref.error,
|
|
@@ -66,12 +124,16 @@ var ErrorWrapper = function ErrorWrapper(_ref) {
|
|
|
66
124
|
if (isNotPresent(message)) return null;
|
|
67
125
|
return message;
|
|
68
126
|
};
|
|
69
|
-
return /*#__PURE__*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
127
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
128
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
129
|
+
className: wrapperClasses,
|
|
130
|
+
children: children
|
|
131
|
+
}), isError && /*#__PURE__*/jsx("p", {
|
|
132
|
+
className: "neeto-ui-input__error",
|
|
133
|
+
"data-cy": "neeto-editor-error-text",
|
|
134
|
+
children: getErrorMessage()
|
|
135
|
+
})]
|
|
136
|
+
});
|
|
75
137
|
};
|
|
76
138
|
var ErrorWrapper$1 = /*#__PURE__*/memo(ErrorWrapper);
|
|
77
139
|
|
|
@@ -94,10 +156,13 @@ var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
|
|
|
94
156
|
isActive = _ref.isActive,
|
|
95
157
|
children = _ref.children;
|
|
96
158
|
if (!isActive || !editor) return children;
|
|
97
|
-
return /*#__PURE__*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
159
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
160
|
+
children: [children, /*#__PURE__*/jsxs("p", {
|
|
161
|
+
className: "neeto-editor-character-count",
|
|
162
|
+
"data-cy": "neeto-editor-character-count",
|
|
163
|
+
children: [editor.storage.characterCount.characters(), " characters"]
|
|
164
|
+
})]
|
|
165
|
+
});
|
|
101
166
|
};
|
|
102
167
|
|
|
103
168
|
/**
|
|
@@ -1543,9 +1608,9 @@ function beforeinput(view, event) {
|
|
|
1543
1608
|
let insert = $from.parent.contentMatchAt($from.index()).findWrapping(view.state.schema.nodes.text);
|
|
1544
1609
|
if (!insert)
|
|
1545
1610
|
return false;
|
|
1546
|
-
let frag = Fragment.empty;
|
|
1611
|
+
let frag = Fragment$1.empty;
|
|
1547
1612
|
for (let i = insert.length - 1; i >= 0; i--)
|
|
1548
|
-
frag = Fragment.from(insert[i].createAndFill(null, frag));
|
|
1613
|
+
frag = Fragment$1.from(insert[i].createAndFill(null, frag));
|
|
1549
1614
|
let tr = view.state.tr.replace($from.pos, $from.pos, new Slice(frag, 0, 0));
|
|
1550
1615
|
tr.setSelection(TextSelection.near(tr.doc.resolve($from.pos + 1)));
|
|
1551
1616
|
view.dispatch(tr);
|
|
@@ -5721,50 +5786,56 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
|
|
|
5721
5786
|
}, 0);
|
|
5722
5787
|
}
|
|
5723
5788
|
}, []);
|
|
5724
|
-
return /*#__PURE__*/
|
|
5725
|
-
"data-cy": "neeto-editor-code-block"
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5789
|
+
return /*#__PURE__*/jsx(NodeViewWrapper, {
|
|
5790
|
+
"data-cy": "neeto-editor-code-block",
|
|
5791
|
+
children: /*#__PURE__*/jsxs("pre", {
|
|
5792
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
5793
|
+
className: "neeto-editor-codeblock-options",
|
|
5794
|
+
contentEditable: false,
|
|
5795
|
+
children: [/*#__PURE__*/jsxs(Dropdown, {
|
|
5796
|
+
appendTo: function appendTo() {
|
|
5797
|
+
return document.body;
|
|
5798
|
+
},
|
|
5799
|
+
buttonSize: "small",
|
|
5800
|
+
buttonStyle: "secondary",
|
|
5801
|
+
icon: Down,
|
|
5802
|
+
label: ((_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.language) || t("neetoEditor.common.auto"),
|
|
5803
|
+
strategy: "fixed",
|
|
5804
|
+
zIndex: 99999,
|
|
5805
|
+
children: [/*#__PURE__*/jsx(Input, {
|
|
5806
|
+
autoFocus: true,
|
|
5807
|
+
className: "neeto-editor-codeblock-options__input",
|
|
5808
|
+
placeholder: t("neetoEditor.placeholders.searchLanguages"),
|
|
5809
|
+
size: "small",
|
|
5810
|
+
value: keyword,
|
|
5811
|
+
onChange: function onChange(e) {
|
|
5812
|
+
return setKeyword(e.target.value);
|
|
5813
|
+
},
|
|
5814
|
+
onClick: function onClick(e) {
|
|
5815
|
+
e.preventDefault();
|
|
5816
|
+
e.stopPropagation();
|
|
5817
|
+
}
|
|
5818
|
+
}), /*#__PURE__*/jsx(Menu$2, {
|
|
5819
|
+
className: "neeto-editor-codeblock-options__menu",
|
|
5820
|
+
children: filteredAndSortedLanguageList.map(function (language) {
|
|
5821
|
+
return /*#__PURE__*/jsx(MenuItem$1.Button, {
|
|
5822
|
+
onClick: function onClick() {
|
|
5823
|
+
return handleLanguageSelect(language);
|
|
5824
|
+
},
|
|
5825
|
+
children: language || t("neetoEditor.common.auto")
|
|
5826
|
+
}, language);
|
|
5827
|
+
})
|
|
5828
|
+
})]
|
|
5829
|
+
}), /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
5830
|
+
size: "small",
|
|
5831
|
+
style: "secondary",
|
|
5832
|
+
value: node === null || node === void 0 || (_node$content = node.content) === null || _node$content === void 0 || (_node$content = _node$content.content[0]) === null || _node$content === void 0 ? void 0 : _node$content.text
|
|
5833
|
+
})]
|
|
5834
|
+
}), /*#__PURE__*/jsx(NodeViewContent, {
|
|
5835
|
+
as: "code"
|
|
5836
|
+
})]
|
|
5837
|
+
})
|
|
5838
|
+
});
|
|
5768
5839
|
};
|
|
5769
5840
|
|
|
5770
5841
|
var CodeBlock = CodeBlockLowlight.extend({
|
|
@@ -5873,10 +5944,10 @@ var Resizer = /** @class */ (function (_super) {
|
|
|
5873
5944
|
return _this;
|
|
5874
5945
|
}
|
|
5875
5946
|
Resizer.prototype.render = function () {
|
|
5876
|
-
return (React
|
|
5947
|
+
return (React.createElement("div", { className: this.props.className || '', style: __assign$1(__assign$1({ position: 'absolute', userSelect: 'none' }, styles[this.props.direction]), (this.props.replaceStyles || {})), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children));
|
|
5877
5948
|
};
|
|
5878
5949
|
return Resizer;
|
|
5879
|
-
}(React
|
|
5950
|
+
}(React.PureComponent));
|
|
5880
5951
|
|
|
5881
5952
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
5882
5953
|
var extendStatics = function (d, b) {
|
|
@@ -6578,12 +6649,12 @@ var Resizable = /** @class */ (function (_super) {
|
|
|
6578
6649
|
}
|
|
6579
6650
|
var resizers = Object.keys(enable).map(function (dir) {
|
|
6580
6651
|
if (enable[dir] !== false) {
|
|
6581
|
-
return (React
|
|
6652
|
+
return (React.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null));
|
|
6582
6653
|
}
|
|
6583
6654
|
return null;
|
|
6584
6655
|
});
|
|
6585
6656
|
// #93 Wrap the resize box in span (will not break 100% width/height)
|
|
6586
|
-
return (React
|
|
6657
|
+
return (React.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers));
|
|
6587
6658
|
};
|
|
6588
6659
|
Resizable.prototype.render = function () {
|
|
6589
6660
|
var _this = this;
|
|
@@ -6599,8 +6670,8 @@ var Resizable = /** @class */ (function (_super) {
|
|
|
6599
6670
|
style.flexBasis = this.state.flexBasis;
|
|
6600
6671
|
}
|
|
6601
6672
|
var Wrapper = this.props.as || 'div';
|
|
6602
|
-
return (React
|
|
6603
|
-
this.state.isResizing && React
|
|
6673
|
+
return (React.createElement(Wrapper, __assign({ ref: this.ref, style: style, className: this.props.className }, extendsProps),
|
|
6674
|
+
this.state.isResizing && React.createElement("div", { style: this.state.backgroundStyle }),
|
|
6604
6675
|
this.props.children,
|
|
6605
6676
|
this.renderResizer()));
|
|
6606
6677
|
};
|
|
@@ -6629,7 +6700,7 @@ var Resizable = /** @class */ (function (_super) {
|
|
|
6629
6700
|
snapGap: 0,
|
|
6630
6701
|
};
|
|
6631
6702
|
return Resizable;
|
|
6632
|
-
}(React
|
|
6703
|
+
}(React.PureComponent));
|
|
6633
6704
|
|
|
6634
6705
|
var Menu$1 = function Menu(_ref) {
|
|
6635
6706
|
var align = _ref.align,
|
|
@@ -6643,7 +6714,7 @@ var Menu$1 = function Menu(_ref) {
|
|
|
6643
6714
|
}) : deleteNode();
|
|
6644
6715
|
editor.commands.focus();
|
|
6645
6716
|
};
|
|
6646
|
-
return /*#__PURE__*/
|
|
6717
|
+
return /*#__PURE__*/jsx(Dropdown, {
|
|
6647
6718
|
buttonProps: {
|
|
6648
6719
|
className: "neeto-editor__image-menu-btn"
|
|
6649
6720
|
},
|
|
@@ -6652,27 +6723,29 @@ var Menu$1 = function Menu(_ref) {
|
|
|
6652
6723
|
className: "neeto-editor__image-menu",
|
|
6653
6724
|
icon: MenuHorizontal,
|
|
6654
6725
|
position: "top",
|
|
6655
|
-
strategy: "fixed"
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
}
|
|
6672
|
-
})
|
|
6673
|
-
})
|
|
6726
|
+
strategy: "fixed",
|
|
6727
|
+
children: menuOptions.map(function (_ref2) {
|
|
6728
|
+
var Icon = _ref2.Icon,
|
|
6729
|
+
optionName = _ref2.optionName,
|
|
6730
|
+
alignPos = _ref2.alignPos;
|
|
6731
|
+
return /*#__PURE__*/jsx(Button, {
|
|
6732
|
+
"data-cy": "neeto-editor-image-menu-".concat(optionName),
|
|
6733
|
+
icon: Icon,
|
|
6734
|
+
style: alignPos === align ? "secondary" : "text",
|
|
6735
|
+
tooltipProps: {
|
|
6736
|
+
content: optionName,
|
|
6737
|
+
position: "top"
|
|
6738
|
+
},
|
|
6739
|
+
onClick: function onClick() {
|
|
6740
|
+
return handleClick(alignPos);
|
|
6741
|
+
}
|
|
6742
|
+
}, optionName);
|
|
6743
|
+
})
|
|
6744
|
+
});
|
|
6674
6745
|
};
|
|
6675
6746
|
|
|
6747
|
+
function ownKeys$e(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; }
|
|
6748
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6676
6749
|
var EmbedComponent = function EmbedComponent(_ref) {
|
|
6677
6750
|
var node = _ref.node,
|
|
6678
6751
|
editor = _ref.editor,
|
|
@@ -6697,27 +6770,29 @@ var EmbedComponent = function EmbedComponent(_ref) {
|
|
|
6697
6770
|
})));
|
|
6698
6771
|
editor.commands.focus();
|
|
6699
6772
|
};
|
|
6700
|
-
return /*#__PURE__*/
|
|
6773
|
+
return /*#__PURE__*/jsx(NodeViewWrapper, {
|
|
6701
6774
|
className: "neeto-editor__video-wrapper neeto-editor__video--".concat(align),
|
|
6702
|
-
"data-cy": "neeto-editor-video-wrapper"
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6775
|
+
"data-cy": "neeto-editor-video-wrapper",
|
|
6776
|
+
children: /*#__PURE__*/jsxs(Resizable, {
|
|
6777
|
+
lockAspectRatio: true,
|
|
6778
|
+
className: "neeto-editor__video-iframe",
|
|
6779
|
+
size: {
|
|
6780
|
+
height: height,
|
|
6781
|
+
width: width
|
|
6782
|
+
},
|
|
6783
|
+
onResizeStop: handleResize,
|
|
6784
|
+
children: [/*#__PURE__*/jsx(Menu$1, {
|
|
6785
|
+
align: align,
|
|
6786
|
+
deleteNode: deleteNode,
|
|
6787
|
+
editor: editor,
|
|
6788
|
+
updateAttributes: updateAttributes
|
|
6789
|
+
}), /*#__PURE__*/jsx("iframe", _objectSpread$e({}, node.attrs))]
|
|
6790
|
+
})
|
|
6791
|
+
});
|
|
6717
6792
|
};
|
|
6718
6793
|
|
|
6719
|
-
function ownKeys$
|
|
6720
|
-
function _objectSpread$
|
|
6794
|
+
function ownKeys$d(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; }
|
|
6795
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6721
6796
|
var Embeds = Node.create({
|
|
6722
6797
|
name: "external-video",
|
|
6723
6798
|
addOptions: function addOptions() {
|
|
@@ -6787,7 +6862,7 @@ var Embeds = Node.create({
|
|
|
6787
6862
|
}, ["div", {
|
|
6788
6863
|
"class": "neeto-editor__video-iframe",
|
|
6789
6864
|
style: "width: ".concat(figwidth, "px; height: ").concat(figheight, "px;")
|
|
6790
|
-
}, ["iframe", mergeAttributes(this.options.HTMLAttributes, _objectSpread$
|
|
6865
|
+
}, ["iframe", mergeAttributes(this.options.HTMLAttributes, _objectSpread$d({}, HTMLAttributes))]]];
|
|
6791
6866
|
},
|
|
6792
6867
|
addNodeView: function addNodeView() {
|
|
6793
6868
|
return ReactNodeViewRenderer(EmbedComponent);
|
|
@@ -7058,8 +7133,8 @@ function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = '@', allow
|
|
|
7058
7133
|
return plugin;
|
|
7059
7134
|
}
|
|
7060
7135
|
|
|
7061
|
-
function ownKeys$
|
|
7062
|
-
function _objectSpread$
|
|
7136
|
+
function ownKeys$c(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; }
|
|
7137
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7063
7138
|
var EmojiPickerPluginKey = new PluginKey("emoji-picker");
|
|
7064
7139
|
var EmojiPicker = Node.create({
|
|
7065
7140
|
name: "emojiPicker",
|
|
@@ -7113,7 +7188,7 @@ var EmojiPicker = Node.create({
|
|
|
7113
7188
|
};
|
|
7114
7189
|
},
|
|
7115
7190
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
7116
|
-
return [Suggestion(_objectSpread$
|
|
7191
|
+
return [Suggestion(_objectSpread$c({
|
|
7117
7192
|
editor: this.editor
|
|
7118
7193
|
}, this.options.suggestion))];
|
|
7119
7194
|
}
|
|
@@ -7309,26 +7384,29 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
7309
7384
|
if (isEmpty$1(this.state.emojiSuggestions)) {
|
|
7310
7385
|
return null;
|
|
7311
7386
|
}
|
|
7312
|
-
return /*#__PURE__*/
|
|
7313
|
-
className: "neeto-editor-emoji-suggestion"
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7387
|
+
return /*#__PURE__*/jsxs("div", {
|
|
7388
|
+
className: "neeto-editor-emoji-suggestion",
|
|
7389
|
+
children: [this.state.isLoading && /*#__PURE__*/jsx(Spinner, {}), !this.state.isLoading && (isNotEmpty(this.state.emojiSuggestions) ? this.state.emojiSuggestions.map(function (emoji, index) {
|
|
7390
|
+
return /*#__PURE__*/jsx("div", {
|
|
7391
|
+
"data-cy": "neeto-editor-emoji-suggestion-".concat(emoji.id),
|
|
7392
|
+
className: classnames("neeto-editor-emoji-suggestion__item", {
|
|
7393
|
+
"neeto-editor-emoji-suggestion__item--selected": index === _this2.state.selectedIndex
|
|
7394
|
+
}),
|
|
7395
|
+
onClick: function onClick() {
|
|
7396
|
+
return _this2.selectItem(index);
|
|
7397
|
+
},
|
|
7398
|
+
children: emoji.skins[0]["native"]
|
|
7399
|
+
}, emoji.id);
|
|
7400
|
+
}) : /*#__PURE__*/jsx("p", {
|
|
7401
|
+
children: "No results"
|
|
7402
|
+
}))]
|
|
7403
|
+
});
|
|
7326
7404
|
}
|
|
7327
7405
|
}]);
|
|
7328
7406
|
}(React__default.Component);
|
|
7329
7407
|
|
|
7330
|
-
function ownKeys$
|
|
7331
|
-
function _objectSpread$
|
|
7408
|
+
function ownKeys$b(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; }
|
|
7409
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7332
7410
|
var EmojiSuggestionPluginKey = new PluginKey("emoji-suggestion");
|
|
7333
7411
|
var EmojiSuggestion = Node.create({
|
|
7334
7412
|
name: "emojiSuggestion",
|
|
@@ -7407,7 +7485,7 @@ var EmojiSuggestion = Node.create({
|
|
|
7407
7485
|
};
|
|
7408
7486
|
},
|
|
7409
7487
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
7410
|
-
return [Suggestion(_objectSpread$
|
|
7488
|
+
return [Suggestion(_objectSpread$b({
|
|
7411
7489
|
editor: this.editor
|
|
7412
7490
|
}, this.options.suggestion))];
|
|
7413
7491
|
}
|
|
@@ -7492,37 +7570,41 @@ var ImagePreviewModal = function ImagePreviewModal(_ref) {
|
|
|
7492
7570
|
setIsLoading(true);
|
|
7493
7571
|
setPreviewUrl(null);
|
|
7494
7572
|
};
|
|
7495
|
-
return /*#__PURE__*/
|
|
7573
|
+
return /*#__PURE__*/jsx(Modal, {
|
|
7496
7574
|
className: "image-preview-neeto-ui-modal",
|
|
7497
7575
|
closeButton: false,
|
|
7498
7576
|
isOpen: isPresent(previewUrl),
|
|
7499
7577
|
size: "fullScreen",
|
|
7500
|
-
onClose: handleClose
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7578
|
+
onClose: handleClose,
|
|
7579
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
7580
|
+
children: [isLoading || isNil(previewUrl) ? /*#__PURE__*/jsx("div", {
|
|
7581
|
+
className: "spinner-wrapper",
|
|
7582
|
+
children: /*#__PURE__*/jsx(Spinner, {
|
|
7583
|
+
className: "spinner",
|
|
7584
|
+
theme: "light"
|
|
7585
|
+
})
|
|
7586
|
+
}) : /*#__PURE__*/jsx(Button, {
|
|
7587
|
+
className: "image-preview-neeto-ui-modal__close-btn",
|
|
7588
|
+
icon: Close,
|
|
7589
|
+
style: "secondary",
|
|
7590
|
+
onClick: handleClose,
|
|
7591
|
+
onKeyDown: function onKeyDown(e) {
|
|
7592
|
+
return e.key === "Escape" && handleClose;
|
|
7593
|
+
}
|
|
7594
|
+
}), /*#__PURE__*/jsx("img", {
|
|
7595
|
+
alt: "Preview",
|
|
7596
|
+
src: previewUrl,
|
|
7597
|
+
className: classnames({
|
|
7598
|
+
"display-none": isLoading || isNil(previewUrl)
|
|
7599
|
+
}),
|
|
7600
|
+
onLoad: handleImageLoad
|
|
7601
|
+
})]
|
|
7602
|
+
})
|
|
7603
|
+
});
|
|
7522
7604
|
};
|
|
7523
7605
|
|
|
7524
|
-
function ownKeys$
|
|
7525
|
-
function _objectSpread$
|
|
7606
|
+
function ownKeys$a(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; }
|
|
7607
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7526
7608
|
var ImageComponent = function ImageComponent(_ref) {
|
|
7527
7609
|
var _node$content, _figureRef$current;
|
|
7528
7610
|
var node = _ref.node,
|
|
@@ -7568,50 +7650,54 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
7568
7650
|
editor.commands.focus();
|
|
7569
7651
|
};
|
|
7570
7652
|
if (isNotPresent(src)) return null;
|
|
7571
|
-
return /*#__PURE__*/
|
|
7653
|
+
return /*#__PURE__*/jsxs(NodeViewWrapper, {
|
|
7572
7654
|
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align),
|
|
7573
|
-
"data-cy": "neeto-editor-image-wrapper"
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7655
|
+
"data-cy": "neeto-editor-image-wrapper",
|
|
7656
|
+
children: [/*#__PURE__*/jsxs("figure", {
|
|
7657
|
+
ref: figureRef,
|
|
7658
|
+
children: [/*#__PURE__*/jsx(Menu$1, {
|
|
7659
|
+
align: align,
|
|
7660
|
+
deleteNode: deleteNode,
|
|
7661
|
+
editor: editor,
|
|
7662
|
+
updateAttributes: updateAttributes
|
|
7663
|
+
}), src ? /*#__PURE__*/jsx(Resizable, {
|
|
7664
|
+
lockAspectRatio: true,
|
|
7665
|
+
className: "neeto-editor__image",
|
|
7666
|
+
minWidth: "100px",
|
|
7667
|
+
size: {
|
|
7668
|
+
height: height,
|
|
7669
|
+
width: width
|
|
7670
|
+
},
|
|
7671
|
+
onResizeStop: handleResizeStop,
|
|
7672
|
+
onResize: function onResize(_event, _direction, ref) {
|
|
7673
|
+
return setCaptionWidth(ref.offsetWidth);
|
|
7674
|
+
},
|
|
7675
|
+
children: /*#__PURE__*/jsx("img", _objectSpread$a(_objectSpread$a({}, _objectSpread$a(_objectSpread$a({}, node.attrs), {}, {
|
|
7676
|
+
src: src
|
|
7677
|
+
})), {}, {
|
|
7678
|
+
alt: caption,
|
|
7679
|
+
onClick: function onClick(e) {
|
|
7680
|
+
e.stopPropagation();
|
|
7681
|
+
setPreviewUrl(src);
|
|
7682
|
+
}
|
|
7683
|
+
}))
|
|
7684
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
7685
|
+
className: "neeto-editor__image-placeholder",
|
|
7686
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
7687
|
+
}), /*#__PURE__*/jsx(NodeViewContent, {
|
|
7688
|
+
as: "figcaption",
|
|
7689
|
+
className: classnames({
|
|
7690
|
+
"is-empty": isEmpty$1(caption)
|
|
7691
|
+
}),
|
|
7692
|
+
style: {
|
|
7693
|
+
width: "".concat(captionWidth, "px")
|
|
7694
|
+
}
|
|
7695
|
+
})]
|
|
7696
|
+
}), /*#__PURE__*/jsx(ImagePreviewModal, {
|
|
7697
|
+
previewUrl: previewUrl,
|
|
7698
|
+
setPreviewUrl: setPreviewUrl
|
|
7699
|
+
})]
|
|
7700
|
+
});
|
|
7615
7701
|
};
|
|
7616
7702
|
|
|
7617
7703
|
var _excluded$4 = ["caption"];
|
|
@@ -7860,8 +7946,8 @@ var FigCaption = Node.create({
|
|
|
7860
7946
|
}
|
|
7861
7947
|
});
|
|
7862
7948
|
|
|
7863
|
-
function ownKeys$
|
|
7864
|
-
function _objectSpread$
|
|
7949
|
+
function ownKeys$9(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; }
|
|
7950
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7865
7951
|
var KeyboardShortcuts = function KeyboardShortcuts(_ref) {
|
|
7866
7952
|
var onSubmit = _ref.onSubmit,
|
|
7867
7953
|
shortcuts = _ref.shortcuts,
|
|
@@ -7870,7 +7956,7 @@ var KeyboardShortcuts = function KeyboardShortcuts(_ref) {
|
|
|
7870
7956
|
name: "keyboard-shortcuts",
|
|
7871
7957
|
addKeyboardShortcuts: function addKeyboardShortcuts() {
|
|
7872
7958
|
var _this = this;
|
|
7873
|
-
return _objectSpread$
|
|
7959
|
+
return _objectSpread$9({
|
|
7874
7960
|
"Mod-Enter": function ModEnter() {
|
|
7875
7961
|
onSubmit === null || onSubmit === void 0 || onSubmit(_this.editor.getHTML());
|
|
7876
7962
|
return true;
|
|
@@ -9999,8 +10085,8 @@ const Link$1 = Mark.create({
|
|
|
9999
10085
|
|
|
10000
10086
|
var LINK_MARKDOWN_INPUT_REGEX = /(?:^|\s)\[([^\]]*)?\]\((\S+)(?: ["“](.+)["”])?\)$/i;
|
|
10001
10087
|
|
|
10002
|
-
function ownKeys$
|
|
10003
|
-
function _objectSpread$
|
|
10088
|
+
function ownKeys$8(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; }
|
|
10089
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10004
10090
|
var linkInputRule = function linkInputRule(config) {
|
|
10005
10091
|
var defaultMarkInputRule = markInputRule(config);
|
|
10006
10092
|
return new InputRule({
|
|
@@ -10021,7 +10107,7 @@ var Link = Link$1.extend({
|
|
|
10021
10107
|
inclusive: false,
|
|
10022
10108
|
addAttributes: function addAttributes() {
|
|
10023
10109
|
var _this$parent;
|
|
10024
|
-
return _objectSpread$
|
|
10110
|
+
return _objectSpread$8(_objectSpread$8({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
|
|
10025
10111
|
title: {
|
|
10026
10112
|
"default": null
|
|
10027
10113
|
}
|
|
@@ -10330,42 +10416,47 @@ var MentionList = /*#__PURE__*/function (_React$Component) {
|
|
|
10330
10416
|
var Menu = Dropdown.Menu,
|
|
10331
10417
|
MenuItem = Dropdown.MenuItem;
|
|
10332
10418
|
if (isEmpty$1(items)) {
|
|
10333
|
-
return /*#__PURE__*/
|
|
10334
|
-
className: "neeto-editor-mentions__wrapper"
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10419
|
+
return /*#__PURE__*/jsx("div", {
|
|
10420
|
+
className: "neeto-editor-mentions__wrapper",
|
|
10421
|
+
children: /*#__PURE__*/jsx("p", {
|
|
10422
|
+
className: "neeto-editor-mentions__item",
|
|
10423
|
+
children: t("neetoEditor.error.noResults")
|
|
10424
|
+
})
|
|
10425
|
+
});
|
|
10338
10426
|
}
|
|
10339
|
-
return /*#__PURE__*/
|
|
10340
|
-
className: "neeto-ui-dropdown__popup"
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10427
|
+
return /*#__PURE__*/jsx("div", {
|
|
10428
|
+
className: "neeto-ui-dropdown__popup",
|
|
10429
|
+
children: /*#__PURE__*/jsx(Menu, {
|
|
10430
|
+
className: "neeto-editor-mentions__wrapper",
|
|
10431
|
+
"data-cy": "neeto-editor-mention-list",
|
|
10432
|
+
ref: this.mentionRef,
|
|
10433
|
+
children: items.map(function (_ref2, index) {
|
|
10434
|
+
var key = _ref2.key,
|
|
10435
|
+
name = _ref2.name,
|
|
10436
|
+
imageUrl = _ref2.imageUrl;
|
|
10437
|
+
return /*#__PURE__*/jsxs(MenuItem.Button, {
|
|
10438
|
+
"data-cy": "neeto-editor-mention-list-".concat(name),
|
|
10439
|
+
type: "button",
|
|
10440
|
+
className: classnames("neeto-editor-mentions__item", {
|
|
10441
|
+
active: index === selectedIndex
|
|
10442
|
+
}),
|
|
10443
|
+
onClick: function onClick() {
|
|
10444
|
+
return _this2.selectItem(index);
|
|
10445
|
+
},
|
|
10446
|
+
children: [/*#__PURE__*/jsx(Avatar, {
|
|
10447
|
+
size: "small",
|
|
10448
|
+
user: {
|
|
10449
|
+
name: name,
|
|
10450
|
+
imageUrl: imageUrl
|
|
10451
|
+
}
|
|
10452
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
10453
|
+
style: "body2",
|
|
10454
|
+
children: name
|
|
10455
|
+
})]
|
|
10456
|
+
}, key);
|
|
10457
|
+
})
|
|
10458
|
+
})
|
|
10459
|
+
});
|
|
10369
10460
|
}
|
|
10370
10461
|
}]);
|
|
10371
10462
|
}(React__default.Component);
|
|
@@ -10385,8 +10476,8 @@ var createMentionSuggestions = function createMentionSuggestions() {
|
|
|
10385
10476
|
};
|
|
10386
10477
|
|
|
10387
10478
|
var _excluded$3 = ["suggestion"];
|
|
10388
|
-
function ownKeys$
|
|
10389
|
-
function _objectSpread$
|
|
10479
|
+
function ownKeys$7(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; }
|
|
10480
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10390
10481
|
var suggestion$1 = {
|
|
10391
10482
|
render: function render() {
|
|
10392
10483
|
var reactRenderer;
|
|
@@ -10462,8 +10553,8 @@ var Mention = {
|
|
|
10462
10553
|
var _ref3$suggestion = _ref3.suggestion,
|
|
10463
10554
|
suggestionConfig = _ref3$suggestion === void 0 ? {} : _ref3$suggestion,
|
|
10464
10555
|
otherConfig = _objectWithoutProperties(_ref3, _excluded$3);
|
|
10465
|
-
return Mentions.configure(_objectSpread$
|
|
10466
|
-
suggestion: _objectSpread$
|
|
10556
|
+
return Mentions.configure(_objectSpread$7(_objectSpread$7({}, otherConfig), {}, {
|
|
10557
|
+
suggestion: _objectSpread$7(_objectSpread$7({}, suggestion$1), suggestionConfig)
|
|
10467
10558
|
}));
|
|
10468
10559
|
}
|
|
10469
10560
|
};
|
|
@@ -10561,6 +10652,8 @@ var SelectionDecoration = Document.extend({
|
|
|
10561
10652
|
}
|
|
10562
10653
|
});
|
|
10563
10654
|
|
|
10655
|
+
function ownKeys$6(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; }
|
|
10656
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10564
10657
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10565
10658
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10566
10659
|
var Menu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -10677,47 +10770,48 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
10677
10770
|
activeMenuIndex = _this$props6.activeMenuIndex;
|
|
10678
10771
|
var selectedIndex = this.state.selectedIndex;
|
|
10679
10772
|
var isCurrentMenuActive = menuIndex === activeMenuIndex;
|
|
10680
|
-
return /*#__PURE__*/
|
|
10773
|
+
return /*#__PURE__*/jsx("div", {
|
|
10681
10774
|
className: "neeto-editor-slash-commands__wrapper",
|
|
10682
|
-
ref: this.menuRef
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10775
|
+
ref: this.menuRef,
|
|
10776
|
+
children: items.map(function (item, index) {
|
|
10777
|
+
var isLeafNode = isNotPresent(item.items);
|
|
10778
|
+
var nodeElement = /*#__PURE__*/createElement(MenuItem, {
|
|
10779
|
+
index: index,
|
|
10780
|
+
item: item,
|
|
10781
|
+
key: item.title,
|
|
10782
|
+
selectItem: function selectItem() {
|
|
10783
|
+
return isLeafNode && _this2.selectItem(index);
|
|
10784
|
+
},
|
|
10785
|
+
selectedIndex: isCurrentMenuActive ? selectedIndex : -1,
|
|
10786
|
+
onHover: function onHover() {
|
|
10787
|
+
return _this2.setState({
|
|
10788
|
+
selectedIndex: index
|
|
10789
|
+
});
|
|
10790
|
+
}
|
|
10791
|
+
});
|
|
10792
|
+
if (isLeafNode) return nodeElement;
|
|
10793
|
+
return /*#__PURE__*/jsx(Tippy, {
|
|
10794
|
+
interactive: true,
|
|
10795
|
+
placement: "right",
|
|
10796
|
+
visible: selectedIndex === index,
|
|
10797
|
+
content: /*#__PURE__*/jsx(Menu, _objectSpread$6(_objectSpread$6({}, _this2.props), {}, {
|
|
10798
|
+
items: item.items,
|
|
10799
|
+
menuIndex: menuIndex + 1
|
|
10800
|
+
})),
|
|
10801
|
+
onCreate: function onCreate(_ref) {
|
|
10802
|
+
var popper = _ref.popper;
|
|
10803
|
+
return popper.style.width = "max-content";
|
|
10804
|
+
},
|
|
10805
|
+
onHide: function onHide() {
|
|
10806
|
+
_this2.isSubmenuOpened = false;
|
|
10807
|
+
},
|
|
10808
|
+
onShow: function onShow() {
|
|
10809
|
+
_this2.isSubmenuOpened = true;
|
|
10810
|
+
},
|
|
10811
|
+
children: nodeElement
|
|
10812
|
+
}, item.title);
|
|
10813
|
+
})
|
|
10814
|
+
});
|
|
10721
10815
|
}
|
|
10722
10816
|
}]);
|
|
10723
10817
|
}(React__default.Component); // eslint-disable-next-line react/display-name
|
|
@@ -10728,25 +10822,31 @@ var MenuItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
10728
10822
|
selectItem = _ref2.selectItem,
|
|
10729
10823
|
onHover = _ref2.onHover;
|
|
10730
10824
|
var Icon = item.Icon;
|
|
10731
|
-
return /*#__PURE__*/
|
|
10825
|
+
return /*#__PURE__*/jsxs("div", {
|
|
10732
10826
|
"data-cy": "neeto-editor-command-list-item-".concat(index),
|
|
10733
10827
|
ref: ref,
|
|
10734
10828
|
className: classnames("neeto-editor-slash-commands__item", {
|
|
10735
10829
|
active: index === selectedIndex
|
|
10736
10830
|
}),
|
|
10737
10831
|
onClick: selectItem,
|
|
10738
|
-
onMouseEnter: onHover
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10832
|
+
onMouseEnter: onHover,
|
|
10833
|
+
children: [Icon && /*#__PURE__*/jsx(Icon, {
|
|
10834
|
+
size: 20
|
|
10835
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
10836
|
+
className: "neeto-editor-slash-commands__item-content",
|
|
10837
|
+
children: [/*#__PURE__*/jsx("h5", {
|
|
10838
|
+
"data-cy": "neeto-editor-command-list-item-block-heading",
|
|
10839
|
+
children: item.title
|
|
10840
|
+
}), /*#__PURE__*/jsx("p", {
|
|
10841
|
+
"data-cy": "neeto-editor-command-list-item-block-description",
|
|
10842
|
+
children: item.description
|
|
10843
|
+
})]
|
|
10844
|
+
})]
|
|
10845
|
+
});
|
|
10748
10846
|
});
|
|
10749
10847
|
|
|
10848
|
+
function ownKeys$5(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; }
|
|
10849
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10750
10850
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10751
10851
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10752
10852
|
var CommandsList = /*#__PURE__*/function (_React$Component) {
|
|
@@ -10775,7 +10875,7 @@ var CommandsList = /*#__PURE__*/function (_React$Component) {
|
|
|
10775
10875
|
return _createClass(CommandsList, [{
|
|
10776
10876
|
key: "render",
|
|
10777
10877
|
value: function render() {
|
|
10778
|
-
return /*#__PURE__*/
|
|
10878
|
+
return /*#__PURE__*/jsx(Menu, _objectSpread$5(_objectSpread$5({}, this.props), {}, {
|
|
10779
10879
|
activeMenuIndex: this.state.activeMenuIndex,
|
|
10780
10880
|
items: this.props.items,
|
|
10781
10881
|
menuIndex: 0,
|
|
@@ -11705,10 +11805,10 @@ var CellSelection = class _CellSelection extends Selection {
|
|
|
11705
11805
|
}
|
|
11706
11806
|
rowContent.push(cell);
|
|
11707
11807
|
}
|
|
11708
|
-
rows.push(table.child(row).copy(Fragment.from(rowContent)));
|
|
11808
|
+
rows.push(table.child(row).copy(Fragment$1.from(rowContent)));
|
|
11709
11809
|
}
|
|
11710
11810
|
const fragment = this.isColSelection() && this.isRowSelection() ? table : rows;
|
|
11711
|
-
return new Slice(Fragment.from(fragment), 1, 1);
|
|
11811
|
+
return new Slice(Fragment$1.from(fragment), 1, 1);
|
|
11712
11812
|
}
|
|
11713
11813
|
replace(tr, content = Slice.empty) {
|
|
11714
11814
|
const mapFrom = tr.steps.length, ranges = this.ranges;
|
|
@@ -11728,7 +11828,7 @@ var CellSelection = class _CellSelection extends Selection {
|
|
|
11728
11828
|
tr.setSelection(sel);
|
|
11729
11829
|
}
|
|
11730
11830
|
replaceWith(tr, node) {
|
|
11731
|
-
this.replace(tr, new Slice(Fragment.from(node), 0, 0));
|
|
11831
|
+
this.replace(tr, new Slice(Fragment$1.from(node), 0, 0));
|
|
11732
11832
|
}
|
|
11733
11833
|
forEachCell(f) {
|
|
11734
11834
|
const table = this.$anchorCell.node(-1);
|
|
@@ -12087,14 +12187,14 @@ function ensureRectangular(schema, rows) {
|
|
|
12087
12187
|
width = Math.max(width, widths[r]);
|
|
12088
12188
|
for (let r = 0; r < widths.length; r++) {
|
|
12089
12189
|
if (r >= rows.length)
|
|
12090
|
-
rows.push(Fragment.empty);
|
|
12190
|
+
rows.push(Fragment$1.empty);
|
|
12091
12191
|
if (widths[r] < width) {
|
|
12092
12192
|
const empty = tableNodeTypes(schema).cell.createAndFill();
|
|
12093
12193
|
const cells = [];
|
|
12094
12194
|
for (let i = widths[r]; i < width; i++) {
|
|
12095
12195
|
cells.push(empty);
|
|
12096
12196
|
}
|
|
12097
|
-
rows[r] = rows[r].append(Fragment.from(cells));
|
|
12197
|
+
rows[r] = rows[r].append(Fragment$1.from(cells));
|
|
12098
12198
|
}
|
|
12099
12199
|
}
|
|
12100
12200
|
return { height: rows.length, width, rows };
|
|
@@ -12126,7 +12226,7 @@ function clipCells({ width, height, rows }, newWidth, newHeight) {
|
|
|
12126
12226
|
for (let j = 1; j < cell.attrs.rowspan; j++)
|
|
12127
12227
|
added[row + j] = (added[row + j] || 0) + cell.attrs.colspan;
|
|
12128
12228
|
}
|
|
12129
|
-
newRows.push(Fragment.from(cells));
|
|
12229
|
+
newRows.push(Fragment$1.from(cells));
|
|
12130
12230
|
}
|
|
12131
12231
|
rows = newRows;
|
|
12132
12232
|
width = newWidth;
|
|
@@ -12147,7 +12247,7 @@ function clipCells({ width, height, rows }, newWidth, newHeight) {
|
|
|
12147
12247
|
);
|
|
12148
12248
|
cells.push(cell);
|
|
12149
12249
|
}
|
|
12150
|
-
newRows.push(Fragment.from(cells));
|
|
12250
|
+
newRows.push(Fragment$1.from(cells));
|
|
12151
12251
|
}
|
|
12152
12252
|
rows = newRows;
|
|
12153
12253
|
height = newHeight;
|
|
@@ -12182,7 +12282,7 @@ function growTable(tr, map, table, start, width, height, mapFrom) {
|
|
|
12182
12282
|
header ? emptyHead || (emptyHead = types.header_cell.createAndFill()) : empty || (empty = types.cell.createAndFill())
|
|
12183
12283
|
);
|
|
12184
12284
|
}
|
|
12185
|
-
const emptyRow = types.row.create(null, Fragment.from(cells)), rows = [];
|
|
12285
|
+
const emptyRow = types.row.create(null, Fragment$1.from(cells)), rows = [];
|
|
12186
12286
|
for (let i = map.height; i < height; i++)
|
|
12187
12287
|
rows.push(emptyRow);
|
|
12188
12288
|
tr.insert(tr.mapping.slice(mapFrom).map(start + table.nodeSize - 2), rows);
|
|
@@ -12413,7 +12513,7 @@ function handlePaste(view, _, slice) {
|
|
|
12413
12513
|
width: 1,
|
|
12414
12514
|
height: 1,
|
|
12415
12515
|
rows: [
|
|
12416
|
-
Fragment.from(
|
|
12516
|
+
Fragment$1.from(
|
|
12417
12517
|
fitSlice(tableNodeTypes(view.state.schema).cell, slice)
|
|
12418
12518
|
)
|
|
12419
12519
|
]
|
|
@@ -13099,7 +13199,7 @@ function mergeCells(state, dispatch) {
|
|
|
13099
13199
|
if (dispatch) {
|
|
13100
13200
|
const tr = state.tr;
|
|
13101
13201
|
const seen = {};
|
|
13102
|
-
let content = Fragment.empty;
|
|
13202
|
+
let content = Fragment$1.empty;
|
|
13103
13203
|
let mergedPos;
|
|
13104
13204
|
let mergedCell;
|
|
13105
13205
|
for (let row = rect.top; row < rect.bottom; row++) {
|
|
@@ -14084,42 +14184,45 @@ var VideoComponent = function VideoComponent(_ref) {
|
|
|
14084
14184
|
editor.commands.focus();
|
|
14085
14185
|
};
|
|
14086
14186
|
if (isNotPresent(src)) return null;
|
|
14087
|
-
return /*#__PURE__*/
|
|
14088
|
-
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align)
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
|
|
14092
|
-
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14187
|
+
return /*#__PURE__*/jsx(NodeViewWrapper, {
|
|
14188
|
+
className: "neeto-editor__image-wrapper neeto-editor__image--".concat(align),
|
|
14189
|
+
children: /*#__PURE__*/jsxs("figure", {
|
|
14190
|
+
ref: figureRef,
|
|
14191
|
+
children: [/*#__PURE__*/jsx(Menu$1, {
|
|
14192
|
+
align: align,
|
|
14193
|
+
deleteNode: deleteNode,
|
|
14194
|
+
editor: editor,
|
|
14195
|
+
updateAttributes: updateAttributes
|
|
14196
|
+
}), /*#__PURE__*/jsx(Resizable, {
|
|
14197
|
+
lockAspectRatio: true,
|
|
14198
|
+
className: "neeto-editor__image",
|
|
14199
|
+
size: {
|
|
14200
|
+
height: height,
|
|
14201
|
+
width: width
|
|
14202
|
+
},
|
|
14203
|
+
onResizeStop: handleResize,
|
|
14204
|
+
onResize: function onResize(_event, _direction, ref) {
|
|
14205
|
+
return setCaptionWidth(ref.offsetWidth);
|
|
14206
|
+
},
|
|
14207
|
+
children: /*#__PURE__*/jsx("video", _objectSpread$1(_objectSpread$1({
|
|
14208
|
+
controls: true
|
|
14209
|
+
}, _objectSpread$1(_objectSpread$1({}, node.attrs), {}, {
|
|
14210
|
+
src: src
|
|
14211
|
+
})), {}, {
|
|
14212
|
+
alt: caption,
|
|
14213
|
+
preload: "metadata"
|
|
14214
|
+
}))
|
|
14215
|
+
}), /*#__PURE__*/jsx(NodeViewContent, {
|
|
14216
|
+
as: "figcaption",
|
|
14217
|
+
className: classnames({
|
|
14218
|
+
"is-empty": isEmpty$1(caption)
|
|
14219
|
+
}),
|
|
14220
|
+
style: {
|
|
14221
|
+
width: "".concat(captionWidth, "px")
|
|
14222
|
+
}
|
|
14223
|
+
})]
|
|
14224
|
+
})
|
|
14225
|
+
});
|
|
14123
14226
|
};
|
|
14124
14227
|
|
|
14125
14228
|
var _excluded$1 = ["caption"];
|
|
@@ -14403,7 +14506,7 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
14403
14506
|
return editor === null || editor === void 0 ? void 0 : editor.isActive("table");
|
|
14404
14507
|
}, [editor]);
|
|
14405
14508
|
if (!editor) return null;
|
|
14406
|
-
return /*#__PURE__*/
|
|
14509
|
+
return /*#__PURE__*/jsx(BubbleMenu, {
|
|
14407
14510
|
editor: editor,
|
|
14408
14511
|
shouldShow: shouldShow,
|
|
14409
14512
|
className: "neeto-editor-bubble-menu",
|
|
@@ -14421,28 +14524,29 @@ var TableActionMenu = function TableActionMenu(_ref) {
|
|
|
14421
14524
|
getReferenceClientRect: getReferenceClientRect,
|
|
14422
14525
|
plugins: [sticky],
|
|
14423
14526
|
sticky: "popper"
|
|
14424
|
-
}
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14527
|
+
},
|
|
14528
|
+
children: shouldShow && tableActions({
|
|
14529
|
+
editor: editor
|
|
14530
|
+
}).map(function (_ref3) {
|
|
14531
|
+
var icon = _ref3.icon,
|
|
14532
|
+
label = _ref3.label,
|
|
14533
|
+
command = _ref3.command,
|
|
14534
|
+
isHidden = _ref3.isHidden;
|
|
14535
|
+
return !isHidden && /*#__PURE__*/createElement(Button, {
|
|
14536
|
+
icon: icon,
|
|
14537
|
+
iconSize: 18,
|
|
14538
|
+
key: label,
|
|
14539
|
+
size: "small",
|
|
14540
|
+
style: "text",
|
|
14541
|
+
tooltipProps: {
|
|
14542
|
+
content: label,
|
|
14543
|
+
position: "top",
|
|
14544
|
+
delay: [500]
|
|
14545
|
+
},
|
|
14546
|
+
onClick: command
|
|
14547
|
+
});
|
|
14548
|
+
})
|
|
14549
|
+
});
|
|
14446
14550
|
};
|
|
14447
14551
|
|
|
14448
14552
|
var LinkPopOver = function LinkPopOver(_ref) {
|
|
@@ -14556,7 +14660,7 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
14556
14660
|
}
|
|
14557
14661
|
}, [view === null || view === void 0 || (_view$state2 = view.state) === null || _view$state2 === void 0 || (_view$state2 = _view$state2.selection) === null || _view$state2 === void 0 || (_view$state2 = _view$state2.$from) === null || _view$state2 === void 0 ? void 0 : _view$state2.pos, isEditing]);
|
|
14558
14662
|
var renderEditingMode = function renderEditingMode() {
|
|
14559
|
-
return /*#__PURE__*/
|
|
14663
|
+
return /*#__PURE__*/jsx(Form, {
|
|
14560
14664
|
formikProps: {
|
|
14561
14665
|
initialValues: {
|
|
14562
14666
|
textContent: initialTextContent,
|
|
@@ -14565,96 +14669,108 @@ var LinkPopOver = function LinkPopOver(_ref) {
|
|
|
14565
14669
|
},
|
|
14566
14670
|
onSubmit: handleSubmit,
|
|
14567
14671
|
validationSchema: LINK_VALIDATION_SCHEMA
|
|
14672
|
+
},
|
|
14673
|
+
children: function children(_ref5) {
|
|
14674
|
+
var dirty = _ref5.dirty,
|
|
14675
|
+
isSubmitting = _ref5.isSubmitting,
|
|
14676
|
+
setFieldValue = _ref5.setFieldValue,
|
|
14677
|
+
values = _ref5.values;
|
|
14678
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
14679
|
+
children: [/*#__PURE__*/jsx(Input$1, {
|
|
14680
|
+
required: true,
|
|
14681
|
+
"data-cy": "neeto-editor-edit-link-text-input",
|
|
14682
|
+
label: t("neetoEditor.common.text"),
|
|
14683
|
+
name: "textContent",
|
|
14684
|
+
placeholder: t("neetoEditor.placeholders.enterText"),
|
|
14685
|
+
style: {
|
|
14686
|
+
width: "250px"
|
|
14687
|
+
},
|
|
14688
|
+
onKeyDown: handleKeyDown
|
|
14689
|
+
}), /*#__PURE__*/jsx(Input$1, {
|
|
14690
|
+
autoFocus: true,
|
|
14691
|
+
required: true,
|
|
14692
|
+
className: "ne-link-popover__url-input",
|
|
14693
|
+
"data-cy": "neeto-editor-edit-link-url-input",
|
|
14694
|
+
label: t("neetoEditor.common.url"),
|
|
14695
|
+
name: "urlString",
|
|
14696
|
+
placeholder: t("neetoEditor.placeholders.url"),
|
|
14697
|
+
style: {
|
|
14698
|
+
width: "250px"
|
|
14699
|
+
},
|
|
14700
|
+
onKeyDown: handleKeyDown
|
|
14701
|
+
}), /*#__PURE__*/jsx(Checkbox, {
|
|
14702
|
+
checked: values.openInNewTab,
|
|
14703
|
+
className: "ne-link-popover__checkbox",
|
|
14704
|
+
label: t("neetoEditor.common.openInNewTab"),
|
|
14705
|
+
onChange: function onChange() {
|
|
14706
|
+
setFieldValue("openInNewTab", !values.openInNewTab);
|
|
14707
|
+
}
|
|
14708
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
14709
|
+
className: "ne-link-popover__edit-prompt-buttons",
|
|
14710
|
+
children: [/*#__PURE__*/jsx(Button, {
|
|
14711
|
+
"data-cy": "neeto-editor-edit-link",
|
|
14712
|
+
disabled: !dirty,
|
|
14713
|
+
label: t("neetoEditor.menu.link"),
|
|
14714
|
+
loading: isSubmitting,
|
|
14715
|
+
size: "small",
|
|
14716
|
+
type: "submit"
|
|
14717
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
14718
|
+
"data-cy": "neeto-editor-edit-link-cancel",
|
|
14719
|
+
label: t("neetoEditor.common.cancel"),
|
|
14720
|
+
size: "small",
|
|
14721
|
+
style: "text",
|
|
14722
|
+
onClick: function onClick() {
|
|
14723
|
+
return setIsEditing(false);
|
|
14724
|
+
}
|
|
14725
|
+
})]
|
|
14726
|
+
})]
|
|
14727
|
+
});
|
|
14568
14728
|
}
|
|
14569
|
-
}
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
},
|
|
14583
|
-
onKeyDown: handleKeyDown
|
|
14584
|
-
}), /*#__PURE__*/React.createElement(Input$1, {
|
|
14585
|
-
autoFocus: true,
|
|
14586
|
-
required: true,
|
|
14587
|
-
className: "ne-link-popover__url-input",
|
|
14588
|
-
"data-cy": "neeto-editor-edit-link-url-input",
|
|
14589
|
-
label: t("neetoEditor.common.url"),
|
|
14590
|
-
name: "urlString",
|
|
14591
|
-
placeholder: t("neetoEditor.placeholders.url"),
|
|
14592
|
-
style: {
|
|
14593
|
-
width: "250px"
|
|
14594
|
-
},
|
|
14595
|
-
onKeyDown: handleKeyDown
|
|
14596
|
-
}), /*#__PURE__*/React.createElement(Checkbox, {
|
|
14597
|
-
checked: values.openInNewTab,
|
|
14598
|
-
className: "ne-link-popover__checkbox",
|
|
14599
|
-
label: t("neetoEditor.common.openInNewTab"),
|
|
14600
|
-
onChange: function onChange() {
|
|
14601
|
-
setFieldValue("openInNewTab", !values.openInNewTab);
|
|
14602
|
-
}
|
|
14603
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
14604
|
-
className: "ne-link-popover__edit-prompt-buttons"
|
|
14605
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
14606
|
-
"data-cy": "neeto-editor-edit-link",
|
|
14607
|
-
disabled: !dirty,
|
|
14608
|
-
label: t("neetoEditor.menu.link"),
|
|
14609
|
-
loading: isSubmitting,
|
|
14610
|
-
size: "small",
|
|
14611
|
-
type: "submit"
|
|
14612
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
14613
|
-
"data-cy": "neeto-editor-edit-link-cancel",
|
|
14614
|
-
label: t("neetoEditor.common.cancel"),
|
|
14729
|
+
});
|
|
14730
|
+
};
|
|
14731
|
+
var renderViewMode = function renderViewMode() {
|
|
14732
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
14733
|
+
children: [/*#__PURE__*/jsx("a", {
|
|
14734
|
+
href: linkAttributes === null || linkAttributes === void 0 ? void 0 : linkAttributes.href,
|
|
14735
|
+
rel: "noreferrer",
|
|
14736
|
+
target: "_blank",
|
|
14737
|
+
children: linkAttributes === null || linkAttributes === void 0 ? void 0 : linkAttributes.href
|
|
14738
|
+
}), " - ", /*#__PURE__*/jsx(Button, {
|
|
14739
|
+
className: "ne-link-popover__option-button",
|
|
14740
|
+
"data-cy": "neeto-editor-link-popover-edit",
|
|
14741
|
+
label: t("neetoEditor.common.edit"),
|
|
14615
14742
|
size: "small",
|
|
14616
|
-
style: "
|
|
14743
|
+
style: "link",
|
|
14617
14744
|
onClick: function onClick() {
|
|
14618
|
-
return setIsEditing(
|
|
14619
|
-
}
|
|
14620
|
-
})
|
|
14745
|
+
return setIsEditing(true);
|
|
14746
|
+
}
|
|
14747
|
+
}), /*#__PURE__*/jsx("span", {
|
|
14748
|
+
children: "|"
|
|
14749
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
14750
|
+
className: "ne-link-popover__option-button",
|
|
14751
|
+
"data-cy": "neeto-editor-link-popover-unlink",
|
|
14752
|
+
label: t("neetoEditor.common.unlink"),
|
|
14753
|
+
size: "small",
|
|
14754
|
+
style: "link",
|
|
14755
|
+
onClick: handleUnlink
|
|
14756
|
+
})]
|
|
14621
14757
|
});
|
|
14622
14758
|
};
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
className: "ne-link-popover__option-button",
|
|
14630
|
-
"data-cy": "neeto-editor-link-popover-edit",
|
|
14631
|
-
label: t("neetoEditor.common.edit"),
|
|
14632
|
-
size: "small",
|
|
14633
|
-
style: "link",
|
|
14634
|
-
onClick: function onClick() {
|
|
14635
|
-
return setIsEditing(true);
|
|
14759
|
+
return /*#__PURE__*/createPortal(isLinkActive ? /*#__PURE__*/jsxs(Fragment, {
|
|
14760
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
14761
|
+
className: "ne-link-arrow fade-in",
|
|
14762
|
+
style: {
|
|
14763
|
+
top: arrowPosition.top,
|
|
14764
|
+
left: arrowPosition.left
|
|
14636
14765
|
}
|
|
14637
|
-
}), /*#__PURE__*/
|
|
14638
|
-
className: "ne-link-
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
};
|
|
14646
|
-
return /*#__PURE__*/createPortal(isLinkActive ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14647
|
-
className: "ne-link-arrow fade-in",
|
|
14648
|
-
style: {
|
|
14649
|
-
top: arrowPosition.top,
|
|
14650
|
-
left: arrowPosition.left
|
|
14651
|
-
}
|
|
14652
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
14653
|
-
className: "ne-link-popover fade-in",
|
|
14654
|
-
id: "ne-link-view-popover",
|
|
14655
|
-
ref: popoverRef,
|
|
14656
|
-
style: popoverStyle
|
|
14657
|
-
}, isEditing ? renderEditingMode() : renderViewMode())) : null, document.body);
|
|
14766
|
+
}), /*#__PURE__*/jsx("div", {
|
|
14767
|
+
className: "ne-link-popover fade-in",
|
|
14768
|
+
id: "ne-link-view-popover",
|
|
14769
|
+
ref: popoverRef,
|
|
14770
|
+
style: popoverStyle,
|
|
14771
|
+
children: isEditing ? renderEditingMode() : renderViewMode()
|
|
14772
|
+
})]
|
|
14773
|
+
}) : null, document.body);
|
|
14658
14774
|
};
|
|
14659
14775
|
|
|
14660
14776
|
var _excluded = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "errorWrapperClassName", "contentAttributes", "menuClassName", "attachmentsClassName", "isMenuIndependent", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "openImageInNewTab", "openLinkInNewTab"];
|
|
@@ -14838,64 +14954,69 @@ var Editor = function Editor(_ref, ref) {
|
|
|
14838
14954
|
if (!this.docView) return;
|
|
14839
14955
|
this.updateStateInner(state, this.state.plugins !== state.plugins);
|
|
14840
14956
|
};
|
|
14841
|
-
return /*#__PURE__*/
|
|
14957
|
+
return /*#__PURE__*/jsxs("div", {
|
|
14842
14958
|
ref: wrapperRef,
|
|
14843
|
-
className: classnames(_defineProperty(_defineProperty({}, className, className), "ne-attachments__wrapper", isAttachmentsActive))
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14860
|
-
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14895
|
-
|
|
14896
|
-
|
|
14897
|
-
|
|
14898
|
-
|
|
14959
|
+
className: classnames(_defineProperty(_defineProperty({}, className, className), "ne-attachments__wrapper", isAttachmentsActive)),
|
|
14960
|
+
children: [label && /*#__PURE__*/jsx(Label, {
|
|
14961
|
+
required: required,
|
|
14962
|
+
className: "neeto-ui-mb-2",
|
|
14963
|
+
"data-cy": "".concat(slugify(label), "-editor-label"),
|
|
14964
|
+
children: label
|
|
14965
|
+
}), /*#__PURE__*/jsx(ErrorWrapper$1, {
|
|
14966
|
+
error: error,
|
|
14967
|
+
className: errorWrapperClassName,
|
|
14968
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
14969
|
+
children: [/*#__PURE__*/jsx(Menu$3, {
|
|
14970
|
+
addonCommands: addonCommands,
|
|
14971
|
+
addons: addons,
|
|
14972
|
+
attachmentProps: attachmentProps,
|
|
14973
|
+
defaults: defaults,
|
|
14974
|
+
editor: editor,
|
|
14975
|
+
editorSecrets: editorSecrets,
|
|
14976
|
+
mentions: mentions,
|
|
14977
|
+
menuType: menuType,
|
|
14978
|
+
openLinkInNewTab: openLinkInNewTab,
|
|
14979
|
+
tooltips: tooltips,
|
|
14980
|
+
variables: variables,
|
|
14981
|
+
className: menuClassName,
|
|
14982
|
+
isIndependant: isMenuIndependent
|
|
14983
|
+
}), children, /*#__PURE__*/jsx(EditorContent, _objectSpread({}, _objectSpread({
|
|
14984
|
+
editor: editor
|
|
14985
|
+
}, otherProps))), isMediaUploaderActive && /*#__PURE__*/jsx(MediaUploader, {
|
|
14986
|
+
editor: editor,
|
|
14987
|
+
mediaUploader: mediaUploader,
|
|
14988
|
+
unsplashApiKey: editorSecrets === null || editorSecrets === void 0 ? void 0 : editorSecrets.unsplash,
|
|
14989
|
+
onClose: function onClose() {
|
|
14990
|
+
return setMediaUploader({
|
|
14991
|
+
image: false,
|
|
14992
|
+
video: false
|
|
14993
|
+
});
|
|
14994
|
+
}
|
|
14995
|
+
}), isVideoEmbedActive && /*#__PURE__*/jsx(EmbedOption, {
|
|
14996
|
+
editor: editor,
|
|
14997
|
+
isEmbedModalOpen: isEmbedModalOpen,
|
|
14998
|
+
setIsEmbedModalOpen: setIsEmbedModalOpen
|
|
14999
|
+
}), isAttachmentsActive && /*#__PURE__*/jsx(Attachments, {
|
|
15000
|
+
attachments: attachments,
|
|
15001
|
+
config: attachmentsConfig,
|
|
15002
|
+
dragDropRef: wrapperRef,
|
|
15003
|
+
isIndependent: false,
|
|
15004
|
+
ref: addAttachmentsRef,
|
|
15005
|
+
setIsUploading: setIsAttachmentsUploading,
|
|
15006
|
+
className: classnames("ne-attachments--integrated", _defineProperty({}, attachmentsClassName, attachmentsClassName)),
|
|
15007
|
+
onChange: onChangeAttachments
|
|
15008
|
+
}), (editor === null || editor === void 0 ? void 0 : editor.isActive("link")) && /*#__PURE__*/jsx(LinkPopOver, {
|
|
15009
|
+
editor: editor
|
|
15010
|
+
}), /*#__PURE__*/jsx(TableActionMenu, {
|
|
15011
|
+
editor: editor,
|
|
15012
|
+
appendTo: wrapperRef
|
|
15013
|
+
}), /*#__PURE__*/jsx(CharacterCountWrapper, {
|
|
15014
|
+
editor: editor,
|
|
15015
|
+
isActive: isCharacterCountActive
|
|
15016
|
+
})]
|
|
15017
|
+
})
|
|
15018
|
+
})]
|
|
15019
|
+
});
|
|
14899
15020
|
};
|
|
14900
15021
|
Editor.displayName = "NeetoEditor";
|
|
14901
15022
|
var Editor$1 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Editor));
|