@atlaskit/editor-plugin-table 5.3.21 → 5.3.23

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