@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,4570 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`Test insertBlocks > Insert multiple blocks after 1`] = `
4
- [
5
- {
6
- "children": [],
7
- "content": [
8
- {
9
- "styles": {},
10
- "text": "Inserted paragraph 1",
11
- "type": "text",
12
- },
13
- ],
14
- "id": "0",
15
- "props": {
16
- "backgroundColor": "default",
17
- "textAlignment": "left",
18
- "textColor": "default",
19
- },
20
- "type": "paragraph",
21
- },
22
- {
23
- "children": [],
24
- "content": [
25
- {
26
- "styles": {},
27
- "text": "Inserted paragraph 2",
28
- "type": "text",
29
- },
30
- ],
31
- "id": "1",
32
- "props": {
33
- "backgroundColor": "default",
34
- "textAlignment": "left",
35
- "textColor": "default",
36
- },
37
- "type": "paragraph",
38
- },
39
- {
40
- "children": [],
41
- "content": [
42
- {
43
- "styles": {},
44
- "text": "Inserted paragraph 3",
45
- "type": "text",
46
- },
47
- ],
48
- "id": "2",
49
- "props": {
50
- "backgroundColor": "default",
51
- "textAlignment": "left",
52
- "textColor": "default",
53
- },
54
- "type": "paragraph",
55
- },
56
- ]
57
- `;
58
-
59
- exports[`Test insertBlocks > Insert multiple blocks after 2`] = `
60
- [
61
- {
62
- "children": [],
63
- "content": [
64
- {
65
- "styles": {},
66
- "text": "Paragraph 0",
67
- "type": "text",
68
- },
69
- ],
70
- "id": "paragraph-0",
71
- "props": {
72
- "backgroundColor": "default",
73
- "textAlignment": "left",
74
- "textColor": "default",
75
- },
76
- "type": "paragraph",
77
- },
78
- {
79
- "children": [],
80
- "content": [
81
- {
82
- "styles": {},
83
- "text": "Inserted paragraph 1",
84
- "type": "text",
85
- },
86
- ],
87
- "id": "0",
88
- "props": {
89
- "backgroundColor": "default",
90
- "textAlignment": "left",
91
- "textColor": "default",
92
- },
93
- "type": "paragraph",
94
- },
95
- {
96
- "children": [],
97
- "content": [
98
- {
99
- "styles": {},
100
- "text": "Inserted paragraph 2",
101
- "type": "text",
102
- },
103
- ],
104
- "id": "1",
105
- "props": {
106
- "backgroundColor": "default",
107
- "textAlignment": "left",
108
- "textColor": "default",
109
- },
110
- "type": "paragraph",
111
- },
112
- {
113
- "children": [],
114
- "content": [
115
- {
116
- "styles": {},
117
- "text": "Inserted paragraph 3",
118
- "type": "text",
119
- },
120
- ],
121
- "id": "2",
122
- "props": {
123
- "backgroundColor": "default",
124
- "textAlignment": "left",
125
- "textColor": "default",
126
- },
127
- "type": "paragraph",
128
- },
129
- {
130
- "children": [],
131
- "content": [
132
- {
133
- "styles": {},
134
- "text": "Paragraph 1",
135
- "type": "text",
136
- },
137
- ],
138
- "id": "paragraph-1",
139
- "props": {
140
- "backgroundColor": "default",
141
- "textAlignment": "left",
142
- "textColor": "default",
143
- },
144
- "type": "paragraph",
145
- },
146
- {
147
- "children": [
148
- {
149
- "children": [
150
- {
151
- "children": [],
152
- "content": [
153
- {
154
- "styles": {},
155
- "text": "Double Nested Paragraph 0",
156
- "type": "text",
157
- },
158
- ],
159
- "id": "double-nested-paragraph-0",
160
- "props": {
161
- "backgroundColor": "default",
162
- "textAlignment": "left",
163
- "textColor": "default",
164
- },
165
- "type": "paragraph",
166
- },
167
- ],
168
- "content": [
169
- {
170
- "styles": {},
171
- "text": "Nested Paragraph 0",
172
- "type": "text",
173
- },
174
- ],
175
- "id": "nested-paragraph-0",
176
- "props": {
177
- "backgroundColor": "default",
178
- "textAlignment": "left",
179
- "textColor": "default",
180
- },
181
- "type": "paragraph",
182
- },
183
- ],
184
- "content": [
185
- {
186
- "styles": {},
187
- "text": "Paragraph with children",
188
- "type": "text",
189
- },
190
- ],
191
- "id": "paragraph-with-children",
192
- "props": {
193
- "backgroundColor": "default",
194
- "textAlignment": "left",
195
- "textColor": "default",
196
- },
197
- "type": "paragraph",
198
- },
199
- {
200
- "children": [],
201
- "content": [
202
- {
203
- "styles": {},
204
- "text": "Paragraph 2",
205
- "type": "text",
206
- },
207
- ],
208
- "id": "paragraph-2",
209
- "props": {
210
- "backgroundColor": "default",
211
- "textAlignment": "left",
212
- "textColor": "default",
213
- },
214
- "type": "paragraph",
215
- },
216
- {
217
- "children": [],
218
- "content": [
219
- {
220
- "styles": {},
221
- "text": "Paragraph with props",
222
- "type": "text",
223
- },
224
- ],
225
- "id": "paragraph-with-props",
226
- "props": {
227
- "backgroundColor": "default",
228
- "textAlignment": "center",
229
- "textColor": "red",
230
- },
231
- "type": "paragraph",
232
- },
233
- {
234
- "children": [],
235
- "content": [
236
- {
237
- "styles": {},
238
- "text": "Paragraph 3",
239
- "type": "text",
240
- },
241
- ],
242
- "id": "paragraph-3",
243
- "props": {
244
- "backgroundColor": "default",
245
- "textAlignment": "left",
246
- "textColor": "default",
247
- },
248
- "type": "paragraph",
249
- },
250
- {
251
- "children": [],
252
- "content": [
253
- {
254
- "styles": {
255
- "bold": true,
256
- },
257
- "text": "Paragraph",
258
- "type": "text",
259
- },
260
- {
261
- "styles": {},
262
- "text": " with styled ",
263
- "type": "text",
264
- },
265
- {
266
- "styles": {
267
- "italic": true,
268
- },
269
- "text": "content",
270
- "type": "text",
271
- },
272
- ],
273
- "id": "paragraph-with-styled-content",
274
- "props": {
275
- "backgroundColor": "default",
276
- "textAlignment": "left",
277
- "textColor": "default",
278
- },
279
- "type": "paragraph",
280
- },
281
- {
282
- "children": [],
283
- "content": [
284
- {
285
- "styles": {},
286
- "text": "Paragraph 4",
287
- "type": "text",
288
- },
289
- ],
290
- "id": "paragraph-4",
291
- "props": {
292
- "backgroundColor": "default",
293
- "textAlignment": "left",
294
- "textColor": "default",
295
- },
296
- "type": "paragraph",
297
- },
298
- {
299
- "children": [],
300
- "content": [
301
- {
302
- "styles": {},
303
- "text": "Heading 1",
304
- "type": "text",
305
- },
306
- ],
307
- "id": "heading-0",
308
- "props": {
309
- "backgroundColor": "default",
310
- "isToggleable": false,
311
- "level": 1,
312
- "textAlignment": "left",
313
- "textColor": "default",
314
- },
315
- "type": "heading",
316
- },
317
- {
318
- "children": [],
319
- "content": [
320
- {
321
- "styles": {},
322
- "text": "Paragraph 5",
323
- "type": "text",
324
- },
325
- ],
326
- "id": "paragraph-5",
327
- "props": {
328
- "backgroundColor": "default",
329
- "textAlignment": "left",
330
- "textColor": "default",
331
- },
332
- "type": "paragraph",
333
- },
334
- {
335
- "children": [],
336
- "content": undefined,
337
- "id": "image-0",
338
- "props": {
339
- "backgroundColor": "default",
340
- "caption": "",
341
- "name": "",
342
- "showPreview": true,
343
- "textAlignment": "left",
344
- "url": "https://via.placeholder.com/150",
345
- },
346
- "type": "image",
347
- },
348
- {
349
- "children": [],
350
- "content": [
351
- {
352
- "styles": {},
353
- "text": "Paragraph 6",
354
- "type": "text",
355
- },
356
- ],
357
- "id": "paragraph-6",
358
- "props": {
359
- "backgroundColor": "default",
360
- "textAlignment": "left",
361
- "textColor": "default",
362
- },
363
- "type": "paragraph",
364
- },
365
- {
366
- "children": [],
367
- "content": {
368
- "columnWidths": [
369
- undefined,
370
- undefined,
371
- undefined,
372
- ],
373
- "headerCols": undefined,
374
- "headerRows": undefined,
375
- "rows": [
376
- {
377
- "cells": [
378
- {
379
- "content": [
380
- {
381
- "styles": {},
382
- "text": "Cell 1",
383
- "type": "text",
384
- },
385
- ],
386
- "props": {
387
- "backgroundColor": "default",
388
- "colspan": 1,
389
- "rowspan": 1,
390
- "textAlignment": "left",
391
- "textColor": "default",
392
- },
393
- "type": "tableCell",
394
- },
395
- {
396
- "content": [
397
- {
398
- "styles": {},
399
- "text": "Cell 2",
400
- "type": "text",
401
- },
402
- ],
403
- "props": {
404
- "backgroundColor": "default",
405
- "colspan": 1,
406
- "rowspan": 1,
407
- "textAlignment": "left",
408
- "textColor": "default",
409
- },
410
- "type": "tableCell",
411
- },
412
- {
413
- "content": [
414
- {
415
- "styles": {},
416
- "text": "Cell 3",
417
- "type": "text",
418
- },
419
- ],
420
- "props": {
421
- "backgroundColor": "default",
422
- "colspan": 1,
423
- "rowspan": 1,
424
- "textAlignment": "left",
425
- "textColor": "default",
426
- },
427
- "type": "tableCell",
428
- },
429
- ],
430
- },
431
- {
432
- "cells": [
433
- {
434
- "content": [
435
- {
436
- "styles": {},
437
- "text": "Cell 4",
438
- "type": "text",
439
- },
440
- ],
441
- "props": {
442
- "backgroundColor": "default",
443
- "colspan": 1,
444
- "rowspan": 1,
445
- "textAlignment": "left",
446
- "textColor": "default",
447
- },
448
- "type": "tableCell",
449
- },
450
- {
451
- "content": [
452
- {
453
- "styles": {},
454
- "text": "Cell 5",
455
- "type": "text",
456
- },
457
- ],
458
- "props": {
459
- "backgroundColor": "default",
460
- "colspan": 1,
461
- "rowspan": 1,
462
- "textAlignment": "left",
463
- "textColor": "default",
464
- },
465
- "type": "tableCell",
466
- },
467
- {
468
- "content": [
469
- {
470
- "styles": {},
471
- "text": "Cell 6",
472
- "type": "text",
473
- },
474
- ],
475
- "props": {
476
- "backgroundColor": "default",
477
- "colspan": 1,
478
- "rowspan": 1,
479
- "textAlignment": "left",
480
- "textColor": "default",
481
- },
482
- "type": "tableCell",
483
- },
484
- ],
485
- },
486
- {
487
- "cells": [
488
- {
489
- "content": [
490
- {
491
- "styles": {},
492
- "text": "Cell 7",
493
- "type": "text",
494
- },
495
- ],
496
- "props": {
497
- "backgroundColor": "default",
498
- "colspan": 1,
499
- "rowspan": 1,
500
- "textAlignment": "left",
501
- "textColor": "default",
502
- },
503
- "type": "tableCell",
504
- },
505
- {
506
- "content": [
507
- {
508
- "styles": {},
509
- "text": "Cell 8",
510
- "type": "text",
511
- },
512
- ],
513
- "props": {
514
- "backgroundColor": "default",
515
- "colspan": 1,
516
- "rowspan": 1,
517
- "textAlignment": "left",
518
- "textColor": "default",
519
- },
520
- "type": "tableCell",
521
- },
522
- {
523
- "content": [
524
- {
525
- "styles": {},
526
- "text": "Cell 9",
527
- "type": "text",
528
- },
529
- ],
530
- "props": {
531
- "backgroundColor": "default",
532
- "colspan": 1,
533
- "rowspan": 1,
534
- "textAlignment": "left",
535
- "textColor": "default",
536
- },
537
- "type": "tableCell",
538
- },
539
- ],
540
- },
541
- ],
542
- "type": "tableContent",
543
- },
544
- "id": "table-0",
545
- "props": {
546
- "textColor": "default",
547
- },
548
- "type": "table",
549
- },
550
- {
551
- "children": [],
552
- "content": [
553
- {
554
- "styles": {},
555
- "text": "Paragraph 7",
556
- "type": "text",
557
- },
558
- ],
559
- "id": "paragraph-7",
560
- "props": {
561
- "backgroundColor": "default",
562
- "textAlignment": "left",
563
- "textColor": "default",
564
- },
565
- "type": "paragraph",
566
- },
567
- {
568
- "children": [],
569
- "content": [],
570
- "id": "empty-paragraph",
571
- "props": {
572
- "backgroundColor": "default",
573
- "textAlignment": "left",
574
- "textColor": "default",
575
- },
576
- "type": "paragraph",
577
- },
578
- {
579
- "children": [],
580
- "content": [
581
- {
582
- "styles": {},
583
- "text": "Paragraph 8",
584
- "type": "text",
585
- },
586
- ],
587
- "id": "paragraph-8",
588
- "props": {
589
- "backgroundColor": "default",
590
- "textAlignment": "left",
591
- "textColor": "default",
592
- },
593
- "type": "paragraph",
594
- },
595
- {
596
- "children": [
597
- {
598
- "children": [
599
- {
600
- "children": [],
601
- "content": [
602
- {
603
- "styles": {},
604
- "text": "Double Nested Paragraph 1",
605
- "type": "text",
606
- },
607
- ],
608
- "id": "double-nested-paragraph-1",
609
- "props": {
610
- "backgroundColor": "default",
611
- "textAlignment": "left",
612
- "textColor": "default",
613
- },
614
- "type": "paragraph",
615
- },
616
- ],
617
- "content": [
618
- {
619
- "styles": {},
620
- "text": "Nested Paragraph 1",
621
- "type": "text",
622
- },
623
- ],
624
- "id": "nested-paragraph-1",
625
- "props": {
626
- "backgroundColor": "default",
627
- "textAlignment": "left",
628
- "textColor": "default",
629
- },
630
- "type": "paragraph",
631
- },
632
- ],
633
- "content": [
634
- {
635
- "styles": {
636
- "bold": true,
637
- },
638
- "text": "Heading",
639
- "type": "text",
640
- },
641
- {
642
- "styles": {},
643
- "text": " with styled ",
644
- "type": "text",
645
- },
646
- {
647
- "styles": {
648
- "italic": true,
649
- },
650
- "text": "content",
651
- "type": "text",
652
- },
653
- ],
654
- "id": "heading-with-everything",
655
- "props": {
656
- "backgroundColor": "red",
657
- "isToggleable": false,
658
- "level": 2,
659
- "textAlignment": "center",
660
- "textColor": "red",
661
- },
662
- "type": "heading",
663
- },
664
- {
665
- "children": [],
666
- "content": [],
667
- "id": "paragraph-9",
668
- "props": {
669
- "backgroundColor": "default",
670
- "textAlignment": "left",
671
- "textColor": "default",
672
- },
673
- "type": "paragraph",
674
- },
675
- ]
676
- `;
677
-
678
- exports[`Test insertBlocks > Insert multiple blocks before 1`] = `
679
- [
680
- {
681
- "children": [],
682
- "content": [
683
- {
684
- "styles": {},
685
- "text": "Inserted paragraph 1",
686
- "type": "text",
687
- },
688
- ],
689
- "id": "0",
690
- "props": {
691
- "backgroundColor": "default",
692
- "textAlignment": "left",
693
- "textColor": "default",
694
- },
695
- "type": "paragraph",
696
- },
697
- {
698
- "children": [],
699
- "content": [
700
- {
701
- "styles": {},
702
- "text": "Inserted paragraph 2",
703
- "type": "text",
704
- },
705
- ],
706
- "id": "1",
707
- "props": {
708
- "backgroundColor": "default",
709
- "textAlignment": "left",
710
- "textColor": "default",
711
- },
712
- "type": "paragraph",
713
- },
714
- {
715
- "children": [],
716
- "content": [
717
- {
718
- "styles": {},
719
- "text": "Inserted paragraph 3",
720
- "type": "text",
721
- },
722
- ],
723
- "id": "2",
724
- "props": {
725
- "backgroundColor": "default",
726
- "textAlignment": "left",
727
- "textColor": "default",
728
- },
729
- "type": "paragraph",
730
- },
731
- ]
732
- `;
733
-
734
- exports[`Test insertBlocks > Insert multiple blocks before 2`] = `
735
- [
736
- {
737
- "children": [],
738
- "content": [
739
- {
740
- "styles": {},
741
- "text": "Inserted paragraph 1",
742
- "type": "text",
743
- },
744
- ],
745
- "id": "0",
746
- "props": {
747
- "backgroundColor": "default",
748
- "textAlignment": "left",
749
- "textColor": "default",
750
- },
751
- "type": "paragraph",
752
- },
753
- {
754
- "children": [],
755
- "content": [
756
- {
757
- "styles": {},
758
- "text": "Inserted paragraph 2",
759
- "type": "text",
760
- },
761
- ],
762
- "id": "1",
763
- "props": {
764
- "backgroundColor": "default",
765
- "textAlignment": "left",
766
- "textColor": "default",
767
- },
768
- "type": "paragraph",
769
- },
770
- {
771
- "children": [],
772
- "content": [
773
- {
774
- "styles": {},
775
- "text": "Inserted paragraph 3",
776
- "type": "text",
777
- },
778
- ],
779
- "id": "2",
780
- "props": {
781
- "backgroundColor": "default",
782
- "textAlignment": "left",
783
- "textColor": "default",
784
- },
785
- "type": "paragraph",
786
- },
787
- {
788
- "children": [],
789
- "content": [
790
- {
791
- "styles": {},
792
- "text": "Paragraph 0",
793
- "type": "text",
794
- },
795
- ],
796
- "id": "paragraph-0",
797
- "props": {
798
- "backgroundColor": "default",
799
- "textAlignment": "left",
800
- "textColor": "default",
801
- },
802
- "type": "paragraph",
803
- },
804
- {
805
- "children": [],
806
- "content": [
807
- {
808
- "styles": {},
809
- "text": "Paragraph 1",
810
- "type": "text",
811
- },
812
- ],
813
- "id": "paragraph-1",
814
- "props": {
815
- "backgroundColor": "default",
816
- "textAlignment": "left",
817
- "textColor": "default",
818
- },
819
- "type": "paragraph",
820
- },
821
- {
822
- "children": [
823
- {
824
- "children": [
825
- {
826
- "children": [],
827
- "content": [
828
- {
829
- "styles": {},
830
- "text": "Double Nested Paragraph 0",
831
- "type": "text",
832
- },
833
- ],
834
- "id": "double-nested-paragraph-0",
835
- "props": {
836
- "backgroundColor": "default",
837
- "textAlignment": "left",
838
- "textColor": "default",
839
- },
840
- "type": "paragraph",
841
- },
842
- ],
843
- "content": [
844
- {
845
- "styles": {},
846
- "text": "Nested Paragraph 0",
847
- "type": "text",
848
- },
849
- ],
850
- "id": "nested-paragraph-0",
851
- "props": {
852
- "backgroundColor": "default",
853
- "textAlignment": "left",
854
- "textColor": "default",
855
- },
856
- "type": "paragraph",
857
- },
858
- ],
859
- "content": [
860
- {
861
- "styles": {},
862
- "text": "Paragraph with children",
863
- "type": "text",
864
- },
865
- ],
866
- "id": "paragraph-with-children",
867
- "props": {
868
- "backgroundColor": "default",
869
- "textAlignment": "left",
870
- "textColor": "default",
871
- },
872
- "type": "paragraph",
873
- },
874
- {
875
- "children": [],
876
- "content": [
877
- {
878
- "styles": {},
879
- "text": "Paragraph 2",
880
- "type": "text",
881
- },
882
- ],
883
- "id": "paragraph-2",
884
- "props": {
885
- "backgroundColor": "default",
886
- "textAlignment": "left",
887
- "textColor": "default",
888
- },
889
- "type": "paragraph",
890
- },
891
- {
892
- "children": [],
893
- "content": [
894
- {
895
- "styles": {},
896
- "text": "Paragraph with props",
897
- "type": "text",
898
- },
899
- ],
900
- "id": "paragraph-with-props",
901
- "props": {
902
- "backgroundColor": "default",
903
- "textAlignment": "center",
904
- "textColor": "red",
905
- },
906
- "type": "paragraph",
907
- },
908
- {
909
- "children": [],
910
- "content": [
911
- {
912
- "styles": {},
913
- "text": "Paragraph 3",
914
- "type": "text",
915
- },
916
- ],
917
- "id": "paragraph-3",
918
- "props": {
919
- "backgroundColor": "default",
920
- "textAlignment": "left",
921
- "textColor": "default",
922
- },
923
- "type": "paragraph",
924
- },
925
- {
926
- "children": [],
927
- "content": [
928
- {
929
- "styles": {
930
- "bold": true,
931
- },
932
- "text": "Paragraph",
933
- "type": "text",
934
- },
935
- {
936
- "styles": {},
937
- "text": " with styled ",
938
- "type": "text",
939
- },
940
- {
941
- "styles": {
942
- "italic": true,
943
- },
944
- "text": "content",
945
- "type": "text",
946
- },
947
- ],
948
- "id": "paragraph-with-styled-content",
949
- "props": {
950
- "backgroundColor": "default",
951
- "textAlignment": "left",
952
- "textColor": "default",
953
- },
954
- "type": "paragraph",
955
- },
956
- {
957
- "children": [],
958
- "content": [
959
- {
960
- "styles": {},
961
- "text": "Paragraph 4",
962
- "type": "text",
963
- },
964
- ],
965
- "id": "paragraph-4",
966
- "props": {
967
- "backgroundColor": "default",
968
- "textAlignment": "left",
969
- "textColor": "default",
970
- },
971
- "type": "paragraph",
972
- },
973
- {
974
- "children": [],
975
- "content": [
976
- {
977
- "styles": {},
978
- "text": "Heading 1",
979
- "type": "text",
980
- },
981
- ],
982
- "id": "heading-0",
983
- "props": {
984
- "backgroundColor": "default",
985
- "isToggleable": false,
986
- "level": 1,
987
- "textAlignment": "left",
988
- "textColor": "default",
989
- },
990
- "type": "heading",
991
- },
992
- {
993
- "children": [],
994
- "content": [
995
- {
996
- "styles": {},
997
- "text": "Paragraph 5",
998
- "type": "text",
999
- },
1000
- ],
1001
- "id": "paragraph-5",
1002
- "props": {
1003
- "backgroundColor": "default",
1004
- "textAlignment": "left",
1005
- "textColor": "default",
1006
- },
1007
- "type": "paragraph",
1008
- },
1009
- {
1010
- "children": [],
1011
- "content": undefined,
1012
- "id": "image-0",
1013
- "props": {
1014
- "backgroundColor": "default",
1015
- "caption": "",
1016
- "name": "",
1017
- "showPreview": true,
1018
- "textAlignment": "left",
1019
- "url": "https://via.placeholder.com/150",
1020
- },
1021
- "type": "image",
1022
- },
1023
- {
1024
- "children": [],
1025
- "content": [
1026
- {
1027
- "styles": {},
1028
- "text": "Paragraph 6",
1029
- "type": "text",
1030
- },
1031
- ],
1032
- "id": "paragraph-6",
1033
- "props": {
1034
- "backgroundColor": "default",
1035
- "textAlignment": "left",
1036
- "textColor": "default",
1037
- },
1038
- "type": "paragraph",
1039
- },
1040
- {
1041
- "children": [],
1042
- "content": {
1043
- "columnWidths": [
1044
- undefined,
1045
- undefined,
1046
- undefined,
1047
- ],
1048
- "headerCols": undefined,
1049
- "headerRows": undefined,
1050
- "rows": [
1051
- {
1052
- "cells": [
1053
- {
1054
- "content": [
1055
- {
1056
- "styles": {},
1057
- "text": "Cell 1",
1058
- "type": "text",
1059
- },
1060
- ],
1061
- "props": {
1062
- "backgroundColor": "default",
1063
- "colspan": 1,
1064
- "rowspan": 1,
1065
- "textAlignment": "left",
1066
- "textColor": "default",
1067
- },
1068
- "type": "tableCell",
1069
- },
1070
- {
1071
- "content": [
1072
- {
1073
- "styles": {},
1074
- "text": "Cell 2",
1075
- "type": "text",
1076
- },
1077
- ],
1078
- "props": {
1079
- "backgroundColor": "default",
1080
- "colspan": 1,
1081
- "rowspan": 1,
1082
- "textAlignment": "left",
1083
- "textColor": "default",
1084
- },
1085
- "type": "tableCell",
1086
- },
1087
- {
1088
- "content": [
1089
- {
1090
- "styles": {},
1091
- "text": "Cell 3",
1092
- "type": "text",
1093
- },
1094
- ],
1095
- "props": {
1096
- "backgroundColor": "default",
1097
- "colspan": 1,
1098
- "rowspan": 1,
1099
- "textAlignment": "left",
1100
- "textColor": "default",
1101
- },
1102
- "type": "tableCell",
1103
- },
1104
- ],
1105
- },
1106
- {
1107
- "cells": [
1108
- {
1109
- "content": [
1110
- {
1111
- "styles": {},
1112
- "text": "Cell 4",
1113
- "type": "text",
1114
- },
1115
- ],
1116
- "props": {
1117
- "backgroundColor": "default",
1118
- "colspan": 1,
1119
- "rowspan": 1,
1120
- "textAlignment": "left",
1121
- "textColor": "default",
1122
- },
1123
- "type": "tableCell",
1124
- },
1125
- {
1126
- "content": [
1127
- {
1128
- "styles": {},
1129
- "text": "Cell 5",
1130
- "type": "text",
1131
- },
1132
- ],
1133
- "props": {
1134
- "backgroundColor": "default",
1135
- "colspan": 1,
1136
- "rowspan": 1,
1137
- "textAlignment": "left",
1138
- "textColor": "default",
1139
- },
1140
- "type": "tableCell",
1141
- },
1142
- {
1143
- "content": [
1144
- {
1145
- "styles": {},
1146
- "text": "Cell 6",
1147
- "type": "text",
1148
- },
1149
- ],
1150
- "props": {
1151
- "backgroundColor": "default",
1152
- "colspan": 1,
1153
- "rowspan": 1,
1154
- "textAlignment": "left",
1155
- "textColor": "default",
1156
- },
1157
- "type": "tableCell",
1158
- },
1159
- ],
1160
- },
1161
- {
1162
- "cells": [
1163
- {
1164
- "content": [
1165
- {
1166
- "styles": {},
1167
- "text": "Cell 7",
1168
- "type": "text",
1169
- },
1170
- ],
1171
- "props": {
1172
- "backgroundColor": "default",
1173
- "colspan": 1,
1174
- "rowspan": 1,
1175
- "textAlignment": "left",
1176
- "textColor": "default",
1177
- },
1178
- "type": "tableCell",
1179
- },
1180
- {
1181
- "content": [
1182
- {
1183
- "styles": {},
1184
- "text": "Cell 8",
1185
- "type": "text",
1186
- },
1187
- ],
1188
- "props": {
1189
- "backgroundColor": "default",
1190
- "colspan": 1,
1191
- "rowspan": 1,
1192
- "textAlignment": "left",
1193
- "textColor": "default",
1194
- },
1195
- "type": "tableCell",
1196
- },
1197
- {
1198
- "content": [
1199
- {
1200
- "styles": {},
1201
- "text": "Cell 9",
1202
- "type": "text",
1203
- },
1204
- ],
1205
- "props": {
1206
- "backgroundColor": "default",
1207
- "colspan": 1,
1208
- "rowspan": 1,
1209
- "textAlignment": "left",
1210
- "textColor": "default",
1211
- },
1212
- "type": "tableCell",
1213
- },
1214
- ],
1215
- },
1216
- ],
1217
- "type": "tableContent",
1218
- },
1219
- "id": "table-0",
1220
- "props": {
1221
- "textColor": "default",
1222
- },
1223
- "type": "table",
1224
- },
1225
- {
1226
- "children": [],
1227
- "content": [
1228
- {
1229
- "styles": {},
1230
- "text": "Paragraph 7",
1231
- "type": "text",
1232
- },
1233
- ],
1234
- "id": "paragraph-7",
1235
- "props": {
1236
- "backgroundColor": "default",
1237
- "textAlignment": "left",
1238
- "textColor": "default",
1239
- },
1240
- "type": "paragraph",
1241
- },
1242
- {
1243
- "children": [],
1244
- "content": [],
1245
- "id": "empty-paragraph",
1246
- "props": {
1247
- "backgroundColor": "default",
1248
- "textAlignment": "left",
1249
- "textColor": "default",
1250
- },
1251
- "type": "paragraph",
1252
- },
1253
- {
1254
- "children": [],
1255
- "content": [
1256
- {
1257
- "styles": {},
1258
- "text": "Paragraph 8",
1259
- "type": "text",
1260
- },
1261
- ],
1262
- "id": "paragraph-8",
1263
- "props": {
1264
- "backgroundColor": "default",
1265
- "textAlignment": "left",
1266
- "textColor": "default",
1267
- },
1268
- "type": "paragraph",
1269
- },
1270
- {
1271
- "children": [
1272
- {
1273
- "children": [
1274
- {
1275
- "children": [],
1276
- "content": [
1277
- {
1278
- "styles": {},
1279
- "text": "Double Nested Paragraph 1",
1280
- "type": "text",
1281
- },
1282
- ],
1283
- "id": "double-nested-paragraph-1",
1284
- "props": {
1285
- "backgroundColor": "default",
1286
- "textAlignment": "left",
1287
- "textColor": "default",
1288
- },
1289
- "type": "paragraph",
1290
- },
1291
- ],
1292
- "content": [
1293
- {
1294
- "styles": {},
1295
- "text": "Nested Paragraph 1",
1296
- "type": "text",
1297
- },
1298
- ],
1299
- "id": "nested-paragraph-1",
1300
- "props": {
1301
- "backgroundColor": "default",
1302
- "textAlignment": "left",
1303
- "textColor": "default",
1304
- },
1305
- "type": "paragraph",
1306
- },
1307
- ],
1308
- "content": [
1309
- {
1310
- "styles": {
1311
- "bold": true,
1312
- },
1313
- "text": "Heading",
1314
- "type": "text",
1315
- },
1316
- {
1317
- "styles": {},
1318
- "text": " with styled ",
1319
- "type": "text",
1320
- },
1321
- {
1322
- "styles": {
1323
- "italic": true,
1324
- },
1325
- "text": "content",
1326
- "type": "text",
1327
- },
1328
- ],
1329
- "id": "heading-with-everything",
1330
- "props": {
1331
- "backgroundColor": "red",
1332
- "isToggleable": false,
1333
- "level": 2,
1334
- "textAlignment": "center",
1335
- "textColor": "red",
1336
- },
1337
- "type": "heading",
1338
- },
1339
- {
1340
- "children": [],
1341
- "content": [],
1342
- "id": "paragraph-9",
1343
- "props": {
1344
- "backgroundColor": "default",
1345
- "textAlignment": "left",
1346
- "textColor": "default",
1347
- },
1348
- "type": "paragraph",
1349
- },
1350
- ]
1351
- `;
1352
-
1353
- exports[`Test insertBlocks > Insert single basic block after 1`] = `
1354
- [
1355
- {
1356
- "children": [],
1357
- "content": [],
1358
- "id": "0",
1359
- "props": {
1360
- "backgroundColor": "default",
1361
- "textAlignment": "left",
1362
- "textColor": "default",
1363
- },
1364
- "type": "paragraph",
1365
- },
1366
- ]
1367
- `;
1368
-
1369
- exports[`Test insertBlocks > Insert single basic block after 2`] = `
1370
- [
1371
- {
1372
- "children": [],
1373
- "content": [
1374
- {
1375
- "styles": {},
1376
- "text": "Paragraph 0",
1377
- "type": "text",
1378
- },
1379
- ],
1380
- "id": "paragraph-0",
1381
- "props": {
1382
- "backgroundColor": "default",
1383
- "textAlignment": "left",
1384
- "textColor": "default",
1385
- },
1386
- "type": "paragraph",
1387
- },
1388
- {
1389
- "children": [],
1390
- "content": [],
1391
- "id": "0",
1392
- "props": {
1393
- "backgroundColor": "default",
1394
- "textAlignment": "left",
1395
- "textColor": "default",
1396
- },
1397
- "type": "paragraph",
1398
- },
1399
- {
1400
- "children": [],
1401
- "content": [
1402
- {
1403
- "styles": {},
1404
- "text": "Paragraph 1",
1405
- "type": "text",
1406
- },
1407
- ],
1408
- "id": "paragraph-1",
1409
- "props": {
1410
- "backgroundColor": "default",
1411
- "textAlignment": "left",
1412
- "textColor": "default",
1413
- },
1414
- "type": "paragraph",
1415
- },
1416
- {
1417
- "children": [
1418
- {
1419
- "children": [
1420
- {
1421
- "children": [],
1422
- "content": [
1423
- {
1424
- "styles": {},
1425
- "text": "Double Nested Paragraph 0",
1426
- "type": "text",
1427
- },
1428
- ],
1429
- "id": "double-nested-paragraph-0",
1430
- "props": {
1431
- "backgroundColor": "default",
1432
- "textAlignment": "left",
1433
- "textColor": "default",
1434
- },
1435
- "type": "paragraph",
1436
- },
1437
- ],
1438
- "content": [
1439
- {
1440
- "styles": {},
1441
- "text": "Nested Paragraph 0",
1442
- "type": "text",
1443
- },
1444
- ],
1445
- "id": "nested-paragraph-0",
1446
- "props": {
1447
- "backgroundColor": "default",
1448
- "textAlignment": "left",
1449
- "textColor": "default",
1450
- },
1451
- "type": "paragraph",
1452
- },
1453
- ],
1454
- "content": [
1455
- {
1456
- "styles": {},
1457
- "text": "Paragraph with children",
1458
- "type": "text",
1459
- },
1460
- ],
1461
- "id": "paragraph-with-children",
1462
- "props": {
1463
- "backgroundColor": "default",
1464
- "textAlignment": "left",
1465
- "textColor": "default",
1466
- },
1467
- "type": "paragraph",
1468
- },
1469
- {
1470
- "children": [],
1471
- "content": [
1472
- {
1473
- "styles": {},
1474
- "text": "Paragraph 2",
1475
- "type": "text",
1476
- },
1477
- ],
1478
- "id": "paragraph-2",
1479
- "props": {
1480
- "backgroundColor": "default",
1481
- "textAlignment": "left",
1482
- "textColor": "default",
1483
- },
1484
- "type": "paragraph",
1485
- },
1486
- {
1487
- "children": [],
1488
- "content": [
1489
- {
1490
- "styles": {},
1491
- "text": "Paragraph with props",
1492
- "type": "text",
1493
- },
1494
- ],
1495
- "id": "paragraph-with-props",
1496
- "props": {
1497
- "backgroundColor": "default",
1498
- "textAlignment": "center",
1499
- "textColor": "red",
1500
- },
1501
- "type": "paragraph",
1502
- },
1503
- {
1504
- "children": [],
1505
- "content": [
1506
- {
1507
- "styles": {},
1508
- "text": "Paragraph 3",
1509
- "type": "text",
1510
- },
1511
- ],
1512
- "id": "paragraph-3",
1513
- "props": {
1514
- "backgroundColor": "default",
1515
- "textAlignment": "left",
1516
- "textColor": "default",
1517
- },
1518
- "type": "paragraph",
1519
- },
1520
- {
1521
- "children": [],
1522
- "content": [
1523
- {
1524
- "styles": {
1525
- "bold": true,
1526
- },
1527
- "text": "Paragraph",
1528
- "type": "text",
1529
- },
1530
- {
1531
- "styles": {},
1532
- "text": " with styled ",
1533
- "type": "text",
1534
- },
1535
- {
1536
- "styles": {
1537
- "italic": true,
1538
- },
1539
- "text": "content",
1540
- "type": "text",
1541
- },
1542
- ],
1543
- "id": "paragraph-with-styled-content",
1544
- "props": {
1545
- "backgroundColor": "default",
1546
- "textAlignment": "left",
1547
- "textColor": "default",
1548
- },
1549
- "type": "paragraph",
1550
- },
1551
- {
1552
- "children": [],
1553
- "content": [
1554
- {
1555
- "styles": {},
1556
- "text": "Paragraph 4",
1557
- "type": "text",
1558
- },
1559
- ],
1560
- "id": "paragraph-4",
1561
- "props": {
1562
- "backgroundColor": "default",
1563
- "textAlignment": "left",
1564
- "textColor": "default",
1565
- },
1566
- "type": "paragraph",
1567
- },
1568
- {
1569
- "children": [],
1570
- "content": [
1571
- {
1572
- "styles": {},
1573
- "text": "Heading 1",
1574
- "type": "text",
1575
- },
1576
- ],
1577
- "id": "heading-0",
1578
- "props": {
1579
- "backgroundColor": "default",
1580
- "isToggleable": false,
1581
- "level": 1,
1582
- "textAlignment": "left",
1583
- "textColor": "default",
1584
- },
1585
- "type": "heading",
1586
- },
1587
- {
1588
- "children": [],
1589
- "content": [
1590
- {
1591
- "styles": {},
1592
- "text": "Paragraph 5",
1593
- "type": "text",
1594
- },
1595
- ],
1596
- "id": "paragraph-5",
1597
- "props": {
1598
- "backgroundColor": "default",
1599
- "textAlignment": "left",
1600
- "textColor": "default",
1601
- },
1602
- "type": "paragraph",
1603
- },
1604
- {
1605
- "children": [],
1606
- "content": undefined,
1607
- "id": "image-0",
1608
- "props": {
1609
- "backgroundColor": "default",
1610
- "caption": "",
1611
- "name": "",
1612
- "showPreview": true,
1613
- "textAlignment": "left",
1614
- "url": "https://via.placeholder.com/150",
1615
- },
1616
- "type": "image",
1617
- },
1618
- {
1619
- "children": [],
1620
- "content": [
1621
- {
1622
- "styles": {},
1623
- "text": "Paragraph 6",
1624
- "type": "text",
1625
- },
1626
- ],
1627
- "id": "paragraph-6",
1628
- "props": {
1629
- "backgroundColor": "default",
1630
- "textAlignment": "left",
1631
- "textColor": "default",
1632
- },
1633
- "type": "paragraph",
1634
- },
1635
- {
1636
- "children": [],
1637
- "content": {
1638
- "columnWidths": [
1639
- undefined,
1640
- undefined,
1641
- undefined,
1642
- ],
1643
- "headerCols": undefined,
1644
- "headerRows": undefined,
1645
- "rows": [
1646
- {
1647
- "cells": [
1648
- {
1649
- "content": [
1650
- {
1651
- "styles": {},
1652
- "text": "Cell 1",
1653
- "type": "text",
1654
- },
1655
- ],
1656
- "props": {
1657
- "backgroundColor": "default",
1658
- "colspan": 1,
1659
- "rowspan": 1,
1660
- "textAlignment": "left",
1661
- "textColor": "default",
1662
- },
1663
- "type": "tableCell",
1664
- },
1665
- {
1666
- "content": [
1667
- {
1668
- "styles": {},
1669
- "text": "Cell 2",
1670
- "type": "text",
1671
- },
1672
- ],
1673
- "props": {
1674
- "backgroundColor": "default",
1675
- "colspan": 1,
1676
- "rowspan": 1,
1677
- "textAlignment": "left",
1678
- "textColor": "default",
1679
- },
1680
- "type": "tableCell",
1681
- },
1682
- {
1683
- "content": [
1684
- {
1685
- "styles": {},
1686
- "text": "Cell 3",
1687
- "type": "text",
1688
- },
1689
- ],
1690
- "props": {
1691
- "backgroundColor": "default",
1692
- "colspan": 1,
1693
- "rowspan": 1,
1694
- "textAlignment": "left",
1695
- "textColor": "default",
1696
- },
1697
- "type": "tableCell",
1698
- },
1699
- ],
1700
- },
1701
- {
1702
- "cells": [
1703
- {
1704
- "content": [
1705
- {
1706
- "styles": {},
1707
- "text": "Cell 4",
1708
- "type": "text",
1709
- },
1710
- ],
1711
- "props": {
1712
- "backgroundColor": "default",
1713
- "colspan": 1,
1714
- "rowspan": 1,
1715
- "textAlignment": "left",
1716
- "textColor": "default",
1717
- },
1718
- "type": "tableCell",
1719
- },
1720
- {
1721
- "content": [
1722
- {
1723
- "styles": {},
1724
- "text": "Cell 5",
1725
- "type": "text",
1726
- },
1727
- ],
1728
- "props": {
1729
- "backgroundColor": "default",
1730
- "colspan": 1,
1731
- "rowspan": 1,
1732
- "textAlignment": "left",
1733
- "textColor": "default",
1734
- },
1735
- "type": "tableCell",
1736
- },
1737
- {
1738
- "content": [
1739
- {
1740
- "styles": {},
1741
- "text": "Cell 6",
1742
- "type": "text",
1743
- },
1744
- ],
1745
- "props": {
1746
- "backgroundColor": "default",
1747
- "colspan": 1,
1748
- "rowspan": 1,
1749
- "textAlignment": "left",
1750
- "textColor": "default",
1751
- },
1752
- "type": "tableCell",
1753
- },
1754
- ],
1755
- },
1756
- {
1757
- "cells": [
1758
- {
1759
- "content": [
1760
- {
1761
- "styles": {},
1762
- "text": "Cell 7",
1763
- "type": "text",
1764
- },
1765
- ],
1766
- "props": {
1767
- "backgroundColor": "default",
1768
- "colspan": 1,
1769
- "rowspan": 1,
1770
- "textAlignment": "left",
1771
- "textColor": "default",
1772
- },
1773
- "type": "tableCell",
1774
- },
1775
- {
1776
- "content": [
1777
- {
1778
- "styles": {},
1779
- "text": "Cell 8",
1780
- "type": "text",
1781
- },
1782
- ],
1783
- "props": {
1784
- "backgroundColor": "default",
1785
- "colspan": 1,
1786
- "rowspan": 1,
1787
- "textAlignment": "left",
1788
- "textColor": "default",
1789
- },
1790
- "type": "tableCell",
1791
- },
1792
- {
1793
- "content": [
1794
- {
1795
- "styles": {},
1796
- "text": "Cell 9",
1797
- "type": "text",
1798
- },
1799
- ],
1800
- "props": {
1801
- "backgroundColor": "default",
1802
- "colspan": 1,
1803
- "rowspan": 1,
1804
- "textAlignment": "left",
1805
- "textColor": "default",
1806
- },
1807
- "type": "tableCell",
1808
- },
1809
- ],
1810
- },
1811
- ],
1812
- "type": "tableContent",
1813
- },
1814
- "id": "table-0",
1815
- "props": {
1816
- "textColor": "default",
1817
- },
1818
- "type": "table",
1819
- },
1820
- {
1821
- "children": [],
1822
- "content": [
1823
- {
1824
- "styles": {},
1825
- "text": "Paragraph 7",
1826
- "type": "text",
1827
- },
1828
- ],
1829
- "id": "paragraph-7",
1830
- "props": {
1831
- "backgroundColor": "default",
1832
- "textAlignment": "left",
1833
- "textColor": "default",
1834
- },
1835
- "type": "paragraph",
1836
- },
1837
- {
1838
- "children": [],
1839
- "content": [],
1840
- "id": "empty-paragraph",
1841
- "props": {
1842
- "backgroundColor": "default",
1843
- "textAlignment": "left",
1844
- "textColor": "default",
1845
- },
1846
- "type": "paragraph",
1847
- },
1848
- {
1849
- "children": [],
1850
- "content": [
1851
- {
1852
- "styles": {},
1853
- "text": "Paragraph 8",
1854
- "type": "text",
1855
- },
1856
- ],
1857
- "id": "paragraph-8",
1858
- "props": {
1859
- "backgroundColor": "default",
1860
- "textAlignment": "left",
1861
- "textColor": "default",
1862
- },
1863
- "type": "paragraph",
1864
- },
1865
- {
1866
- "children": [
1867
- {
1868
- "children": [
1869
- {
1870
- "children": [],
1871
- "content": [
1872
- {
1873
- "styles": {},
1874
- "text": "Double Nested Paragraph 1",
1875
- "type": "text",
1876
- },
1877
- ],
1878
- "id": "double-nested-paragraph-1",
1879
- "props": {
1880
- "backgroundColor": "default",
1881
- "textAlignment": "left",
1882
- "textColor": "default",
1883
- },
1884
- "type": "paragraph",
1885
- },
1886
- ],
1887
- "content": [
1888
- {
1889
- "styles": {},
1890
- "text": "Nested Paragraph 1",
1891
- "type": "text",
1892
- },
1893
- ],
1894
- "id": "nested-paragraph-1",
1895
- "props": {
1896
- "backgroundColor": "default",
1897
- "textAlignment": "left",
1898
- "textColor": "default",
1899
- },
1900
- "type": "paragraph",
1901
- },
1902
- ],
1903
- "content": [
1904
- {
1905
- "styles": {
1906
- "bold": true,
1907
- },
1908
- "text": "Heading",
1909
- "type": "text",
1910
- },
1911
- {
1912
- "styles": {},
1913
- "text": " with styled ",
1914
- "type": "text",
1915
- },
1916
- {
1917
- "styles": {
1918
- "italic": true,
1919
- },
1920
- "text": "content",
1921
- "type": "text",
1922
- },
1923
- ],
1924
- "id": "heading-with-everything",
1925
- "props": {
1926
- "backgroundColor": "red",
1927
- "isToggleable": false,
1928
- "level": 2,
1929
- "textAlignment": "center",
1930
- "textColor": "red",
1931
- },
1932
- "type": "heading",
1933
- },
1934
- {
1935
- "children": [],
1936
- "content": [],
1937
- "id": "paragraph-9",
1938
- "props": {
1939
- "backgroundColor": "default",
1940
- "textAlignment": "left",
1941
- "textColor": "default",
1942
- },
1943
- "type": "paragraph",
1944
- },
1945
- ]
1946
- `;
1947
-
1948
- exports[`Test insertBlocks > Insert single basic block before (without type) 1`] = `
1949
- [
1950
- {
1951
- "children": [],
1952
- "content": [
1953
- {
1954
- "styles": {},
1955
- "text": "test",
1956
- "type": "text",
1957
- },
1958
- ],
1959
- "id": "0",
1960
- "props": {
1961
- "backgroundColor": "default",
1962
- "textAlignment": "left",
1963
- "textColor": "default",
1964
- },
1965
- "type": "paragraph",
1966
- },
1967
- ]
1968
- `;
1969
-
1970
- exports[`Test insertBlocks > Insert single basic block before (without type) 2`] = `
1971
- [
1972
- {
1973
- "children": [],
1974
- "content": [
1975
- {
1976
- "styles": {},
1977
- "text": "test",
1978
- "type": "text",
1979
- },
1980
- ],
1981
- "id": "0",
1982
- "props": {
1983
- "backgroundColor": "default",
1984
- "textAlignment": "left",
1985
- "textColor": "default",
1986
- },
1987
- "type": "paragraph",
1988
- },
1989
- {
1990
- "children": [],
1991
- "content": [
1992
- {
1993
- "styles": {},
1994
- "text": "Paragraph 0",
1995
- "type": "text",
1996
- },
1997
- ],
1998
- "id": "paragraph-0",
1999
- "props": {
2000
- "backgroundColor": "default",
2001
- "textAlignment": "left",
2002
- "textColor": "default",
2003
- },
2004
- "type": "paragraph",
2005
- },
2006
- {
2007
- "children": [],
2008
- "content": [
2009
- {
2010
- "styles": {},
2011
- "text": "Paragraph 1",
2012
- "type": "text",
2013
- },
2014
- ],
2015
- "id": "paragraph-1",
2016
- "props": {
2017
- "backgroundColor": "default",
2018
- "textAlignment": "left",
2019
- "textColor": "default",
2020
- },
2021
- "type": "paragraph",
2022
- },
2023
- {
2024
- "children": [
2025
- {
2026
- "children": [
2027
- {
2028
- "children": [],
2029
- "content": [
2030
- {
2031
- "styles": {},
2032
- "text": "Double Nested Paragraph 0",
2033
- "type": "text",
2034
- },
2035
- ],
2036
- "id": "double-nested-paragraph-0",
2037
- "props": {
2038
- "backgroundColor": "default",
2039
- "textAlignment": "left",
2040
- "textColor": "default",
2041
- },
2042
- "type": "paragraph",
2043
- },
2044
- ],
2045
- "content": [
2046
- {
2047
- "styles": {},
2048
- "text": "Nested Paragraph 0",
2049
- "type": "text",
2050
- },
2051
- ],
2052
- "id": "nested-paragraph-0",
2053
- "props": {
2054
- "backgroundColor": "default",
2055
- "textAlignment": "left",
2056
- "textColor": "default",
2057
- },
2058
- "type": "paragraph",
2059
- },
2060
- ],
2061
- "content": [
2062
- {
2063
- "styles": {},
2064
- "text": "Paragraph with children",
2065
- "type": "text",
2066
- },
2067
- ],
2068
- "id": "paragraph-with-children",
2069
- "props": {
2070
- "backgroundColor": "default",
2071
- "textAlignment": "left",
2072
- "textColor": "default",
2073
- },
2074
- "type": "paragraph",
2075
- },
2076
- {
2077
- "children": [],
2078
- "content": [
2079
- {
2080
- "styles": {},
2081
- "text": "Paragraph 2",
2082
- "type": "text",
2083
- },
2084
- ],
2085
- "id": "paragraph-2",
2086
- "props": {
2087
- "backgroundColor": "default",
2088
- "textAlignment": "left",
2089
- "textColor": "default",
2090
- },
2091
- "type": "paragraph",
2092
- },
2093
- {
2094
- "children": [],
2095
- "content": [
2096
- {
2097
- "styles": {},
2098
- "text": "Paragraph with props",
2099
- "type": "text",
2100
- },
2101
- ],
2102
- "id": "paragraph-with-props",
2103
- "props": {
2104
- "backgroundColor": "default",
2105
- "textAlignment": "center",
2106
- "textColor": "red",
2107
- },
2108
- "type": "paragraph",
2109
- },
2110
- {
2111
- "children": [],
2112
- "content": [
2113
- {
2114
- "styles": {},
2115
- "text": "Paragraph 3",
2116
- "type": "text",
2117
- },
2118
- ],
2119
- "id": "paragraph-3",
2120
- "props": {
2121
- "backgroundColor": "default",
2122
- "textAlignment": "left",
2123
- "textColor": "default",
2124
- },
2125
- "type": "paragraph",
2126
- },
2127
- {
2128
- "children": [],
2129
- "content": [
2130
- {
2131
- "styles": {
2132
- "bold": true,
2133
- },
2134
- "text": "Paragraph",
2135
- "type": "text",
2136
- },
2137
- {
2138
- "styles": {},
2139
- "text": " with styled ",
2140
- "type": "text",
2141
- },
2142
- {
2143
- "styles": {
2144
- "italic": true,
2145
- },
2146
- "text": "content",
2147
- "type": "text",
2148
- },
2149
- ],
2150
- "id": "paragraph-with-styled-content",
2151
- "props": {
2152
- "backgroundColor": "default",
2153
- "textAlignment": "left",
2154
- "textColor": "default",
2155
- },
2156
- "type": "paragraph",
2157
- },
2158
- {
2159
- "children": [],
2160
- "content": [
2161
- {
2162
- "styles": {},
2163
- "text": "Paragraph 4",
2164
- "type": "text",
2165
- },
2166
- ],
2167
- "id": "paragraph-4",
2168
- "props": {
2169
- "backgroundColor": "default",
2170
- "textAlignment": "left",
2171
- "textColor": "default",
2172
- },
2173
- "type": "paragraph",
2174
- },
2175
- {
2176
- "children": [],
2177
- "content": [
2178
- {
2179
- "styles": {},
2180
- "text": "Heading 1",
2181
- "type": "text",
2182
- },
2183
- ],
2184
- "id": "heading-0",
2185
- "props": {
2186
- "backgroundColor": "default",
2187
- "isToggleable": false,
2188
- "level": 1,
2189
- "textAlignment": "left",
2190
- "textColor": "default",
2191
- },
2192
- "type": "heading",
2193
- },
2194
- {
2195
- "children": [],
2196
- "content": [
2197
- {
2198
- "styles": {},
2199
- "text": "Paragraph 5",
2200
- "type": "text",
2201
- },
2202
- ],
2203
- "id": "paragraph-5",
2204
- "props": {
2205
- "backgroundColor": "default",
2206
- "textAlignment": "left",
2207
- "textColor": "default",
2208
- },
2209
- "type": "paragraph",
2210
- },
2211
- {
2212
- "children": [],
2213
- "content": undefined,
2214
- "id": "image-0",
2215
- "props": {
2216
- "backgroundColor": "default",
2217
- "caption": "",
2218
- "name": "",
2219
- "showPreview": true,
2220
- "textAlignment": "left",
2221
- "url": "https://via.placeholder.com/150",
2222
- },
2223
- "type": "image",
2224
- },
2225
- {
2226
- "children": [],
2227
- "content": [
2228
- {
2229
- "styles": {},
2230
- "text": "Paragraph 6",
2231
- "type": "text",
2232
- },
2233
- ],
2234
- "id": "paragraph-6",
2235
- "props": {
2236
- "backgroundColor": "default",
2237
- "textAlignment": "left",
2238
- "textColor": "default",
2239
- },
2240
- "type": "paragraph",
2241
- },
2242
- {
2243
- "children": [],
2244
- "content": {
2245
- "columnWidths": [
2246
- undefined,
2247
- undefined,
2248
- undefined,
2249
- ],
2250
- "headerCols": undefined,
2251
- "headerRows": undefined,
2252
- "rows": [
2253
- {
2254
- "cells": [
2255
- {
2256
- "content": [
2257
- {
2258
- "styles": {},
2259
- "text": "Cell 1",
2260
- "type": "text",
2261
- },
2262
- ],
2263
- "props": {
2264
- "backgroundColor": "default",
2265
- "colspan": 1,
2266
- "rowspan": 1,
2267
- "textAlignment": "left",
2268
- "textColor": "default",
2269
- },
2270
- "type": "tableCell",
2271
- },
2272
- {
2273
- "content": [
2274
- {
2275
- "styles": {},
2276
- "text": "Cell 2",
2277
- "type": "text",
2278
- },
2279
- ],
2280
- "props": {
2281
- "backgroundColor": "default",
2282
- "colspan": 1,
2283
- "rowspan": 1,
2284
- "textAlignment": "left",
2285
- "textColor": "default",
2286
- },
2287
- "type": "tableCell",
2288
- },
2289
- {
2290
- "content": [
2291
- {
2292
- "styles": {},
2293
- "text": "Cell 3",
2294
- "type": "text",
2295
- },
2296
- ],
2297
- "props": {
2298
- "backgroundColor": "default",
2299
- "colspan": 1,
2300
- "rowspan": 1,
2301
- "textAlignment": "left",
2302
- "textColor": "default",
2303
- },
2304
- "type": "tableCell",
2305
- },
2306
- ],
2307
- },
2308
- {
2309
- "cells": [
2310
- {
2311
- "content": [
2312
- {
2313
- "styles": {},
2314
- "text": "Cell 4",
2315
- "type": "text",
2316
- },
2317
- ],
2318
- "props": {
2319
- "backgroundColor": "default",
2320
- "colspan": 1,
2321
- "rowspan": 1,
2322
- "textAlignment": "left",
2323
- "textColor": "default",
2324
- },
2325
- "type": "tableCell",
2326
- },
2327
- {
2328
- "content": [
2329
- {
2330
- "styles": {},
2331
- "text": "Cell 5",
2332
- "type": "text",
2333
- },
2334
- ],
2335
- "props": {
2336
- "backgroundColor": "default",
2337
- "colspan": 1,
2338
- "rowspan": 1,
2339
- "textAlignment": "left",
2340
- "textColor": "default",
2341
- },
2342
- "type": "tableCell",
2343
- },
2344
- {
2345
- "content": [
2346
- {
2347
- "styles": {},
2348
- "text": "Cell 6",
2349
- "type": "text",
2350
- },
2351
- ],
2352
- "props": {
2353
- "backgroundColor": "default",
2354
- "colspan": 1,
2355
- "rowspan": 1,
2356
- "textAlignment": "left",
2357
- "textColor": "default",
2358
- },
2359
- "type": "tableCell",
2360
- },
2361
- ],
2362
- },
2363
- {
2364
- "cells": [
2365
- {
2366
- "content": [
2367
- {
2368
- "styles": {},
2369
- "text": "Cell 7",
2370
- "type": "text",
2371
- },
2372
- ],
2373
- "props": {
2374
- "backgroundColor": "default",
2375
- "colspan": 1,
2376
- "rowspan": 1,
2377
- "textAlignment": "left",
2378
- "textColor": "default",
2379
- },
2380
- "type": "tableCell",
2381
- },
2382
- {
2383
- "content": [
2384
- {
2385
- "styles": {},
2386
- "text": "Cell 8",
2387
- "type": "text",
2388
- },
2389
- ],
2390
- "props": {
2391
- "backgroundColor": "default",
2392
- "colspan": 1,
2393
- "rowspan": 1,
2394
- "textAlignment": "left",
2395
- "textColor": "default",
2396
- },
2397
- "type": "tableCell",
2398
- },
2399
- {
2400
- "content": [
2401
- {
2402
- "styles": {},
2403
- "text": "Cell 9",
2404
- "type": "text",
2405
- },
2406
- ],
2407
- "props": {
2408
- "backgroundColor": "default",
2409
- "colspan": 1,
2410
- "rowspan": 1,
2411
- "textAlignment": "left",
2412
- "textColor": "default",
2413
- },
2414
- "type": "tableCell",
2415
- },
2416
- ],
2417
- },
2418
- ],
2419
- "type": "tableContent",
2420
- },
2421
- "id": "table-0",
2422
- "props": {
2423
- "textColor": "default",
2424
- },
2425
- "type": "table",
2426
- },
2427
- {
2428
- "children": [],
2429
- "content": [
2430
- {
2431
- "styles": {},
2432
- "text": "Paragraph 7",
2433
- "type": "text",
2434
- },
2435
- ],
2436
- "id": "paragraph-7",
2437
- "props": {
2438
- "backgroundColor": "default",
2439
- "textAlignment": "left",
2440
- "textColor": "default",
2441
- },
2442
- "type": "paragraph",
2443
- },
2444
- {
2445
- "children": [],
2446
- "content": [],
2447
- "id": "empty-paragraph",
2448
- "props": {
2449
- "backgroundColor": "default",
2450
- "textAlignment": "left",
2451
- "textColor": "default",
2452
- },
2453
- "type": "paragraph",
2454
- },
2455
- {
2456
- "children": [],
2457
- "content": [
2458
- {
2459
- "styles": {},
2460
- "text": "Paragraph 8",
2461
- "type": "text",
2462
- },
2463
- ],
2464
- "id": "paragraph-8",
2465
- "props": {
2466
- "backgroundColor": "default",
2467
- "textAlignment": "left",
2468
- "textColor": "default",
2469
- },
2470
- "type": "paragraph",
2471
- },
2472
- {
2473
- "children": [
2474
- {
2475
- "children": [
2476
- {
2477
- "children": [],
2478
- "content": [
2479
- {
2480
- "styles": {},
2481
- "text": "Double Nested Paragraph 1",
2482
- "type": "text",
2483
- },
2484
- ],
2485
- "id": "double-nested-paragraph-1",
2486
- "props": {
2487
- "backgroundColor": "default",
2488
- "textAlignment": "left",
2489
- "textColor": "default",
2490
- },
2491
- "type": "paragraph",
2492
- },
2493
- ],
2494
- "content": [
2495
- {
2496
- "styles": {},
2497
- "text": "Nested Paragraph 1",
2498
- "type": "text",
2499
- },
2500
- ],
2501
- "id": "nested-paragraph-1",
2502
- "props": {
2503
- "backgroundColor": "default",
2504
- "textAlignment": "left",
2505
- "textColor": "default",
2506
- },
2507
- "type": "paragraph",
2508
- },
2509
- ],
2510
- "content": [
2511
- {
2512
- "styles": {
2513
- "bold": true,
2514
- },
2515
- "text": "Heading",
2516
- "type": "text",
2517
- },
2518
- {
2519
- "styles": {},
2520
- "text": " with styled ",
2521
- "type": "text",
2522
- },
2523
- {
2524
- "styles": {
2525
- "italic": true,
2526
- },
2527
- "text": "content",
2528
- "type": "text",
2529
- },
2530
- ],
2531
- "id": "heading-with-everything",
2532
- "props": {
2533
- "backgroundColor": "red",
2534
- "isToggleable": false,
2535
- "level": 2,
2536
- "textAlignment": "center",
2537
- "textColor": "red",
2538
- },
2539
- "type": "heading",
2540
- },
2541
- {
2542
- "children": [],
2543
- "content": [],
2544
- "id": "paragraph-9",
2545
- "props": {
2546
- "backgroundColor": "default",
2547
- "textAlignment": "left",
2548
- "textColor": "default",
2549
- },
2550
- "type": "paragraph",
2551
- },
2552
- ]
2553
- `;
2554
-
2555
- exports[`Test insertBlocks > Insert single basic block before 1`] = `
2556
- [
2557
- {
2558
- "children": [],
2559
- "content": [],
2560
- "id": "0",
2561
- "props": {
2562
- "backgroundColor": "default",
2563
- "textAlignment": "left",
2564
- "textColor": "default",
2565
- },
2566
- "type": "paragraph",
2567
- },
2568
- ]
2569
- `;
2570
-
2571
- exports[`Test insertBlocks > Insert single basic block before 2`] = `
2572
- [
2573
- {
2574
- "children": [],
2575
- "content": [],
2576
- "id": "0",
2577
- "props": {
2578
- "backgroundColor": "default",
2579
- "textAlignment": "left",
2580
- "textColor": "default",
2581
- },
2582
- "type": "paragraph",
2583
- },
2584
- {
2585
- "children": [],
2586
- "content": [
2587
- {
2588
- "styles": {},
2589
- "text": "Paragraph 0",
2590
- "type": "text",
2591
- },
2592
- ],
2593
- "id": "paragraph-0",
2594
- "props": {
2595
- "backgroundColor": "default",
2596
- "textAlignment": "left",
2597
- "textColor": "default",
2598
- },
2599
- "type": "paragraph",
2600
- },
2601
- {
2602
- "children": [],
2603
- "content": [
2604
- {
2605
- "styles": {},
2606
- "text": "Paragraph 1",
2607
- "type": "text",
2608
- },
2609
- ],
2610
- "id": "paragraph-1",
2611
- "props": {
2612
- "backgroundColor": "default",
2613
- "textAlignment": "left",
2614
- "textColor": "default",
2615
- },
2616
- "type": "paragraph",
2617
- },
2618
- {
2619
- "children": [
2620
- {
2621
- "children": [
2622
- {
2623
- "children": [],
2624
- "content": [
2625
- {
2626
- "styles": {},
2627
- "text": "Double Nested Paragraph 0",
2628
- "type": "text",
2629
- },
2630
- ],
2631
- "id": "double-nested-paragraph-0",
2632
- "props": {
2633
- "backgroundColor": "default",
2634
- "textAlignment": "left",
2635
- "textColor": "default",
2636
- },
2637
- "type": "paragraph",
2638
- },
2639
- ],
2640
- "content": [
2641
- {
2642
- "styles": {},
2643
- "text": "Nested Paragraph 0",
2644
- "type": "text",
2645
- },
2646
- ],
2647
- "id": "nested-paragraph-0",
2648
- "props": {
2649
- "backgroundColor": "default",
2650
- "textAlignment": "left",
2651
- "textColor": "default",
2652
- },
2653
- "type": "paragraph",
2654
- },
2655
- ],
2656
- "content": [
2657
- {
2658
- "styles": {},
2659
- "text": "Paragraph with children",
2660
- "type": "text",
2661
- },
2662
- ],
2663
- "id": "paragraph-with-children",
2664
- "props": {
2665
- "backgroundColor": "default",
2666
- "textAlignment": "left",
2667
- "textColor": "default",
2668
- },
2669
- "type": "paragraph",
2670
- },
2671
- {
2672
- "children": [],
2673
- "content": [
2674
- {
2675
- "styles": {},
2676
- "text": "Paragraph 2",
2677
- "type": "text",
2678
- },
2679
- ],
2680
- "id": "paragraph-2",
2681
- "props": {
2682
- "backgroundColor": "default",
2683
- "textAlignment": "left",
2684
- "textColor": "default",
2685
- },
2686
- "type": "paragraph",
2687
- },
2688
- {
2689
- "children": [],
2690
- "content": [
2691
- {
2692
- "styles": {},
2693
- "text": "Paragraph with props",
2694
- "type": "text",
2695
- },
2696
- ],
2697
- "id": "paragraph-with-props",
2698
- "props": {
2699
- "backgroundColor": "default",
2700
- "textAlignment": "center",
2701
- "textColor": "red",
2702
- },
2703
- "type": "paragraph",
2704
- },
2705
- {
2706
- "children": [],
2707
- "content": [
2708
- {
2709
- "styles": {},
2710
- "text": "Paragraph 3",
2711
- "type": "text",
2712
- },
2713
- ],
2714
- "id": "paragraph-3",
2715
- "props": {
2716
- "backgroundColor": "default",
2717
- "textAlignment": "left",
2718
- "textColor": "default",
2719
- },
2720
- "type": "paragraph",
2721
- },
2722
- {
2723
- "children": [],
2724
- "content": [
2725
- {
2726
- "styles": {
2727
- "bold": true,
2728
- },
2729
- "text": "Paragraph",
2730
- "type": "text",
2731
- },
2732
- {
2733
- "styles": {},
2734
- "text": " with styled ",
2735
- "type": "text",
2736
- },
2737
- {
2738
- "styles": {
2739
- "italic": true,
2740
- },
2741
- "text": "content",
2742
- "type": "text",
2743
- },
2744
- ],
2745
- "id": "paragraph-with-styled-content",
2746
- "props": {
2747
- "backgroundColor": "default",
2748
- "textAlignment": "left",
2749
- "textColor": "default",
2750
- },
2751
- "type": "paragraph",
2752
- },
2753
- {
2754
- "children": [],
2755
- "content": [
2756
- {
2757
- "styles": {},
2758
- "text": "Paragraph 4",
2759
- "type": "text",
2760
- },
2761
- ],
2762
- "id": "paragraph-4",
2763
- "props": {
2764
- "backgroundColor": "default",
2765
- "textAlignment": "left",
2766
- "textColor": "default",
2767
- },
2768
- "type": "paragraph",
2769
- },
2770
- {
2771
- "children": [],
2772
- "content": [
2773
- {
2774
- "styles": {},
2775
- "text": "Heading 1",
2776
- "type": "text",
2777
- },
2778
- ],
2779
- "id": "heading-0",
2780
- "props": {
2781
- "backgroundColor": "default",
2782
- "isToggleable": false,
2783
- "level": 1,
2784
- "textAlignment": "left",
2785
- "textColor": "default",
2786
- },
2787
- "type": "heading",
2788
- },
2789
- {
2790
- "children": [],
2791
- "content": [
2792
- {
2793
- "styles": {},
2794
- "text": "Paragraph 5",
2795
- "type": "text",
2796
- },
2797
- ],
2798
- "id": "paragraph-5",
2799
- "props": {
2800
- "backgroundColor": "default",
2801
- "textAlignment": "left",
2802
- "textColor": "default",
2803
- },
2804
- "type": "paragraph",
2805
- },
2806
- {
2807
- "children": [],
2808
- "content": undefined,
2809
- "id": "image-0",
2810
- "props": {
2811
- "backgroundColor": "default",
2812
- "caption": "",
2813
- "name": "",
2814
- "showPreview": true,
2815
- "textAlignment": "left",
2816
- "url": "https://via.placeholder.com/150",
2817
- },
2818
- "type": "image",
2819
- },
2820
- {
2821
- "children": [],
2822
- "content": [
2823
- {
2824
- "styles": {},
2825
- "text": "Paragraph 6",
2826
- "type": "text",
2827
- },
2828
- ],
2829
- "id": "paragraph-6",
2830
- "props": {
2831
- "backgroundColor": "default",
2832
- "textAlignment": "left",
2833
- "textColor": "default",
2834
- },
2835
- "type": "paragraph",
2836
- },
2837
- {
2838
- "children": [],
2839
- "content": {
2840
- "columnWidths": [
2841
- undefined,
2842
- undefined,
2843
- undefined,
2844
- ],
2845
- "headerCols": undefined,
2846
- "headerRows": undefined,
2847
- "rows": [
2848
- {
2849
- "cells": [
2850
- {
2851
- "content": [
2852
- {
2853
- "styles": {},
2854
- "text": "Cell 1",
2855
- "type": "text",
2856
- },
2857
- ],
2858
- "props": {
2859
- "backgroundColor": "default",
2860
- "colspan": 1,
2861
- "rowspan": 1,
2862
- "textAlignment": "left",
2863
- "textColor": "default",
2864
- },
2865
- "type": "tableCell",
2866
- },
2867
- {
2868
- "content": [
2869
- {
2870
- "styles": {},
2871
- "text": "Cell 2",
2872
- "type": "text",
2873
- },
2874
- ],
2875
- "props": {
2876
- "backgroundColor": "default",
2877
- "colspan": 1,
2878
- "rowspan": 1,
2879
- "textAlignment": "left",
2880
- "textColor": "default",
2881
- },
2882
- "type": "tableCell",
2883
- },
2884
- {
2885
- "content": [
2886
- {
2887
- "styles": {},
2888
- "text": "Cell 3",
2889
- "type": "text",
2890
- },
2891
- ],
2892
- "props": {
2893
- "backgroundColor": "default",
2894
- "colspan": 1,
2895
- "rowspan": 1,
2896
- "textAlignment": "left",
2897
- "textColor": "default",
2898
- },
2899
- "type": "tableCell",
2900
- },
2901
- ],
2902
- },
2903
- {
2904
- "cells": [
2905
- {
2906
- "content": [
2907
- {
2908
- "styles": {},
2909
- "text": "Cell 4",
2910
- "type": "text",
2911
- },
2912
- ],
2913
- "props": {
2914
- "backgroundColor": "default",
2915
- "colspan": 1,
2916
- "rowspan": 1,
2917
- "textAlignment": "left",
2918
- "textColor": "default",
2919
- },
2920
- "type": "tableCell",
2921
- },
2922
- {
2923
- "content": [
2924
- {
2925
- "styles": {},
2926
- "text": "Cell 5",
2927
- "type": "text",
2928
- },
2929
- ],
2930
- "props": {
2931
- "backgroundColor": "default",
2932
- "colspan": 1,
2933
- "rowspan": 1,
2934
- "textAlignment": "left",
2935
- "textColor": "default",
2936
- },
2937
- "type": "tableCell",
2938
- },
2939
- {
2940
- "content": [
2941
- {
2942
- "styles": {},
2943
- "text": "Cell 6",
2944
- "type": "text",
2945
- },
2946
- ],
2947
- "props": {
2948
- "backgroundColor": "default",
2949
- "colspan": 1,
2950
- "rowspan": 1,
2951
- "textAlignment": "left",
2952
- "textColor": "default",
2953
- },
2954
- "type": "tableCell",
2955
- },
2956
- ],
2957
- },
2958
- {
2959
- "cells": [
2960
- {
2961
- "content": [
2962
- {
2963
- "styles": {},
2964
- "text": "Cell 7",
2965
- "type": "text",
2966
- },
2967
- ],
2968
- "props": {
2969
- "backgroundColor": "default",
2970
- "colspan": 1,
2971
- "rowspan": 1,
2972
- "textAlignment": "left",
2973
- "textColor": "default",
2974
- },
2975
- "type": "tableCell",
2976
- },
2977
- {
2978
- "content": [
2979
- {
2980
- "styles": {},
2981
- "text": "Cell 8",
2982
- "type": "text",
2983
- },
2984
- ],
2985
- "props": {
2986
- "backgroundColor": "default",
2987
- "colspan": 1,
2988
- "rowspan": 1,
2989
- "textAlignment": "left",
2990
- "textColor": "default",
2991
- },
2992
- "type": "tableCell",
2993
- },
2994
- {
2995
- "content": [
2996
- {
2997
- "styles": {},
2998
- "text": "Cell 9",
2999
- "type": "text",
3000
- },
3001
- ],
3002
- "props": {
3003
- "backgroundColor": "default",
3004
- "colspan": 1,
3005
- "rowspan": 1,
3006
- "textAlignment": "left",
3007
- "textColor": "default",
3008
- },
3009
- "type": "tableCell",
3010
- },
3011
- ],
3012
- },
3013
- ],
3014
- "type": "tableContent",
3015
- },
3016
- "id": "table-0",
3017
- "props": {
3018
- "textColor": "default",
3019
- },
3020
- "type": "table",
3021
- },
3022
- {
3023
- "children": [],
3024
- "content": [
3025
- {
3026
- "styles": {},
3027
- "text": "Paragraph 7",
3028
- "type": "text",
3029
- },
3030
- ],
3031
- "id": "paragraph-7",
3032
- "props": {
3033
- "backgroundColor": "default",
3034
- "textAlignment": "left",
3035
- "textColor": "default",
3036
- },
3037
- "type": "paragraph",
3038
- },
3039
- {
3040
- "children": [],
3041
- "content": [],
3042
- "id": "empty-paragraph",
3043
- "props": {
3044
- "backgroundColor": "default",
3045
- "textAlignment": "left",
3046
- "textColor": "default",
3047
- },
3048
- "type": "paragraph",
3049
- },
3050
- {
3051
- "children": [],
3052
- "content": [
3053
- {
3054
- "styles": {},
3055
- "text": "Paragraph 8",
3056
- "type": "text",
3057
- },
3058
- ],
3059
- "id": "paragraph-8",
3060
- "props": {
3061
- "backgroundColor": "default",
3062
- "textAlignment": "left",
3063
- "textColor": "default",
3064
- },
3065
- "type": "paragraph",
3066
- },
3067
- {
3068
- "children": [
3069
- {
3070
- "children": [
3071
- {
3072
- "children": [],
3073
- "content": [
3074
- {
3075
- "styles": {},
3076
- "text": "Double Nested Paragraph 1",
3077
- "type": "text",
3078
- },
3079
- ],
3080
- "id": "double-nested-paragraph-1",
3081
- "props": {
3082
- "backgroundColor": "default",
3083
- "textAlignment": "left",
3084
- "textColor": "default",
3085
- },
3086
- "type": "paragraph",
3087
- },
3088
- ],
3089
- "content": [
3090
- {
3091
- "styles": {},
3092
- "text": "Nested Paragraph 1",
3093
- "type": "text",
3094
- },
3095
- ],
3096
- "id": "nested-paragraph-1",
3097
- "props": {
3098
- "backgroundColor": "default",
3099
- "textAlignment": "left",
3100
- "textColor": "default",
3101
- },
3102
- "type": "paragraph",
3103
- },
3104
- ],
3105
- "content": [
3106
- {
3107
- "styles": {
3108
- "bold": true,
3109
- },
3110
- "text": "Heading",
3111
- "type": "text",
3112
- },
3113
- {
3114
- "styles": {},
3115
- "text": " with styled ",
3116
- "type": "text",
3117
- },
3118
- {
3119
- "styles": {
3120
- "italic": true,
3121
- },
3122
- "text": "content",
3123
- "type": "text",
3124
- },
3125
- ],
3126
- "id": "heading-with-everything",
3127
- "props": {
3128
- "backgroundColor": "red",
3129
- "isToggleable": false,
3130
- "level": 2,
3131
- "textAlignment": "center",
3132
- "textColor": "red",
3133
- },
3134
- "type": "heading",
3135
- },
3136
- {
3137
- "children": [],
3138
- "content": [],
3139
- "id": "paragraph-9",
3140
- "props": {
3141
- "backgroundColor": "default",
3142
- "textAlignment": "left",
3143
- "textColor": "default",
3144
- },
3145
- "type": "paragraph",
3146
- },
3147
- ]
3148
- `;
3149
-
3150
- exports[`Test insertBlocks > Insert single complex block after 1`] = `
3151
- [
3152
- {
3153
- "children": [
3154
- {
3155
- "children": [
3156
- {
3157
- "children": [],
3158
- "content": [
3159
- {
3160
- "styles": {},
3161
- "text": "Double Nested Paragraph 2",
3162
- "type": "text",
3163
- },
3164
- ],
3165
- "id": "inserted-double-nested-paragraph-2",
3166
- "props": {
3167
- "backgroundColor": "default",
3168
- "textAlignment": "left",
3169
- "textColor": "default",
3170
- },
3171
- "type": "paragraph",
3172
- },
3173
- ],
3174
- "content": [
3175
- {
3176
- "styles": {},
3177
- "text": "Nested Paragraph 2",
3178
- "type": "text",
3179
- },
3180
- ],
3181
- "id": "inserted-nested-paragraph-2",
3182
- "props": {
3183
- "backgroundColor": "default",
3184
- "textAlignment": "left",
3185
- "textColor": "default",
3186
- },
3187
- "type": "paragraph",
3188
- },
3189
- ],
3190
- "content": [
3191
- {
3192
- "styles": {
3193
- "bold": true,
3194
- },
3195
- "text": "Heading",
3196
- "type": "text",
3197
- },
3198
- {
3199
- "styles": {},
3200
- "text": " with styled ",
3201
- "type": "text",
3202
- },
3203
- {
3204
- "styles": {
3205
- "italic": true,
3206
- },
3207
- "text": "content",
3208
- "type": "text",
3209
- },
3210
- ],
3211
- "id": "inserted-heading-with-everything",
3212
- "props": {
3213
- "backgroundColor": "red",
3214
- "isToggleable": false,
3215
- "level": 2,
3216
- "textAlignment": "center",
3217
- "textColor": "red",
3218
- },
3219
- "type": "heading",
3220
- },
3221
- ]
3222
- `;
3223
-
3224
- exports[`Test insertBlocks > Insert single complex block after 2`] = `
3225
- [
3226
- {
3227
- "children": [],
3228
- "content": [
3229
- {
3230
- "styles": {},
3231
- "text": "Paragraph 0",
3232
- "type": "text",
3233
- },
3234
- ],
3235
- "id": "paragraph-0",
3236
- "props": {
3237
- "backgroundColor": "default",
3238
- "textAlignment": "left",
3239
- "textColor": "default",
3240
- },
3241
- "type": "paragraph",
3242
- },
3243
- {
3244
- "children": [
3245
- {
3246
- "children": [
3247
- {
3248
- "children": [],
3249
- "content": [
3250
- {
3251
- "styles": {},
3252
- "text": "Double Nested Paragraph 2",
3253
- "type": "text",
3254
- },
3255
- ],
3256
- "id": "inserted-double-nested-paragraph-2",
3257
- "props": {
3258
- "backgroundColor": "default",
3259
- "textAlignment": "left",
3260
- "textColor": "default",
3261
- },
3262
- "type": "paragraph",
3263
- },
3264
- ],
3265
- "content": [
3266
- {
3267
- "styles": {},
3268
- "text": "Nested Paragraph 2",
3269
- "type": "text",
3270
- },
3271
- ],
3272
- "id": "inserted-nested-paragraph-2",
3273
- "props": {
3274
- "backgroundColor": "default",
3275
- "textAlignment": "left",
3276
- "textColor": "default",
3277
- },
3278
- "type": "paragraph",
3279
- },
3280
- ],
3281
- "content": [
3282
- {
3283
- "styles": {
3284
- "bold": true,
3285
- },
3286
- "text": "Heading",
3287
- "type": "text",
3288
- },
3289
- {
3290
- "styles": {},
3291
- "text": " with styled ",
3292
- "type": "text",
3293
- },
3294
- {
3295
- "styles": {
3296
- "italic": true,
3297
- },
3298
- "text": "content",
3299
- "type": "text",
3300
- },
3301
- ],
3302
- "id": "inserted-heading-with-everything",
3303
- "props": {
3304
- "backgroundColor": "red",
3305
- "isToggleable": false,
3306
- "level": 2,
3307
- "textAlignment": "center",
3308
- "textColor": "red",
3309
- },
3310
- "type": "heading",
3311
- },
3312
- {
3313
- "children": [],
3314
- "content": [
3315
- {
3316
- "styles": {},
3317
- "text": "Paragraph 1",
3318
- "type": "text",
3319
- },
3320
- ],
3321
- "id": "paragraph-1",
3322
- "props": {
3323
- "backgroundColor": "default",
3324
- "textAlignment": "left",
3325
- "textColor": "default",
3326
- },
3327
- "type": "paragraph",
3328
- },
3329
- {
3330
- "children": [
3331
- {
3332
- "children": [
3333
- {
3334
- "children": [],
3335
- "content": [
3336
- {
3337
- "styles": {},
3338
- "text": "Double Nested Paragraph 0",
3339
- "type": "text",
3340
- },
3341
- ],
3342
- "id": "double-nested-paragraph-0",
3343
- "props": {
3344
- "backgroundColor": "default",
3345
- "textAlignment": "left",
3346
- "textColor": "default",
3347
- },
3348
- "type": "paragraph",
3349
- },
3350
- ],
3351
- "content": [
3352
- {
3353
- "styles": {},
3354
- "text": "Nested Paragraph 0",
3355
- "type": "text",
3356
- },
3357
- ],
3358
- "id": "nested-paragraph-0",
3359
- "props": {
3360
- "backgroundColor": "default",
3361
- "textAlignment": "left",
3362
- "textColor": "default",
3363
- },
3364
- "type": "paragraph",
3365
- },
3366
- ],
3367
- "content": [
3368
- {
3369
- "styles": {},
3370
- "text": "Paragraph with children",
3371
- "type": "text",
3372
- },
3373
- ],
3374
- "id": "paragraph-with-children",
3375
- "props": {
3376
- "backgroundColor": "default",
3377
- "textAlignment": "left",
3378
- "textColor": "default",
3379
- },
3380
- "type": "paragraph",
3381
- },
3382
- {
3383
- "children": [],
3384
- "content": [
3385
- {
3386
- "styles": {},
3387
- "text": "Paragraph 2",
3388
- "type": "text",
3389
- },
3390
- ],
3391
- "id": "paragraph-2",
3392
- "props": {
3393
- "backgroundColor": "default",
3394
- "textAlignment": "left",
3395
- "textColor": "default",
3396
- },
3397
- "type": "paragraph",
3398
- },
3399
- {
3400
- "children": [],
3401
- "content": [
3402
- {
3403
- "styles": {},
3404
- "text": "Paragraph with props",
3405
- "type": "text",
3406
- },
3407
- ],
3408
- "id": "paragraph-with-props",
3409
- "props": {
3410
- "backgroundColor": "default",
3411
- "textAlignment": "center",
3412
- "textColor": "red",
3413
- },
3414
- "type": "paragraph",
3415
- },
3416
- {
3417
- "children": [],
3418
- "content": [
3419
- {
3420
- "styles": {},
3421
- "text": "Paragraph 3",
3422
- "type": "text",
3423
- },
3424
- ],
3425
- "id": "paragraph-3",
3426
- "props": {
3427
- "backgroundColor": "default",
3428
- "textAlignment": "left",
3429
- "textColor": "default",
3430
- },
3431
- "type": "paragraph",
3432
- },
3433
- {
3434
- "children": [],
3435
- "content": [
3436
- {
3437
- "styles": {
3438
- "bold": true,
3439
- },
3440
- "text": "Paragraph",
3441
- "type": "text",
3442
- },
3443
- {
3444
- "styles": {},
3445
- "text": " with styled ",
3446
- "type": "text",
3447
- },
3448
- {
3449
- "styles": {
3450
- "italic": true,
3451
- },
3452
- "text": "content",
3453
- "type": "text",
3454
- },
3455
- ],
3456
- "id": "paragraph-with-styled-content",
3457
- "props": {
3458
- "backgroundColor": "default",
3459
- "textAlignment": "left",
3460
- "textColor": "default",
3461
- },
3462
- "type": "paragraph",
3463
- },
3464
- {
3465
- "children": [],
3466
- "content": [
3467
- {
3468
- "styles": {},
3469
- "text": "Paragraph 4",
3470
- "type": "text",
3471
- },
3472
- ],
3473
- "id": "paragraph-4",
3474
- "props": {
3475
- "backgroundColor": "default",
3476
- "textAlignment": "left",
3477
- "textColor": "default",
3478
- },
3479
- "type": "paragraph",
3480
- },
3481
- {
3482
- "children": [],
3483
- "content": [
3484
- {
3485
- "styles": {},
3486
- "text": "Heading 1",
3487
- "type": "text",
3488
- },
3489
- ],
3490
- "id": "heading-0",
3491
- "props": {
3492
- "backgroundColor": "default",
3493
- "isToggleable": false,
3494
- "level": 1,
3495
- "textAlignment": "left",
3496
- "textColor": "default",
3497
- },
3498
- "type": "heading",
3499
- },
3500
- {
3501
- "children": [],
3502
- "content": [
3503
- {
3504
- "styles": {},
3505
- "text": "Paragraph 5",
3506
- "type": "text",
3507
- },
3508
- ],
3509
- "id": "paragraph-5",
3510
- "props": {
3511
- "backgroundColor": "default",
3512
- "textAlignment": "left",
3513
- "textColor": "default",
3514
- },
3515
- "type": "paragraph",
3516
- },
3517
- {
3518
- "children": [],
3519
- "content": undefined,
3520
- "id": "image-0",
3521
- "props": {
3522
- "backgroundColor": "default",
3523
- "caption": "",
3524
- "name": "",
3525
- "showPreview": true,
3526
- "textAlignment": "left",
3527
- "url": "https://via.placeholder.com/150",
3528
- },
3529
- "type": "image",
3530
- },
3531
- {
3532
- "children": [],
3533
- "content": [
3534
- {
3535
- "styles": {},
3536
- "text": "Paragraph 6",
3537
- "type": "text",
3538
- },
3539
- ],
3540
- "id": "paragraph-6",
3541
- "props": {
3542
- "backgroundColor": "default",
3543
- "textAlignment": "left",
3544
- "textColor": "default",
3545
- },
3546
- "type": "paragraph",
3547
- },
3548
- {
3549
- "children": [],
3550
- "content": {
3551
- "columnWidths": [
3552
- undefined,
3553
- undefined,
3554
- undefined,
3555
- ],
3556
- "headerCols": undefined,
3557
- "headerRows": undefined,
3558
- "rows": [
3559
- {
3560
- "cells": [
3561
- {
3562
- "content": [
3563
- {
3564
- "styles": {},
3565
- "text": "Cell 1",
3566
- "type": "text",
3567
- },
3568
- ],
3569
- "props": {
3570
- "backgroundColor": "default",
3571
- "colspan": 1,
3572
- "rowspan": 1,
3573
- "textAlignment": "left",
3574
- "textColor": "default",
3575
- },
3576
- "type": "tableCell",
3577
- },
3578
- {
3579
- "content": [
3580
- {
3581
- "styles": {},
3582
- "text": "Cell 2",
3583
- "type": "text",
3584
- },
3585
- ],
3586
- "props": {
3587
- "backgroundColor": "default",
3588
- "colspan": 1,
3589
- "rowspan": 1,
3590
- "textAlignment": "left",
3591
- "textColor": "default",
3592
- },
3593
- "type": "tableCell",
3594
- },
3595
- {
3596
- "content": [
3597
- {
3598
- "styles": {},
3599
- "text": "Cell 3",
3600
- "type": "text",
3601
- },
3602
- ],
3603
- "props": {
3604
- "backgroundColor": "default",
3605
- "colspan": 1,
3606
- "rowspan": 1,
3607
- "textAlignment": "left",
3608
- "textColor": "default",
3609
- },
3610
- "type": "tableCell",
3611
- },
3612
- ],
3613
- },
3614
- {
3615
- "cells": [
3616
- {
3617
- "content": [
3618
- {
3619
- "styles": {},
3620
- "text": "Cell 4",
3621
- "type": "text",
3622
- },
3623
- ],
3624
- "props": {
3625
- "backgroundColor": "default",
3626
- "colspan": 1,
3627
- "rowspan": 1,
3628
- "textAlignment": "left",
3629
- "textColor": "default",
3630
- },
3631
- "type": "tableCell",
3632
- },
3633
- {
3634
- "content": [
3635
- {
3636
- "styles": {},
3637
- "text": "Cell 5",
3638
- "type": "text",
3639
- },
3640
- ],
3641
- "props": {
3642
- "backgroundColor": "default",
3643
- "colspan": 1,
3644
- "rowspan": 1,
3645
- "textAlignment": "left",
3646
- "textColor": "default",
3647
- },
3648
- "type": "tableCell",
3649
- },
3650
- {
3651
- "content": [
3652
- {
3653
- "styles": {},
3654
- "text": "Cell 6",
3655
- "type": "text",
3656
- },
3657
- ],
3658
- "props": {
3659
- "backgroundColor": "default",
3660
- "colspan": 1,
3661
- "rowspan": 1,
3662
- "textAlignment": "left",
3663
- "textColor": "default",
3664
- },
3665
- "type": "tableCell",
3666
- },
3667
- ],
3668
- },
3669
- {
3670
- "cells": [
3671
- {
3672
- "content": [
3673
- {
3674
- "styles": {},
3675
- "text": "Cell 7",
3676
- "type": "text",
3677
- },
3678
- ],
3679
- "props": {
3680
- "backgroundColor": "default",
3681
- "colspan": 1,
3682
- "rowspan": 1,
3683
- "textAlignment": "left",
3684
- "textColor": "default",
3685
- },
3686
- "type": "tableCell",
3687
- },
3688
- {
3689
- "content": [
3690
- {
3691
- "styles": {},
3692
- "text": "Cell 8",
3693
- "type": "text",
3694
- },
3695
- ],
3696
- "props": {
3697
- "backgroundColor": "default",
3698
- "colspan": 1,
3699
- "rowspan": 1,
3700
- "textAlignment": "left",
3701
- "textColor": "default",
3702
- },
3703
- "type": "tableCell",
3704
- },
3705
- {
3706
- "content": [
3707
- {
3708
- "styles": {},
3709
- "text": "Cell 9",
3710
- "type": "text",
3711
- },
3712
- ],
3713
- "props": {
3714
- "backgroundColor": "default",
3715
- "colspan": 1,
3716
- "rowspan": 1,
3717
- "textAlignment": "left",
3718
- "textColor": "default",
3719
- },
3720
- "type": "tableCell",
3721
- },
3722
- ],
3723
- },
3724
- ],
3725
- "type": "tableContent",
3726
- },
3727
- "id": "table-0",
3728
- "props": {
3729
- "textColor": "default",
3730
- },
3731
- "type": "table",
3732
- },
3733
- {
3734
- "children": [],
3735
- "content": [
3736
- {
3737
- "styles": {},
3738
- "text": "Paragraph 7",
3739
- "type": "text",
3740
- },
3741
- ],
3742
- "id": "paragraph-7",
3743
- "props": {
3744
- "backgroundColor": "default",
3745
- "textAlignment": "left",
3746
- "textColor": "default",
3747
- },
3748
- "type": "paragraph",
3749
- },
3750
- {
3751
- "children": [],
3752
- "content": [],
3753
- "id": "empty-paragraph",
3754
- "props": {
3755
- "backgroundColor": "default",
3756
- "textAlignment": "left",
3757
- "textColor": "default",
3758
- },
3759
- "type": "paragraph",
3760
- },
3761
- {
3762
- "children": [],
3763
- "content": [
3764
- {
3765
- "styles": {},
3766
- "text": "Paragraph 8",
3767
- "type": "text",
3768
- },
3769
- ],
3770
- "id": "paragraph-8",
3771
- "props": {
3772
- "backgroundColor": "default",
3773
- "textAlignment": "left",
3774
- "textColor": "default",
3775
- },
3776
- "type": "paragraph",
3777
- },
3778
- {
3779
- "children": [
3780
- {
3781
- "children": [
3782
- {
3783
- "children": [],
3784
- "content": [
3785
- {
3786
- "styles": {},
3787
- "text": "Double Nested Paragraph 1",
3788
- "type": "text",
3789
- },
3790
- ],
3791
- "id": "double-nested-paragraph-1",
3792
- "props": {
3793
- "backgroundColor": "default",
3794
- "textAlignment": "left",
3795
- "textColor": "default",
3796
- },
3797
- "type": "paragraph",
3798
- },
3799
- ],
3800
- "content": [
3801
- {
3802
- "styles": {},
3803
- "text": "Nested Paragraph 1",
3804
- "type": "text",
3805
- },
3806
- ],
3807
- "id": "nested-paragraph-1",
3808
- "props": {
3809
- "backgroundColor": "default",
3810
- "textAlignment": "left",
3811
- "textColor": "default",
3812
- },
3813
- "type": "paragraph",
3814
- },
3815
- ],
3816
- "content": [
3817
- {
3818
- "styles": {
3819
- "bold": true,
3820
- },
3821
- "text": "Heading",
3822
- "type": "text",
3823
- },
3824
- {
3825
- "styles": {},
3826
- "text": " with styled ",
3827
- "type": "text",
3828
- },
3829
- {
3830
- "styles": {
3831
- "italic": true,
3832
- },
3833
- "text": "content",
3834
- "type": "text",
3835
- },
3836
- ],
3837
- "id": "heading-with-everything",
3838
- "props": {
3839
- "backgroundColor": "red",
3840
- "isToggleable": false,
3841
- "level": 2,
3842
- "textAlignment": "center",
3843
- "textColor": "red",
3844
- },
3845
- "type": "heading",
3846
- },
3847
- {
3848
- "children": [],
3849
- "content": [],
3850
- "id": "paragraph-9",
3851
- "props": {
3852
- "backgroundColor": "default",
3853
- "textAlignment": "left",
3854
- "textColor": "default",
3855
- },
3856
- "type": "paragraph",
3857
- },
3858
- ]
3859
- `;
3860
-
3861
- exports[`Test insertBlocks > Insert single complex block before 1`] = `
3862
- [
3863
- {
3864
- "children": [
3865
- {
3866
- "children": [
3867
- {
3868
- "children": [],
3869
- "content": [
3870
- {
3871
- "styles": {},
3872
- "text": "Double Nested Paragraph 2",
3873
- "type": "text",
3874
- },
3875
- ],
3876
- "id": "inserted-double-nested-paragraph-2",
3877
- "props": {
3878
- "backgroundColor": "default",
3879
- "textAlignment": "left",
3880
- "textColor": "default",
3881
- },
3882
- "type": "paragraph",
3883
- },
3884
- ],
3885
- "content": [
3886
- {
3887
- "styles": {},
3888
- "text": "Nested Paragraph 2",
3889
- "type": "text",
3890
- },
3891
- ],
3892
- "id": "inserted-nested-paragraph-2",
3893
- "props": {
3894
- "backgroundColor": "default",
3895
- "textAlignment": "left",
3896
- "textColor": "default",
3897
- },
3898
- "type": "paragraph",
3899
- },
3900
- ],
3901
- "content": [
3902
- {
3903
- "styles": {
3904
- "bold": true,
3905
- },
3906
- "text": "Heading",
3907
- "type": "text",
3908
- },
3909
- {
3910
- "styles": {},
3911
- "text": " with styled ",
3912
- "type": "text",
3913
- },
3914
- {
3915
- "styles": {
3916
- "italic": true,
3917
- },
3918
- "text": "content",
3919
- "type": "text",
3920
- },
3921
- ],
3922
- "id": "inserted-heading-with-everything",
3923
- "props": {
3924
- "backgroundColor": "red",
3925
- "isToggleable": false,
3926
- "level": 2,
3927
- "textAlignment": "center",
3928
- "textColor": "red",
3929
- },
3930
- "type": "heading",
3931
- },
3932
- ]
3933
- `;
3934
-
3935
- exports[`Test insertBlocks > Insert single complex block before 2`] = `
3936
- [
3937
- {
3938
- "children": [
3939
- {
3940
- "children": [
3941
- {
3942
- "children": [],
3943
- "content": [
3944
- {
3945
- "styles": {},
3946
- "text": "Double Nested Paragraph 2",
3947
- "type": "text",
3948
- },
3949
- ],
3950
- "id": "inserted-double-nested-paragraph-2",
3951
- "props": {
3952
- "backgroundColor": "default",
3953
- "textAlignment": "left",
3954
- "textColor": "default",
3955
- },
3956
- "type": "paragraph",
3957
- },
3958
- ],
3959
- "content": [
3960
- {
3961
- "styles": {},
3962
- "text": "Nested Paragraph 2",
3963
- "type": "text",
3964
- },
3965
- ],
3966
- "id": "inserted-nested-paragraph-2",
3967
- "props": {
3968
- "backgroundColor": "default",
3969
- "textAlignment": "left",
3970
- "textColor": "default",
3971
- },
3972
- "type": "paragraph",
3973
- },
3974
- ],
3975
- "content": [
3976
- {
3977
- "styles": {
3978
- "bold": true,
3979
- },
3980
- "text": "Heading",
3981
- "type": "text",
3982
- },
3983
- {
3984
- "styles": {},
3985
- "text": " with styled ",
3986
- "type": "text",
3987
- },
3988
- {
3989
- "styles": {
3990
- "italic": true,
3991
- },
3992
- "text": "content",
3993
- "type": "text",
3994
- },
3995
- ],
3996
- "id": "inserted-heading-with-everything",
3997
- "props": {
3998
- "backgroundColor": "red",
3999
- "isToggleable": false,
4000
- "level": 2,
4001
- "textAlignment": "center",
4002
- "textColor": "red",
4003
- },
4004
- "type": "heading",
4005
- },
4006
- {
4007
- "children": [],
4008
- "content": [
4009
- {
4010
- "styles": {},
4011
- "text": "Paragraph 0",
4012
- "type": "text",
4013
- },
4014
- ],
4015
- "id": "paragraph-0",
4016
- "props": {
4017
- "backgroundColor": "default",
4018
- "textAlignment": "left",
4019
- "textColor": "default",
4020
- },
4021
- "type": "paragraph",
4022
- },
4023
- {
4024
- "children": [],
4025
- "content": [
4026
- {
4027
- "styles": {},
4028
- "text": "Paragraph 1",
4029
- "type": "text",
4030
- },
4031
- ],
4032
- "id": "paragraph-1",
4033
- "props": {
4034
- "backgroundColor": "default",
4035
- "textAlignment": "left",
4036
- "textColor": "default",
4037
- },
4038
- "type": "paragraph",
4039
- },
4040
- {
4041
- "children": [
4042
- {
4043
- "children": [
4044
- {
4045
- "children": [],
4046
- "content": [
4047
- {
4048
- "styles": {},
4049
- "text": "Double Nested Paragraph 0",
4050
- "type": "text",
4051
- },
4052
- ],
4053
- "id": "double-nested-paragraph-0",
4054
- "props": {
4055
- "backgroundColor": "default",
4056
- "textAlignment": "left",
4057
- "textColor": "default",
4058
- },
4059
- "type": "paragraph",
4060
- },
4061
- ],
4062
- "content": [
4063
- {
4064
- "styles": {},
4065
- "text": "Nested Paragraph 0",
4066
- "type": "text",
4067
- },
4068
- ],
4069
- "id": "nested-paragraph-0",
4070
- "props": {
4071
- "backgroundColor": "default",
4072
- "textAlignment": "left",
4073
- "textColor": "default",
4074
- },
4075
- "type": "paragraph",
4076
- },
4077
- ],
4078
- "content": [
4079
- {
4080
- "styles": {},
4081
- "text": "Paragraph with children",
4082
- "type": "text",
4083
- },
4084
- ],
4085
- "id": "paragraph-with-children",
4086
- "props": {
4087
- "backgroundColor": "default",
4088
- "textAlignment": "left",
4089
- "textColor": "default",
4090
- },
4091
- "type": "paragraph",
4092
- },
4093
- {
4094
- "children": [],
4095
- "content": [
4096
- {
4097
- "styles": {},
4098
- "text": "Paragraph 2",
4099
- "type": "text",
4100
- },
4101
- ],
4102
- "id": "paragraph-2",
4103
- "props": {
4104
- "backgroundColor": "default",
4105
- "textAlignment": "left",
4106
- "textColor": "default",
4107
- },
4108
- "type": "paragraph",
4109
- },
4110
- {
4111
- "children": [],
4112
- "content": [
4113
- {
4114
- "styles": {},
4115
- "text": "Paragraph with props",
4116
- "type": "text",
4117
- },
4118
- ],
4119
- "id": "paragraph-with-props",
4120
- "props": {
4121
- "backgroundColor": "default",
4122
- "textAlignment": "center",
4123
- "textColor": "red",
4124
- },
4125
- "type": "paragraph",
4126
- },
4127
- {
4128
- "children": [],
4129
- "content": [
4130
- {
4131
- "styles": {},
4132
- "text": "Paragraph 3",
4133
- "type": "text",
4134
- },
4135
- ],
4136
- "id": "paragraph-3",
4137
- "props": {
4138
- "backgroundColor": "default",
4139
- "textAlignment": "left",
4140
- "textColor": "default",
4141
- },
4142
- "type": "paragraph",
4143
- },
4144
- {
4145
- "children": [],
4146
- "content": [
4147
- {
4148
- "styles": {
4149
- "bold": true,
4150
- },
4151
- "text": "Paragraph",
4152
- "type": "text",
4153
- },
4154
- {
4155
- "styles": {},
4156
- "text": " with styled ",
4157
- "type": "text",
4158
- },
4159
- {
4160
- "styles": {
4161
- "italic": true,
4162
- },
4163
- "text": "content",
4164
- "type": "text",
4165
- },
4166
- ],
4167
- "id": "paragraph-with-styled-content",
4168
- "props": {
4169
- "backgroundColor": "default",
4170
- "textAlignment": "left",
4171
- "textColor": "default",
4172
- },
4173
- "type": "paragraph",
4174
- },
4175
- {
4176
- "children": [],
4177
- "content": [
4178
- {
4179
- "styles": {},
4180
- "text": "Paragraph 4",
4181
- "type": "text",
4182
- },
4183
- ],
4184
- "id": "paragraph-4",
4185
- "props": {
4186
- "backgroundColor": "default",
4187
- "textAlignment": "left",
4188
- "textColor": "default",
4189
- },
4190
- "type": "paragraph",
4191
- },
4192
- {
4193
- "children": [],
4194
- "content": [
4195
- {
4196
- "styles": {},
4197
- "text": "Heading 1",
4198
- "type": "text",
4199
- },
4200
- ],
4201
- "id": "heading-0",
4202
- "props": {
4203
- "backgroundColor": "default",
4204
- "isToggleable": false,
4205
- "level": 1,
4206
- "textAlignment": "left",
4207
- "textColor": "default",
4208
- },
4209
- "type": "heading",
4210
- },
4211
- {
4212
- "children": [],
4213
- "content": [
4214
- {
4215
- "styles": {},
4216
- "text": "Paragraph 5",
4217
- "type": "text",
4218
- },
4219
- ],
4220
- "id": "paragraph-5",
4221
- "props": {
4222
- "backgroundColor": "default",
4223
- "textAlignment": "left",
4224
- "textColor": "default",
4225
- },
4226
- "type": "paragraph",
4227
- },
4228
- {
4229
- "children": [],
4230
- "content": undefined,
4231
- "id": "image-0",
4232
- "props": {
4233
- "backgroundColor": "default",
4234
- "caption": "",
4235
- "name": "",
4236
- "showPreview": true,
4237
- "textAlignment": "left",
4238
- "url": "https://via.placeholder.com/150",
4239
- },
4240
- "type": "image",
4241
- },
4242
- {
4243
- "children": [],
4244
- "content": [
4245
- {
4246
- "styles": {},
4247
- "text": "Paragraph 6",
4248
- "type": "text",
4249
- },
4250
- ],
4251
- "id": "paragraph-6",
4252
- "props": {
4253
- "backgroundColor": "default",
4254
- "textAlignment": "left",
4255
- "textColor": "default",
4256
- },
4257
- "type": "paragraph",
4258
- },
4259
- {
4260
- "children": [],
4261
- "content": {
4262
- "columnWidths": [
4263
- undefined,
4264
- undefined,
4265
- undefined,
4266
- ],
4267
- "headerCols": undefined,
4268
- "headerRows": undefined,
4269
- "rows": [
4270
- {
4271
- "cells": [
4272
- {
4273
- "content": [
4274
- {
4275
- "styles": {},
4276
- "text": "Cell 1",
4277
- "type": "text",
4278
- },
4279
- ],
4280
- "props": {
4281
- "backgroundColor": "default",
4282
- "colspan": 1,
4283
- "rowspan": 1,
4284
- "textAlignment": "left",
4285
- "textColor": "default",
4286
- },
4287
- "type": "tableCell",
4288
- },
4289
- {
4290
- "content": [
4291
- {
4292
- "styles": {},
4293
- "text": "Cell 2",
4294
- "type": "text",
4295
- },
4296
- ],
4297
- "props": {
4298
- "backgroundColor": "default",
4299
- "colspan": 1,
4300
- "rowspan": 1,
4301
- "textAlignment": "left",
4302
- "textColor": "default",
4303
- },
4304
- "type": "tableCell",
4305
- },
4306
- {
4307
- "content": [
4308
- {
4309
- "styles": {},
4310
- "text": "Cell 3",
4311
- "type": "text",
4312
- },
4313
- ],
4314
- "props": {
4315
- "backgroundColor": "default",
4316
- "colspan": 1,
4317
- "rowspan": 1,
4318
- "textAlignment": "left",
4319
- "textColor": "default",
4320
- },
4321
- "type": "tableCell",
4322
- },
4323
- ],
4324
- },
4325
- {
4326
- "cells": [
4327
- {
4328
- "content": [
4329
- {
4330
- "styles": {},
4331
- "text": "Cell 4",
4332
- "type": "text",
4333
- },
4334
- ],
4335
- "props": {
4336
- "backgroundColor": "default",
4337
- "colspan": 1,
4338
- "rowspan": 1,
4339
- "textAlignment": "left",
4340
- "textColor": "default",
4341
- },
4342
- "type": "tableCell",
4343
- },
4344
- {
4345
- "content": [
4346
- {
4347
- "styles": {},
4348
- "text": "Cell 5",
4349
- "type": "text",
4350
- },
4351
- ],
4352
- "props": {
4353
- "backgroundColor": "default",
4354
- "colspan": 1,
4355
- "rowspan": 1,
4356
- "textAlignment": "left",
4357
- "textColor": "default",
4358
- },
4359
- "type": "tableCell",
4360
- },
4361
- {
4362
- "content": [
4363
- {
4364
- "styles": {},
4365
- "text": "Cell 6",
4366
- "type": "text",
4367
- },
4368
- ],
4369
- "props": {
4370
- "backgroundColor": "default",
4371
- "colspan": 1,
4372
- "rowspan": 1,
4373
- "textAlignment": "left",
4374
- "textColor": "default",
4375
- },
4376
- "type": "tableCell",
4377
- },
4378
- ],
4379
- },
4380
- {
4381
- "cells": [
4382
- {
4383
- "content": [
4384
- {
4385
- "styles": {},
4386
- "text": "Cell 7",
4387
- "type": "text",
4388
- },
4389
- ],
4390
- "props": {
4391
- "backgroundColor": "default",
4392
- "colspan": 1,
4393
- "rowspan": 1,
4394
- "textAlignment": "left",
4395
- "textColor": "default",
4396
- },
4397
- "type": "tableCell",
4398
- },
4399
- {
4400
- "content": [
4401
- {
4402
- "styles": {},
4403
- "text": "Cell 8",
4404
- "type": "text",
4405
- },
4406
- ],
4407
- "props": {
4408
- "backgroundColor": "default",
4409
- "colspan": 1,
4410
- "rowspan": 1,
4411
- "textAlignment": "left",
4412
- "textColor": "default",
4413
- },
4414
- "type": "tableCell",
4415
- },
4416
- {
4417
- "content": [
4418
- {
4419
- "styles": {},
4420
- "text": "Cell 9",
4421
- "type": "text",
4422
- },
4423
- ],
4424
- "props": {
4425
- "backgroundColor": "default",
4426
- "colspan": 1,
4427
- "rowspan": 1,
4428
- "textAlignment": "left",
4429
- "textColor": "default",
4430
- },
4431
- "type": "tableCell",
4432
- },
4433
- ],
4434
- },
4435
- ],
4436
- "type": "tableContent",
4437
- },
4438
- "id": "table-0",
4439
- "props": {
4440
- "textColor": "default",
4441
- },
4442
- "type": "table",
4443
- },
4444
- {
4445
- "children": [],
4446
- "content": [
4447
- {
4448
- "styles": {},
4449
- "text": "Paragraph 7",
4450
- "type": "text",
4451
- },
4452
- ],
4453
- "id": "paragraph-7",
4454
- "props": {
4455
- "backgroundColor": "default",
4456
- "textAlignment": "left",
4457
- "textColor": "default",
4458
- },
4459
- "type": "paragraph",
4460
- },
4461
- {
4462
- "children": [],
4463
- "content": [],
4464
- "id": "empty-paragraph",
4465
- "props": {
4466
- "backgroundColor": "default",
4467
- "textAlignment": "left",
4468
- "textColor": "default",
4469
- },
4470
- "type": "paragraph",
4471
- },
4472
- {
4473
- "children": [],
4474
- "content": [
4475
- {
4476
- "styles": {},
4477
- "text": "Paragraph 8",
4478
- "type": "text",
4479
- },
4480
- ],
4481
- "id": "paragraph-8",
4482
- "props": {
4483
- "backgroundColor": "default",
4484
- "textAlignment": "left",
4485
- "textColor": "default",
4486
- },
4487
- "type": "paragraph",
4488
- },
4489
- {
4490
- "children": [
4491
- {
4492
- "children": [
4493
- {
4494
- "children": [],
4495
- "content": [
4496
- {
4497
- "styles": {},
4498
- "text": "Double Nested Paragraph 1",
4499
- "type": "text",
4500
- },
4501
- ],
4502
- "id": "double-nested-paragraph-1",
4503
- "props": {
4504
- "backgroundColor": "default",
4505
- "textAlignment": "left",
4506
- "textColor": "default",
4507
- },
4508
- "type": "paragraph",
4509
- },
4510
- ],
4511
- "content": [
4512
- {
4513
- "styles": {},
4514
- "text": "Nested Paragraph 1",
4515
- "type": "text",
4516
- },
4517
- ],
4518
- "id": "nested-paragraph-1",
4519
- "props": {
4520
- "backgroundColor": "default",
4521
- "textAlignment": "left",
4522
- "textColor": "default",
4523
- },
4524
- "type": "paragraph",
4525
- },
4526
- ],
4527
- "content": [
4528
- {
4529
- "styles": {
4530
- "bold": true,
4531
- },
4532
- "text": "Heading",
4533
- "type": "text",
4534
- },
4535
- {
4536
- "styles": {},
4537
- "text": " with styled ",
4538
- "type": "text",
4539
- },
4540
- {
4541
- "styles": {
4542
- "italic": true,
4543
- },
4544
- "text": "content",
4545
- "type": "text",
4546
- },
4547
- ],
4548
- "id": "heading-with-everything",
4549
- "props": {
4550
- "backgroundColor": "red",
4551
- "isToggleable": false,
4552
- "level": 2,
4553
- "textAlignment": "center",
4554
- "textColor": "red",
4555
- },
4556
- "type": "heading",
4557
- },
4558
- {
4559
- "children": [],
4560
- "content": [],
4561
- "id": "paragraph-9",
4562
- "props": {
4563
- "backgroundColor": "default",
4564
- "textAlignment": "left",
4565
- "textColor": "default",
4566
- },
4567
- "type": "paragraph",
4568
- },
4569
- ]
4570
- `;