@collabchron/notiq 1.1.11 → 1.2.0

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 (152) hide show
  1. package/dist/AICommandBarPlugin-ZEC755KY.mjs +27 -0
  2. package/dist/{AIDialog-2WZUFWSC.mjs → AIDialog-HJW6PQPR.mjs} +12 -13
  3. package/dist/{AudioComponent-CKLMLB5T.mjs → AudioComponent-W5XMZPQB.mjs} +10 -6
  4. package/dist/{DynamicBlockComponent-2LOADZUX.mjs → DynamicBlockComponent-CHRL2GAQ.mjs} +7 -6
  5. package/dist/{EquationComponent-4NFG55NQ.mjs → EquationComponent-GNQHG53L.mjs} +26 -7
  6. package/dist/{ExcalidrawComponent-SIMURTCA.mjs → ExcalidrawComponent-POMYXDSG.mjs} +34 -7
  7. package/dist/{FileComponent-Y56MX5QD.mjs → FileComponent-EOVCH4V5.mjs} +9 -5
  8. package/dist/{HintComponet-ET7M2Q7S.mjs → HintComponet-QXL5ESND.mjs} +32 -8
  9. package/dist/{InlineImageComponent-FVTA4LXZ.mjs → InlineImageComponent-KDN3VGZC.mjs} +8 -3
  10. package/dist/{StoryBuilderComponent-WQSNFPMM.mjs → StoryBuilderComponent-CBRFPFTR.mjs} +9 -10
  11. package/dist/{chunk-6UVNHT3T.mjs → chunk-4SYRK2NH.mjs} +23 -1
  12. package/dist/chunk-5CJZC5IB.mjs +9086 -0
  13. package/dist/{chunk-MW6MAUY3.mjs → chunk-6NK5DONB.mjs} +1 -1
  14. package/dist/{chunk-N6ILV6NF.mjs → chunk-ACW4DLVO.mjs} +21 -7
  15. package/dist/chunk-BCGD2YXP.mjs +574 -0
  16. package/dist/{chunk-TC3IISJZ.mjs → chunk-BTR3TPIN.mjs} +18 -5
  17. package/dist/{chunk-XAVQAXOJ.mjs → chunk-CQCS5YPS.mjs} +3 -5
  18. package/dist/{chunk-YTLUQJE2.mjs → chunk-D4UBNSUW.mjs} +1 -1
  19. package/dist/{chunk-KNW2CGIP.mjs → chunk-DBRZIA43.mjs} +4 -1
  20. package/dist/{chunk-CDAMHK63.mjs → chunk-GJK2L7ZM.mjs} +23 -2
  21. package/dist/{chunk-GYYLZ3MQ.mjs → chunk-IKYVBTCJ.mjs} +43 -20
  22. package/dist/chunk-IXRA5D53.mjs +10447 -0
  23. package/dist/{chunk-W6VQSFE5.mjs → chunk-J2CEQXG4.mjs} +1 -1
  24. package/dist/{chunk-43Z4Z2KD.mjs → chunk-JTNLN4JI.mjs} +1 -1
  25. package/dist/{chunk-OE5JRLCN.mjs → chunk-ONOHG5NB.mjs} +6 -4
  26. package/dist/{chunk-XZXGYNTY.mjs → chunk-OO42URWA.mjs} +27 -6
  27. package/dist/chunk-PBVRSNGU.mjs +129 -0
  28. package/dist/chunk-QCS57TIF.mjs +1794 -0
  29. package/dist/chunk-RNEIJRUS.mjs +60 -0
  30. package/dist/chunk-TJPTGECP.mjs +1556 -0
  31. package/dist/{chunk-XYMXGU4T.mjs → chunk-TMYRA2W4.mjs} +1 -1
  32. package/dist/{chunk-ZFV2HGD3.mjs → chunk-UNEFOZTS.mjs} +1 -1
  33. package/dist/chunk-X4NI7EQS.mjs +282 -0
  34. package/dist/chunk-XAJ4GACN.mjs +746 -0
  35. package/dist/{chunk-7QRJVZQY.mjs → chunk-YVUQRJVV.mjs} +63 -18
  36. package/dist/components/editor/Core.d.ts +15 -2
  37. package/dist/components/editor/index.d.ts +16 -5
  38. package/dist/components/editor/nodes/EquationNode/EquationNode.d.ts +1 -0
  39. package/dist/components/editor/nodes/Hint/index.d.ts +2 -1
  40. package/dist/components/editor/plugins/AICommandBarPlugin/index.d.ts +73 -1
  41. package/dist/components/editor/plugins/DraggableBlockPlugin/index.d.ts +25 -3
  42. package/dist/components/editor/plugins/InlineCopilotPlugin/index.d.ts +16 -3
  43. package/dist/components/editor/plugins/LinkWithMetaData/index.d.ts +20 -25
  44. package/dist/components/editor/plugins/MarkdownPastePlugin/index.d.ts +5 -0
  45. package/dist/components/editor/plugins/MarkdownTransformers/index.d.ts +2 -0
  46. package/dist/components/editor/plugins/SlashCommand/index.d.ts +18 -1
  47. package/dist/components/editor/plugins/SmartTypographyPlugin/index.d.ts +26 -0
  48. package/dist/components/editor/utils/aiStream.d.ts +27 -0
  49. package/dist/components/editor/utils/excalidrawDiagramBuilder.d.ts +29 -0
  50. package/dist/components/editor/utils/markdownTransformers.d.ts +4 -1
  51. package/dist/components/editor/utils/url.d.ts +16 -4
  52. package/dist/components/providers/AIContext.d.ts +8 -0
  53. package/dist/components/ui/equation/equationTypography.d.ts +23 -0
  54. package/dist/core/extension.d.ts +3 -1
  55. package/dist/core/extensions/blocks-kit.d.ts +22 -1
  56. package/dist/core/extensions/copilot-and-collab.d.ts +15 -1
  57. package/dist/core/index.d.ts +2 -1
  58. package/dist/core/react/NotiqContent.d.ts +4 -1
  59. package/dist/core/react/NotiqEditor.d.ts +8 -8
  60. package/dist/core/react/index.d.ts +1 -0
  61. package/dist/core/react/node-renderers.d.ts +73 -0
  62. package/dist/core/types.d.ts +1 -0
  63. package/dist/core.js +18136 -9084
  64. package/dist/core.mjs +58 -44
  65. package/dist/hooks/instructions-messages.d.ts +13 -4
  66. package/dist/{image-TPW7PZZK.mjs → image-AL6PHM2A.mjs} +18 -13
  67. package/dist/index.js +15180 -12858
  68. package/dist/index.mjs +121 -1641
  69. package/dist/{insert-audio-C66RZRKY.mjs → insert-audio-CRWR7EO5.mjs} +6 -8
  70. package/dist/{insert-file-3DTGRO7W.mjs → insert-file-I73AZW3L.mjs} +6 -8
  71. package/dist/{insert-gif-FIMCCBAI.mjs → insert-gif-KWRC3ACT.mjs} +4 -4
  72. package/dist/{insert-image-CZV6HWQZ.mjs → insert-image-XIY6BGW5.mjs} +6 -5
  73. package/dist/{insert-poll-6BCIFY5G.mjs → insert-poll-J5YVZNZ4.mjs} +4 -3
  74. package/dist/{insert-table-ZRJP6X52.mjs → insert-table-OIMJRFFK.mjs} +1 -1
  75. package/dist/{poll-component-VHMM5KKZ.mjs → poll-component-TVHXIKGQ.mjs} +3 -2
  76. package/dist/react.js +17933 -9531
  77. package/dist/react.mjs +41 -34
  78. package/dist/{stepper-4AO5XMO7.mjs → stepper-ILF7YXTO.mjs} +64 -74
  79. package/dist/styles/notiq.css +1 -1
  80. package/package.json +2 -2
  81. package/src/styles/notiq.css +20 -0
  82. package/dist/AICommandBarPlugin-TADJ3X2Y.mjs +0 -12
  83. package/dist/CodeActionMenuPlugin-MRKY67ED.mjs +0 -14
  84. package/dist/CollaborationPlugin-TIZOQBUT.mjs +0 -405
  85. package/dist/CollaboratorsBar-TMKBOBJI.mjs +0 -20
  86. package/dist/CommentsPlugin-5M4RD6YO.mjs +0 -19
  87. package/dist/ExcalidrawPlugin-2SGPIQ6U.mjs +0 -14
  88. package/dist/ExportPlugin-OKZOLBGS.mjs +0 -42
  89. package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +0 -12
  90. package/dist/FloatingTextFormatToolbarPlugin-SO5VON7Q.mjs +0 -45
  91. package/dist/InlineCopilotPlugin-PNS5Y6OO.mjs +0 -360
  92. package/dist/MobileToolbar-JKP2MLQJ.mjs +0 -984
  93. package/dist/SlashCommand-2TNOOUBM.mjs +0 -39
  94. package/dist/TableCellActionMenuPlugin-YWBA64J7.mjs +0 -838
  95. package/dist/TableHoverActionsPlugin-2EIXHEXN.mjs +0 -265
  96. package/dist/TemplatePlugin-HNTPEXBB.mjs +0 -9
  97. package/dist/ToolbarPlugin-IIAOU4P5.mjs +0 -35
  98. package/dist/VersionHistoryPlugin-23MAZB4G.mjs +0 -371
  99. package/dist/background-color-OZJCBYCT.mjs +0 -425
  100. package/dist/block-format-MTSIXWID.mjs +0 -14
  101. package/dist/chunk-2KESP7OU.mjs +0 -809
  102. package/dist/chunk-3AHNLIME.mjs +0 -1701
  103. package/dist/chunk-3IILA3IP.mjs +0 -28
  104. package/dist/chunk-4DVIYZVB.mjs +0 -193
  105. package/dist/chunk-4FFTOZGJ.mjs +0 -103
  106. package/dist/chunk-4UMUPCDK.mjs +0 -68
  107. package/dist/chunk-6D6QLRYR.mjs +0 -238
  108. package/dist/chunk-6SRMKQSD.mjs +0 -682
  109. package/dist/chunk-ACV47ZKE.mjs +0 -201
  110. package/dist/chunk-AYNKORDO.mjs +0 -6
  111. package/dist/chunk-BGV62GC2.mjs +0 -26
  112. package/dist/chunk-D3IOUQFR.mjs +0 -441
  113. package/dist/chunk-EEBA6OAH.mjs +0 -59
  114. package/dist/chunk-EIZMKFHF.mjs +0 -32
  115. package/dist/chunk-EVPWKNE4.mjs +0 -27
  116. package/dist/chunk-FMJ7DGWP.mjs +0 -144
  117. package/dist/chunk-FYLRS4BG.mjs +0 -88
  118. package/dist/chunk-HOZ4QRFV.mjs +0 -536
  119. package/dist/chunk-IAFCQV3Z.mjs +0 -349
  120. package/dist/chunk-IU2N42JJ.mjs +0 -1763
  121. package/dist/chunk-J6ZUY5BY.mjs +0 -202
  122. package/dist/chunk-K5OAFEVY.mjs +0 -191
  123. package/dist/chunk-KDA7ZYMJ.mjs +0 -431
  124. package/dist/chunk-KXRLARGI.mjs +0 -26
  125. package/dist/chunk-LAUAYRPC.mjs +0 -944
  126. package/dist/chunk-LLCP7NVE.mjs +0 -449
  127. package/dist/chunk-LU2XWLOE.mjs +0 -219
  128. package/dist/chunk-MPTE332I.mjs +0 -787
  129. package/dist/chunk-MTQZWJHR.mjs +0 -111
  130. package/dist/chunk-OXWTZV3U.mjs +0 -174
  131. package/dist/chunk-PD5K4AGP.mjs +0 -64
  132. package/dist/chunk-PFH63ZU4.mjs +0 -33
  133. package/dist/chunk-PHRVYPVM.mjs +0 -808
  134. package/dist/chunk-R7WFRENU.mjs +0 -262
  135. package/dist/chunk-RAVYEEIC.mjs +0 -36
  136. package/dist/chunk-RJQTA6HG.mjs +0 -358
  137. package/dist/chunk-SAOJHVPE.mjs +0 -153
  138. package/dist/chunk-VGAX6YEY.mjs +0 -399
  139. package/dist/chunk-W6GAJXUS.mjs +0 -334
  140. package/dist/chunk-XYDBUQ6Z.mjs +0 -1978
  141. package/dist/chunk-XYT6XM5S.mjs +0 -496
  142. package/dist/chunk-YDDBQZ77.mjs +0 -409
  143. package/dist/chunk-YE7M2VKR.mjs +0 -132
  144. package/dist/chunk-Z6JAFF55.mjs +0 -555
  145. package/dist/chunk-ZKZ7MLSS.mjs +0 -165
  146. package/dist/color-23323E3B.mjs +0 -13
  147. package/dist/font-IJKFR4BM.mjs +0 -12
  148. package/dist/font-size-GTL6UVQL.mjs +0 -15
  149. package/dist/insert-node-MA3FXEYN.mjs +0 -245
  150. package/dist/table-dropdown-4VCRSQB6.mjs +0 -391
  151. package/dist/text-align-CSDLJUDA.mjs +0 -121
  152. package/dist/text-format-6L5N3CHZ.mjs +0 -15
@@ -1,334 +0,0 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues,
4
- init_react_shim
5
- } from "./chunk-WYCFGRFJ.mjs";
6
-
7
- // src/components/editor/plugins/LayoutPlugin/index.tsx
8
- init_react_shim();
9
- import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
10
- import {
11
- $findMatchingParent,
12
- $insertNodeToNearestRoot,
13
- mergeRegister
14
- } from "@lexical/utils";
15
- import {
16
- $createParagraphNode,
17
- $getNodeByKey,
18
- $getSelection,
19
- $isRangeSelection,
20
- COMMAND_PRIORITY_EDITOR,
21
- COMMAND_PRIORITY_LOW,
22
- createCommand,
23
- KEY_ARROW_DOWN_COMMAND,
24
- KEY_ARROW_LEFT_COMMAND,
25
- KEY_ARROW_RIGHT_COMMAND,
26
- KEY_ARROW_UP_COMMAND
27
- } from "lexical";
28
- import { useEffect } from "react";
29
-
30
- // src/components/editor/nodes/LayoutNode/LayoutContainerNode.ts
31
- init_react_shim();
32
- import { addClassNamesToElement } from "@lexical/utils";
33
- import { ElementNode } from "lexical";
34
- function $convertLayoutContainerElement(domNode) {
35
- const styleAttributes = window.getComputedStyle(domNode);
36
- const templateColumns = styleAttributes.getPropertyValue(
37
- "grid-template-columns"
38
- );
39
- if (templateColumns) {
40
- const node = $createLayoutContainerNode(templateColumns);
41
- return { node };
42
- }
43
- return null;
44
- }
45
- var LayoutContainerNode = class _LayoutContainerNode extends ElementNode {
46
- constructor(templateColumns, key) {
47
- super(key);
48
- this.__templateColumns = templateColumns;
49
- }
50
- static getType() {
51
- return "layout-container";
52
- }
53
- static clone(node) {
54
- return new _LayoutContainerNode(node.__templateColumns, node.__key);
55
- }
56
- createDOM(config) {
57
- const dom = document.createElement("div");
58
- dom.style.gridTemplateColumns = this.__templateColumns;
59
- if (typeof config.theme.layoutContainer === "string") {
60
- addClassNamesToElement(dom, config.theme.layoutContainer);
61
- }
62
- return dom;
63
- }
64
- exportDOM() {
65
- const element = document.createElement("div");
66
- element.style.gridTemplateColumns = this.__templateColumns;
67
- element.setAttribute("data-lexical-layout-container", "true");
68
- return { element };
69
- }
70
- updateDOM(prevNode, dom) {
71
- if (prevNode.__templateColumns !== this.__templateColumns) {
72
- dom.style.gridTemplateColumns = this.__templateColumns;
73
- }
74
- return false;
75
- }
76
- static importDOM() {
77
- return {
78
- div: (domNode) => {
79
- if (!domNode.hasAttribute("data-lexical-layout-container")) {
80
- return null;
81
- }
82
- return {
83
- conversion: $convertLayoutContainerElement,
84
- priority: 2
85
- };
86
- }
87
- };
88
- }
89
- static importJSON(json) {
90
- return $createLayoutContainerNode().updateFromJSON(json);
91
- }
92
- updateFromJSON(serializedNode) {
93
- return super.updateFromJSON(serializedNode).setTemplateColumns(serializedNode.templateColumns);
94
- }
95
- isShadowRoot() {
96
- return true;
97
- }
98
- canBeEmpty() {
99
- return false;
100
- }
101
- exportJSON() {
102
- return __spreadProps(__spreadValues({}, super.exportJSON()), {
103
- templateColumns: this.__templateColumns
104
- });
105
- }
106
- getTemplateColumns() {
107
- return this.getLatest().__templateColumns;
108
- }
109
- setTemplateColumns(templateColumns) {
110
- const self = this.getWritable();
111
- self.__templateColumns = templateColumns;
112
- return self;
113
- }
114
- };
115
- function $createLayoutContainerNode(templateColumns = "") {
116
- return new LayoutContainerNode(templateColumns);
117
- }
118
- function $isLayoutContainerNode(node) {
119
- return node instanceof LayoutContainerNode;
120
- }
121
-
122
- // src/components/editor/nodes/LayoutNode/LayoutItemNode.ts
123
- init_react_shim();
124
- import { addClassNamesToElement as addClassNamesToElement2 } from "@lexical/utils";
125
- import { ElementNode as ElementNode2 } from "lexical";
126
- function $convertLayoutItemElement() {
127
- return { node: $createLayoutItemNode() };
128
- }
129
- var LayoutItemNode = class _LayoutItemNode extends ElementNode2 {
130
- static getType() {
131
- return "layout-item";
132
- }
133
- static clone(node) {
134
- return new _LayoutItemNode(node.__key);
135
- }
136
- createDOM(config) {
137
- const dom = document.createElement("div");
138
- dom.setAttribute("data-lexical-layout-item", "true");
139
- if (typeof config.theme.layoutItem === "string") {
140
- addClassNamesToElement2(dom, config.theme.layoutItem);
141
- }
142
- return dom;
143
- }
144
- updateDOM() {
145
- return false;
146
- }
147
- static importDOM() {
148
- return {
149
- div: (domNode) => {
150
- if (!domNode.hasAttribute("data-lexical-layout-item")) {
151
- return null;
152
- }
153
- return {
154
- conversion: $convertLayoutItemElement,
155
- priority: 2
156
- };
157
- }
158
- };
159
- }
160
- static importJSON(serializedNode) {
161
- return $createLayoutItemNode().updateFromJSON(serializedNode);
162
- }
163
- isShadowRoot() {
164
- return true;
165
- }
166
- };
167
- function $createLayoutItemNode() {
168
- return new LayoutItemNode();
169
- }
170
- function $isLayoutItemNode(node) {
171
- return node instanceof LayoutItemNode;
172
- }
173
-
174
- // src/components/editor/plugins/LayoutPlugin/index.tsx
175
- var INSERT_LAYOUT_COMMAND = createCommand();
176
- var UPDATE_LAYOUT_COMMAND = createCommand();
177
- function LayoutPlugin() {
178
- const [editor] = useLexicalComposerContext();
179
- useEffect(() => {
180
- if (!editor.hasNodes([LayoutContainerNode, LayoutItemNode])) {
181
- throw new Error(
182
- "LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor"
183
- );
184
- }
185
- const $onEscape = (before) => {
186
- var _a, _b;
187
- const selection = $getSelection();
188
- if ($isRangeSelection(selection) && selection.isCollapsed() && selection.anchor.offset === 0) {
189
- const container = $findMatchingParent(
190
- selection.anchor.getNode(),
191
- $isLayoutContainerNode
192
- );
193
- if ($isLayoutContainerNode(container)) {
194
- const parent = container.getParent();
195
- const child = parent && (before ? parent.getFirstChild() : parent == null ? void 0 : parent.getLastChild());
196
- const descendant = before ? (_a = container.getFirstDescendant()) == null ? void 0 : _a.getKey() : (_b = container.getLastDescendant()) == null ? void 0 : _b.getKey();
197
- if (parent !== null && child === container && selection.anchor.key === descendant) {
198
- if (before) {
199
- container.insertBefore($createParagraphNode());
200
- } else {
201
- container.insertAfter($createParagraphNode());
202
- }
203
- }
204
- }
205
- }
206
- return false;
207
- };
208
- const $fillLayoutItemIfEmpty = (node) => {
209
- if (node.isEmpty()) {
210
- node.append($createParagraphNode());
211
- }
212
- };
213
- const $removeIsolatedLayoutItem = (node) => {
214
- const parent = node.getParent();
215
- if (!$isLayoutContainerNode(parent)) {
216
- const children = node.getChildren();
217
- for (const child of children) {
218
- node.insertBefore(child);
219
- }
220
- node.remove();
221
- return true;
222
- }
223
- return false;
224
- };
225
- return mergeRegister(
226
- // When layout is the last child pressing down/right arrow will insert paragraph
227
- // below it to allow adding more content. It's similar what $insertBlockNode
228
- // (mainly for decorators), except it'll always be possible to continue adding
229
- // new content even if trailing paragraph is accidentally deleted
230
- editor.registerCommand(
231
- KEY_ARROW_DOWN_COMMAND,
232
- () => $onEscape(false),
233
- COMMAND_PRIORITY_LOW
234
- ),
235
- editor.registerCommand(
236
- KEY_ARROW_RIGHT_COMMAND,
237
- () => $onEscape(false),
238
- COMMAND_PRIORITY_LOW
239
- ),
240
- // When layout is the first child pressing up/left arrow will insert paragraph
241
- // above it to allow adding more content. It's similar what $insertBlockNode
242
- // (mainly for decorators), except it'll always be possible to continue adding
243
- // new content even if leading paragraph is accidentally deleted
244
- editor.registerCommand(
245
- KEY_ARROW_UP_COMMAND,
246
- () => $onEscape(true),
247
- COMMAND_PRIORITY_LOW
248
- ),
249
- editor.registerCommand(
250
- KEY_ARROW_LEFT_COMMAND,
251
- () => $onEscape(true),
252
- COMMAND_PRIORITY_LOW
253
- ),
254
- editor.registerCommand(
255
- INSERT_LAYOUT_COMMAND,
256
- (template) => {
257
- editor.update(() => {
258
- const container = $createLayoutContainerNode(template);
259
- const itemsCount = getItemsCountFromTemplate(template);
260
- for (let i = 0; i < itemsCount; i++) {
261
- container.append(
262
- $createLayoutItemNode().append($createParagraphNode())
263
- );
264
- }
265
- $insertNodeToNearestRoot(container);
266
- container.selectStart();
267
- });
268
- return true;
269
- },
270
- COMMAND_PRIORITY_EDITOR
271
- ),
272
- editor.registerCommand(
273
- UPDATE_LAYOUT_COMMAND,
274
- ({ template, nodeKey }) => {
275
- editor.update(() => {
276
- const container = $getNodeByKey(nodeKey);
277
- if (!$isLayoutContainerNode(container)) {
278
- return;
279
- }
280
- const itemsCount = getItemsCountFromTemplate(template);
281
- const prevItemsCount = getItemsCountFromTemplate(
282
- container.getTemplateColumns()
283
- );
284
- if (itemsCount > prevItemsCount) {
285
- for (let i = prevItemsCount; i < itemsCount; i++) {
286
- container.append(
287
- $createLayoutItemNode().append($createParagraphNode())
288
- );
289
- }
290
- } else if (itemsCount < prevItemsCount) {
291
- for (let i = prevItemsCount - 1; i >= itemsCount; i--) {
292
- const layoutItem = container.getChildAtIndex(i);
293
- if ($isLayoutItemNode(layoutItem)) {
294
- layoutItem.remove();
295
- }
296
- }
297
- }
298
- container.setTemplateColumns(template);
299
- });
300
- return true;
301
- },
302
- COMMAND_PRIORITY_EDITOR
303
- ),
304
- editor.registerNodeTransform(LayoutItemNode, (node) => {
305
- const isRemoved = $removeIsolatedLayoutItem(node);
306
- if (!isRemoved) {
307
- $fillLayoutItemIfEmpty(node);
308
- }
309
- }),
310
- editor.registerNodeTransform(LayoutContainerNode, (node) => {
311
- const children = node.getChildren();
312
- if (!children.every($isLayoutItemNode)) {
313
- for (const child of children) {
314
- node.insertBefore(child);
315
- }
316
- node.remove();
317
- }
318
- })
319
- );
320
- }, [editor]);
321
- return null;
322
- }
323
- function getItemsCountFromTemplate(template) {
324
- return template.trim().split(/\s+/).length;
325
- }
326
-
327
- export {
328
- LayoutItemNode,
329
- $createLayoutItemNode,
330
- LayoutContainerNode,
331
- $createLayoutContainerNode,
332
- INSERT_LAYOUT_COMMAND,
333
- LayoutPlugin
334
- };