@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,1136 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Test removeBlocks > Remove multiple consecutive blocks 1`] = `
4
+ [
5
+ {
6
+ "children": [],
7
+ "content": [
8
+ {
9
+ "styles": {},
10
+ "text": "Paragraph 2",
11
+ "type": "text",
12
+ },
13
+ ],
14
+ "id": "paragraph-2",
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": "Paragraph with props",
28
+ "type": "text",
29
+ },
30
+ ],
31
+ "id": "paragraph-with-props",
32
+ "props": {
33
+ "backgroundColor": "default",
34
+ "textAlignment": "center",
35
+ "textColor": "red",
36
+ },
37
+ "type": "paragraph",
38
+ },
39
+ {
40
+ "children": [],
41
+ "content": [
42
+ {
43
+ "styles": {},
44
+ "text": "Paragraph 3",
45
+ "type": "text",
46
+ },
47
+ ],
48
+ "id": "paragraph-3",
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
+ "bold": true,
62
+ },
63
+ "text": "Paragraph",
64
+ "type": "text",
65
+ },
66
+ {
67
+ "styles": {},
68
+ "text": " with styled ",
69
+ "type": "text",
70
+ },
71
+ {
72
+ "styles": {
73
+ "italic": true,
74
+ },
75
+ "text": "content",
76
+ "type": "text",
77
+ },
78
+ ],
79
+ "id": "paragraph-with-styled-content",
80
+ "props": {
81
+ "backgroundColor": "default",
82
+ "textAlignment": "left",
83
+ "textColor": "default",
84
+ },
85
+ "type": "paragraph",
86
+ },
87
+ {
88
+ "children": [],
89
+ "content": [
90
+ {
91
+ "styles": {},
92
+ "text": "Paragraph 4",
93
+ "type": "text",
94
+ },
95
+ ],
96
+ "id": "paragraph-4",
97
+ "props": {
98
+ "backgroundColor": "default",
99
+ "textAlignment": "left",
100
+ "textColor": "default",
101
+ },
102
+ "type": "paragraph",
103
+ },
104
+ {
105
+ "children": [],
106
+ "content": [
107
+ {
108
+ "styles": {},
109
+ "text": "Heading 1",
110
+ "type": "text",
111
+ },
112
+ ],
113
+ "id": "heading-0",
114
+ "props": {
115
+ "backgroundColor": "default",
116
+ "level": 1,
117
+ "textAlignment": "left",
118
+ "textColor": "default",
119
+ },
120
+ "type": "heading",
121
+ },
122
+ {
123
+ "children": [],
124
+ "content": [
125
+ {
126
+ "styles": {},
127
+ "text": "Paragraph 5",
128
+ "type": "text",
129
+ },
130
+ ],
131
+ "id": "paragraph-5",
132
+ "props": {
133
+ "backgroundColor": "default",
134
+ "textAlignment": "left",
135
+ "textColor": "default",
136
+ },
137
+ "type": "paragraph",
138
+ },
139
+ {
140
+ "children": [],
141
+ "content": undefined,
142
+ "id": "image-0",
143
+ "props": {
144
+ "backgroundColor": "default",
145
+ "caption": "",
146
+ "name": "",
147
+ "previewWidth": 512,
148
+ "showPreview": true,
149
+ "textAlignment": "left",
150
+ "url": "https://via.placeholder.com/150",
151
+ },
152
+ "type": "image",
153
+ },
154
+ {
155
+ "children": [],
156
+ "content": [
157
+ {
158
+ "styles": {},
159
+ "text": "Paragraph 6",
160
+ "type": "text",
161
+ },
162
+ ],
163
+ "id": "paragraph-6",
164
+ "props": {
165
+ "backgroundColor": "default",
166
+ "textAlignment": "left",
167
+ "textColor": "default",
168
+ },
169
+ "type": "paragraph",
170
+ },
171
+ {
172
+ "children": [],
173
+ "content": {
174
+ "rows": [
175
+ {
176
+ "cells": [
177
+ [
178
+ {
179
+ "styles": {},
180
+ "text": "Cell 1",
181
+ "type": "text",
182
+ },
183
+ ],
184
+ [
185
+ {
186
+ "styles": {},
187
+ "text": "Cell 2",
188
+ "type": "text",
189
+ },
190
+ ],
191
+ [
192
+ {
193
+ "styles": {},
194
+ "text": "Cell 3",
195
+ "type": "text",
196
+ },
197
+ ],
198
+ ],
199
+ },
200
+ {
201
+ "cells": [
202
+ [
203
+ {
204
+ "styles": {},
205
+ "text": "Cell 4",
206
+ "type": "text",
207
+ },
208
+ ],
209
+ [
210
+ {
211
+ "styles": {},
212
+ "text": "Cell 5",
213
+ "type": "text",
214
+ },
215
+ ],
216
+ [
217
+ {
218
+ "styles": {},
219
+ "text": "Cell 6",
220
+ "type": "text",
221
+ },
222
+ ],
223
+ ],
224
+ },
225
+ {
226
+ "cells": [
227
+ [
228
+ {
229
+ "styles": {},
230
+ "text": "Cell 7",
231
+ "type": "text",
232
+ },
233
+ ],
234
+ [
235
+ {
236
+ "styles": {},
237
+ "text": "Cell 8",
238
+ "type": "text",
239
+ },
240
+ ],
241
+ [
242
+ {
243
+ "styles": {},
244
+ "text": "Cell 9",
245
+ "type": "text",
246
+ },
247
+ ],
248
+ ],
249
+ },
250
+ ],
251
+ "type": "tableContent",
252
+ },
253
+ "id": "table-0",
254
+ "props": {
255
+ "backgroundColor": "default",
256
+ "textColor": "default",
257
+ },
258
+ "type": "table",
259
+ },
260
+ {
261
+ "children": [],
262
+ "content": [
263
+ {
264
+ "styles": {},
265
+ "text": "Paragraph 7",
266
+ "type": "text",
267
+ },
268
+ ],
269
+ "id": "paragraph-7",
270
+ "props": {
271
+ "backgroundColor": "default",
272
+ "textAlignment": "left",
273
+ "textColor": "default",
274
+ },
275
+ "type": "paragraph",
276
+ },
277
+ {
278
+ "children": [],
279
+ "content": [],
280
+ "id": "empty-paragraph",
281
+ "props": {
282
+ "backgroundColor": "default",
283
+ "textAlignment": "left",
284
+ "textColor": "default",
285
+ },
286
+ "type": "paragraph",
287
+ },
288
+ {
289
+ "children": [],
290
+ "content": [
291
+ {
292
+ "styles": {},
293
+ "text": "Paragraph 8",
294
+ "type": "text",
295
+ },
296
+ ],
297
+ "id": "paragraph-8",
298
+ "props": {
299
+ "backgroundColor": "default",
300
+ "textAlignment": "left",
301
+ "textColor": "default",
302
+ },
303
+ "type": "paragraph",
304
+ },
305
+ {
306
+ "children": [
307
+ {
308
+ "children": [
309
+ {
310
+ "children": [],
311
+ "content": [
312
+ {
313
+ "styles": {},
314
+ "text": "Double Nested Paragraph 1",
315
+ "type": "text",
316
+ },
317
+ ],
318
+ "id": "double-nested-paragraph-1",
319
+ "props": {
320
+ "backgroundColor": "default",
321
+ "textAlignment": "left",
322
+ "textColor": "default",
323
+ },
324
+ "type": "paragraph",
325
+ },
326
+ ],
327
+ "content": [
328
+ {
329
+ "styles": {},
330
+ "text": "Nested Paragraph 1",
331
+ "type": "text",
332
+ },
333
+ ],
334
+ "id": "nested-paragraph-1",
335
+ "props": {
336
+ "backgroundColor": "default",
337
+ "textAlignment": "left",
338
+ "textColor": "default",
339
+ },
340
+ "type": "paragraph",
341
+ },
342
+ ],
343
+ "content": [
344
+ {
345
+ "styles": {
346
+ "bold": true,
347
+ },
348
+ "text": "Heading",
349
+ "type": "text",
350
+ },
351
+ {
352
+ "styles": {},
353
+ "text": " with styled ",
354
+ "type": "text",
355
+ },
356
+ {
357
+ "styles": {
358
+ "italic": true,
359
+ },
360
+ "text": "content",
361
+ "type": "text",
362
+ },
363
+ ],
364
+ "id": "heading-with-everything",
365
+ "props": {
366
+ "backgroundColor": "red",
367
+ "level": 2,
368
+ "textAlignment": "center",
369
+ "textColor": "red",
370
+ },
371
+ "type": "heading",
372
+ },
373
+ {
374
+ "children": [],
375
+ "content": [],
376
+ "id": "trailing-paragraph",
377
+ "props": {
378
+ "backgroundColor": "default",
379
+ "textAlignment": "left",
380
+ "textColor": "default",
381
+ },
382
+ "type": "paragraph",
383
+ },
384
+ ]
385
+ `;
386
+
387
+ exports[`Test removeBlocks > Remove multiple non-consecutive blocks 1`] = `
388
+ [
389
+ {
390
+ "children": [],
391
+ "content": [
392
+ {
393
+ "styles": {},
394
+ "text": "Paragraph 1",
395
+ "type": "text",
396
+ },
397
+ ],
398
+ "id": "paragraph-1",
399
+ "props": {
400
+ "backgroundColor": "default",
401
+ "textAlignment": "left",
402
+ "textColor": "default",
403
+ },
404
+ "type": "paragraph",
405
+ },
406
+ {
407
+ "children": [
408
+ {
409
+ "children": [
410
+ {
411
+ "children": [],
412
+ "content": [
413
+ {
414
+ "styles": {},
415
+ "text": "Double Nested Paragraph 0",
416
+ "type": "text",
417
+ },
418
+ ],
419
+ "id": "double-nested-paragraph-0",
420
+ "props": {
421
+ "backgroundColor": "default",
422
+ "textAlignment": "left",
423
+ "textColor": "default",
424
+ },
425
+ "type": "paragraph",
426
+ },
427
+ ],
428
+ "content": [
429
+ {
430
+ "styles": {},
431
+ "text": "Nested Paragraph 0",
432
+ "type": "text",
433
+ },
434
+ ],
435
+ "id": "nested-paragraph-0",
436
+ "props": {
437
+ "backgroundColor": "default",
438
+ "textAlignment": "left",
439
+ "textColor": "default",
440
+ },
441
+ "type": "paragraph",
442
+ },
443
+ ],
444
+ "content": [
445
+ {
446
+ "styles": {},
447
+ "text": "Paragraph with children",
448
+ "type": "text",
449
+ },
450
+ ],
451
+ "id": "paragraph-with-children",
452
+ "props": {
453
+ "backgroundColor": "default",
454
+ "textAlignment": "left",
455
+ "textColor": "default",
456
+ },
457
+ "type": "paragraph",
458
+ },
459
+ {
460
+ "children": [],
461
+ "content": [
462
+ {
463
+ "styles": {},
464
+ "text": "Paragraph 2",
465
+ "type": "text",
466
+ },
467
+ ],
468
+ "id": "paragraph-2",
469
+ "props": {
470
+ "backgroundColor": "default",
471
+ "textAlignment": "left",
472
+ "textColor": "default",
473
+ },
474
+ "type": "paragraph",
475
+ },
476
+ {
477
+ "children": [],
478
+ "content": [
479
+ {
480
+ "styles": {},
481
+ "text": "Paragraph with props",
482
+ "type": "text",
483
+ },
484
+ ],
485
+ "id": "paragraph-with-props",
486
+ "props": {
487
+ "backgroundColor": "default",
488
+ "textAlignment": "center",
489
+ "textColor": "red",
490
+ },
491
+ "type": "paragraph",
492
+ },
493
+ {
494
+ "children": [],
495
+ "content": [
496
+ {
497
+ "styles": {},
498
+ "text": "Paragraph 3",
499
+ "type": "text",
500
+ },
501
+ ],
502
+ "id": "paragraph-3",
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
+ "bold": true,
516
+ },
517
+ "text": "Paragraph",
518
+ "type": "text",
519
+ },
520
+ {
521
+ "styles": {},
522
+ "text": " with styled ",
523
+ "type": "text",
524
+ },
525
+ {
526
+ "styles": {
527
+ "italic": true,
528
+ },
529
+ "text": "content",
530
+ "type": "text",
531
+ },
532
+ ],
533
+ "id": "paragraph-with-styled-content",
534
+ "props": {
535
+ "backgroundColor": "default",
536
+ "textAlignment": "left",
537
+ "textColor": "default",
538
+ },
539
+ "type": "paragraph",
540
+ },
541
+ {
542
+ "children": [],
543
+ "content": [
544
+ {
545
+ "styles": {},
546
+ "text": "Paragraph 4",
547
+ "type": "text",
548
+ },
549
+ ],
550
+ "id": "paragraph-4",
551
+ "props": {
552
+ "backgroundColor": "default",
553
+ "textAlignment": "left",
554
+ "textColor": "default",
555
+ },
556
+ "type": "paragraph",
557
+ },
558
+ {
559
+ "children": [],
560
+ "content": [
561
+ {
562
+ "styles": {},
563
+ "text": "Heading 1",
564
+ "type": "text",
565
+ },
566
+ ],
567
+ "id": "heading-0",
568
+ "props": {
569
+ "backgroundColor": "default",
570
+ "level": 1,
571
+ "textAlignment": "left",
572
+ "textColor": "default",
573
+ },
574
+ "type": "heading",
575
+ },
576
+ {
577
+ "children": [],
578
+ "content": [
579
+ {
580
+ "styles": {},
581
+ "text": "Paragraph 5",
582
+ "type": "text",
583
+ },
584
+ ],
585
+ "id": "paragraph-5",
586
+ "props": {
587
+ "backgroundColor": "default",
588
+ "textAlignment": "left",
589
+ "textColor": "default",
590
+ },
591
+ "type": "paragraph",
592
+ },
593
+ {
594
+ "children": [],
595
+ "content": undefined,
596
+ "id": "image-0",
597
+ "props": {
598
+ "backgroundColor": "default",
599
+ "caption": "",
600
+ "name": "",
601
+ "previewWidth": 512,
602
+ "showPreview": true,
603
+ "textAlignment": "left",
604
+ "url": "https://via.placeholder.com/150",
605
+ },
606
+ "type": "image",
607
+ },
608
+ {
609
+ "children": [],
610
+ "content": [
611
+ {
612
+ "styles": {},
613
+ "text": "Paragraph 6",
614
+ "type": "text",
615
+ },
616
+ ],
617
+ "id": "paragraph-6",
618
+ "props": {
619
+ "backgroundColor": "default",
620
+ "textAlignment": "left",
621
+ "textColor": "default",
622
+ },
623
+ "type": "paragraph",
624
+ },
625
+ {
626
+ "children": [],
627
+ "content": [
628
+ {
629
+ "styles": {},
630
+ "text": "Paragraph 7",
631
+ "type": "text",
632
+ },
633
+ ],
634
+ "id": "paragraph-7",
635
+ "props": {
636
+ "backgroundColor": "default",
637
+ "textAlignment": "left",
638
+ "textColor": "default",
639
+ },
640
+ "type": "paragraph",
641
+ },
642
+ {
643
+ "children": [],
644
+ "content": [],
645
+ "id": "empty-paragraph",
646
+ "props": {
647
+ "backgroundColor": "default",
648
+ "textAlignment": "left",
649
+ "textColor": "default",
650
+ },
651
+ "type": "paragraph",
652
+ },
653
+ {
654
+ "children": [],
655
+ "content": [
656
+ {
657
+ "styles": {},
658
+ "text": "Paragraph 8",
659
+ "type": "text",
660
+ },
661
+ ],
662
+ "id": "paragraph-8",
663
+ "props": {
664
+ "backgroundColor": "default",
665
+ "textAlignment": "left",
666
+ "textColor": "default",
667
+ },
668
+ "type": "paragraph",
669
+ },
670
+ {
671
+ "children": [],
672
+ "content": [],
673
+ "id": "trailing-paragraph",
674
+ "props": {
675
+ "backgroundColor": "default",
676
+ "textAlignment": "left",
677
+ "textColor": "default",
678
+ },
679
+ "type": "paragraph",
680
+ },
681
+ ]
682
+ `;
683
+
684
+ exports[`Test removeBlocks > Remove single block 1`] = `
685
+ [
686
+ {
687
+ "children": [],
688
+ "content": [
689
+ {
690
+ "styles": {},
691
+ "text": "Paragraph 1",
692
+ "type": "text",
693
+ },
694
+ ],
695
+ "id": "paragraph-1",
696
+ "props": {
697
+ "backgroundColor": "default",
698
+ "textAlignment": "left",
699
+ "textColor": "default",
700
+ },
701
+ "type": "paragraph",
702
+ },
703
+ {
704
+ "children": [
705
+ {
706
+ "children": [
707
+ {
708
+ "children": [],
709
+ "content": [
710
+ {
711
+ "styles": {},
712
+ "text": "Double Nested Paragraph 0",
713
+ "type": "text",
714
+ },
715
+ ],
716
+ "id": "double-nested-paragraph-0",
717
+ "props": {
718
+ "backgroundColor": "default",
719
+ "textAlignment": "left",
720
+ "textColor": "default",
721
+ },
722
+ "type": "paragraph",
723
+ },
724
+ ],
725
+ "content": [
726
+ {
727
+ "styles": {},
728
+ "text": "Nested Paragraph 0",
729
+ "type": "text",
730
+ },
731
+ ],
732
+ "id": "nested-paragraph-0",
733
+ "props": {
734
+ "backgroundColor": "default",
735
+ "textAlignment": "left",
736
+ "textColor": "default",
737
+ },
738
+ "type": "paragraph",
739
+ },
740
+ ],
741
+ "content": [
742
+ {
743
+ "styles": {},
744
+ "text": "Paragraph with children",
745
+ "type": "text",
746
+ },
747
+ ],
748
+ "id": "paragraph-with-children",
749
+ "props": {
750
+ "backgroundColor": "default",
751
+ "textAlignment": "left",
752
+ "textColor": "default",
753
+ },
754
+ "type": "paragraph",
755
+ },
756
+ {
757
+ "children": [],
758
+ "content": [
759
+ {
760
+ "styles": {},
761
+ "text": "Paragraph 2",
762
+ "type": "text",
763
+ },
764
+ ],
765
+ "id": "paragraph-2",
766
+ "props": {
767
+ "backgroundColor": "default",
768
+ "textAlignment": "left",
769
+ "textColor": "default",
770
+ },
771
+ "type": "paragraph",
772
+ },
773
+ {
774
+ "children": [],
775
+ "content": [
776
+ {
777
+ "styles": {},
778
+ "text": "Paragraph with props",
779
+ "type": "text",
780
+ },
781
+ ],
782
+ "id": "paragraph-with-props",
783
+ "props": {
784
+ "backgroundColor": "default",
785
+ "textAlignment": "center",
786
+ "textColor": "red",
787
+ },
788
+ "type": "paragraph",
789
+ },
790
+ {
791
+ "children": [],
792
+ "content": [
793
+ {
794
+ "styles": {},
795
+ "text": "Paragraph 3",
796
+ "type": "text",
797
+ },
798
+ ],
799
+ "id": "paragraph-3",
800
+ "props": {
801
+ "backgroundColor": "default",
802
+ "textAlignment": "left",
803
+ "textColor": "default",
804
+ },
805
+ "type": "paragraph",
806
+ },
807
+ {
808
+ "children": [],
809
+ "content": [
810
+ {
811
+ "styles": {
812
+ "bold": true,
813
+ },
814
+ "text": "Paragraph",
815
+ "type": "text",
816
+ },
817
+ {
818
+ "styles": {},
819
+ "text": " with styled ",
820
+ "type": "text",
821
+ },
822
+ {
823
+ "styles": {
824
+ "italic": true,
825
+ },
826
+ "text": "content",
827
+ "type": "text",
828
+ },
829
+ ],
830
+ "id": "paragraph-with-styled-content",
831
+ "props": {
832
+ "backgroundColor": "default",
833
+ "textAlignment": "left",
834
+ "textColor": "default",
835
+ },
836
+ "type": "paragraph",
837
+ },
838
+ {
839
+ "children": [],
840
+ "content": [
841
+ {
842
+ "styles": {},
843
+ "text": "Paragraph 4",
844
+ "type": "text",
845
+ },
846
+ ],
847
+ "id": "paragraph-4",
848
+ "props": {
849
+ "backgroundColor": "default",
850
+ "textAlignment": "left",
851
+ "textColor": "default",
852
+ },
853
+ "type": "paragraph",
854
+ },
855
+ {
856
+ "children": [],
857
+ "content": [
858
+ {
859
+ "styles": {},
860
+ "text": "Heading 1",
861
+ "type": "text",
862
+ },
863
+ ],
864
+ "id": "heading-0",
865
+ "props": {
866
+ "backgroundColor": "default",
867
+ "level": 1,
868
+ "textAlignment": "left",
869
+ "textColor": "default",
870
+ },
871
+ "type": "heading",
872
+ },
873
+ {
874
+ "children": [],
875
+ "content": [
876
+ {
877
+ "styles": {},
878
+ "text": "Paragraph 5",
879
+ "type": "text",
880
+ },
881
+ ],
882
+ "id": "paragraph-5",
883
+ "props": {
884
+ "backgroundColor": "default",
885
+ "textAlignment": "left",
886
+ "textColor": "default",
887
+ },
888
+ "type": "paragraph",
889
+ },
890
+ {
891
+ "children": [],
892
+ "content": undefined,
893
+ "id": "image-0",
894
+ "props": {
895
+ "backgroundColor": "default",
896
+ "caption": "",
897
+ "name": "",
898
+ "previewWidth": 512,
899
+ "showPreview": true,
900
+ "textAlignment": "left",
901
+ "url": "https://via.placeholder.com/150",
902
+ },
903
+ "type": "image",
904
+ },
905
+ {
906
+ "children": [],
907
+ "content": [
908
+ {
909
+ "styles": {},
910
+ "text": "Paragraph 6",
911
+ "type": "text",
912
+ },
913
+ ],
914
+ "id": "paragraph-6",
915
+ "props": {
916
+ "backgroundColor": "default",
917
+ "textAlignment": "left",
918
+ "textColor": "default",
919
+ },
920
+ "type": "paragraph",
921
+ },
922
+ {
923
+ "children": [],
924
+ "content": {
925
+ "rows": [
926
+ {
927
+ "cells": [
928
+ [
929
+ {
930
+ "styles": {},
931
+ "text": "Cell 1",
932
+ "type": "text",
933
+ },
934
+ ],
935
+ [
936
+ {
937
+ "styles": {},
938
+ "text": "Cell 2",
939
+ "type": "text",
940
+ },
941
+ ],
942
+ [
943
+ {
944
+ "styles": {},
945
+ "text": "Cell 3",
946
+ "type": "text",
947
+ },
948
+ ],
949
+ ],
950
+ },
951
+ {
952
+ "cells": [
953
+ [
954
+ {
955
+ "styles": {},
956
+ "text": "Cell 4",
957
+ "type": "text",
958
+ },
959
+ ],
960
+ [
961
+ {
962
+ "styles": {},
963
+ "text": "Cell 5",
964
+ "type": "text",
965
+ },
966
+ ],
967
+ [
968
+ {
969
+ "styles": {},
970
+ "text": "Cell 6",
971
+ "type": "text",
972
+ },
973
+ ],
974
+ ],
975
+ },
976
+ {
977
+ "cells": [
978
+ [
979
+ {
980
+ "styles": {},
981
+ "text": "Cell 7",
982
+ "type": "text",
983
+ },
984
+ ],
985
+ [
986
+ {
987
+ "styles": {},
988
+ "text": "Cell 8",
989
+ "type": "text",
990
+ },
991
+ ],
992
+ [
993
+ {
994
+ "styles": {},
995
+ "text": "Cell 9",
996
+ "type": "text",
997
+ },
998
+ ],
999
+ ],
1000
+ },
1001
+ ],
1002
+ "type": "tableContent",
1003
+ },
1004
+ "id": "table-0",
1005
+ "props": {
1006
+ "backgroundColor": "default",
1007
+ "textColor": "default",
1008
+ },
1009
+ "type": "table",
1010
+ },
1011
+ {
1012
+ "children": [],
1013
+ "content": [
1014
+ {
1015
+ "styles": {},
1016
+ "text": "Paragraph 7",
1017
+ "type": "text",
1018
+ },
1019
+ ],
1020
+ "id": "paragraph-7",
1021
+ "props": {
1022
+ "backgroundColor": "default",
1023
+ "textAlignment": "left",
1024
+ "textColor": "default",
1025
+ },
1026
+ "type": "paragraph",
1027
+ },
1028
+ {
1029
+ "children": [],
1030
+ "content": [],
1031
+ "id": "empty-paragraph",
1032
+ "props": {
1033
+ "backgroundColor": "default",
1034
+ "textAlignment": "left",
1035
+ "textColor": "default",
1036
+ },
1037
+ "type": "paragraph",
1038
+ },
1039
+ {
1040
+ "children": [],
1041
+ "content": [
1042
+ {
1043
+ "styles": {},
1044
+ "text": "Paragraph 8",
1045
+ "type": "text",
1046
+ },
1047
+ ],
1048
+ "id": "paragraph-8",
1049
+ "props": {
1050
+ "backgroundColor": "default",
1051
+ "textAlignment": "left",
1052
+ "textColor": "default",
1053
+ },
1054
+ "type": "paragraph",
1055
+ },
1056
+ {
1057
+ "children": [
1058
+ {
1059
+ "children": [
1060
+ {
1061
+ "children": [],
1062
+ "content": [
1063
+ {
1064
+ "styles": {},
1065
+ "text": "Double Nested Paragraph 1",
1066
+ "type": "text",
1067
+ },
1068
+ ],
1069
+ "id": "double-nested-paragraph-1",
1070
+ "props": {
1071
+ "backgroundColor": "default",
1072
+ "textAlignment": "left",
1073
+ "textColor": "default",
1074
+ },
1075
+ "type": "paragraph",
1076
+ },
1077
+ ],
1078
+ "content": [
1079
+ {
1080
+ "styles": {},
1081
+ "text": "Nested Paragraph 1",
1082
+ "type": "text",
1083
+ },
1084
+ ],
1085
+ "id": "nested-paragraph-1",
1086
+ "props": {
1087
+ "backgroundColor": "default",
1088
+ "textAlignment": "left",
1089
+ "textColor": "default",
1090
+ },
1091
+ "type": "paragraph",
1092
+ },
1093
+ ],
1094
+ "content": [
1095
+ {
1096
+ "styles": {
1097
+ "bold": true,
1098
+ },
1099
+ "text": "Heading",
1100
+ "type": "text",
1101
+ },
1102
+ {
1103
+ "styles": {},
1104
+ "text": " with styled ",
1105
+ "type": "text",
1106
+ },
1107
+ {
1108
+ "styles": {
1109
+ "italic": true,
1110
+ },
1111
+ "text": "content",
1112
+ "type": "text",
1113
+ },
1114
+ ],
1115
+ "id": "heading-with-everything",
1116
+ "props": {
1117
+ "backgroundColor": "red",
1118
+ "level": 2,
1119
+ "textAlignment": "center",
1120
+ "textColor": "red",
1121
+ },
1122
+ "type": "heading",
1123
+ },
1124
+ {
1125
+ "children": [],
1126
+ "content": [],
1127
+ "id": "trailing-paragraph",
1128
+ "props": {
1129
+ "backgroundColor": "default",
1130
+ "textAlignment": "left",
1131
+ "textColor": "default",
1132
+ },
1133
+ "type": "paragraph",
1134
+ },
1135
+ ]
1136
+ `;