@atlaskit/editor-plugin-table 5.3.25 → 5.3.26

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 (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/plugins/table/pm-plugins/drag-and-drop/commands.js +19 -6
  3. package/dist/cjs/plugins/table/pm-plugins/drag-and-drop/plugin.js +6 -1
  4. package/dist/cjs/plugins/table/ui/FloatingDragMenu/DragMenu.js +26 -1
  5. package/dist/es2019/plugins/table/pm-plugins/drag-and-drop/commands.js +19 -6
  6. package/dist/es2019/plugins/table/pm-plugins/drag-and-drop/plugin.js +6 -1
  7. package/dist/es2019/plugins/table/ui/FloatingDragMenu/DragMenu.js +27 -1
  8. package/dist/esm/plugins/table/pm-plugins/drag-and-drop/commands.js +19 -6
  9. package/dist/esm/plugins/table/pm-plugins/drag-and-drop/plugin.js +6 -1
  10. package/dist/esm/plugins/table/ui/FloatingDragMenu/DragMenu.js +26 -1
  11. package/package.json +2 -2
  12. package/src/plugins/table/pm-plugins/drag-and-drop/commands.ts +31 -7
  13. package/src/plugins/table/pm-plugins/drag-and-drop/plugin.ts +7 -1
  14. package/src/plugins/table/ui/FloatingDragMenu/DragMenu.tsx +33 -1
  15. package/src/__tests__/integration/__snapshots__/auto-size.ts.snap +0 -612
  16. package/src/__tests__/integration/__snapshots__/delete-columns.ts.snap +0 -820
  17. package/src/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +0 -120
  18. package/src/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +0 -120
  19. package/src/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +0 -229
  20. package/src/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +0 -239
  21. package/src/__tests__/integration/__snapshots__/resize.ts.snap +0 -2685
  22. package/src/__tests__/integration/__snapshots__/scale.ts.snap +0 -1085
  23. package/src/__tests__/integration/arrow-down-into-table.ts +0 -50
  24. package/src/__tests__/integration/auto-size.ts +0 -92
  25. package/src/__tests__/integration/cell-selection.ts +0 -105
  26. package/src/__tests__/integration/delete-columns.ts +0 -99
  27. package/src/__tests__/integration/delete-last-column-in-full-width.ts +0 -73
  28. package/src/__tests__/integration/delete-last-column-with-empty-action.ts +0 -60
  29. package/src/__tests__/integration/delete-last-row-with-empty-action.ts +0 -99
  30. package/src/__tests__/integration/insert-row-inside-layout.ts +0 -52
  31. package/src/__tests__/integration/resize.ts +0 -333
  32. package/src/__tests__/integration/scale.ts +0 -70
@@ -1,612 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Doesnt scale past default 1`] = `
4
- Object {
5
- "content": Array [
6
- Object {
7
- "attrs": Object {
8
- "__autoSize": false,
9
- "isNumberColumnEnabled": false,
10
- "layout": "default",
11
- "localId": "abc-123",
12
- "width": null,
13
- },
14
- "content": Array [
15
- Object {
16
- "content": Array [
17
- Object {
18
- "attrs": Object {
19
- "background": null,
20
- "colspan": 1,
21
- "colwidth": Array [
22
- 318,
23
- ],
24
- "rowspan": 1,
25
- },
26
- "content": Array [
27
- Object {
28
- "content": Array [
29
- Object {
30
- "text": "Lorem ipsum dolor sit amet",
31
- "type": "text",
32
- },
33
- ],
34
- "type": "paragraph",
35
- },
36
- ],
37
- "type": "tableHeader",
38
- },
39
- Object {
40
- "attrs": Object {
41
- "background": null,
42
- "colspan": 1,
43
- "colwidth": Array [
44
- 123,
45
- ],
46
- "rowspan": 1,
47
- },
48
- "content": Array [
49
- Object {
50
- "type": "paragraph",
51
- },
52
- ],
53
- "type": "tableHeader",
54
- },
55
- Object {
56
- "attrs": Object {
57
- "background": null,
58
- "colspan": 1,
59
- "colwidth": Array [
60
- 318,
61
- ],
62
- "rowspan": 1,
63
- },
64
- "content": Array [
65
- Object {
66
- "content": Array [
67
- Object {
68
- "text": "Lorem ipsum dolor sit amet",
69
- "type": "text",
70
- },
71
- ],
72
- "type": "paragraph",
73
- },
74
- ],
75
- "type": "tableHeader",
76
- },
77
- ],
78
- "type": "tableRow",
79
- },
80
- Object {
81
- "content": Array [
82
- Object {
83
- "attrs": Object {
84
- "background": null,
85
- "colspan": 1,
86
- "colwidth": Array [
87
- 318,
88
- ],
89
- "rowspan": 1,
90
- },
91
- "content": Array [
92
- Object {
93
- "type": "paragraph",
94
- },
95
- ],
96
- "type": "tableCell",
97
- },
98
- Object {
99
- "attrs": Object {
100
- "background": null,
101
- "colspan": 1,
102
- "colwidth": Array [
103
- 123,
104
- ],
105
- "rowspan": 1,
106
- },
107
- "content": Array [
108
- Object {
109
- "attrs": Object {
110
- "panelColor": null,
111
- "panelIcon": null,
112
- "panelType": "error",
113
- },
114
- "content": Array [
115
- Object {
116
- "content": Array [
117
- Object {
118
- "text": "foo",
119
- "type": "text",
120
- },
121
- ],
122
- "type": "paragraph",
123
- },
124
- ],
125
- "type": "panel",
126
- },
127
- ],
128
- "type": "tableCell",
129
- },
130
- Object {
131
- "attrs": Object {
132
- "background": null,
133
- "colspan": 1,
134
- "colwidth": Array [
135
- 318,
136
- ],
137
- "rowspan": 1,
138
- },
139
- "content": Array [
140
- Object {
141
- "type": "paragraph",
142
- },
143
- ],
144
- "type": "tableCell",
145
- },
146
- ],
147
- "type": "tableRow",
148
- },
149
- Object {
150
- "content": Array [
151
- Object {
152
- "attrs": Object {
153
- "background": null,
154
- "colspan": 1,
155
- "colwidth": Array [
156
- 318,
157
- ],
158
- "rowspan": 1,
159
- },
160
- "content": Array [
161
- Object {
162
- "type": "paragraph",
163
- },
164
- ],
165
- "type": "tableCell",
166
- },
167
- Object {
168
- "attrs": Object {
169
- "background": null,
170
- "colspan": 1,
171
- "colwidth": Array [
172
- 123,
173
- ],
174
- "rowspan": 1,
175
- },
176
- "content": Array [
177
- Object {
178
- "type": "paragraph",
179
- },
180
- ],
181
- "type": "tableCell",
182
- },
183
- Object {
184
- "attrs": Object {
185
- "background": null,
186
- "colspan": 1,
187
- "colwidth": Array [
188
- 318,
189
- ],
190
- "rowspan": 1,
191
- },
192
- "content": Array [
193
- Object {
194
- "type": "paragraph",
195
- },
196
- ],
197
- "type": "tableCell",
198
- },
199
- ],
200
- "type": "tableRow",
201
- },
202
- ],
203
- "type": "table",
204
- },
205
- ],
206
- "type": "doc",
207
- }
208
- `;
209
-
210
- exports[`Scales to full-width 1`] = `
211
- Object {
212
- "content": Array [
213
- Object {
214
- "attrs": Object {
215
- "__autoSize": false,
216
- "isNumberColumnEnabled": false,
217
- "layout": "full-width",
218
- "localId": "abc-123",
219
- "width": null,
220
- },
221
- "content": Array [
222
- Object {
223
- "content": Array [
224
- Object {
225
- "attrs": Object {
226
- "background": null,
227
- "colspan": 1,
228
- "colwidth": Array [
229
- 600,
230
- ],
231
- "rowspan": 1,
232
- },
233
- "content": Array [
234
- Object {
235
- "content": Array [
236
- Object {
237
- "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mi nisl, venenatis eget auctor vitae, venenatis quis lorem. Suspendisse maximus tortor vel dui tincidunt cursus. Vestibulum magna nibh, auctor non auctor id, finibus vitae orci. Nulla viverra ipsum et nunc fringilla ultricies. Pellentesque vitae felis molestie justo finibus accumsan. Suspendisse potenti. Nulla facilisi. Integer dignissim quis velit quis elementum. Sed sit amet varius ante. Duis vestibulum porta augue eu laoreet. Morbi id risus et augue sollicitudin aliquam. In et ligula dolor. Nam ac aliquet diam.",
238
- "type": "text",
239
- },
240
- ],
241
- "type": "paragraph",
242
- },
243
- ],
244
- "type": "tableHeader",
245
- },
246
- Object {
247
- "attrs": Object {
248
- "background": null,
249
- "colspan": 1,
250
- "colwidth": Array [
251
- 600,
252
- ],
253
- "rowspan": 1,
254
- },
255
- "content": Array [
256
- Object {
257
- "type": "paragraph",
258
- },
259
- ],
260
- "type": "tableHeader",
261
- },
262
- Object {
263
- "attrs": Object {
264
- "background": null,
265
- "colspan": 1,
266
- "colwidth": Array [
267
- 600,
268
- ],
269
- "rowspan": 1,
270
- },
271
- "content": Array [
272
- Object {
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": null,
286
- "colspan": 1,
287
- "colwidth": Array [
288
- 600,
289
- ],
290
- "rowspan": 1,
291
- },
292
- "content": Array [
293
- Object {
294
- "type": "paragraph",
295
- },
296
- ],
297
- "type": "tableCell",
298
- },
299
- Object {
300
- "attrs": Object {
301
- "background": null,
302
- "colspan": 1,
303
- "colwidth": Array [
304
- 600,
305
- ],
306
- "rowspan": 1,
307
- },
308
- "content": Array [
309
- Object {
310
- "content": Array [
311
- Object {
312
- "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mi nisl, venenatis eget auctor vitae, venenatis quis lorem. Suspendisse maximus tortor vel dui tincidunt cursus. Vestibulum magna nibh, auctor non auctor id, finibus vitae orci. Nulla viverra ipsum et nunc fringilla ultricies. Pellentesque vitae felis molestie justo finibus accumsan. Suspendisse potenti. Nulla facilisi. Integer dignissim quis velit quis elementum. Sed sit amet varius ante. Duis vestibulum porta augue eu laoreet. Morbi id risus et augue sollicitudin aliquam. In et ligula dolor. Nam ac aliquet diam.",
313
- "type": "text",
314
- },
315
- ],
316
- "type": "paragraph",
317
- },
318
- ],
319
- "type": "tableCell",
320
- },
321
- Object {
322
- "attrs": Object {
323
- "background": null,
324
- "colspan": 1,
325
- "colwidth": Array [
326
- 600,
327
- ],
328
- "rowspan": 1,
329
- },
330
- "content": Array [
331
- Object {
332
- "type": "paragraph",
333
- },
334
- ],
335
- "type": "tableCell",
336
- },
337
- ],
338
- "type": "tableRow",
339
- },
340
- Object {
341
- "content": Array [
342
- Object {
343
- "attrs": Object {
344
- "background": null,
345
- "colspan": 1,
346
- "colwidth": Array [
347
- 600,
348
- ],
349
- "rowspan": 1,
350
- },
351
- "content": Array [
352
- Object {
353
- "type": "paragraph",
354
- },
355
- ],
356
- "type": "tableCell",
357
- },
358
- Object {
359
- "attrs": Object {
360
- "background": null,
361
- "colspan": 1,
362
- "colwidth": Array [
363
- 600,
364
- ],
365
- "rowspan": 1,
366
- },
367
- "content": Array [
368
- Object {
369
- "type": "paragraph",
370
- },
371
- ],
372
- "type": "tableCell",
373
- },
374
- Object {
375
- "attrs": Object {
376
- "background": null,
377
- "colspan": 1,
378
- "colwidth": Array [
379
- 600,
380
- ],
381
- "rowspan": 1,
382
- },
383
- "content": Array [
384
- Object {
385
- "content": Array [
386
- Object {
387
- "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mi nisl, venenatis eget auctor vitae, venenatis quis lorem. Suspendisse maximus tortor vel dui tincidunt cursus. Vestibulum magna nibh, auctor non auctor id, finibus vitae orci. Nulla viverra ipsum et nunc fringilla ultricies. Pellentesque vitae felis molestie justo finibus accumsan. Suspendisse potenti. Nulla facilisi. Integer dignissim quis velit quis elementum. Sed sit amet varius ante. Duis vestibulum porta augue eu laoreet. Morbi id risus et augue sollicitudin aliquam. In et ligula dolor. Nam ac aliquet diam.",
388
- "type": "text",
389
- },
390
- ],
391
- "type": "paragraph",
392
- },
393
- ],
394
- "type": "tableCell",
395
- },
396
- ],
397
- "type": "tableRow",
398
- },
399
- ],
400
- "type": "table",
401
- },
402
- ],
403
- "type": "doc",
404
- }
405
- `;
406
-
407
- exports[`Scales to wide 1`] = `
408
- Object {
409
- "content": Array [
410
- Object {
411
- "attrs": Object {
412
- "__autoSize": false,
413
- "isNumberColumnEnabled": false,
414
- "layout": "wide",
415
- "localId": "abc-123",
416
- "width": null,
417
- },
418
- "content": Array [
419
- Object {
420
- "content": Array [
421
- Object {
422
- "attrs": Object {
423
- "background": null,
424
- "colspan": 1,
425
- "colwidth": Array [
426
- 438,
427
- ],
428
- "rowspan": 1,
429
- },
430
- "content": Array [
431
- Object {
432
- "content": Array [
433
- Object {
434
- "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
435
- "type": "text",
436
- },
437
- ],
438
- "type": "paragraph",
439
- },
440
- ],
441
- "type": "tableHeader",
442
- },
443
- Object {
444
- "attrs": Object {
445
- "background": null,
446
- "colspan": 1,
447
- "colwidth": Array [
448
- 86,
449
- ],
450
- "rowspan": 1,
451
- },
452
- "content": Array [
453
- Object {
454
- "type": "paragraph",
455
- },
456
- ],
457
- "type": "tableHeader",
458
- },
459
- Object {
460
- "attrs": Object {
461
- "background": null,
462
- "colspan": 1,
463
- "colwidth": Array [
464
- 436,
465
- ],
466
- "rowspan": 1,
467
- },
468
- "content": Array [
469
- Object {
470
- "content": Array [
471
- Object {
472
- "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
473
- "type": "text",
474
- },
475
- ],
476
- "type": "paragraph",
477
- },
478
- ],
479
- "type": "tableHeader",
480
- },
481
- ],
482
- "type": "tableRow",
483
- },
484
- Object {
485
- "content": Array [
486
- Object {
487
- "attrs": Object {
488
- "background": null,
489
- "colspan": 1,
490
- "colwidth": Array [
491
- 438,
492
- ],
493
- "rowspan": 1,
494
- },
495
- "content": Array [
496
- Object {
497
- "type": "paragraph",
498
- },
499
- ],
500
- "type": "tableCell",
501
- },
502
- Object {
503
- "attrs": Object {
504
- "background": null,
505
- "colspan": 1,
506
- "colwidth": Array [
507
- 86,
508
- ],
509
- "rowspan": 1,
510
- },
511
- "content": Array [
512
- Object {
513
- "attrs": Object {
514
- "panelColor": null,
515
- "panelIcon": null,
516
- "panelType": "error",
517
- },
518
- "content": Array [
519
- Object {
520
- "content": Array [
521
- Object {
522
- "text": "foo",
523
- "type": "text",
524
- },
525
- ],
526
- "type": "paragraph",
527
- },
528
- ],
529
- "type": "panel",
530
- },
531
- ],
532
- "type": "tableCell",
533
- },
534
- Object {
535
- "attrs": Object {
536
- "background": null,
537
- "colspan": 1,
538
- "colwidth": Array [
539
- 436,
540
- ],
541
- "rowspan": 1,
542
- },
543
- "content": Array [
544
- Object {
545
- "type": "paragraph",
546
- },
547
- ],
548
- "type": "tableCell",
549
- },
550
- ],
551
- "type": "tableRow",
552
- },
553
- Object {
554
- "content": Array [
555
- Object {
556
- "attrs": Object {
557
- "background": null,
558
- "colspan": 1,
559
- "colwidth": Array [
560
- 438,
561
- ],
562
- "rowspan": 1,
563
- },
564
- "content": Array [
565
- Object {
566
- "type": "paragraph",
567
- },
568
- ],
569
- "type": "tableCell",
570
- },
571
- Object {
572
- "attrs": Object {
573
- "background": null,
574
- "colspan": 1,
575
- "colwidth": Array [
576
- 86,
577
- ],
578
- "rowspan": 1,
579
- },
580
- "content": Array [
581
- Object {
582
- "type": "paragraph",
583
- },
584
- ],
585
- "type": "tableCell",
586
- },
587
- Object {
588
- "attrs": Object {
589
- "background": null,
590
- "colspan": 1,
591
- "colwidth": Array [
592
- 436,
593
- ],
594
- "rowspan": 1,
595
- },
596
- "content": Array [
597
- Object {
598
- "type": "paragraph",
599
- },
600
- ],
601
- "type": "tableCell",
602
- },
603
- ],
604
- "type": "tableRow",
605
- },
606
- ],
607
- "type": "table",
608
- },
609
- ],
610
- "type": "doc",
611
- }
612
- `;