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