@blocknote/core 0.16.0 → 0.17.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.
Files changed (248) hide show
  1. package/dist/blocknote.js +3292 -2755
  2. package/dist/blocknote.js.map +1 -1
  3. package/dist/blocknote.umd.cjs +6 -6
  4. package/dist/blocknote.umd.cjs.map +1 -1
  5. package/dist/webpack-stats.json +1 -1
  6. package/package.json +5 -2
  7. package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +3087 -0
  8. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.ts +132 -0
  9. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +71 -0
  10. package/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +2276 -0
  11. package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.ts +131 -0
  12. package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts +103 -0
  13. package/src/api/blockManipulation/commands/moveBlock/__snapshots__/moveBlock.test.ts.snap +3767 -0
  14. package/src/api/blockManipulation/commands/moveBlock/moveBlock.test.ts +192 -0
  15. package/src/api/blockManipulation/commands/moveBlock/moveBlock.ts +178 -0
  16. package/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap +1136 -0
  17. package/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.ts +34 -0
  18. package/src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts +100 -0
  19. package/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +4931 -0
  20. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.ts +222 -0
  21. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +70 -0
  22. package/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +2924 -0
  23. package/src/api/blockManipulation/commands/splitBlock/splitBlock.test.ts +136 -0
  24. package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +48 -0
  25. package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +8376 -0
  26. package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +300 -0
  27. package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +199 -0
  28. package/src/api/blockManipulation/insertContentAt.ts +96 -0
  29. package/src/api/blockManipulation/selections/textCursorPosition/__snapshots__/textCursorPosition.test.ts.snap +316 -0
  30. package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.ts +53 -0
  31. package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts +130 -0
  32. package/src/api/blockManipulation/setupTestEnv.ts +179 -0
  33. package/src/api/clipboard/__snapshots__/tableAllCells.html +1 -1
  34. package/src/api/clipboard/clipboard.test.ts +5 -6
  35. package/src/api/clipboard/fromClipboard/fileDropExtension.ts +8 -4
  36. package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +11 -6
  37. package/src/api/clipboard/fromClipboard/pasteExtension.ts +8 -4
  38. package/src/api/clipboard/toClipboard/copyExtension.ts +113 -61
  39. package/src/api/exporters/html/__snapshots__/complex/misc/external.html +1 -1
  40. package/src/api/exporters/html/__snapshots__/lists/basic/external.html +1 -1
  41. package/src/api/exporters/html/__snapshots__/lists/nested/external.html +1 -1
  42. package/src/api/exporters/html/externalHTMLExporter.ts +42 -94
  43. package/src/api/exporters/html/htmlConversion.test.ts +19 -13
  44. package/src/api/exporters/html/internalHTMLSerializer.ts +21 -72
  45. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +263 -0
  46. package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +158 -0
  47. package/src/api/exporters/markdown/markdownExporter.test.ts +10 -10
  48. package/src/api/exporters/markdown/markdownExporter.ts +11 -7
  49. package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +2 -2
  50. package/src/api/getBlockInfoFromPos.ts +172 -90
  51. package/src/api/nodeConversions/blockToNode.ts +257 -0
  52. package/src/api/nodeConversions/fragmentToBlocks.ts +60 -0
  53. package/src/api/nodeConversions/nodeConversions.test.ts +9 -8
  54. package/src/api/nodeConversions/{nodeConversions.ts → nodeToBlock.ts} +20 -262
  55. package/src/api/parsers/html/parseHTML.test.ts +2 -2
  56. package/src/api/parsers/html/parseHTML.ts +8 -4
  57. package/src/api/parsers/html/util/nestedLists.test.ts +2 -2
  58. package/src/api/parsers/markdown/parseMarkdown.test.ts +2 -2
  59. package/src/api/parsers/markdown/parseMarkdown.ts +8 -4
  60. package/src/api/testUtil/cases/customBlocks.ts +11 -11
  61. package/src/api/testUtil/cases/customInlineContent.ts +6 -6
  62. package/src/api/testUtil/cases/customStyles.ts +6 -6
  63. package/src/api/testUtil/cases/defaultSchema.ts +4 -4
  64. package/src/api/testUtil/index.ts +6 -6
  65. package/src/api/testUtil/partialBlockTestUtil.ts +5 -5
  66. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +5 -5
  67. package/src/blocks/FileBlockContent/FileBlockContent.ts +4 -4
  68. package/src/blocks/FileBlockContent/fileBlockHelpers.ts +2 -2
  69. package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +61 -39
  70. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +5 -5
  71. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +30 -18
  72. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +67 -33
  73. package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +23 -19
  74. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +22 -24
  75. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +31 -19
  76. package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +16 -11
  77. package/src/blocks/TableBlockContent/TableBlockContent.ts +4 -4
  78. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +5 -5
  79. package/src/blocks/defaultBlockHelpers.ts +4 -4
  80. package/src/blocks/defaultBlockTypeGuards.ts +5 -5
  81. package/src/blocks/defaultBlocks.ts +13 -13
  82. package/src/blocks/defaultProps.ts +1 -1
  83. package/src/editor/BlockNoteEditor.test.ts +14 -7
  84. package/src/editor/BlockNoteEditor.ts +82 -149
  85. package/src/editor/BlockNoteExtensions.ts +15 -11
  86. package/src/editor/BlockNoteSchema.ts +7 -7
  87. package/src/editor/BlockNoteTipTapEditor.ts +5 -3
  88. package/src/editor/cursorPositionTypes.ts +7 -2
  89. package/src/editor/selectionTypes.ts +6 -2
  90. package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +1 -1
  91. package/src/extensions/BackgroundColor/BackgroundColorMark.ts +1 -1
  92. package/src/extensions/FilePanel/FilePanelPlugin.ts +4 -4
  93. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +8 -4
  94. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +334 -0
  95. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +9 -4
  96. package/src/extensions/{NonEditableBlocks/NonEditableBlockPlugin.ts → NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts} +2 -2
  97. package/src/extensions/Placeholder/PlaceholderPlugin.ts +1 -1
  98. package/src/extensions/SideMenu/SideMenuPlugin.ts +72 -401
  99. package/src/extensions/SideMenu/dragging.ts +251 -0
  100. package/src/extensions/SuggestionMenu/DefaultSuggestionItem.ts +1 -1
  101. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +8 -4
  102. package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +8 -4
  103. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +19 -15
  104. package/src/extensions/TableHandles/TableHandlesPlugin.ts +11 -7
  105. package/src/extensions/TextColor/TextColorExtension.ts +1 -1
  106. package/src/extensions/TextColor/TextColorMark.ts +1 -1
  107. package/src/i18n/dictionary.ts +1 -1
  108. package/src/i18n/locales/ar.ts +1 -1
  109. package/src/i18n/locales/fr.ts +1 -1
  110. package/src/i18n/locales/hr.ts +308 -0
  111. package/src/i18n/locales/index.ts +15 -14
  112. package/src/i18n/locales/is.ts +1 -1
  113. package/src/i18n/locales/ja.ts +1 -1
  114. package/src/i18n/locales/ko.ts +1 -1
  115. package/src/i18n/locales/nl.ts +1 -1
  116. package/src/i18n/locales/pl.ts +1 -1
  117. package/src/i18n/locales/pt.ts +1 -1
  118. package/src/i18n/locales/ru.ts +1 -1
  119. package/src/i18n/locales/vi.ts +1 -1
  120. package/src/i18n/locales/zh.ts +1 -1
  121. package/src/index.ts +45 -44
  122. package/src/pm-nodes/BlockContainer.ts +3 -647
  123. package/src/pm-nodes/BlockGroup.ts +2 -2
  124. package/src/pm-nodes/index.ts +3 -3
  125. package/src/schema/blocks/createSpec.ts +8 -7
  126. package/src/schema/blocks/internal.ts +9 -9
  127. package/src/schema/blocks/types.ts +4 -4
  128. package/src/schema/index.ts +10 -10
  129. package/src/schema/inlineContent/createSpec.ts +9 -10
  130. package/src/schema/inlineContent/internal.ts +3 -3
  131. package/src/schema/inlineContent/types.ts +2 -2
  132. package/src/schema/styles/createSpec.ts +4 -3
  133. package/src/schema/styles/internal.ts +1 -1
  134. package/types/src/api/blockManipulation/commands/insertBlocks/insertBlocks.d.ts +4 -0
  135. package/types/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.d.ts +7 -0
  136. package/types/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.d.ts +1 -0
  137. package/types/src/api/blockManipulation/commands/moveBlock/moveBlock.d.ts +5 -0
  138. package/types/src/api/blockManipulation/commands/moveBlock/moveBlock.test.d.ts +1 -0
  139. package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.d.ts +7 -0
  140. package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.d.ts +1 -0
  141. package/types/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.d.ts +7 -0
  142. package/types/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.d.ts +1 -0
  143. package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.d.ts +5 -0
  144. package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.test.d.ts +1 -0
  145. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +11 -0
  146. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.test.d.ts +1 -0
  147. package/types/src/api/blockManipulation/insertContentAt.d.ts +6 -0
  148. package/types/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.d.ts +5 -0
  149. package/types/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.d.ts +1 -0
  150. package/types/src/api/blockManipulation/setupTestEnv.d.ts +492 -0
  151. package/types/src/api/clipboard/fromClipboard/fileDropExtension.d.ts +3 -3
  152. package/types/src/api/clipboard/fromClipboard/handleFileInsertion.d.ts +1 -1
  153. package/types/src/api/clipboard/fromClipboard/pasteExtension.d.ts +2 -2
  154. package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +5 -5
  155. package/types/src/api/exporters/html/externalHTMLExporter.d.ts +7 -9
  156. package/types/src/api/exporters/html/internalHTMLSerializer.d.ts +6 -10
  157. package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +10 -0
  158. package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +11 -0
  159. package/types/src/api/exporters/markdown/markdownExporter.d.ts +3 -3
  160. package/types/src/api/getBlockInfoFromPos.d.ts +63 -20
  161. package/types/src/api/nodeConversions/blockToNode.d.ts +15 -0
  162. package/types/src/api/nodeConversions/fragmentToBlocks.d.ts +7 -0
  163. package/types/src/api/nodeConversions/nodeToBlock.d.ts +16 -0
  164. package/types/src/api/parsers/html/parseHTML.d.ts +2 -2
  165. package/types/src/api/parsers/markdown/parseMarkdown.d.ts +2 -2
  166. package/types/src/api/testUtil/cases/customBlocks.d.ts +39 -39
  167. package/types/src/api/testUtil/cases/customInlineContent.d.ts +35 -35
  168. package/types/src/api/testUtil/cases/customStyles.d.ts +35 -35
  169. package/types/src/api/testUtil/cases/defaultSchema.d.ts +2 -2
  170. package/types/src/api/testUtil/index.d.ts +6 -6
  171. package/types/src/api/testUtil/partialBlockTestUtil.d.ts +4 -4
  172. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +4 -4
  173. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +4 -4
  174. package/types/src/blocks/FileBlockContent/fileBlockHelpers.d.ts +2 -2
  175. package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +2 -2
  176. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +4 -4
  177. package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +2 -2
  178. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +2 -2
  179. package/types/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.d.ts +2 -2
  180. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +2 -2
  181. package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +2 -2
  182. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +2 -2
  183. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +4 -4
  184. package/types/src/blocks/defaultBlockHelpers.d.ts +3 -3
  185. package/types/src/blocks/defaultBlockTypeGuards.d.ts +4 -4
  186. package/types/src/blocks/defaultBlocks.d.ts +38 -38
  187. package/types/src/blocks/defaultProps.d.ts +1 -1
  188. package/types/src/editor/BlockNoteEditor.d.ts +28 -16
  189. package/types/src/editor/BlockNoteExtensions.d.ts +3 -3
  190. package/types/src/editor/BlockNoteSchema.d.ts +4 -4
  191. package/types/src/editor/BlockNoteTipTapEditor.d.ts +2 -2
  192. package/types/src/editor/cursorPositionTypes.d.ts +3 -2
  193. package/types/src/editor/selectionTypes.d.ts +2 -2
  194. package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +1 -1
  195. package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
  196. package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +4 -4
  197. package/types/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.d.ts +5 -0
  198. package/types/src/extensions/LinkToolbar/LinkToolbarPlugin.d.ts +4 -4
  199. package/types/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.d.ts +2 -0
  200. package/types/src/extensions/Placeholder/PlaceholderPlugin.d.ts +1 -1
  201. package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +12 -28
  202. package/types/src/extensions/SideMenu/dragging.d.ts +17 -0
  203. package/types/src/extensions/SuggestionMenu/DefaultSuggestionItem.d.ts +1 -1
  204. package/types/src/extensions/SuggestionMenu/SuggestionPlugin.d.ts +4 -4
  205. package/types/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.d.ts +3 -3
  206. package/types/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.d.ts +4 -4
  207. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +4 -4
  208. package/types/src/extensions/TextColor/TextColorMark.d.ts +1 -1
  209. package/types/src/i18n/dictionary.d.ts +1 -1
  210. package/types/src/i18n/locales/ar.d.ts +1 -1
  211. package/types/src/i18n/locales/fr.d.ts +1 -1
  212. package/types/src/i18n/locales/hr.d.ts +239 -0
  213. package/types/src/i18n/locales/index.d.ts +15 -14
  214. package/types/src/i18n/locales/is.d.ts +1 -1
  215. package/types/src/i18n/locales/ja.d.ts +1 -1
  216. package/types/src/i18n/locales/ko.d.ts +1 -1
  217. package/types/src/i18n/locales/nl.d.ts +1 -1
  218. package/types/src/i18n/locales/pl.d.ts +1 -1
  219. package/types/src/i18n/locales/pt.d.ts +1 -1
  220. package/types/src/i18n/locales/ru.d.ts +1 -1
  221. package/types/src/i18n/locales/vi.d.ts +1 -1
  222. package/types/src/i18n/locales/zh.d.ts +1 -1
  223. package/types/src/index.d.ts +45 -44
  224. package/types/src/pm-nodes/BlockContainer.d.ts +2 -16
  225. package/types/src/pm-nodes/BlockGroup.d.ts +1 -1
  226. package/types/src/pm-nodes/index.d.ts +3 -3
  227. package/types/src/schema/blocks/createSpec.d.ts +5 -5
  228. package/types/src/schema/blocks/internal.d.ts +5 -5
  229. package/types/src/schema/blocks/types.d.ts +4 -4
  230. package/types/src/schema/index.d.ts +10 -10
  231. package/types/src/schema/inlineContent/createSpec.d.ts +3 -3
  232. package/types/src/schema/inlineContent/internal.d.ts +2 -2
  233. package/types/src/schema/inlineContent/types.d.ts +2 -2
  234. package/types/src/schema/styles/createSpec.d.ts +1 -1
  235. package/types/src/schema/styles/internal.d.ts +1 -1
  236. package/src/api/blockManipulation/__snapshots__/blockManipulation.test.ts.snap +0 -714
  237. package/src/api/blockManipulation/blockManipulation.test.ts +0 -292
  238. package/src/api/blockManipulation/blockManipulation.ts +0 -350
  239. package/src/api/exporters/html/util/sharedHTMLConversion.ts +0 -130
  240. package/src/api/exporters/html/util/simplifyBlocksRehypePlugin.ts +0 -218
  241. package/src/api/getCurrentBlockContentType.ts +0 -14
  242. package/types/src/api/blockManipulation/blockManipulation.d.ts +0 -14
  243. package/types/src/api/exporters/html/util/sharedHTMLConversion.d.ts +0 -9
  244. package/types/src/api/exporters/html/util/simplifyBlocksRehypePlugin.d.ts +0 -16
  245. package/types/src/api/getCurrentBlockContentType.d.ts +0 -2
  246. package/types/src/api/nodeConversions/nodeConversions.d.ts +0 -24
  247. package/types/src/extensions/NonEditableBlocks/NonEditableBlockPlugin.d.ts +0 -2
  248. /package/types/src/api/blockManipulation/{blockManipulation.test.d.ts → commands/insertBlocks/insertBlocks.test.d.ts} +0 -0
@@ -0,0 +1,3087 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Test insertBlocks > Insert multiple blocks after 1`] = `
4
+ [
5
+ {
6
+ "children": [],
7
+ "content": [
8
+ {
9
+ "styles": {},
10
+ "text": "Paragraph 0",
11
+ "type": "text",
12
+ },
13
+ ],
14
+ "id": "paragraph-0",
15
+ "props": {
16
+ "backgroundColor": "default",
17
+ "textAlignment": "left",
18
+ "textColor": "default",
19
+ },
20
+ "type": "paragraph",
21
+ },
22
+ {
23
+ "children": [],
24
+ "content": [
25
+ {
26
+ "styles": {},
27
+ "text": "Inserted paragraph 1",
28
+ "type": "text",
29
+ },
30
+ ],
31
+ "id": "0",
32
+ "props": {
33
+ "backgroundColor": "default",
34
+ "textAlignment": "left",
35
+ "textColor": "default",
36
+ },
37
+ "type": "paragraph",
38
+ },
39
+ {
40
+ "children": [],
41
+ "content": [
42
+ {
43
+ "styles": {},
44
+ "text": "Inserted paragraph 2",
45
+ "type": "text",
46
+ },
47
+ ],
48
+ "id": "1",
49
+ "props": {
50
+ "backgroundColor": "default",
51
+ "textAlignment": "left",
52
+ "textColor": "default",
53
+ },
54
+ "type": "paragraph",
55
+ },
56
+ {
57
+ "children": [],
58
+ "content": [
59
+ {
60
+ "styles": {},
61
+ "text": "Inserted paragraph 3",
62
+ "type": "text",
63
+ },
64
+ ],
65
+ "id": "2",
66
+ "props": {
67
+ "backgroundColor": "default",
68
+ "textAlignment": "left",
69
+ "textColor": "default",
70
+ },
71
+ "type": "paragraph",
72
+ },
73
+ {
74
+ "children": [],
75
+ "content": [
76
+ {
77
+ "styles": {},
78
+ "text": "Paragraph 1",
79
+ "type": "text",
80
+ },
81
+ ],
82
+ "id": "paragraph-1",
83
+ "props": {
84
+ "backgroundColor": "default",
85
+ "textAlignment": "left",
86
+ "textColor": "default",
87
+ },
88
+ "type": "paragraph",
89
+ },
90
+ {
91
+ "children": [
92
+ {
93
+ "children": [
94
+ {
95
+ "children": [],
96
+ "content": [
97
+ {
98
+ "styles": {},
99
+ "text": "Double Nested Paragraph 0",
100
+ "type": "text",
101
+ },
102
+ ],
103
+ "id": "double-nested-paragraph-0",
104
+ "props": {
105
+ "backgroundColor": "default",
106
+ "textAlignment": "left",
107
+ "textColor": "default",
108
+ },
109
+ "type": "paragraph",
110
+ },
111
+ ],
112
+ "content": [
113
+ {
114
+ "styles": {},
115
+ "text": "Nested Paragraph 0",
116
+ "type": "text",
117
+ },
118
+ ],
119
+ "id": "nested-paragraph-0",
120
+ "props": {
121
+ "backgroundColor": "default",
122
+ "textAlignment": "left",
123
+ "textColor": "default",
124
+ },
125
+ "type": "paragraph",
126
+ },
127
+ ],
128
+ "content": [
129
+ {
130
+ "styles": {},
131
+ "text": "Paragraph with children",
132
+ "type": "text",
133
+ },
134
+ ],
135
+ "id": "paragraph-with-children",
136
+ "props": {
137
+ "backgroundColor": "default",
138
+ "textAlignment": "left",
139
+ "textColor": "default",
140
+ },
141
+ "type": "paragraph",
142
+ },
143
+ {
144
+ "children": [],
145
+ "content": [
146
+ {
147
+ "styles": {},
148
+ "text": "Paragraph 2",
149
+ "type": "text",
150
+ },
151
+ ],
152
+ "id": "paragraph-2",
153
+ "props": {
154
+ "backgroundColor": "default",
155
+ "textAlignment": "left",
156
+ "textColor": "default",
157
+ },
158
+ "type": "paragraph",
159
+ },
160
+ {
161
+ "children": [],
162
+ "content": [
163
+ {
164
+ "styles": {},
165
+ "text": "Paragraph with props",
166
+ "type": "text",
167
+ },
168
+ ],
169
+ "id": "paragraph-with-props",
170
+ "props": {
171
+ "backgroundColor": "default",
172
+ "textAlignment": "center",
173
+ "textColor": "red",
174
+ },
175
+ "type": "paragraph",
176
+ },
177
+ {
178
+ "children": [],
179
+ "content": [
180
+ {
181
+ "styles": {},
182
+ "text": "Paragraph 3",
183
+ "type": "text",
184
+ },
185
+ ],
186
+ "id": "paragraph-3",
187
+ "props": {
188
+ "backgroundColor": "default",
189
+ "textAlignment": "left",
190
+ "textColor": "default",
191
+ },
192
+ "type": "paragraph",
193
+ },
194
+ {
195
+ "children": [],
196
+ "content": [
197
+ {
198
+ "styles": {
199
+ "bold": true,
200
+ },
201
+ "text": "Paragraph",
202
+ "type": "text",
203
+ },
204
+ {
205
+ "styles": {},
206
+ "text": " with styled ",
207
+ "type": "text",
208
+ },
209
+ {
210
+ "styles": {
211
+ "italic": true,
212
+ },
213
+ "text": "content",
214
+ "type": "text",
215
+ },
216
+ ],
217
+ "id": "paragraph-with-styled-content",
218
+ "props": {
219
+ "backgroundColor": "default",
220
+ "textAlignment": "left",
221
+ "textColor": "default",
222
+ },
223
+ "type": "paragraph",
224
+ },
225
+ {
226
+ "children": [],
227
+ "content": [
228
+ {
229
+ "styles": {},
230
+ "text": "Paragraph 4",
231
+ "type": "text",
232
+ },
233
+ ],
234
+ "id": "paragraph-4",
235
+ "props": {
236
+ "backgroundColor": "default",
237
+ "textAlignment": "left",
238
+ "textColor": "default",
239
+ },
240
+ "type": "paragraph",
241
+ },
242
+ {
243
+ "children": [],
244
+ "content": [
245
+ {
246
+ "styles": {},
247
+ "text": "Heading 1",
248
+ "type": "text",
249
+ },
250
+ ],
251
+ "id": "heading-0",
252
+ "props": {
253
+ "backgroundColor": "default",
254
+ "level": 1,
255
+ "textAlignment": "left",
256
+ "textColor": "default",
257
+ },
258
+ "type": "heading",
259
+ },
260
+ {
261
+ "children": [],
262
+ "content": [
263
+ {
264
+ "styles": {},
265
+ "text": "Paragraph 5",
266
+ "type": "text",
267
+ },
268
+ ],
269
+ "id": "paragraph-5",
270
+ "props": {
271
+ "backgroundColor": "default",
272
+ "textAlignment": "left",
273
+ "textColor": "default",
274
+ },
275
+ "type": "paragraph",
276
+ },
277
+ {
278
+ "children": [],
279
+ "content": undefined,
280
+ "id": "image-0",
281
+ "props": {
282
+ "backgroundColor": "default",
283
+ "caption": "",
284
+ "name": "",
285
+ "previewWidth": 512,
286
+ "showPreview": true,
287
+ "textAlignment": "left",
288
+ "url": "https://via.placeholder.com/150",
289
+ },
290
+ "type": "image",
291
+ },
292
+ {
293
+ "children": [],
294
+ "content": [
295
+ {
296
+ "styles": {},
297
+ "text": "Paragraph 6",
298
+ "type": "text",
299
+ },
300
+ ],
301
+ "id": "paragraph-6",
302
+ "props": {
303
+ "backgroundColor": "default",
304
+ "textAlignment": "left",
305
+ "textColor": "default",
306
+ },
307
+ "type": "paragraph",
308
+ },
309
+ {
310
+ "children": [],
311
+ "content": {
312
+ "rows": [
313
+ {
314
+ "cells": [
315
+ [
316
+ {
317
+ "styles": {},
318
+ "text": "Cell 1",
319
+ "type": "text",
320
+ },
321
+ ],
322
+ [
323
+ {
324
+ "styles": {},
325
+ "text": "Cell 2",
326
+ "type": "text",
327
+ },
328
+ ],
329
+ [
330
+ {
331
+ "styles": {},
332
+ "text": "Cell 3",
333
+ "type": "text",
334
+ },
335
+ ],
336
+ ],
337
+ },
338
+ {
339
+ "cells": [
340
+ [
341
+ {
342
+ "styles": {},
343
+ "text": "Cell 4",
344
+ "type": "text",
345
+ },
346
+ ],
347
+ [
348
+ {
349
+ "styles": {},
350
+ "text": "Cell 5",
351
+ "type": "text",
352
+ },
353
+ ],
354
+ [
355
+ {
356
+ "styles": {},
357
+ "text": "Cell 6",
358
+ "type": "text",
359
+ },
360
+ ],
361
+ ],
362
+ },
363
+ {
364
+ "cells": [
365
+ [
366
+ {
367
+ "styles": {},
368
+ "text": "Cell 7",
369
+ "type": "text",
370
+ },
371
+ ],
372
+ [
373
+ {
374
+ "styles": {},
375
+ "text": "Cell 8",
376
+ "type": "text",
377
+ },
378
+ ],
379
+ [
380
+ {
381
+ "styles": {},
382
+ "text": "Cell 9",
383
+ "type": "text",
384
+ },
385
+ ],
386
+ ],
387
+ },
388
+ ],
389
+ "type": "tableContent",
390
+ },
391
+ "id": "table-0",
392
+ "props": {
393
+ "backgroundColor": "default",
394
+ "textColor": "default",
395
+ },
396
+ "type": "table",
397
+ },
398
+ {
399
+ "children": [],
400
+ "content": [
401
+ {
402
+ "styles": {},
403
+ "text": "Paragraph 7",
404
+ "type": "text",
405
+ },
406
+ ],
407
+ "id": "paragraph-7",
408
+ "props": {
409
+ "backgroundColor": "default",
410
+ "textAlignment": "left",
411
+ "textColor": "default",
412
+ },
413
+ "type": "paragraph",
414
+ },
415
+ {
416
+ "children": [],
417
+ "content": [],
418
+ "id": "empty-paragraph",
419
+ "props": {
420
+ "backgroundColor": "default",
421
+ "textAlignment": "left",
422
+ "textColor": "default",
423
+ },
424
+ "type": "paragraph",
425
+ },
426
+ {
427
+ "children": [],
428
+ "content": [
429
+ {
430
+ "styles": {},
431
+ "text": "Paragraph 8",
432
+ "type": "text",
433
+ },
434
+ ],
435
+ "id": "paragraph-8",
436
+ "props": {
437
+ "backgroundColor": "default",
438
+ "textAlignment": "left",
439
+ "textColor": "default",
440
+ },
441
+ "type": "paragraph",
442
+ },
443
+ {
444
+ "children": [
445
+ {
446
+ "children": [
447
+ {
448
+ "children": [],
449
+ "content": [
450
+ {
451
+ "styles": {},
452
+ "text": "Double Nested Paragraph 1",
453
+ "type": "text",
454
+ },
455
+ ],
456
+ "id": "double-nested-paragraph-1",
457
+ "props": {
458
+ "backgroundColor": "default",
459
+ "textAlignment": "left",
460
+ "textColor": "default",
461
+ },
462
+ "type": "paragraph",
463
+ },
464
+ ],
465
+ "content": [
466
+ {
467
+ "styles": {},
468
+ "text": "Nested Paragraph 1",
469
+ "type": "text",
470
+ },
471
+ ],
472
+ "id": "nested-paragraph-1",
473
+ "props": {
474
+ "backgroundColor": "default",
475
+ "textAlignment": "left",
476
+ "textColor": "default",
477
+ },
478
+ "type": "paragraph",
479
+ },
480
+ ],
481
+ "content": [
482
+ {
483
+ "styles": {
484
+ "bold": true,
485
+ },
486
+ "text": "Heading",
487
+ "type": "text",
488
+ },
489
+ {
490
+ "styles": {},
491
+ "text": " with styled ",
492
+ "type": "text",
493
+ },
494
+ {
495
+ "styles": {
496
+ "italic": true,
497
+ },
498
+ "text": "content",
499
+ "type": "text",
500
+ },
501
+ ],
502
+ "id": "heading-with-everything",
503
+ "props": {
504
+ "backgroundColor": "red",
505
+ "level": 2,
506
+ "textAlignment": "center",
507
+ "textColor": "red",
508
+ },
509
+ "type": "heading",
510
+ },
511
+ {
512
+ "children": [],
513
+ "content": [],
514
+ "id": "trailing-paragraph",
515
+ "props": {
516
+ "backgroundColor": "default",
517
+ "textAlignment": "left",
518
+ "textColor": "default",
519
+ },
520
+ "type": "paragraph",
521
+ },
522
+ ]
523
+ `;
524
+
525
+ exports[`Test insertBlocks > Insert multiple blocks before 1`] = `
526
+ [
527
+ {
528
+ "children": [],
529
+ "content": [
530
+ {
531
+ "styles": {},
532
+ "text": "Inserted paragraph 1",
533
+ "type": "text",
534
+ },
535
+ ],
536
+ "id": "0",
537
+ "props": {
538
+ "backgroundColor": "default",
539
+ "textAlignment": "left",
540
+ "textColor": "default",
541
+ },
542
+ "type": "paragraph",
543
+ },
544
+ {
545
+ "children": [],
546
+ "content": [
547
+ {
548
+ "styles": {},
549
+ "text": "Inserted paragraph 2",
550
+ "type": "text",
551
+ },
552
+ ],
553
+ "id": "1",
554
+ "props": {
555
+ "backgroundColor": "default",
556
+ "textAlignment": "left",
557
+ "textColor": "default",
558
+ },
559
+ "type": "paragraph",
560
+ },
561
+ {
562
+ "children": [],
563
+ "content": [
564
+ {
565
+ "styles": {},
566
+ "text": "Inserted paragraph 3",
567
+ "type": "text",
568
+ },
569
+ ],
570
+ "id": "2",
571
+ "props": {
572
+ "backgroundColor": "default",
573
+ "textAlignment": "left",
574
+ "textColor": "default",
575
+ },
576
+ "type": "paragraph",
577
+ },
578
+ {
579
+ "children": [],
580
+ "content": [
581
+ {
582
+ "styles": {},
583
+ "text": "Paragraph 0",
584
+ "type": "text",
585
+ },
586
+ ],
587
+ "id": "paragraph-0",
588
+ "props": {
589
+ "backgroundColor": "default",
590
+ "textAlignment": "left",
591
+ "textColor": "default",
592
+ },
593
+ "type": "paragraph",
594
+ },
595
+ {
596
+ "children": [],
597
+ "content": [
598
+ {
599
+ "styles": {},
600
+ "text": "Paragraph 1",
601
+ "type": "text",
602
+ },
603
+ ],
604
+ "id": "paragraph-1",
605
+ "props": {
606
+ "backgroundColor": "default",
607
+ "textAlignment": "left",
608
+ "textColor": "default",
609
+ },
610
+ "type": "paragraph",
611
+ },
612
+ {
613
+ "children": [
614
+ {
615
+ "children": [
616
+ {
617
+ "children": [],
618
+ "content": [
619
+ {
620
+ "styles": {},
621
+ "text": "Double Nested Paragraph 0",
622
+ "type": "text",
623
+ },
624
+ ],
625
+ "id": "double-nested-paragraph-0",
626
+ "props": {
627
+ "backgroundColor": "default",
628
+ "textAlignment": "left",
629
+ "textColor": "default",
630
+ },
631
+ "type": "paragraph",
632
+ },
633
+ ],
634
+ "content": [
635
+ {
636
+ "styles": {},
637
+ "text": "Nested Paragraph 0",
638
+ "type": "text",
639
+ },
640
+ ],
641
+ "id": "nested-paragraph-0",
642
+ "props": {
643
+ "backgroundColor": "default",
644
+ "textAlignment": "left",
645
+ "textColor": "default",
646
+ },
647
+ "type": "paragraph",
648
+ },
649
+ ],
650
+ "content": [
651
+ {
652
+ "styles": {},
653
+ "text": "Paragraph with children",
654
+ "type": "text",
655
+ },
656
+ ],
657
+ "id": "paragraph-with-children",
658
+ "props": {
659
+ "backgroundColor": "default",
660
+ "textAlignment": "left",
661
+ "textColor": "default",
662
+ },
663
+ "type": "paragraph",
664
+ },
665
+ {
666
+ "children": [],
667
+ "content": [
668
+ {
669
+ "styles": {},
670
+ "text": "Paragraph 2",
671
+ "type": "text",
672
+ },
673
+ ],
674
+ "id": "paragraph-2",
675
+ "props": {
676
+ "backgroundColor": "default",
677
+ "textAlignment": "left",
678
+ "textColor": "default",
679
+ },
680
+ "type": "paragraph",
681
+ },
682
+ {
683
+ "children": [],
684
+ "content": [
685
+ {
686
+ "styles": {},
687
+ "text": "Paragraph with props",
688
+ "type": "text",
689
+ },
690
+ ],
691
+ "id": "paragraph-with-props",
692
+ "props": {
693
+ "backgroundColor": "default",
694
+ "textAlignment": "center",
695
+ "textColor": "red",
696
+ },
697
+ "type": "paragraph",
698
+ },
699
+ {
700
+ "children": [],
701
+ "content": [
702
+ {
703
+ "styles": {},
704
+ "text": "Paragraph 3",
705
+ "type": "text",
706
+ },
707
+ ],
708
+ "id": "paragraph-3",
709
+ "props": {
710
+ "backgroundColor": "default",
711
+ "textAlignment": "left",
712
+ "textColor": "default",
713
+ },
714
+ "type": "paragraph",
715
+ },
716
+ {
717
+ "children": [],
718
+ "content": [
719
+ {
720
+ "styles": {
721
+ "bold": true,
722
+ },
723
+ "text": "Paragraph",
724
+ "type": "text",
725
+ },
726
+ {
727
+ "styles": {},
728
+ "text": " with styled ",
729
+ "type": "text",
730
+ },
731
+ {
732
+ "styles": {
733
+ "italic": true,
734
+ },
735
+ "text": "content",
736
+ "type": "text",
737
+ },
738
+ ],
739
+ "id": "paragraph-with-styled-content",
740
+ "props": {
741
+ "backgroundColor": "default",
742
+ "textAlignment": "left",
743
+ "textColor": "default",
744
+ },
745
+ "type": "paragraph",
746
+ },
747
+ {
748
+ "children": [],
749
+ "content": [
750
+ {
751
+ "styles": {},
752
+ "text": "Paragraph 4",
753
+ "type": "text",
754
+ },
755
+ ],
756
+ "id": "paragraph-4",
757
+ "props": {
758
+ "backgroundColor": "default",
759
+ "textAlignment": "left",
760
+ "textColor": "default",
761
+ },
762
+ "type": "paragraph",
763
+ },
764
+ {
765
+ "children": [],
766
+ "content": [
767
+ {
768
+ "styles": {},
769
+ "text": "Heading 1",
770
+ "type": "text",
771
+ },
772
+ ],
773
+ "id": "heading-0",
774
+ "props": {
775
+ "backgroundColor": "default",
776
+ "level": 1,
777
+ "textAlignment": "left",
778
+ "textColor": "default",
779
+ },
780
+ "type": "heading",
781
+ },
782
+ {
783
+ "children": [],
784
+ "content": [
785
+ {
786
+ "styles": {},
787
+ "text": "Paragraph 5",
788
+ "type": "text",
789
+ },
790
+ ],
791
+ "id": "paragraph-5",
792
+ "props": {
793
+ "backgroundColor": "default",
794
+ "textAlignment": "left",
795
+ "textColor": "default",
796
+ },
797
+ "type": "paragraph",
798
+ },
799
+ {
800
+ "children": [],
801
+ "content": undefined,
802
+ "id": "image-0",
803
+ "props": {
804
+ "backgroundColor": "default",
805
+ "caption": "",
806
+ "name": "",
807
+ "previewWidth": 512,
808
+ "showPreview": true,
809
+ "textAlignment": "left",
810
+ "url": "https://via.placeholder.com/150",
811
+ },
812
+ "type": "image",
813
+ },
814
+ {
815
+ "children": [],
816
+ "content": [
817
+ {
818
+ "styles": {},
819
+ "text": "Paragraph 6",
820
+ "type": "text",
821
+ },
822
+ ],
823
+ "id": "paragraph-6",
824
+ "props": {
825
+ "backgroundColor": "default",
826
+ "textAlignment": "left",
827
+ "textColor": "default",
828
+ },
829
+ "type": "paragraph",
830
+ },
831
+ {
832
+ "children": [],
833
+ "content": {
834
+ "rows": [
835
+ {
836
+ "cells": [
837
+ [
838
+ {
839
+ "styles": {},
840
+ "text": "Cell 1",
841
+ "type": "text",
842
+ },
843
+ ],
844
+ [
845
+ {
846
+ "styles": {},
847
+ "text": "Cell 2",
848
+ "type": "text",
849
+ },
850
+ ],
851
+ [
852
+ {
853
+ "styles": {},
854
+ "text": "Cell 3",
855
+ "type": "text",
856
+ },
857
+ ],
858
+ ],
859
+ },
860
+ {
861
+ "cells": [
862
+ [
863
+ {
864
+ "styles": {},
865
+ "text": "Cell 4",
866
+ "type": "text",
867
+ },
868
+ ],
869
+ [
870
+ {
871
+ "styles": {},
872
+ "text": "Cell 5",
873
+ "type": "text",
874
+ },
875
+ ],
876
+ [
877
+ {
878
+ "styles": {},
879
+ "text": "Cell 6",
880
+ "type": "text",
881
+ },
882
+ ],
883
+ ],
884
+ },
885
+ {
886
+ "cells": [
887
+ [
888
+ {
889
+ "styles": {},
890
+ "text": "Cell 7",
891
+ "type": "text",
892
+ },
893
+ ],
894
+ [
895
+ {
896
+ "styles": {},
897
+ "text": "Cell 8",
898
+ "type": "text",
899
+ },
900
+ ],
901
+ [
902
+ {
903
+ "styles": {},
904
+ "text": "Cell 9",
905
+ "type": "text",
906
+ },
907
+ ],
908
+ ],
909
+ },
910
+ ],
911
+ "type": "tableContent",
912
+ },
913
+ "id": "table-0",
914
+ "props": {
915
+ "backgroundColor": "default",
916
+ "textColor": "default",
917
+ },
918
+ "type": "table",
919
+ },
920
+ {
921
+ "children": [],
922
+ "content": [
923
+ {
924
+ "styles": {},
925
+ "text": "Paragraph 7",
926
+ "type": "text",
927
+ },
928
+ ],
929
+ "id": "paragraph-7",
930
+ "props": {
931
+ "backgroundColor": "default",
932
+ "textAlignment": "left",
933
+ "textColor": "default",
934
+ },
935
+ "type": "paragraph",
936
+ },
937
+ {
938
+ "children": [],
939
+ "content": [],
940
+ "id": "empty-paragraph",
941
+ "props": {
942
+ "backgroundColor": "default",
943
+ "textAlignment": "left",
944
+ "textColor": "default",
945
+ },
946
+ "type": "paragraph",
947
+ },
948
+ {
949
+ "children": [],
950
+ "content": [
951
+ {
952
+ "styles": {},
953
+ "text": "Paragraph 8",
954
+ "type": "text",
955
+ },
956
+ ],
957
+ "id": "paragraph-8",
958
+ "props": {
959
+ "backgroundColor": "default",
960
+ "textAlignment": "left",
961
+ "textColor": "default",
962
+ },
963
+ "type": "paragraph",
964
+ },
965
+ {
966
+ "children": [
967
+ {
968
+ "children": [
969
+ {
970
+ "children": [],
971
+ "content": [
972
+ {
973
+ "styles": {},
974
+ "text": "Double Nested Paragraph 1",
975
+ "type": "text",
976
+ },
977
+ ],
978
+ "id": "double-nested-paragraph-1",
979
+ "props": {
980
+ "backgroundColor": "default",
981
+ "textAlignment": "left",
982
+ "textColor": "default",
983
+ },
984
+ "type": "paragraph",
985
+ },
986
+ ],
987
+ "content": [
988
+ {
989
+ "styles": {},
990
+ "text": "Nested Paragraph 1",
991
+ "type": "text",
992
+ },
993
+ ],
994
+ "id": "nested-paragraph-1",
995
+ "props": {
996
+ "backgroundColor": "default",
997
+ "textAlignment": "left",
998
+ "textColor": "default",
999
+ },
1000
+ "type": "paragraph",
1001
+ },
1002
+ ],
1003
+ "content": [
1004
+ {
1005
+ "styles": {
1006
+ "bold": true,
1007
+ },
1008
+ "text": "Heading",
1009
+ "type": "text",
1010
+ },
1011
+ {
1012
+ "styles": {},
1013
+ "text": " with styled ",
1014
+ "type": "text",
1015
+ },
1016
+ {
1017
+ "styles": {
1018
+ "italic": true,
1019
+ },
1020
+ "text": "content",
1021
+ "type": "text",
1022
+ },
1023
+ ],
1024
+ "id": "heading-with-everything",
1025
+ "props": {
1026
+ "backgroundColor": "red",
1027
+ "level": 2,
1028
+ "textAlignment": "center",
1029
+ "textColor": "red",
1030
+ },
1031
+ "type": "heading",
1032
+ },
1033
+ {
1034
+ "children": [],
1035
+ "content": [],
1036
+ "id": "trailing-paragraph",
1037
+ "props": {
1038
+ "backgroundColor": "default",
1039
+ "textAlignment": "left",
1040
+ "textColor": "default",
1041
+ },
1042
+ "type": "paragraph",
1043
+ },
1044
+ ]
1045
+ `;
1046
+
1047
+ exports[`Test insertBlocks > Insert single basic block after 1`] = `
1048
+ [
1049
+ {
1050
+ "children": [],
1051
+ "content": [
1052
+ {
1053
+ "styles": {},
1054
+ "text": "Paragraph 0",
1055
+ "type": "text",
1056
+ },
1057
+ ],
1058
+ "id": "paragraph-0",
1059
+ "props": {
1060
+ "backgroundColor": "default",
1061
+ "textAlignment": "left",
1062
+ "textColor": "default",
1063
+ },
1064
+ "type": "paragraph",
1065
+ },
1066
+ {
1067
+ "children": [],
1068
+ "content": [],
1069
+ "id": "0",
1070
+ "props": {
1071
+ "backgroundColor": "default",
1072
+ "textAlignment": "left",
1073
+ "textColor": "default",
1074
+ },
1075
+ "type": "paragraph",
1076
+ },
1077
+ {
1078
+ "children": [],
1079
+ "content": [
1080
+ {
1081
+ "styles": {},
1082
+ "text": "Paragraph 1",
1083
+ "type": "text",
1084
+ },
1085
+ ],
1086
+ "id": "paragraph-1",
1087
+ "props": {
1088
+ "backgroundColor": "default",
1089
+ "textAlignment": "left",
1090
+ "textColor": "default",
1091
+ },
1092
+ "type": "paragraph",
1093
+ },
1094
+ {
1095
+ "children": [
1096
+ {
1097
+ "children": [
1098
+ {
1099
+ "children": [],
1100
+ "content": [
1101
+ {
1102
+ "styles": {},
1103
+ "text": "Double Nested Paragraph 0",
1104
+ "type": "text",
1105
+ },
1106
+ ],
1107
+ "id": "double-nested-paragraph-0",
1108
+ "props": {
1109
+ "backgroundColor": "default",
1110
+ "textAlignment": "left",
1111
+ "textColor": "default",
1112
+ },
1113
+ "type": "paragraph",
1114
+ },
1115
+ ],
1116
+ "content": [
1117
+ {
1118
+ "styles": {},
1119
+ "text": "Nested Paragraph 0",
1120
+ "type": "text",
1121
+ },
1122
+ ],
1123
+ "id": "nested-paragraph-0",
1124
+ "props": {
1125
+ "backgroundColor": "default",
1126
+ "textAlignment": "left",
1127
+ "textColor": "default",
1128
+ },
1129
+ "type": "paragraph",
1130
+ },
1131
+ ],
1132
+ "content": [
1133
+ {
1134
+ "styles": {},
1135
+ "text": "Paragraph with children",
1136
+ "type": "text",
1137
+ },
1138
+ ],
1139
+ "id": "paragraph-with-children",
1140
+ "props": {
1141
+ "backgroundColor": "default",
1142
+ "textAlignment": "left",
1143
+ "textColor": "default",
1144
+ },
1145
+ "type": "paragraph",
1146
+ },
1147
+ {
1148
+ "children": [],
1149
+ "content": [
1150
+ {
1151
+ "styles": {},
1152
+ "text": "Paragraph 2",
1153
+ "type": "text",
1154
+ },
1155
+ ],
1156
+ "id": "paragraph-2",
1157
+ "props": {
1158
+ "backgroundColor": "default",
1159
+ "textAlignment": "left",
1160
+ "textColor": "default",
1161
+ },
1162
+ "type": "paragraph",
1163
+ },
1164
+ {
1165
+ "children": [],
1166
+ "content": [
1167
+ {
1168
+ "styles": {},
1169
+ "text": "Paragraph with props",
1170
+ "type": "text",
1171
+ },
1172
+ ],
1173
+ "id": "paragraph-with-props",
1174
+ "props": {
1175
+ "backgroundColor": "default",
1176
+ "textAlignment": "center",
1177
+ "textColor": "red",
1178
+ },
1179
+ "type": "paragraph",
1180
+ },
1181
+ {
1182
+ "children": [],
1183
+ "content": [
1184
+ {
1185
+ "styles": {},
1186
+ "text": "Paragraph 3",
1187
+ "type": "text",
1188
+ },
1189
+ ],
1190
+ "id": "paragraph-3",
1191
+ "props": {
1192
+ "backgroundColor": "default",
1193
+ "textAlignment": "left",
1194
+ "textColor": "default",
1195
+ },
1196
+ "type": "paragraph",
1197
+ },
1198
+ {
1199
+ "children": [],
1200
+ "content": [
1201
+ {
1202
+ "styles": {
1203
+ "bold": true,
1204
+ },
1205
+ "text": "Paragraph",
1206
+ "type": "text",
1207
+ },
1208
+ {
1209
+ "styles": {},
1210
+ "text": " with styled ",
1211
+ "type": "text",
1212
+ },
1213
+ {
1214
+ "styles": {
1215
+ "italic": true,
1216
+ },
1217
+ "text": "content",
1218
+ "type": "text",
1219
+ },
1220
+ ],
1221
+ "id": "paragraph-with-styled-content",
1222
+ "props": {
1223
+ "backgroundColor": "default",
1224
+ "textAlignment": "left",
1225
+ "textColor": "default",
1226
+ },
1227
+ "type": "paragraph",
1228
+ },
1229
+ {
1230
+ "children": [],
1231
+ "content": [
1232
+ {
1233
+ "styles": {},
1234
+ "text": "Paragraph 4",
1235
+ "type": "text",
1236
+ },
1237
+ ],
1238
+ "id": "paragraph-4",
1239
+ "props": {
1240
+ "backgroundColor": "default",
1241
+ "textAlignment": "left",
1242
+ "textColor": "default",
1243
+ },
1244
+ "type": "paragraph",
1245
+ },
1246
+ {
1247
+ "children": [],
1248
+ "content": [
1249
+ {
1250
+ "styles": {},
1251
+ "text": "Heading 1",
1252
+ "type": "text",
1253
+ },
1254
+ ],
1255
+ "id": "heading-0",
1256
+ "props": {
1257
+ "backgroundColor": "default",
1258
+ "level": 1,
1259
+ "textAlignment": "left",
1260
+ "textColor": "default",
1261
+ },
1262
+ "type": "heading",
1263
+ },
1264
+ {
1265
+ "children": [],
1266
+ "content": [
1267
+ {
1268
+ "styles": {},
1269
+ "text": "Paragraph 5",
1270
+ "type": "text",
1271
+ },
1272
+ ],
1273
+ "id": "paragraph-5",
1274
+ "props": {
1275
+ "backgroundColor": "default",
1276
+ "textAlignment": "left",
1277
+ "textColor": "default",
1278
+ },
1279
+ "type": "paragraph",
1280
+ },
1281
+ {
1282
+ "children": [],
1283
+ "content": undefined,
1284
+ "id": "image-0",
1285
+ "props": {
1286
+ "backgroundColor": "default",
1287
+ "caption": "",
1288
+ "name": "",
1289
+ "previewWidth": 512,
1290
+ "showPreview": true,
1291
+ "textAlignment": "left",
1292
+ "url": "https://via.placeholder.com/150",
1293
+ },
1294
+ "type": "image",
1295
+ },
1296
+ {
1297
+ "children": [],
1298
+ "content": [
1299
+ {
1300
+ "styles": {},
1301
+ "text": "Paragraph 6",
1302
+ "type": "text",
1303
+ },
1304
+ ],
1305
+ "id": "paragraph-6",
1306
+ "props": {
1307
+ "backgroundColor": "default",
1308
+ "textAlignment": "left",
1309
+ "textColor": "default",
1310
+ },
1311
+ "type": "paragraph",
1312
+ },
1313
+ {
1314
+ "children": [],
1315
+ "content": {
1316
+ "rows": [
1317
+ {
1318
+ "cells": [
1319
+ [
1320
+ {
1321
+ "styles": {},
1322
+ "text": "Cell 1",
1323
+ "type": "text",
1324
+ },
1325
+ ],
1326
+ [
1327
+ {
1328
+ "styles": {},
1329
+ "text": "Cell 2",
1330
+ "type": "text",
1331
+ },
1332
+ ],
1333
+ [
1334
+ {
1335
+ "styles": {},
1336
+ "text": "Cell 3",
1337
+ "type": "text",
1338
+ },
1339
+ ],
1340
+ ],
1341
+ },
1342
+ {
1343
+ "cells": [
1344
+ [
1345
+ {
1346
+ "styles": {},
1347
+ "text": "Cell 4",
1348
+ "type": "text",
1349
+ },
1350
+ ],
1351
+ [
1352
+ {
1353
+ "styles": {},
1354
+ "text": "Cell 5",
1355
+ "type": "text",
1356
+ },
1357
+ ],
1358
+ [
1359
+ {
1360
+ "styles": {},
1361
+ "text": "Cell 6",
1362
+ "type": "text",
1363
+ },
1364
+ ],
1365
+ ],
1366
+ },
1367
+ {
1368
+ "cells": [
1369
+ [
1370
+ {
1371
+ "styles": {},
1372
+ "text": "Cell 7",
1373
+ "type": "text",
1374
+ },
1375
+ ],
1376
+ [
1377
+ {
1378
+ "styles": {},
1379
+ "text": "Cell 8",
1380
+ "type": "text",
1381
+ },
1382
+ ],
1383
+ [
1384
+ {
1385
+ "styles": {},
1386
+ "text": "Cell 9",
1387
+ "type": "text",
1388
+ },
1389
+ ],
1390
+ ],
1391
+ },
1392
+ ],
1393
+ "type": "tableContent",
1394
+ },
1395
+ "id": "table-0",
1396
+ "props": {
1397
+ "backgroundColor": "default",
1398
+ "textColor": "default",
1399
+ },
1400
+ "type": "table",
1401
+ },
1402
+ {
1403
+ "children": [],
1404
+ "content": [
1405
+ {
1406
+ "styles": {},
1407
+ "text": "Paragraph 7",
1408
+ "type": "text",
1409
+ },
1410
+ ],
1411
+ "id": "paragraph-7",
1412
+ "props": {
1413
+ "backgroundColor": "default",
1414
+ "textAlignment": "left",
1415
+ "textColor": "default",
1416
+ },
1417
+ "type": "paragraph",
1418
+ },
1419
+ {
1420
+ "children": [],
1421
+ "content": [],
1422
+ "id": "empty-paragraph",
1423
+ "props": {
1424
+ "backgroundColor": "default",
1425
+ "textAlignment": "left",
1426
+ "textColor": "default",
1427
+ },
1428
+ "type": "paragraph",
1429
+ },
1430
+ {
1431
+ "children": [],
1432
+ "content": [
1433
+ {
1434
+ "styles": {},
1435
+ "text": "Paragraph 8",
1436
+ "type": "text",
1437
+ },
1438
+ ],
1439
+ "id": "paragraph-8",
1440
+ "props": {
1441
+ "backgroundColor": "default",
1442
+ "textAlignment": "left",
1443
+ "textColor": "default",
1444
+ },
1445
+ "type": "paragraph",
1446
+ },
1447
+ {
1448
+ "children": [
1449
+ {
1450
+ "children": [
1451
+ {
1452
+ "children": [],
1453
+ "content": [
1454
+ {
1455
+ "styles": {},
1456
+ "text": "Double Nested Paragraph 1",
1457
+ "type": "text",
1458
+ },
1459
+ ],
1460
+ "id": "double-nested-paragraph-1",
1461
+ "props": {
1462
+ "backgroundColor": "default",
1463
+ "textAlignment": "left",
1464
+ "textColor": "default",
1465
+ },
1466
+ "type": "paragraph",
1467
+ },
1468
+ ],
1469
+ "content": [
1470
+ {
1471
+ "styles": {},
1472
+ "text": "Nested Paragraph 1",
1473
+ "type": "text",
1474
+ },
1475
+ ],
1476
+ "id": "nested-paragraph-1",
1477
+ "props": {
1478
+ "backgroundColor": "default",
1479
+ "textAlignment": "left",
1480
+ "textColor": "default",
1481
+ },
1482
+ "type": "paragraph",
1483
+ },
1484
+ ],
1485
+ "content": [
1486
+ {
1487
+ "styles": {
1488
+ "bold": true,
1489
+ },
1490
+ "text": "Heading",
1491
+ "type": "text",
1492
+ },
1493
+ {
1494
+ "styles": {},
1495
+ "text": " with styled ",
1496
+ "type": "text",
1497
+ },
1498
+ {
1499
+ "styles": {
1500
+ "italic": true,
1501
+ },
1502
+ "text": "content",
1503
+ "type": "text",
1504
+ },
1505
+ ],
1506
+ "id": "heading-with-everything",
1507
+ "props": {
1508
+ "backgroundColor": "red",
1509
+ "level": 2,
1510
+ "textAlignment": "center",
1511
+ "textColor": "red",
1512
+ },
1513
+ "type": "heading",
1514
+ },
1515
+ {
1516
+ "children": [],
1517
+ "content": [],
1518
+ "id": "trailing-paragraph",
1519
+ "props": {
1520
+ "backgroundColor": "default",
1521
+ "textAlignment": "left",
1522
+ "textColor": "default",
1523
+ },
1524
+ "type": "paragraph",
1525
+ },
1526
+ ]
1527
+ `;
1528
+
1529
+ exports[`Test insertBlocks > Insert single basic block before 1`] = `
1530
+ [
1531
+ {
1532
+ "children": [],
1533
+ "content": [],
1534
+ "id": "0",
1535
+ "props": {
1536
+ "backgroundColor": "default",
1537
+ "textAlignment": "left",
1538
+ "textColor": "default",
1539
+ },
1540
+ "type": "paragraph",
1541
+ },
1542
+ {
1543
+ "children": [],
1544
+ "content": [
1545
+ {
1546
+ "styles": {},
1547
+ "text": "Paragraph 0",
1548
+ "type": "text",
1549
+ },
1550
+ ],
1551
+ "id": "paragraph-0",
1552
+ "props": {
1553
+ "backgroundColor": "default",
1554
+ "textAlignment": "left",
1555
+ "textColor": "default",
1556
+ },
1557
+ "type": "paragraph",
1558
+ },
1559
+ {
1560
+ "children": [],
1561
+ "content": [
1562
+ {
1563
+ "styles": {},
1564
+ "text": "Paragraph 1",
1565
+ "type": "text",
1566
+ },
1567
+ ],
1568
+ "id": "paragraph-1",
1569
+ "props": {
1570
+ "backgroundColor": "default",
1571
+ "textAlignment": "left",
1572
+ "textColor": "default",
1573
+ },
1574
+ "type": "paragraph",
1575
+ },
1576
+ {
1577
+ "children": [
1578
+ {
1579
+ "children": [
1580
+ {
1581
+ "children": [],
1582
+ "content": [
1583
+ {
1584
+ "styles": {},
1585
+ "text": "Double Nested Paragraph 0",
1586
+ "type": "text",
1587
+ },
1588
+ ],
1589
+ "id": "double-nested-paragraph-0",
1590
+ "props": {
1591
+ "backgroundColor": "default",
1592
+ "textAlignment": "left",
1593
+ "textColor": "default",
1594
+ },
1595
+ "type": "paragraph",
1596
+ },
1597
+ ],
1598
+ "content": [
1599
+ {
1600
+ "styles": {},
1601
+ "text": "Nested Paragraph 0",
1602
+ "type": "text",
1603
+ },
1604
+ ],
1605
+ "id": "nested-paragraph-0",
1606
+ "props": {
1607
+ "backgroundColor": "default",
1608
+ "textAlignment": "left",
1609
+ "textColor": "default",
1610
+ },
1611
+ "type": "paragraph",
1612
+ },
1613
+ ],
1614
+ "content": [
1615
+ {
1616
+ "styles": {},
1617
+ "text": "Paragraph with children",
1618
+ "type": "text",
1619
+ },
1620
+ ],
1621
+ "id": "paragraph-with-children",
1622
+ "props": {
1623
+ "backgroundColor": "default",
1624
+ "textAlignment": "left",
1625
+ "textColor": "default",
1626
+ },
1627
+ "type": "paragraph",
1628
+ },
1629
+ {
1630
+ "children": [],
1631
+ "content": [
1632
+ {
1633
+ "styles": {},
1634
+ "text": "Paragraph 2",
1635
+ "type": "text",
1636
+ },
1637
+ ],
1638
+ "id": "paragraph-2",
1639
+ "props": {
1640
+ "backgroundColor": "default",
1641
+ "textAlignment": "left",
1642
+ "textColor": "default",
1643
+ },
1644
+ "type": "paragraph",
1645
+ },
1646
+ {
1647
+ "children": [],
1648
+ "content": [
1649
+ {
1650
+ "styles": {},
1651
+ "text": "Paragraph with props",
1652
+ "type": "text",
1653
+ },
1654
+ ],
1655
+ "id": "paragraph-with-props",
1656
+ "props": {
1657
+ "backgroundColor": "default",
1658
+ "textAlignment": "center",
1659
+ "textColor": "red",
1660
+ },
1661
+ "type": "paragraph",
1662
+ },
1663
+ {
1664
+ "children": [],
1665
+ "content": [
1666
+ {
1667
+ "styles": {},
1668
+ "text": "Paragraph 3",
1669
+ "type": "text",
1670
+ },
1671
+ ],
1672
+ "id": "paragraph-3",
1673
+ "props": {
1674
+ "backgroundColor": "default",
1675
+ "textAlignment": "left",
1676
+ "textColor": "default",
1677
+ },
1678
+ "type": "paragraph",
1679
+ },
1680
+ {
1681
+ "children": [],
1682
+ "content": [
1683
+ {
1684
+ "styles": {
1685
+ "bold": true,
1686
+ },
1687
+ "text": "Paragraph",
1688
+ "type": "text",
1689
+ },
1690
+ {
1691
+ "styles": {},
1692
+ "text": " with styled ",
1693
+ "type": "text",
1694
+ },
1695
+ {
1696
+ "styles": {
1697
+ "italic": true,
1698
+ },
1699
+ "text": "content",
1700
+ "type": "text",
1701
+ },
1702
+ ],
1703
+ "id": "paragraph-with-styled-content",
1704
+ "props": {
1705
+ "backgroundColor": "default",
1706
+ "textAlignment": "left",
1707
+ "textColor": "default",
1708
+ },
1709
+ "type": "paragraph",
1710
+ },
1711
+ {
1712
+ "children": [],
1713
+ "content": [
1714
+ {
1715
+ "styles": {},
1716
+ "text": "Paragraph 4",
1717
+ "type": "text",
1718
+ },
1719
+ ],
1720
+ "id": "paragraph-4",
1721
+ "props": {
1722
+ "backgroundColor": "default",
1723
+ "textAlignment": "left",
1724
+ "textColor": "default",
1725
+ },
1726
+ "type": "paragraph",
1727
+ },
1728
+ {
1729
+ "children": [],
1730
+ "content": [
1731
+ {
1732
+ "styles": {},
1733
+ "text": "Heading 1",
1734
+ "type": "text",
1735
+ },
1736
+ ],
1737
+ "id": "heading-0",
1738
+ "props": {
1739
+ "backgroundColor": "default",
1740
+ "level": 1,
1741
+ "textAlignment": "left",
1742
+ "textColor": "default",
1743
+ },
1744
+ "type": "heading",
1745
+ },
1746
+ {
1747
+ "children": [],
1748
+ "content": [
1749
+ {
1750
+ "styles": {},
1751
+ "text": "Paragraph 5",
1752
+ "type": "text",
1753
+ },
1754
+ ],
1755
+ "id": "paragraph-5",
1756
+ "props": {
1757
+ "backgroundColor": "default",
1758
+ "textAlignment": "left",
1759
+ "textColor": "default",
1760
+ },
1761
+ "type": "paragraph",
1762
+ },
1763
+ {
1764
+ "children": [],
1765
+ "content": undefined,
1766
+ "id": "image-0",
1767
+ "props": {
1768
+ "backgroundColor": "default",
1769
+ "caption": "",
1770
+ "name": "",
1771
+ "previewWidth": 512,
1772
+ "showPreview": true,
1773
+ "textAlignment": "left",
1774
+ "url": "https://via.placeholder.com/150",
1775
+ },
1776
+ "type": "image",
1777
+ },
1778
+ {
1779
+ "children": [],
1780
+ "content": [
1781
+ {
1782
+ "styles": {},
1783
+ "text": "Paragraph 6",
1784
+ "type": "text",
1785
+ },
1786
+ ],
1787
+ "id": "paragraph-6",
1788
+ "props": {
1789
+ "backgroundColor": "default",
1790
+ "textAlignment": "left",
1791
+ "textColor": "default",
1792
+ },
1793
+ "type": "paragraph",
1794
+ },
1795
+ {
1796
+ "children": [],
1797
+ "content": {
1798
+ "rows": [
1799
+ {
1800
+ "cells": [
1801
+ [
1802
+ {
1803
+ "styles": {},
1804
+ "text": "Cell 1",
1805
+ "type": "text",
1806
+ },
1807
+ ],
1808
+ [
1809
+ {
1810
+ "styles": {},
1811
+ "text": "Cell 2",
1812
+ "type": "text",
1813
+ },
1814
+ ],
1815
+ [
1816
+ {
1817
+ "styles": {},
1818
+ "text": "Cell 3",
1819
+ "type": "text",
1820
+ },
1821
+ ],
1822
+ ],
1823
+ },
1824
+ {
1825
+ "cells": [
1826
+ [
1827
+ {
1828
+ "styles": {},
1829
+ "text": "Cell 4",
1830
+ "type": "text",
1831
+ },
1832
+ ],
1833
+ [
1834
+ {
1835
+ "styles": {},
1836
+ "text": "Cell 5",
1837
+ "type": "text",
1838
+ },
1839
+ ],
1840
+ [
1841
+ {
1842
+ "styles": {},
1843
+ "text": "Cell 6",
1844
+ "type": "text",
1845
+ },
1846
+ ],
1847
+ ],
1848
+ },
1849
+ {
1850
+ "cells": [
1851
+ [
1852
+ {
1853
+ "styles": {},
1854
+ "text": "Cell 7",
1855
+ "type": "text",
1856
+ },
1857
+ ],
1858
+ [
1859
+ {
1860
+ "styles": {},
1861
+ "text": "Cell 8",
1862
+ "type": "text",
1863
+ },
1864
+ ],
1865
+ [
1866
+ {
1867
+ "styles": {},
1868
+ "text": "Cell 9",
1869
+ "type": "text",
1870
+ },
1871
+ ],
1872
+ ],
1873
+ },
1874
+ ],
1875
+ "type": "tableContent",
1876
+ },
1877
+ "id": "table-0",
1878
+ "props": {
1879
+ "backgroundColor": "default",
1880
+ "textColor": "default",
1881
+ },
1882
+ "type": "table",
1883
+ },
1884
+ {
1885
+ "children": [],
1886
+ "content": [
1887
+ {
1888
+ "styles": {},
1889
+ "text": "Paragraph 7",
1890
+ "type": "text",
1891
+ },
1892
+ ],
1893
+ "id": "paragraph-7",
1894
+ "props": {
1895
+ "backgroundColor": "default",
1896
+ "textAlignment": "left",
1897
+ "textColor": "default",
1898
+ },
1899
+ "type": "paragraph",
1900
+ },
1901
+ {
1902
+ "children": [],
1903
+ "content": [],
1904
+ "id": "empty-paragraph",
1905
+ "props": {
1906
+ "backgroundColor": "default",
1907
+ "textAlignment": "left",
1908
+ "textColor": "default",
1909
+ },
1910
+ "type": "paragraph",
1911
+ },
1912
+ {
1913
+ "children": [],
1914
+ "content": [
1915
+ {
1916
+ "styles": {},
1917
+ "text": "Paragraph 8",
1918
+ "type": "text",
1919
+ },
1920
+ ],
1921
+ "id": "paragraph-8",
1922
+ "props": {
1923
+ "backgroundColor": "default",
1924
+ "textAlignment": "left",
1925
+ "textColor": "default",
1926
+ },
1927
+ "type": "paragraph",
1928
+ },
1929
+ {
1930
+ "children": [
1931
+ {
1932
+ "children": [
1933
+ {
1934
+ "children": [],
1935
+ "content": [
1936
+ {
1937
+ "styles": {},
1938
+ "text": "Double Nested Paragraph 1",
1939
+ "type": "text",
1940
+ },
1941
+ ],
1942
+ "id": "double-nested-paragraph-1",
1943
+ "props": {
1944
+ "backgroundColor": "default",
1945
+ "textAlignment": "left",
1946
+ "textColor": "default",
1947
+ },
1948
+ "type": "paragraph",
1949
+ },
1950
+ ],
1951
+ "content": [
1952
+ {
1953
+ "styles": {},
1954
+ "text": "Nested Paragraph 1",
1955
+ "type": "text",
1956
+ },
1957
+ ],
1958
+ "id": "nested-paragraph-1",
1959
+ "props": {
1960
+ "backgroundColor": "default",
1961
+ "textAlignment": "left",
1962
+ "textColor": "default",
1963
+ },
1964
+ "type": "paragraph",
1965
+ },
1966
+ ],
1967
+ "content": [
1968
+ {
1969
+ "styles": {
1970
+ "bold": true,
1971
+ },
1972
+ "text": "Heading",
1973
+ "type": "text",
1974
+ },
1975
+ {
1976
+ "styles": {},
1977
+ "text": " with styled ",
1978
+ "type": "text",
1979
+ },
1980
+ {
1981
+ "styles": {
1982
+ "italic": true,
1983
+ },
1984
+ "text": "content",
1985
+ "type": "text",
1986
+ },
1987
+ ],
1988
+ "id": "heading-with-everything",
1989
+ "props": {
1990
+ "backgroundColor": "red",
1991
+ "level": 2,
1992
+ "textAlignment": "center",
1993
+ "textColor": "red",
1994
+ },
1995
+ "type": "heading",
1996
+ },
1997
+ {
1998
+ "children": [],
1999
+ "content": [],
2000
+ "id": "trailing-paragraph",
2001
+ "props": {
2002
+ "backgroundColor": "default",
2003
+ "textAlignment": "left",
2004
+ "textColor": "default",
2005
+ },
2006
+ "type": "paragraph",
2007
+ },
2008
+ ]
2009
+ `;
2010
+
2011
+ exports[`Test insertBlocks > Insert single complex block after 1`] = `
2012
+ [
2013
+ {
2014
+ "children": [],
2015
+ "content": [
2016
+ {
2017
+ "styles": {},
2018
+ "text": "Paragraph 0",
2019
+ "type": "text",
2020
+ },
2021
+ ],
2022
+ "id": "paragraph-0",
2023
+ "props": {
2024
+ "backgroundColor": "default",
2025
+ "textAlignment": "left",
2026
+ "textColor": "default",
2027
+ },
2028
+ "type": "paragraph",
2029
+ },
2030
+ {
2031
+ "children": [
2032
+ {
2033
+ "children": [
2034
+ {
2035
+ "children": [],
2036
+ "content": [
2037
+ {
2038
+ "styles": {},
2039
+ "text": "Double Nested Paragraph 2",
2040
+ "type": "text",
2041
+ },
2042
+ ],
2043
+ "id": "inserted-double-nested-paragraph-2",
2044
+ "props": {
2045
+ "backgroundColor": "default",
2046
+ "textAlignment": "left",
2047
+ "textColor": "default",
2048
+ },
2049
+ "type": "paragraph",
2050
+ },
2051
+ ],
2052
+ "content": [
2053
+ {
2054
+ "styles": {},
2055
+ "text": "Nested Paragraph 2",
2056
+ "type": "text",
2057
+ },
2058
+ ],
2059
+ "id": "inserted-nested-paragraph-2",
2060
+ "props": {
2061
+ "backgroundColor": "default",
2062
+ "textAlignment": "left",
2063
+ "textColor": "default",
2064
+ },
2065
+ "type": "paragraph",
2066
+ },
2067
+ ],
2068
+ "content": [
2069
+ {
2070
+ "styles": {
2071
+ "bold": true,
2072
+ },
2073
+ "text": "Heading",
2074
+ "type": "text",
2075
+ },
2076
+ {
2077
+ "styles": {},
2078
+ "text": " with styled ",
2079
+ "type": "text",
2080
+ },
2081
+ {
2082
+ "styles": {
2083
+ "italic": true,
2084
+ },
2085
+ "text": "content",
2086
+ "type": "text",
2087
+ },
2088
+ ],
2089
+ "id": "inserted-heading-with-everything",
2090
+ "props": {
2091
+ "backgroundColor": "red",
2092
+ "level": 2,
2093
+ "textAlignment": "center",
2094
+ "textColor": "red",
2095
+ },
2096
+ "type": "heading",
2097
+ },
2098
+ {
2099
+ "children": [],
2100
+ "content": [
2101
+ {
2102
+ "styles": {},
2103
+ "text": "Paragraph 1",
2104
+ "type": "text",
2105
+ },
2106
+ ],
2107
+ "id": "paragraph-1",
2108
+ "props": {
2109
+ "backgroundColor": "default",
2110
+ "textAlignment": "left",
2111
+ "textColor": "default",
2112
+ },
2113
+ "type": "paragraph",
2114
+ },
2115
+ {
2116
+ "children": [
2117
+ {
2118
+ "children": [
2119
+ {
2120
+ "children": [],
2121
+ "content": [
2122
+ {
2123
+ "styles": {},
2124
+ "text": "Double Nested Paragraph 0",
2125
+ "type": "text",
2126
+ },
2127
+ ],
2128
+ "id": "double-nested-paragraph-0",
2129
+ "props": {
2130
+ "backgroundColor": "default",
2131
+ "textAlignment": "left",
2132
+ "textColor": "default",
2133
+ },
2134
+ "type": "paragraph",
2135
+ },
2136
+ ],
2137
+ "content": [
2138
+ {
2139
+ "styles": {},
2140
+ "text": "Nested Paragraph 0",
2141
+ "type": "text",
2142
+ },
2143
+ ],
2144
+ "id": "nested-paragraph-0",
2145
+ "props": {
2146
+ "backgroundColor": "default",
2147
+ "textAlignment": "left",
2148
+ "textColor": "default",
2149
+ },
2150
+ "type": "paragraph",
2151
+ },
2152
+ ],
2153
+ "content": [
2154
+ {
2155
+ "styles": {},
2156
+ "text": "Paragraph with children",
2157
+ "type": "text",
2158
+ },
2159
+ ],
2160
+ "id": "paragraph-with-children",
2161
+ "props": {
2162
+ "backgroundColor": "default",
2163
+ "textAlignment": "left",
2164
+ "textColor": "default",
2165
+ },
2166
+ "type": "paragraph",
2167
+ },
2168
+ {
2169
+ "children": [],
2170
+ "content": [
2171
+ {
2172
+ "styles": {},
2173
+ "text": "Paragraph 2",
2174
+ "type": "text",
2175
+ },
2176
+ ],
2177
+ "id": "paragraph-2",
2178
+ "props": {
2179
+ "backgroundColor": "default",
2180
+ "textAlignment": "left",
2181
+ "textColor": "default",
2182
+ },
2183
+ "type": "paragraph",
2184
+ },
2185
+ {
2186
+ "children": [],
2187
+ "content": [
2188
+ {
2189
+ "styles": {},
2190
+ "text": "Paragraph with props",
2191
+ "type": "text",
2192
+ },
2193
+ ],
2194
+ "id": "paragraph-with-props",
2195
+ "props": {
2196
+ "backgroundColor": "default",
2197
+ "textAlignment": "center",
2198
+ "textColor": "red",
2199
+ },
2200
+ "type": "paragraph",
2201
+ },
2202
+ {
2203
+ "children": [],
2204
+ "content": [
2205
+ {
2206
+ "styles": {},
2207
+ "text": "Paragraph 3",
2208
+ "type": "text",
2209
+ },
2210
+ ],
2211
+ "id": "paragraph-3",
2212
+ "props": {
2213
+ "backgroundColor": "default",
2214
+ "textAlignment": "left",
2215
+ "textColor": "default",
2216
+ },
2217
+ "type": "paragraph",
2218
+ },
2219
+ {
2220
+ "children": [],
2221
+ "content": [
2222
+ {
2223
+ "styles": {
2224
+ "bold": true,
2225
+ },
2226
+ "text": "Paragraph",
2227
+ "type": "text",
2228
+ },
2229
+ {
2230
+ "styles": {},
2231
+ "text": " with styled ",
2232
+ "type": "text",
2233
+ },
2234
+ {
2235
+ "styles": {
2236
+ "italic": true,
2237
+ },
2238
+ "text": "content",
2239
+ "type": "text",
2240
+ },
2241
+ ],
2242
+ "id": "paragraph-with-styled-content",
2243
+ "props": {
2244
+ "backgroundColor": "default",
2245
+ "textAlignment": "left",
2246
+ "textColor": "default",
2247
+ },
2248
+ "type": "paragraph",
2249
+ },
2250
+ {
2251
+ "children": [],
2252
+ "content": [
2253
+ {
2254
+ "styles": {},
2255
+ "text": "Paragraph 4",
2256
+ "type": "text",
2257
+ },
2258
+ ],
2259
+ "id": "paragraph-4",
2260
+ "props": {
2261
+ "backgroundColor": "default",
2262
+ "textAlignment": "left",
2263
+ "textColor": "default",
2264
+ },
2265
+ "type": "paragraph",
2266
+ },
2267
+ {
2268
+ "children": [],
2269
+ "content": [
2270
+ {
2271
+ "styles": {},
2272
+ "text": "Heading 1",
2273
+ "type": "text",
2274
+ },
2275
+ ],
2276
+ "id": "heading-0",
2277
+ "props": {
2278
+ "backgroundColor": "default",
2279
+ "level": 1,
2280
+ "textAlignment": "left",
2281
+ "textColor": "default",
2282
+ },
2283
+ "type": "heading",
2284
+ },
2285
+ {
2286
+ "children": [],
2287
+ "content": [
2288
+ {
2289
+ "styles": {},
2290
+ "text": "Paragraph 5",
2291
+ "type": "text",
2292
+ },
2293
+ ],
2294
+ "id": "paragraph-5",
2295
+ "props": {
2296
+ "backgroundColor": "default",
2297
+ "textAlignment": "left",
2298
+ "textColor": "default",
2299
+ },
2300
+ "type": "paragraph",
2301
+ },
2302
+ {
2303
+ "children": [],
2304
+ "content": undefined,
2305
+ "id": "image-0",
2306
+ "props": {
2307
+ "backgroundColor": "default",
2308
+ "caption": "",
2309
+ "name": "",
2310
+ "previewWidth": 512,
2311
+ "showPreview": true,
2312
+ "textAlignment": "left",
2313
+ "url": "https://via.placeholder.com/150",
2314
+ },
2315
+ "type": "image",
2316
+ },
2317
+ {
2318
+ "children": [],
2319
+ "content": [
2320
+ {
2321
+ "styles": {},
2322
+ "text": "Paragraph 6",
2323
+ "type": "text",
2324
+ },
2325
+ ],
2326
+ "id": "paragraph-6",
2327
+ "props": {
2328
+ "backgroundColor": "default",
2329
+ "textAlignment": "left",
2330
+ "textColor": "default",
2331
+ },
2332
+ "type": "paragraph",
2333
+ },
2334
+ {
2335
+ "children": [],
2336
+ "content": {
2337
+ "rows": [
2338
+ {
2339
+ "cells": [
2340
+ [
2341
+ {
2342
+ "styles": {},
2343
+ "text": "Cell 1",
2344
+ "type": "text",
2345
+ },
2346
+ ],
2347
+ [
2348
+ {
2349
+ "styles": {},
2350
+ "text": "Cell 2",
2351
+ "type": "text",
2352
+ },
2353
+ ],
2354
+ [
2355
+ {
2356
+ "styles": {},
2357
+ "text": "Cell 3",
2358
+ "type": "text",
2359
+ },
2360
+ ],
2361
+ ],
2362
+ },
2363
+ {
2364
+ "cells": [
2365
+ [
2366
+ {
2367
+ "styles": {},
2368
+ "text": "Cell 4",
2369
+ "type": "text",
2370
+ },
2371
+ ],
2372
+ [
2373
+ {
2374
+ "styles": {},
2375
+ "text": "Cell 5",
2376
+ "type": "text",
2377
+ },
2378
+ ],
2379
+ [
2380
+ {
2381
+ "styles": {},
2382
+ "text": "Cell 6",
2383
+ "type": "text",
2384
+ },
2385
+ ],
2386
+ ],
2387
+ },
2388
+ {
2389
+ "cells": [
2390
+ [
2391
+ {
2392
+ "styles": {},
2393
+ "text": "Cell 7",
2394
+ "type": "text",
2395
+ },
2396
+ ],
2397
+ [
2398
+ {
2399
+ "styles": {},
2400
+ "text": "Cell 8",
2401
+ "type": "text",
2402
+ },
2403
+ ],
2404
+ [
2405
+ {
2406
+ "styles": {},
2407
+ "text": "Cell 9",
2408
+ "type": "text",
2409
+ },
2410
+ ],
2411
+ ],
2412
+ },
2413
+ ],
2414
+ "type": "tableContent",
2415
+ },
2416
+ "id": "table-0",
2417
+ "props": {
2418
+ "backgroundColor": "default",
2419
+ "textColor": "default",
2420
+ },
2421
+ "type": "table",
2422
+ },
2423
+ {
2424
+ "children": [],
2425
+ "content": [
2426
+ {
2427
+ "styles": {},
2428
+ "text": "Paragraph 7",
2429
+ "type": "text",
2430
+ },
2431
+ ],
2432
+ "id": "paragraph-7",
2433
+ "props": {
2434
+ "backgroundColor": "default",
2435
+ "textAlignment": "left",
2436
+ "textColor": "default",
2437
+ },
2438
+ "type": "paragraph",
2439
+ },
2440
+ {
2441
+ "children": [],
2442
+ "content": [],
2443
+ "id": "empty-paragraph",
2444
+ "props": {
2445
+ "backgroundColor": "default",
2446
+ "textAlignment": "left",
2447
+ "textColor": "default",
2448
+ },
2449
+ "type": "paragraph",
2450
+ },
2451
+ {
2452
+ "children": [],
2453
+ "content": [
2454
+ {
2455
+ "styles": {},
2456
+ "text": "Paragraph 8",
2457
+ "type": "text",
2458
+ },
2459
+ ],
2460
+ "id": "paragraph-8",
2461
+ "props": {
2462
+ "backgroundColor": "default",
2463
+ "textAlignment": "left",
2464
+ "textColor": "default",
2465
+ },
2466
+ "type": "paragraph",
2467
+ },
2468
+ {
2469
+ "children": [
2470
+ {
2471
+ "children": [
2472
+ {
2473
+ "children": [],
2474
+ "content": [
2475
+ {
2476
+ "styles": {},
2477
+ "text": "Double Nested Paragraph 1",
2478
+ "type": "text",
2479
+ },
2480
+ ],
2481
+ "id": "double-nested-paragraph-1",
2482
+ "props": {
2483
+ "backgroundColor": "default",
2484
+ "textAlignment": "left",
2485
+ "textColor": "default",
2486
+ },
2487
+ "type": "paragraph",
2488
+ },
2489
+ ],
2490
+ "content": [
2491
+ {
2492
+ "styles": {},
2493
+ "text": "Nested Paragraph 1",
2494
+ "type": "text",
2495
+ },
2496
+ ],
2497
+ "id": "nested-paragraph-1",
2498
+ "props": {
2499
+ "backgroundColor": "default",
2500
+ "textAlignment": "left",
2501
+ "textColor": "default",
2502
+ },
2503
+ "type": "paragraph",
2504
+ },
2505
+ ],
2506
+ "content": [
2507
+ {
2508
+ "styles": {
2509
+ "bold": true,
2510
+ },
2511
+ "text": "Heading",
2512
+ "type": "text",
2513
+ },
2514
+ {
2515
+ "styles": {},
2516
+ "text": " with styled ",
2517
+ "type": "text",
2518
+ },
2519
+ {
2520
+ "styles": {
2521
+ "italic": true,
2522
+ },
2523
+ "text": "content",
2524
+ "type": "text",
2525
+ },
2526
+ ],
2527
+ "id": "heading-with-everything",
2528
+ "props": {
2529
+ "backgroundColor": "red",
2530
+ "level": 2,
2531
+ "textAlignment": "center",
2532
+ "textColor": "red",
2533
+ },
2534
+ "type": "heading",
2535
+ },
2536
+ {
2537
+ "children": [],
2538
+ "content": [],
2539
+ "id": "trailing-paragraph",
2540
+ "props": {
2541
+ "backgroundColor": "default",
2542
+ "textAlignment": "left",
2543
+ "textColor": "default",
2544
+ },
2545
+ "type": "paragraph",
2546
+ },
2547
+ ]
2548
+ `;
2549
+
2550
+ exports[`Test insertBlocks > Insert single complex block before 1`] = `
2551
+ [
2552
+ {
2553
+ "children": [
2554
+ {
2555
+ "children": [
2556
+ {
2557
+ "children": [],
2558
+ "content": [
2559
+ {
2560
+ "styles": {},
2561
+ "text": "Double Nested Paragraph 2",
2562
+ "type": "text",
2563
+ },
2564
+ ],
2565
+ "id": "inserted-double-nested-paragraph-2",
2566
+ "props": {
2567
+ "backgroundColor": "default",
2568
+ "textAlignment": "left",
2569
+ "textColor": "default",
2570
+ },
2571
+ "type": "paragraph",
2572
+ },
2573
+ ],
2574
+ "content": [
2575
+ {
2576
+ "styles": {},
2577
+ "text": "Nested Paragraph 2",
2578
+ "type": "text",
2579
+ },
2580
+ ],
2581
+ "id": "inserted-nested-paragraph-2",
2582
+ "props": {
2583
+ "backgroundColor": "default",
2584
+ "textAlignment": "left",
2585
+ "textColor": "default",
2586
+ },
2587
+ "type": "paragraph",
2588
+ },
2589
+ ],
2590
+ "content": [
2591
+ {
2592
+ "styles": {
2593
+ "bold": true,
2594
+ },
2595
+ "text": "Heading",
2596
+ "type": "text",
2597
+ },
2598
+ {
2599
+ "styles": {},
2600
+ "text": " with styled ",
2601
+ "type": "text",
2602
+ },
2603
+ {
2604
+ "styles": {
2605
+ "italic": true,
2606
+ },
2607
+ "text": "content",
2608
+ "type": "text",
2609
+ },
2610
+ ],
2611
+ "id": "inserted-heading-with-everything",
2612
+ "props": {
2613
+ "backgroundColor": "red",
2614
+ "level": 2,
2615
+ "textAlignment": "center",
2616
+ "textColor": "red",
2617
+ },
2618
+ "type": "heading",
2619
+ },
2620
+ {
2621
+ "children": [],
2622
+ "content": [
2623
+ {
2624
+ "styles": {},
2625
+ "text": "Paragraph 0",
2626
+ "type": "text",
2627
+ },
2628
+ ],
2629
+ "id": "paragraph-0",
2630
+ "props": {
2631
+ "backgroundColor": "default",
2632
+ "textAlignment": "left",
2633
+ "textColor": "default",
2634
+ },
2635
+ "type": "paragraph",
2636
+ },
2637
+ {
2638
+ "children": [],
2639
+ "content": [
2640
+ {
2641
+ "styles": {},
2642
+ "text": "Paragraph 1",
2643
+ "type": "text",
2644
+ },
2645
+ ],
2646
+ "id": "paragraph-1",
2647
+ "props": {
2648
+ "backgroundColor": "default",
2649
+ "textAlignment": "left",
2650
+ "textColor": "default",
2651
+ },
2652
+ "type": "paragraph",
2653
+ },
2654
+ {
2655
+ "children": [
2656
+ {
2657
+ "children": [
2658
+ {
2659
+ "children": [],
2660
+ "content": [
2661
+ {
2662
+ "styles": {},
2663
+ "text": "Double Nested Paragraph 0",
2664
+ "type": "text",
2665
+ },
2666
+ ],
2667
+ "id": "double-nested-paragraph-0",
2668
+ "props": {
2669
+ "backgroundColor": "default",
2670
+ "textAlignment": "left",
2671
+ "textColor": "default",
2672
+ },
2673
+ "type": "paragraph",
2674
+ },
2675
+ ],
2676
+ "content": [
2677
+ {
2678
+ "styles": {},
2679
+ "text": "Nested Paragraph 0",
2680
+ "type": "text",
2681
+ },
2682
+ ],
2683
+ "id": "nested-paragraph-0",
2684
+ "props": {
2685
+ "backgroundColor": "default",
2686
+ "textAlignment": "left",
2687
+ "textColor": "default",
2688
+ },
2689
+ "type": "paragraph",
2690
+ },
2691
+ ],
2692
+ "content": [
2693
+ {
2694
+ "styles": {},
2695
+ "text": "Paragraph with children",
2696
+ "type": "text",
2697
+ },
2698
+ ],
2699
+ "id": "paragraph-with-children",
2700
+ "props": {
2701
+ "backgroundColor": "default",
2702
+ "textAlignment": "left",
2703
+ "textColor": "default",
2704
+ },
2705
+ "type": "paragraph",
2706
+ },
2707
+ {
2708
+ "children": [],
2709
+ "content": [
2710
+ {
2711
+ "styles": {},
2712
+ "text": "Paragraph 2",
2713
+ "type": "text",
2714
+ },
2715
+ ],
2716
+ "id": "paragraph-2",
2717
+ "props": {
2718
+ "backgroundColor": "default",
2719
+ "textAlignment": "left",
2720
+ "textColor": "default",
2721
+ },
2722
+ "type": "paragraph",
2723
+ },
2724
+ {
2725
+ "children": [],
2726
+ "content": [
2727
+ {
2728
+ "styles": {},
2729
+ "text": "Paragraph with props",
2730
+ "type": "text",
2731
+ },
2732
+ ],
2733
+ "id": "paragraph-with-props",
2734
+ "props": {
2735
+ "backgroundColor": "default",
2736
+ "textAlignment": "center",
2737
+ "textColor": "red",
2738
+ },
2739
+ "type": "paragraph",
2740
+ },
2741
+ {
2742
+ "children": [],
2743
+ "content": [
2744
+ {
2745
+ "styles": {},
2746
+ "text": "Paragraph 3",
2747
+ "type": "text",
2748
+ },
2749
+ ],
2750
+ "id": "paragraph-3",
2751
+ "props": {
2752
+ "backgroundColor": "default",
2753
+ "textAlignment": "left",
2754
+ "textColor": "default",
2755
+ },
2756
+ "type": "paragraph",
2757
+ },
2758
+ {
2759
+ "children": [],
2760
+ "content": [
2761
+ {
2762
+ "styles": {
2763
+ "bold": true,
2764
+ },
2765
+ "text": "Paragraph",
2766
+ "type": "text",
2767
+ },
2768
+ {
2769
+ "styles": {},
2770
+ "text": " with styled ",
2771
+ "type": "text",
2772
+ },
2773
+ {
2774
+ "styles": {
2775
+ "italic": true,
2776
+ },
2777
+ "text": "content",
2778
+ "type": "text",
2779
+ },
2780
+ ],
2781
+ "id": "paragraph-with-styled-content",
2782
+ "props": {
2783
+ "backgroundColor": "default",
2784
+ "textAlignment": "left",
2785
+ "textColor": "default",
2786
+ },
2787
+ "type": "paragraph",
2788
+ },
2789
+ {
2790
+ "children": [],
2791
+ "content": [
2792
+ {
2793
+ "styles": {},
2794
+ "text": "Paragraph 4",
2795
+ "type": "text",
2796
+ },
2797
+ ],
2798
+ "id": "paragraph-4",
2799
+ "props": {
2800
+ "backgroundColor": "default",
2801
+ "textAlignment": "left",
2802
+ "textColor": "default",
2803
+ },
2804
+ "type": "paragraph",
2805
+ },
2806
+ {
2807
+ "children": [],
2808
+ "content": [
2809
+ {
2810
+ "styles": {},
2811
+ "text": "Heading 1",
2812
+ "type": "text",
2813
+ },
2814
+ ],
2815
+ "id": "heading-0",
2816
+ "props": {
2817
+ "backgroundColor": "default",
2818
+ "level": 1,
2819
+ "textAlignment": "left",
2820
+ "textColor": "default",
2821
+ },
2822
+ "type": "heading",
2823
+ },
2824
+ {
2825
+ "children": [],
2826
+ "content": [
2827
+ {
2828
+ "styles": {},
2829
+ "text": "Paragraph 5",
2830
+ "type": "text",
2831
+ },
2832
+ ],
2833
+ "id": "paragraph-5",
2834
+ "props": {
2835
+ "backgroundColor": "default",
2836
+ "textAlignment": "left",
2837
+ "textColor": "default",
2838
+ },
2839
+ "type": "paragraph",
2840
+ },
2841
+ {
2842
+ "children": [],
2843
+ "content": undefined,
2844
+ "id": "image-0",
2845
+ "props": {
2846
+ "backgroundColor": "default",
2847
+ "caption": "",
2848
+ "name": "",
2849
+ "previewWidth": 512,
2850
+ "showPreview": true,
2851
+ "textAlignment": "left",
2852
+ "url": "https://via.placeholder.com/150",
2853
+ },
2854
+ "type": "image",
2855
+ },
2856
+ {
2857
+ "children": [],
2858
+ "content": [
2859
+ {
2860
+ "styles": {},
2861
+ "text": "Paragraph 6",
2862
+ "type": "text",
2863
+ },
2864
+ ],
2865
+ "id": "paragraph-6",
2866
+ "props": {
2867
+ "backgroundColor": "default",
2868
+ "textAlignment": "left",
2869
+ "textColor": "default",
2870
+ },
2871
+ "type": "paragraph",
2872
+ },
2873
+ {
2874
+ "children": [],
2875
+ "content": {
2876
+ "rows": [
2877
+ {
2878
+ "cells": [
2879
+ [
2880
+ {
2881
+ "styles": {},
2882
+ "text": "Cell 1",
2883
+ "type": "text",
2884
+ },
2885
+ ],
2886
+ [
2887
+ {
2888
+ "styles": {},
2889
+ "text": "Cell 2",
2890
+ "type": "text",
2891
+ },
2892
+ ],
2893
+ [
2894
+ {
2895
+ "styles": {},
2896
+ "text": "Cell 3",
2897
+ "type": "text",
2898
+ },
2899
+ ],
2900
+ ],
2901
+ },
2902
+ {
2903
+ "cells": [
2904
+ [
2905
+ {
2906
+ "styles": {},
2907
+ "text": "Cell 4",
2908
+ "type": "text",
2909
+ },
2910
+ ],
2911
+ [
2912
+ {
2913
+ "styles": {},
2914
+ "text": "Cell 5",
2915
+ "type": "text",
2916
+ },
2917
+ ],
2918
+ [
2919
+ {
2920
+ "styles": {},
2921
+ "text": "Cell 6",
2922
+ "type": "text",
2923
+ },
2924
+ ],
2925
+ ],
2926
+ },
2927
+ {
2928
+ "cells": [
2929
+ [
2930
+ {
2931
+ "styles": {},
2932
+ "text": "Cell 7",
2933
+ "type": "text",
2934
+ },
2935
+ ],
2936
+ [
2937
+ {
2938
+ "styles": {},
2939
+ "text": "Cell 8",
2940
+ "type": "text",
2941
+ },
2942
+ ],
2943
+ [
2944
+ {
2945
+ "styles": {},
2946
+ "text": "Cell 9",
2947
+ "type": "text",
2948
+ },
2949
+ ],
2950
+ ],
2951
+ },
2952
+ ],
2953
+ "type": "tableContent",
2954
+ },
2955
+ "id": "table-0",
2956
+ "props": {
2957
+ "backgroundColor": "default",
2958
+ "textColor": "default",
2959
+ },
2960
+ "type": "table",
2961
+ },
2962
+ {
2963
+ "children": [],
2964
+ "content": [
2965
+ {
2966
+ "styles": {},
2967
+ "text": "Paragraph 7",
2968
+ "type": "text",
2969
+ },
2970
+ ],
2971
+ "id": "paragraph-7",
2972
+ "props": {
2973
+ "backgroundColor": "default",
2974
+ "textAlignment": "left",
2975
+ "textColor": "default",
2976
+ },
2977
+ "type": "paragraph",
2978
+ },
2979
+ {
2980
+ "children": [],
2981
+ "content": [],
2982
+ "id": "empty-paragraph",
2983
+ "props": {
2984
+ "backgroundColor": "default",
2985
+ "textAlignment": "left",
2986
+ "textColor": "default",
2987
+ },
2988
+ "type": "paragraph",
2989
+ },
2990
+ {
2991
+ "children": [],
2992
+ "content": [
2993
+ {
2994
+ "styles": {},
2995
+ "text": "Paragraph 8",
2996
+ "type": "text",
2997
+ },
2998
+ ],
2999
+ "id": "paragraph-8",
3000
+ "props": {
3001
+ "backgroundColor": "default",
3002
+ "textAlignment": "left",
3003
+ "textColor": "default",
3004
+ },
3005
+ "type": "paragraph",
3006
+ },
3007
+ {
3008
+ "children": [
3009
+ {
3010
+ "children": [
3011
+ {
3012
+ "children": [],
3013
+ "content": [
3014
+ {
3015
+ "styles": {},
3016
+ "text": "Double Nested Paragraph 1",
3017
+ "type": "text",
3018
+ },
3019
+ ],
3020
+ "id": "double-nested-paragraph-1",
3021
+ "props": {
3022
+ "backgroundColor": "default",
3023
+ "textAlignment": "left",
3024
+ "textColor": "default",
3025
+ },
3026
+ "type": "paragraph",
3027
+ },
3028
+ ],
3029
+ "content": [
3030
+ {
3031
+ "styles": {},
3032
+ "text": "Nested Paragraph 1",
3033
+ "type": "text",
3034
+ },
3035
+ ],
3036
+ "id": "nested-paragraph-1",
3037
+ "props": {
3038
+ "backgroundColor": "default",
3039
+ "textAlignment": "left",
3040
+ "textColor": "default",
3041
+ },
3042
+ "type": "paragraph",
3043
+ },
3044
+ ],
3045
+ "content": [
3046
+ {
3047
+ "styles": {
3048
+ "bold": true,
3049
+ },
3050
+ "text": "Heading",
3051
+ "type": "text",
3052
+ },
3053
+ {
3054
+ "styles": {},
3055
+ "text": " with styled ",
3056
+ "type": "text",
3057
+ },
3058
+ {
3059
+ "styles": {
3060
+ "italic": true,
3061
+ },
3062
+ "text": "content",
3063
+ "type": "text",
3064
+ },
3065
+ ],
3066
+ "id": "heading-with-everything",
3067
+ "props": {
3068
+ "backgroundColor": "red",
3069
+ "level": 2,
3070
+ "textAlignment": "center",
3071
+ "textColor": "red",
3072
+ },
3073
+ "type": "heading",
3074
+ },
3075
+ {
3076
+ "children": [],
3077
+ "content": [],
3078
+ "id": "trailing-paragraph",
3079
+ "props": {
3080
+ "backgroundColor": "default",
3081
+ "textAlignment": "left",
3082
+ "textColor": "default",
3083
+ },
3084
+ "type": "paragraph",
3085
+ },
3086
+ ]
3087
+ `;