@blocknote/core 0.16.0 → 0.17.0

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