@blocknote/xl-multi-column 0.47.3 → 0.48.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.
@@ -0,0 +1,696 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Backspace with multi-column > backspace at block start should move block into last column 1`] = `
4
+ [
5
+ {
6
+ "children": [
7
+ {
8
+ "children": [
9
+ {
10
+ "children": [],
11
+ "content": [
12
+ {
13
+ "styles": {},
14
+ "text": "col1",
15
+ "type": "text",
16
+ },
17
+ ],
18
+ "id": "col1-para",
19
+ "props": {
20
+ "backgroundColor": "default",
21
+ "textAlignment": "left",
22
+ "textColor": "default",
23
+ },
24
+ "type": "paragraph",
25
+ },
26
+ ],
27
+ "content": undefined,
28
+ "id": "1",
29
+ "props": {
30
+ "width": 1,
31
+ },
32
+ "type": "column",
33
+ },
34
+ {
35
+ "children": [
36
+ {
37
+ "children": [],
38
+ "content": [
39
+ {
40
+ "styles": {},
41
+ "text": "col2",
42
+ "type": "text",
43
+ },
44
+ ],
45
+ "id": "col2-para",
46
+ "props": {
47
+ "backgroundColor": "default",
48
+ "textAlignment": "left",
49
+ "textColor": "default",
50
+ },
51
+ "type": "paragraph",
52
+ },
53
+ ],
54
+ "content": undefined,
55
+ "id": "2",
56
+ "props": {
57
+ "width": 1,
58
+ },
59
+ "type": "column",
60
+ },
61
+ {
62
+ "children": [
63
+ {
64
+ "children": [],
65
+ "content": [
66
+ {
67
+ "styles": {},
68
+ "text": "hello",
69
+ "type": "text",
70
+ },
71
+ ],
72
+ "id": "col3-para",
73
+ "props": {
74
+ "backgroundColor": "default",
75
+ "textAlignment": "left",
76
+ "textColor": "default",
77
+ },
78
+ "type": "paragraph",
79
+ },
80
+ {
81
+ "children": [],
82
+ "content": [
83
+ {
84
+ "styles": {},
85
+ "text": " world",
86
+ "type": "text",
87
+ },
88
+ ],
89
+ "id": "below-para",
90
+ "props": {
91
+ "backgroundColor": "default",
92
+ "textAlignment": "left",
93
+ "textColor": "default",
94
+ },
95
+ "type": "paragraph",
96
+ },
97
+ ],
98
+ "content": undefined,
99
+ "id": "3",
100
+ "props": {
101
+ "width": 1,
102
+ },
103
+ "type": "column",
104
+ },
105
+ ],
106
+ "content": undefined,
107
+ "id": "0",
108
+ "props": {},
109
+ "type": "columnList",
110
+ },
111
+ {
112
+ "children": [],
113
+ "content": [],
114
+ "id": "4",
115
+ "props": {
116
+ "backgroundColor": "default",
117
+ "textAlignment": "left",
118
+ "textColor": "default",
119
+ },
120
+ "type": "paragraph",
121
+ },
122
+ ]
123
+ `;
124
+
125
+ exports[`Backspace with multi-column > mid-text backspace next to columnList should not move block 1`] = `
126
+ [
127
+ {
128
+ "children": [
129
+ {
130
+ "children": [
131
+ {
132
+ "children": [],
133
+ "content": [
134
+ {
135
+ "styles": {},
136
+ "text": "col1",
137
+ "type": "text",
138
+ },
139
+ ],
140
+ "id": "col1-para",
141
+ "props": {
142
+ "backgroundColor": "default",
143
+ "textAlignment": "left",
144
+ "textColor": "default",
145
+ },
146
+ "type": "paragraph",
147
+ },
148
+ ],
149
+ "content": undefined,
150
+ "id": "1",
151
+ "props": {
152
+ "width": 1,
153
+ },
154
+ "type": "column",
155
+ },
156
+ {
157
+ "children": [
158
+ {
159
+ "children": [],
160
+ "content": [
161
+ {
162
+ "styles": {},
163
+ "text": "col2",
164
+ "type": "text",
165
+ },
166
+ ],
167
+ "id": "col2-para",
168
+ "props": {
169
+ "backgroundColor": "default",
170
+ "textAlignment": "left",
171
+ "textColor": "default",
172
+ },
173
+ "type": "paragraph",
174
+ },
175
+ ],
176
+ "content": undefined,
177
+ "id": "2",
178
+ "props": {
179
+ "width": 1,
180
+ },
181
+ "type": "column",
182
+ },
183
+ {
184
+ "children": [
185
+ {
186
+ "children": [],
187
+ "content": [
188
+ {
189
+ "styles": {},
190
+ "text": "hello",
191
+ "type": "text",
192
+ },
193
+ ],
194
+ "id": "col3-para",
195
+ "props": {
196
+ "backgroundColor": "default",
197
+ "textAlignment": "left",
198
+ "textColor": "default",
199
+ },
200
+ "type": "paragraph",
201
+ },
202
+ ],
203
+ "content": undefined,
204
+ "id": "3",
205
+ "props": {
206
+ "width": 1,
207
+ },
208
+ "type": "column",
209
+ },
210
+ ],
211
+ "content": undefined,
212
+ "id": "0",
213
+ "props": {},
214
+ "type": "columnList",
215
+ },
216
+ {
217
+ "children": [],
218
+ "content": [
219
+ {
220
+ "styles": {},
221
+ "text": "hello world",
222
+ "type": "text",
223
+ },
224
+ ],
225
+ "id": "below-para",
226
+ "props": {
227
+ "backgroundColor": "default",
228
+ "textAlignment": "left",
229
+ "textColor": "default",
230
+ },
231
+ "type": "paragraph",
232
+ },
233
+ {
234
+ "children": [],
235
+ "content": [],
236
+ "id": "4",
237
+ "props": {
238
+ "backgroundColor": "default",
239
+ "textAlignment": "left",
240
+ "textColor": "default",
241
+ },
242
+ "type": "paragraph",
243
+ },
244
+ ]
245
+ `;
246
+
247
+ exports[`Backspace with multi-column > second backspace should merge into previous block in column 1`] = `
248
+ [
249
+ {
250
+ "children": [
251
+ {
252
+ "children": [
253
+ {
254
+ "children": [],
255
+ "content": [
256
+ {
257
+ "styles": {},
258
+ "text": "col1",
259
+ "type": "text",
260
+ },
261
+ ],
262
+ "id": "col1-para",
263
+ "props": {
264
+ "backgroundColor": "default",
265
+ "textAlignment": "left",
266
+ "textColor": "default",
267
+ },
268
+ "type": "paragraph",
269
+ },
270
+ ],
271
+ "content": undefined,
272
+ "id": "1",
273
+ "props": {
274
+ "width": 1,
275
+ },
276
+ "type": "column",
277
+ },
278
+ {
279
+ "children": [
280
+ {
281
+ "children": [],
282
+ "content": [
283
+ {
284
+ "styles": {},
285
+ "text": "col2",
286
+ "type": "text",
287
+ },
288
+ ],
289
+ "id": "col2-para",
290
+ "props": {
291
+ "backgroundColor": "default",
292
+ "textAlignment": "left",
293
+ "textColor": "default",
294
+ },
295
+ "type": "paragraph",
296
+ },
297
+ ],
298
+ "content": undefined,
299
+ "id": "2",
300
+ "props": {
301
+ "width": 1,
302
+ },
303
+ "type": "column",
304
+ },
305
+ {
306
+ "children": [
307
+ {
308
+ "children": [],
309
+ "content": [
310
+ {
311
+ "styles": {},
312
+ "text": "hello world",
313
+ "type": "text",
314
+ },
315
+ ],
316
+ "id": "col3-para",
317
+ "props": {
318
+ "backgroundColor": "default",
319
+ "textAlignment": "left",
320
+ "textColor": "default",
321
+ },
322
+ "type": "paragraph",
323
+ },
324
+ ],
325
+ "content": undefined,
326
+ "id": "3",
327
+ "props": {
328
+ "width": 1,
329
+ },
330
+ "type": "column",
331
+ },
332
+ ],
333
+ "content": undefined,
334
+ "id": "0",
335
+ "props": {},
336
+ "type": "columnList",
337
+ },
338
+ {
339
+ "children": [],
340
+ "content": [],
341
+ "id": "4",
342
+ "props": {
343
+ "backgroundColor": "default",
344
+ "textAlignment": "left",
345
+ "textColor": "default",
346
+ },
347
+ "type": "paragraph",
348
+ },
349
+ ]
350
+ `;
351
+
352
+ exports[`Delete with multi-column > delete at block end should move first column block out 1`] = `
353
+ [
354
+ {
355
+ "children": [],
356
+ "content": [
357
+ {
358
+ "styles": {},
359
+ "text": "hello ",
360
+ "type": "text",
361
+ },
362
+ ],
363
+ "id": "above-para",
364
+ "props": {
365
+ "backgroundColor": "default",
366
+ "textAlignment": "left",
367
+ "textColor": "default",
368
+ },
369
+ "type": "paragraph",
370
+ },
371
+ {
372
+ "children": [],
373
+ "content": [
374
+ {
375
+ "styles": {},
376
+ "text": "world",
377
+ "type": "text",
378
+ },
379
+ ],
380
+ "id": "col1-para",
381
+ "props": {
382
+ "backgroundColor": "default",
383
+ "textAlignment": "left",
384
+ "textColor": "default",
385
+ },
386
+ "type": "paragraph",
387
+ },
388
+ {
389
+ "children": [
390
+ {
391
+ "children": [
392
+ {
393
+ "children": [],
394
+ "content": [
395
+ {
396
+ "styles": {},
397
+ "text": "universe",
398
+ "type": "text",
399
+ },
400
+ ],
401
+ "id": "col2-para",
402
+ "props": {
403
+ "backgroundColor": "default",
404
+ "textAlignment": "left",
405
+ "textColor": "default",
406
+ },
407
+ "type": "paragraph",
408
+ },
409
+ ],
410
+ "content": undefined,
411
+ "id": "2",
412
+ "props": {
413
+ "width": 1,
414
+ },
415
+ "type": "column",
416
+ },
417
+ {
418
+ "children": [
419
+ {
420
+ "children": [],
421
+ "content": [
422
+ {
423
+ "styles": {},
424
+ "text": "planet",
425
+ "type": "text",
426
+ },
427
+ ],
428
+ "id": "col3-para",
429
+ "props": {
430
+ "backgroundColor": "default",
431
+ "textAlignment": "left",
432
+ "textColor": "default",
433
+ },
434
+ "type": "paragraph",
435
+ },
436
+ ],
437
+ "content": undefined,
438
+ "id": "3",
439
+ "props": {
440
+ "width": 1,
441
+ },
442
+ "type": "column",
443
+ },
444
+ ],
445
+ "content": undefined,
446
+ "id": "0",
447
+ "props": {},
448
+ "type": "columnList",
449
+ },
450
+ {
451
+ "children": [],
452
+ "content": [],
453
+ "id": "4",
454
+ "props": {
455
+ "backgroundColor": "default",
456
+ "textAlignment": "left",
457
+ "textColor": "default",
458
+ },
459
+ "type": "paragraph",
460
+ },
461
+ ]
462
+ `;
463
+
464
+ exports[`Delete with multi-column > mid-text delete next to columnList should not move block 1`] = `
465
+ [
466
+ {
467
+ "children": [],
468
+ "content": [
469
+ {
470
+ "styles": {},
471
+ "text": "hello world",
472
+ "type": "text",
473
+ },
474
+ ],
475
+ "id": "above-para",
476
+ "props": {
477
+ "backgroundColor": "default",
478
+ "textAlignment": "left",
479
+ "textColor": "default",
480
+ },
481
+ "type": "paragraph",
482
+ },
483
+ {
484
+ "children": [
485
+ {
486
+ "children": [
487
+ {
488
+ "children": [],
489
+ "content": [
490
+ {
491
+ "styles": {},
492
+ "text": "world",
493
+ "type": "text",
494
+ },
495
+ ],
496
+ "id": "col1-para",
497
+ "props": {
498
+ "backgroundColor": "default",
499
+ "textAlignment": "left",
500
+ "textColor": "default",
501
+ },
502
+ "type": "paragraph",
503
+ },
504
+ ],
505
+ "content": undefined,
506
+ "id": "1",
507
+ "props": {
508
+ "width": 1,
509
+ },
510
+ "type": "column",
511
+ },
512
+ {
513
+ "children": [
514
+ {
515
+ "children": [],
516
+ "content": [
517
+ {
518
+ "styles": {},
519
+ "text": "universe",
520
+ "type": "text",
521
+ },
522
+ ],
523
+ "id": "col2-para",
524
+ "props": {
525
+ "backgroundColor": "default",
526
+ "textAlignment": "left",
527
+ "textColor": "default",
528
+ },
529
+ "type": "paragraph",
530
+ },
531
+ ],
532
+ "content": undefined,
533
+ "id": "2",
534
+ "props": {
535
+ "width": 1,
536
+ },
537
+ "type": "column",
538
+ },
539
+ {
540
+ "children": [
541
+ {
542
+ "children": [],
543
+ "content": [
544
+ {
545
+ "styles": {},
546
+ "text": "planet",
547
+ "type": "text",
548
+ },
549
+ ],
550
+ "id": "col3-para",
551
+ "props": {
552
+ "backgroundColor": "default",
553
+ "textAlignment": "left",
554
+ "textColor": "default",
555
+ },
556
+ "type": "paragraph",
557
+ },
558
+ ],
559
+ "content": undefined,
560
+ "id": "3",
561
+ "props": {
562
+ "width": 1,
563
+ },
564
+ "type": "column",
565
+ },
566
+ ],
567
+ "content": undefined,
568
+ "id": "0",
569
+ "props": {},
570
+ "type": "columnList",
571
+ },
572
+ {
573
+ "children": [],
574
+ "content": [],
575
+ "id": "4",
576
+ "props": {
577
+ "backgroundColor": "default",
578
+ "textAlignment": "left",
579
+ "textColor": "default",
580
+ },
581
+ "type": "paragraph",
582
+ },
583
+ ]
584
+ `;
585
+
586
+ exports[`Delete with multi-column > second delete should merge first column block into paragraph 1`] = `
587
+ [
588
+ {
589
+ "children": [],
590
+ "content": [
591
+ {
592
+ "styles": {},
593
+ "text": "hello ",
594
+ "type": "text",
595
+ },
596
+ ],
597
+ "id": "above-para",
598
+ "props": {
599
+ "backgroundColor": "default",
600
+ "textAlignment": "left",
601
+ "textColor": "default",
602
+ },
603
+ "type": "paragraph",
604
+ },
605
+ {
606
+ "children": [],
607
+ "content": [
608
+ {
609
+ "styles": {},
610
+ "text": "world",
611
+ "type": "text",
612
+ },
613
+ ],
614
+ "id": "col1-para",
615
+ "props": {
616
+ "backgroundColor": "default",
617
+ "textAlignment": "left",
618
+ "textColor": "default",
619
+ },
620
+ "type": "paragraph",
621
+ },
622
+ {
623
+ "children": [
624
+ {
625
+ "children": [
626
+ {
627
+ "children": [],
628
+ "content": [
629
+ {
630
+ "styles": {},
631
+ "text": "universe",
632
+ "type": "text",
633
+ },
634
+ ],
635
+ "id": "col2-para",
636
+ "props": {
637
+ "backgroundColor": "default",
638
+ "textAlignment": "left",
639
+ "textColor": "default",
640
+ },
641
+ "type": "paragraph",
642
+ },
643
+ ],
644
+ "content": undefined,
645
+ "id": "2",
646
+ "props": {
647
+ "width": 1,
648
+ },
649
+ "type": "column",
650
+ },
651
+ {
652
+ "children": [
653
+ {
654
+ "children": [],
655
+ "content": [
656
+ {
657
+ "styles": {},
658
+ "text": "planet",
659
+ "type": "text",
660
+ },
661
+ ],
662
+ "id": "col3-para",
663
+ "props": {
664
+ "backgroundColor": "default",
665
+ "textAlignment": "left",
666
+ "textColor": "default",
667
+ },
668
+ "type": "paragraph",
669
+ },
670
+ ],
671
+ "content": undefined,
672
+ "id": "3",
673
+ "props": {
674
+ "width": 1,
675
+ },
676
+ "type": "column",
677
+ },
678
+ ],
679
+ "content": undefined,
680
+ "id": "0",
681
+ "props": {},
682
+ "type": "columnList",
683
+ },
684
+ {
685
+ "children": [],
686
+ "content": [],
687
+ "id": "4",
688
+ "props": {
689
+ "backgroundColor": "default",
690
+ "textAlignment": "left",
691
+ "textColor": "default",
692
+ },
693
+ "type": "paragraph",
694
+ },
695
+ ]
696
+ `;