@blocknote/xl-multi-column 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/LICENSE +661 -0
  2. package/dist/blocknote-xl-multi-column.js +3038 -0
  3. package/dist/blocknote-xl-multi-column.js.map +1 -0
  4. package/dist/blocknote-xl-multi-column.umd.cjs +69 -0
  5. package/dist/blocknote-xl-multi-column.umd.cjs.map +1 -0
  6. package/dist/webpack-stats.json +1 -0
  7. package/package.json +80 -0
  8. package/src/blocks/Columns/index.ts +15 -0
  9. package/src/blocks/schema.ts +43 -0
  10. package/src/extensions/ColumnResize/ColumnResizeExtension.ts +357 -0
  11. package/src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts +480 -0
  12. package/src/extensions/SuggestionMenu/getMultiColumnSlashMenuItems.tsx +105 -0
  13. package/src/i18n/dictionary.ts +27 -0
  14. package/src/i18n/locales/ar.ts +18 -0
  15. package/src/i18n/locales/de.ts +18 -0
  16. package/src/i18n/locales/en.ts +16 -0
  17. package/src/i18n/locales/es.ts +18 -0
  18. package/src/i18n/locales/fr.ts +18 -0
  19. package/src/i18n/locales/hr.ts +18 -0
  20. package/src/i18n/locales/index.ts +15 -0
  21. package/src/i18n/locales/is.ts +18 -0
  22. package/src/i18n/locales/ja.ts +18 -0
  23. package/src/i18n/locales/ko.ts +18 -0
  24. package/src/i18n/locales/nl.ts +18 -0
  25. package/src/i18n/locales/pl.ts +18 -0
  26. package/src/i18n/locales/pt.ts +18 -0
  27. package/src/i18n/locales/ru.ts +18 -0
  28. package/src/i18n/locales/vi.ts +18 -0
  29. package/src/i18n/locales/zh.ts +18 -0
  30. package/src/index.ts +7 -0
  31. package/src/pm-nodes/Column.ts +87 -0
  32. package/src/pm-nodes/ColumnList.ts +44 -0
  33. package/src/test/commands/__snapshots__/insertBlocks.test.ts.snap +757 -0
  34. package/src/test/commands/__snapshots__/textCursorPosition.test.ts.snap +169 -0
  35. package/src/test/commands/__snapshots__/updateBlock.test.ts.snap +964 -0
  36. package/src/test/commands/insertBlocks.test.ts +206 -0
  37. package/src/test/commands/textCursorPosition.test.ts +19 -0
  38. package/src/test/commands/updateBlock.test.ts +212 -0
  39. package/src/test/conversions/__snapshots__/multi-column/undefined/external.html +1 -0
  40. package/src/test/conversions/__snapshots__/multi-column/undefined/internal.html +1 -0
  41. package/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap +118 -0
  42. package/src/test/conversions/htmlConversion.test.ts +100 -0
  43. package/src/test/conversions/nodeConversion.test.ts +84 -0
  44. package/src/test/conversions/testCases.ts +54 -0
  45. package/src/test/setupTestEnv.ts +99 -0
  46. package/src/vite-env.d.ts +1 -0
  47. package/types/src/blocks/Columns/index.d.ts +32 -0
  48. package/types/src/blocks/schema.d.ts +102 -0
  49. package/types/src/extensions/ColumnResize/ColumnResizeExtension.d.ts +3 -0
  50. package/types/src/extensions/DropCursor/MultiColumnDropCursorPlugin.d.ts +11 -0
  51. package/types/src/extensions/SuggestionMenu/getMultiColumnSlashMenuItems.d.ts +5 -0
  52. package/types/src/i18n/dictionary.d.ts +19 -0
  53. package/types/src/i18n/locales/ar.d.ts +2 -0
  54. package/types/src/i18n/locales/de.d.ts +2 -0
  55. package/types/src/i18n/locales/en.d.ts +16 -0
  56. package/types/src/i18n/locales/es.d.ts +2 -0
  57. package/types/src/i18n/locales/fr.d.ts +2 -0
  58. package/types/src/i18n/locales/hr.d.ts +2 -0
  59. package/types/src/i18n/locales/index.d.ts +15 -0
  60. package/types/src/i18n/locales/is.d.ts +2 -0
  61. package/types/src/i18n/locales/ja.d.ts +2 -0
  62. package/types/src/i18n/locales/ko.d.ts +2 -0
  63. package/types/src/i18n/locales/nl.d.ts +2 -0
  64. package/types/src/i18n/locales/pl.d.ts +2 -0
  65. package/types/src/i18n/locales/pt.d.ts +2 -0
  66. package/types/src/i18n/locales/ru.d.ts +2 -0
  67. package/types/src/i18n/locales/vi.d.ts +2 -0
  68. package/types/src/i18n/locales/zh.d.ts +2 -0
  69. package/types/src/index.d.ts +7 -0
  70. package/types/src/pm-nodes/Column.d.ts +6 -0
  71. package/types/src/pm-nodes/ColumnList.d.ts +6 -0
  72. package/types/src/test/commands/insertBlocks.test.d.ts +1 -0
  73. package/types/src/test/commands/textCursorPosition.test.d.ts +1 -0
  74. package/types/src/test/commands/updateBlock.test.d.ts +1 -0
  75. package/types/src/test/conversions/htmlConversion.test.d.ts +1 -0
  76. package/types/src/test/conversions/nodeConversion.test.d.ts +1 -0
  77. package/types/src/test/conversions/testCases.d.ts +3 -0
  78. package/types/src/test/setupTestEnv.d.ts +1041 -0
@@ -0,0 +1,964 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Test updateBlock > Update column list new children 1`] = `
4
+ [
5
+ {
6
+ "children": [
7
+ {
8
+ "children": [],
9
+ "content": [
10
+ {
11
+ "styles": {},
12
+ "text": "Nested Paragraph 0",
13
+ "type": "text",
14
+ },
15
+ ],
16
+ "id": "nested-paragraph-0",
17
+ "props": {
18
+ "backgroundColor": "default",
19
+ "textAlignment": "left",
20
+ "textColor": "default",
21
+ },
22
+ "type": "paragraph",
23
+ },
24
+ ],
25
+ "content": [
26
+ {
27
+ "styles": {},
28
+ "text": "Paragraph 0",
29
+ "type": "text",
30
+ },
31
+ ],
32
+ "id": "paragraph-0",
33
+ "props": {
34
+ "backgroundColor": "default",
35
+ "textAlignment": "left",
36
+ "textColor": "default",
37
+ },
38
+ "type": "paragraph",
39
+ },
40
+ {
41
+ "children": [
42
+ {
43
+ "children": [
44
+ {
45
+ "children": [],
46
+ "content": [
47
+ {
48
+ "styles": {},
49
+ "text": "Inserted Column Paragraph",
50
+ "type": "text",
51
+ },
52
+ ],
53
+ "id": "1",
54
+ "props": {
55
+ "backgroundColor": "default",
56
+ "textAlignment": "left",
57
+ "textColor": "default",
58
+ },
59
+ "type": "paragraph",
60
+ },
61
+ ],
62
+ "content": undefined,
63
+ "id": "0",
64
+ "props": {
65
+ "width": 1,
66
+ },
67
+ "type": "column",
68
+ },
69
+ {
70
+ "children": [
71
+ {
72
+ "children": [],
73
+ "content": [
74
+ {
75
+ "styles": {},
76
+ "text": "Inserted Column Paragraph",
77
+ "type": "text",
78
+ },
79
+ ],
80
+ "id": "3",
81
+ "props": {
82
+ "backgroundColor": "default",
83
+ "textAlignment": "left",
84
+ "textColor": "default",
85
+ },
86
+ "type": "paragraph",
87
+ },
88
+ ],
89
+ "content": undefined,
90
+ "id": "2",
91
+ "props": {
92
+ "width": 1,
93
+ },
94
+ "type": "column",
95
+ },
96
+ ],
97
+ "content": undefined,
98
+ "id": "column-list-0",
99
+ "props": {},
100
+ "type": "columnList",
101
+ },
102
+ {
103
+ "children": [],
104
+ "content": [],
105
+ "id": "trailing-paragraph",
106
+ "props": {
107
+ "backgroundColor": "default",
108
+ "textAlignment": "left",
109
+ "textColor": "default",
110
+ },
111
+ "type": "paragraph",
112
+ },
113
+ ]
114
+ `;
115
+
116
+ exports[`Test updateBlock > Update column new children 1`] = `
117
+ [
118
+ {
119
+ "children": [
120
+ {
121
+ "children": [],
122
+ "content": [
123
+ {
124
+ "styles": {},
125
+ "text": "Nested Paragraph 0",
126
+ "type": "text",
127
+ },
128
+ ],
129
+ "id": "nested-paragraph-0",
130
+ "props": {
131
+ "backgroundColor": "default",
132
+ "textAlignment": "left",
133
+ "textColor": "default",
134
+ },
135
+ "type": "paragraph",
136
+ },
137
+ ],
138
+ "content": [
139
+ {
140
+ "styles": {},
141
+ "text": "Paragraph 0",
142
+ "type": "text",
143
+ },
144
+ ],
145
+ "id": "paragraph-0",
146
+ "props": {
147
+ "backgroundColor": "default",
148
+ "textAlignment": "left",
149
+ "textColor": "default",
150
+ },
151
+ "type": "paragraph",
152
+ },
153
+ {
154
+ "children": [
155
+ {
156
+ "children": [
157
+ {
158
+ "children": [],
159
+ "content": [
160
+ {
161
+ "styles": {},
162
+ "text": "Inserted Column Paragraph",
163
+ "type": "text",
164
+ },
165
+ ],
166
+ "id": "0",
167
+ "props": {
168
+ "backgroundColor": "default",
169
+ "textAlignment": "left",
170
+ "textColor": "default",
171
+ },
172
+ "type": "paragraph",
173
+ },
174
+ ],
175
+ "content": undefined,
176
+ "id": "column-0",
177
+ "props": {
178
+ "width": 1,
179
+ },
180
+ "type": "column",
181
+ },
182
+ {
183
+ "children": [
184
+ {
185
+ "children": [],
186
+ "content": [
187
+ {
188
+ "styles": {},
189
+ "text": "Column Paragraph 2",
190
+ "type": "text",
191
+ },
192
+ ],
193
+ "id": "column-paragraph-2",
194
+ "props": {
195
+ "backgroundColor": "default",
196
+ "textAlignment": "left",
197
+ "textColor": "default",
198
+ },
199
+ "type": "paragraph",
200
+ },
201
+ {
202
+ "children": [],
203
+ "content": [
204
+ {
205
+ "styles": {},
206
+ "text": "Column Paragraph 3",
207
+ "type": "text",
208
+ },
209
+ ],
210
+ "id": "column-paragraph-3",
211
+ "props": {
212
+ "backgroundColor": "default",
213
+ "textAlignment": "left",
214
+ "textColor": "default",
215
+ },
216
+ "type": "paragraph",
217
+ },
218
+ ],
219
+ "content": undefined,
220
+ "id": "column-1",
221
+ "props": {
222
+ "width": 1,
223
+ },
224
+ "type": "column",
225
+ },
226
+ ],
227
+ "content": undefined,
228
+ "id": "column-list-0",
229
+ "props": {},
230
+ "type": "columnList",
231
+ },
232
+ {
233
+ "children": [],
234
+ "content": [],
235
+ "id": "trailing-paragraph",
236
+ "props": {
237
+ "backgroundColor": "default",
238
+ "textAlignment": "left",
239
+ "textColor": "default",
240
+ },
241
+ "type": "paragraph",
242
+ },
243
+ ]
244
+ `;
245
+
246
+ exports[`Test updateBlock > Update nested paragraph to column 1`] = `
247
+ [
248
+ {
249
+ "children": [
250
+ {
251
+ "children": [
252
+ {
253
+ "children": [
254
+ {
255
+ "children": [],
256
+ "content": [
257
+ {
258
+ "styles": {},
259
+ "text": "Inserted Column Paragraph",
260
+ "type": "text",
261
+ },
262
+ ],
263
+ "id": "1",
264
+ "props": {
265
+ "backgroundColor": "default",
266
+ "textAlignment": "left",
267
+ "textColor": "default",
268
+ },
269
+ "type": "paragraph",
270
+ },
271
+ ],
272
+ "content": undefined,
273
+ "id": "0",
274
+ "props": {
275
+ "width": 1,
276
+ },
277
+ "type": "column",
278
+ },
279
+ {
280
+ "children": [
281
+ {
282
+ "children": [],
283
+ "content": [],
284
+ "id": "4",
285
+ "props": {
286
+ "backgroundColor": "default",
287
+ "textAlignment": "left",
288
+ "textColor": "default",
289
+ },
290
+ "type": "paragraph",
291
+ },
292
+ ],
293
+ "content": undefined,
294
+ "id": "3",
295
+ "props": {
296
+ "width": 1,
297
+ },
298
+ "type": "column",
299
+ },
300
+ ],
301
+ "content": undefined,
302
+ "id": "2",
303
+ "props": {},
304
+ "type": "columnList",
305
+ },
306
+ ],
307
+ "content": [
308
+ {
309
+ "styles": {},
310
+ "text": "Paragraph 0",
311
+ "type": "text",
312
+ },
313
+ ],
314
+ "id": "paragraph-0",
315
+ "props": {
316
+ "backgroundColor": "default",
317
+ "textAlignment": "left",
318
+ "textColor": "default",
319
+ },
320
+ "type": "paragraph",
321
+ },
322
+ {
323
+ "children": [
324
+ {
325
+ "children": [
326
+ {
327
+ "children": [],
328
+ "content": [
329
+ {
330
+ "styles": {},
331
+ "text": "Column Paragraph 0",
332
+ "type": "text",
333
+ },
334
+ ],
335
+ "id": "column-paragraph-0",
336
+ "props": {
337
+ "backgroundColor": "default",
338
+ "textAlignment": "left",
339
+ "textColor": "default",
340
+ },
341
+ "type": "paragraph",
342
+ },
343
+ {
344
+ "children": [],
345
+ "content": [
346
+ {
347
+ "styles": {},
348
+ "text": "Column Paragraph 1",
349
+ "type": "text",
350
+ },
351
+ ],
352
+ "id": "column-paragraph-1",
353
+ "props": {
354
+ "backgroundColor": "default",
355
+ "textAlignment": "left",
356
+ "textColor": "default",
357
+ },
358
+ "type": "paragraph",
359
+ },
360
+ ],
361
+ "content": undefined,
362
+ "id": "column-0",
363
+ "props": {
364
+ "width": 1,
365
+ },
366
+ "type": "column",
367
+ },
368
+ {
369
+ "children": [
370
+ {
371
+ "children": [],
372
+ "content": [
373
+ {
374
+ "styles": {},
375
+ "text": "Column Paragraph 2",
376
+ "type": "text",
377
+ },
378
+ ],
379
+ "id": "column-paragraph-2",
380
+ "props": {
381
+ "backgroundColor": "default",
382
+ "textAlignment": "left",
383
+ "textColor": "default",
384
+ },
385
+ "type": "paragraph",
386
+ },
387
+ {
388
+ "children": [],
389
+ "content": [
390
+ {
391
+ "styles": {},
392
+ "text": "Column Paragraph 3",
393
+ "type": "text",
394
+ },
395
+ ],
396
+ "id": "column-paragraph-3",
397
+ "props": {
398
+ "backgroundColor": "default",
399
+ "textAlignment": "left",
400
+ "textColor": "default",
401
+ },
402
+ "type": "paragraph",
403
+ },
404
+ ],
405
+ "content": undefined,
406
+ "id": "column-1",
407
+ "props": {
408
+ "width": 1,
409
+ },
410
+ "type": "column",
411
+ },
412
+ ],
413
+ "content": undefined,
414
+ "id": "column-list-0",
415
+ "props": {},
416
+ "type": "columnList",
417
+ },
418
+ {
419
+ "children": [],
420
+ "content": [],
421
+ "id": "trailing-paragraph",
422
+ "props": {
423
+ "backgroundColor": "default",
424
+ "textAlignment": "left",
425
+ "textColor": "default",
426
+ },
427
+ "type": "paragraph",
428
+ },
429
+ ]
430
+ `;
431
+
432
+ exports[`Test updateBlock > Update nested paragraph to column list 1`] = `
433
+ [
434
+ {
435
+ "children": [
436
+ {
437
+ "children": [
438
+ {
439
+ "children": [
440
+ {
441
+ "children": [],
442
+ "content": [
443
+ {
444
+ "styles": {},
445
+ "text": "Inserted Column Paragraph",
446
+ "type": "text",
447
+ },
448
+ ],
449
+ "id": "2",
450
+ "props": {
451
+ "backgroundColor": "default",
452
+ "textAlignment": "left",
453
+ "textColor": "default",
454
+ },
455
+ "type": "paragraph",
456
+ },
457
+ ],
458
+ "content": undefined,
459
+ "id": "1",
460
+ "props": {
461
+ "width": 1,
462
+ },
463
+ "type": "column",
464
+ },
465
+ {
466
+ "children": [
467
+ {
468
+ "children": [],
469
+ "content": [
470
+ {
471
+ "styles": {},
472
+ "text": "Inserted Column Paragraph",
473
+ "type": "text",
474
+ },
475
+ ],
476
+ "id": "4",
477
+ "props": {
478
+ "backgroundColor": "default",
479
+ "textAlignment": "left",
480
+ "textColor": "default",
481
+ },
482
+ "type": "paragraph",
483
+ },
484
+ ],
485
+ "content": undefined,
486
+ "id": "3",
487
+ "props": {
488
+ "width": 1,
489
+ },
490
+ "type": "column",
491
+ },
492
+ ],
493
+ "content": undefined,
494
+ "id": "0",
495
+ "props": {},
496
+ "type": "columnList",
497
+ },
498
+ ],
499
+ "content": [
500
+ {
501
+ "styles": {},
502
+ "text": "Paragraph 0",
503
+ "type": "text",
504
+ },
505
+ ],
506
+ "id": "paragraph-0",
507
+ "props": {
508
+ "backgroundColor": "default",
509
+ "textAlignment": "left",
510
+ "textColor": "default",
511
+ },
512
+ "type": "paragraph",
513
+ },
514
+ {
515
+ "children": [
516
+ {
517
+ "children": [
518
+ {
519
+ "children": [],
520
+ "content": [
521
+ {
522
+ "styles": {},
523
+ "text": "Column Paragraph 0",
524
+ "type": "text",
525
+ },
526
+ ],
527
+ "id": "column-paragraph-0",
528
+ "props": {
529
+ "backgroundColor": "default",
530
+ "textAlignment": "left",
531
+ "textColor": "default",
532
+ },
533
+ "type": "paragraph",
534
+ },
535
+ {
536
+ "children": [],
537
+ "content": [
538
+ {
539
+ "styles": {},
540
+ "text": "Column Paragraph 1",
541
+ "type": "text",
542
+ },
543
+ ],
544
+ "id": "column-paragraph-1",
545
+ "props": {
546
+ "backgroundColor": "default",
547
+ "textAlignment": "left",
548
+ "textColor": "default",
549
+ },
550
+ "type": "paragraph",
551
+ },
552
+ ],
553
+ "content": undefined,
554
+ "id": "column-0",
555
+ "props": {
556
+ "width": 1,
557
+ },
558
+ "type": "column",
559
+ },
560
+ {
561
+ "children": [
562
+ {
563
+ "children": [],
564
+ "content": [
565
+ {
566
+ "styles": {},
567
+ "text": "Column Paragraph 2",
568
+ "type": "text",
569
+ },
570
+ ],
571
+ "id": "column-paragraph-2",
572
+ "props": {
573
+ "backgroundColor": "default",
574
+ "textAlignment": "left",
575
+ "textColor": "default",
576
+ },
577
+ "type": "paragraph",
578
+ },
579
+ {
580
+ "children": [],
581
+ "content": [
582
+ {
583
+ "styles": {},
584
+ "text": "Column Paragraph 3",
585
+ "type": "text",
586
+ },
587
+ ],
588
+ "id": "column-paragraph-3",
589
+ "props": {
590
+ "backgroundColor": "default",
591
+ "textAlignment": "left",
592
+ "textColor": "default",
593
+ },
594
+ "type": "paragraph",
595
+ },
596
+ ],
597
+ "content": undefined,
598
+ "id": "column-1",
599
+ "props": {
600
+ "width": 1,
601
+ },
602
+ "type": "column",
603
+ },
604
+ ],
605
+ "content": undefined,
606
+ "id": "column-list-0",
607
+ "props": {},
608
+ "type": "columnList",
609
+ },
610
+ {
611
+ "children": [],
612
+ "content": [],
613
+ "id": "trailing-paragraph",
614
+ "props": {
615
+ "backgroundColor": "default",
616
+ "textAlignment": "left",
617
+ "textColor": "default",
618
+ },
619
+ "type": "paragraph",
620
+ },
621
+ ]
622
+ `;
623
+
624
+ exports[`Test updateBlock > Update paragraph to column 1`] = `
625
+ [
626
+ {
627
+ "children": [
628
+ {
629
+ "children": [
630
+ {
631
+ "children": [],
632
+ "content": [
633
+ {
634
+ "styles": {},
635
+ "text": "Inserted Column Paragraph",
636
+ "type": "text",
637
+ },
638
+ ],
639
+ "id": "1",
640
+ "props": {
641
+ "backgroundColor": "default",
642
+ "textAlignment": "left",
643
+ "textColor": "default",
644
+ },
645
+ "type": "paragraph",
646
+ },
647
+ ],
648
+ "content": undefined,
649
+ "id": "0",
650
+ "props": {
651
+ "width": 1,
652
+ },
653
+ "type": "column",
654
+ },
655
+ {
656
+ "children": [
657
+ {
658
+ "children": [],
659
+ "content": [],
660
+ "id": "4",
661
+ "props": {
662
+ "backgroundColor": "default",
663
+ "textAlignment": "left",
664
+ "textColor": "default",
665
+ },
666
+ "type": "paragraph",
667
+ },
668
+ ],
669
+ "content": undefined,
670
+ "id": "3",
671
+ "props": {
672
+ "width": 1,
673
+ },
674
+ "type": "column",
675
+ },
676
+ ],
677
+ "content": undefined,
678
+ "id": "2",
679
+ "props": {},
680
+ "type": "columnList",
681
+ },
682
+ {
683
+ "children": [
684
+ {
685
+ "children": [
686
+ {
687
+ "children": [],
688
+ "content": [
689
+ {
690
+ "styles": {},
691
+ "text": "Column Paragraph 0",
692
+ "type": "text",
693
+ },
694
+ ],
695
+ "id": "column-paragraph-0",
696
+ "props": {
697
+ "backgroundColor": "default",
698
+ "textAlignment": "left",
699
+ "textColor": "default",
700
+ },
701
+ "type": "paragraph",
702
+ },
703
+ {
704
+ "children": [],
705
+ "content": [
706
+ {
707
+ "styles": {},
708
+ "text": "Column Paragraph 1",
709
+ "type": "text",
710
+ },
711
+ ],
712
+ "id": "column-paragraph-1",
713
+ "props": {
714
+ "backgroundColor": "default",
715
+ "textAlignment": "left",
716
+ "textColor": "default",
717
+ },
718
+ "type": "paragraph",
719
+ },
720
+ ],
721
+ "content": undefined,
722
+ "id": "column-0",
723
+ "props": {
724
+ "width": 1,
725
+ },
726
+ "type": "column",
727
+ },
728
+ {
729
+ "children": [
730
+ {
731
+ "children": [],
732
+ "content": [
733
+ {
734
+ "styles": {},
735
+ "text": "Column Paragraph 2",
736
+ "type": "text",
737
+ },
738
+ ],
739
+ "id": "column-paragraph-2",
740
+ "props": {
741
+ "backgroundColor": "default",
742
+ "textAlignment": "left",
743
+ "textColor": "default",
744
+ },
745
+ "type": "paragraph",
746
+ },
747
+ {
748
+ "children": [],
749
+ "content": [
750
+ {
751
+ "styles": {},
752
+ "text": "Column Paragraph 3",
753
+ "type": "text",
754
+ },
755
+ ],
756
+ "id": "column-paragraph-3",
757
+ "props": {
758
+ "backgroundColor": "default",
759
+ "textAlignment": "left",
760
+ "textColor": "default",
761
+ },
762
+ "type": "paragraph",
763
+ },
764
+ ],
765
+ "content": undefined,
766
+ "id": "column-1",
767
+ "props": {
768
+ "width": 1,
769
+ },
770
+ "type": "column",
771
+ },
772
+ ],
773
+ "content": undefined,
774
+ "id": "column-list-0",
775
+ "props": {},
776
+ "type": "columnList",
777
+ },
778
+ {
779
+ "children": [],
780
+ "content": [],
781
+ "id": "trailing-paragraph",
782
+ "props": {
783
+ "backgroundColor": "default",
784
+ "textAlignment": "left",
785
+ "textColor": "default",
786
+ },
787
+ "type": "paragraph",
788
+ },
789
+ ]
790
+ `;
791
+
792
+ exports[`Test updateBlock > Update paragraph to column list 1`] = `
793
+ [
794
+ {
795
+ "children": [
796
+ {
797
+ "children": [
798
+ {
799
+ "children": [],
800
+ "content": [
801
+ {
802
+ "styles": {},
803
+ "text": "Inserted Column Paragraph",
804
+ "type": "text",
805
+ },
806
+ ],
807
+ "id": "2",
808
+ "props": {
809
+ "backgroundColor": "default",
810
+ "textAlignment": "left",
811
+ "textColor": "default",
812
+ },
813
+ "type": "paragraph",
814
+ },
815
+ ],
816
+ "content": undefined,
817
+ "id": "1",
818
+ "props": {
819
+ "width": 1,
820
+ },
821
+ "type": "column",
822
+ },
823
+ {
824
+ "children": [
825
+ {
826
+ "children": [],
827
+ "content": [
828
+ {
829
+ "styles": {},
830
+ "text": "Inserted Column Paragraph",
831
+ "type": "text",
832
+ },
833
+ ],
834
+ "id": "4",
835
+ "props": {
836
+ "backgroundColor": "default",
837
+ "textAlignment": "left",
838
+ "textColor": "default",
839
+ },
840
+ "type": "paragraph",
841
+ },
842
+ ],
843
+ "content": undefined,
844
+ "id": "3",
845
+ "props": {
846
+ "width": 1,
847
+ },
848
+ "type": "column",
849
+ },
850
+ ],
851
+ "content": undefined,
852
+ "id": "0",
853
+ "props": {},
854
+ "type": "columnList",
855
+ },
856
+ {
857
+ "children": [
858
+ {
859
+ "children": [
860
+ {
861
+ "children": [],
862
+ "content": [
863
+ {
864
+ "styles": {},
865
+ "text": "Column Paragraph 0",
866
+ "type": "text",
867
+ },
868
+ ],
869
+ "id": "column-paragraph-0",
870
+ "props": {
871
+ "backgroundColor": "default",
872
+ "textAlignment": "left",
873
+ "textColor": "default",
874
+ },
875
+ "type": "paragraph",
876
+ },
877
+ {
878
+ "children": [],
879
+ "content": [
880
+ {
881
+ "styles": {},
882
+ "text": "Column Paragraph 1",
883
+ "type": "text",
884
+ },
885
+ ],
886
+ "id": "column-paragraph-1",
887
+ "props": {
888
+ "backgroundColor": "default",
889
+ "textAlignment": "left",
890
+ "textColor": "default",
891
+ },
892
+ "type": "paragraph",
893
+ },
894
+ ],
895
+ "content": undefined,
896
+ "id": "column-0",
897
+ "props": {
898
+ "width": 1,
899
+ },
900
+ "type": "column",
901
+ },
902
+ {
903
+ "children": [
904
+ {
905
+ "children": [],
906
+ "content": [
907
+ {
908
+ "styles": {},
909
+ "text": "Column Paragraph 2",
910
+ "type": "text",
911
+ },
912
+ ],
913
+ "id": "column-paragraph-2",
914
+ "props": {
915
+ "backgroundColor": "default",
916
+ "textAlignment": "left",
917
+ "textColor": "default",
918
+ },
919
+ "type": "paragraph",
920
+ },
921
+ {
922
+ "children": [],
923
+ "content": [
924
+ {
925
+ "styles": {},
926
+ "text": "Column Paragraph 3",
927
+ "type": "text",
928
+ },
929
+ ],
930
+ "id": "column-paragraph-3",
931
+ "props": {
932
+ "backgroundColor": "default",
933
+ "textAlignment": "left",
934
+ "textColor": "default",
935
+ },
936
+ "type": "paragraph",
937
+ },
938
+ ],
939
+ "content": undefined,
940
+ "id": "column-1",
941
+ "props": {
942
+ "width": 1,
943
+ },
944
+ "type": "column",
945
+ },
946
+ ],
947
+ "content": undefined,
948
+ "id": "column-list-0",
949
+ "props": {},
950
+ "type": "columnList",
951
+ },
952
+ {
953
+ "children": [],
954
+ "content": [],
955
+ "id": "trailing-paragraph",
956
+ "props": {
957
+ "backgroundColor": "default",
958
+ "textAlignment": "left",
959
+ "textColor": "default",
960
+ },
961
+ "type": "paragraph",
962
+ },
963
+ ]
964
+ `;