@blocknote/core 0.27.2 → 0.29.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 (388) hide show
  1. package/dist/blocknote.cjs +10 -10
  2. package/dist/blocknote.cjs.map +1 -1
  3. package/dist/blocknote.js +3032 -3118
  4. package/dist/blocknote.js.map +1 -1
  5. package/dist/locales.cjs +1 -1
  6. package/dist/locales.cjs.map +1 -1
  7. package/dist/locales.js +10 -10
  8. package/dist/locales.js.map +1 -1
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/dist/webpack-stats.json +1 -1
  11. package/package.json +2 -2
  12. package/src/api/__snapshots__/blocks-deleted-nested-deep.json +26 -0
  13. package/src/api/__snapshots__/blocks-deleted-nested.json +68 -0
  14. package/src/api/__snapshots__/blocks-deleted.json +26 -0
  15. package/src/api/__snapshots__/blocks-inserted-nested.json +62 -0
  16. package/src/api/__snapshots__/blocks-inserted.json +20 -0
  17. package/src/api/__snapshots__/blocks-updated-content-inserted.json +42 -0
  18. package/src/api/__snapshots__/blocks-updated-multiple-insert.json +50 -0
  19. package/src/api/__snapshots__/blocks-updated-multiple.json +82 -0
  20. package/src/api/__snapshots__/blocks-updated-nested-deep.json +42 -0
  21. package/src/api/__snapshots__/blocks-updated-nested-multiple.json +118 -0
  22. package/src/api/__snapshots__/blocks-updated-nested.json +78 -0
  23. package/src/api/__snapshots__/blocks-updated-single.json +42 -0
  24. package/src/api/__snapshots__/blocks-updated.json +42 -0
  25. package/src/api/blockManipulation/__snapshots__/transactions.test.ts.snap +34 -0
  26. package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +312 -0
  27. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.ts +127 -94
  28. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +19 -37
  29. package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.ts +8 -6
  30. package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts +25 -31
  31. package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts +93 -91
  32. package/src/api/blockManipulation/commands/nestBlock/nestBlock.ts +16 -20
  33. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.ts +14 -1
  34. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +18 -56
  35. package/src/api/blockManipulation/commands/splitBlock/splitBlock.test.ts +52 -46
  36. package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +1051 -0
  37. package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +247 -154
  38. package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +109 -142
  39. package/src/api/blockManipulation/getBlock/getBlock.ts +23 -48
  40. package/src/api/blockManipulation/insertContentAt.ts +4 -17
  41. package/src/api/blockManipulation/selections/selection.test.ts +32 -16
  42. package/src/api/blockManipulation/selections/selection.ts +25 -51
  43. package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.ts +35 -14
  44. package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts +34 -65
  45. package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +8 -10
  46. package/src/api/clipboard/toClipboard/copyExtension.ts +7 -7
  47. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +7 -16
  48. package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +3 -17
  49. package/src/api/getBlockInfoFromPos.ts +13 -1
  50. package/src/api/nodeConversions/blockToNode.ts +21 -10
  51. package/src/api/nodeConversions/fragmentToBlocks.ts +5 -18
  52. package/src/api/nodeConversions/nodeToBlock.ts +11 -8
  53. package/src/api/nodeUtil.test.ts +228 -0
  54. package/src/api/nodeUtil.ts +235 -2
  55. package/src/api/parsers/html/parseHTML.ts +2 -10
  56. package/src/api/parsers/markdown/parseMarkdown.ts +2 -8
  57. package/src/api/pmUtil.ts +54 -0
  58. package/src/api/positionMapping.test.ts +370 -0
  59. package/src/api/positionMapping.ts +114 -0
  60. package/src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts +2 -2
  61. package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +9 -13
  62. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +5 -9
  63. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +19 -31
  64. package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +10 -8
  65. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +9 -13
  66. package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +1 -1
  67. package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +5 -9
  68. package/src/blocks/defaultBlockHelpers.ts +1 -1
  69. package/src/editor/BlockNoteEditor.test.ts +1 -1
  70. package/src/editor/BlockNoteEditor.ts +259 -130
  71. package/src/editor/BlockNoteTipTapEditor.ts +91 -8
  72. package/src/extensions/Comments/CommentsPlugin.ts +32 -34
  73. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +4 -8
  74. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +12 -13
  75. package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +1 -3
  76. package/src/extensions/SideMenu/MultipleNodeSelection.ts +3 -1
  77. package/src/extensions/SideMenu/dragging.ts +1 -1
  78. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +38 -25
  79. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +8 -8
  80. package/src/extensions/TableHandles/TableHandlesPlugin.ts +150 -136
  81. package/src/i18n/locales/de.ts +10 -10
  82. package/src/index.ts +4 -3
  83. package/src/schema/inlineContent/createSpec.ts +1 -5
  84. package/types/src/api/blockManipulation/commands/insertBlocks/insertBlocks.d.ts +2 -2
  85. package/types/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.d.ts +4 -8
  86. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +9 -10
  87. package/types/src/api/blockManipulation/getBlock/getBlock.d.ts +7 -7
  88. package/types/src/api/blockManipulation/insertContentAt.d.ts +5 -3
  89. package/types/src/api/blockManipulation/selections/selection.d.ts +3 -3
  90. package/types/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.d.ts +5 -5
  91. package/types/src/api/getBlockInfoFromPos.d.ts +8 -1
  92. package/types/src/api/nodeConversions/blockToNode.d.ts +3 -3
  93. package/types/src/api/nodeConversions/fragmentToBlocks.d.ts +1 -2
  94. package/types/src/api/nodeConversions/nodeToBlock.d.ts +2 -2
  95. package/types/src/api/nodeUtil.d.ts +67 -1
  96. package/types/src/api/parsers/html/parseHTML.d.ts +1 -1
  97. package/types/src/api/parsers/markdown/parseMarkdown.d.ts +1 -1
  98. package/types/src/api/pmUtil.d.ts +12 -0
  99. package/types/src/api/positionMapping.d.ts +25 -0
  100. package/types/src/editor/BlockNoteEditor.d.ts +72 -10
  101. package/types/src/editor/BlockNoteTipTapEditor.d.ts +15 -2
  102. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +1 -1
  103. package/types/src/index.d.ts +1 -2
  104. package/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap +0 -1859
  105. package/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.ts +0 -40
  106. package/src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts +0 -20
  107. package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraph.html +0 -138
  108. package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraphText.html +0 -138
  109. package/src/api/clipboard/__snapshots__/external/pasteImage.html +0 -153
  110. package/src/api/clipboard/__snapshots__/external/pasteParagraphInCustomBlock.html +0 -138
  111. package/src/api/clipboard/__snapshots__/external/pasteTable.html +0 -233
  112. package/src/api/clipboard/__snapshots__/external/pasteTableInExistingTable.html +0 -216
  113. package/src/api/clipboard/__snapshots__/internal/basicBlocks.html +0 -1
  114. package/src/api/clipboard/__snapshots__/internal/basicBlocksWithProps.html +0 -1
  115. package/src/api/clipboard/__snapshots__/internal/childToParent.html +0 -1
  116. package/src/api/clipboard/__snapshots__/internal/childrenToNextParent.html +0 -1
  117. package/src/api/clipboard/__snapshots__/internal/childrenToNextParentsChildren.html +0 -1
  118. package/src/api/clipboard/__snapshots__/internal/image.html +0 -1
  119. package/src/api/clipboard/__snapshots__/internal/multipleChildren.html +0 -1
  120. package/src/api/clipboard/__snapshots__/internal/multipleStyledText.html +0 -1
  121. package/src/api/clipboard/__snapshots__/internal/nestedImage.html +0 -1
  122. package/src/api/clipboard/__snapshots__/internal/paragraphInCustomBlock.html +0 -1
  123. package/src/api/clipboard/__snapshots__/internal/partialChildToParent.html +0 -1
  124. package/src/api/clipboard/__snapshots__/internal/styledText.html +0 -1
  125. package/src/api/clipboard/__snapshots__/internal/tableAllCells.html +0 -1
  126. package/src/api/clipboard/__snapshots__/internal/tableCell.html +0 -1
  127. package/src/api/clipboard/__snapshots__/internal/tableCellText.html +0 -1
  128. package/src/api/clipboard/__snapshots__/internal/tableRow.html +0 -1
  129. package/src/api/clipboard/__snapshots__/internal/unstyledText.html +0 -1
  130. package/src/api/clipboard/clipboardExternal.test.ts +0 -161
  131. package/src/api/clipboard/clipboardInternal.test.ts +0 -435
  132. package/src/api/clipboard/testUtil.ts +0 -27
  133. package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/external.html +0 -1
  134. package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/internal.html +0 -3
  135. package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/external.html +0 -1
  136. package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/internal.html +0 -1
  137. package/src/api/exporters/html/__snapshots__/codeBlock/empty/external.html +0 -1
  138. package/src/api/exporters/html/__snapshots__/codeBlock/empty/internal.html +0 -1
  139. package/src/api/exporters/html/__snapshots__/codeBlock/python/external.html +0 -1
  140. package/src/api/exporters/html/__snapshots__/codeBlock/python/internal.html +0 -1
  141. package/src/api/exporters/html/__snapshots__/complex/misc/external.html +0 -1
  142. package/src/api/exporters/html/__snapshots__/complex/misc/internal.html +0 -1
  143. package/src/api/exporters/html/__snapshots__/customBlock/basic/external.html +0 -1
  144. package/src/api/exporters/html/__snapshots__/customBlock/basic/internal.html +0 -1
  145. package/src/api/exporters/html/__snapshots__/customParagraph/basic/external.html +0 -1
  146. package/src/api/exporters/html/__snapshots__/customParagraph/basic/internal.html +0 -1
  147. package/src/api/exporters/html/__snapshots__/customParagraph/lineBreaks/external.html +0 -1
  148. package/src/api/exporters/html/__snapshots__/customParagraph/lineBreaks/internal.html +0 -1
  149. package/src/api/exporters/html/__snapshots__/customParagraph/nested/external.html +0 -1
  150. package/src/api/exporters/html/__snapshots__/customParagraph/nested/internal.html +0 -1
  151. package/src/api/exporters/html/__snapshots__/customParagraph/styled/external.html +0 -1
  152. package/src/api/exporters/html/__snapshots__/customParagraph/styled/internal.html +0 -1
  153. package/src/api/exporters/html/__snapshots__/file/basic/external.html +0 -1
  154. package/src/api/exporters/html/__snapshots__/file/basic/internal.html +0 -1
  155. package/src/api/exporters/html/__snapshots__/file/button/external.html +0 -1
  156. package/src/api/exporters/html/__snapshots__/file/button/internal.html +0 -1
  157. package/src/api/exporters/html/__snapshots__/file/nested/external.html +0 -1
  158. package/src/api/exporters/html/__snapshots__/file/nested/internal.html +0 -1
  159. package/src/api/exporters/html/__snapshots__/file/noCaption/external.html +0 -1
  160. package/src/api/exporters/html/__snapshots__/file/noCaption/internal.html +0 -1
  161. package/src/api/exporters/html/__snapshots__/file/noName/external.html +0 -1
  162. package/src/api/exporters/html/__snapshots__/file/noName/internal.html +0 -1
  163. package/src/api/exporters/html/__snapshots__/fontSize/basic/external.html +0 -1
  164. package/src/api/exporters/html/__snapshots__/fontSize/basic/internal.html +0 -1
  165. package/src/api/exporters/html/__snapshots__/hardbreak/basic/external.html +0 -1
  166. package/src/api/exporters/html/__snapshots__/hardbreak/basic/internal.html +0 -1
  167. package/src/api/exporters/html/__snapshots__/hardbreak/between-links/external.html +0 -1
  168. package/src/api/exporters/html/__snapshots__/hardbreak/between-links/internal.html +0 -1
  169. package/src/api/exporters/html/__snapshots__/hardbreak/end/external.html +0 -1
  170. package/src/api/exporters/html/__snapshots__/hardbreak/end/internal.html +0 -1
  171. package/src/api/exporters/html/__snapshots__/hardbreak/link/external.html +0 -1
  172. package/src/api/exporters/html/__snapshots__/hardbreak/link/internal.html +0 -1
  173. package/src/api/exporters/html/__snapshots__/hardbreak/multiple/external.html +0 -1
  174. package/src/api/exporters/html/__snapshots__/hardbreak/multiple/internal.html +0 -1
  175. package/src/api/exporters/html/__snapshots__/hardbreak/only/external.html +0 -1
  176. package/src/api/exporters/html/__snapshots__/hardbreak/only/internal.html +0 -1
  177. package/src/api/exporters/html/__snapshots__/hardbreak/start/external.html +0 -1
  178. package/src/api/exporters/html/__snapshots__/hardbreak/start/internal.html +0 -1
  179. package/src/api/exporters/html/__snapshots__/hardbreak/styles/external.html +0 -1
  180. package/src/api/exporters/html/__snapshots__/hardbreak/styles/internal.html +0 -1
  181. package/src/api/exporters/html/__snapshots__/image/basic/external.html +0 -1
  182. package/src/api/exporters/html/__snapshots__/image/basic/internal.html +0 -1
  183. package/src/api/exporters/html/__snapshots__/image/button/external.html +0 -1
  184. package/src/api/exporters/html/__snapshots__/image/button/internal.html +0 -1
  185. package/src/api/exporters/html/__snapshots__/image/nested/external.html +0 -1
  186. package/src/api/exporters/html/__snapshots__/image/nested/internal.html +0 -1
  187. package/src/api/exporters/html/__snapshots__/image/noCaption/external.html +0 -1
  188. package/src/api/exporters/html/__snapshots__/image/noCaption/internal.html +0 -1
  189. package/src/api/exporters/html/__snapshots__/image/noName/external.html +0 -1
  190. package/src/api/exporters/html/__snapshots__/image/noName/internal.html +0 -1
  191. package/src/api/exporters/html/__snapshots__/image/noPreview/external.html +0 -1
  192. package/src/api/exporters/html/__snapshots__/image/noPreview/internal.html +0 -1
  193. package/src/api/exporters/html/__snapshots__/link/adjacent/external.html +0 -1
  194. package/src/api/exporters/html/__snapshots__/link/adjacent/internal.html +0 -1
  195. package/src/api/exporters/html/__snapshots__/link/basic/external.html +0 -1
  196. package/src/api/exporters/html/__snapshots__/link/basic/internal.html +0 -1
  197. package/src/api/exporters/html/__snapshots__/link/styled/external.html +0 -1
  198. package/src/api/exporters/html/__snapshots__/link/styled/internal.html +0 -1
  199. package/src/api/exporters/html/__snapshots__/lists/basic/external.html +0 -1
  200. package/src/api/exporters/html/__snapshots__/lists/basic/internal.html +0 -1
  201. package/src/api/exporters/html/__snapshots__/lists/nested/external.html +0 -1
  202. package/src/api/exporters/html/__snapshots__/lists/nested/internal.html +0 -1
  203. package/src/api/exporters/html/__snapshots__/mention/basic/external.html +0 -1
  204. package/src/api/exporters/html/__snapshots__/mention/basic/internal.html +0 -1
  205. package/src/api/exporters/html/__snapshots__/pageBreak/basic/external.html +0 -1
  206. package/src/api/exporters/html/__snapshots__/pageBreak/basic/internal.html +0 -1
  207. package/src/api/exporters/html/__snapshots__/paragraph/basic/external.html +0 -1
  208. package/src/api/exporters/html/__snapshots__/paragraph/basic/internal.html +0 -1
  209. package/src/api/exporters/html/__snapshots__/paragraph/empty/external.html +0 -1
  210. package/src/api/exporters/html/__snapshots__/paragraph/empty/internal.html +0 -1
  211. package/src/api/exporters/html/__snapshots__/paragraph/lineBreaks/external.html +0 -1
  212. package/src/api/exporters/html/__snapshots__/paragraph/lineBreaks/internal.html +0 -1
  213. package/src/api/exporters/html/__snapshots__/paragraph/nested/external.html +0 -1
  214. package/src/api/exporters/html/__snapshots__/paragraph/nested/internal.html +0 -1
  215. package/src/api/exporters/html/__snapshots__/paragraph/styled/external.html +0 -1
  216. package/src/api/exporters/html/__snapshots__/paragraph/styled/internal.html +0 -1
  217. package/src/api/exporters/html/__snapshots__/paste/parse-basic-block-types.json +0 -140
  218. package/src/api/exporters/html/__snapshots__/paste/parse-deep-nested-content.json +0 -240
  219. package/src/api/exporters/html/__snapshots__/paste/parse-div-with-inline-content.json +0 -91
  220. package/src/api/exporters/html/__snapshots__/paste/parse-divs.json +0 -19
  221. package/src/api/exporters/html/__snapshots__/paste/parse-fake-image-caption.json +0 -31
  222. package/src/api/exporters/html/__snapshots__/paste/parse-mixed-nested-lists.json +0 -70
  223. package/src/api/exporters/html/__snapshots__/paste/parse-nested-lists-with-paragraphs.json +0 -70
  224. package/src/api/exporters/html/__snapshots__/paste/parse-nested-lists.json +0 -70
  225. package/src/api/exporters/html/__snapshots__/simpleCustomParagraph/basic/external.html +0 -1
  226. package/src/api/exporters/html/__snapshots__/simpleCustomParagraph/basic/internal.html +0 -1
  227. package/src/api/exporters/html/__snapshots__/simpleCustomParagraph/nested/external.html +0 -1
  228. package/src/api/exporters/html/__snapshots__/simpleCustomParagraph/nested/internal.html +0 -1
  229. package/src/api/exporters/html/__snapshots__/simpleCustomParagraph/styled/external.html +0 -1
  230. package/src/api/exporters/html/__snapshots__/simpleCustomParagraph/styled/internal.html +0 -1
  231. package/src/api/exporters/html/__snapshots__/simpleFile/basic/external.html +0 -1
  232. package/src/api/exporters/html/__snapshots__/simpleFile/basic/internal.html +0 -1
  233. package/src/api/exporters/html/__snapshots__/simpleFile/button/external.html +0 -1
  234. package/src/api/exporters/html/__snapshots__/simpleFile/button/internal.html +0 -1
  235. package/src/api/exporters/html/__snapshots__/simpleFile/nested/external.html +0 -1
  236. package/src/api/exporters/html/__snapshots__/simpleFile/nested/internal.html +0 -1
  237. package/src/api/exporters/html/__snapshots__/simpleImage/basic/external.html +0 -1
  238. package/src/api/exporters/html/__snapshots__/simpleImage/basic/internal.html +0 -1
  239. package/src/api/exporters/html/__snapshots__/simpleImage/button/external.html +0 -1
  240. package/src/api/exporters/html/__snapshots__/simpleImage/button/internal.html +0 -1
  241. package/src/api/exporters/html/__snapshots__/simpleImage/nested/external.html +0 -1
  242. package/src/api/exporters/html/__snapshots__/simpleImage/nested/internal.html +0 -1
  243. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/external.html +0 -1
  244. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/internal.html +0 -1
  245. package/src/api/exporters/html/__snapshots__/simpleImage/noName/external.html +0 -1
  246. package/src/api/exporters/html/__snapshots__/simpleImage/noName/internal.html +0 -1
  247. package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/external.html +0 -1
  248. package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/internal.html +0 -1
  249. package/src/api/exporters/html/__snapshots__/small/basic/external.html +0 -1
  250. package/src/api/exporters/html/__snapshots__/small/basic/internal.html +0 -1
  251. package/src/api/exporters/html/__snapshots__/table/allColWidths/external.html +0 -1
  252. package/src/api/exporters/html/__snapshots__/table/allColWidths/internal.html +0 -1
  253. package/src/api/exporters/html/__snapshots__/table/basic/external.html +0 -1
  254. package/src/api/exporters/html/__snapshots__/table/basic/internal.html +0 -1
  255. package/src/api/exporters/html/__snapshots__/table/headerCols/external.html +0 -1
  256. package/src/api/exporters/html/__snapshots__/table/headerCols/internal.html +0 -1
  257. package/src/api/exporters/html/__snapshots__/table/headerRows/external.html +0 -1
  258. package/src/api/exporters/html/__snapshots__/table/headerRows/internal.html +0 -1
  259. package/src/api/exporters/html/__snapshots__/table/headersRows/external.html +0 -1
  260. package/src/api/exporters/html/__snapshots__/table/headersRows/internal.html +0 -1
  261. package/src/api/exporters/html/__snapshots__/table/mixedCellColors/external.html +0 -1
  262. package/src/api/exporters/html/__snapshots__/table/mixedCellColors/internal.html +0 -1
  263. package/src/api/exporters/html/__snapshots__/table/mixedColWidths/external.html +0 -1
  264. package/src/api/exporters/html/__snapshots__/table/mixedColWidths/internal.html +0 -1
  265. package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/external.html +0 -1
  266. package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/internal.html +0 -1
  267. package/src/api/exporters/html/__snapshots__/tag/basic/external.html +0 -1
  268. package/src/api/exporters/html/__snapshots__/tag/basic/internal.html +0 -1
  269. package/src/api/exporters/html/htmlConversion.test.ts +0 -110
  270. package/src/api/exporters/markdown/__snapshots__/codeBlock/contains-newlines/markdown.md +0 -4
  271. package/src/api/exporters/markdown/__snapshots__/codeBlock/defaultLanguage/markdown.md +0 -3
  272. package/src/api/exporters/markdown/__snapshots__/codeBlock/empty/markdown.md +0 -2
  273. package/src/api/exporters/markdown/__snapshots__/codeBlock/python/markdown.md +0 -3
  274. package/src/api/exporters/markdown/__snapshots__/complex/misc/markdown.md +0 -5
  275. package/src/api/exporters/markdown/__snapshots__/customBlock/basic/markdown.md +0 -5
  276. package/src/api/exporters/markdown/__snapshots__/customParagraph/basic/markdown.md +0 -1
  277. package/src/api/exporters/markdown/__snapshots__/customParagraph/lineBreaks/markdown.md +0 -1
  278. package/src/api/exporters/markdown/__snapshots__/customParagraph/nested/markdown.md +0 -5
  279. package/src/api/exporters/markdown/__snapshots__/customParagraph/styled/markdown.md +0 -1
  280. package/src/api/exporters/markdown/__snapshots__/file/basic/markdown.md +0 -3
  281. package/src/api/exporters/markdown/__snapshots__/file/button/markdown.md +0 -1
  282. package/src/api/exporters/markdown/__snapshots__/file/nested/markdown.md +0 -7
  283. package/src/api/exporters/markdown/__snapshots__/file/noCaption/markdown.md +0 -1
  284. package/src/api/exporters/markdown/__snapshots__/file/noName/markdown.md +0 -3
  285. package/src/api/exporters/markdown/__snapshots__/fontSize/basic/markdown.md +0 -1
  286. package/src/api/exporters/markdown/__snapshots__/hardbreak/basic/markdown.md +0 -2
  287. package/src/api/exporters/markdown/__snapshots__/hardbreak/between-links/markdown.md +0 -2
  288. package/src/api/exporters/markdown/__snapshots__/hardbreak/end/markdown.md +0 -1
  289. package/src/api/exporters/markdown/__snapshots__/hardbreak/link/markdown.md +0 -2
  290. package/src/api/exporters/markdown/__snapshots__/hardbreak/multiple/markdown.md +0 -3
  291. package/src/api/exporters/markdown/__snapshots__/hardbreak/only/markdown.md +0 -0
  292. package/src/api/exporters/markdown/__snapshots__/hardbreak/start/markdown.md +0 -1
  293. package/src/api/exporters/markdown/__snapshots__/hardbreak/styles/markdown.md +0 -2
  294. package/src/api/exporters/markdown/__snapshots__/image/basic/markdown.md +0 -3
  295. package/src/api/exporters/markdown/__snapshots__/image/button/markdown.md +0 -1
  296. package/src/api/exporters/markdown/__snapshots__/image/nested/markdown.md +0 -7
  297. package/src/api/exporters/markdown/__snapshots__/image/noCaption/markdown.md +0 -1
  298. package/src/api/exporters/markdown/__snapshots__/image/noName/markdown.md +0 -3
  299. package/src/api/exporters/markdown/__snapshots__/image/noPreview/markdown.md +0 -3
  300. package/src/api/exporters/markdown/__snapshots__/link/adjacent/markdown.md +0 -1
  301. package/src/api/exporters/markdown/__snapshots__/link/basic/markdown.md +0 -1
  302. package/src/api/exporters/markdown/__snapshots__/link/styled/markdown.md +0 -1
  303. package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +0 -10
  304. package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +0 -10
  305. package/src/api/exporters/markdown/__snapshots__/mention/basic/markdown.md +0 -1
  306. package/src/api/exporters/markdown/__snapshots__/pageBreak/basic/markdown.md +0 -0
  307. package/src/api/exporters/markdown/__snapshots__/paragraph/basic/markdown.md +0 -1
  308. package/src/api/exporters/markdown/__snapshots__/paragraph/empty/markdown.md +0 -0
  309. package/src/api/exporters/markdown/__snapshots__/paragraph/lineBreaks/markdown.md +0 -2
  310. package/src/api/exporters/markdown/__snapshots__/paragraph/nested/markdown.md +0 -5
  311. package/src/api/exporters/markdown/__snapshots__/paragraph/styled/markdown.md +0 -1
  312. package/src/api/exporters/markdown/__snapshots__/simpleCustomParagraph/basic/markdown.md +0 -1
  313. package/src/api/exporters/markdown/__snapshots__/simpleCustomParagraph/nested/markdown.md +0 -5
  314. package/src/api/exporters/markdown/__snapshots__/simpleCustomParagraph/styled/markdown.md +0 -1
  315. package/src/api/exporters/markdown/__snapshots__/simpleFile/basic/markdown.md +0 -3
  316. package/src/api/exporters/markdown/__snapshots__/simpleFile/button/markdown.md +0 -1
  317. package/src/api/exporters/markdown/__snapshots__/simpleFile/nested/markdown.md +0 -7
  318. package/src/api/exporters/markdown/__snapshots__/simpleImage/basic/markdown.md +0 -3
  319. package/src/api/exporters/markdown/__snapshots__/simpleImage/button/markdown.md +0 -1
  320. package/src/api/exporters/markdown/__snapshots__/simpleImage/nested/markdown.md +0 -7
  321. package/src/api/exporters/markdown/__snapshots__/simpleImage/noCaption/markdown.md +0 -1
  322. package/src/api/exporters/markdown/__snapshots__/simpleImage/noName/markdown.md +0 -3
  323. package/src/api/exporters/markdown/__snapshots__/simpleImage/noPreview/markdown.md +0 -3
  324. package/src/api/exporters/markdown/__snapshots__/small/basic/markdown.md +0 -1
  325. package/src/api/exporters/markdown/__snapshots__/table/allColWidths/markdown.md +0 -5
  326. package/src/api/exporters/markdown/__snapshots__/table/basic/markdown.md +0 -5
  327. package/src/api/exporters/markdown/__snapshots__/table/headerCols/markdown.md +0 -4
  328. package/src/api/exporters/markdown/__snapshots__/table/headerRows/markdown.md +0 -4
  329. package/src/api/exporters/markdown/__snapshots__/table/mixedCellColors/markdown.md +0 -5
  330. package/src/api/exporters/markdown/__snapshots__/table/mixedColWidths/markdown.md +0 -5
  331. package/src/api/exporters/markdown/__snapshots__/table/mixedRowspansAndColspans/markdown.md +0 -5
  332. package/src/api/exporters/markdown/__snapshots__/tag/basic/markdown.md +0 -1
  333. package/src/api/exporters/markdown/markdownExporter.test.ts +0 -86
  334. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +0 -3473
  335. package/src/api/nodeConversions/nodeConversions.test.ts +0 -83
  336. package/src/api/parsers/html/__snapshots__/list-test.json +0 -177
  337. package/src/api/parsers/html/__snapshots__/parse-2-tables.json +0 -129
  338. package/src/api/parsers/html/__snapshots__/parse-basic-block-types.json +0 -142
  339. package/src/api/parsers/html/__snapshots__/parse-codeblocks.json +0 -62
  340. package/src/api/parsers/html/__snapshots__/parse-div-with-inline-content.json +0 -91
  341. package/src/api/parsers/html/__snapshots__/parse-divs.json +0 -121
  342. package/src/api/parsers/html/__snapshots__/parse-fake-image-caption.json +0 -33
  343. package/src/api/parsers/html/__snapshots__/parse-image-in-paragraph.json +0 -16
  344. package/src/api/parsers/html/__snapshots__/parse-mixed-nested-lists.json +0 -265
  345. package/src/api/parsers/html/__snapshots__/parse-nested-lists-with-paragraphs.json +0 -265
  346. package/src/api/parsers/html/__snapshots__/parse-nested-lists.json +0 -265
  347. package/src/api/parsers/html/__snapshots__/parse-notion-html.json +0 -565
  348. package/src/api/parsers/html/__snapshots__/parse-two-divs.json +0 -36
  349. package/src/api/parsers/html/parseHTML.test.ts +0 -563
  350. package/src/api/parsers/markdown/__snapshots__/complex.json +0 -353
  351. package/src/api/parsers/markdown/__snapshots__/issue-226-1.json +0 -71
  352. package/src/api/parsers/markdown/__snapshots__/issue-226-2.json +0 -144
  353. package/src/api/parsers/markdown/__snapshots__/nested.json +0 -72
  354. package/src/api/parsers/markdown/__snapshots__/non-nested.json +0 -71
  355. package/src/api/parsers/markdown/__snapshots__/pasted/complex.json +0 -319
  356. package/src/api/parsers/markdown/__snapshots__/pasted/issue-226-1.json +0 -81
  357. package/src/api/parsers/markdown/__snapshots__/pasted/issue-226-2.json +0 -165
  358. package/src/api/parsers/markdown/__snapshots__/pasted/nested.json +0 -81
  359. package/src/api/parsers/markdown/__snapshots__/pasted/non-nested.json +0 -81
  360. package/src/api/parsers/markdown/__snapshots__/pasted/styled.json +0 -61
  361. package/src/api/parsers/markdown/__snapshots__/pasted/whitespace bold.json +0 -42
  362. package/src/api/parsers/markdown/__snapshots__/styled.json +0 -58
  363. package/src/api/parsers/markdown/__snapshots__/whitespace bold.json +0 -19
  364. package/src/api/parsers/markdown/parseMarkdown.test.ts +0 -135
  365. package/src/api/testUtil/cases/customBlocks.ts +0 -342
  366. package/src/api/testUtil/cases/customInlineContent.ts +0 -113
  367. package/src/api/testUtil/cases/customStyles.ts +0 -102
  368. package/src/api/testUtil/cases/defaultSchema.ts +0 -1493
  369. package/src/api/testUtil/index.ts +0 -19
  370. package/src/api/testUtil/partialBlockTestUtil.ts +0 -198
  371. package/src/api/testUtil/paste.ts +0 -46
  372. package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.d.ts +0 -4
  373. package/types/src/api/clipboard/clipboardInternal.test.d.ts +0 -1
  374. package/types/src/api/clipboard/testUtil.d.ts +0 -541
  375. package/types/src/api/exporters/html/htmlConversion.test.d.ts +0 -1
  376. package/types/src/api/exporters/markdown/markdownExporter.test.d.ts +0 -1
  377. package/types/src/api/nodeConversions/nodeConversions.test.d.ts +0 -1
  378. package/types/src/api/parsers/html/parseHTML.test.d.ts +0 -1
  379. package/types/src/api/parsers/markdown/parseMarkdown.test.d.ts +0 -1
  380. package/types/src/api/testUtil/cases/customBlocks.d.ts +0 -670
  381. package/types/src/api/testUtil/cases/customInlineContent.d.ts +0 -558
  382. package/types/src/api/testUtil/cases/customStyles.d.ts +0 -552
  383. package/types/src/api/testUtil/cases/defaultSchema.d.ts +0 -4
  384. package/types/src/api/testUtil/index.d.ts +0 -14
  385. package/types/src/api/testUtil/partialBlockTestUtil.d.ts +0 -9
  386. package/types/src/api/testUtil/paste.d.ts +0 -2
  387. /package/types/src/api/{blockManipulation/commands/removeBlocks/removeBlocks.test.d.ts → nodeUtil.test.d.ts} +0 -0
  388. /package/types/src/api/{clipboard/clipboardExternal.test.d.ts → positionMapping.test.d.ts} +0 -0
@@ -1,1859 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`Test removeBlocks > Remove all child blocks 1`] = `
4
- [
5
- {
6
- "children": [],
7
- "content": [
8
- {
9
- "styles": {},
10
- "text": "Paragraph 0",
11
- "type": "text",
12
- },
13
- ],
14
- "id": "paragraph-0",
15
- "props": {
16
- "backgroundColor": "default",
17
- "textAlignment": "left",
18
- "textColor": "default",
19
- },
20
- "type": "paragraph",
21
- },
22
- {
23
- "children": [],
24
- "content": [
25
- {
26
- "styles": {},
27
- "text": "Paragraph 1",
28
- "type": "text",
29
- },
30
- ],
31
- "id": "paragraph-1",
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 with children",
45
- "type": "text",
46
- },
47
- ],
48
- "id": "paragraph-with-children",
49
- "props": {
50
- "backgroundColor": "default",
51
- "textAlignment": "left",
52
- "textColor": "default",
53
- },
54
- "type": "paragraph",
55
- },
56
- {
57
- "children": [],
58
- "content": [
59
- {
60
- "styles": {},
61
- "text": "Paragraph 2",
62
- "type": "text",
63
- },
64
- ],
65
- "id": "paragraph-2",
66
- "props": {
67
- "backgroundColor": "default",
68
- "textAlignment": "left",
69
- "textColor": "default",
70
- },
71
- "type": "paragraph",
72
- },
73
- {
74
- "children": [],
75
- "content": [
76
- {
77
- "styles": {},
78
- "text": "Paragraph with props",
79
- "type": "text",
80
- },
81
- ],
82
- "id": "paragraph-with-props",
83
- "props": {
84
- "backgroundColor": "default",
85
- "textAlignment": "center",
86
- "textColor": "red",
87
- },
88
- "type": "paragraph",
89
- },
90
- {
91
- "children": [],
92
- "content": [
93
- {
94
- "styles": {},
95
- "text": "Paragraph 3",
96
- "type": "text",
97
- },
98
- ],
99
- "id": "paragraph-3",
100
- "props": {
101
- "backgroundColor": "default",
102
- "textAlignment": "left",
103
- "textColor": "default",
104
- },
105
- "type": "paragraph",
106
- },
107
- {
108
- "children": [],
109
- "content": [
110
- {
111
- "styles": {
112
- "bold": true,
113
- },
114
- "text": "Paragraph",
115
- "type": "text",
116
- },
117
- {
118
- "styles": {},
119
- "text": " with styled ",
120
- "type": "text",
121
- },
122
- {
123
- "styles": {
124
- "italic": true,
125
- },
126
- "text": "content",
127
- "type": "text",
128
- },
129
- ],
130
- "id": "paragraph-with-styled-content",
131
- "props": {
132
- "backgroundColor": "default",
133
- "textAlignment": "left",
134
- "textColor": "default",
135
- },
136
- "type": "paragraph",
137
- },
138
- {
139
- "children": [],
140
- "content": [
141
- {
142
- "styles": {},
143
- "text": "Paragraph 4",
144
- "type": "text",
145
- },
146
- ],
147
- "id": "paragraph-4",
148
- "props": {
149
- "backgroundColor": "default",
150
- "textAlignment": "left",
151
- "textColor": "default",
152
- },
153
- "type": "paragraph",
154
- },
155
- {
156
- "children": [],
157
- "content": [
158
- {
159
- "styles": {},
160
- "text": "Heading 1",
161
- "type": "text",
162
- },
163
- ],
164
- "id": "heading-0",
165
- "props": {
166
- "backgroundColor": "default",
167
- "level": 1,
168
- "textAlignment": "left",
169
- "textColor": "default",
170
- },
171
- "type": "heading",
172
- },
173
- {
174
- "children": [],
175
- "content": [
176
- {
177
- "styles": {},
178
- "text": "Paragraph 5",
179
- "type": "text",
180
- },
181
- ],
182
- "id": "paragraph-5",
183
- "props": {
184
- "backgroundColor": "default",
185
- "textAlignment": "left",
186
- "textColor": "default",
187
- },
188
- "type": "paragraph",
189
- },
190
- {
191
- "children": [],
192
- "content": undefined,
193
- "id": "image-0",
194
- "props": {
195
- "backgroundColor": "default",
196
- "caption": "",
197
- "name": "",
198
- "previewWidth": 512,
199
- "showPreview": true,
200
- "textAlignment": "left",
201
- "url": "https://via.placeholder.com/150",
202
- },
203
- "type": "image",
204
- },
205
- {
206
- "children": [],
207
- "content": [
208
- {
209
- "styles": {},
210
- "text": "Paragraph 6",
211
- "type": "text",
212
- },
213
- ],
214
- "id": "paragraph-6",
215
- "props": {
216
- "backgroundColor": "default",
217
- "textAlignment": "left",
218
- "textColor": "default",
219
- },
220
- "type": "paragraph",
221
- },
222
- {
223
- "children": [],
224
- "content": {
225
- "columnWidths": [
226
- undefined,
227
- undefined,
228
- undefined,
229
- ],
230
- "headerCols": undefined,
231
- "headerRows": undefined,
232
- "rows": [
233
- {
234
- "cells": [
235
- {
236
- "content": [
237
- {
238
- "styles": {},
239
- "text": "Cell 1",
240
- "type": "text",
241
- },
242
- ],
243
- "props": {
244
- "backgroundColor": "default",
245
- "colspan": 1,
246
- "rowspan": 1,
247
- "textAlignment": "left",
248
- "textColor": "default",
249
- },
250
- "type": "tableCell",
251
- },
252
- {
253
- "content": [
254
- {
255
- "styles": {},
256
- "text": "Cell 2",
257
- "type": "text",
258
- },
259
- ],
260
- "props": {
261
- "backgroundColor": "default",
262
- "colspan": 1,
263
- "rowspan": 1,
264
- "textAlignment": "left",
265
- "textColor": "default",
266
- },
267
- "type": "tableCell",
268
- },
269
- {
270
- "content": [
271
- {
272
- "styles": {},
273
- "text": "Cell 3",
274
- "type": "text",
275
- },
276
- ],
277
- "props": {
278
- "backgroundColor": "default",
279
- "colspan": 1,
280
- "rowspan": 1,
281
- "textAlignment": "left",
282
- "textColor": "default",
283
- },
284
- "type": "tableCell",
285
- },
286
- ],
287
- },
288
- {
289
- "cells": [
290
- {
291
- "content": [
292
- {
293
- "styles": {},
294
- "text": "Cell 4",
295
- "type": "text",
296
- },
297
- ],
298
- "props": {
299
- "backgroundColor": "default",
300
- "colspan": 1,
301
- "rowspan": 1,
302
- "textAlignment": "left",
303
- "textColor": "default",
304
- },
305
- "type": "tableCell",
306
- },
307
- {
308
- "content": [
309
- {
310
- "styles": {},
311
- "text": "Cell 5",
312
- "type": "text",
313
- },
314
- ],
315
- "props": {
316
- "backgroundColor": "default",
317
- "colspan": 1,
318
- "rowspan": 1,
319
- "textAlignment": "left",
320
- "textColor": "default",
321
- },
322
- "type": "tableCell",
323
- },
324
- {
325
- "content": [
326
- {
327
- "styles": {},
328
- "text": "Cell 6",
329
- "type": "text",
330
- },
331
- ],
332
- "props": {
333
- "backgroundColor": "default",
334
- "colspan": 1,
335
- "rowspan": 1,
336
- "textAlignment": "left",
337
- "textColor": "default",
338
- },
339
- "type": "tableCell",
340
- },
341
- ],
342
- },
343
- {
344
- "cells": [
345
- {
346
- "content": [
347
- {
348
- "styles": {},
349
- "text": "Cell 7",
350
- "type": "text",
351
- },
352
- ],
353
- "props": {
354
- "backgroundColor": "default",
355
- "colspan": 1,
356
- "rowspan": 1,
357
- "textAlignment": "left",
358
- "textColor": "default",
359
- },
360
- "type": "tableCell",
361
- },
362
- {
363
- "content": [
364
- {
365
- "styles": {},
366
- "text": "Cell 8",
367
- "type": "text",
368
- },
369
- ],
370
- "props": {
371
- "backgroundColor": "default",
372
- "colspan": 1,
373
- "rowspan": 1,
374
- "textAlignment": "left",
375
- "textColor": "default",
376
- },
377
- "type": "tableCell",
378
- },
379
- {
380
- "content": [
381
- {
382
- "styles": {},
383
- "text": "Cell 9",
384
- "type": "text",
385
- },
386
- ],
387
- "props": {
388
- "backgroundColor": "default",
389
- "colspan": 1,
390
- "rowspan": 1,
391
- "textAlignment": "left",
392
- "textColor": "default",
393
- },
394
- "type": "tableCell",
395
- },
396
- ],
397
- },
398
- ],
399
- "type": "tableContent",
400
- },
401
- "id": "table-0",
402
- "props": {
403
- "textColor": "default",
404
- },
405
- "type": "table",
406
- },
407
- {
408
- "children": [],
409
- "content": [
410
- {
411
- "styles": {},
412
- "text": "Paragraph 7",
413
- "type": "text",
414
- },
415
- ],
416
- "id": "paragraph-7",
417
- "props": {
418
- "backgroundColor": "default",
419
- "textAlignment": "left",
420
- "textColor": "default",
421
- },
422
- "type": "paragraph",
423
- },
424
- {
425
- "children": [],
426
- "content": [],
427
- "id": "empty-paragraph",
428
- "props": {
429
- "backgroundColor": "default",
430
- "textAlignment": "left",
431
- "textColor": "default",
432
- },
433
- "type": "paragraph",
434
- },
435
- {
436
- "children": [],
437
- "content": [
438
- {
439
- "styles": {},
440
- "text": "Paragraph 8",
441
- "type": "text",
442
- },
443
- ],
444
- "id": "paragraph-8",
445
- "props": {
446
- "backgroundColor": "default",
447
- "textAlignment": "left",
448
- "textColor": "default",
449
- },
450
- "type": "paragraph",
451
- },
452
- {
453
- "children": [
454
- {
455
- "children": [
456
- {
457
- "children": [],
458
- "content": [
459
- {
460
- "styles": {},
461
- "text": "Double Nested Paragraph 1",
462
- "type": "text",
463
- },
464
- ],
465
- "id": "double-nested-paragraph-1",
466
- "props": {
467
- "backgroundColor": "default",
468
- "textAlignment": "left",
469
- "textColor": "default",
470
- },
471
- "type": "paragraph",
472
- },
473
- ],
474
- "content": [
475
- {
476
- "styles": {},
477
- "text": "Nested Paragraph 1",
478
- "type": "text",
479
- },
480
- ],
481
- "id": "nested-paragraph-1",
482
- "props": {
483
- "backgroundColor": "default",
484
- "textAlignment": "left",
485
- "textColor": "default",
486
- },
487
- "type": "paragraph",
488
- },
489
- ],
490
- "content": [
491
- {
492
- "styles": {
493
- "bold": true,
494
- },
495
- "text": "Heading",
496
- "type": "text",
497
- },
498
- {
499
- "styles": {},
500
- "text": " with styled ",
501
- "type": "text",
502
- },
503
- {
504
- "styles": {
505
- "italic": true,
506
- },
507
- "text": "content",
508
- "type": "text",
509
- },
510
- ],
511
- "id": "heading-with-everything",
512
- "props": {
513
- "backgroundColor": "red",
514
- "level": 2,
515
- "textAlignment": "center",
516
- "textColor": "red",
517
- },
518
- "type": "heading",
519
- },
520
- {
521
- "children": [],
522
- "content": [],
523
- "id": "trailing-paragraph",
524
- "props": {
525
- "backgroundColor": "default",
526
- "textAlignment": "left",
527
- "textColor": "default",
528
- },
529
- "type": "paragraph",
530
- },
531
- ]
532
- `;
533
-
534
- exports[`Test removeBlocks > Remove multiple consecutive blocks 1`] = `
535
- [
536
- {
537
- "children": [],
538
- "content": [
539
- {
540
- "styles": {},
541
- "text": "Paragraph 2",
542
- "type": "text",
543
- },
544
- ],
545
- "id": "paragraph-2",
546
- "props": {
547
- "backgroundColor": "default",
548
- "textAlignment": "left",
549
- "textColor": "default",
550
- },
551
- "type": "paragraph",
552
- },
553
- {
554
- "children": [],
555
- "content": [
556
- {
557
- "styles": {},
558
- "text": "Paragraph with props",
559
- "type": "text",
560
- },
561
- ],
562
- "id": "paragraph-with-props",
563
- "props": {
564
- "backgroundColor": "default",
565
- "textAlignment": "center",
566
- "textColor": "red",
567
- },
568
- "type": "paragraph",
569
- },
570
- {
571
- "children": [],
572
- "content": [
573
- {
574
- "styles": {},
575
- "text": "Paragraph 3",
576
- "type": "text",
577
- },
578
- ],
579
- "id": "paragraph-3",
580
- "props": {
581
- "backgroundColor": "default",
582
- "textAlignment": "left",
583
- "textColor": "default",
584
- },
585
- "type": "paragraph",
586
- },
587
- {
588
- "children": [],
589
- "content": [
590
- {
591
- "styles": {
592
- "bold": true,
593
- },
594
- "text": "Paragraph",
595
- "type": "text",
596
- },
597
- {
598
- "styles": {},
599
- "text": " with styled ",
600
- "type": "text",
601
- },
602
- {
603
- "styles": {
604
- "italic": true,
605
- },
606
- "text": "content",
607
- "type": "text",
608
- },
609
- ],
610
- "id": "paragraph-with-styled-content",
611
- "props": {
612
- "backgroundColor": "default",
613
- "textAlignment": "left",
614
- "textColor": "default",
615
- },
616
- "type": "paragraph",
617
- },
618
- {
619
- "children": [],
620
- "content": [
621
- {
622
- "styles": {},
623
- "text": "Paragraph 4",
624
- "type": "text",
625
- },
626
- ],
627
- "id": "paragraph-4",
628
- "props": {
629
- "backgroundColor": "default",
630
- "textAlignment": "left",
631
- "textColor": "default",
632
- },
633
- "type": "paragraph",
634
- },
635
- {
636
- "children": [],
637
- "content": [
638
- {
639
- "styles": {},
640
- "text": "Heading 1",
641
- "type": "text",
642
- },
643
- ],
644
- "id": "heading-0",
645
- "props": {
646
- "backgroundColor": "default",
647
- "level": 1,
648
- "textAlignment": "left",
649
- "textColor": "default",
650
- },
651
- "type": "heading",
652
- },
653
- {
654
- "children": [],
655
- "content": [
656
- {
657
- "styles": {},
658
- "text": "Paragraph 5",
659
- "type": "text",
660
- },
661
- ],
662
- "id": "paragraph-5",
663
- "props": {
664
- "backgroundColor": "default",
665
- "textAlignment": "left",
666
- "textColor": "default",
667
- },
668
- "type": "paragraph",
669
- },
670
- {
671
- "children": [],
672
- "content": undefined,
673
- "id": "image-0",
674
- "props": {
675
- "backgroundColor": "default",
676
- "caption": "",
677
- "name": "",
678
- "previewWidth": 512,
679
- "showPreview": true,
680
- "textAlignment": "left",
681
- "url": "https://via.placeholder.com/150",
682
- },
683
- "type": "image",
684
- },
685
- {
686
- "children": [],
687
- "content": [
688
- {
689
- "styles": {},
690
- "text": "Paragraph 6",
691
- "type": "text",
692
- },
693
- ],
694
- "id": "paragraph-6",
695
- "props": {
696
- "backgroundColor": "default",
697
- "textAlignment": "left",
698
- "textColor": "default",
699
- },
700
- "type": "paragraph",
701
- },
702
- {
703
- "children": [],
704
- "content": {
705
- "columnWidths": [
706
- undefined,
707
- undefined,
708
- undefined,
709
- ],
710
- "headerCols": undefined,
711
- "headerRows": undefined,
712
- "rows": [
713
- {
714
- "cells": [
715
- {
716
- "content": [
717
- {
718
- "styles": {},
719
- "text": "Cell 1",
720
- "type": "text",
721
- },
722
- ],
723
- "props": {
724
- "backgroundColor": "default",
725
- "colspan": 1,
726
- "rowspan": 1,
727
- "textAlignment": "left",
728
- "textColor": "default",
729
- },
730
- "type": "tableCell",
731
- },
732
- {
733
- "content": [
734
- {
735
- "styles": {},
736
- "text": "Cell 2",
737
- "type": "text",
738
- },
739
- ],
740
- "props": {
741
- "backgroundColor": "default",
742
- "colspan": 1,
743
- "rowspan": 1,
744
- "textAlignment": "left",
745
- "textColor": "default",
746
- },
747
- "type": "tableCell",
748
- },
749
- {
750
- "content": [
751
- {
752
- "styles": {},
753
- "text": "Cell 3",
754
- "type": "text",
755
- },
756
- ],
757
- "props": {
758
- "backgroundColor": "default",
759
- "colspan": 1,
760
- "rowspan": 1,
761
- "textAlignment": "left",
762
- "textColor": "default",
763
- },
764
- "type": "tableCell",
765
- },
766
- ],
767
- },
768
- {
769
- "cells": [
770
- {
771
- "content": [
772
- {
773
- "styles": {},
774
- "text": "Cell 4",
775
- "type": "text",
776
- },
777
- ],
778
- "props": {
779
- "backgroundColor": "default",
780
- "colspan": 1,
781
- "rowspan": 1,
782
- "textAlignment": "left",
783
- "textColor": "default",
784
- },
785
- "type": "tableCell",
786
- },
787
- {
788
- "content": [
789
- {
790
- "styles": {},
791
- "text": "Cell 5",
792
- "type": "text",
793
- },
794
- ],
795
- "props": {
796
- "backgroundColor": "default",
797
- "colspan": 1,
798
- "rowspan": 1,
799
- "textAlignment": "left",
800
- "textColor": "default",
801
- },
802
- "type": "tableCell",
803
- },
804
- {
805
- "content": [
806
- {
807
- "styles": {},
808
- "text": "Cell 6",
809
- "type": "text",
810
- },
811
- ],
812
- "props": {
813
- "backgroundColor": "default",
814
- "colspan": 1,
815
- "rowspan": 1,
816
- "textAlignment": "left",
817
- "textColor": "default",
818
- },
819
- "type": "tableCell",
820
- },
821
- ],
822
- },
823
- {
824
- "cells": [
825
- {
826
- "content": [
827
- {
828
- "styles": {},
829
- "text": "Cell 7",
830
- "type": "text",
831
- },
832
- ],
833
- "props": {
834
- "backgroundColor": "default",
835
- "colspan": 1,
836
- "rowspan": 1,
837
- "textAlignment": "left",
838
- "textColor": "default",
839
- },
840
- "type": "tableCell",
841
- },
842
- {
843
- "content": [
844
- {
845
- "styles": {},
846
- "text": "Cell 8",
847
- "type": "text",
848
- },
849
- ],
850
- "props": {
851
- "backgroundColor": "default",
852
- "colspan": 1,
853
- "rowspan": 1,
854
- "textAlignment": "left",
855
- "textColor": "default",
856
- },
857
- "type": "tableCell",
858
- },
859
- {
860
- "content": [
861
- {
862
- "styles": {},
863
- "text": "Cell 9",
864
- "type": "text",
865
- },
866
- ],
867
- "props": {
868
- "backgroundColor": "default",
869
- "colspan": 1,
870
- "rowspan": 1,
871
- "textAlignment": "left",
872
- "textColor": "default",
873
- },
874
- "type": "tableCell",
875
- },
876
- ],
877
- },
878
- ],
879
- "type": "tableContent",
880
- },
881
- "id": "table-0",
882
- "props": {
883
- "textColor": "default",
884
- },
885
- "type": "table",
886
- },
887
- {
888
- "children": [],
889
- "content": [
890
- {
891
- "styles": {},
892
- "text": "Paragraph 7",
893
- "type": "text",
894
- },
895
- ],
896
- "id": "paragraph-7",
897
- "props": {
898
- "backgroundColor": "default",
899
- "textAlignment": "left",
900
- "textColor": "default",
901
- },
902
- "type": "paragraph",
903
- },
904
- {
905
- "children": [],
906
- "content": [],
907
- "id": "empty-paragraph",
908
- "props": {
909
- "backgroundColor": "default",
910
- "textAlignment": "left",
911
- "textColor": "default",
912
- },
913
- "type": "paragraph",
914
- },
915
- {
916
- "children": [],
917
- "content": [
918
- {
919
- "styles": {},
920
- "text": "Paragraph 8",
921
- "type": "text",
922
- },
923
- ],
924
- "id": "paragraph-8",
925
- "props": {
926
- "backgroundColor": "default",
927
- "textAlignment": "left",
928
- "textColor": "default",
929
- },
930
- "type": "paragraph",
931
- },
932
- {
933
- "children": [
934
- {
935
- "children": [
936
- {
937
- "children": [],
938
- "content": [
939
- {
940
- "styles": {},
941
- "text": "Double Nested Paragraph 1",
942
- "type": "text",
943
- },
944
- ],
945
- "id": "double-nested-paragraph-1",
946
- "props": {
947
- "backgroundColor": "default",
948
- "textAlignment": "left",
949
- "textColor": "default",
950
- },
951
- "type": "paragraph",
952
- },
953
- ],
954
- "content": [
955
- {
956
- "styles": {},
957
- "text": "Nested Paragraph 1",
958
- "type": "text",
959
- },
960
- ],
961
- "id": "nested-paragraph-1",
962
- "props": {
963
- "backgroundColor": "default",
964
- "textAlignment": "left",
965
- "textColor": "default",
966
- },
967
- "type": "paragraph",
968
- },
969
- ],
970
- "content": [
971
- {
972
- "styles": {
973
- "bold": true,
974
- },
975
- "text": "Heading",
976
- "type": "text",
977
- },
978
- {
979
- "styles": {},
980
- "text": " with styled ",
981
- "type": "text",
982
- },
983
- {
984
- "styles": {
985
- "italic": true,
986
- },
987
- "text": "content",
988
- "type": "text",
989
- },
990
- ],
991
- "id": "heading-with-everything",
992
- "props": {
993
- "backgroundColor": "red",
994
- "level": 2,
995
- "textAlignment": "center",
996
- "textColor": "red",
997
- },
998
- "type": "heading",
999
- },
1000
- {
1001
- "children": [],
1002
- "content": [],
1003
- "id": "trailing-paragraph",
1004
- "props": {
1005
- "backgroundColor": "default",
1006
- "textAlignment": "left",
1007
- "textColor": "default",
1008
- },
1009
- "type": "paragraph",
1010
- },
1011
- ]
1012
- `;
1013
-
1014
- exports[`Test removeBlocks > Remove multiple non-consecutive blocks 1`] = `
1015
- [
1016
- {
1017
- "children": [],
1018
- "content": [
1019
- {
1020
- "styles": {},
1021
- "text": "Paragraph 1",
1022
- "type": "text",
1023
- },
1024
- ],
1025
- "id": "paragraph-1",
1026
- "props": {
1027
- "backgroundColor": "default",
1028
- "textAlignment": "left",
1029
- "textColor": "default",
1030
- },
1031
- "type": "paragraph",
1032
- },
1033
- {
1034
- "children": [
1035
- {
1036
- "children": [
1037
- {
1038
- "children": [],
1039
- "content": [
1040
- {
1041
- "styles": {},
1042
- "text": "Double Nested Paragraph 0",
1043
- "type": "text",
1044
- },
1045
- ],
1046
- "id": "double-nested-paragraph-0",
1047
- "props": {
1048
- "backgroundColor": "default",
1049
- "textAlignment": "left",
1050
- "textColor": "default",
1051
- },
1052
- "type": "paragraph",
1053
- },
1054
- ],
1055
- "content": [
1056
- {
1057
- "styles": {},
1058
- "text": "Nested Paragraph 0",
1059
- "type": "text",
1060
- },
1061
- ],
1062
- "id": "nested-paragraph-0",
1063
- "props": {
1064
- "backgroundColor": "default",
1065
- "textAlignment": "left",
1066
- "textColor": "default",
1067
- },
1068
- "type": "paragraph",
1069
- },
1070
- ],
1071
- "content": [
1072
- {
1073
- "styles": {},
1074
- "text": "Paragraph with children",
1075
- "type": "text",
1076
- },
1077
- ],
1078
- "id": "paragraph-with-children",
1079
- "props": {
1080
- "backgroundColor": "default",
1081
- "textAlignment": "left",
1082
- "textColor": "default",
1083
- },
1084
- "type": "paragraph",
1085
- },
1086
- {
1087
- "children": [],
1088
- "content": [
1089
- {
1090
- "styles": {},
1091
- "text": "Paragraph 2",
1092
- "type": "text",
1093
- },
1094
- ],
1095
- "id": "paragraph-2",
1096
- "props": {
1097
- "backgroundColor": "default",
1098
- "textAlignment": "left",
1099
- "textColor": "default",
1100
- },
1101
- "type": "paragraph",
1102
- },
1103
- {
1104
- "children": [],
1105
- "content": [
1106
- {
1107
- "styles": {},
1108
- "text": "Paragraph with props",
1109
- "type": "text",
1110
- },
1111
- ],
1112
- "id": "paragraph-with-props",
1113
- "props": {
1114
- "backgroundColor": "default",
1115
- "textAlignment": "center",
1116
- "textColor": "red",
1117
- },
1118
- "type": "paragraph",
1119
- },
1120
- {
1121
- "children": [],
1122
- "content": [
1123
- {
1124
- "styles": {},
1125
- "text": "Paragraph 3",
1126
- "type": "text",
1127
- },
1128
- ],
1129
- "id": "paragraph-3",
1130
- "props": {
1131
- "backgroundColor": "default",
1132
- "textAlignment": "left",
1133
- "textColor": "default",
1134
- },
1135
- "type": "paragraph",
1136
- },
1137
- {
1138
- "children": [],
1139
- "content": [
1140
- {
1141
- "styles": {
1142
- "bold": true,
1143
- },
1144
- "text": "Paragraph",
1145
- "type": "text",
1146
- },
1147
- {
1148
- "styles": {},
1149
- "text": " with styled ",
1150
- "type": "text",
1151
- },
1152
- {
1153
- "styles": {
1154
- "italic": true,
1155
- },
1156
- "text": "content",
1157
- "type": "text",
1158
- },
1159
- ],
1160
- "id": "paragraph-with-styled-content",
1161
- "props": {
1162
- "backgroundColor": "default",
1163
- "textAlignment": "left",
1164
- "textColor": "default",
1165
- },
1166
- "type": "paragraph",
1167
- },
1168
- {
1169
- "children": [],
1170
- "content": [
1171
- {
1172
- "styles": {},
1173
- "text": "Paragraph 4",
1174
- "type": "text",
1175
- },
1176
- ],
1177
- "id": "paragraph-4",
1178
- "props": {
1179
- "backgroundColor": "default",
1180
- "textAlignment": "left",
1181
- "textColor": "default",
1182
- },
1183
- "type": "paragraph",
1184
- },
1185
- {
1186
- "children": [],
1187
- "content": [
1188
- {
1189
- "styles": {},
1190
- "text": "Heading 1",
1191
- "type": "text",
1192
- },
1193
- ],
1194
- "id": "heading-0",
1195
- "props": {
1196
- "backgroundColor": "default",
1197
- "level": 1,
1198
- "textAlignment": "left",
1199
- "textColor": "default",
1200
- },
1201
- "type": "heading",
1202
- },
1203
- {
1204
- "children": [],
1205
- "content": [
1206
- {
1207
- "styles": {},
1208
- "text": "Paragraph 5",
1209
- "type": "text",
1210
- },
1211
- ],
1212
- "id": "paragraph-5",
1213
- "props": {
1214
- "backgroundColor": "default",
1215
- "textAlignment": "left",
1216
- "textColor": "default",
1217
- },
1218
- "type": "paragraph",
1219
- },
1220
- {
1221
- "children": [],
1222
- "content": undefined,
1223
- "id": "image-0",
1224
- "props": {
1225
- "backgroundColor": "default",
1226
- "caption": "",
1227
- "name": "",
1228
- "previewWidth": 512,
1229
- "showPreview": true,
1230
- "textAlignment": "left",
1231
- "url": "https://via.placeholder.com/150",
1232
- },
1233
- "type": "image",
1234
- },
1235
- {
1236
- "children": [],
1237
- "content": [
1238
- {
1239
- "styles": {},
1240
- "text": "Paragraph 6",
1241
- "type": "text",
1242
- },
1243
- ],
1244
- "id": "paragraph-6",
1245
- "props": {
1246
- "backgroundColor": "default",
1247
- "textAlignment": "left",
1248
- "textColor": "default",
1249
- },
1250
- "type": "paragraph",
1251
- },
1252
- {
1253
- "children": [],
1254
- "content": [
1255
- {
1256
- "styles": {},
1257
- "text": "Paragraph 7",
1258
- "type": "text",
1259
- },
1260
- ],
1261
- "id": "paragraph-7",
1262
- "props": {
1263
- "backgroundColor": "default",
1264
- "textAlignment": "left",
1265
- "textColor": "default",
1266
- },
1267
- "type": "paragraph",
1268
- },
1269
- {
1270
- "children": [],
1271
- "content": [],
1272
- "id": "empty-paragraph",
1273
- "props": {
1274
- "backgroundColor": "default",
1275
- "textAlignment": "left",
1276
- "textColor": "default",
1277
- },
1278
- "type": "paragraph",
1279
- },
1280
- {
1281
- "children": [],
1282
- "content": [
1283
- {
1284
- "styles": {},
1285
- "text": "Paragraph 8",
1286
- "type": "text",
1287
- },
1288
- ],
1289
- "id": "paragraph-8",
1290
- "props": {
1291
- "backgroundColor": "default",
1292
- "textAlignment": "left",
1293
- "textColor": "default",
1294
- },
1295
- "type": "paragraph",
1296
- },
1297
- {
1298
- "children": [],
1299
- "content": [],
1300
- "id": "trailing-paragraph",
1301
- "props": {
1302
- "backgroundColor": "default",
1303
- "textAlignment": "left",
1304
- "textColor": "default",
1305
- },
1306
- "type": "paragraph",
1307
- },
1308
- ]
1309
- `;
1310
-
1311
- exports[`Test removeBlocks > Remove single block 1`] = `
1312
- [
1313
- {
1314
- "children": [],
1315
- "content": [
1316
- {
1317
- "styles": {},
1318
- "text": "Paragraph 1",
1319
- "type": "text",
1320
- },
1321
- ],
1322
- "id": "paragraph-1",
1323
- "props": {
1324
- "backgroundColor": "default",
1325
- "textAlignment": "left",
1326
- "textColor": "default",
1327
- },
1328
- "type": "paragraph",
1329
- },
1330
- {
1331
- "children": [
1332
- {
1333
- "children": [
1334
- {
1335
- "children": [],
1336
- "content": [
1337
- {
1338
- "styles": {},
1339
- "text": "Double Nested Paragraph 0",
1340
- "type": "text",
1341
- },
1342
- ],
1343
- "id": "double-nested-paragraph-0",
1344
- "props": {
1345
- "backgroundColor": "default",
1346
- "textAlignment": "left",
1347
- "textColor": "default",
1348
- },
1349
- "type": "paragraph",
1350
- },
1351
- ],
1352
- "content": [
1353
- {
1354
- "styles": {},
1355
- "text": "Nested Paragraph 0",
1356
- "type": "text",
1357
- },
1358
- ],
1359
- "id": "nested-paragraph-0",
1360
- "props": {
1361
- "backgroundColor": "default",
1362
- "textAlignment": "left",
1363
- "textColor": "default",
1364
- },
1365
- "type": "paragraph",
1366
- },
1367
- ],
1368
- "content": [
1369
- {
1370
- "styles": {},
1371
- "text": "Paragraph with children",
1372
- "type": "text",
1373
- },
1374
- ],
1375
- "id": "paragraph-with-children",
1376
- "props": {
1377
- "backgroundColor": "default",
1378
- "textAlignment": "left",
1379
- "textColor": "default",
1380
- },
1381
- "type": "paragraph",
1382
- },
1383
- {
1384
- "children": [],
1385
- "content": [
1386
- {
1387
- "styles": {},
1388
- "text": "Paragraph 2",
1389
- "type": "text",
1390
- },
1391
- ],
1392
- "id": "paragraph-2",
1393
- "props": {
1394
- "backgroundColor": "default",
1395
- "textAlignment": "left",
1396
- "textColor": "default",
1397
- },
1398
- "type": "paragraph",
1399
- },
1400
- {
1401
- "children": [],
1402
- "content": [
1403
- {
1404
- "styles": {},
1405
- "text": "Paragraph with props",
1406
- "type": "text",
1407
- },
1408
- ],
1409
- "id": "paragraph-with-props",
1410
- "props": {
1411
- "backgroundColor": "default",
1412
- "textAlignment": "center",
1413
- "textColor": "red",
1414
- },
1415
- "type": "paragraph",
1416
- },
1417
- {
1418
- "children": [],
1419
- "content": [
1420
- {
1421
- "styles": {},
1422
- "text": "Paragraph 3",
1423
- "type": "text",
1424
- },
1425
- ],
1426
- "id": "paragraph-3",
1427
- "props": {
1428
- "backgroundColor": "default",
1429
- "textAlignment": "left",
1430
- "textColor": "default",
1431
- },
1432
- "type": "paragraph",
1433
- },
1434
- {
1435
- "children": [],
1436
- "content": [
1437
- {
1438
- "styles": {
1439
- "bold": true,
1440
- },
1441
- "text": "Paragraph",
1442
- "type": "text",
1443
- },
1444
- {
1445
- "styles": {},
1446
- "text": " with styled ",
1447
- "type": "text",
1448
- },
1449
- {
1450
- "styles": {
1451
- "italic": true,
1452
- },
1453
- "text": "content",
1454
- "type": "text",
1455
- },
1456
- ],
1457
- "id": "paragraph-with-styled-content",
1458
- "props": {
1459
- "backgroundColor": "default",
1460
- "textAlignment": "left",
1461
- "textColor": "default",
1462
- },
1463
- "type": "paragraph",
1464
- },
1465
- {
1466
- "children": [],
1467
- "content": [
1468
- {
1469
- "styles": {},
1470
- "text": "Paragraph 4",
1471
- "type": "text",
1472
- },
1473
- ],
1474
- "id": "paragraph-4",
1475
- "props": {
1476
- "backgroundColor": "default",
1477
- "textAlignment": "left",
1478
- "textColor": "default",
1479
- },
1480
- "type": "paragraph",
1481
- },
1482
- {
1483
- "children": [],
1484
- "content": [
1485
- {
1486
- "styles": {},
1487
- "text": "Heading 1",
1488
- "type": "text",
1489
- },
1490
- ],
1491
- "id": "heading-0",
1492
- "props": {
1493
- "backgroundColor": "default",
1494
- "level": 1,
1495
- "textAlignment": "left",
1496
- "textColor": "default",
1497
- },
1498
- "type": "heading",
1499
- },
1500
- {
1501
- "children": [],
1502
- "content": [
1503
- {
1504
- "styles": {},
1505
- "text": "Paragraph 5",
1506
- "type": "text",
1507
- },
1508
- ],
1509
- "id": "paragraph-5",
1510
- "props": {
1511
- "backgroundColor": "default",
1512
- "textAlignment": "left",
1513
- "textColor": "default",
1514
- },
1515
- "type": "paragraph",
1516
- },
1517
- {
1518
- "children": [],
1519
- "content": undefined,
1520
- "id": "image-0",
1521
- "props": {
1522
- "backgroundColor": "default",
1523
- "caption": "",
1524
- "name": "",
1525
- "previewWidth": 512,
1526
- "showPreview": true,
1527
- "textAlignment": "left",
1528
- "url": "https://via.placeholder.com/150",
1529
- },
1530
- "type": "image",
1531
- },
1532
- {
1533
- "children": [],
1534
- "content": [
1535
- {
1536
- "styles": {},
1537
- "text": "Paragraph 6",
1538
- "type": "text",
1539
- },
1540
- ],
1541
- "id": "paragraph-6",
1542
- "props": {
1543
- "backgroundColor": "default",
1544
- "textAlignment": "left",
1545
- "textColor": "default",
1546
- },
1547
- "type": "paragraph",
1548
- },
1549
- {
1550
- "children": [],
1551
- "content": {
1552
- "columnWidths": [
1553
- undefined,
1554
- undefined,
1555
- undefined,
1556
- ],
1557
- "headerCols": undefined,
1558
- "headerRows": undefined,
1559
- "rows": [
1560
- {
1561
- "cells": [
1562
- {
1563
- "content": [
1564
- {
1565
- "styles": {},
1566
- "text": "Cell 1",
1567
- "type": "text",
1568
- },
1569
- ],
1570
- "props": {
1571
- "backgroundColor": "default",
1572
- "colspan": 1,
1573
- "rowspan": 1,
1574
- "textAlignment": "left",
1575
- "textColor": "default",
1576
- },
1577
- "type": "tableCell",
1578
- },
1579
- {
1580
- "content": [
1581
- {
1582
- "styles": {},
1583
- "text": "Cell 2",
1584
- "type": "text",
1585
- },
1586
- ],
1587
- "props": {
1588
- "backgroundColor": "default",
1589
- "colspan": 1,
1590
- "rowspan": 1,
1591
- "textAlignment": "left",
1592
- "textColor": "default",
1593
- },
1594
- "type": "tableCell",
1595
- },
1596
- {
1597
- "content": [
1598
- {
1599
- "styles": {},
1600
- "text": "Cell 3",
1601
- "type": "text",
1602
- },
1603
- ],
1604
- "props": {
1605
- "backgroundColor": "default",
1606
- "colspan": 1,
1607
- "rowspan": 1,
1608
- "textAlignment": "left",
1609
- "textColor": "default",
1610
- },
1611
- "type": "tableCell",
1612
- },
1613
- ],
1614
- },
1615
- {
1616
- "cells": [
1617
- {
1618
- "content": [
1619
- {
1620
- "styles": {},
1621
- "text": "Cell 4",
1622
- "type": "text",
1623
- },
1624
- ],
1625
- "props": {
1626
- "backgroundColor": "default",
1627
- "colspan": 1,
1628
- "rowspan": 1,
1629
- "textAlignment": "left",
1630
- "textColor": "default",
1631
- },
1632
- "type": "tableCell",
1633
- },
1634
- {
1635
- "content": [
1636
- {
1637
- "styles": {},
1638
- "text": "Cell 5",
1639
- "type": "text",
1640
- },
1641
- ],
1642
- "props": {
1643
- "backgroundColor": "default",
1644
- "colspan": 1,
1645
- "rowspan": 1,
1646
- "textAlignment": "left",
1647
- "textColor": "default",
1648
- },
1649
- "type": "tableCell",
1650
- },
1651
- {
1652
- "content": [
1653
- {
1654
- "styles": {},
1655
- "text": "Cell 6",
1656
- "type": "text",
1657
- },
1658
- ],
1659
- "props": {
1660
- "backgroundColor": "default",
1661
- "colspan": 1,
1662
- "rowspan": 1,
1663
- "textAlignment": "left",
1664
- "textColor": "default",
1665
- },
1666
- "type": "tableCell",
1667
- },
1668
- ],
1669
- },
1670
- {
1671
- "cells": [
1672
- {
1673
- "content": [
1674
- {
1675
- "styles": {},
1676
- "text": "Cell 7",
1677
- "type": "text",
1678
- },
1679
- ],
1680
- "props": {
1681
- "backgroundColor": "default",
1682
- "colspan": 1,
1683
- "rowspan": 1,
1684
- "textAlignment": "left",
1685
- "textColor": "default",
1686
- },
1687
- "type": "tableCell",
1688
- },
1689
- {
1690
- "content": [
1691
- {
1692
- "styles": {},
1693
- "text": "Cell 8",
1694
- "type": "text",
1695
- },
1696
- ],
1697
- "props": {
1698
- "backgroundColor": "default",
1699
- "colspan": 1,
1700
- "rowspan": 1,
1701
- "textAlignment": "left",
1702
- "textColor": "default",
1703
- },
1704
- "type": "tableCell",
1705
- },
1706
- {
1707
- "content": [
1708
- {
1709
- "styles": {},
1710
- "text": "Cell 9",
1711
- "type": "text",
1712
- },
1713
- ],
1714
- "props": {
1715
- "backgroundColor": "default",
1716
- "colspan": 1,
1717
- "rowspan": 1,
1718
- "textAlignment": "left",
1719
- "textColor": "default",
1720
- },
1721
- "type": "tableCell",
1722
- },
1723
- ],
1724
- },
1725
- ],
1726
- "type": "tableContent",
1727
- },
1728
- "id": "table-0",
1729
- "props": {
1730
- "textColor": "default",
1731
- },
1732
- "type": "table",
1733
- },
1734
- {
1735
- "children": [],
1736
- "content": [
1737
- {
1738
- "styles": {},
1739
- "text": "Paragraph 7",
1740
- "type": "text",
1741
- },
1742
- ],
1743
- "id": "paragraph-7",
1744
- "props": {
1745
- "backgroundColor": "default",
1746
- "textAlignment": "left",
1747
- "textColor": "default",
1748
- },
1749
- "type": "paragraph",
1750
- },
1751
- {
1752
- "children": [],
1753
- "content": [],
1754
- "id": "empty-paragraph",
1755
- "props": {
1756
- "backgroundColor": "default",
1757
- "textAlignment": "left",
1758
- "textColor": "default",
1759
- },
1760
- "type": "paragraph",
1761
- },
1762
- {
1763
- "children": [],
1764
- "content": [
1765
- {
1766
- "styles": {},
1767
- "text": "Paragraph 8",
1768
- "type": "text",
1769
- },
1770
- ],
1771
- "id": "paragraph-8",
1772
- "props": {
1773
- "backgroundColor": "default",
1774
- "textAlignment": "left",
1775
- "textColor": "default",
1776
- },
1777
- "type": "paragraph",
1778
- },
1779
- {
1780
- "children": [
1781
- {
1782
- "children": [
1783
- {
1784
- "children": [],
1785
- "content": [
1786
- {
1787
- "styles": {},
1788
- "text": "Double Nested Paragraph 1",
1789
- "type": "text",
1790
- },
1791
- ],
1792
- "id": "double-nested-paragraph-1",
1793
- "props": {
1794
- "backgroundColor": "default",
1795
- "textAlignment": "left",
1796
- "textColor": "default",
1797
- },
1798
- "type": "paragraph",
1799
- },
1800
- ],
1801
- "content": [
1802
- {
1803
- "styles": {},
1804
- "text": "Nested Paragraph 1",
1805
- "type": "text",
1806
- },
1807
- ],
1808
- "id": "nested-paragraph-1",
1809
- "props": {
1810
- "backgroundColor": "default",
1811
- "textAlignment": "left",
1812
- "textColor": "default",
1813
- },
1814
- "type": "paragraph",
1815
- },
1816
- ],
1817
- "content": [
1818
- {
1819
- "styles": {
1820
- "bold": true,
1821
- },
1822
- "text": "Heading",
1823
- "type": "text",
1824
- },
1825
- {
1826
- "styles": {},
1827
- "text": " with styled ",
1828
- "type": "text",
1829
- },
1830
- {
1831
- "styles": {
1832
- "italic": true,
1833
- },
1834
- "text": "content",
1835
- "type": "text",
1836
- },
1837
- ],
1838
- "id": "heading-with-everything",
1839
- "props": {
1840
- "backgroundColor": "red",
1841
- "level": 2,
1842
- "textAlignment": "center",
1843
- "textColor": "red",
1844
- },
1845
- "type": "heading",
1846
- },
1847
- {
1848
- "children": [],
1849
- "content": [],
1850
- "id": "trailing-paragraph",
1851
- "props": {
1852
- "backgroundColor": "default",
1853
- "textAlignment": "left",
1854
- "textColor": "default",
1855
- },
1856
- "type": "paragraph",
1857
- },
1858
- ]
1859
- `;