@atlaskit/editor-plugin-table 1.6.4 → 1.6.6

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 (30) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/table/nodeviews/TableResizer.js +5 -1
  3. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +8 -2
  4. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/consts.js +10 -0
  5. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/index.js +20 -1
  6. package/dist/cjs/version.json +1 -1
  7. package/dist/es2019/plugins/table/nodeviews/TableResizer.js +6 -2
  8. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +6 -1
  9. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/consts.js +2 -0
  10. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/index.js +3 -2
  11. package/dist/es2019/version.json +1 -1
  12. package/dist/esm/plugins/table/nodeviews/TableResizer.js +6 -2
  13. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +6 -1
  14. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/consts.js +2 -0
  15. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/index.js +3 -2
  16. package/dist/esm/version.json +1 -1
  17. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -0
  18. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/consts.d.ts +2 -0
  19. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +2 -1
  20. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -0
  21. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/consts.d.ts +2 -0
  22. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +2 -1
  23. package/package.json +8 -7
  24. package/src/__tests__/unit/pm-plugins/table-resizing/colgroup.ts +48 -2
  25. package/src/plugins/table/nodeviews/TableResizer.tsx +11 -0
  26. package/src/plugins/table/pm-plugins/table-resizing/utils/colgroup.ts +6 -0
  27. package/src/plugins/table/pm-plugins/table-resizing/utils/consts.ts +2 -0
  28. package/src/plugins/table/pm-plugins/table-resizing/utils/index.ts +2 -0
  29. package/src/__tests__/playwright/__fixtures__/base-adfs.ts +0 -1486
  30. package/src/__tests__/playwright/extensions.spec.ts +0 -67
@@ -1,1486 +0,0 @@
1
- export const nestedInExtension = {
2
- version: 1,
3
- type: 'doc',
4
- content: [
5
- {
6
- type: 'bodiedExtension',
7
- attrs: {
8
- extensionType: 'com.atlassian.confluence.macro.core',
9
- extensionKey: 'bodied-eh',
10
- parameters: {
11
- macroParams: {},
12
- macroMetadata: {
13
- placeholder: [
14
- {
15
- data: {
16
- url: '',
17
- },
18
- type: 'icon',
19
- },
20
- ],
21
- },
22
- },
23
- localId: 'testId',
24
- layout: 'default',
25
- },
26
- content: [
27
- {
28
- type: 'table',
29
- attrs: {
30
- isNumberColumnEnabled: false,
31
- layout: 'default',
32
- localId: 'abc-123',
33
- },
34
- content: [
35
- {
36
- type: 'tableRow',
37
- content: [
38
- {
39
- type: 'tableHeader',
40
- attrs: {
41
- colwidth: [242],
42
- },
43
- content: [
44
- {
45
- type: 'paragraph',
46
- content: [],
47
- },
48
- ],
49
- },
50
- {
51
- type: 'tableHeader',
52
- attrs: {
53
- colwidth: [308],
54
- },
55
- content: [
56
- {
57
- type: 'paragraph',
58
- content: [],
59
- },
60
- ],
61
- },
62
- {
63
- type: 'tableHeader',
64
- attrs: {
65
- colwidth: [176],
66
- },
67
- content: [
68
- {
69
- type: 'paragraph',
70
- content: [],
71
- },
72
- ],
73
- },
74
- ],
75
- },
76
- {
77
- type: 'tableRow',
78
- content: [
79
- {
80
- type: 'tableCell',
81
- attrs: {
82
- colwidth: [242],
83
- },
84
- content: [
85
- {
86
- type: 'paragraph',
87
- content: [],
88
- },
89
- ],
90
- },
91
- {
92
- type: 'tableCell',
93
- attrs: {
94
- colwidth: [308],
95
- },
96
- content: [
97
- {
98
- type: 'paragraph',
99
- content: [],
100
- },
101
- ],
102
- },
103
- {
104
- type: 'tableCell',
105
- attrs: {
106
- colwidth: [176],
107
- },
108
- content: [
109
- {
110
- type: 'paragraph',
111
- content: [],
112
- },
113
- ],
114
- },
115
- ],
116
- },
117
- {
118
- type: 'tableRow',
119
- content: [
120
- {
121
- type: 'tableCell',
122
- attrs: {
123
- colwidth: [242],
124
- },
125
- content: [
126
- {
127
- type: 'paragraph',
128
- content: [],
129
- },
130
- ],
131
- },
132
- {
133
- type: 'tableCell',
134
- attrs: {
135
- colwidth: [308],
136
- },
137
- content: [
138
- {
139
- type: 'paragraph',
140
- content: [],
141
- },
142
- ],
143
- },
144
- {
145
- type: 'tableCell',
146
- attrs: {
147
- colwidth: [176],
148
- },
149
- content: [
150
- {
151
- type: 'paragraph',
152
- content: [],
153
- },
154
- ],
155
- },
156
- ],
157
- },
158
- ],
159
- },
160
- ],
161
- },
162
- ],
163
- };
164
-
165
- export const documentWithMergedCells = {
166
- version: 1,
167
- type: 'doc',
168
- content: [
169
- {
170
- type: 'table',
171
- attrs: {
172
- isNumberColumnEnabled: false,
173
- layout: 'default',
174
- },
175
- content: [
176
- {
177
- type: 'tableRow',
178
- content: [
179
- {
180
- type: 'tableHeader',
181
- attrs: {
182
- colwidth: [151],
183
- background: '#ffffff',
184
- },
185
- content: [
186
- {
187
- type: 'paragraph',
188
- content: [
189
- {
190
- type: 'text',
191
- text: '1',
192
- },
193
- ],
194
- },
195
- ],
196
- },
197
- {
198
- type: 'tableHeader',
199
- attrs: {
200
- colwidth: [98],
201
- background: '#deebff',
202
- },
203
- content: [
204
- {
205
- type: 'paragraph',
206
- content: [
207
- {
208
- type: 'text',
209
- text: '2',
210
- },
211
- ],
212
- },
213
- ],
214
- },
215
- {
216
- type: 'tableHeader',
217
- attrs: {
218
- colwidth: [275],
219
- background: '#e6fcff',
220
- },
221
- content: [
222
- {
223
- type: 'paragraph',
224
- content: [
225
- {
226
- type: 'text',
227
- text: '3',
228
- },
229
- ],
230
- },
231
- ],
232
- },
233
- {
234
- type: 'tableHeader',
235
- attrs: {
236
- colwidth: [83],
237
- background: '#eae6ff',
238
- },
239
- content: [
240
- {
241
- type: 'paragraph',
242
- content: [
243
- {
244
- type: 'text',
245
- text: '4',
246
- },
247
- ],
248
- },
249
- ],
250
- },
251
- {
252
- type: 'tableHeader',
253
- attrs: {
254
- colwidth: [152],
255
- background: '#ffffff',
256
- },
257
- content: [
258
- {
259
- type: 'paragraph',
260
- content: [
261
- {
262
- type: 'text',
263
- text: '5',
264
- },
265
- ],
266
- },
267
- ],
268
- },
269
- ],
270
- },
271
- {
272
- type: 'tableRow',
273
- content: [
274
- {
275
- type: 'tableCell',
276
- attrs: {
277
- colwidth: [151],
278
- background: '#e6fcff',
279
- },
280
- content: [
281
- {
282
- type: 'paragraph',
283
- content: [
284
- {
285
- type: 'text',
286
- text: '2',
287
- },
288
- ],
289
- },
290
- ],
291
- },
292
- {
293
- type: 'tableCell',
294
- attrs: {
295
- colspan: 3,
296
- rowspan: 3,
297
- colwidth: [98, 275, 83],
298
- background: '#fffae6',
299
- },
300
- content: [
301
- {
302
- type: 'paragraph',
303
- content: [],
304
- },
305
- ],
306
- },
307
- {
308
- type: 'tableCell',
309
- attrs: {
310
- colwidth: [152],
311
- background: '#e6fcff',
312
- },
313
- content: [
314
- {
315
- type: 'paragraph',
316
- content: [
317
- {
318
- type: 'text',
319
- text: '2',
320
- },
321
- ],
322
- },
323
- ],
324
- },
325
- ],
326
- },
327
- {
328
- type: 'tableRow',
329
- content: [
330
- {
331
- type: 'tableCell',
332
- attrs: {
333
- colwidth: [151],
334
- background: '#ffebe6',
335
- },
336
- content: [
337
- {
338
- type: 'paragraph',
339
- content: [
340
- {
341
- type: 'text',
342
- text: '3',
343
- },
344
- ],
345
- },
346
- ],
347
- },
348
- {
349
- type: 'tableCell',
350
- attrs: {
351
- colwidth: [152],
352
- background: '#ffebe6',
353
- },
354
- content: [
355
- {
356
- type: 'paragraph',
357
- content: [
358
- {
359
- type: 'text',
360
- text: '3',
361
- },
362
- ],
363
- },
364
- ],
365
- },
366
- ],
367
- },
368
- {
369
- type: 'tableRow',
370
- content: [
371
- {
372
- type: 'tableCell',
373
- attrs: {
374
- colwidth: [151],
375
- background: '#e3fcef',
376
- },
377
- content: [
378
- {
379
- type: 'paragraph',
380
- content: [
381
- {
382
- type: 'text',
383
- text: '4',
384
- },
385
- ],
386
- },
387
- ],
388
- },
389
- {
390
- type: 'tableCell',
391
- attrs: {
392
- colwidth: [152],
393
- background: '#e3fcef',
394
- },
395
- content: [
396
- {
397
- type: 'paragraph',
398
- content: [
399
- {
400
- type: 'text',
401
- text: '4',
402
- },
403
- ],
404
- },
405
- ],
406
- },
407
- ],
408
- },
409
- {
410
- type: 'tableRow',
411
- content: [
412
- {
413
- type: 'tableCell',
414
- attrs: {
415
- colwidth: [151],
416
- background: '#ffffff',
417
- },
418
- content: [
419
- {
420
- type: 'paragraph',
421
- content: [
422
- {
423
- type: 'text',
424
- text: '5',
425
- },
426
- ],
427
- },
428
- ],
429
- },
430
- {
431
- type: 'tableCell',
432
- attrs: {
433
- colwidth: [98],
434
- background: '#deebff',
435
- },
436
- content: [
437
- {
438
- type: 'paragraph',
439
- content: [
440
- {
441
- type: 'text',
442
- text: '2',
443
- },
444
- ],
445
- },
446
- ],
447
- },
448
- {
449
- type: 'tableCell',
450
- attrs: {
451
- colwidth: [275],
452
- background: '#e6fcff',
453
- },
454
- content: [
455
- {
456
- type: 'paragraph',
457
- content: [
458
- {
459
- type: 'text',
460
- text: '3',
461
- },
462
- ],
463
- },
464
- ],
465
- },
466
- {
467
- type: 'tableCell',
468
- attrs: {
469
- colwidth: [83],
470
- background: '#eae6ff',
471
- },
472
- content: [
473
- {
474
- type: 'paragraph',
475
- content: [
476
- {
477
- type: 'text',
478
- text: '4',
479
- },
480
- ],
481
- },
482
- ],
483
- },
484
- {
485
- type: 'tableCell',
486
- attrs: {
487
- colwidth: [152],
488
- background: '#ffffff',
489
- },
490
- content: [
491
- {
492
- type: 'paragraph',
493
- content: [
494
- {
495
- type: 'text',
496
- text: '5',
497
- },
498
- ],
499
- },
500
- ],
501
- },
502
- ],
503
- },
504
- ],
505
- },
506
- ],
507
- };
508
-
509
- export const nestedInLayout = {
510
- version: 1,
511
- type: 'doc',
512
- content: [
513
- {
514
- type: 'layoutSection',
515
- content: [
516
- {
517
- type: 'layoutColumn',
518
- attrs: {
519
- width: 50,
520
- },
521
- content: [
522
- {
523
- type: 'table',
524
- attrs: {
525
- isNumberColumnEnabled: false,
526
- layout: 'default',
527
- localId: 'ff141c14-e34f-4798-9269-8198f3bce2aa',
528
- },
529
- content: [
530
- {
531
- type: 'tableRow',
532
- content: [
533
- {
534
- type: 'tableHeader',
535
- attrs: {},
536
- content: [
537
- {
538
- type: 'paragraph',
539
- content: [],
540
- },
541
- ],
542
- },
543
- {
544
- type: 'tableHeader',
545
- attrs: {},
546
- content: [
547
- {
548
- type: 'paragraph',
549
- content: [],
550
- },
551
- ],
552
- },
553
- {
554
- type: 'tableHeader',
555
- attrs: {},
556
- content: [
557
- {
558
- type: 'paragraph',
559
- content: [],
560
- },
561
- ],
562
- },
563
- ],
564
- },
565
- {
566
- type: 'tableRow',
567
- content: [
568
- {
569
- type: 'tableCell',
570
- attrs: {},
571
- content: [
572
- {
573
- type: 'paragraph',
574
- content: [],
575
- },
576
- ],
577
- },
578
- {
579
- type: 'tableCell',
580
- attrs: {},
581
- content: [
582
- {
583
- type: 'paragraph',
584
- content: [],
585
- },
586
- ],
587
- },
588
- {
589
- type: 'tableCell',
590
- attrs: {},
591
- content: [
592
- {
593
- type: 'paragraph',
594
- content: [],
595
- },
596
- ],
597
- },
598
- ],
599
- },
600
- {
601
- type: 'tableRow',
602
- content: [
603
- {
604
- type: 'tableCell',
605
- attrs: {},
606
- content: [
607
- {
608
- type: 'paragraph',
609
- content: [],
610
- },
611
- ],
612
- },
613
- {
614
- type: 'tableCell',
615
- attrs: {},
616
- content: [
617
- {
618
- type: 'paragraph',
619
- content: [],
620
- },
621
- ],
622
- },
623
- {
624
- type: 'tableCell',
625
- attrs: {},
626
- content: [
627
- {
628
- type: 'paragraph',
629
- content: [],
630
- },
631
- ],
632
- },
633
- ],
634
- },
635
- ],
636
- },
637
- ],
638
- },
639
- {
640
- type: 'layoutColumn',
641
- attrs: {
642
- width: 50,
643
- },
644
- content: [
645
- {
646
- type: 'paragraph',
647
- content: [],
648
- },
649
- ],
650
- },
651
- ],
652
- },
653
- ],
654
- };
655
-
656
- export const simpleTableAfterParagraph = {
657
- version: 1,
658
- type: 'doc',
659
- content: [
660
- {
661
- type: 'paragraph',
662
- content: [
663
- {
664
- type: 'text',
665
- text: 'content',
666
- },
667
- ],
668
- },
669
- {
670
- type: 'table',
671
- attrs: {
672
- isNumberColumnEnabled: false,
673
- layout: 'default',
674
- localId: '114ea369-b416-4e08-9be4-f262d2b0d797',
675
- },
676
- content: [
677
- {
678
- type: 'tableRow',
679
- content: [
680
- {
681
- type: 'tableHeader',
682
- attrs: {},
683
- content: [
684
- {
685
- type: 'paragraph',
686
- content: [],
687
- },
688
- ],
689
- },
690
- {
691
- type: 'tableHeader',
692
- attrs: {},
693
- content: [
694
- {
695
- type: 'paragraph',
696
- content: [],
697
- },
698
- ],
699
- },
700
- {
701
- type: 'tableHeader',
702
- attrs: {},
703
- content: [
704
- {
705
- type: 'paragraph',
706
- content: [],
707
- },
708
- ],
709
- },
710
- ],
711
- },
712
- {
713
- type: 'tableRow',
714
- content: [
715
- {
716
- type: 'tableCell',
717
- attrs: {},
718
- content: [
719
- {
720
- type: 'paragraph',
721
- content: [],
722
- },
723
- ],
724
- },
725
- {
726
- type: 'tableCell',
727
- attrs: {},
728
- content: [
729
- {
730
- type: 'paragraph',
731
- content: [],
732
- },
733
- ],
734
- },
735
- {
736
- type: 'tableCell',
737
- attrs: {},
738
- content: [
739
- {
740
- type: 'paragraph',
741
- content: [],
742
- },
743
- ],
744
- },
745
- ],
746
- },
747
- {
748
- type: 'tableRow',
749
- content: [
750
- {
751
- type: 'tableCell',
752
- attrs: {},
753
- content: [
754
- {
755
- type: 'paragraph',
756
- content: [],
757
- },
758
- ],
759
- },
760
- {
761
- type: 'tableCell',
762
- attrs: {},
763
- content: [
764
- {
765
- type: 'paragraph',
766
- content: [],
767
- },
768
- ],
769
- },
770
- {
771
- type: 'tableCell',
772
- attrs: {},
773
- content: [
774
- {
775
- type: 'paragraph',
776
- content: [],
777
- },
778
- ],
779
- },
780
- ],
781
- },
782
- ],
783
- },
784
- ],
785
- };
786
-
787
- export const simpleTableWithOneParagraphAfter = {
788
- version: 1,
789
- type: 'doc',
790
- content: [
791
- {
792
- type: 'table',
793
- attrs: {
794
- isNumberColumnEnabled: false,
795
- layout: 'default',
796
- localId: 'localId',
797
- },
798
- content: [
799
- {
800
- type: 'tableRow',
801
- content: [
802
- {
803
- type: 'tableHeader',
804
- attrs: {},
805
- content: [
806
- {
807
- type: 'paragraph',
808
- content: [],
809
- },
810
- ],
811
- },
812
- {
813
- type: 'tableHeader',
814
- attrs: {},
815
- content: [
816
- {
817
- type: 'paragraph',
818
- content: [],
819
- },
820
- ],
821
- },
822
- {
823
- type: 'tableHeader',
824
- attrs: {},
825
- content: [
826
- {
827
- type: 'paragraph',
828
- content: [],
829
- },
830
- ],
831
- },
832
- ],
833
- },
834
- {
835
- type: 'tableRow',
836
- content: [
837
- {
838
- type: 'tableCell',
839
- attrs: {},
840
- content: [
841
- {
842
- type: 'paragraph',
843
- content: [],
844
- },
845
- ],
846
- },
847
- {
848
- type: 'tableCell',
849
- attrs: {},
850
- content: [
851
- {
852
- type: 'paragraph',
853
- content: [],
854
- },
855
- ],
856
- },
857
- {
858
- type: 'tableCell',
859
- attrs: {},
860
- content: [
861
- {
862
- type: 'paragraph',
863
- content: [],
864
- },
865
- ],
866
- },
867
- ],
868
- },
869
- {
870
- type: 'tableRow',
871
- content: [
872
- {
873
- type: 'tableCell',
874
- attrs: {},
875
- content: [
876
- {
877
- type: 'paragraph',
878
- content: [],
879
- },
880
- ],
881
- },
882
- {
883
- type: 'tableCell',
884
- attrs: {},
885
- content: [
886
- {
887
- type: 'paragraph',
888
- content: [],
889
- },
890
- ],
891
- },
892
- {
893
- type: 'tableCell',
894
- attrs: {},
895
- content: [
896
- {
897
- type: 'paragraph',
898
- content: [],
899
- },
900
- ],
901
- },
902
- ],
903
- },
904
- ],
905
- },
906
- {
907
- type: 'paragraph',
908
- content: [],
909
- },
910
- ],
911
- };
912
- export const simpleTableWithTwoParagraphAfter = {
913
- version: 1,
914
- type: 'doc',
915
- content: [
916
- {
917
- type: 'table',
918
- attrs: {
919
- isNumberColumnEnabled: false,
920
- layout: 'default',
921
- localId: 'localId',
922
- },
923
- content: [
924
- {
925
- type: 'tableRow',
926
- content: [
927
- {
928
- type: 'tableHeader',
929
- attrs: {},
930
- content: [
931
- {
932
- type: 'paragraph',
933
- content: [],
934
- },
935
- ],
936
- },
937
- {
938
- type: 'tableHeader',
939
- attrs: {},
940
- content: [
941
- {
942
- type: 'paragraph',
943
- content: [],
944
- },
945
- ],
946
- },
947
- {
948
- type: 'tableHeader',
949
- attrs: {},
950
- content: [
951
- {
952
- type: 'paragraph',
953
- content: [],
954
- },
955
- ],
956
- },
957
- ],
958
- },
959
- {
960
- type: 'tableRow',
961
- content: [
962
- {
963
- type: 'tableCell',
964
- attrs: {},
965
- content: [
966
- {
967
- type: 'paragraph',
968
- content: [],
969
- },
970
- ],
971
- },
972
- {
973
- type: 'tableCell',
974
- attrs: {},
975
- content: [
976
- {
977
- type: 'paragraph',
978
- content: [],
979
- },
980
- ],
981
- },
982
- {
983
- type: 'tableCell',
984
- attrs: {},
985
- content: [
986
- {
987
- type: 'paragraph',
988
- content: [],
989
- },
990
- ],
991
- },
992
- ],
993
- },
994
- {
995
- type: 'tableRow',
996
- content: [
997
- {
998
- type: 'tableCell',
999
- attrs: {},
1000
- content: [
1001
- {
1002
- type: 'paragraph',
1003
- content: [],
1004
- },
1005
- ],
1006
- },
1007
- {
1008
- type: 'tableCell',
1009
- attrs: {},
1010
- content: [
1011
- {
1012
- type: 'paragraph',
1013
- content: [],
1014
- },
1015
- ],
1016
- },
1017
- {
1018
- type: 'tableCell',
1019
- attrs: {},
1020
- content: [
1021
- {
1022
- type: 'paragraph',
1023
- content: [],
1024
- },
1025
- ],
1026
- },
1027
- ],
1028
- },
1029
- ],
1030
- },
1031
- {
1032
- type: 'paragraph',
1033
- content: [],
1034
- },
1035
- {
1036
- type: 'paragraph',
1037
- content: [],
1038
- },
1039
- ],
1040
- };
1041
-
1042
- export const simpleTable = {
1043
- version: 1,
1044
- type: 'doc',
1045
- content: [
1046
- {
1047
- type: 'table',
1048
- attrs: {
1049
- isNumberColumnEnabled: false,
1050
- layout: 'default',
1051
- localId: 'localId',
1052
- },
1053
- content: [
1054
- {
1055
- type: 'tableRow',
1056
- content: [
1057
- {
1058
- type: 'tableHeader',
1059
- attrs: {},
1060
- content: [
1061
- {
1062
- type: 'paragraph',
1063
- content: [],
1064
- },
1065
- ],
1066
- },
1067
- {
1068
- type: 'tableHeader',
1069
- attrs: {},
1070
- content: [
1071
- {
1072
- type: 'paragraph',
1073
- content: [],
1074
- },
1075
- ],
1076
- },
1077
- {
1078
- type: 'tableHeader',
1079
- attrs: {},
1080
- content: [
1081
- {
1082
- type: 'paragraph',
1083
- content: [],
1084
- },
1085
- ],
1086
- },
1087
- ],
1088
- },
1089
- {
1090
- type: 'tableRow',
1091
- content: [
1092
- {
1093
- type: 'tableCell',
1094
- attrs: {},
1095
- content: [
1096
- {
1097
- type: 'paragraph',
1098
- content: [],
1099
- },
1100
- ],
1101
- },
1102
- {
1103
- type: 'tableCell',
1104
- attrs: {},
1105
- content: [
1106
- {
1107
- type: 'paragraph',
1108
- content: [],
1109
- },
1110
- ],
1111
- },
1112
- {
1113
- type: 'tableCell',
1114
- attrs: {},
1115
- content: [
1116
- {
1117
- type: 'paragraph',
1118
- content: [],
1119
- },
1120
- ],
1121
- },
1122
- ],
1123
- },
1124
- {
1125
- type: 'tableRow',
1126
- content: [
1127
- {
1128
- type: 'tableCell',
1129
- attrs: {},
1130
- content: [
1131
- {
1132
- type: 'paragraph',
1133
- content: [],
1134
- },
1135
- ],
1136
- },
1137
- {
1138
- type: 'tableCell',
1139
- attrs: {},
1140
- content: [
1141
- {
1142
- type: 'paragraph',
1143
- content: [],
1144
- },
1145
- ],
1146
- },
1147
- {
1148
- type: 'tableCell',
1149
- attrs: {},
1150
- content: [
1151
- {
1152
- type: 'paragraph',
1153
- content: [],
1154
- },
1155
- ],
1156
- },
1157
- ],
1158
- },
1159
- ],
1160
- },
1161
- ],
1162
- };
1163
-
1164
- export const tableWithActionItemInTheLastRow = {
1165
- version: 1,
1166
- type: 'doc',
1167
- content: [
1168
- {
1169
- type: 'table',
1170
- attrs: {
1171
- isNumberColumnEnabled: false,
1172
- layout: 'default',
1173
- localId: 'localId',
1174
- },
1175
- content: [
1176
- {
1177
- type: 'tableRow',
1178
- content: [
1179
- {
1180
- type: 'tableHeader',
1181
- attrs: {},
1182
- content: [
1183
- {
1184
- type: 'paragraph',
1185
- content: [],
1186
- },
1187
- ],
1188
- },
1189
- {
1190
- type: 'tableHeader',
1191
- attrs: {},
1192
- content: [
1193
- {
1194
- type: 'paragraph',
1195
- content: [],
1196
- },
1197
- ],
1198
- },
1199
- {
1200
- type: 'tableHeader',
1201
- attrs: {},
1202
- content: [
1203
- {
1204
- type: 'paragraph',
1205
- content: [],
1206
- },
1207
- ],
1208
- },
1209
- ],
1210
- },
1211
- {
1212
- type: 'tableRow',
1213
- content: [
1214
- {
1215
- type: 'tableCell',
1216
- attrs: {},
1217
- content: [
1218
- {
1219
- type: 'paragraph',
1220
- content: [],
1221
- },
1222
- ],
1223
- },
1224
- {
1225
- type: 'tableCell',
1226
- attrs: {},
1227
- content: [
1228
- {
1229
- type: 'paragraph',
1230
- content: [],
1231
- },
1232
- ],
1233
- },
1234
- {
1235
- type: 'tableCell',
1236
- attrs: {},
1237
- content: [
1238
- {
1239
- type: 'paragraph',
1240
- content: [],
1241
- },
1242
- ],
1243
- },
1244
- ],
1245
- },
1246
- {
1247
- type: 'tableRow',
1248
- content: [
1249
- {
1250
- type: 'tableCell',
1251
- attrs: {},
1252
- content: [
1253
- {
1254
- type: 'paragraph',
1255
- content: [],
1256
- },
1257
- ],
1258
- },
1259
- {
1260
- type: 'tableCell',
1261
- attrs: {},
1262
- content: [
1263
- {
1264
- type: 'paragraph',
1265
- content: [],
1266
- },
1267
- ],
1268
- },
1269
- {
1270
- type: 'tableCell',
1271
- attrs: {},
1272
- content: [
1273
- {
1274
- type: 'taskList',
1275
- attrs: {
1276
- localId: 'd4367ae3-5f11-4ff6-9a1d-e019f0c58218',
1277
- },
1278
- content: [
1279
- {
1280
- type: 'taskItem',
1281
- attrs: {
1282
- localId: '9ff03d47-b975-474e-8370-d3624cd5cce1',
1283
- state: 'TODO',
1284
- },
1285
- },
1286
- ],
1287
- },
1288
- ],
1289
- },
1290
- ],
1291
- },
1292
- ],
1293
- },
1294
- ],
1295
- };
1296
-
1297
- export const tableInsideLayoutAfterExtension = {
1298
- version: 1,
1299
- type: 'doc',
1300
- content: [
1301
- {
1302
- type: 'bodiedExtension',
1303
- attrs: {
1304
- extensionType: 'com.atlassian.confluence.macro.core',
1305
- extensionKey: 'excerpt',
1306
- parameters: {
1307
- macroParams: {
1308
- hidden: {
1309
- value: 'false',
1310
- },
1311
- },
1312
- },
1313
- layout: 'default',
1314
- localId: '2606e552-8462-4bb7-88ad-be53b39a3eed',
1315
- },
1316
- content: [
1317
- {
1318
- type: 'paragraph',
1319
- content: [],
1320
- },
1321
- ],
1322
- },
1323
- {
1324
- type: 'layoutSection',
1325
- content: [
1326
- {
1327
- type: 'layoutColumn',
1328
- attrs: {
1329
- width: 50,
1330
- },
1331
- content: [
1332
- {
1333
- type: 'paragraph',
1334
- content: [],
1335
- },
1336
- ],
1337
- },
1338
- {
1339
- type: 'layoutColumn',
1340
- attrs: {
1341
- width: 50,
1342
- },
1343
- content: [
1344
- {
1345
- type: 'table',
1346
- attrs: {
1347
- isNumberColumnEnabled: false,
1348
- layout: 'default',
1349
- localId: '2620c54b-decf-4033-84a4-c6021b05a8f2',
1350
- },
1351
- content: [
1352
- {
1353
- type: 'tableRow',
1354
- content: [
1355
- {
1356
- type: 'tableHeader',
1357
- attrs: {
1358
- colwidth: [476],
1359
- },
1360
- content: [
1361
- {
1362
- type: 'paragraph',
1363
- content: [],
1364
- },
1365
- ],
1366
- },
1367
- {
1368
- type: 'tableHeader',
1369
- attrs: {
1370
- colwidth: [101],
1371
- },
1372
- content: [
1373
- {
1374
- type: 'paragraph',
1375
- content: [],
1376
- },
1377
- ],
1378
- },
1379
- {
1380
- type: 'tableHeader',
1381
- attrs: {
1382
- colwidth: [101],
1383
- },
1384
- content: [
1385
- {
1386
- type: 'paragraph',
1387
- content: [],
1388
- },
1389
- ],
1390
- },
1391
- ],
1392
- },
1393
- {
1394
- type: 'tableRow',
1395
- content: [
1396
- {
1397
- type: 'tableCell',
1398
- attrs: {
1399
- colwidth: [476],
1400
- },
1401
- content: [
1402
- {
1403
- type: 'paragraph',
1404
- content: [],
1405
- },
1406
- ],
1407
- },
1408
- {
1409
- type: 'tableCell',
1410
- attrs: {
1411
- colwidth: [101],
1412
- },
1413
- content: [
1414
- {
1415
- type: 'paragraph',
1416
- content: [],
1417
- },
1418
- ],
1419
- },
1420
- {
1421
- type: 'tableCell',
1422
- attrs: {
1423
- colwidth: [101],
1424
- },
1425
- content: [
1426
- {
1427
- type: 'paragraph',
1428
- content: [],
1429
- },
1430
- ],
1431
- },
1432
- ],
1433
- },
1434
- {
1435
- type: 'tableRow',
1436
- content: [
1437
- {
1438
- type: 'tableCell',
1439
- attrs: {
1440
- colwidth: [476],
1441
- },
1442
- content: [
1443
- {
1444
- type: 'paragraph',
1445
- content: [],
1446
- },
1447
- ],
1448
- },
1449
- {
1450
- type: 'tableCell',
1451
- attrs: {
1452
- colwidth: [101],
1453
- },
1454
- content: [
1455
- {
1456
- type: 'paragraph',
1457
- content: [],
1458
- },
1459
- ],
1460
- },
1461
- {
1462
- type: 'tableCell',
1463
- attrs: {
1464
- colwidth: [101],
1465
- },
1466
- content: [
1467
- {
1468
- type: 'paragraph',
1469
- content: [],
1470
- },
1471
- ],
1472
- },
1473
- ],
1474
- },
1475
- ],
1476
- },
1477
- ],
1478
- },
1479
- ],
1480
- },
1481
- {
1482
- type: 'paragraph',
1483
- content: [],
1484
- },
1485
- ],
1486
- };