@bigbinary/neeto-editor 1.47.127 → 1.47.131

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 (93) hide show
  1. package/dist/Attachments.js +3 -3
  2. package/dist/Editor.js +51 -38
  3. package/dist/Editor.js.map +1 -1
  4. package/dist/EditorContent.js +2 -2
  5. package/dist/FormikEditor.js +6 -6
  6. package/dist/Menu.js +5 -5
  7. package/dist/{chunk-KiXJWA8i.js → chunk-1vCNA-at.js} +2 -2
  8. package/dist/{chunk-KiXJWA8i.js.map → chunk-1vCNA-at.js.map} +1 -1
  9. package/dist/{chunk-DtQctlVh.js → chunk-BN2ot0eJ.js} +4 -4
  10. package/dist/{chunk-DtQctlVh.js.map → chunk-BN2ot0eJ.js.map} +1 -1
  11. package/dist/{chunk--BjpQHaY.js → chunk-BaRCz8kF.js} +3 -3
  12. package/dist/{chunk--BjpQHaY.js.map → chunk-BaRCz8kF.js.map} +1 -1
  13. package/dist/{chunk-DdxH-PMo.js → chunk-C3QLxTd-.js} +4 -4
  14. package/dist/{chunk-DdxH-PMo.js.map → chunk-C3QLxTd-.js.map} +1 -1
  15. package/dist/{chunk-DSFIk2ef.js → chunk-Cjrs-UjE.js} +4 -4
  16. package/dist/{chunk-DSFIk2ef.js.map → chunk-Cjrs-UjE.js.map} +1 -1
  17. package/dist/{chunk-BwyS6si8.js → chunk-D3UBgQom.js} +3 -3
  18. package/dist/{chunk-BwyS6si8.js.map → chunk-D3UBgQom.js.map} +1 -1
  19. package/dist/{chunk-CF5f8-fy.js → chunk-DDFZ40sK.js} +2 -2
  20. package/dist/{chunk-CF5f8-fy.js.map → chunk-DDFZ40sK.js.map} +1 -1
  21. package/dist/{chunk-DDwycKmK.js → chunk-DrHVV_g1.js} +9 -4
  22. package/dist/chunk-DrHVV_g1.js.map +1 -0
  23. package/dist/{chunk-C8O6gt0z.js → chunk-LieRrhol.js} +18 -4
  24. package/dist/chunk-LieRrhol.js.map +1 -0
  25. package/dist/{chunk-CDPeBjvi.js → chunk-Pu0d3ZId.js} +9 -8
  26. package/dist/chunk-Pu0d3ZId.js.map +1 -0
  27. package/dist/{chunk-xCgPoq9w.js → chunk-QsL6T6V5.js} +2 -2
  28. package/dist/{chunk-xCgPoq9w.js.map → chunk-QsL6T6V5.js.map} +1 -1
  29. package/dist/{chunk-C_jttcYg.js → chunk-vncKwq6q.js} +3 -3
  30. package/dist/{chunk-C_jttcYg.js.map → chunk-vncKwq6q.js.map} +1 -1
  31. package/dist/cjs/Attachments.cjs.js +3 -3
  32. package/dist/cjs/Editor.cjs.js +51 -38
  33. package/dist/cjs/Editor.cjs.js.map +1 -1
  34. package/dist/cjs/EditorContent.cjs.js +2 -2
  35. package/dist/cjs/FormikEditor.cjs.js +6 -6
  36. package/dist/cjs/Menu.cjs.js +5 -5
  37. package/dist/cjs/{chunk-DS2JcxXk.cjs.js → chunk-9Fllxi6z.cjs.js} +3 -3
  38. package/dist/cjs/{chunk-DS2JcxXk.cjs.js.map → chunk-9Fllxi6z.cjs.js.map} +1 -1
  39. package/dist/cjs/{chunk-2HrSPdAV.cjs.js → chunk-Bmjmsp-E.cjs.js} +9 -4
  40. package/dist/cjs/chunk-Bmjmsp-E.cjs.js.map +1 -0
  41. package/dist/cjs/{chunk-n7U2G1az.cjs.js → chunk-CLoLWFsx.cjs.js} +4 -4
  42. package/dist/cjs/{chunk-n7U2G1az.cjs.js.map → chunk-CLoLWFsx.cjs.js.map} +1 -1
  43. package/dist/cjs/{chunk-DkzRRlJ6.cjs.js → chunk-CLrHidij.cjs.js} +18 -3
  44. package/dist/cjs/chunk-CLrHidij.cjs.js.map +1 -0
  45. package/dist/cjs/{chunk-62QG5j0v.cjs.js → chunk-CMN8WDYd.cjs.js} +4 -4
  46. package/dist/cjs/{chunk-62QG5j0v.cjs.js.map → chunk-CMN8WDYd.cjs.js.map} +1 -1
  47. package/dist/cjs/{chunk-Cvxaj__T.cjs.js → chunk-DJosicB7.cjs.js} +3 -3
  48. package/dist/cjs/{chunk-Cvxaj__T.cjs.js.map → chunk-DJosicB7.cjs.js.map} +1 -1
  49. package/dist/cjs/{chunk-D8Uup1eh.cjs.js → chunk-Dyzo4vqK.cjs.js} +4 -4
  50. package/dist/cjs/{chunk-D8Uup1eh.cjs.js.map → chunk-Dyzo4vqK.cjs.js.map} +1 -1
  51. package/dist/cjs/{chunk-CDAiAyof.cjs.js → chunk-LN_Txjhy.cjs.js} +2 -2
  52. package/dist/cjs/{chunk-CDAiAyof.cjs.js.map → chunk-LN_Txjhy.cjs.js.map} +1 -1
  53. package/dist/cjs/{chunk-BGy3NmZC.cjs.js → chunk-hfcF0hnk.cjs.js} +2 -2
  54. package/dist/cjs/{chunk-BGy3NmZC.cjs.js.map → chunk-hfcF0hnk.cjs.js.map} +1 -1
  55. package/dist/cjs/{chunk-Zpn4p-0s.cjs.js → chunk-u9FgmzyG.cjs.js} +9 -8
  56. package/dist/cjs/chunk-u9FgmzyG.cjs.js.map +1 -0
  57. package/dist/cjs/{chunk-B_7qxIrt.cjs.js → chunk-vT9IzHYQ.cjs.js} +3 -3
  58. package/dist/cjs/{chunk-B_7qxIrt.cjs.js.map → chunk-vT9IzHYQ.cjs.js.map} +1 -1
  59. package/dist/cjs/{chunk-yX0BlnxV.cjs.js → chunk-vq1owZ-6.cjs.js} +2 -2
  60. package/dist/cjs/{chunk-yX0BlnxV.cjs.js.map → chunk-vq1owZ-6.cjs.js.map} +1 -1
  61. package/dist/cjs/constants.cjs.js +2 -2
  62. package/dist/cjs/index.cjs.js +6 -6
  63. package/dist/cjs/utils.cjs.js +3 -3
  64. package/dist/cjs/v2/Attachments.cjs.js +3 -3
  65. package/dist/cjs/v2/Editor.cjs.js +24 -31
  66. package/dist/cjs/v2/Editor.cjs.js.map +1 -1
  67. package/dist/cjs/v2/EditorContent.cjs.js +3 -3
  68. package/dist/cjs/v2/FormikEditor.cjs.js +5 -5
  69. package/dist/cjs/v2/Menu.cjs.js +3 -3
  70. package/dist/cjs/v2/constants.cjs.js +2 -2
  71. package/dist/cjs/v2/index.cjs.js +6 -6
  72. package/dist/cjs/v2/utils.cjs.js +3 -3
  73. package/dist/constants.js +2 -2
  74. package/dist/editor-stats.html +2 -2
  75. package/dist/index.js +6 -6
  76. package/dist/utils.js +3 -3
  77. package/dist/v2/Attachments.js +3 -3
  78. package/dist/v2/Editor.js +24 -31
  79. package/dist/v2/Editor.js.map +1 -1
  80. package/dist/v2/EditorContent.js +3 -3
  81. package/dist/v2/FormikEditor.js +5 -5
  82. package/dist/v2/Menu.js +3 -3
  83. package/dist/v2/constants.js +2 -2
  84. package/dist/v2/index.js +6 -6
  85. package/dist/v2/utils.js +3 -3
  86. package/package.json +1 -1
  87. package/types.d.ts +1 -0
  88. package/dist/chunk-C8O6gt0z.js.map +0 -1
  89. package/dist/chunk-CDPeBjvi.js.map +0 -1
  90. package/dist/chunk-DDwycKmK.js.map +0 -1
  91. package/dist/cjs/chunk-2HrSPdAV.cjs.js.map +0 -1
  92. package/dist/cjs/chunk-DkzRRlJ6.cjs.js.map +0 -1
  93. package/dist/cjs/chunk-Zpn4p-0s.cjs.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export { E as EDITOR_OPTIONS } from './chunk-DDwycKmK.js';
2
- export { D as DEFAULT_EDITOR_OPTIONS } from './chunk-CF5f8-fy.js';
3
- export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-C_jttcYg.js';
1
+ export { E as EDITOR_OPTIONS } from './chunk-DrHVV_g1.js';
2
+ export { D as DEFAULT_EDITOR_OPTIONS } from './chunk-DDFZ40sK.js';
3
+ export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-vncKwq6q.js';
4
4
  export { s as substituteVariables } from './chunk-aCTMceVU.js';
5
5
  export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-Qg4uQqj3.js';
6
- export { A as Attachments } from './chunk-DdxH-PMo.js';
6
+ export { A as Attachments } from './chunk-C3QLxTd-.js';
7
7
  export { default as Editor } from './Editor.js';
8
8
  export { default as FormikEditor } from './FormikEditor.js';
9
- export { M as Menu } from './chunk-CDPeBjvi.js';
9
+ export { M as Menu } from './chunk-Pu0d3ZId.js';
10
10
  export { default as EditorContent } from './EditorContent.js';
11
11
  import { n } from './chunk-C2dztUxs.js';
12
12
  import 'ramda';
@@ -33,7 +33,7 @@ import 'zustand';
33
33
  import '@babel/runtime/helpers/createClass';
34
34
  import '@babel/runtime/helpers/classCallCheck';
35
35
  import 'axios';
36
- import './chunk-xCgPoq9w.js';
36
+ import './chunk-QsL6T6V5.js';
37
37
  import '@babel/runtime/helpers/objectWithoutProperties';
38
38
  import 'zustand/shallow';
39
39
  import '@bigbinary/neeto-icons/LeftAlign';
package/dist/utils.js CHANGED
@@ -1,12 +1,12 @@
1
- export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-C_jttcYg.js';
1
+ export { i as isEditorOverlaysActive, a as isEmojiSuggestionsMenuActive, t as transformEditorContent } from './chunk-vncKwq6q.js';
2
2
  export { s as substituteVariables } from './chunk-aCTMceVU.js';
3
3
  export { i as isEditorContentWithinLimit, a as isEditorEmpty, r as removeEmptyTags } from './chunk-Qg4uQqj3.js';
4
4
  import '@babel/runtime/helpers/defineProperty';
5
5
  import './chunk-C5svTfyQ.js';
6
6
  import '@bigbinary/neeto-cist';
7
- import './chunk-DDwycKmK.js';
7
+ import './chunk-DrHVV_g1.js';
8
8
  import 'ramda';
9
- import './chunk-CF5f8-fy.js';
9
+ import './chunk-DDFZ40sK.js';
10
10
  import 'i18next';
11
11
  import 'yup';
12
12
  import 'react';
@@ -10,8 +10,8 @@ import '@bigbinary/neeto-cist';
10
10
  import 'ramda';
11
11
  import 'react-i18next';
12
12
  import '../chunk-BFKmIsWV.js';
13
- import '../chunk-KiXJWA8i.js';
14
- export { A as default } from '../chunk--BjpQHaY.js';
13
+ import '../chunk-1vCNA-at.js';
14
+ export { A as default } from '../chunk-BaRCz8kF.js';
15
15
  import 'react/jsx-runtime';
16
16
  import '@bigbinary/neeto-commons-frontend/react-utils';
17
17
  import 'zustand';
@@ -23,7 +23,7 @@ import '../chunk-BFTU3MAI.js';
23
23
  import '@babel/runtime/helpers/objectWithoutProperties';
24
24
  import 'zustand/shallow';
25
25
  import '@bigbinary/neeto-commons-frontend/v2/initializers';
26
- import '../chunk-DDwycKmK.js';
26
+ import '../chunk-DrHVV_g1.js';
27
27
  import '@bigbinary/neeto-icons/LeftAlign';
28
28
  import '@bigbinary/neeto-icons/CenterAlign';
29
29
  import '@bigbinary/neeto-icons/RightAlign';
package/dist/v2/Editor.js CHANGED
@@ -10,13 +10,13 @@ import { isNotPresent, findBy, isNotEmpty, isPresent, noop, slugify } from '@big
10
10
  import { useOnClickOutside, withT, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
11
11
  import { createPortal, flushSync } from 'react-dom';
12
12
  import { B as BulletList$1, i as index_default, a as index_default$1, R as Resizable, b as index_default$2, L as Link$1, s as scrollHandler, c as index_default$3, O as OrderedList$1, d as index_default$4, f as fuzzySearch, T as Table$2, e as TaskList, g as TaskItem, C as CharacterCount, h as index_default$5, j as index_default$6, k as TextStyle, l as index_default$7, F as Focus, m as index_default$8, n as TableRow, o as TableHeader, p as TableCell, q as Color, r as ListItem, t as index_default$9, u as index_default$a, v as useFetchKbArticles, G as useEditorWarnings, H as useDeletedArticles } from '../chunk-Be5ikGpm.js';
13
- import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from '../chunk-DDwycKmK.js';
14
- import '../chunk-CF5f8-fy.js';
13
+ import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from '../chunk-DrHVV_g1.js';
14
+ import '../chunk-DDFZ40sK.js';
15
15
  import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc, equals } from 'ramda';
16
16
  import ReactDOM from 'react-dom/server';
17
17
  import { l as lowlight, d as decodeHtmlEntities, r as removeEmptyTags } from '../chunk-Qg4uQqj3.js';
18
18
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
19
- import { C as CALLOUT_TYPES, E as EmojiPickerMenu, v as validateUrl, b as buildLevelsFromOptions, g as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, c as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, d as getEditorStyles, M as Menu$3, e as MenuDynamicVariables, f as MediaUploader, h as LinkAddPopOver, j as transformPastedHTML, k as clipboardTextParser, s as setInitialPosition } from '../chunk-C8O6gt0z.js';
19
+ import { C as CALLOUT_TYPES, E as EmojiPickerMenu, g as getSuggestionAppendTo, v as validateUrl, b as buildLevelsFromOptions, c as getLinkPopoverPosition, L as LINK_VALIDATION_SCHEMA, d as validateAndFormatUrl, D as DEFAULT_EDITOR_OPTIONS, e as getEditorStyles, M as Menu$3, f as MenuDynamicVariables, h as MediaUploader, j as LinkAddPopOver, k as transformPastedHTML, l as clipboardTextParser, s as setInitialPosition } from '../chunk-LieRrhol.js';
20
20
  import Megaphone from '@bigbinary/neeto-icons/misc/Megaphone';
21
21
  import { m as PluginKey, P as Plugin, T as TextSelection } from '../chunk-C5svTfyQ.js';
22
22
  import { ChevronDown, Highlighter, X, Ratio, Ellipsis, AlignLeft, AlignCenter, AlignRight, RectangleHorizontal, RectangleVertical, Square, SquareDashed, Trash2, BookOpen, Pencil } from 'lucide-react';
@@ -59,7 +59,7 @@ import Link$2 from '@bigbinary/neeto-icons/Link';
59
59
  import Attachment from '@bigbinary/neeto-icons/Attachment';
60
60
  import MessageSquare from '@bigbinary/neeto-icons/MessageSquare';
61
61
  import File from '@bigbinary/neeto-icons/File';
62
- import { h as DEFAULT_ASPECT_RATIO } from '../chunk-KiXJWA8i.js';
62
+ import { h as DEFAULT_ASPECT_RATIO } from '../chunk-1vCNA-at.js';
63
63
  import _typeof from '@babel/runtime/helpers/typeof';
64
64
  import Search from '@bigbinary/neeto-molecules/v2/Search';
65
65
  import { Popover, PopoverTrigger, PopoverContent } from '@bigbinary/neeto-atoms/primitives/Popover';
@@ -71,7 +71,7 @@ import InsertColumn from '@bigbinary/neeto-icons/InsertColumn';
71
71
  import MergeSplit from '@bigbinary/neeto-icons/MergeSplit';
72
72
  import ToggleHeaderRow from '@bigbinary/neeto-icons/ToggleHeaderRow';
73
73
  import { Form, Input as Input$1 } from '@bigbinary/neeto-atoms/formik';
74
- import { A as Attachments } from '../chunk--BjpQHaY.js';
74
+ import { A as Attachments } from '../chunk-BaRCz8kF.js';
75
75
  import 'axios';
76
76
  import '@bigbinary/neeto-commons-frontend/react-utils';
77
77
  import 'zustand';
@@ -758,16 +758,19 @@ var EditorContainer = Extension.create({
758
758
  name: "editorContainer",
759
759
  addOptions: function addOptions() {
760
760
  return {
761
- containerRef: null
761
+ containerRef: null,
762
+ appendSuggestionsToBody: false
762
763
  };
763
764
  },
764
765
  addStorage: function addStorage() {
765
766
  return {
766
- containerRef: null
767
+ containerRef: null,
768
+ appendSuggestionsToBody: false
767
769
  };
768
770
  },
769
771
  onBeforeCreate: function onBeforeCreate() {
770
772
  this.storage.containerRef = this.options.containerRef;
773
+ this.storage.appendSuggestionsToBody = this.options.appendSuggestionsToBody;
771
774
  }
772
775
  });
773
776
 
@@ -801,10 +804,7 @@ var EmojiPicker = Node3.create({
801
804
  popup = tippy("body", {
802
805
  theme: "light",
803
806
  getReferenceClientRect: props.clientRect,
804
- appendTo: function appendTo() {
805
- var _props$editor$storage, _props$editor;
806
- return (_props$editor$storage = (_props$editor = props.editor) === null || _props$editor === void 0 || (_props$editor = _props$editor.storage) === null || _props$editor === void 0 || (_props$editor = _props$editor.editorContainer) === null || _props$editor === void 0 || (_props$editor = _props$editor.containerRef) === null || _props$editor === void 0 ? void 0 : _props$editor.current) !== null && _props$editor$storage !== void 0 ? _props$editor$storage : document.body;
807
- },
807
+ appendTo: getSuggestionAppendTo(props.editor),
808
808
  content: reactRenderer.element,
809
809
  showOnCreate: true,
810
810
  interactive: true,
@@ -1167,10 +1167,7 @@ var suggestionConfig = {
1167
1167
  popup = tippy("body", {
1168
1168
  theme: "light",
1169
1169
  getReferenceClientRect: props.clientRect,
1170
- appendTo: function appendTo() {
1171
- var _props$editor$storage, _props$editor;
1172
- return (_props$editor$storage = (_props$editor = props.editor) === null || _props$editor === void 0 || (_props$editor = _props$editor.storage) === null || _props$editor === void 0 || (_props$editor = _props$editor.editorContainer) === null || _props$editor === void 0 || (_props$editor = _props$editor.containerRef) === null || _props$editor === void 0 ? void 0 : _props$editor.current) !== null && _props$editor$storage !== void 0 ? _props$editor$storage : document.body;
1173
- },
1170
+ appendTo: getSuggestionAppendTo(props.editor),
1174
1171
  content: reactRenderer.element,
1175
1172
  showOnCreate: true,
1176
1173
  interactive: true,
@@ -2150,10 +2147,7 @@ var suggestion$1 = {
2150
2147
  popup = tippy("body", {
2151
2148
  theme: "light neeto-editor-mentions-tooltip",
2152
2149
  getReferenceClientRect: props.clientRect,
2153
- appendTo: function appendTo() {
2154
- var _props$editor$storage, _props$editor;
2155
- return (_props$editor$storage = (_props$editor = props.editor) === null || _props$editor === void 0 || (_props$editor = _props$editor.storage) === null || _props$editor === void 0 || (_props$editor = _props$editor.editorContainer) === null || _props$editor === void 0 || (_props$editor = _props$editor.containerRef) === null || _props$editor === void 0 ? void 0 : _props$editor.current) !== null && _props$editor$storage !== void 0 ? _props$editor$storage : document.body;
2156
- },
2150
+ appendTo: getSuggestionAppendTo(props.editor),
2157
2151
  content: reactRenderer.element,
2158
2152
  showOnCreate: true,
2159
2153
  interactive: true,
@@ -3004,10 +2998,7 @@ var SlashCommands = {
3004
2998
  });
3005
2999
  popup = tippy("body", {
3006
3000
  getReferenceClientRect: props.clientRect,
3007
- appendTo: function appendTo() {
3008
- var _props$editor$storage, _props$editor;
3009
- return (_props$editor$storage = (_props$editor = props.editor) === null || _props$editor === void 0 || (_props$editor = _props$editor.storage) === null || _props$editor === void 0 || (_props$editor = _props$editor.editorContainer) === null || _props$editor === void 0 || (_props$editor = _props$editor.containerRef) === null || _props$editor === void 0 ? void 0 : _props$editor.current) !== null && _props$editor$storage !== void 0 ? _props$editor$storage : document.body;
3010
- },
3001
+ appendTo: getSuggestionAppendTo(props.editor),
3011
3002
  content: reactRenderer.element,
3012
3003
  showOnCreate: true,
3013
3004
  interactive: true,
@@ -3082,10 +3073,7 @@ var suggestion = {
3082
3073
  popup = tippy("body", {
3083
3074
  theme: "light neeto-editor-mentions-tooltip",
3084
3075
  getReferenceClientRect: props.clientRect,
3085
- appendTo: function appendTo() {
3086
- var _props$editor$storage, _props$editor;
3087
- return (_props$editor$storage = (_props$editor = props.editor) === null || _props$editor === void 0 || (_props$editor = _props$editor.storage) === null || _props$editor === void 0 || (_props$editor = _props$editor.editorContainer) === null || _props$editor === void 0 || (_props$editor = _props$editor.containerRef) === null || _props$editor === void 0 ? void 0 : _props$editor.current) !== null && _props$editor$storage !== void 0 ? _props$editor$storage : document.body;
3088
- },
3076
+ appendTo: getSuggestionAppendTo(props.editor),
3089
3077
  content: reactRenderer.element,
3090
3078
  showOnCreate: true,
3091
3079
  interactive: true,
@@ -3973,9 +3961,11 @@ var useCustomExtensions = function useCustomExtensions(_ref) {
3973
3961
  enableReactNodeViewOptimization = _ref.enableReactNodeViewOptimization,
3974
3962
  collaborationProvider = _ref.collaborationProvider,
3975
3963
  setIsNeetoKbArticleActive = _ref.setIsNeetoKbArticleActive,
3976
- containerRef = _ref.containerRef;
3964
+ containerRef = _ref.containerRef,
3965
+ appendSuggestionsToBody = _ref.appendSuggestionsToBody;
3977
3966
  var customExtensions = [EditorContainer.configure({
3978
- containerRef: containerRef
3967
+ containerRef: containerRef,
3968
+ appendSuggestionsToBody: appendSuggestionsToBody
3979
3969
  }), CharacterCount, index_default$5, CodeBlock.configure({
3980
3970
  enableReactNodeViewOptimization: enableReactNodeViewOptimization
3981
3971
  }), CustomCommands, index_default$4, FigCaption, HighlightInternal, SelectionDecoration, Focus.configure({
@@ -5182,7 +5172,7 @@ var LinkPopOver = function LinkPopOver(_ref) {
5182
5172
  });
5183
5173
  };
5184
5174
 
5185
- var _excluded = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "contentWrapperClassName", "errorWrapperClassName", "contentAttributes", "menuClassName", "attachmentsClassName", "isMenuIndependent", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "disableTrimOnBlur", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "openImageInNewTab", "openLinkInNewTab", "showAssetLibrary", "collaborationProvider", "enableReactNodeViewOptimization", "size", "otherAttachmentProps"];
5175
+ var _excluded = ["addonCommands", "addons", "attachments", "attachmentsConfig", "autoFocus", "className", "contentClassName", "contentWrapperClassName", "errorWrapperClassName", "contentAttributes", "menuClassName", "attachmentsClassName", "isMenuIndependent", "defaults", "editorSecrets", "error", "extensions", "hideSlashCommands", "appendSuggestionsToBody", "initialValue", "isCharacterCountActive", "keyboardShortcuts", "label", "mentions", "menuType", "placeholder", "required", "rows", "tooltips", "variables", "disableTrimOnBlur", "onChange", "onFocus", "onBlur", "onSubmit", "onChangeAttachments", "children", "openImageInNewTab", "openLinkInNewTab", "showAssetLibrary", "collaborationProvider", "enableReactNodeViewOptimization", "size", "otherAttachmentProps"];
5186
5176
  function ownKeys(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; }
5187
5177
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5188
5178
  var Editor = function Editor(_ref, ref) {
@@ -5217,6 +5207,8 @@ var Editor = function Editor(_ref, ref) {
5217
5207
  extensions = _ref$extensions === void 0 ? [] : _ref$extensions,
5218
5208
  _ref$hideSlashCommand = _ref.hideSlashCommands,
5219
5209
  hideSlashCommands = _ref$hideSlashCommand === void 0 ? true : _ref$hideSlashCommand,
5210
+ _ref$appendSuggestion = _ref.appendSuggestionsToBody,
5211
+ appendSuggestionsToBody = _ref$appendSuggestion === void 0 ? false : _ref$appendSuggestion,
5220
5212
  _ref$initialValue = _ref.initialValue,
5221
5213
  initialValue = _ref$initialValue === void 0 ? "" : _ref$initialValue,
5222
5214
  _ref$isCharacterCount = _ref.isCharacterCountActive,
@@ -5337,7 +5329,8 @@ var Editor = function Editor(_ref, ref) {
5337
5329
  enableReactNodeViewOptimization: enableReactNodeViewOptimization,
5338
5330
  collaborationProvider: collaborationProvider,
5339
5331
  setIsNeetoKbArticleActive: setNeetoKbArticleState,
5340
- containerRef: wrapperRef
5332
+ containerRef: wrapperRef,
5333
+ appendSuggestionsToBody: appendSuggestionsToBody
5341
5334
  });
5342
5335
  useEditorWarnings({
5343
5336
  initialValue: initialValue