@blocknote/core 0.50.0 → 0.51.1
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.
- package/dist/blocknote.cjs +1 -1
- package/dist/blocknote.js +4 -4
- package/dist/{blocks-UU7EM-QM.js → blocks-D0lMxErU.js} +397 -368
- package/dist/blocks-D0lMxErU.js.map +1 -0
- package/dist/blocks-KyMOxPT3.cjs +11 -0
- package/dist/blocks-KyMOxPT3.cjs.map +1 -0
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.js +2 -2
- package/dist/extensions-Cutrafjg.cjs +52 -0
- package/dist/extensions-Cutrafjg.cjs.map +1 -0
- package/dist/{extensions-CkLT--Nc.js → extensions-D2mx2C9y.js} +622 -353
- package/dist/extensions-D2mx2C9y.js.map +1 -0
- package/dist/extensions.cjs +1 -1
- package/dist/extensions.js +3 -3
- package/dist/locales.cjs +1 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.js +1 -1
- package/dist/locales.js.map +1 -1
- package/dist/src-D5R5YzV7.cjs +21 -0
- package/dist/src-D5R5YzV7.cjs.map +1 -0
- package/dist/{src-SVFpMAWE.js → src-Dvmif2FY.js} +1070 -564
- package/dist/src-Dvmif2FY.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/dist/yjs.cjs +1 -1
- package/dist/yjs.js +8 -8
- package/package.json +1 -13
- package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +7 -7
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +5 -3
- package/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +5 -5
- package/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap +2550 -291
- package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts +83 -2
- package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts +103 -42
- package/src/api/blockManipulation/commands/nestBlock/__snapshots__/nestBlock.test.ts.snap +0 -143
- package/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +12 -12
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +5 -3
- package/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +6 -6
- package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +22 -22
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +12 -8
- package/src/api/blockManipulation/setupTestEnv.ts +1 -1
- package/src/api/clipboard/fromClipboard/handleVSCodePaste.ts +2 -6
- package/src/api/clipboard/fromClipboard/pasteExtension.ts +7 -2
- package/src/api/clipboard/toClipboard/copyExtension.ts +12 -1
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +12 -4
- package/src/api/exporters/markdown/htmlToMarkdown.ts +813 -0
- package/src/api/exporters/markdown/markdownExporter.ts +2 -21
- package/src/api/nodeConversions/blockToNode.ts +3 -2
- package/src/api/parsers/html/util/__snapshots__/nestedLists.test.ts.snap +122 -107
- package/src/api/parsers/html/util/nestedLists.test.ts +1 -12
- package/src/api/parsers/markdown/markdownToHtml.ts +1194 -0
- package/src/api/parsers/markdown/parseMarkdown.ts +2 -101
- package/src/blocks/Audio/block.ts +1 -4
- package/src/blocks/Code/block.test.ts +258 -0
- package/src/blocks/File/block.ts +1 -4
- package/src/blocks/File/helpers/render/createFileBlockWrapper.ts +7 -2
- package/src/blocks/Image/block.ts +9 -6
- package/src/blocks/ListItem/BulletListItem/block.ts +7 -4
- package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts +3 -4
- package/src/blocks/Video/block.ts +4 -5
- package/src/blocks/Video/parseVideoElement.ts +2 -1
- package/src/editor/Block.css +8 -0
- package/src/editor/BlockNoteEditor.test.ts +10 -4
- package/src/editor/BlockNoteEditor.ts +30 -13
- package/src/editor/managers/BlockManager.ts +10 -6
- package/src/editor/managers/ExtensionManager/index.ts +80 -25
- package/src/editor/performance.test.ts +2 -2
- package/src/editor/transformPasted.test.ts +295 -0
- package/src/editor/transformPasted.ts +77 -0
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +1 -12
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +0 -11
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -1
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -1
- package/src/extensions/SideMenu/dragging.ts +7 -10
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +21 -0
- package/src/extensions/TrailingNode/TrailingNode.ts +124 -65
- package/src/i18n/locales/fr.ts +1 -1
- package/types/src/api/blockManipulation/commands/moveBlocks/moveBlocks.d.ts +13 -2
- package/types/src/api/clipboard/fromClipboard/handleVSCodePaste.d.ts +1 -1
- package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -0
- package/types/src/api/exporters/markdown/htmlToMarkdown.d.ts +11 -0
- package/types/src/api/parsers/markdown/markdownToHtml.d.ts +5 -0
- package/types/src/blocks/Code/block.test.d.ts +1 -0
- package/types/src/blocks/Video/block.d.ts +2 -0
- package/types/src/blocks/Video/parseVideoElement.d.ts +1 -0
- package/types/src/editor/BlockNoteEditor.d.ts +20 -6
- package/types/src/editor/managers/BlockManager.d.ts +8 -4
- package/types/src/editor/transformPasted.test.d.ts +1 -0
- package/types/src/extensions/TrailingNode/TrailingNode.d.ts +8 -3
- package/dist/blocks-BFnTypT-.cjs +0 -11
- package/dist/blocks-BFnTypT-.cjs.map +0 -1
- package/dist/blocks-UU7EM-QM.js.map +0 -1
- package/dist/extensions-CYsFi5Is.cjs +0 -2
- package/dist/extensions-CYsFi5Is.cjs.map +0 -1
- package/dist/extensions-CkLT--Nc.js.map +0 -1
- package/dist/src-DsJ6yzs9.cjs +0 -5
- package/dist/src-DsJ6yzs9.cjs.map +0 -1
- package/dist/src-SVFpMAWE.js.map +0 -1
- package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +0 -42
- package/src/api/exporters/markdown/util/convertVideoToMarkdownRehypePlugin.ts +0 -19
- package/src/api/exporters/markdown/util/removeUnderlinesRehypePlugin.ts +0 -39
- package/types/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.d.ts +0 -7
- package/types/src/api/exporters/markdown/util/convertVideoToMarkdownRehypePlugin.d.ts +0 -2
- package/types/src/api/exporters/markdown/util/removeUnderlinesRehypePlugin.d.ts +0 -6
|
@@ -557,7 +557,7 @@ exports[`Test moveBlocksDown > Basic 1`] = `
|
|
|
557
557
|
{
|
|
558
558
|
"children": [],
|
|
559
559
|
"content": [],
|
|
560
|
-
"id": "
|
|
560
|
+
"id": "paragraph-9",
|
|
561
561
|
"props": {
|
|
562
562
|
"backgroundColor": "default",
|
|
563
563
|
"textAlignment": "left",
|
|
@@ -568,8 +568,25 @@ exports[`Test moveBlocksDown > Basic 1`] = `
|
|
|
568
568
|
]
|
|
569
569
|
`;
|
|
570
570
|
|
|
571
|
-
exports[`Test moveBlocksDown >
|
|
571
|
+
exports[`Test moveBlocksDown > Explicit block argument moves the given block 1`] = `
|
|
572
572
|
[
|
|
573
|
+
{
|
|
574
|
+
"children": [],
|
|
575
|
+
"content": [
|
|
576
|
+
{
|
|
577
|
+
"styles": {},
|
|
578
|
+
"text": "Paragraph 1",
|
|
579
|
+
"type": "text",
|
|
580
|
+
},
|
|
581
|
+
],
|
|
582
|
+
"id": "paragraph-1",
|
|
583
|
+
"props": {
|
|
584
|
+
"backgroundColor": "default",
|
|
585
|
+
"textAlignment": "left",
|
|
586
|
+
"textColor": "default",
|
|
587
|
+
},
|
|
588
|
+
"type": "paragraph",
|
|
589
|
+
},
|
|
573
590
|
{
|
|
574
591
|
"children": [],
|
|
575
592
|
"content": [
|
|
@@ -589,23 +606,6 @@ exports[`Test moveBlocksDown > Into children 1`] = `
|
|
|
589
606
|
},
|
|
590
607
|
{
|
|
591
608
|
"children": [
|
|
592
|
-
{
|
|
593
|
-
"children": [],
|
|
594
|
-
"content": [
|
|
595
|
-
{
|
|
596
|
-
"styles": {},
|
|
597
|
-
"text": "Paragraph 1",
|
|
598
|
-
"type": "text",
|
|
599
|
-
},
|
|
600
|
-
],
|
|
601
|
-
"id": "paragraph-1",
|
|
602
|
-
"props": {
|
|
603
|
-
"backgroundColor": "default",
|
|
604
|
-
"textAlignment": "left",
|
|
605
|
-
"textColor": "default",
|
|
606
|
-
},
|
|
607
|
-
"type": "paragraph",
|
|
608
|
-
},
|
|
609
609
|
{
|
|
610
610
|
"children": [
|
|
611
611
|
{
|
|
@@ -1125,7 +1125,7 @@ exports[`Test moveBlocksDown > Into children 1`] = `
|
|
|
1125
1125
|
{
|
|
1126
1126
|
"children": [],
|
|
1127
1127
|
"content": [],
|
|
1128
|
-
"id": "
|
|
1128
|
+
"id": "paragraph-9",
|
|
1129
1129
|
"props": {
|
|
1130
1130
|
"backgroundColor": "default",
|
|
1131
1131
|
"textAlignment": "left",
|
|
@@ -1136,7 +1136,7 @@ exports[`Test moveBlocksDown > Into children 1`] = `
|
|
|
1136
1136
|
]
|
|
1137
1137
|
`;
|
|
1138
1138
|
|
|
1139
|
-
exports[`Test moveBlocksDown >
|
|
1139
|
+
exports[`Test moveBlocksDown > Explicit block argument with nested block 1`] = `
|
|
1140
1140
|
[
|
|
1141
1141
|
{
|
|
1142
1142
|
"children": [],
|
|
@@ -1172,36 +1172,35 @@ exports[`Test moveBlocksDown > Last block 1`] = `
|
|
|
1172
1172
|
},
|
|
1173
1173
|
"type": "paragraph",
|
|
1174
1174
|
},
|
|
1175
|
+
{
|
|
1176
|
+
"children": [],
|
|
1177
|
+
"content": [
|
|
1178
|
+
{
|
|
1179
|
+
"styles": {},
|
|
1180
|
+
"text": "Paragraph with children",
|
|
1181
|
+
"type": "text",
|
|
1182
|
+
},
|
|
1183
|
+
],
|
|
1184
|
+
"id": "paragraph-with-children",
|
|
1185
|
+
"props": {
|
|
1186
|
+
"backgroundColor": "default",
|
|
1187
|
+
"textAlignment": "left",
|
|
1188
|
+
"textColor": "default",
|
|
1189
|
+
},
|
|
1190
|
+
"type": "paragraph",
|
|
1191
|
+
},
|
|
1175
1192
|
{
|
|
1176
1193
|
"children": [
|
|
1177
1194
|
{
|
|
1178
|
-
"children": [
|
|
1179
|
-
{
|
|
1180
|
-
"children": [],
|
|
1181
|
-
"content": [
|
|
1182
|
-
{
|
|
1183
|
-
"styles": {},
|
|
1184
|
-
"text": "Double Nested Paragraph 0",
|
|
1185
|
-
"type": "text",
|
|
1186
|
-
},
|
|
1187
|
-
],
|
|
1188
|
-
"id": "double-nested-paragraph-0",
|
|
1189
|
-
"props": {
|
|
1190
|
-
"backgroundColor": "default",
|
|
1191
|
-
"textAlignment": "left",
|
|
1192
|
-
"textColor": "default",
|
|
1193
|
-
},
|
|
1194
|
-
"type": "paragraph",
|
|
1195
|
-
},
|
|
1196
|
-
],
|
|
1195
|
+
"children": [],
|
|
1197
1196
|
"content": [
|
|
1198
1197
|
{
|
|
1199
1198
|
"styles": {},
|
|
1200
|
-
"text": "Nested Paragraph 0",
|
|
1199
|
+
"text": "Double Nested Paragraph 0",
|
|
1201
1200
|
"type": "text",
|
|
1202
1201
|
},
|
|
1203
1202
|
],
|
|
1204
|
-
"id": "nested-paragraph-0",
|
|
1203
|
+
"id": "double-nested-paragraph-0",
|
|
1205
1204
|
"props": {
|
|
1206
1205
|
"backgroundColor": "default",
|
|
1207
1206
|
"textAlignment": "left",
|
|
@@ -1213,11 +1212,11 @@ exports[`Test moveBlocksDown > Last block 1`] = `
|
|
|
1213
1212
|
"content": [
|
|
1214
1213
|
{
|
|
1215
1214
|
"styles": {},
|
|
1216
|
-
"text": "Paragraph
|
|
1215
|
+
"text": "Nested Paragraph 0",
|
|
1217
1216
|
"type": "text",
|
|
1218
1217
|
},
|
|
1219
1218
|
],
|
|
1220
|
-
"id": "paragraph-
|
|
1219
|
+
"id": "nested-paragraph-0",
|
|
1221
1220
|
"props": {
|
|
1222
1221
|
"backgroundColor": "default",
|
|
1223
1222
|
"textAlignment": "left",
|
|
@@ -1693,7 +1692,7 @@ exports[`Test moveBlocksDown > Last block 1`] = `
|
|
|
1693
1692
|
{
|
|
1694
1693
|
"children": [],
|
|
1695
1694
|
"content": [],
|
|
1696
|
-
"id": "
|
|
1695
|
+
"id": "paragraph-9",
|
|
1697
1696
|
"props": {
|
|
1698
1697
|
"backgroundColor": "default",
|
|
1699
1698
|
"textAlignment": "left",
|
|
@@ -1704,7 +1703,7 @@ exports[`Test moveBlocksDown > Last block 1`] = `
|
|
|
1704
1703
|
]
|
|
1705
1704
|
`;
|
|
1706
1705
|
|
|
1707
|
-
exports[`Test moveBlocksDown >
|
|
1706
|
+
exports[`Test moveBlocksDown > Into children 1`] = `
|
|
1708
1707
|
[
|
|
1709
1708
|
{
|
|
1710
1709
|
"children": [],
|
|
@@ -1724,41 +1723,24 @@ exports[`Test moveBlocksDown > Multiple blocks 1`] = `
|
|
|
1724
1723
|
"type": "paragraph",
|
|
1725
1724
|
},
|
|
1726
1725
|
{
|
|
1727
|
-
"children": [
|
|
1728
|
-
"content": [
|
|
1729
|
-
{
|
|
1730
|
-
"styles": {},
|
|
1731
|
-
"text": "Paragraph with props",
|
|
1732
|
-
"type": "text",
|
|
1733
|
-
},
|
|
1734
|
-
],
|
|
1735
|
-
"id": "paragraph-with-props",
|
|
1736
|
-
"props": {
|
|
1737
|
-
"backgroundColor": "default",
|
|
1738
|
-
"textAlignment": "center",
|
|
1739
|
-
"textColor": "red",
|
|
1740
|
-
},
|
|
1741
|
-
"type": "paragraph",
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
"children": [],
|
|
1745
|
-
"content": [
|
|
1726
|
+
"children": [
|
|
1746
1727
|
{
|
|
1747
|
-
"
|
|
1748
|
-
"
|
|
1749
|
-
|
|
1728
|
+
"children": [],
|
|
1729
|
+
"content": [
|
|
1730
|
+
{
|
|
1731
|
+
"styles": {},
|
|
1732
|
+
"text": "Paragraph 1",
|
|
1733
|
+
"type": "text",
|
|
1734
|
+
},
|
|
1735
|
+
],
|
|
1736
|
+
"id": "paragraph-1",
|
|
1737
|
+
"props": {
|
|
1738
|
+
"backgroundColor": "default",
|
|
1739
|
+
"textAlignment": "left",
|
|
1740
|
+
"textColor": "default",
|
|
1741
|
+
},
|
|
1742
|
+
"type": "paragraph",
|
|
1750
1743
|
},
|
|
1751
|
-
],
|
|
1752
|
-
"id": "paragraph-1",
|
|
1753
|
-
"props": {
|
|
1754
|
-
"backgroundColor": "default",
|
|
1755
|
-
"textAlignment": "left",
|
|
1756
|
-
"textColor": "default",
|
|
1757
|
-
},
|
|
1758
|
-
"type": "paragraph",
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
"children": [
|
|
1762
1744
|
{
|
|
1763
1745
|
"children": [
|
|
1764
1746
|
{
|
|
@@ -1827,6 +1809,23 @@ exports[`Test moveBlocksDown > Multiple blocks 1`] = `
|
|
|
1827
1809
|
},
|
|
1828
1810
|
"type": "paragraph",
|
|
1829
1811
|
},
|
|
1812
|
+
{
|
|
1813
|
+
"children": [],
|
|
1814
|
+
"content": [
|
|
1815
|
+
{
|
|
1816
|
+
"styles": {},
|
|
1817
|
+
"text": "Paragraph with props",
|
|
1818
|
+
"type": "text",
|
|
1819
|
+
},
|
|
1820
|
+
],
|
|
1821
|
+
"id": "paragraph-with-props",
|
|
1822
|
+
"props": {
|
|
1823
|
+
"backgroundColor": "default",
|
|
1824
|
+
"textAlignment": "center",
|
|
1825
|
+
"textColor": "red",
|
|
1826
|
+
},
|
|
1827
|
+
"type": "paragraph",
|
|
1828
|
+
},
|
|
1830
1829
|
{
|
|
1831
1830
|
"children": [],
|
|
1832
1831
|
"content": [
|
|
@@ -2261,7 +2260,7 @@ exports[`Test moveBlocksDown > Multiple blocks 1`] = `
|
|
|
2261
2260
|
{
|
|
2262
2261
|
"children": [],
|
|
2263
2262
|
"content": [],
|
|
2264
|
-
"id": "
|
|
2263
|
+
"id": "paragraph-9",
|
|
2265
2264
|
"props": {
|
|
2266
2265
|
"backgroundColor": "default",
|
|
2267
2266
|
"textAlignment": "left",
|
|
@@ -2272,7 +2271,7 @@ exports[`Test moveBlocksDown > Multiple blocks 1`] = `
|
|
|
2272
2271
|
]
|
|
2273
2272
|
`;
|
|
2274
2273
|
|
|
2275
|
-
exports[`Test moveBlocksDown >
|
|
2274
|
+
exports[`Test moveBlocksDown > Last block 1`] = `
|
|
2276
2275
|
[
|
|
2277
2276
|
{
|
|
2278
2277
|
"children": [],
|
|
@@ -2291,23 +2290,6 @@ exports[`Test moveBlocksDown > Multiple blocks ending in block with children 1`]
|
|
|
2291
2290
|
},
|
|
2292
2291
|
"type": "paragraph",
|
|
2293
2292
|
},
|
|
2294
|
-
{
|
|
2295
|
-
"children": [],
|
|
2296
|
-
"content": [
|
|
2297
|
-
{
|
|
2298
|
-
"styles": {},
|
|
2299
|
-
"text": "Paragraph 2",
|
|
2300
|
-
"type": "text",
|
|
2301
|
-
},
|
|
2302
|
-
],
|
|
2303
|
-
"id": "paragraph-2",
|
|
2304
|
-
"props": {
|
|
2305
|
-
"backgroundColor": "default",
|
|
2306
|
-
"textAlignment": "left",
|
|
2307
|
-
"textColor": "default",
|
|
2308
|
-
},
|
|
2309
|
-
"type": "paragraph",
|
|
2310
|
-
},
|
|
2311
2293
|
{
|
|
2312
2294
|
"children": [],
|
|
2313
2295
|
"content": [
|
|
@@ -2378,6 +2360,23 @@ exports[`Test moveBlocksDown > Multiple blocks ending in block with children 1`]
|
|
|
2378
2360
|
},
|
|
2379
2361
|
"type": "paragraph",
|
|
2380
2362
|
},
|
|
2363
|
+
{
|
|
2364
|
+
"children": [],
|
|
2365
|
+
"content": [
|
|
2366
|
+
{
|
|
2367
|
+
"styles": {},
|
|
2368
|
+
"text": "Paragraph 2",
|
|
2369
|
+
"type": "text",
|
|
2370
|
+
},
|
|
2371
|
+
],
|
|
2372
|
+
"id": "paragraph-2",
|
|
2373
|
+
"props": {
|
|
2374
|
+
"backgroundColor": "default",
|
|
2375
|
+
"textAlignment": "left",
|
|
2376
|
+
"textColor": "default",
|
|
2377
|
+
},
|
|
2378
|
+
"type": "paragraph",
|
|
2379
|
+
},
|
|
2381
2380
|
{
|
|
2382
2381
|
"children": [],
|
|
2383
2382
|
"content": [
|
|
@@ -2829,7 +2828,7 @@ exports[`Test moveBlocksDown > Multiple blocks ending in block with children 1`]
|
|
|
2829
2828
|
{
|
|
2830
2829
|
"children": [],
|
|
2831
2830
|
"content": [],
|
|
2832
|
-
"id": "
|
|
2831
|
+
"id": "paragraph-9",
|
|
2833
2832
|
"props": {
|
|
2834
2833
|
"backgroundColor": "default",
|
|
2835
2834
|
"textAlignment": "left",
|
|
@@ -2840,7 +2839,7 @@ exports[`Test moveBlocksDown > Multiple blocks ending in block with children 1`]
|
|
|
2840
2839
|
]
|
|
2841
2840
|
`;
|
|
2842
2841
|
|
|
2843
|
-
exports[`Test moveBlocksDown > Multiple blocks
|
|
2842
|
+
exports[`Test moveBlocksDown > Multiple blocks 1`] = `
|
|
2844
2843
|
[
|
|
2845
2844
|
{
|
|
2846
2845
|
"children": [],
|
|
@@ -2864,15 +2863,15 @@ exports[`Test moveBlocksDown > Multiple blocks ending in nested block 1`] = `
|
|
|
2864
2863
|
"content": [
|
|
2865
2864
|
{
|
|
2866
2865
|
"styles": {},
|
|
2867
|
-
"text": "Paragraph
|
|
2866
|
+
"text": "Paragraph with props",
|
|
2868
2867
|
"type": "text",
|
|
2869
2868
|
},
|
|
2870
2869
|
],
|
|
2871
|
-
"id": "paragraph-
|
|
2870
|
+
"id": "paragraph-with-props",
|
|
2872
2871
|
"props": {
|
|
2873
2872
|
"backgroundColor": "default",
|
|
2874
|
-
"textAlignment": "
|
|
2875
|
-
"textColor": "
|
|
2873
|
+
"textAlignment": "center",
|
|
2874
|
+
"textColor": "red",
|
|
2876
2875
|
},
|
|
2877
2876
|
"type": "paragraph",
|
|
2878
2877
|
},
|
|
@@ -2951,15 +2950,15 @@ exports[`Test moveBlocksDown > Multiple blocks ending in nested block 1`] = `
|
|
|
2951
2950
|
"content": [
|
|
2952
2951
|
{
|
|
2953
2952
|
"styles": {},
|
|
2954
|
-
"text": "Paragraph
|
|
2953
|
+
"text": "Paragraph 2",
|
|
2955
2954
|
"type": "text",
|
|
2956
2955
|
},
|
|
2957
2956
|
],
|
|
2958
|
-
"id": "paragraph-
|
|
2957
|
+
"id": "paragraph-2",
|
|
2959
2958
|
"props": {
|
|
2960
2959
|
"backgroundColor": "default",
|
|
2961
|
-
"textAlignment": "
|
|
2962
|
-
"textColor": "
|
|
2960
|
+
"textAlignment": "left",
|
|
2961
|
+
"textColor": "default",
|
|
2963
2962
|
},
|
|
2964
2963
|
"type": "paragraph",
|
|
2965
2964
|
},
|
|
@@ -3397,7 +3396,7 @@ exports[`Test moveBlocksDown > Multiple blocks ending in nested block 1`] = `
|
|
|
3397
3396
|
{
|
|
3398
3397
|
"children": [],
|
|
3399
3398
|
"content": [],
|
|
3400
|
-
"id": "
|
|
3399
|
+
"id": "paragraph-9",
|
|
3401
3400
|
"props": {
|
|
3402
3401
|
"backgroundColor": "default",
|
|
3403
3402
|
"textAlignment": "left",
|
|
@@ -3408,7 +3407,7 @@ exports[`Test moveBlocksDown > Multiple blocks ending in nested block 1`] = `
|
|
|
3408
3407
|
]
|
|
3409
3408
|
`;
|
|
3410
3409
|
|
|
3411
|
-
exports[`Test moveBlocksDown > Multiple blocks
|
|
3410
|
+
exports[`Test moveBlocksDown > Multiple blocks ending in block with children 1`] = `
|
|
3412
3411
|
[
|
|
3413
3412
|
{
|
|
3414
3413
|
"children": [],
|
|
@@ -3432,11 +3431,11 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3432
3431
|
"content": [
|
|
3433
3432
|
{
|
|
3434
3433
|
"styles": {},
|
|
3435
|
-
"text": "Paragraph
|
|
3434
|
+
"text": "Paragraph 2",
|
|
3436
3435
|
"type": "text",
|
|
3437
3436
|
},
|
|
3438
3437
|
],
|
|
3439
|
-
"id": "paragraph-
|
|
3438
|
+
"id": "paragraph-2",
|
|
3440
3439
|
"props": {
|
|
3441
3440
|
"backgroundColor": "default",
|
|
3442
3441
|
"textAlignment": "left",
|
|
@@ -3449,22 +3448,11 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3449
3448
|
"content": [
|
|
3450
3449
|
{
|
|
3451
3450
|
"styles": {},
|
|
3452
|
-
"text": "Paragraph
|
|
3451
|
+
"text": "Paragraph 1",
|
|
3453
3452
|
"type": "text",
|
|
3454
3453
|
},
|
|
3455
3454
|
],
|
|
3456
|
-
"id": "paragraph-
|
|
3457
|
-
"props": {
|
|
3458
|
-
"backgroundColor": "default",
|
|
3459
|
-
"textAlignment": "left",
|
|
3460
|
-
"textColor": "default",
|
|
3461
|
-
},
|
|
3462
|
-
"type": "paragraph",
|
|
3463
|
-
},
|
|
3464
|
-
{
|
|
3465
|
-
"children": [],
|
|
3466
|
-
"content": [],
|
|
3467
|
-
"id": "trailing-paragraph",
|
|
3455
|
+
"id": "paragraph-1",
|
|
3468
3456
|
"props": {
|
|
3469
3457
|
"backgroundColor": "default",
|
|
3470
3458
|
"textAlignment": "left",
|
|
@@ -3475,15 +3463,33 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3475
3463
|
{
|
|
3476
3464
|
"children": [
|
|
3477
3465
|
{
|
|
3478
|
-
"children": [
|
|
3466
|
+
"children": [
|
|
3467
|
+
{
|
|
3468
|
+
"children": [],
|
|
3469
|
+
"content": [
|
|
3470
|
+
{
|
|
3471
|
+
"styles": {},
|
|
3472
|
+
"text": "Double Nested Paragraph 0",
|
|
3473
|
+
"type": "text",
|
|
3474
|
+
},
|
|
3475
|
+
],
|
|
3476
|
+
"id": "double-nested-paragraph-0",
|
|
3477
|
+
"props": {
|
|
3478
|
+
"backgroundColor": "default",
|
|
3479
|
+
"textAlignment": "left",
|
|
3480
|
+
"textColor": "default",
|
|
3481
|
+
},
|
|
3482
|
+
"type": "paragraph",
|
|
3483
|
+
},
|
|
3484
|
+
],
|
|
3479
3485
|
"content": [
|
|
3480
3486
|
{
|
|
3481
3487
|
"styles": {},
|
|
3482
|
-
"text": "
|
|
3488
|
+
"text": "Nested Paragraph 0",
|
|
3483
3489
|
"type": "text",
|
|
3484
3490
|
},
|
|
3485
3491
|
],
|
|
3486
|
-
"id": "
|
|
3492
|
+
"id": "nested-paragraph-0",
|
|
3487
3493
|
"props": {
|
|
3488
3494
|
"backgroundColor": "default",
|
|
3489
3495
|
"textAlignment": "left",
|
|
@@ -3495,11 +3501,11 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3495
3501
|
"content": [
|
|
3496
3502
|
{
|
|
3497
3503
|
"styles": {},
|
|
3498
|
-
"text": "
|
|
3504
|
+
"text": "Paragraph with children",
|
|
3499
3505
|
"type": "text",
|
|
3500
3506
|
},
|
|
3501
3507
|
],
|
|
3502
|
-
"id": "
|
|
3508
|
+
"id": "paragraph-with-children",
|
|
3503
3509
|
"props": {
|
|
3504
3510
|
"backgroundColor": "default",
|
|
3505
3511
|
"textAlignment": "left",
|
|
@@ -3512,28 +3518,11 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3512
3518
|
"content": [
|
|
3513
3519
|
{
|
|
3514
3520
|
"styles": {},
|
|
3515
|
-
"text": "Paragraph
|
|
3521
|
+
"text": "Paragraph with props",
|
|
3516
3522
|
"type": "text",
|
|
3517
3523
|
},
|
|
3518
3524
|
],
|
|
3519
|
-
"id": "paragraph-
|
|
3520
|
-
"props": {
|
|
3521
|
-
"backgroundColor": "default",
|
|
3522
|
-
"textAlignment": "left",
|
|
3523
|
-
"textColor": "default",
|
|
3524
|
-
},
|
|
3525
|
-
"type": "paragraph",
|
|
3526
|
-
},
|
|
3527
|
-
{
|
|
3528
|
-
"children": [],
|
|
3529
|
-
"content": [
|
|
3530
|
-
{
|
|
3531
|
-
"styles": {},
|
|
3532
|
-
"text": "Paragraph with props",
|
|
3533
|
-
"type": "text",
|
|
3534
|
-
},
|
|
3535
|
-
],
|
|
3536
|
-
"id": "paragraph-with-props",
|
|
3525
|
+
"id": "paragraph-with-props",
|
|
3537
3526
|
"props": {
|
|
3538
3527
|
"backgroundColor": "default",
|
|
3539
3528
|
"textAlignment": "center",
|
|
@@ -3975,7 +3964,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3975
3964
|
{
|
|
3976
3965
|
"children": [],
|
|
3977
3966
|
"content": [],
|
|
3978
|
-
"id": "
|
|
3967
|
+
"id": "paragraph-9",
|
|
3979
3968
|
"props": {
|
|
3980
3969
|
"backgroundColor": "default",
|
|
3981
3970
|
"textAlignment": "left",
|
|
@@ -3986,7 +3975,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo
|
|
|
3986
3975
|
]
|
|
3987
3976
|
`;
|
|
3988
3977
|
|
|
3989
|
-
exports[`Test moveBlocksDown > Multiple blocks
|
|
3978
|
+
exports[`Test moveBlocksDown > Multiple blocks ending in nested block 1`] = `
|
|
3990
3979
|
[
|
|
3991
3980
|
{
|
|
3992
3981
|
"children": [],
|
|
@@ -4010,11 +3999,11 @@ exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1
|
|
|
4010
3999
|
"content": [
|
|
4011
4000
|
{
|
|
4012
4001
|
"styles": {},
|
|
4013
|
-
"text": "Paragraph
|
|
4002
|
+
"text": "Paragraph 2",
|
|
4014
4003
|
"type": "text",
|
|
4015
4004
|
},
|
|
4016
4005
|
],
|
|
4017
|
-
"id": "paragraph-
|
|
4006
|
+
"id": "paragraph-2",
|
|
4018
4007
|
"props": {
|
|
4019
4008
|
"backgroundColor": "default",
|
|
4020
4009
|
"textAlignment": "left",
|
|
@@ -4027,15 +4016,15 @@ exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1
|
|
|
4027
4016
|
"content": [
|
|
4028
4017
|
{
|
|
4029
4018
|
"styles": {},
|
|
4030
|
-
"text": "Paragraph
|
|
4019
|
+
"text": "Paragraph 1",
|
|
4031
4020
|
"type": "text",
|
|
4032
4021
|
},
|
|
4033
4022
|
],
|
|
4034
|
-
"id": "paragraph-
|
|
4023
|
+
"id": "paragraph-1",
|
|
4035
4024
|
"props": {
|
|
4036
4025
|
"backgroundColor": "default",
|
|
4037
|
-
"textAlignment": "
|
|
4038
|
-
"textColor": "
|
|
4026
|
+
"textAlignment": "left",
|
|
4027
|
+
"textColor": "default",
|
|
4039
4028
|
},
|
|
4040
4029
|
"type": "paragraph",
|
|
4041
4030
|
},
|
|
@@ -4097,15 +4086,15 @@ exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1
|
|
|
4097
4086
|
"content": [
|
|
4098
4087
|
{
|
|
4099
4088
|
"styles": {},
|
|
4100
|
-
"text": "Paragraph
|
|
4089
|
+
"text": "Paragraph with props",
|
|
4101
4090
|
"type": "text",
|
|
4102
4091
|
},
|
|
4103
4092
|
],
|
|
4104
|
-
"id": "paragraph-
|
|
4093
|
+
"id": "paragraph-with-props",
|
|
4105
4094
|
"props": {
|
|
4106
4095
|
"backgroundColor": "default",
|
|
4107
|
-
"textAlignment": "
|
|
4108
|
-
"textColor": "
|
|
4096
|
+
"textAlignment": "center",
|
|
4097
|
+
"textColor": "red",
|
|
4109
4098
|
},
|
|
4110
4099
|
"type": "paragraph",
|
|
4111
4100
|
},
|
|
@@ -4543,7 +4532,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1
|
|
|
4543
4532
|
{
|
|
4544
4533
|
"children": [],
|
|
4545
4534
|
"content": [],
|
|
4546
|
-
"id": "
|
|
4535
|
+
"id": "paragraph-9",
|
|
4547
4536
|
"props": {
|
|
4548
4537
|
"backgroundColor": "default",
|
|
4549
4538
|
"textAlignment": "left",
|
|
@@ -4554,7 +4543,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1
|
|
|
4554
4543
|
]
|
|
4555
4544
|
`;
|
|
4556
4545
|
|
|
4557
|
-
exports[`Test moveBlocksDown > Multiple blocks starting in nested block 1`] = `
|
|
4546
|
+
exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested block 1`] = `
|
|
4558
4547
|
[
|
|
4559
4548
|
{
|
|
4560
4549
|
"children": [],
|
|
@@ -4609,18 +4598,12 @@ exports[`Test moveBlocksDown > Multiple blocks starting in nested block 1`] = `
|
|
|
4609
4598
|
},
|
|
4610
4599
|
{
|
|
4611
4600
|
"children": [],
|
|
4612
|
-
"content": [
|
|
4613
|
-
|
|
4614
|
-
"styles": {},
|
|
4615
|
-
"text": "Paragraph with props",
|
|
4616
|
-
"type": "text",
|
|
4617
|
-
},
|
|
4618
|
-
],
|
|
4619
|
-
"id": "paragraph-with-props",
|
|
4601
|
+
"content": [],
|
|
4602
|
+
"id": "paragraph-9",
|
|
4620
4603
|
"props": {
|
|
4621
4604
|
"backgroundColor": "default",
|
|
4622
|
-
"textAlignment": "
|
|
4623
|
-
"textColor": "
|
|
4605
|
+
"textAlignment": "left",
|
|
4606
|
+
"textColor": "default",
|
|
4624
4607
|
},
|
|
4625
4608
|
"type": "paragraph",
|
|
4626
4609
|
},
|
|
@@ -4676,6 +4659,23 @@ exports[`Test moveBlocksDown > Multiple blocks starting in nested block 1`] = `
|
|
|
4676
4659
|
},
|
|
4677
4660
|
"type": "paragraph",
|
|
4678
4661
|
},
|
|
4662
|
+
{
|
|
4663
|
+
"children": [],
|
|
4664
|
+
"content": [
|
|
4665
|
+
{
|
|
4666
|
+
"styles": {},
|
|
4667
|
+
"text": "Paragraph with props",
|
|
4668
|
+
"type": "text",
|
|
4669
|
+
},
|
|
4670
|
+
],
|
|
4671
|
+
"id": "paragraph-with-props",
|
|
4672
|
+
"props": {
|
|
4673
|
+
"backgroundColor": "default",
|
|
4674
|
+
"textAlignment": "center",
|
|
4675
|
+
"textColor": "red",
|
|
4676
|
+
},
|
|
4677
|
+
"type": "paragraph",
|
|
4678
|
+
},
|
|
4679
4679
|
{
|
|
4680
4680
|
"children": [],
|
|
4681
4681
|
"content": [
|
|
@@ -5107,21 +5107,10 @@ exports[`Test moveBlocksDown > Multiple blocks starting in nested block 1`] = `
|
|
|
5107
5107
|
},
|
|
5108
5108
|
"type": "heading",
|
|
5109
5109
|
},
|
|
5110
|
-
{
|
|
5111
|
-
"children": [],
|
|
5112
|
-
"content": [],
|
|
5113
|
-
"id": "trailing-paragraph",
|
|
5114
|
-
"props": {
|
|
5115
|
-
"backgroundColor": "default",
|
|
5116
|
-
"textAlignment": "left",
|
|
5117
|
-
"textColor": "default",
|
|
5118
|
-
},
|
|
5119
|
-
"type": "paragraph",
|
|
5120
|
-
},
|
|
5121
5110
|
]
|
|
5122
5111
|
`;
|
|
5123
5112
|
|
|
5124
|
-
exports[`Test moveBlocksDown >
|
|
5113
|
+
exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1`] = `
|
|
5125
5114
|
[
|
|
5126
5115
|
{
|
|
5127
5116
|
"children": [],
|
|
@@ -5157,6 +5146,23 @@ exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
|
5157
5146
|
},
|
|
5158
5147
|
"type": "paragraph",
|
|
5159
5148
|
},
|
|
5149
|
+
{
|
|
5150
|
+
"children": [],
|
|
5151
|
+
"content": [
|
|
5152
|
+
{
|
|
5153
|
+
"styles": {},
|
|
5154
|
+
"text": "Paragraph with props",
|
|
5155
|
+
"type": "text",
|
|
5156
|
+
},
|
|
5157
|
+
],
|
|
5158
|
+
"id": "paragraph-with-props",
|
|
5159
|
+
"props": {
|
|
5160
|
+
"backgroundColor": "default",
|
|
5161
|
+
"textAlignment": "center",
|
|
5162
|
+
"textColor": "red",
|
|
5163
|
+
},
|
|
5164
|
+
"type": "paragraph",
|
|
5165
|
+
},
|
|
5160
5166
|
{
|
|
5161
5167
|
"children": [
|
|
5162
5168
|
{
|
|
@@ -5227,23 +5233,6 @@ exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
|
5227
5233
|
},
|
|
5228
5234
|
"type": "paragraph",
|
|
5229
5235
|
},
|
|
5230
|
-
{
|
|
5231
|
-
"children": [],
|
|
5232
|
-
"content": [
|
|
5233
|
-
{
|
|
5234
|
-
"styles": {},
|
|
5235
|
-
"text": "Paragraph with props",
|
|
5236
|
-
"type": "text",
|
|
5237
|
-
},
|
|
5238
|
-
],
|
|
5239
|
-
"id": "paragraph-with-props",
|
|
5240
|
-
"props": {
|
|
5241
|
-
"backgroundColor": "default",
|
|
5242
|
-
"textAlignment": "center",
|
|
5243
|
-
"textColor": "red",
|
|
5244
|
-
},
|
|
5245
|
-
"type": "paragraph",
|
|
5246
|
-
},
|
|
5247
5236
|
{
|
|
5248
5237
|
"children": [],
|
|
5249
5238
|
"content": [
|
|
@@ -5607,7 +5596,43 @@ exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
|
5607
5596
|
"type": "paragraph",
|
|
5608
5597
|
},
|
|
5609
5598
|
{
|
|
5610
|
-
"children": [
|
|
5599
|
+
"children": [
|
|
5600
|
+
{
|
|
5601
|
+
"children": [
|
|
5602
|
+
{
|
|
5603
|
+
"children": [],
|
|
5604
|
+
"content": [
|
|
5605
|
+
{
|
|
5606
|
+
"styles": {},
|
|
5607
|
+
"text": "Double Nested Paragraph 1",
|
|
5608
|
+
"type": "text",
|
|
5609
|
+
},
|
|
5610
|
+
],
|
|
5611
|
+
"id": "double-nested-paragraph-1",
|
|
5612
|
+
"props": {
|
|
5613
|
+
"backgroundColor": "default",
|
|
5614
|
+
"textAlignment": "left",
|
|
5615
|
+
"textColor": "default",
|
|
5616
|
+
},
|
|
5617
|
+
"type": "paragraph",
|
|
5618
|
+
},
|
|
5619
|
+
],
|
|
5620
|
+
"content": [
|
|
5621
|
+
{
|
|
5622
|
+
"styles": {},
|
|
5623
|
+
"text": "Nested Paragraph 1",
|
|
5624
|
+
"type": "text",
|
|
5625
|
+
},
|
|
5626
|
+
],
|
|
5627
|
+
"id": "nested-paragraph-1",
|
|
5628
|
+
"props": {
|
|
5629
|
+
"backgroundColor": "default",
|
|
5630
|
+
"textAlignment": "left",
|
|
5631
|
+
"textColor": "default",
|
|
5632
|
+
},
|
|
5633
|
+
"type": "paragraph",
|
|
5634
|
+
},
|
|
5635
|
+
],
|
|
5611
5636
|
"content": [
|
|
5612
5637
|
{
|
|
5613
5638
|
"styles": {
|
|
@@ -5640,33 +5665,31 @@ exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
|
5640
5665
|
"type": "heading",
|
|
5641
5666
|
},
|
|
5642
5667
|
{
|
|
5643
|
-
"children": [
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
},
|
|
5661
|
-
],
|
|
5668
|
+
"children": [],
|
|
5669
|
+
"content": [],
|
|
5670
|
+
"id": "paragraph-9",
|
|
5671
|
+
"props": {
|
|
5672
|
+
"backgroundColor": "default",
|
|
5673
|
+
"textAlignment": "left",
|
|
5674
|
+
"textColor": "default",
|
|
5675
|
+
},
|
|
5676
|
+
"type": "paragraph",
|
|
5677
|
+
},
|
|
5678
|
+
]
|
|
5679
|
+
`;
|
|
5680
|
+
|
|
5681
|
+
exports[`Test moveBlocksDown > Multiple blocks starting in nested block 1`] = `
|
|
5682
|
+
[
|
|
5683
|
+
{
|
|
5684
|
+
"children": [],
|
|
5662
5685
|
"content": [
|
|
5663
5686
|
{
|
|
5664
5687
|
"styles": {},
|
|
5665
|
-
"text": "
|
|
5688
|
+
"text": "Paragraph 0",
|
|
5666
5689
|
"type": "text",
|
|
5667
5690
|
},
|
|
5668
5691
|
],
|
|
5669
|
-
"id": "
|
|
5692
|
+
"id": "paragraph-0",
|
|
5670
5693
|
"props": {
|
|
5671
5694
|
"backgroundColor": "default",
|
|
5672
5695
|
"textAlignment": "left",
|
|
@@ -5676,8 +5699,14 @@ exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
|
5676
5699
|
},
|
|
5677
5700
|
{
|
|
5678
5701
|
"children": [],
|
|
5679
|
-
"content": [
|
|
5680
|
-
|
|
5702
|
+
"content": [
|
|
5703
|
+
{
|
|
5704
|
+
"styles": {},
|
|
5705
|
+
"text": "Paragraph 1",
|
|
5706
|
+
"type": "text",
|
|
5707
|
+
},
|
|
5708
|
+
],
|
|
5709
|
+
"id": "paragraph-1",
|
|
5681
5710
|
"props": {
|
|
5682
5711
|
"backgroundColor": "default",
|
|
5683
5712
|
"textAlignment": "left",
|
|
@@ -5685,21 +5714,16 @@ exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
|
5685
5714
|
},
|
|
5686
5715
|
"type": "paragraph",
|
|
5687
5716
|
},
|
|
5688
|
-
]
|
|
5689
|
-
`;
|
|
5690
|
-
|
|
5691
|
-
exports[`Test moveBlocksUp > Basic 1`] = `
|
|
5692
|
-
[
|
|
5693
5717
|
{
|
|
5694
5718
|
"children": [],
|
|
5695
5719
|
"content": [
|
|
5696
5720
|
{
|
|
5697
5721
|
"styles": {},
|
|
5698
|
-
"text": "Paragraph
|
|
5722
|
+
"text": "Paragraph with children",
|
|
5699
5723
|
"type": "text",
|
|
5700
5724
|
},
|
|
5701
5725
|
],
|
|
5702
|
-
"id": "paragraph-
|
|
5726
|
+
"id": "paragraph-with-children",
|
|
5703
5727
|
"props": {
|
|
5704
5728
|
"backgroundColor": "default",
|
|
5705
5729
|
"textAlignment": "left",
|
|
@@ -5712,48 +5736,30 @@ exports[`Test moveBlocksUp > Basic 1`] = `
|
|
|
5712
5736
|
"content": [
|
|
5713
5737
|
{
|
|
5714
5738
|
"styles": {},
|
|
5715
|
-
"text": "Paragraph
|
|
5739
|
+
"text": "Paragraph with props",
|
|
5716
5740
|
"type": "text",
|
|
5717
5741
|
},
|
|
5718
5742
|
],
|
|
5719
|
-
"id": "paragraph-
|
|
5743
|
+
"id": "paragraph-with-props",
|
|
5720
5744
|
"props": {
|
|
5721
5745
|
"backgroundColor": "default",
|
|
5722
|
-
"textAlignment": "
|
|
5723
|
-
"textColor": "
|
|
5746
|
+
"textAlignment": "center",
|
|
5747
|
+
"textColor": "red",
|
|
5724
5748
|
},
|
|
5725
5749
|
"type": "paragraph",
|
|
5726
5750
|
},
|
|
5727
5751
|
{
|
|
5728
5752
|
"children": [
|
|
5729
5753
|
{
|
|
5730
|
-
"children": [
|
|
5731
|
-
{
|
|
5732
|
-
"children": [],
|
|
5733
|
-
"content": [
|
|
5734
|
-
{
|
|
5735
|
-
"styles": {},
|
|
5736
|
-
"text": "Double Nested Paragraph 0",
|
|
5737
|
-
"type": "text",
|
|
5738
|
-
},
|
|
5739
|
-
],
|
|
5740
|
-
"id": "double-nested-paragraph-0",
|
|
5741
|
-
"props": {
|
|
5742
|
-
"backgroundColor": "default",
|
|
5743
|
-
"textAlignment": "left",
|
|
5744
|
-
"textColor": "default",
|
|
5745
|
-
},
|
|
5746
|
-
"type": "paragraph",
|
|
5747
|
-
},
|
|
5748
|
-
],
|
|
5754
|
+
"children": [],
|
|
5749
5755
|
"content": [
|
|
5750
5756
|
{
|
|
5751
5757
|
"styles": {},
|
|
5752
|
-
"text": "Nested Paragraph 0",
|
|
5758
|
+
"text": "Double Nested Paragraph 0",
|
|
5753
5759
|
"type": "text",
|
|
5754
5760
|
},
|
|
5755
5761
|
],
|
|
5756
|
-
"id": "nested-paragraph-0",
|
|
5762
|
+
"id": "double-nested-paragraph-0",
|
|
5757
5763
|
"props": {
|
|
5758
5764
|
"backgroundColor": "default",
|
|
5759
5765
|
"textAlignment": "left",
|
|
@@ -5765,11 +5771,11 @@ exports[`Test moveBlocksUp > Basic 1`] = `
|
|
|
5765
5771
|
"content": [
|
|
5766
5772
|
{
|
|
5767
5773
|
"styles": {},
|
|
5768
|
-
"text": "Paragraph
|
|
5774
|
+
"text": "Nested Paragraph 0",
|
|
5769
5775
|
"type": "text",
|
|
5770
5776
|
},
|
|
5771
5777
|
],
|
|
5772
|
-
"id": "paragraph-
|
|
5778
|
+
"id": "nested-paragraph-0",
|
|
5773
5779
|
"props": {
|
|
5774
5780
|
"backgroundColor": "default",
|
|
5775
5781
|
"textAlignment": "left",
|
|
@@ -5799,32 +5805,15 @@ exports[`Test moveBlocksUp > Basic 1`] = `
|
|
|
5799
5805
|
"content": [
|
|
5800
5806
|
{
|
|
5801
5807
|
"styles": {},
|
|
5802
|
-
"text": "Paragraph
|
|
5808
|
+
"text": "Paragraph 3",
|
|
5803
5809
|
"type": "text",
|
|
5804
5810
|
},
|
|
5805
5811
|
],
|
|
5806
|
-
"id": "paragraph-
|
|
5812
|
+
"id": "paragraph-3",
|
|
5807
5813
|
"props": {
|
|
5808
5814
|
"backgroundColor": "default",
|
|
5809
|
-
"textAlignment": "
|
|
5810
|
-
"textColor": "
|
|
5811
|
-
},
|
|
5812
|
-
"type": "paragraph",
|
|
5813
|
-
},
|
|
5814
|
-
{
|
|
5815
|
-
"children": [],
|
|
5816
|
-
"content": [
|
|
5817
|
-
{
|
|
5818
|
-
"styles": {},
|
|
5819
|
-
"text": "Paragraph 3",
|
|
5820
|
-
"type": "text",
|
|
5821
|
-
},
|
|
5822
|
-
],
|
|
5823
|
-
"id": "paragraph-3",
|
|
5824
|
-
"props": {
|
|
5825
|
-
"backgroundColor": "default",
|
|
5826
|
-
"textAlignment": "left",
|
|
5827
|
-
"textColor": "default",
|
|
5815
|
+
"textAlignment": "left",
|
|
5816
|
+
"textColor": "default",
|
|
5828
5817
|
},
|
|
5829
5818
|
"type": "paragraph",
|
|
5830
5819
|
},
|
|
@@ -6245,7 +6234,2277 @@ exports[`Test moveBlocksUp > Basic 1`] = `
|
|
|
6245
6234
|
{
|
|
6246
6235
|
"children": [],
|
|
6247
6236
|
"content": [],
|
|
6248
|
-
"id": "
|
|
6237
|
+
"id": "paragraph-9",
|
|
6238
|
+
"props": {
|
|
6239
|
+
"backgroundColor": "default",
|
|
6240
|
+
"textAlignment": "left",
|
|
6241
|
+
"textColor": "default",
|
|
6242
|
+
},
|
|
6243
|
+
"type": "paragraph",
|
|
6244
|
+
},
|
|
6245
|
+
]
|
|
6246
|
+
`;
|
|
6247
|
+
|
|
6248
|
+
exports[`Test moveBlocksDown > Out of children 1`] = `
|
|
6249
|
+
[
|
|
6250
|
+
{
|
|
6251
|
+
"children": [],
|
|
6252
|
+
"content": [
|
|
6253
|
+
{
|
|
6254
|
+
"styles": {},
|
|
6255
|
+
"text": "Paragraph 0",
|
|
6256
|
+
"type": "text",
|
|
6257
|
+
},
|
|
6258
|
+
],
|
|
6259
|
+
"id": "paragraph-0",
|
|
6260
|
+
"props": {
|
|
6261
|
+
"backgroundColor": "default",
|
|
6262
|
+
"textAlignment": "left",
|
|
6263
|
+
"textColor": "default",
|
|
6264
|
+
},
|
|
6265
|
+
"type": "paragraph",
|
|
6266
|
+
},
|
|
6267
|
+
{
|
|
6268
|
+
"children": [],
|
|
6269
|
+
"content": [
|
|
6270
|
+
{
|
|
6271
|
+
"styles": {},
|
|
6272
|
+
"text": "Paragraph 1",
|
|
6273
|
+
"type": "text",
|
|
6274
|
+
},
|
|
6275
|
+
],
|
|
6276
|
+
"id": "paragraph-1",
|
|
6277
|
+
"props": {
|
|
6278
|
+
"backgroundColor": "default",
|
|
6279
|
+
"textAlignment": "left",
|
|
6280
|
+
"textColor": "default",
|
|
6281
|
+
},
|
|
6282
|
+
"type": "paragraph",
|
|
6283
|
+
},
|
|
6284
|
+
{
|
|
6285
|
+
"children": [
|
|
6286
|
+
{
|
|
6287
|
+
"children": [
|
|
6288
|
+
{
|
|
6289
|
+
"children": [],
|
|
6290
|
+
"content": [
|
|
6291
|
+
{
|
|
6292
|
+
"styles": {},
|
|
6293
|
+
"text": "Double Nested Paragraph 0",
|
|
6294
|
+
"type": "text",
|
|
6295
|
+
},
|
|
6296
|
+
],
|
|
6297
|
+
"id": "double-nested-paragraph-0",
|
|
6298
|
+
"props": {
|
|
6299
|
+
"backgroundColor": "default",
|
|
6300
|
+
"textAlignment": "left",
|
|
6301
|
+
"textColor": "default",
|
|
6302
|
+
},
|
|
6303
|
+
"type": "paragraph",
|
|
6304
|
+
},
|
|
6305
|
+
],
|
|
6306
|
+
"content": [
|
|
6307
|
+
{
|
|
6308
|
+
"styles": {},
|
|
6309
|
+
"text": "Nested Paragraph 0",
|
|
6310
|
+
"type": "text",
|
|
6311
|
+
},
|
|
6312
|
+
],
|
|
6313
|
+
"id": "nested-paragraph-0",
|
|
6314
|
+
"props": {
|
|
6315
|
+
"backgroundColor": "default",
|
|
6316
|
+
"textAlignment": "left",
|
|
6317
|
+
"textColor": "default",
|
|
6318
|
+
},
|
|
6319
|
+
"type": "paragraph",
|
|
6320
|
+
},
|
|
6321
|
+
],
|
|
6322
|
+
"content": [
|
|
6323
|
+
{
|
|
6324
|
+
"styles": {},
|
|
6325
|
+
"text": "Paragraph with children",
|
|
6326
|
+
"type": "text",
|
|
6327
|
+
},
|
|
6328
|
+
],
|
|
6329
|
+
"id": "paragraph-with-children",
|
|
6330
|
+
"props": {
|
|
6331
|
+
"backgroundColor": "default",
|
|
6332
|
+
"textAlignment": "left",
|
|
6333
|
+
"textColor": "default",
|
|
6334
|
+
},
|
|
6335
|
+
"type": "paragraph",
|
|
6336
|
+
},
|
|
6337
|
+
{
|
|
6338
|
+
"children": [],
|
|
6339
|
+
"content": [
|
|
6340
|
+
{
|
|
6341
|
+
"styles": {},
|
|
6342
|
+
"text": "Paragraph 2",
|
|
6343
|
+
"type": "text",
|
|
6344
|
+
},
|
|
6345
|
+
],
|
|
6346
|
+
"id": "paragraph-2",
|
|
6347
|
+
"props": {
|
|
6348
|
+
"backgroundColor": "default",
|
|
6349
|
+
"textAlignment": "left",
|
|
6350
|
+
"textColor": "default",
|
|
6351
|
+
},
|
|
6352
|
+
"type": "paragraph",
|
|
6353
|
+
},
|
|
6354
|
+
{
|
|
6355
|
+
"children": [],
|
|
6356
|
+
"content": [
|
|
6357
|
+
{
|
|
6358
|
+
"styles": {},
|
|
6359
|
+
"text": "Paragraph with props",
|
|
6360
|
+
"type": "text",
|
|
6361
|
+
},
|
|
6362
|
+
],
|
|
6363
|
+
"id": "paragraph-with-props",
|
|
6364
|
+
"props": {
|
|
6365
|
+
"backgroundColor": "default",
|
|
6366
|
+
"textAlignment": "center",
|
|
6367
|
+
"textColor": "red",
|
|
6368
|
+
},
|
|
6369
|
+
"type": "paragraph",
|
|
6370
|
+
},
|
|
6371
|
+
{
|
|
6372
|
+
"children": [],
|
|
6373
|
+
"content": [
|
|
6374
|
+
{
|
|
6375
|
+
"styles": {},
|
|
6376
|
+
"text": "Paragraph 3",
|
|
6377
|
+
"type": "text",
|
|
6378
|
+
},
|
|
6379
|
+
],
|
|
6380
|
+
"id": "paragraph-3",
|
|
6381
|
+
"props": {
|
|
6382
|
+
"backgroundColor": "default",
|
|
6383
|
+
"textAlignment": "left",
|
|
6384
|
+
"textColor": "default",
|
|
6385
|
+
},
|
|
6386
|
+
"type": "paragraph",
|
|
6387
|
+
},
|
|
6388
|
+
{
|
|
6389
|
+
"children": [],
|
|
6390
|
+
"content": [
|
|
6391
|
+
{
|
|
6392
|
+
"styles": {
|
|
6393
|
+
"bold": true,
|
|
6394
|
+
},
|
|
6395
|
+
"text": "Paragraph",
|
|
6396
|
+
"type": "text",
|
|
6397
|
+
},
|
|
6398
|
+
{
|
|
6399
|
+
"styles": {},
|
|
6400
|
+
"text": " with styled ",
|
|
6401
|
+
"type": "text",
|
|
6402
|
+
},
|
|
6403
|
+
{
|
|
6404
|
+
"styles": {
|
|
6405
|
+
"italic": true,
|
|
6406
|
+
},
|
|
6407
|
+
"text": "content",
|
|
6408
|
+
"type": "text",
|
|
6409
|
+
},
|
|
6410
|
+
],
|
|
6411
|
+
"id": "paragraph-with-styled-content",
|
|
6412
|
+
"props": {
|
|
6413
|
+
"backgroundColor": "default",
|
|
6414
|
+
"textAlignment": "left",
|
|
6415
|
+
"textColor": "default",
|
|
6416
|
+
},
|
|
6417
|
+
"type": "paragraph",
|
|
6418
|
+
},
|
|
6419
|
+
{
|
|
6420
|
+
"children": [],
|
|
6421
|
+
"content": [
|
|
6422
|
+
{
|
|
6423
|
+
"styles": {},
|
|
6424
|
+
"text": "Paragraph 4",
|
|
6425
|
+
"type": "text",
|
|
6426
|
+
},
|
|
6427
|
+
],
|
|
6428
|
+
"id": "paragraph-4",
|
|
6429
|
+
"props": {
|
|
6430
|
+
"backgroundColor": "default",
|
|
6431
|
+
"textAlignment": "left",
|
|
6432
|
+
"textColor": "default",
|
|
6433
|
+
},
|
|
6434
|
+
"type": "paragraph",
|
|
6435
|
+
},
|
|
6436
|
+
{
|
|
6437
|
+
"children": [],
|
|
6438
|
+
"content": [
|
|
6439
|
+
{
|
|
6440
|
+
"styles": {},
|
|
6441
|
+
"text": "Heading 1",
|
|
6442
|
+
"type": "text",
|
|
6443
|
+
},
|
|
6444
|
+
],
|
|
6445
|
+
"id": "heading-0",
|
|
6446
|
+
"props": {
|
|
6447
|
+
"backgroundColor": "default",
|
|
6448
|
+
"isToggleable": false,
|
|
6449
|
+
"level": 1,
|
|
6450
|
+
"textAlignment": "left",
|
|
6451
|
+
"textColor": "default",
|
|
6452
|
+
},
|
|
6453
|
+
"type": "heading",
|
|
6454
|
+
},
|
|
6455
|
+
{
|
|
6456
|
+
"children": [],
|
|
6457
|
+
"content": [
|
|
6458
|
+
{
|
|
6459
|
+
"styles": {},
|
|
6460
|
+
"text": "Paragraph 5",
|
|
6461
|
+
"type": "text",
|
|
6462
|
+
},
|
|
6463
|
+
],
|
|
6464
|
+
"id": "paragraph-5",
|
|
6465
|
+
"props": {
|
|
6466
|
+
"backgroundColor": "default",
|
|
6467
|
+
"textAlignment": "left",
|
|
6468
|
+
"textColor": "default",
|
|
6469
|
+
},
|
|
6470
|
+
"type": "paragraph",
|
|
6471
|
+
},
|
|
6472
|
+
{
|
|
6473
|
+
"children": [],
|
|
6474
|
+
"content": undefined,
|
|
6475
|
+
"id": "image-0",
|
|
6476
|
+
"props": {
|
|
6477
|
+
"backgroundColor": "default",
|
|
6478
|
+
"caption": "",
|
|
6479
|
+
"name": "",
|
|
6480
|
+
"showPreview": true,
|
|
6481
|
+
"textAlignment": "left",
|
|
6482
|
+
"url": "https://via.placeholder.com/150",
|
|
6483
|
+
},
|
|
6484
|
+
"type": "image",
|
|
6485
|
+
},
|
|
6486
|
+
{
|
|
6487
|
+
"children": [],
|
|
6488
|
+
"content": [
|
|
6489
|
+
{
|
|
6490
|
+
"styles": {},
|
|
6491
|
+
"text": "Paragraph 6",
|
|
6492
|
+
"type": "text",
|
|
6493
|
+
},
|
|
6494
|
+
],
|
|
6495
|
+
"id": "paragraph-6",
|
|
6496
|
+
"props": {
|
|
6497
|
+
"backgroundColor": "default",
|
|
6498
|
+
"textAlignment": "left",
|
|
6499
|
+
"textColor": "default",
|
|
6500
|
+
},
|
|
6501
|
+
"type": "paragraph",
|
|
6502
|
+
},
|
|
6503
|
+
{
|
|
6504
|
+
"children": [],
|
|
6505
|
+
"content": {
|
|
6506
|
+
"columnWidths": [
|
|
6507
|
+
undefined,
|
|
6508
|
+
undefined,
|
|
6509
|
+
undefined,
|
|
6510
|
+
],
|
|
6511
|
+
"headerCols": undefined,
|
|
6512
|
+
"headerRows": undefined,
|
|
6513
|
+
"rows": [
|
|
6514
|
+
{
|
|
6515
|
+
"cells": [
|
|
6516
|
+
{
|
|
6517
|
+
"content": [
|
|
6518
|
+
{
|
|
6519
|
+
"styles": {},
|
|
6520
|
+
"text": "Cell 1",
|
|
6521
|
+
"type": "text",
|
|
6522
|
+
},
|
|
6523
|
+
],
|
|
6524
|
+
"props": {
|
|
6525
|
+
"backgroundColor": "default",
|
|
6526
|
+
"colspan": 1,
|
|
6527
|
+
"rowspan": 1,
|
|
6528
|
+
"textAlignment": "left",
|
|
6529
|
+
"textColor": "default",
|
|
6530
|
+
},
|
|
6531
|
+
"type": "tableCell",
|
|
6532
|
+
},
|
|
6533
|
+
{
|
|
6534
|
+
"content": [
|
|
6535
|
+
{
|
|
6536
|
+
"styles": {},
|
|
6537
|
+
"text": "Cell 2",
|
|
6538
|
+
"type": "text",
|
|
6539
|
+
},
|
|
6540
|
+
],
|
|
6541
|
+
"props": {
|
|
6542
|
+
"backgroundColor": "default",
|
|
6543
|
+
"colspan": 1,
|
|
6544
|
+
"rowspan": 1,
|
|
6545
|
+
"textAlignment": "left",
|
|
6546
|
+
"textColor": "default",
|
|
6547
|
+
},
|
|
6548
|
+
"type": "tableCell",
|
|
6549
|
+
},
|
|
6550
|
+
{
|
|
6551
|
+
"content": [
|
|
6552
|
+
{
|
|
6553
|
+
"styles": {},
|
|
6554
|
+
"text": "Cell 3",
|
|
6555
|
+
"type": "text",
|
|
6556
|
+
},
|
|
6557
|
+
],
|
|
6558
|
+
"props": {
|
|
6559
|
+
"backgroundColor": "default",
|
|
6560
|
+
"colspan": 1,
|
|
6561
|
+
"rowspan": 1,
|
|
6562
|
+
"textAlignment": "left",
|
|
6563
|
+
"textColor": "default",
|
|
6564
|
+
},
|
|
6565
|
+
"type": "tableCell",
|
|
6566
|
+
},
|
|
6567
|
+
],
|
|
6568
|
+
},
|
|
6569
|
+
{
|
|
6570
|
+
"cells": [
|
|
6571
|
+
{
|
|
6572
|
+
"content": [
|
|
6573
|
+
{
|
|
6574
|
+
"styles": {},
|
|
6575
|
+
"text": "Cell 4",
|
|
6576
|
+
"type": "text",
|
|
6577
|
+
},
|
|
6578
|
+
],
|
|
6579
|
+
"props": {
|
|
6580
|
+
"backgroundColor": "default",
|
|
6581
|
+
"colspan": 1,
|
|
6582
|
+
"rowspan": 1,
|
|
6583
|
+
"textAlignment": "left",
|
|
6584
|
+
"textColor": "default",
|
|
6585
|
+
},
|
|
6586
|
+
"type": "tableCell",
|
|
6587
|
+
},
|
|
6588
|
+
{
|
|
6589
|
+
"content": [
|
|
6590
|
+
{
|
|
6591
|
+
"styles": {},
|
|
6592
|
+
"text": "Cell 5",
|
|
6593
|
+
"type": "text",
|
|
6594
|
+
},
|
|
6595
|
+
],
|
|
6596
|
+
"props": {
|
|
6597
|
+
"backgroundColor": "default",
|
|
6598
|
+
"colspan": 1,
|
|
6599
|
+
"rowspan": 1,
|
|
6600
|
+
"textAlignment": "left",
|
|
6601
|
+
"textColor": "default",
|
|
6602
|
+
},
|
|
6603
|
+
"type": "tableCell",
|
|
6604
|
+
},
|
|
6605
|
+
{
|
|
6606
|
+
"content": [
|
|
6607
|
+
{
|
|
6608
|
+
"styles": {},
|
|
6609
|
+
"text": "Cell 6",
|
|
6610
|
+
"type": "text",
|
|
6611
|
+
},
|
|
6612
|
+
],
|
|
6613
|
+
"props": {
|
|
6614
|
+
"backgroundColor": "default",
|
|
6615
|
+
"colspan": 1,
|
|
6616
|
+
"rowspan": 1,
|
|
6617
|
+
"textAlignment": "left",
|
|
6618
|
+
"textColor": "default",
|
|
6619
|
+
},
|
|
6620
|
+
"type": "tableCell",
|
|
6621
|
+
},
|
|
6622
|
+
],
|
|
6623
|
+
},
|
|
6624
|
+
{
|
|
6625
|
+
"cells": [
|
|
6626
|
+
{
|
|
6627
|
+
"content": [
|
|
6628
|
+
{
|
|
6629
|
+
"styles": {},
|
|
6630
|
+
"text": "Cell 7",
|
|
6631
|
+
"type": "text",
|
|
6632
|
+
},
|
|
6633
|
+
],
|
|
6634
|
+
"props": {
|
|
6635
|
+
"backgroundColor": "default",
|
|
6636
|
+
"colspan": 1,
|
|
6637
|
+
"rowspan": 1,
|
|
6638
|
+
"textAlignment": "left",
|
|
6639
|
+
"textColor": "default",
|
|
6640
|
+
},
|
|
6641
|
+
"type": "tableCell",
|
|
6642
|
+
},
|
|
6643
|
+
{
|
|
6644
|
+
"content": [
|
|
6645
|
+
{
|
|
6646
|
+
"styles": {},
|
|
6647
|
+
"text": "Cell 8",
|
|
6648
|
+
"type": "text",
|
|
6649
|
+
},
|
|
6650
|
+
],
|
|
6651
|
+
"props": {
|
|
6652
|
+
"backgroundColor": "default",
|
|
6653
|
+
"colspan": 1,
|
|
6654
|
+
"rowspan": 1,
|
|
6655
|
+
"textAlignment": "left",
|
|
6656
|
+
"textColor": "default",
|
|
6657
|
+
},
|
|
6658
|
+
"type": "tableCell",
|
|
6659
|
+
},
|
|
6660
|
+
{
|
|
6661
|
+
"content": [
|
|
6662
|
+
{
|
|
6663
|
+
"styles": {},
|
|
6664
|
+
"text": "Cell 9",
|
|
6665
|
+
"type": "text",
|
|
6666
|
+
},
|
|
6667
|
+
],
|
|
6668
|
+
"props": {
|
|
6669
|
+
"backgroundColor": "default",
|
|
6670
|
+
"colspan": 1,
|
|
6671
|
+
"rowspan": 1,
|
|
6672
|
+
"textAlignment": "left",
|
|
6673
|
+
"textColor": "default",
|
|
6674
|
+
},
|
|
6675
|
+
"type": "tableCell",
|
|
6676
|
+
},
|
|
6677
|
+
],
|
|
6678
|
+
},
|
|
6679
|
+
],
|
|
6680
|
+
"type": "tableContent",
|
|
6681
|
+
},
|
|
6682
|
+
"id": "table-0",
|
|
6683
|
+
"props": {
|
|
6684
|
+
"textColor": "default",
|
|
6685
|
+
},
|
|
6686
|
+
"type": "table",
|
|
6687
|
+
},
|
|
6688
|
+
{
|
|
6689
|
+
"children": [],
|
|
6690
|
+
"content": [
|
|
6691
|
+
{
|
|
6692
|
+
"styles": {},
|
|
6693
|
+
"text": "Paragraph 7",
|
|
6694
|
+
"type": "text",
|
|
6695
|
+
},
|
|
6696
|
+
],
|
|
6697
|
+
"id": "paragraph-7",
|
|
6698
|
+
"props": {
|
|
6699
|
+
"backgroundColor": "default",
|
|
6700
|
+
"textAlignment": "left",
|
|
6701
|
+
"textColor": "default",
|
|
6702
|
+
},
|
|
6703
|
+
"type": "paragraph",
|
|
6704
|
+
},
|
|
6705
|
+
{
|
|
6706
|
+
"children": [],
|
|
6707
|
+
"content": [],
|
|
6708
|
+
"id": "empty-paragraph",
|
|
6709
|
+
"props": {
|
|
6710
|
+
"backgroundColor": "default",
|
|
6711
|
+
"textAlignment": "left",
|
|
6712
|
+
"textColor": "default",
|
|
6713
|
+
},
|
|
6714
|
+
"type": "paragraph",
|
|
6715
|
+
},
|
|
6716
|
+
{
|
|
6717
|
+
"children": [],
|
|
6718
|
+
"content": [
|
|
6719
|
+
{
|
|
6720
|
+
"styles": {},
|
|
6721
|
+
"text": "Paragraph 8",
|
|
6722
|
+
"type": "text",
|
|
6723
|
+
},
|
|
6724
|
+
],
|
|
6725
|
+
"id": "paragraph-8",
|
|
6726
|
+
"props": {
|
|
6727
|
+
"backgroundColor": "default",
|
|
6728
|
+
"textAlignment": "left",
|
|
6729
|
+
"textColor": "default",
|
|
6730
|
+
},
|
|
6731
|
+
"type": "paragraph",
|
|
6732
|
+
},
|
|
6733
|
+
{
|
|
6734
|
+
"children": [],
|
|
6735
|
+
"content": [
|
|
6736
|
+
{
|
|
6737
|
+
"styles": {
|
|
6738
|
+
"bold": true,
|
|
6739
|
+
},
|
|
6740
|
+
"text": "Heading",
|
|
6741
|
+
"type": "text",
|
|
6742
|
+
},
|
|
6743
|
+
{
|
|
6744
|
+
"styles": {},
|
|
6745
|
+
"text": " with styled ",
|
|
6746
|
+
"type": "text",
|
|
6747
|
+
},
|
|
6748
|
+
{
|
|
6749
|
+
"styles": {
|
|
6750
|
+
"italic": true,
|
|
6751
|
+
},
|
|
6752
|
+
"text": "content",
|
|
6753
|
+
"type": "text",
|
|
6754
|
+
},
|
|
6755
|
+
],
|
|
6756
|
+
"id": "heading-with-everything",
|
|
6757
|
+
"props": {
|
|
6758
|
+
"backgroundColor": "red",
|
|
6759
|
+
"isToggleable": false,
|
|
6760
|
+
"level": 2,
|
|
6761
|
+
"textAlignment": "center",
|
|
6762
|
+
"textColor": "red",
|
|
6763
|
+
},
|
|
6764
|
+
"type": "heading",
|
|
6765
|
+
},
|
|
6766
|
+
{
|
|
6767
|
+
"children": [
|
|
6768
|
+
{
|
|
6769
|
+
"children": [],
|
|
6770
|
+
"content": [
|
|
6771
|
+
{
|
|
6772
|
+
"styles": {},
|
|
6773
|
+
"text": "Double Nested Paragraph 1",
|
|
6774
|
+
"type": "text",
|
|
6775
|
+
},
|
|
6776
|
+
],
|
|
6777
|
+
"id": "double-nested-paragraph-1",
|
|
6778
|
+
"props": {
|
|
6779
|
+
"backgroundColor": "default",
|
|
6780
|
+
"textAlignment": "left",
|
|
6781
|
+
"textColor": "default",
|
|
6782
|
+
},
|
|
6783
|
+
"type": "paragraph",
|
|
6784
|
+
},
|
|
6785
|
+
],
|
|
6786
|
+
"content": [
|
|
6787
|
+
{
|
|
6788
|
+
"styles": {},
|
|
6789
|
+
"text": "Nested Paragraph 1",
|
|
6790
|
+
"type": "text",
|
|
6791
|
+
},
|
|
6792
|
+
],
|
|
6793
|
+
"id": "nested-paragraph-1",
|
|
6794
|
+
"props": {
|
|
6795
|
+
"backgroundColor": "default",
|
|
6796
|
+
"textAlignment": "left",
|
|
6797
|
+
"textColor": "default",
|
|
6798
|
+
},
|
|
6799
|
+
"type": "paragraph",
|
|
6800
|
+
},
|
|
6801
|
+
{
|
|
6802
|
+
"children": [],
|
|
6803
|
+
"content": [],
|
|
6804
|
+
"id": "paragraph-9",
|
|
6805
|
+
"props": {
|
|
6806
|
+
"backgroundColor": "default",
|
|
6807
|
+
"textAlignment": "left",
|
|
6808
|
+
"textColor": "default",
|
|
6809
|
+
},
|
|
6810
|
+
"type": "paragraph",
|
|
6811
|
+
},
|
|
6812
|
+
]
|
|
6813
|
+
`;
|
|
6814
|
+
|
|
6815
|
+
exports[`Test moveBlocksUp > Basic 1`] = `
|
|
6816
|
+
[
|
|
6817
|
+
{
|
|
6818
|
+
"children": [],
|
|
6819
|
+
"content": [
|
|
6820
|
+
{
|
|
6821
|
+
"styles": {},
|
|
6822
|
+
"text": "Paragraph 1",
|
|
6823
|
+
"type": "text",
|
|
6824
|
+
},
|
|
6825
|
+
],
|
|
6826
|
+
"id": "paragraph-1",
|
|
6827
|
+
"props": {
|
|
6828
|
+
"backgroundColor": "default",
|
|
6829
|
+
"textAlignment": "left",
|
|
6830
|
+
"textColor": "default",
|
|
6831
|
+
},
|
|
6832
|
+
"type": "paragraph",
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
"children": [],
|
|
6836
|
+
"content": [
|
|
6837
|
+
{
|
|
6838
|
+
"styles": {},
|
|
6839
|
+
"text": "Paragraph 0",
|
|
6840
|
+
"type": "text",
|
|
6841
|
+
},
|
|
6842
|
+
],
|
|
6843
|
+
"id": "paragraph-0",
|
|
6844
|
+
"props": {
|
|
6845
|
+
"backgroundColor": "default",
|
|
6846
|
+
"textAlignment": "left",
|
|
6847
|
+
"textColor": "default",
|
|
6848
|
+
},
|
|
6849
|
+
"type": "paragraph",
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
"children": [
|
|
6853
|
+
{
|
|
6854
|
+
"children": [
|
|
6855
|
+
{
|
|
6856
|
+
"children": [],
|
|
6857
|
+
"content": [
|
|
6858
|
+
{
|
|
6859
|
+
"styles": {},
|
|
6860
|
+
"text": "Double Nested Paragraph 0",
|
|
6861
|
+
"type": "text",
|
|
6862
|
+
},
|
|
6863
|
+
],
|
|
6864
|
+
"id": "double-nested-paragraph-0",
|
|
6865
|
+
"props": {
|
|
6866
|
+
"backgroundColor": "default",
|
|
6867
|
+
"textAlignment": "left",
|
|
6868
|
+
"textColor": "default",
|
|
6869
|
+
},
|
|
6870
|
+
"type": "paragraph",
|
|
6871
|
+
},
|
|
6872
|
+
],
|
|
6873
|
+
"content": [
|
|
6874
|
+
{
|
|
6875
|
+
"styles": {},
|
|
6876
|
+
"text": "Nested Paragraph 0",
|
|
6877
|
+
"type": "text",
|
|
6878
|
+
},
|
|
6879
|
+
],
|
|
6880
|
+
"id": "nested-paragraph-0",
|
|
6881
|
+
"props": {
|
|
6882
|
+
"backgroundColor": "default",
|
|
6883
|
+
"textAlignment": "left",
|
|
6884
|
+
"textColor": "default",
|
|
6885
|
+
},
|
|
6886
|
+
"type": "paragraph",
|
|
6887
|
+
},
|
|
6888
|
+
],
|
|
6889
|
+
"content": [
|
|
6890
|
+
{
|
|
6891
|
+
"styles": {},
|
|
6892
|
+
"text": "Paragraph with children",
|
|
6893
|
+
"type": "text",
|
|
6894
|
+
},
|
|
6895
|
+
],
|
|
6896
|
+
"id": "paragraph-with-children",
|
|
6897
|
+
"props": {
|
|
6898
|
+
"backgroundColor": "default",
|
|
6899
|
+
"textAlignment": "left",
|
|
6900
|
+
"textColor": "default",
|
|
6901
|
+
},
|
|
6902
|
+
"type": "paragraph",
|
|
6903
|
+
},
|
|
6904
|
+
{
|
|
6905
|
+
"children": [],
|
|
6906
|
+
"content": [
|
|
6907
|
+
{
|
|
6908
|
+
"styles": {},
|
|
6909
|
+
"text": "Paragraph 2",
|
|
6910
|
+
"type": "text",
|
|
6911
|
+
},
|
|
6912
|
+
],
|
|
6913
|
+
"id": "paragraph-2",
|
|
6914
|
+
"props": {
|
|
6915
|
+
"backgroundColor": "default",
|
|
6916
|
+
"textAlignment": "left",
|
|
6917
|
+
"textColor": "default",
|
|
6918
|
+
},
|
|
6919
|
+
"type": "paragraph",
|
|
6920
|
+
},
|
|
6921
|
+
{
|
|
6922
|
+
"children": [],
|
|
6923
|
+
"content": [
|
|
6924
|
+
{
|
|
6925
|
+
"styles": {},
|
|
6926
|
+
"text": "Paragraph with props",
|
|
6927
|
+
"type": "text",
|
|
6928
|
+
},
|
|
6929
|
+
],
|
|
6930
|
+
"id": "paragraph-with-props",
|
|
6931
|
+
"props": {
|
|
6932
|
+
"backgroundColor": "default",
|
|
6933
|
+
"textAlignment": "center",
|
|
6934
|
+
"textColor": "red",
|
|
6935
|
+
},
|
|
6936
|
+
"type": "paragraph",
|
|
6937
|
+
},
|
|
6938
|
+
{
|
|
6939
|
+
"children": [],
|
|
6940
|
+
"content": [
|
|
6941
|
+
{
|
|
6942
|
+
"styles": {},
|
|
6943
|
+
"text": "Paragraph 3",
|
|
6944
|
+
"type": "text",
|
|
6945
|
+
},
|
|
6946
|
+
],
|
|
6947
|
+
"id": "paragraph-3",
|
|
6948
|
+
"props": {
|
|
6949
|
+
"backgroundColor": "default",
|
|
6950
|
+
"textAlignment": "left",
|
|
6951
|
+
"textColor": "default",
|
|
6952
|
+
},
|
|
6953
|
+
"type": "paragraph",
|
|
6954
|
+
},
|
|
6955
|
+
{
|
|
6956
|
+
"children": [],
|
|
6957
|
+
"content": [
|
|
6958
|
+
{
|
|
6959
|
+
"styles": {
|
|
6960
|
+
"bold": true,
|
|
6961
|
+
},
|
|
6962
|
+
"text": "Paragraph",
|
|
6963
|
+
"type": "text",
|
|
6964
|
+
},
|
|
6965
|
+
{
|
|
6966
|
+
"styles": {},
|
|
6967
|
+
"text": " with styled ",
|
|
6968
|
+
"type": "text",
|
|
6969
|
+
},
|
|
6970
|
+
{
|
|
6971
|
+
"styles": {
|
|
6972
|
+
"italic": true,
|
|
6973
|
+
},
|
|
6974
|
+
"text": "content",
|
|
6975
|
+
"type": "text",
|
|
6976
|
+
},
|
|
6977
|
+
],
|
|
6978
|
+
"id": "paragraph-with-styled-content",
|
|
6979
|
+
"props": {
|
|
6980
|
+
"backgroundColor": "default",
|
|
6981
|
+
"textAlignment": "left",
|
|
6982
|
+
"textColor": "default",
|
|
6983
|
+
},
|
|
6984
|
+
"type": "paragraph",
|
|
6985
|
+
},
|
|
6986
|
+
{
|
|
6987
|
+
"children": [],
|
|
6988
|
+
"content": [
|
|
6989
|
+
{
|
|
6990
|
+
"styles": {},
|
|
6991
|
+
"text": "Paragraph 4",
|
|
6992
|
+
"type": "text",
|
|
6993
|
+
},
|
|
6994
|
+
],
|
|
6995
|
+
"id": "paragraph-4",
|
|
6996
|
+
"props": {
|
|
6997
|
+
"backgroundColor": "default",
|
|
6998
|
+
"textAlignment": "left",
|
|
6999
|
+
"textColor": "default",
|
|
7000
|
+
},
|
|
7001
|
+
"type": "paragraph",
|
|
7002
|
+
},
|
|
7003
|
+
{
|
|
7004
|
+
"children": [],
|
|
7005
|
+
"content": [
|
|
7006
|
+
{
|
|
7007
|
+
"styles": {},
|
|
7008
|
+
"text": "Heading 1",
|
|
7009
|
+
"type": "text",
|
|
7010
|
+
},
|
|
7011
|
+
],
|
|
7012
|
+
"id": "heading-0",
|
|
7013
|
+
"props": {
|
|
7014
|
+
"backgroundColor": "default",
|
|
7015
|
+
"isToggleable": false,
|
|
7016
|
+
"level": 1,
|
|
7017
|
+
"textAlignment": "left",
|
|
7018
|
+
"textColor": "default",
|
|
7019
|
+
},
|
|
7020
|
+
"type": "heading",
|
|
7021
|
+
},
|
|
7022
|
+
{
|
|
7023
|
+
"children": [],
|
|
7024
|
+
"content": [
|
|
7025
|
+
{
|
|
7026
|
+
"styles": {},
|
|
7027
|
+
"text": "Paragraph 5",
|
|
7028
|
+
"type": "text",
|
|
7029
|
+
},
|
|
7030
|
+
],
|
|
7031
|
+
"id": "paragraph-5",
|
|
7032
|
+
"props": {
|
|
7033
|
+
"backgroundColor": "default",
|
|
7034
|
+
"textAlignment": "left",
|
|
7035
|
+
"textColor": "default",
|
|
7036
|
+
},
|
|
7037
|
+
"type": "paragraph",
|
|
7038
|
+
},
|
|
7039
|
+
{
|
|
7040
|
+
"children": [],
|
|
7041
|
+
"content": undefined,
|
|
7042
|
+
"id": "image-0",
|
|
7043
|
+
"props": {
|
|
7044
|
+
"backgroundColor": "default",
|
|
7045
|
+
"caption": "",
|
|
7046
|
+
"name": "",
|
|
7047
|
+
"showPreview": true,
|
|
7048
|
+
"textAlignment": "left",
|
|
7049
|
+
"url": "https://via.placeholder.com/150",
|
|
7050
|
+
},
|
|
7051
|
+
"type": "image",
|
|
7052
|
+
},
|
|
7053
|
+
{
|
|
7054
|
+
"children": [],
|
|
7055
|
+
"content": [
|
|
7056
|
+
{
|
|
7057
|
+
"styles": {},
|
|
7058
|
+
"text": "Paragraph 6",
|
|
7059
|
+
"type": "text",
|
|
7060
|
+
},
|
|
7061
|
+
],
|
|
7062
|
+
"id": "paragraph-6",
|
|
7063
|
+
"props": {
|
|
7064
|
+
"backgroundColor": "default",
|
|
7065
|
+
"textAlignment": "left",
|
|
7066
|
+
"textColor": "default",
|
|
7067
|
+
},
|
|
7068
|
+
"type": "paragraph",
|
|
7069
|
+
},
|
|
7070
|
+
{
|
|
7071
|
+
"children": [],
|
|
7072
|
+
"content": {
|
|
7073
|
+
"columnWidths": [
|
|
7074
|
+
undefined,
|
|
7075
|
+
undefined,
|
|
7076
|
+
undefined,
|
|
7077
|
+
],
|
|
7078
|
+
"headerCols": undefined,
|
|
7079
|
+
"headerRows": undefined,
|
|
7080
|
+
"rows": [
|
|
7081
|
+
{
|
|
7082
|
+
"cells": [
|
|
7083
|
+
{
|
|
7084
|
+
"content": [
|
|
7085
|
+
{
|
|
7086
|
+
"styles": {},
|
|
7087
|
+
"text": "Cell 1",
|
|
7088
|
+
"type": "text",
|
|
7089
|
+
},
|
|
7090
|
+
],
|
|
7091
|
+
"props": {
|
|
7092
|
+
"backgroundColor": "default",
|
|
7093
|
+
"colspan": 1,
|
|
7094
|
+
"rowspan": 1,
|
|
7095
|
+
"textAlignment": "left",
|
|
7096
|
+
"textColor": "default",
|
|
7097
|
+
},
|
|
7098
|
+
"type": "tableCell",
|
|
7099
|
+
},
|
|
7100
|
+
{
|
|
7101
|
+
"content": [
|
|
7102
|
+
{
|
|
7103
|
+
"styles": {},
|
|
7104
|
+
"text": "Cell 2",
|
|
7105
|
+
"type": "text",
|
|
7106
|
+
},
|
|
7107
|
+
],
|
|
7108
|
+
"props": {
|
|
7109
|
+
"backgroundColor": "default",
|
|
7110
|
+
"colspan": 1,
|
|
7111
|
+
"rowspan": 1,
|
|
7112
|
+
"textAlignment": "left",
|
|
7113
|
+
"textColor": "default",
|
|
7114
|
+
},
|
|
7115
|
+
"type": "tableCell",
|
|
7116
|
+
},
|
|
7117
|
+
{
|
|
7118
|
+
"content": [
|
|
7119
|
+
{
|
|
7120
|
+
"styles": {},
|
|
7121
|
+
"text": "Cell 3",
|
|
7122
|
+
"type": "text",
|
|
7123
|
+
},
|
|
7124
|
+
],
|
|
7125
|
+
"props": {
|
|
7126
|
+
"backgroundColor": "default",
|
|
7127
|
+
"colspan": 1,
|
|
7128
|
+
"rowspan": 1,
|
|
7129
|
+
"textAlignment": "left",
|
|
7130
|
+
"textColor": "default",
|
|
7131
|
+
},
|
|
7132
|
+
"type": "tableCell",
|
|
7133
|
+
},
|
|
7134
|
+
],
|
|
7135
|
+
},
|
|
7136
|
+
{
|
|
7137
|
+
"cells": [
|
|
7138
|
+
{
|
|
7139
|
+
"content": [
|
|
7140
|
+
{
|
|
7141
|
+
"styles": {},
|
|
7142
|
+
"text": "Cell 4",
|
|
7143
|
+
"type": "text",
|
|
7144
|
+
},
|
|
7145
|
+
],
|
|
7146
|
+
"props": {
|
|
7147
|
+
"backgroundColor": "default",
|
|
7148
|
+
"colspan": 1,
|
|
7149
|
+
"rowspan": 1,
|
|
7150
|
+
"textAlignment": "left",
|
|
7151
|
+
"textColor": "default",
|
|
7152
|
+
},
|
|
7153
|
+
"type": "tableCell",
|
|
7154
|
+
},
|
|
7155
|
+
{
|
|
7156
|
+
"content": [
|
|
7157
|
+
{
|
|
7158
|
+
"styles": {},
|
|
7159
|
+
"text": "Cell 5",
|
|
7160
|
+
"type": "text",
|
|
7161
|
+
},
|
|
7162
|
+
],
|
|
7163
|
+
"props": {
|
|
7164
|
+
"backgroundColor": "default",
|
|
7165
|
+
"colspan": 1,
|
|
7166
|
+
"rowspan": 1,
|
|
7167
|
+
"textAlignment": "left",
|
|
7168
|
+
"textColor": "default",
|
|
7169
|
+
},
|
|
7170
|
+
"type": "tableCell",
|
|
7171
|
+
},
|
|
7172
|
+
{
|
|
7173
|
+
"content": [
|
|
7174
|
+
{
|
|
7175
|
+
"styles": {},
|
|
7176
|
+
"text": "Cell 6",
|
|
7177
|
+
"type": "text",
|
|
7178
|
+
},
|
|
7179
|
+
],
|
|
7180
|
+
"props": {
|
|
7181
|
+
"backgroundColor": "default",
|
|
7182
|
+
"colspan": 1,
|
|
7183
|
+
"rowspan": 1,
|
|
7184
|
+
"textAlignment": "left",
|
|
7185
|
+
"textColor": "default",
|
|
7186
|
+
},
|
|
7187
|
+
"type": "tableCell",
|
|
7188
|
+
},
|
|
7189
|
+
],
|
|
7190
|
+
},
|
|
7191
|
+
{
|
|
7192
|
+
"cells": [
|
|
7193
|
+
{
|
|
7194
|
+
"content": [
|
|
7195
|
+
{
|
|
7196
|
+
"styles": {},
|
|
7197
|
+
"text": "Cell 7",
|
|
7198
|
+
"type": "text",
|
|
7199
|
+
},
|
|
7200
|
+
],
|
|
7201
|
+
"props": {
|
|
7202
|
+
"backgroundColor": "default",
|
|
7203
|
+
"colspan": 1,
|
|
7204
|
+
"rowspan": 1,
|
|
7205
|
+
"textAlignment": "left",
|
|
7206
|
+
"textColor": "default",
|
|
7207
|
+
},
|
|
7208
|
+
"type": "tableCell",
|
|
7209
|
+
},
|
|
7210
|
+
{
|
|
7211
|
+
"content": [
|
|
7212
|
+
{
|
|
7213
|
+
"styles": {},
|
|
7214
|
+
"text": "Cell 8",
|
|
7215
|
+
"type": "text",
|
|
7216
|
+
},
|
|
7217
|
+
],
|
|
7218
|
+
"props": {
|
|
7219
|
+
"backgroundColor": "default",
|
|
7220
|
+
"colspan": 1,
|
|
7221
|
+
"rowspan": 1,
|
|
7222
|
+
"textAlignment": "left",
|
|
7223
|
+
"textColor": "default",
|
|
7224
|
+
},
|
|
7225
|
+
"type": "tableCell",
|
|
7226
|
+
},
|
|
7227
|
+
{
|
|
7228
|
+
"content": [
|
|
7229
|
+
{
|
|
7230
|
+
"styles": {},
|
|
7231
|
+
"text": "Cell 9",
|
|
7232
|
+
"type": "text",
|
|
7233
|
+
},
|
|
7234
|
+
],
|
|
7235
|
+
"props": {
|
|
7236
|
+
"backgroundColor": "default",
|
|
7237
|
+
"colspan": 1,
|
|
7238
|
+
"rowspan": 1,
|
|
7239
|
+
"textAlignment": "left",
|
|
7240
|
+
"textColor": "default",
|
|
7241
|
+
},
|
|
7242
|
+
"type": "tableCell",
|
|
7243
|
+
},
|
|
7244
|
+
],
|
|
7245
|
+
},
|
|
7246
|
+
],
|
|
7247
|
+
"type": "tableContent",
|
|
7248
|
+
},
|
|
7249
|
+
"id": "table-0",
|
|
7250
|
+
"props": {
|
|
7251
|
+
"textColor": "default",
|
|
7252
|
+
},
|
|
7253
|
+
"type": "table",
|
|
7254
|
+
},
|
|
7255
|
+
{
|
|
7256
|
+
"children": [],
|
|
7257
|
+
"content": [
|
|
7258
|
+
{
|
|
7259
|
+
"styles": {},
|
|
7260
|
+
"text": "Paragraph 7",
|
|
7261
|
+
"type": "text",
|
|
7262
|
+
},
|
|
7263
|
+
],
|
|
7264
|
+
"id": "paragraph-7",
|
|
7265
|
+
"props": {
|
|
7266
|
+
"backgroundColor": "default",
|
|
7267
|
+
"textAlignment": "left",
|
|
7268
|
+
"textColor": "default",
|
|
7269
|
+
},
|
|
7270
|
+
"type": "paragraph",
|
|
7271
|
+
},
|
|
7272
|
+
{
|
|
7273
|
+
"children": [],
|
|
7274
|
+
"content": [],
|
|
7275
|
+
"id": "empty-paragraph",
|
|
7276
|
+
"props": {
|
|
7277
|
+
"backgroundColor": "default",
|
|
7278
|
+
"textAlignment": "left",
|
|
7279
|
+
"textColor": "default",
|
|
7280
|
+
},
|
|
7281
|
+
"type": "paragraph",
|
|
7282
|
+
},
|
|
7283
|
+
{
|
|
7284
|
+
"children": [],
|
|
7285
|
+
"content": [
|
|
7286
|
+
{
|
|
7287
|
+
"styles": {},
|
|
7288
|
+
"text": "Paragraph 8",
|
|
7289
|
+
"type": "text",
|
|
7290
|
+
},
|
|
7291
|
+
],
|
|
7292
|
+
"id": "paragraph-8",
|
|
7293
|
+
"props": {
|
|
7294
|
+
"backgroundColor": "default",
|
|
7295
|
+
"textAlignment": "left",
|
|
7296
|
+
"textColor": "default",
|
|
7297
|
+
},
|
|
7298
|
+
"type": "paragraph",
|
|
7299
|
+
},
|
|
7300
|
+
{
|
|
7301
|
+
"children": [
|
|
7302
|
+
{
|
|
7303
|
+
"children": [
|
|
7304
|
+
{
|
|
7305
|
+
"children": [],
|
|
7306
|
+
"content": [
|
|
7307
|
+
{
|
|
7308
|
+
"styles": {},
|
|
7309
|
+
"text": "Double Nested Paragraph 1",
|
|
7310
|
+
"type": "text",
|
|
7311
|
+
},
|
|
7312
|
+
],
|
|
7313
|
+
"id": "double-nested-paragraph-1",
|
|
7314
|
+
"props": {
|
|
7315
|
+
"backgroundColor": "default",
|
|
7316
|
+
"textAlignment": "left",
|
|
7317
|
+
"textColor": "default",
|
|
7318
|
+
},
|
|
7319
|
+
"type": "paragraph",
|
|
7320
|
+
},
|
|
7321
|
+
],
|
|
7322
|
+
"content": [
|
|
7323
|
+
{
|
|
7324
|
+
"styles": {},
|
|
7325
|
+
"text": "Nested Paragraph 1",
|
|
7326
|
+
"type": "text",
|
|
7327
|
+
},
|
|
7328
|
+
],
|
|
7329
|
+
"id": "nested-paragraph-1",
|
|
7330
|
+
"props": {
|
|
7331
|
+
"backgroundColor": "default",
|
|
7332
|
+
"textAlignment": "left",
|
|
7333
|
+
"textColor": "default",
|
|
7334
|
+
},
|
|
7335
|
+
"type": "paragraph",
|
|
7336
|
+
},
|
|
7337
|
+
],
|
|
7338
|
+
"content": [
|
|
7339
|
+
{
|
|
7340
|
+
"styles": {
|
|
7341
|
+
"bold": true,
|
|
7342
|
+
},
|
|
7343
|
+
"text": "Heading",
|
|
7344
|
+
"type": "text",
|
|
7345
|
+
},
|
|
7346
|
+
{
|
|
7347
|
+
"styles": {},
|
|
7348
|
+
"text": " with styled ",
|
|
7349
|
+
"type": "text",
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
"styles": {
|
|
7353
|
+
"italic": true,
|
|
7354
|
+
},
|
|
7355
|
+
"text": "content",
|
|
7356
|
+
"type": "text",
|
|
7357
|
+
},
|
|
7358
|
+
],
|
|
7359
|
+
"id": "heading-with-everything",
|
|
7360
|
+
"props": {
|
|
7361
|
+
"backgroundColor": "red",
|
|
7362
|
+
"isToggleable": false,
|
|
7363
|
+
"level": 2,
|
|
7364
|
+
"textAlignment": "center",
|
|
7365
|
+
"textColor": "red",
|
|
7366
|
+
},
|
|
7367
|
+
"type": "heading",
|
|
7368
|
+
},
|
|
7369
|
+
{
|
|
7370
|
+
"children": [],
|
|
7371
|
+
"content": [],
|
|
7372
|
+
"id": "paragraph-9",
|
|
7373
|
+
"props": {
|
|
7374
|
+
"backgroundColor": "default",
|
|
7375
|
+
"textAlignment": "left",
|
|
7376
|
+
"textColor": "default",
|
|
7377
|
+
},
|
|
7378
|
+
"type": "paragraph",
|
|
7379
|
+
},
|
|
7380
|
+
]
|
|
7381
|
+
`;
|
|
7382
|
+
|
|
7383
|
+
exports[`Test moveBlocksUp > Explicit block argument moves the given block 1`] = `
|
|
7384
|
+
[
|
|
7385
|
+
{
|
|
7386
|
+
"children": [],
|
|
7387
|
+
"content": [
|
|
7388
|
+
{
|
|
7389
|
+
"styles": {},
|
|
7390
|
+
"text": "Paragraph 0",
|
|
7391
|
+
"type": "text",
|
|
7392
|
+
},
|
|
7393
|
+
],
|
|
7394
|
+
"id": "paragraph-0",
|
|
7395
|
+
"props": {
|
|
7396
|
+
"backgroundColor": "default",
|
|
7397
|
+
"textAlignment": "left",
|
|
7398
|
+
"textColor": "default",
|
|
7399
|
+
},
|
|
7400
|
+
"type": "paragraph",
|
|
7401
|
+
},
|
|
7402
|
+
{
|
|
7403
|
+
"children": [],
|
|
7404
|
+
"content": [
|
|
7405
|
+
{
|
|
7406
|
+
"styles": {},
|
|
7407
|
+
"text": "Paragraph 1",
|
|
7408
|
+
"type": "text",
|
|
7409
|
+
},
|
|
7410
|
+
],
|
|
7411
|
+
"id": "paragraph-1",
|
|
7412
|
+
"props": {
|
|
7413
|
+
"backgroundColor": "default",
|
|
7414
|
+
"textAlignment": "left",
|
|
7415
|
+
"textColor": "default",
|
|
7416
|
+
},
|
|
7417
|
+
"type": "paragraph",
|
|
7418
|
+
},
|
|
7419
|
+
{
|
|
7420
|
+
"children": [
|
|
7421
|
+
{
|
|
7422
|
+
"children": [
|
|
7423
|
+
{
|
|
7424
|
+
"children": [],
|
|
7425
|
+
"content": [
|
|
7426
|
+
{
|
|
7427
|
+
"styles": {},
|
|
7428
|
+
"text": "Double Nested Paragraph 0",
|
|
7429
|
+
"type": "text",
|
|
7430
|
+
},
|
|
7431
|
+
],
|
|
7432
|
+
"id": "double-nested-paragraph-0",
|
|
7433
|
+
"props": {
|
|
7434
|
+
"backgroundColor": "default",
|
|
7435
|
+
"textAlignment": "left",
|
|
7436
|
+
"textColor": "default",
|
|
7437
|
+
},
|
|
7438
|
+
"type": "paragraph",
|
|
7439
|
+
},
|
|
7440
|
+
],
|
|
7441
|
+
"content": [
|
|
7442
|
+
{
|
|
7443
|
+
"styles": {},
|
|
7444
|
+
"text": "Nested Paragraph 0",
|
|
7445
|
+
"type": "text",
|
|
7446
|
+
},
|
|
7447
|
+
],
|
|
7448
|
+
"id": "nested-paragraph-0",
|
|
7449
|
+
"props": {
|
|
7450
|
+
"backgroundColor": "default",
|
|
7451
|
+
"textAlignment": "left",
|
|
7452
|
+
"textColor": "default",
|
|
7453
|
+
},
|
|
7454
|
+
"type": "paragraph",
|
|
7455
|
+
},
|
|
7456
|
+
{
|
|
7457
|
+
"children": [],
|
|
7458
|
+
"content": [
|
|
7459
|
+
{
|
|
7460
|
+
"styles": {},
|
|
7461
|
+
"text": "Paragraph 2",
|
|
7462
|
+
"type": "text",
|
|
7463
|
+
},
|
|
7464
|
+
],
|
|
7465
|
+
"id": "paragraph-2",
|
|
7466
|
+
"props": {
|
|
7467
|
+
"backgroundColor": "default",
|
|
7468
|
+
"textAlignment": "left",
|
|
7469
|
+
"textColor": "default",
|
|
7470
|
+
},
|
|
7471
|
+
"type": "paragraph",
|
|
7472
|
+
},
|
|
7473
|
+
],
|
|
7474
|
+
"content": [
|
|
7475
|
+
{
|
|
7476
|
+
"styles": {},
|
|
7477
|
+
"text": "Paragraph with children",
|
|
7478
|
+
"type": "text",
|
|
7479
|
+
},
|
|
7480
|
+
],
|
|
7481
|
+
"id": "paragraph-with-children",
|
|
7482
|
+
"props": {
|
|
7483
|
+
"backgroundColor": "default",
|
|
7484
|
+
"textAlignment": "left",
|
|
7485
|
+
"textColor": "default",
|
|
7486
|
+
},
|
|
7487
|
+
"type": "paragraph",
|
|
7488
|
+
},
|
|
7489
|
+
{
|
|
7490
|
+
"children": [],
|
|
7491
|
+
"content": [
|
|
7492
|
+
{
|
|
7493
|
+
"styles": {},
|
|
7494
|
+
"text": "Paragraph with props",
|
|
7495
|
+
"type": "text",
|
|
7496
|
+
},
|
|
7497
|
+
],
|
|
7498
|
+
"id": "paragraph-with-props",
|
|
7499
|
+
"props": {
|
|
7500
|
+
"backgroundColor": "default",
|
|
7501
|
+
"textAlignment": "center",
|
|
7502
|
+
"textColor": "red",
|
|
7503
|
+
},
|
|
7504
|
+
"type": "paragraph",
|
|
7505
|
+
},
|
|
7506
|
+
{
|
|
7507
|
+
"children": [],
|
|
7508
|
+
"content": [
|
|
7509
|
+
{
|
|
7510
|
+
"styles": {},
|
|
7511
|
+
"text": "Paragraph 3",
|
|
7512
|
+
"type": "text",
|
|
7513
|
+
},
|
|
7514
|
+
],
|
|
7515
|
+
"id": "paragraph-3",
|
|
7516
|
+
"props": {
|
|
7517
|
+
"backgroundColor": "default",
|
|
7518
|
+
"textAlignment": "left",
|
|
7519
|
+
"textColor": "default",
|
|
7520
|
+
},
|
|
7521
|
+
"type": "paragraph",
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
"children": [],
|
|
7525
|
+
"content": [
|
|
7526
|
+
{
|
|
7527
|
+
"styles": {
|
|
7528
|
+
"bold": true,
|
|
7529
|
+
},
|
|
7530
|
+
"text": "Paragraph",
|
|
7531
|
+
"type": "text",
|
|
7532
|
+
},
|
|
7533
|
+
{
|
|
7534
|
+
"styles": {},
|
|
7535
|
+
"text": " with styled ",
|
|
7536
|
+
"type": "text",
|
|
7537
|
+
},
|
|
7538
|
+
{
|
|
7539
|
+
"styles": {
|
|
7540
|
+
"italic": true,
|
|
7541
|
+
},
|
|
7542
|
+
"text": "content",
|
|
7543
|
+
"type": "text",
|
|
7544
|
+
},
|
|
7545
|
+
],
|
|
7546
|
+
"id": "paragraph-with-styled-content",
|
|
7547
|
+
"props": {
|
|
7548
|
+
"backgroundColor": "default",
|
|
7549
|
+
"textAlignment": "left",
|
|
7550
|
+
"textColor": "default",
|
|
7551
|
+
},
|
|
7552
|
+
"type": "paragraph",
|
|
7553
|
+
},
|
|
7554
|
+
{
|
|
7555
|
+
"children": [],
|
|
7556
|
+
"content": [
|
|
7557
|
+
{
|
|
7558
|
+
"styles": {},
|
|
7559
|
+
"text": "Paragraph 4",
|
|
7560
|
+
"type": "text",
|
|
7561
|
+
},
|
|
7562
|
+
],
|
|
7563
|
+
"id": "paragraph-4",
|
|
7564
|
+
"props": {
|
|
7565
|
+
"backgroundColor": "default",
|
|
7566
|
+
"textAlignment": "left",
|
|
7567
|
+
"textColor": "default",
|
|
7568
|
+
},
|
|
7569
|
+
"type": "paragraph",
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"children": [],
|
|
7573
|
+
"content": [
|
|
7574
|
+
{
|
|
7575
|
+
"styles": {},
|
|
7576
|
+
"text": "Heading 1",
|
|
7577
|
+
"type": "text",
|
|
7578
|
+
},
|
|
7579
|
+
],
|
|
7580
|
+
"id": "heading-0",
|
|
7581
|
+
"props": {
|
|
7582
|
+
"backgroundColor": "default",
|
|
7583
|
+
"isToggleable": false,
|
|
7584
|
+
"level": 1,
|
|
7585
|
+
"textAlignment": "left",
|
|
7586
|
+
"textColor": "default",
|
|
7587
|
+
},
|
|
7588
|
+
"type": "heading",
|
|
7589
|
+
},
|
|
7590
|
+
{
|
|
7591
|
+
"children": [],
|
|
7592
|
+
"content": [
|
|
7593
|
+
{
|
|
7594
|
+
"styles": {},
|
|
7595
|
+
"text": "Paragraph 5",
|
|
7596
|
+
"type": "text",
|
|
7597
|
+
},
|
|
7598
|
+
],
|
|
7599
|
+
"id": "paragraph-5",
|
|
7600
|
+
"props": {
|
|
7601
|
+
"backgroundColor": "default",
|
|
7602
|
+
"textAlignment": "left",
|
|
7603
|
+
"textColor": "default",
|
|
7604
|
+
},
|
|
7605
|
+
"type": "paragraph",
|
|
7606
|
+
},
|
|
7607
|
+
{
|
|
7608
|
+
"children": [],
|
|
7609
|
+
"content": undefined,
|
|
7610
|
+
"id": "image-0",
|
|
7611
|
+
"props": {
|
|
7612
|
+
"backgroundColor": "default",
|
|
7613
|
+
"caption": "",
|
|
7614
|
+
"name": "",
|
|
7615
|
+
"showPreview": true,
|
|
7616
|
+
"textAlignment": "left",
|
|
7617
|
+
"url": "https://via.placeholder.com/150",
|
|
7618
|
+
},
|
|
7619
|
+
"type": "image",
|
|
7620
|
+
},
|
|
7621
|
+
{
|
|
7622
|
+
"children": [],
|
|
7623
|
+
"content": [
|
|
7624
|
+
{
|
|
7625
|
+
"styles": {},
|
|
7626
|
+
"text": "Paragraph 6",
|
|
7627
|
+
"type": "text",
|
|
7628
|
+
},
|
|
7629
|
+
],
|
|
7630
|
+
"id": "paragraph-6",
|
|
7631
|
+
"props": {
|
|
7632
|
+
"backgroundColor": "default",
|
|
7633
|
+
"textAlignment": "left",
|
|
7634
|
+
"textColor": "default",
|
|
7635
|
+
},
|
|
7636
|
+
"type": "paragraph",
|
|
7637
|
+
},
|
|
7638
|
+
{
|
|
7639
|
+
"children": [],
|
|
7640
|
+
"content": {
|
|
7641
|
+
"columnWidths": [
|
|
7642
|
+
undefined,
|
|
7643
|
+
undefined,
|
|
7644
|
+
undefined,
|
|
7645
|
+
],
|
|
7646
|
+
"headerCols": undefined,
|
|
7647
|
+
"headerRows": undefined,
|
|
7648
|
+
"rows": [
|
|
7649
|
+
{
|
|
7650
|
+
"cells": [
|
|
7651
|
+
{
|
|
7652
|
+
"content": [
|
|
7653
|
+
{
|
|
7654
|
+
"styles": {},
|
|
7655
|
+
"text": "Cell 1",
|
|
7656
|
+
"type": "text",
|
|
7657
|
+
},
|
|
7658
|
+
],
|
|
7659
|
+
"props": {
|
|
7660
|
+
"backgroundColor": "default",
|
|
7661
|
+
"colspan": 1,
|
|
7662
|
+
"rowspan": 1,
|
|
7663
|
+
"textAlignment": "left",
|
|
7664
|
+
"textColor": "default",
|
|
7665
|
+
},
|
|
7666
|
+
"type": "tableCell",
|
|
7667
|
+
},
|
|
7668
|
+
{
|
|
7669
|
+
"content": [
|
|
7670
|
+
{
|
|
7671
|
+
"styles": {},
|
|
7672
|
+
"text": "Cell 2",
|
|
7673
|
+
"type": "text",
|
|
7674
|
+
},
|
|
7675
|
+
],
|
|
7676
|
+
"props": {
|
|
7677
|
+
"backgroundColor": "default",
|
|
7678
|
+
"colspan": 1,
|
|
7679
|
+
"rowspan": 1,
|
|
7680
|
+
"textAlignment": "left",
|
|
7681
|
+
"textColor": "default",
|
|
7682
|
+
},
|
|
7683
|
+
"type": "tableCell",
|
|
7684
|
+
},
|
|
7685
|
+
{
|
|
7686
|
+
"content": [
|
|
7687
|
+
{
|
|
7688
|
+
"styles": {},
|
|
7689
|
+
"text": "Cell 3",
|
|
7690
|
+
"type": "text",
|
|
7691
|
+
},
|
|
7692
|
+
],
|
|
7693
|
+
"props": {
|
|
7694
|
+
"backgroundColor": "default",
|
|
7695
|
+
"colspan": 1,
|
|
7696
|
+
"rowspan": 1,
|
|
7697
|
+
"textAlignment": "left",
|
|
7698
|
+
"textColor": "default",
|
|
7699
|
+
},
|
|
7700
|
+
"type": "tableCell",
|
|
7701
|
+
},
|
|
7702
|
+
],
|
|
7703
|
+
},
|
|
7704
|
+
{
|
|
7705
|
+
"cells": [
|
|
7706
|
+
{
|
|
7707
|
+
"content": [
|
|
7708
|
+
{
|
|
7709
|
+
"styles": {},
|
|
7710
|
+
"text": "Cell 4",
|
|
7711
|
+
"type": "text",
|
|
7712
|
+
},
|
|
7713
|
+
],
|
|
7714
|
+
"props": {
|
|
7715
|
+
"backgroundColor": "default",
|
|
7716
|
+
"colspan": 1,
|
|
7717
|
+
"rowspan": 1,
|
|
7718
|
+
"textAlignment": "left",
|
|
7719
|
+
"textColor": "default",
|
|
7720
|
+
},
|
|
7721
|
+
"type": "tableCell",
|
|
7722
|
+
},
|
|
7723
|
+
{
|
|
7724
|
+
"content": [
|
|
7725
|
+
{
|
|
7726
|
+
"styles": {},
|
|
7727
|
+
"text": "Cell 5",
|
|
7728
|
+
"type": "text",
|
|
7729
|
+
},
|
|
7730
|
+
],
|
|
7731
|
+
"props": {
|
|
7732
|
+
"backgroundColor": "default",
|
|
7733
|
+
"colspan": 1,
|
|
7734
|
+
"rowspan": 1,
|
|
7735
|
+
"textAlignment": "left",
|
|
7736
|
+
"textColor": "default",
|
|
7737
|
+
},
|
|
7738
|
+
"type": "tableCell",
|
|
7739
|
+
},
|
|
7740
|
+
{
|
|
7741
|
+
"content": [
|
|
7742
|
+
{
|
|
7743
|
+
"styles": {},
|
|
7744
|
+
"text": "Cell 6",
|
|
7745
|
+
"type": "text",
|
|
7746
|
+
},
|
|
7747
|
+
],
|
|
7748
|
+
"props": {
|
|
7749
|
+
"backgroundColor": "default",
|
|
7750
|
+
"colspan": 1,
|
|
7751
|
+
"rowspan": 1,
|
|
7752
|
+
"textAlignment": "left",
|
|
7753
|
+
"textColor": "default",
|
|
7754
|
+
},
|
|
7755
|
+
"type": "tableCell",
|
|
7756
|
+
},
|
|
7757
|
+
],
|
|
7758
|
+
},
|
|
7759
|
+
{
|
|
7760
|
+
"cells": [
|
|
7761
|
+
{
|
|
7762
|
+
"content": [
|
|
7763
|
+
{
|
|
7764
|
+
"styles": {},
|
|
7765
|
+
"text": "Cell 7",
|
|
7766
|
+
"type": "text",
|
|
7767
|
+
},
|
|
7768
|
+
],
|
|
7769
|
+
"props": {
|
|
7770
|
+
"backgroundColor": "default",
|
|
7771
|
+
"colspan": 1,
|
|
7772
|
+
"rowspan": 1,
|
|
7773
|
+
"textAlignment": "left",
|
|
7774
|
+
"textColor": "default",
|
|
7775
|
+
},
|
|
7776
|
+
"type": "tableCell",
|
|
7777
|
+
},
|
|
7778
|
+
{
|
|
7779
|
+
"content": [
|
|
7780
|
+
{
|
|
7781
|
+
"styles": {},
|
|
7782
|
+
"text": "Cell 8",
|
|
7783
|
+
"type": "text",
|
|
7784
|
+
},
|
|
7785
|
+
],
|
|
7786
|
+
"props": {
|
|
7787
|
+
"backgroundColor": "default",
|
|
7788
|
+
"colspan": 1,
|
|
7789
|
+
"rowspan": 1,
|
|
7790
|
+
"textAlignment": "left",
|
|
7791
|
+
"textColor": "default",
|
|
7792
|
+
},
|
|
7793
|
+
"type": "tableCell",
|
|
7794
|
+
},
|
|
7795
|
+
{
|
|
7796
|
+
"content": [
|
|
7797
|
+
{
|
|
7798
|
+
"styles": {},
|
|
7799
|
+
"text": "Cell 9",
|
|
7800
|
+
"type": "text",
|
|
7801
|
+
},
|
|
7802
|
+
],
|
|
7803
|
+
"props": {
|
|
7804
|
+
"backgroundColor": "default",
|
|
7805
|
+
"colspan": 1,
|
|
7806
|
+
"rowspan": 1,
|
|
7807
|
+
"textAlignment": "left",
|
|
7808
|
+
"textColor": "default",
|
|
7809
|
+
},
|
|
7810
|
+
"type": "tableCell",
|
|
7811
|
+
},
|
|
7812
|
+
],
|
|
7813
|
+
},
|
|
7814
|
+
],
|
|
7815
|
+
"type": "tableContent",
|
|
7816
|
+
},
|
|
7817
|
+
"id": "table-0",
|
|
7818
|
+
"props": {
|
|
7819
|
+
"textColor": "default",
|
|
7820
|
+
},
|
|
7821
|
+
"type": "table",
|
|
7822
|
+
},
|
|
7823
|
+
{
|
|
7824
|
+
"children": [],
|
|
7825
|
+
"content": [
|
|
7826
|
+
{
|
|
7827
|
+
"styles": {},
|
|
7828
|
+
"text": "Paragraph 7",
|
|
7829
|
+
"type": "text",
|
|
7830
|
+
},
|
|
7831
|
+
],
|
|
7832
|
+
"id": "paragraph-7",
|
|
7833
|
+
"props": {
|
|
7834
|
+
"backgroundColor": "default",
|
|
7835
|
+
"textAlignment": "left",
|
|
7836
|
+
"textColor": "default",
|
|
7837
|
+
},
|
|
7838
|
+
"type": "paragraph",
|
|
7839
|
+
},
|
|
7840
|
+
{
|
|
7841
|
+
"children": [],
|
|
7842
|
+
"content": [],
|
|
7843
|
+
"id": "empty-paragraph",
|
|
7844
|
+
"props": {
|
|
7845
|
+
"backgroundColor": "default",
|
|
7846
|
+
"textAlignment": "left",
|
|
7847
|
+
"textColor": "default",
|
|
7848
|
+
},
|
|
7849
|
+
"type": "paragraph",
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
"children": [],
|
|
7853
|
+
"content": [
|
|
7854
|
+
{
|
|
7855
|
+
"styles": {},
|
|
7856
|
+
"text": "Paragraph 8",
|
|
7857
|
+
"type": "text",
|
|
7858
|
+
},
|
|
7859
|
+
],
|
|
7860
|
+
"id": "paragraph-8",
|
|
7861
|
+
"props": {
|
|
7862
|
+
"backgroundColor": "default",
|
|
7863
|
+
"textAlignment": "left",
|
|
7864
|
+
"textColor": "default",
|
|
7865
|
+
},
|
|
7866
|
+
"type": "paragraph",
|
|
7867
|
+
},
|
|
7868
|
+
{
|
|
7869
|
+
"children": [
|
|
7870
|
+
{
|
|
7871
|
+
"children": [
|
|
7872
|
+
{
|
|
7873
|
+
"children": [],
|
|
7874
|
+
"content": [
|
|
7875
|
+
{
|
|
7876
|
+
"styles": {},
|
|
7877
|
+
"text": "Double Nested Paragraph 1",
|
|
7878
|
+
"type": "text",
|
|
7879
|
+
},
|
|
7880
|
+
],
|
|
7881
|
+
"id": "double-nested-paragraph-1",
|
|
7882
|
+
"props": {
|
|
7883
|
+
"backgroundColor": "default",
|
|
7884
|
+
"textAlignment": "left",
|
|
7885
|
+
"textColor": "default",
|
|
7886
|
+
},
|
|
7887
|
+
"type": "paragraph",
|
|
7888
|
+
},
|
|
7889
|
+
],
|
|
7890
|
+
"content": [
|
|
7891
|
+
{
|
|
7892
|
+
"styles": {},
|
|
7893
|
+
"text": "Nested Paragraph 1",
|
|
7894
|
+
"type": "text",
|
|
7895
|
+
},
|
|
7896
|
+
],
|
|
7897
|
+
"id": "nested-paragraph-1",
|
|
7898
|
+
"props": {
|
|
7899
|
+
"backgroundColor": "default",
|
|
7900
|
+
"textAlignment": "left",
|
|
7901
|
+
"textColor": "default",
|
|
7902
|
+
},
|
|
7903
|
+
"type": "paragraph",
|
|
7904
|
+
},
|
|
7905
|
+
],
|
|
7906
|
+
"content": [
|
|
7907
|
+
{
|
|
7908
|
+
"styles": {
|
|
7909
|
+
"bold": true,
|
|
7910
|
+
},
|
|
7911
|
+
"text": "Heading",
|
|
7912
|
+
"type": "text",
|
|
7913
|
+
},
|
|
7914
|
+
{
|
|
7915
|
+
"styles": {},
|
|
7916
|
+
"text": " with styled ",
|
|
7917
|
+
"type": "text",
|
|
7918
|
+
},
|
|
7919
|
+
{
|
|
7920
|
+
"styles": {
|
|
7921
|
+
"italic": true,
|
|
7922
|
+
},
|
|
7923
|
+
"text": "content",
|
|
7924
|
+
"type": "text",
|
|
7925
|
+
},
|
|
7926
|
+
],
|
|
7927
|
+
"id": "heading-with-everything",
|
|
7928
|
+
"props": {
|
|
7929
|
+
"backgroundColor": "red",
|
|
7930
|
+
"isToggleable": false,
|
|
7931
|
+
"level": 2,
|
|
7932
|
+
"textAlignment": "center",
|
|
7933
|
+
"textColor": "red",
|
|
7934
|
+
},
|
|
7935
|
+
"type": "heading",
|
|
7936
|
+
},
|
|
7937
|
+
{
|
|
7938
|
+
"children": [],
|
|
7939
|
+
"content": [],
|
|
7940
|
+
"id": "paragraph-9",
|
|
7941
|
+
"props": {
|
|
7942
|
+
"backgroundColor": "default",
|
|
7943
|
+
"textAlignment": "left",
|
|
7944
|
+
"textColor": "default",
|
|
7945
|
+
},
|
|
7946
|
+
"type": "paragraph",
|
|
7947
|
+
},
|
|
7948
|
+
]
|
|
7949
|
+
`;
|
|
7950
|
+
|
|
7951
|
+
exports[`Test moveBlocksUp > Explicit block argument with nested block 1`] = `
|
|
7952
|
+
[
|
|
7953
|
+
{
|
|
7954
|
+
"children": [],
|
|
7955
|
+
"content": [
|
|
7956
|
+
{
|
|
7957
|
+
"styles": {},
|
|
7958
|
+
"text": "Paragraph 0",
|
|
7959
|
+
"type": "text",
|
|
7960
|
+
},
|
|
7961
|
+
],
|
|
7962
|
+
"id": "paragraph-0",
|
|
7963
|
+
"props": {
|
|
7964
|
+
"backgroundColor": "default",
|
|
7965
|
+
"textAlignment": "left",
|
|
7966
|
+
"textColor": "default",
|
|
7967
|
+
},
|
|
7968
|
+
"type": "paragraph",
|
|
7969
|
+
},
|
|
7970
|
+
{
|
|
7971
|
+
"children": [],
|
|
7972
|
+
"content": [
|
|
7973
|
+
{
|
|
7974
|
+
"styles": {},
|
|
7975
|
+
"text": "Paragraph 1",
|
|
7976
|
+
"type": "text",
|
|
7977
|
+
},
|
|
7978
|
+
],
|
|
7979
|
+
"id": "paragraph-1",
|
|
7980
|
+
"props": {
|
|
7981
|
+
"backgroundColor": "default",
|
|
7982
|
+
"textAlignment": "left",
|
|
7983
|
+
"textColor": "default",
|
|
7984
|
+
},
|
|
7985
|
+
"type": "paragraph",
|
|
7986
|
+
},
|
|
7987
|
+
{
|
|
7988
|
+
"children": [
|
|
7989
|
+
{
|
|
7990
|
+
"children": [
|
|
7991
|
+
{
|
|
7992
|
+
"children": [],
|
|
7993
|
+
"content": [
|
|
7994
|
+
{
|
|
7995
|
+
"styles": {},
|
|
7996
|
+
"text": "Double Nested Paragraph 0",
|
|
7997
|
+
"type": "text",
|
|
7998
|
+
},
|
|
7999
|
+
],
|
|
8000
|
+
"id": "double-nested-paragraph-0",
|
|
8001
|
+
"props": {
|
|
8002
|
+
"backgroundColor": "default",
|
|
8003
|
+
"textAlignment": "left",
|
|
8004
|
+
"textColor": "default",
|
|
8005
|
+
},
|
|
8006
|
+
"type": "paragraph",
|
|
8007
|
+
},
|
|
8008
|
+
],
|
|
8009
|
+
"content": [
|
|
8010
|
+
{
|
|
8011
|
+
"styles": {},
|
|
8012
|
+
"text": "Nested Paragraph 0",
|
|
8013
|
+
"type": "text",
|
|
8014
|
+
},
|
|
8015
|
+
],
|
|
8016
|
+
"id": "nested-paragraph-0",
|
|
8017
|
+
"props": {
|
|
8018
|
+
"backgroundColor": "default",
|
|
8019
|
+
"textAlignment": "left",
|
|
8020
|
+
"textColor": "default",
|
|
8021
|
+
},
|
|
8022
|
+
"type": "paragraph",
|
|
8023
|
+
},
|
|
8024
|
+
],
|
|
8025
|
+
"content": [
|
|
8026
|
+
{
|
|
8027
|
+
"styles": {},
|
|
8028
|
+
"text": "Paragraph with children",
|
|
8029
|
+
"type": "text",
|
|
8030
|
+
},
|
|
8031
|
+
],
|
|
8032
|
+
"id": "paragraph-with-children",
|
|
8033
|
+
"props": {
|
|
8034
|
+
"backgroundColor": "default",
|
|
8035
|
+
"textAlignment": "left",
|
|
8036
|
+
"textColor": "default",
|
|
8037
|
+
},
|
|
8038
|
+
"type": "paragraph",
|
|
8039
|
+
},
|
|
8040
|
+
{
|
|
8041
|
+
"children": [],
|
|
8042
|
+
"content": [
|
|
8043
|
+
{
|
|
8044
|
+
"styles": {},
|
|
8045
|
+
"text": "Paragraph 2",
|
|
8046
|
+
"type": "text",
|
|
8047
|
+
},
|
|
8048
|
+
],
|
|
8049
|
+
"id": "paragraph-2",
|
|
8050
|
+
"props": {
|
|
8051
|
+
"backgroundColor": "default",
|
|
8052
|
+
"textAlignment": "left",
|
|
8053
|
+
"textColor": "default",
|
|
8054
|
+
},
|
|
8055
|
+
"type": "paragraph",
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
"children": [],
|
|
8059
|
+
"content": [
|
|
8060
|
+
{
|
|
8061
|
+
"styles": {},
|
|
8062
|
+
"text": "Paragraph with props",
|
|
8063
|
+
"type": "text",
|
|
8064
|
+
},
|
|
8065
|
+
],
|
|
8066
|
+
"id": "paragraph-with-props",
|
|
8067
|
+
"props": {
|
|
8068
|
+
"backgroundColor": "default",
|
|
8069
|
+
"textAlignment": "center",
|
|
8070
|
+
"textColor": "red",
|
|
8071
|
+
},
|
|
8072
|
+
"type": "paragraph",
|
|
8073
|
+
},
|
|
8074
|
+
{
|
|
8075
|
+
"children": [],
|
|
8076
|
+
"content": [
|
|
8077
|
+
{
|
|
8078
|
+
"styles": {},
|
|
8079
|
+
"text": "Paragraph 3",
|
|
8080
|
+
"type": "text",
|
|
8081
|
+
},
|
|
8082
|
+
],
|
|
8083
|
+
"id": "paragraph-3",
|
|
8084
|
+
"props": {
|
|
8085
|
+
"backgroundColor": "default",
|
|
8086
|
+
"textAlignment": "left",
|
|
8087
|
+
"textColor": "default",
|
|
8088
|
+
},
|
|
8089
|
+
"type": "paragraph",
|
|
8090
|
+
},
|
|
8091
|
+
{
|
|
8092
|
+
"children": [],
|
|
8093
|
+
"content": [
|
|
8094
|
+
{
|
|
8095
|
+
"styles": {
|
|
8096
|
+
"bold": true,
|
|
8097
|
+
},
|
|
8098
|
+
"text": "Paragraph",
|
|
8099
|
+
"type": "text",
|
|
8100
|
+
},
|
|
8101
|
+
{
|
|
8102
|
+
"styles": {},
|
|
8103
|
+
"text": " with styled ",
|
|
8104
|
+
"type": "text",
|
|
8105
|
+
},
|
|
8106
|
+
{
|
|
8107
|
+
"styles": {
|
|
8108
|
+
"italic": true,
|
|
8109
|
+
},
|
|
8110
|
+
"text": "content",
|
|
8111
|
+
"type": "text",
|
|
8112
|
+
},
|
|
8113
|
+
],
|
|
8114
|
+
"id": "paragraph-with-styled-content",
|
|
8115
|
+
"props": {
|
|
8116
|
+
"backgroundColor": "default",
|
|
8117
|
+
"textAlignment": "left",
|
|
8118
|
+
"textColor": "default",
|
|
8119
|
+
},
|
|
8120
|
+
"type": "paragraph",
|
|
8121
|
+
},
|
|
8122
|
+
{
|
|
8123
|
+
"children": [],
|
|
8124
|
+
"content": [
|
|
8125
|
+
{
|
|
8126
|
+
"styles": {},
|
|
8127
|
+
"text": "Paragraph 4",
|
|
8128
|
+
"type": "text",
|
|
8129
|
+
},
|
|
8130
|
+
],
|
|
8131
|
+
"id": "paragraph-4",
|
|
8132
|
+
"props": {
|
|
8133
|
+
"backgroundColor": "default",
|
|
8134
|
+
"textAlignment": "left",
|
|
8135
|
+
"textColor": "default",
|
|
8136
|
+
},
|
|
8137
|
+
"type": "paragraph",
|
|
8138
|
+
},
|
|
8139
|
+
{
|
|
8140
|
+
"children": [],
|
|
8141
|
+
"content": [
|
|
8142
|
+
{
|
|
8143
|
+
"styles": {},
|
|
8144
|
+
"text": "Heading 1",
|
|
8145
|
+
"type": "text",
|
|
8146
|
+
},
|
|
8147
|
+
],
|
|
8148
|
+
"id": "heading-0",
|
|
8149
|
+
"props": {
|
|
8150
|
+
"backgroundColor": "default",
|
|
8151
|
+
"isToggleable": false,
|
|
8152
|
+
"level": 1,
|
|
8153
|
+
"textAlignment": "left",
|
|
8154
|
+
"textColor": "default",
|
|
8155
|
+
},
|
|
8156
|
+
"type": "heading",
|
|
8157
|
+
},
|
|
8158
|
+
{
|
|
8159
|
+
"children": [],
|
|
8160
|
+
"content": [
|
|
8161
|
+
{
|
|
8162
|
+
"styles": {},
|
|
8163
|
+
"text": "Paragraph 5",
|
|
8164
|
+
"type": "text",
|
|
8165
|
+
},
|
|
8166
|
+
],
|
|
8167
|
+
"id": "paragraph-5",
|
|
8168
|
+
"props": {
|
|
8169
|
+
"backgroundColor": "default",
|
|
8170
|
+
"textAlignment": "left",
|
|
8171
|
+
"textColor": "default",
|
|
8172
|
+
},
|
|
8173
|
+
"type": "paragraph",
|
|
8174
|
+
},
|
|
8175
|
+
{
|
|
8176
|
+
"children": [],
|
|
8177
|
+
"content": undefined,
|
|
8178
|
+
"id": "image-0",
|
|
8179
|
+
"props": {
|
|
8180
|
+
"backgroundColor": "default",
|
|
8181
|
+
"caption": "",
|
|
8182
|
+
"name": "",
|
|
8183
|
+
"showPreview": true,
|
|
8184
|
+
"textAlignment": "left",
|
|
8185
|
+
"url": "https://via.placeholder.com/150",
|
|
8186
|
+
},
|
|
8187
|
+
"type": "image",
|
|
8188
|
+
},
|
|
8189
|
+
{
|
|
8190
|
+
"children": [],
|
|
8191
|
+
"content": [
|
|
8192
|
+
{
|
|
8193
|
+
"styles": {},
|
|
8194
|
+
"text": "Paragraph 6",
|
|
8195
|
+
"type": "text",
|
|
8196
|
+
},
|
|
8197
|
+
],
|
|
8198
|
+
"id": "paragraph-6",
|
|
8199
|
+
"props": {
|
|
8200
|
+
"backgroundColor": "default",
|
|
8201
|
+
"textAlignment": "left",
|
|
8202
|
+
"textColor": "default",
|
|
8203
|
+
},
|
|
8204
|
+
"type": "paragraph",
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
"children": [],
|
|
8208
|
+
"content": {
|
|
8209
|
+
"columnWidths": [
|
|
8210
|
+
undefined,
|
|
8211
|
+
undefined,
|
|
8212
|
+
undefined,
|
|
8213
|
+
],
|
|
8214
|
+
"headerCols": undefined,
|
|
8215
|
+
"headerRows": undefined,
|
|
8216
|
+
"rows": [
|
|
8217
|
+
{
|
|
8218
|
+
"cells": [
|
|
8219
|
+
{
|
|
8220
|
+
"content": [
|
|
8221
|
+
{
|
|
8222
|
+
"styles": {},
|
|
8223
|
+
"text": "Cell 1",
|
|
8224
|
+
"type": "text",
|
|
8225
|
+
},
|
|
8226
|
+
],
|
|
8227
|
+
"props": {
|
|
8228
|
+
"backgroundColor": "default",
|
|
8229
|
+
"colspan": 1,
|
|
8230
|
+
"rowspan": 1,
|
|
8231
|
+
"textAlignment": "left",
|
|
8232
|
+
"textColor": "default",
|
|
8233
|
+
},
|
|
8234
|
+
"type": "tableCell",
|
|
8235
|
+
},
|
|
8236
|
+
{
|
|
8237
|
+
"content": [
|
|
8238
|
+
{
|
|
8239
|
+
"styles": {},
|
|
8240
|
+
"text": "Cell 2",
|
|
8241
|
+
"type": "text",
|
|
8242
|
+
},
|
|
8243
|
+
],
|
|
8244
|
+
"props": {
|
|
8245
|
+
"backgroundColor": "default",
|
|
8246
|
+
"colspan": 1,
|
|
8247
|
+
"rowspan": 1,
|
|
8248
|
+
"textAlignment": "left",
|
|
8249
|
+
"textColor": "default",
|
|
8250
|
+
},
|
|
8251
|
+
"type": "tableCell",
|
|
8252
|
+
},
|
|
8253
|
+
{
|
|
8254
|
+
"content": [
|
|
8255
|
+
{
|
|
8256
|
+
"styles": {},
|
|
8257
|
+
"text": "Cell 3",
|
|
8258
|
+
"type": "text",
|
|
8259
|
+
},
|
|
8260
|
+
],
|
|
8261
|
+
"props": {
|
|
8262
|
+
"backgroundColor": "default",
|
|
8263
|
+
"colspan": 1,
|
|
8264
|
+
"rowspan": 1,
|
|
8265
|
+
"textAlignment": "left",
|
|
8266
|
+
"textColor": "default",
|
|
8267
|
+
},
|
|
8268
|
+
"type": "tableCell",
|
|
8269
|
+
},
|
|
8270
|
+
],
|
|
8271
|
+
},
|
|
8272
|
+
{
|
|
8273
|
+
"cells": [
|
|
8274
|
+
{
|
|
8275
|
+
"content": [
|
|
8276
|
+
{
|
|
8277
|
+
"styles": {},
|
|
8278
|
+
"text": "Cell 4",
|
|
8279
|
+
"type": "text",
|
|
8280
|
+
},
|
|
8281
|
+
],
|
|
8282
|
+
"props": {
|
|
8283
|
+
"backgroundColor": "default",
|
|
8284
|
+
"colspan": 1,
|
|
8285
|
+
"rowspan": 1,
|
|
8286
|
+
"textAlignment": "left",
|
|
8287
|
+
"textColor": "default",
|
|
8288
|
+
},
|
|
8289
|
+
"type": "tableCell",
|
|
8290
|
+
},
|
|
8291
|
+
{
|
|
8292
|
+
"content": [
|
|
8293
|
+
{
|
|
8294
|
+
"styles": {},
|
|
8295
|
+
"text": "Cell 5",
|
|
8296
|
+
"type": "text",
|
|
8297
|
+
},
|
|
8298
|
+
],
|
|
8299
|
+
"props": {
|
|
8300
|
+
"backgroundColor": "default",
|
|
8301
|
+
"colspan": 1,
|
|
8302
|
+
"rowspan": 1,
|
|
8303
|
+
"textAlignment": "left",
|
|
8304
|
+
"textColor": "default",
|
|
8305
|
+
},
|
|
8306
|
+
"type": "tableCell",
|
|
8307
|
+
},
|
|
8308
|
+
{
|
|
8309
|
+
"content": [
|
|
8310
|
+
{
|
|
8311
|
+
"styles": {},
|
|
8312
|
+
"text": "Cell 6",
|
|
8313
|
+
"type": "text",
|
|
8314
|
+
},
|
|
8315
|
+
],
|
|
8316
|
+
"props": {
|
|
8317
|
+
"backgroundColor": "default",
|
|
8318
|
+
"colspan": 1,
|
|
8319
|
+
"rowspan": 1,
|
|
8320
|
+
"textAlignment": "left",
|
|
8321
|
+
"textColor": "default",
|
|
8322
|
+
},
|
|
8323
|
+
"type": "tableCell",
|
|
8324
|
+
},
|
|
8325
|
+
],
|
|
8326
|
+
},
|
|
8327
|
+
{
|
|
8328
|
+
"cells": [
|
|
8329
|
+
{
|
|
8330
|
+
"content": [
|
|
8331
|
+
{
|
|
8332
|
+
"styles": {},
|
|
8333
|
+
"text": "Cell 7",
|
|
8334
|
+
"type": "text",
|
|
8335
|
+
},
|
|
8336
|
+
],
|
|
8337
|
+
"props": {
|
|
8338
|
+
"backgroundColor": "default",
|
|
8339
|
+
"colspan": 1,
|
|
8340
|
+
"rowspan": 1,
|
|
8341
|
+
"textAlignment": "left",
|
|
8342
|
+
"textColor": "default",
|
|
8343
|
+
},
|
|
8344
|
+
"type": "tableCell",
|
|
8345
|
+
},
|
|
8346
|
+
{
|
|
8347
|
+
"content": [
|
|
8348
|
+
{
|
|
8349
|
+
"styles": {},
|
|
8350
|
+
"text": "Cell 8",
|
|
8351
|
+
"type": "text",
|
|
8352
|
+
},
|
|
8353
|
+
],
|
|
8354
|
+
"props": {
|
|
8355
|
+
"backgroundColor": "default",
|
|
8356
|
+
"colspan": 1,
|
|
8357
|
+
"rowspan": 1,
|
|
8358
|
+
"textAlignment": "left",
|
|
8359
|
+
"textColor": "default",
|
|
8360
|
+
},
|
|
8361
|
+
"type": "tableCell",
|
|
8362
|
+
},
|
|
8363
|
+
{
|
|
8364
|
+
"content": [
|
|
8365
|
+
{
|
|
8366
|
+
"styles": {},
|
|
8367
|
+
"text": "Cell 9",
|
|
8368
|
+
"type": "text",
|
|
8369
|
+
},
|
|
8370
|
+
],
|
|
8371
|
+
"props": {
|
|
8372
|
+
"backgroundColor": "default",
|
|
8373
|
+
"colspan": 1,
|
|
8374
|
+
"rowspan": 1,
|
|
8375
|
+
"textAlignment": "left",
|
|
8376
|
+
"textColor": "default",
|
|
8377
|
+
},
|
|
8378
|
+
"type": "tableCell",
|
|
8379
|
+
},
|
|
8380
|
+
],
|
|
8381
|
+
},
|
|
8382
|
+
],
|
|
8383
|
+
"type": "tableContent",
|
|
8384
|
+
},
|
|
8385
|
+
"id": "table-0",
|
|
8386
|
+
"props": {
|
|
8387
|
+
"textColor": "default",
|
|
8388
|
+
},
|
|
8389
|
+
"type": "table",
|
|
8390
|
+
},
|
|
8391
|
+
{
|
|
8392
|
+
"children": [],
|
|
8393
|
+
"content": [
|
|
8394
|
+
{
|
|
8395
|
+
"styles": {},
|
|
8396
|
+
"text": "Paragraph 7",
|
|
8397
|
+
"type": "text",
|
|
8398
|
+
},
|
|
8399
|
+
],
|
|
8400
|
+
"id": "paragraph-7",
|
|
8401
|
+
"props": {
|
|
8402
|
+
"backgroundColor": "default",
|
|
8403
|
+
"textAlignment": "left",
|
|
8404
|
+
"textColor": "default",
|
|
8405
|
+
},
|
|
8406
|
+
"type": "paragraph",
|
|
8407
|
+
},
|
|
8408
|
+
{
|
|
8409
|
+
"children": [],
|
|
8410
|
+
"content": [],
|
|
8411
|
+
"id": "empty-paragraph",
|
|
8412
|
+
"props": {
|
|
8413
|
+
"backgroundColor": "default",
|
|
8414
|
+
"textAlignment": "left",
|
|
8415
|
+
"textColor": "default",
|
|
8416
|
+
},
|
|
8417
|
+
"type": "paragraph",
|
|
8418
|
+
},
|
|
8419
|
+
{
|
|
8420
|
+
"children": [],
|
|
8421
|
+
"content": [
|
|
8422
|
+
{
|
|
8423
|
+
"styles": {},
|
|
8424
|
+
"text": "Paragraph 8",
|
|
8425
|
+
"type": "text",
|
|
8426
|
+
},
|
|
8427
|
+
],
|
|
8428
|
+
"id": "paragraph-8",
|
|
8429
|
+
"props": {
|
|
8430
|
+
"backgroundColor": "default",
|
|
8431
|
+
"textAlignment": "left",
|
|
8432
|
+
"textColor": "default",
|
|
8433
|
+
},
|
|
8434
|
+
"type": "paragraph",
|
|
8435
|
+
},
|
|
8436
|
+
{
|
|
8437
|
+
"children": [
|
|
8438
|
+
{
|
|
8439
|
+
"children": [],
|
|
8440
|
+
"content": [
|
|
8441
|
+
{
|
|
8442
|
+
"styles": {},
|
|
8443
|
+
"text": "Double Nested Paragraph 1",
|
|
8444
|
+
"type": "text",
|
|
8445
|
+
},
|
|
8446
|
+
],
|
|
8447
|
+
"id": "double-nested-paragraph-1",
|
|
8448
|
+
"props": {
|
|
8449
|
+
"backgroundColor": "default",
|
|
8450
|
+
"textAlignment": "left",
|
|
8451
|
+
"textColor": "default",
|
|
8452
|
+
},
|
|
8453
|
+
"type": "paragraph",
|
|
8454
|
+
},
|
|
8455
|
+
],
|
|
8456
|
+
"content": [
|
|
8457
|
+
{
|
|
8458
|
+
"styles": {},
|
|
8459
|
+
"text": "Nested Paragraph 1",
|
|
8460
|
+
"type": "text",
|
|
8461
|
+
},
|
|
8462
|
+
],
|
|
8463
|
+
"id": "nested-paragraph-1",
|
|
8464
|
+
"props": {
|
|
8465
|
+
"backgroundColor": "default",
|
|
8466
|
+
"textAlignment": "left",
|
|
8467
|
+
"textColor": "default",
|
|
8468
|
+
},
|
|
8469
|
+
"type": "paragraph",
|
|
8470
|
+
},
|
|
8471
|
+
{
|
|
8472
|
+
"children": [],
|
|
8473
|
+
"content": [
|
|
8474
|
+
{
|
|
8475
|
+
"styles": {
|
|
8476
|
+
"bold": true,
|
|
8477
|
+
},
|
|
8478
|
+
"text": "Heading",
|
|
8479
|
+
"type": "text",
|
|
8480
|
+
},
|
|
8481
|
+
{
|
|
8482
|
+
"styles": {},
|
|
8483
|
+
"text": " with styled ",
|
|
8484
|
+
"type": "text",
|
|
8485
|
+
},
|
|
8486
|
+
{
|
|
8487
|
+
"styles": {
|
|
8488
|
+
"italic": true,
|
|
8489
|
+
},
|
|
8490
|
+
"text": "content",
|
|
8491
|
+
"type": "text",
|
|
8492
|
+
},
|
|
8493
|
+
],
|
|
8494
|
+
"id": "heading-with-everything",
|
|
8495
|
+
"props": {
|
|
8496
|
+
"backgroundColor": "red",
|
|
8497
|
+
"isToggleable": false,
|
|
8498
|
+
"level": 2,
|
|
8499
|
+
"textAlignment": "center",
|
|
8500
|
+
"textColor": "red",
|
|
8501
|
+
},
|
|
8502
|
+
"type": "heading",
|
|
8503
|
+
},
|
|
8504
|
+
{
|
|
8505
|
+
"children": [],
|
|
8506
|
+
"content": [],
|
|
8507
|
+
"id": "paragraph-9",
|
|
6249
8508
|
"props": {
|
|
6250
8509
|
"backgroundColor": "default",
|
|
6251
8510
|
"textAlignment": "left",
|
|
@@ -6813,7 +9072,7 @@ exports[`Test moveBlocksUp > First block 1`] = `
|
|
|
6813
9072
|
{
|
|
6814
9073
|
"children": [],
|
|
6815
9074
|
"content": [],
|
|
6816
|
-
"id": "
|
|
9075
|
+
"id": "paragraph-9",
|
|
6817
9076
|
"props": {
|
|
6818
9077
|
"backgroundColor": "default",
|
|
6819
9078
|
"textAlignment": "left",
|
|
@@ -7381,7 +9640,7 @@ exports[`Test moveBlocksUp > Into children 1`] = `
|
|
|
7381
9640
|
{
|
|
7382
9641
|
"children": [],
|
|
7383
9642
|
"content": [],
|
|
7384
|
-
"id": "
|
|
9643
|
+
"id": "paragraph-9",
|
|
7385
9644
|
"props": {
|
|
7386
9645
|
"backgroundColor": "default",
|
|
7387
9646
|
"textAlignment": "left",
|
|
@@ -7949,7 +10208,7 @@ exports[`Test moveBlocksUp > Multiple blocks 1`] = `
|
|
|
7949
10208
|
{
|
|
7950
10209
|
"children": [],
|
|
7951
10210
|
"content": [],
|
|
7952
|
-
"id": "
|
|
10211
|
+
"id": "paragraph-9",
|
|
7953
10212
|
"props": {
|
|
7954
10213
|
"backgroundColor": "default",
|
|
7955
10214
|
"textAlignment": "left",
|
|
@@ -8517,7 +10776,7 @@ exports[`Test moveBlocksUp > Multiple blocks ending in block with children 1`] =
|
|
|
8517
10776
|
{
|
|
8518
10777
|
"children": [],
|
|
8519
10778
|
"content": [],
|
|
8520
|
-
"id": "
|
|
10779
|
+
"id": "paragraph-9",
|
|
8521
10780
|
"props": {
|
|
8522
10781
|
"backgroundColor": "default",
|
|
8523
10782
|
"textAlignment": "left",
|
|
@@ -9085,7 +11344,7 @@ exports[`Test moveBlocksUp > Multiple blocks ending in nested block 1`] = `
|
|
|
9085
11344
|
{
|
|
9086
11345
|
"children": [],
|
|
9087
11346
|
"content": [],
|
|
9088
|
-
"id": "
|
|
11347
|
+
"id": "paragraph-9",
|
|
9089
11348
|
"props": {
|
|
9090
11349
|
"backgroundColor": "default",
|
|
9091
11350
|
"textAlignment": "left",
|
|
@@ -9652,7 +11911,7 @@ exports[`Test moveBlocksUp > Multiple blocks starting and ending in nested block
|
|
|
9652
11911
|
{
|
|
9653
11912
|
"children": [],
|
|
9654
11913
|
"content": [],
|
|
9655
|
-
"id": "
|
|
11914
|
+
"id": "paragraph-9",
|
|
9656
11915
|
"props": {
|
|
9657
11916
|
"backgroundColor": "default",
|
|
9658
11917
|
"textAlignment": "left",
|
|
@@ -10220,7 +12479,7 @@ exports[`Test moveBlocksUp > Multiple blocks starting in block with children 1`]
|
|
|
10220
12479
|
{
|
|
10221
12480
|
"children": [],
|
|
10222
12481
|
"content": [],
|
|
10223
|
-
"id": "
|
|
12482
|
+
"id": "paragraph-9",
|
|
10224
12483
|
"props": {
|
|
10225
12484
|
"backgroundColor": "default",
|
|
10226
12485
|
"textAlignment": "left",
|
|
@@ -10787,7 +13046,7 @@ exports[`Test moveBlocksUp > Multiple blocks starting in nested block 1`] = `
|
|
|
10787
13046
|
{
|
|
10788
13047
|
"children": [],
|
|
10789
13048
|
"content": [],
|
|
10790
|
-
"id": "
|
|
13049
|
+
"id": "paragraph-9",
|
|
10791
13050
|
"props": {
|
|
10792
13051
|
"backgroundColor": "default",
|
|
10793
13052
|
"textAlignment": "left",
|
|
@@ -11354,7 +13613,7 @@ exports[`Test moveBlocksUp > Out of children 1`] = `
|
|
|
11354
13613
|
{
|
|
11355
13614
|
"children": [],
|
|
11356
13615
|
"content": [],
|
|
11357
|
-
"id": "
|
|
13616
|
+
"id": "paragraph-9",
|
|
11358
13617
|
"props": {
|
|
11359
13618
|
"backgroundColor": "default",
|
|
11360
13619
|
"textAlignment": "left",
|