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