@atlaskit/editor-plugin-table 5.4.5 → 5.4.7

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