@bigbinary/neeto-editor 1.47.120 → 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.
Files changed (96) hide show
  1. package/dist/Editor.js +60 -45
  2. package/dist/Editor.js.map +1 -1
  3. package/dist/EditorContent.js +3 -3
  4. package/dist/FormikEditor.js +8 -9
  5. package/dist/FormikEditor.js.map +1 -1
  6. package/dist/Menu.js +5 -7
  7. package/dist/Menu.js.map +1 -1
  8. package/dist/chunk-Bmhz4YEy.js +16777 -0
  9. package/dist/chunk-Bmhz4YEy.js.map +1 -0
  10. package/dist/{chunk-W5-WB6Fb.js → chunk-BwyS6si8.js} +3 -3
  11. package/dist/{chunk-W5-WB6Fb.js.map → chunk-BwyS6si8.js.map} +1 -1
  12. package/dist/{chunk-CBN5naeP.js → chunk-C5svTfyQ.js} +311 -146
  13. package/dist/chunk-C5svTfyQ.js.map +1 -0
  14. package/dist/{chunk-BmY70WOK.js → chunk-CHpkesFt.js} +10 -11
  15. package/dist/chunk-CHpkesFt.js.map +1 -0
  16. package/dist/{chunk-B0_4S6ol.js → chunk-COgPAsPy.js} +10 -11
  17. package/dist/chunk-COgPAsPy.js.map +1 -0
  18. package/dist/chunk-ChNzXvhJ.js +20357 -0
  19. package/dist/chunk-ChNzXvhJ.js.map +1 -0
  20. package/dist/{chunk-bG6hOjuU.js → chunk-CnsiyshR.js} +2 -2
  21. package/dist/{chunk-bG6hOjuU.js.map → chunk-CnsiyshR.js.map} +1 -1
  22. package/dist/{chunk-BR5ZkH7J.js → chunk-Qg4uQqj3.js} +2 -2
  23. package/dist/{chunk-BR5ZkH7J.js.map → chunk-Qg4uQqj3.js.map} +1 -1
  24. package/dist/{chunk-D_B4kuIc.js → chunk-aCTMceVU.js} +3 -3
  25. package/dist/{chunk-D_B4kuIc.js.map → chunk-aCTMceVU.js.map} +1 -1
  26. package/dist/{chunk-9TNlsObP.js → chunk-fDmcpgqx.js} +2 -2
  27. package/dist/{chunk-9TNlsObP.js.map → chunk-fDmcpgqx.js.map} +1 -1
  28. package/dist/cjs/Editor.cjs.js +109 -94
  29. package/dist/cjs/Editor.cjs.js.map +1 -1
  30. package/dist/cjs/EditorContent.cjs.js +3 -3
  31. package/dist/cjs/FormikEditor.cjs.js +8 -9
  32. package/dist/cjs/FormikEditor.cjs.js.map +1 -1
  33. package/dist/cjs/Menu.cjs.js +5 -7
  34. package/dist/cjs/Menu.cjs.js.map +1 -1
  35. package/dist/cjs/{chunk-4ILtbNxB.cjs.js → chunk-BGvf6C3z.cjs.js} +2 -2
  36. package/dist/cjs/{chunk-4ILtbNxB.cjs.js.map → chunk-BGvf6C3z.cjs.js.map} +1 -1
  37. package/dist/cjs/{chunk-De3nCFAF.cjs.js → chunk-BKvkHB8E.cjs.js} +2 -1
  38. package/dist/cjs/{chunk-De3nCFAF.cjs.js.map → chunk-BKvkHB8E.cjs.js.map} +1 -1
  39. package/dist/cjs/chunk-BXZTd0jZ.cjs.js +16844 -0
  40. package/dist/cjs/chunk-BXZTd0jZ.cjs.js.map +1 -0
  41. package/dist/cjs/{chunk-TrGAGew5.cjs.js → chunk-CesnwG-V.cjs.js} +3 -3
  42. package/dist/cjs/{chunk-TrGAGew5.cjs.js.map → chunk-CesnwG-V.cjs.js.map} +1 -1
  43. package/dist/cjs/chunk-DQoBksKy.cjs.js +20441 -0
  44. package/dist/cjs/chunk-DQoBksKy.cjs.js.map +1 -0
  45. package/dist/cjs/{chunk-DE_yHAbe.cjs.js → chunk-DS2JcxXk.cjs.js} +3 -3
  46. package/dist/cjs/{chunk-DE_yHAbe.cjs.js.map → chunk-DS2JcxXk.cjs.js.map} +1 -1
  47. package/dist/cjs/{chunk-JCA39oKB.cjs.js → chunk-DXsX8co9.cjs.js} +2 -2
  48. package/dist/cjs/{chunk-JCA39oKB.cjs.js.map → chunk-DXsX8co9.cjs.js.map} +1 -1
  49. package/dist/cjs/{chunk-BFfrwCXy.cjs.js → chunk-DoYRXWHQ.cjs.js} +10 -11
  50. package/dist/cjs/chunk-DoYRXWHQ.cjs.js.map +1 -0
  51. package/dist/cjs/{chunk-DNpQGCaK.cjs.js → chunk-DpqV12Vi.cjs.js} +10 -11
  52. package/dist/cjs/chunk-DpqV12Vi.cjs.js.map +1 -0
  53. package/dist/cjs/{chunk-eyfbjfPH.cjs.js → chunk-NqciyXN3.cjs.js} +312 -147
  54. package/dist/cjs/chunk-NqciyXN3.cjs.js.map +1 -0
  55. package/dist/cjs/index.cjs.js +9 -10
  56. package/dist/cjs/index.cjs.js.map +1 -1
  57. package/dist/cjs/utils.cjs.js +5 -5
  58. package/dist/cjs/v2/Editor.cjs.js +94 -79
  59. package/dist/cjs/v2/Editor.cjs.js.map +1 -1
  60. package/dist/cjs/v2/EditorContent.cjs.js +3 -3
  61. package/dist/cjs/v2/FormikEditor.cjs.js +7 -8
  62. package/dist/cjs/v2/FormikEditor.cjs.js.map +1 -1
  63. package/dist/cjs/v2/Menu.cjs.js +4 -6
  64. package/dist/cjs/v2/Menu.cjs.js.map +1 -1
  65. package/dist/cjs/v2/index.cjs.js +10 -11
  66. package/dist/cjs/v2/index.cjs.js.map +1 -1
  67. package/dist/cjs/v2/utils.cjs.js +5 -5
  68. package/dist/editor-stats.html +1 -1
  69. package/dist/index.js +9 -10
  70. package/dist/index.js.map +1 -1
  71. package/dist/utils.js +5 -5
  72. package/dist/v2/Editor.js +60 -45
  73. package/dist/v2/Editor.js.map +1 -1
  74. package/dist/v2/EditorContent.js +3 -3
  75. package/dist/v2/FormikEditor.js +7 -8
  76. package/dist/v2/FormikEditor.js.map +1 -1
  77. package/dist/v2/Menu.js +4 -6
  78. package/dist/v2/Menu.js.map +1 -1
  79. package/dist/v2/index.js +10 -11
  80. package/dist/v2/index.js.map +1 -1
  81. package/dist/v2/utils.js +5 -5
  82. package/package.json +24 -31
  83. package/dist/chunk-B0_4S6ol.js.map +0 -1
  84. package/dist/chunk-BLXUWWgi.js +0 -15671
  85. package/dist/chunk-BLXUWWgi.js.map +0 -1
  86. package/dist/chunk-BmY70WOK.js.map +0 -1
  87. package/dist/chunk-CBN5naeP.js.map +0 -1
  88. package/dist/chunk-Dj7lS7Cs.js +0 -16980
  89. package/dist/chunk-Dj7lS7Cs.js.map +0 -1
  90. package/dist/cjs/chunk-BFfrwCXy.cjs.js.map +0 -1
  91. package/dist/cjs/chunk-Cv0ocaVh.cjs.js +0 -15726
  92. package/dist/cjs/chunk-Cv0ocaVh.cjs.js.map +0 -1
  93. package/dist/cjs/chunk-DNpQGCaK.cjs.js.map +0 -1
  94. package/dist/cjs/chunk-DOxH3Agq.cjs.js +0 -17048
  95. package/dist/cjs/chunk-DOxH3Agq.cjs.js.map +0 -1
  96. package/dist/cjs/chunk-eyfbjfPH.cjs.js.map +0 -1
package/dist/Editor.js CHANGED
@@ -3,7 +3,7 @@ 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
5
  import React__default, { memo, useState, useRef, useCallback, useEffect, createElement, forwardRef, useImperativeHandle } from 'react';
6
- import { E as Extension, N as NodeViewWrapper, a as NodeViewContent, b as Node, R as ReactNodeViewRenderer, m as mergeAttributes, D as DecorationSet, c as Decoration, d as ReactRenderer, e as emojiPickerApi, f as markInputRule, I as InputRule, r as resetFocussedNode, h as highlightFocussedNode, P as PasteRule, B as BubbleMenu, i as getMarkType, j as getMarkRange, k as useEditor, l as useEditorState, n as EditorContent, o as EditorView } from './chunk-BLXUWWgi.js';
6
+ 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';
7
7
  import classnames from 'classnames';
8
8
  import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from './chunk-DDwycKmK.js';
9
9
  import { isNotPresent, findBy, isNotEmpty, isPresent, noop, slugify } from '@bigbinary/neeto-cist';
@@ -12,14 +12,14 @@ import Label from '@bigbinary/neetoui/Label';
12
12
  import { createPortal } from 'react-dom';
13
13
  import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc, equals } from 'ramda';
14
14
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
15
- import { B as BulletList$1, C as CodeBlockLowlight, S as Suggestion, R as Resizable, I as Italic$1, L as Link$1, s as scrollHandler, M as Mention$1, O as OrderedList$1, D as Document, f as fuzzySearch, T as Table$2, a as TaskList, b as TaskItem, c as CharacterCount, d as Code, H as Highlight$1, e as TextStyle, U as Underline$1, F as FocusClasses, g as StarterKit, h as TableRow, i as TableHeader, j as TableCell, k as Color, l as ListItem, m as Collaboration, n as CollaborationCursor, u as useFetchKbArticles, o as MODE, p as createArticleOptions, q as MODAL_LEFT_OFFSET, r as MODAL_TOP_OFFSET, t as MODAL_TRANSFORM_Y, v as MODAL_TRANSFORM_X, w as MODAL_BOTTOM_MARGIN, x as buildArticleFullUrl, y as CellSelection, z as useEditorWarnings, A as useDeletedArticles } from './chunk-Dj7lS7Cs.js';
15
+ 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, M as MODE, w as createArticleOptions, x as MODAL_LEFT_OFFSET, y as MODAL_TOP_OFFSET, z as MODAL_TRANSFORM_Y, A as MODAL_TRANSFORM_X, D as MODAL_BOTTOM_MARGIN, E as buildArticleFullUrl, G as useEditorWarnings, H as useDeletedArticles } from './chunk-Bmhz4YEy.js';
16
16
  import { n } from './chunk-C2dztUxs.js';
17
- import { b as buildLevelsFromOptions, v as validateAndFormatUrl, g as getEditorStyles, c as transformPastedHTML, d as clipboardTextParser, s as setInitialPosition } from './chunk-bG6hOjuU.js';
17
+ import { b as buildLevelsFromOptions, v as validateAndFormatUrl, g as getEditorStyles, c as transformPastedHTML, d as clipboardTextParser, s as setInitialPosition } from './chunk-CnsiyshR.js';
18
18
  import ReactDOM from 'react-dom/server';
19
- import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from './chunk-BR5ZkH7J.js';
19
+ import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from './chunk-Qg4uQqj3.js';
20
20
  import { L as LINK_VALIDATION_SCHEMA, D as DEFAULT_EDITOR_OPTIONS } from './chunk-CF5f8-fy.js';
21
21
  import Megaphone from '@bigbinary/neeto-icons/misc/Megaphone';
22
- import { C as CALLOUT_TYPES, E as EmojiPickerMenu, v as validateUrl, g as getLinkPopoverPosition, M as Menu$4, a as MenuDynamicVariables, b as MediaUploader, L as LinkAddPopOver } from './chunk-BmY70WOK.js';
22
+ import { C as CALLOUT_TYPES, E as EmojiPickerMenu, v as validateUrl, g as getLinkPopoverPosition, M as Menu$4, a as MenuDynamicVariables, b as MediaUploader, L as LinkAddPopOver } from './chunk-CHpkesFt.js';
23
23
  import Down from '@bigbinary/neeto-icons/Down';
24
24
  import Highlight from '@bigbinary/neeto-icons/Highlight';
25
25
  import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
@@ -28,10 +28,10 @@ import Input from '@bigbinary/neetoui/Input';
28
28
  import Button from '@bigbinary/neetoui/Button';
29
29
  import { useTranslation } from 'react-i18next';
30
30
  import { t } from 'i18next';
31
- import { n as PluginKey, P as Plugin, T as TextSelection } from './chunk-CBN5naeP.js';
31
+ import { m as PluginKey, P as Plugin, T as TextSelection } from './chunk-C5svTfyQ.js';
32
32
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
33
33
  import _regeneratorRuntime from '@babel/runtime/regenerator';
34
- import tippy, { sticky } from 'tippy.js';
34
+ import tippy from 'tippy.js';
35
35
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
36
36
  import _createClass from '@babel/runtime/helpers/createClass';
37
37
  import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
@@ -99,7 +99,6 @@ import '@tanstack/react-query';
99
99
  import 'yjs';
100
100
  import './chunk-BFTU3MAI.js';
101
101
  import 'yup';
102
- import 'tippy.js/dist/svg-arrow.css';
103
102
  import '@bigbinary/neeto-commons-frontend/utils';
104
103
  import '@bigbinary/neeto-icons/Check';
105
104
  import '@bigbinary/neeto-icons/Quote';
@@ -174,12 +173,20 @@ n(css$1,{});
174
173
  var CharacterCountWrapper = function CharacterCountWrapper(_ref) {
175
174
  var editor = _ref.editor,
176
175
  children = _ref.children;
176
+ var characters = useEditorState({
177
+ editor: editor,
178
+ selector: function selector(_ref2) {
179
+ var _editor$storage$chara;
180
+ var editor = _ref2.editor;
181
+ 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;
182
+ }
183
+ });
177
184
  if (!editor) return children;
178
185
  return /*#__PURE__*/jsxs(Fragment, {
179
186
  children: [children, /*#__PURE__*/jsxs("p", {
180
187
  className: "neeto-editor-character-count",
181
188
  "data-testid": "neeto-editor-character-count",
182
- children: [editor.storage.characterCount.characters(), " characters"]
189
+ children: [characters, " characters"]
183
190
  })]
184
191
  });
185
192
  };
@@ -264,7 +271,7 @@ var CalloutComponent = function CalloutComponent(_ref) {
264
271
  });
265
272
  };
266
273
 
267
- var Callout = Node.create({
274
+ var Callout = Node3.create({
268
275
  name: "callout",
269
276
  inline: false,
270
277
  group: "block",
@@ -667,7 +674,7 @@ var CodeBlockComponent = function CodeBlockComponent(_ref) {
667
674
 
668
675
  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; }
669
676
  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; }
670
- var CodeBlock = CodeBlockLowlight.extend({
677
+ var CodeBlock = index_default.extend({
671
678
  addAttributes: function addAttributes() {
672
679
  var _this$parent;
673
680
  return _objectSpread$i(_objectSpread$i({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
@@ -793,7 +800,7 @@ var DeletedArticleDecoration = Extension.create({
793
800
  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; }
794
801
  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; }
795
802
  var EmojiPickerPluginKey = new PluginKey("emoji-picker");
796
- var EmojiPicker = Node.create({
803
+ var EmojiPicker = Node3.create({
797
804
  name: "emojiPicker",
798
805
  group: "inline",
799
806
  inline: true,
@@ -845,7 +852,7 @@ var EmojiPicker = Node.create({
845
852
  };
846
853
  },
847
854
  addProseMirrorPlugins: function addProseMirrorPlugins() {
848
- return [Suggestion(_objectSpread$h({
855
+ return [index_default$1(_objectSpread$h({
849
856
  editor: this.editor
850
857
  }, this.options.suggestion))];
851
858
  }
@@ -1066,7 +1073,7 @@ var EmojiSuggestionMenu = /*#__PURE__*/function (_React$Component) {
1066
1073
  function ownKeys$g(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; }
1067
1074
  function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1068
1075
  var EmojiSuggestionPluginKey = new PluginKey("emoji-suggestion");
1069
- var EmojiSuggestion = Node.create({
1076
+ var EmojiSuggestion = Node3.create({
1070
1077
  name: "emojiSuggestion",
1071
1078
  group: "inline",
1072
1079
  inline: true,
@@ -1143,7 +1150,7 @@ var EmojiSuggestion = Node.create({
1143
1150
  };
1144
1151
  },
1145
1152
  addProseMirrorPlugins: function addProseMirrorPlugins() {
1146
- return [Suggestion(_objectSpread$g({
1153
+ return [index_default$1(_objectSpread$g({
1147
1154
  editor: this.editor
1148
1155
  }, this.options.suggestion))];
1149
1156
  }
@@ -1522,7 +1529,7 @@ var findNextTextPos = function findNextTextPos(editor, pos) {
1522
1529
  });
1523
1530
  return foundPos;
1524
1531
  };
1525
- var ImageExtension = Node.create({
1532
+ var ImageExtension = Node3.create({
1526
1533
  name: "image",
1527
1534
  addOptions: function addOptions() {
1528
1535
  return {
@@ -1780,7 +1787,7 @@ var ImageExtension = Node.create({
1780
1787
  }
1781
1788
  });
1782
1789
 
1783
- var FigCaption = Node.create({
1790
+ var FigCaption = Node3.create({
1784
1791
  name: "figcaption",
1785
1792
  content: "text*",
1786
1793
  selectable: false,
@@ -1796,7 +1803,7 @@ var FigCaption = Node.create({
1796
1803
  }
1797
1804
  });
1798
1805
 
1799
- var Italic = Italic$1.extend({
1806
+ var Italic = index_default$2.extend({
1800
1807
  addInputRules: function addInputRules() {
1801
1808
  return [];
1802
1809
  },
@@ -2133,7 +2140,7 @@ var suggestion$1 = {
2133
2140
  };
2134
2141
  }
2135
2142
  };
2136
- var Mentions = Mention$1.extend({
2143
+ var Mentions = index_default$3.extend({
2137
2144
  addCommands: function addCommands() {
2138
2145
  var _this = this;
2139
2146
  return {
@@ -2233,7 +2240,7 @@ var Placeholder = Extension.create({
2233
2240
  }
2234
2241
  });
2235
2242
 
2236
- var SelectionDecoration = Document.extend({
2243
+ var SelectionDecoration = index_default$4.extend({
2237
2244
  name: "selectionDecorator",
2238
2245
  addProseMirrorPlugins: function addProseMirrorPlugins() {
2239
2246
  return [new Plugin({
@@ -2996,7 +3003,7 @@ var SlashCommands = {
2996
3003
  };
2997
3004
  },
2998
3005
  addProseMirrorPlugins: function addProseMirrorPlugins() {
2999
- return [Suggestion(_objectSpread$8({
3006
+ return [index_default$1(_objectSpread$8({
3000
3007
  editor: this.editor
3001
3008
  }, this.options.suggestion))];
3002
3009
  }
@@ -3062,7 +3069,7 @@ var suggestion = {
3062
3069
  };
3063
3070
  }
3064
3071
  };
3065
- var SpecialMentions = Mention$1.extend({
3072
+ var SpecialMentions = index_default$3.extend({
3066
3073
  name: "special-mention",
3067
3074
  renderHTML: function renderHTML(_ref2) {
3068
3075
  var node = _ref2.node,
@@ -3385,7 +3392,7 @@ var VariableComponent = function VariableComponent(_ref) {
3385
3392
  };
3386
3393
 
3387
3394
  new PluginKey("variables");
3388
- var Variable = Node.create({
3395
+ var Variable = Node3.create({
3389
3396
  name: "variable",
3390
3397
  addOptions: function addOptions() {
3391
3398
  return {
@@ -3793,7 +3800,7 @@ var handleVideoPaste = function handleVideoPaste(_ref) {
3793
3800
  state.tr.setSelection(TextSelection.create(state.tr.doc, range.from + node.nodeSize + 1));
3794
3801
  }
3795
3802
  };
3796
- var UnifiedVideoExtension = Node.create({
3803
+ var UnifiedVideoExtension = Node3.create({
3797
3804
  name: "unified-video",
3798
3805
  addOptions: function addOptions() {
3799
3806
  return {
@@ -3909,11 +3916,11 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
3909
3916
  enableReactNodeViewOptimization = _ref.enableReactNodeViewOptimization,
3910
3917
  collaborationProvider = _ref.collaborationProvider,
3911
3918
  setIsNeetoKbArticleActive = _ref.setIsNeetoKbArticleActive;
3912
- var customExtensions = [CharacterCount, Code, CodeBlock.configure({
3919
+ var customExtensions = [CharacterCount, index_default$5, CodeBlock.configure({
3913
3920
  enableReactNodeViewOptimization: enableReactNodeViewOptimization
3914
- }), CustomCommands, Document, FigCaption, HighlightInternal, SelectionDecoration, FocusClasses.configure({
3921
+ }), CustomCommands, index_default$4, FigCaption, HighlightInternal, SelectionDecoration, Focus.configure({
3915
3922
  mode: "shallowest"
3916
- }), Highlight$1, ImageExtension.configure({
3923
+ }), index_default$6, ImageExtension.configure({
3917
3924
  openImageInNewTab: openImageInNewTab,
3918
3925
  enableReactNodeViewOptimization: enableReactNodeViewOptimization
3919
3926
  }), Link.configure({
@@ -3923,7 +3930,7 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
3923
3930
  }), Placeholder.configure({
3924
3931
  placeholder: placeholder,
3925
3932
  isSlashCommandsActive: isSlashCommandsActive
3926
- }), StarterKit.configure({
3933
+ }), index_default$8.configure({
3927
3934
  document: false,
3928
3935
  codeBlock: false,
3929
3936
  code: false,
@@ -3933,11 +3940,19 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
3933
3940
  blockquote: options.includes(EDITOR_OPTIONS.BLOCKQUOTE),
3934
3941
  orderedList: false,
3935
3942
  italic: false,
3936
- history: !collaborationProvider,
3943
+ link: false,
3944
+ // v3 StarterKit bundles Link; we register a custom Link extension
3945
+ underline: false,
3946
+ // v3 StarterKit bundles Underline; we register it explicitly below
3947
+ listKeymap: false,
3948
+ // new in v3 StarterKit; disabled to keep v2 list behavior
3949
+ trailingNode: false,
3950
+ // new in v3 StarterKit; disabled to keep v2 behavior
3951
+ undoRedo: !collaborationProvider,
3937
3952
  heading: {
3938
3953
  levels: buildLevelsFromOptions(options)
3939
3954
  }
3940
- }), TextStyle, Underline$1, Italic, KeyboardShortcuts$1.configure({
3955
+ }), TextStyle, index_default$7, Italic, KeyboardShortcuts$1.configure({
3941
3956
  onSubmit: onSubmit,
3942
3957
  shortcuts: keyboardShortcuts,
3943
3958
  isBlockQuoteActive: options.includes(EDITOR_OPTIONS.BLOCKQUOTE)
@@ -4002,10 +4017,10 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
4002
4017
  }
4003
4018
  if (collaborationProvider) {
4004
4019
  var _collaborationProvide;
4005
- customExtensions.push(Collaboration.configure({
4020
+ customExtensions.push(index_default$9.configure({
4006
4021
  document: (_collaborationProvide = collaborationProvider.document) !== null && _collaborationProvide !== void 0 ? _collaborationProvide : collaborationProvider.doc
4007
4022
  }));
4008
- customExtensions.push(CollaborationCursor.configure({
4023
+ customExtensions.push(index_default$a.configure({
4009
4024
  provider: collaborationProvider
4010
4025
  }));
4011
4026
  }
@@ -4436,20 +4451,20 @@ var TableActionMenu = function TableActionMenu(_ref) {
4436
4451
  editor: editor,
4437
4452
  shouldShow: shouldShow,
4438
4453
  className: "neeto-editor-bubble-menu",
4439
- tippyOptions: {
4440
- arrow: false,
4441
- offset: [10, 10],
4442
- zIndex: 99999,
4443
- theme: "light neeto-editor-bubble-menu-tippy-box",
4444
- popperOptions: {
4445
- modifiers: [{
4446
- name: "flip",
4447
- enabled: false
4448
- }]
4454
+ style: {
4455
+ zIndex: 99999
4456
+ },
4457
+ getReferencedVirtualElement: function getReferencedVirtualElement() {
4458
+ return {
4459
+ getBoundingClientRect: getReferenceClientRect
4460
+ };
4461
+ },
4462
+ options: {
4463
+ offset: {
4464
+ mainAxis: 10,
4465
+ crossAxis: 10
4449
4466
  },
4450
- getReferenceClientRect: getReferenceClientRect,
4451
- plugins: [sticky],
4452
- sticky: "popper"
4467
+ flip: false
4453
4468
  },
4454
4469
  children: tableActions({
4455
4470
  editor: editor