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