@atlaskit/editor-plugin-table 5.4.5 → 5.4.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 (23) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +4 -4
  3. package/tsconfig.dev.json +0 -3
  4. package/src/__tests__/integration/__fixtures__/auto-size-documents.ts +0 -434
  5. package/src/__tests__/integration/__fixtures__/basic-table-with-merged-cell.ts +0 -112
  6. package/src/__tests__/integration/__fixtures__/basic-table.ts +0 -120
  7. package/src/__tests__/integration/__fixtures__/empty-layout.ts +0 -35
  8. package/src/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +0 -396
  9. package/src/__tests__/integration/__fixtures__/even-columns.ts +0 -493
  10. package/src/__tests__/integration/__fixtures__/layout-documents.ts +0 -606
  11. package/src/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +0 -343
  12. package/src/__tests__/integration/__fixtures__/nested-in-expand.ts +0 -129
  13. package/src/__tests__/integration/__fixtures__/nested-in-extension.ts +0 -163
  14. package/src/__tests__/integration/__fixtures__/paragraph-and-table-adf.ts +0 -132
  15. package/src/__tests__/integration/__fixtures__/resize-documents.ts +0 -1605
  16. package/src/__tests__/integration/__fixtures__/scale.ts +0 -825
  17. package/src/__tests__/integration/__fixtures__/table-inside-layout.ts +0 -145
  18. package/src/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +0 -175
  19. package/src/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +0 -168
  20. package/src/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +0 -216
  21. package/src/__tests__/integration/__snapshots__/copy-button.ts.snap +0 -423
  22. package/src/__tests__/integration/copy-button.ts +0 -179
  23. package/src/__tests__/integration/table-controls-selection.ts +0 -71
@@ -1,493 +0,0 @@
1
- export const tableWithUnevenColumns = {
2
- version: 1,
3
- type: 'doc',
4
- content: [
5
- {
6
- type: 'table',
7
- attrs: {
8
- isNumberColumnEnabled: false,
9
- layout: 'default',
10
- },
11
- content: [
12
- {
13
- type: 'tableRow',
14
- content: [
15
- {
16
- type: 'tableHeader',
17
- attrs: {
18
- colwidth: [68],
19
- },
20
- content: [
21
- {
22
- type: 'paragraph',
23
- content: [],
24
- },
25
- ],
26
- },
27
- {
28
- type: 'tableHeader',
29
- attrs: {
30
- colwidth: [116],
31
- },
32
- content: [
33
- {
34
- type: 'paragraph',
35
- content: [],
36
- },
37
- ],
38
- },
39
- {
40
- type: 'tableHeader',
41
- attrs: {
42
- colwidth: [320],
43
- },
44
- content: [
45
- {
46
- type: 'paragraph',
47
- content: [],
48
- },
49
- ],
50
- },
51
- {
52
- type: 'tableHeader',
53
- attrs: {
54
- colwidth: [191],
55
- },
56
- content: [
57
- {
58
- type: 'paragraph',
59
- content: [],
60
- },
61
- ],
62
- },
63
- {
64
- type: 'tableHeader',
65
- attrs: {
66
- colwidth: [65],
67
- },
68
- content: [
69
- {
70
- type: 'paragraph',
71
- content: [],
72
- },
73
- ],
74
- },
75
- ],
76
- },
77
- {
78
- type: 'tableRow',
79
- content: [
80
- {
81
- type: 'tableCell',
82
- attrs: {
83
- colwidth: [68],
84
- },
85
- content: [
86
- {
87
- type: 'paragraph',
88
- content: [],
89
- },
90
- ],
91
- },
92
- {
93
- type: 'tableCell',
94
- attrs: {
95
- colwidth: [116],
96
- },
97
- content: [
98
- {
99
- type: 'paragraph',
100
- content: [],
101
- },
102
- ],
103
- },
104
- {
105
- type: 'tableCell',
106
- attrs: {
107
- colwidth: [320],
108
- },
109
- content: [
110
- {
111
- type: 'paragraph',
112
- content: [],
113
- },
114
- ],
115
- },
116
- {
117
- type: 'tableCell',
118
- attrs: {
119
- colwidth: [191],
120
- },
121
- content: [
122
- {
123
- type: 'paragraph',
124
- content: [],
125
- },
126
- ],
127
- },
128
- {
129
- type: 'tableCell',
130
- attrs: {
131
- colwidth: [65],
132
- },
133
- content: [
134
- {
135
- type: 'paragraph',
136
- content: [],
137
- },
138
- ],
139
- },
140
- ],
141
- },
142
- {
143
- type: 'tableRow',
144
- content: [
145
- {
146
- type: 'tableCell',
147
- attrs: {
148
- colwidth: [68],
149
- },
150
- content: [
151
- {
152
- type: 'paragraph',
153
- content: [],
154
- },
155
- ],
156
- },
157
- {
158
- type: 'tableCell',
159
- attrs: {
160
- colwidth: [116],
161
- },
162
- content: [
163
- {
164
- type: 'paragraph',
165
- content: [],
166
- },
167
- ],
168
- },
169
- {
170
- type: 'tableCell',
171
- attrs: {
172
- colwidth: [320],
173
- },
174
- content: [
175
- {
176
- type: 'paragraph',
177
- content: [],
178
- },
179
- ],
180
- },
181
- {
182
- type: 'tableCell',
183
- attrs: {
184
- colwidth: [191],
185
- },
186
- content: [
187
- {
188
- type: 'paragraph',
189
- content: [],
190
- },
191
- ],
192
- },
193
- {
194
- type: 'tableCell',
195
- attrs: {
196
- colwidth: [65],
197
- },
198
- content: [
199
- {
200
- type: 'paragraph',
201
- content: [],
202
- },
203
- ],
204
- },
205
- ],
206
- },
207
- ],
208
- },
209
- ],
210
- };
211
-
212
- export const tableWithUnevenColumnsInOverflow = {
213
- version: 1,
214
- type: 'doc',
215
- content: [
216
- {
217
- type: 'table',
218
- attrs: {
219
- isNumberColumnEnabled: false,
220
- layout: 'default',
221
- },
222
- content: [
223
- {
224
- type: 'tableRow',
225
- content: [
226
- {
227
- type: 'tableHeader',
228
- attrs: {
229
- colwidth: [48],
230
- },
231
- content: [
232
- {
233
- type: 'paragraph',
234
- content: [],
235
- },
236
- ],
237
- },
238
- {
239
- type: 'tableHeader',
240
- attrs: {
241
- colwidth: [69],
242
- },
243
- content: [
244
- {
245
- type: 'paragraph',
246
- content: [],
247
- },
248
- ],
249
- },
250
- {
251
- type: 'tableHeader',
252
- attrs: {
253
- colwidth: [218],
254
- },
255
- content: [
256
- {
257
- type: 'paragraph',
258
- content: [],
259
- },
260
- ],
261
- },
262
- {
263
- type: 'tableHeader',
264
- attrs: {
265
- colwidth: [126],
266
- },
267
- content: [
268
- {
269
- type: 'paragraph',
270
- content: [],
271
- },
272
- ],
273
- },
274
- {
275
- type: 'tableHeader',
276
- attrs: {
277
- colwidth: [240],
278
- },
279
- content: [
280
- {
281
- type: 'paragraph',
282
- content: [],
283
- },
284
- ],
285
- },
286
- {
287
- type: 'tableHeader',
288
- attrs: {
289
- colwidth: [48],
290
- },
291
- content: [
292
- {
293
- type: 'paragraph',
294
- content: [],
295
- },
296
- ],
297
- },
298
- {
299
- type: 'tableHeader',
300
- attrs: {
301
- colwidth: [48],
302
- },
303
- content: [
304
- {
305
- type: 'paragraph',
306
- content: [],
307
- },
308
- ],
309
- },
310
- ],
311
- },
312
- {
313
- type: 'tableRow',
314
- content: [
315
- {
316
- type: 'tableCell',
317
- attrs: {
318
- colwidth: [48],
319
- },
320
- content: [
321
- {
322
- type: 'paragraph',
323
- content: [],
324
- },
325
- ],
326
- },
327
- {
328
- type: 'tableCell',
329
- attrs: {
330
- colwidth: [69],
331
- },
332
- content: [
333
- {
334
- type: 'paragraph',
335
- content: [],
336
- },
337
- ],
338
- },
339
- {
340
- type: 'tableCell',
341
- attrs: {
342
- colwidth: [218],
343
- },
344
- content: [
345
- {
346
- type: 'paragraph',
347
- content: [],
348
- },
349
- ],
350
- },
351
- {
352
- type: 'tableCell',
353
- attrs: {
354
- colwidth: [126],
355
- },
356
- content: [
357
- {
358
- type: 'paragraph',
359
- content: [],
360
- },
361
- ],
362
- },
363
- {
364
- type: 'tableCell',
365
- attrs: {
366
- colwidth: [240],
367
- },
368
- content: [
369
- {
370
- type: 'paragraph',
371
- content: [],
372
- },
373
- ],
374
- },
375
- {
376
- type: 'tableCell',
377
- attrs: {
378
- colwidth: [48],
379
- },
380
- content: [
381
- {
382
- type: 'paragraph',
383
- content: [],
384
- },
385
- ],
386
- },
387
- {
388
- type: 'tableCell',
389
- attrs: {
390
- colwidth: [48],
391
- },
392
- content: [
393
- {
394
- type: 'paragraph',
395
- content: [],
396
- },
397
- ],
398
- },
399
- ],
400
- },
401
- {
402
- type: 'tableRow',
403
- content: [
404
- {
405
- type: 'tableCell',
406
- attrs: {
407
- colwidth: [48],
408
- },
409
- content: [
410
- {
411
- type: 'paragraph',
412
- content: [],
413
- },
414
- ],
415
- },
416
- {
417
- type: 'tableCell',
418
- attrs: {
419
- colwidth: [69],
420
- },
421
- content: [
422
- {
423
- type: 'paragraph',
424
- content: [],
425
- },
426
- ],
427
- },
428
- {
429
- type: 'tableCell',
430
- attrs: {
431
- colwidth: [218],
432
- },
433
- content: [
434
- {
435
- type: 'paragraph',
436
- content: [],
437
- },
438
- ],
439
- },
440
- {
441
- type: 'tableCell',
442
- attrs: {
443
- colwidth: [126],
444
- },
445
- content: [
446
- {
447
- type: 'paragraph',
448
- content: [],
449
- },
450
- ],
451
- },
452
- {
453
- type: 'tableCell',
454
- attrs: {
455
- colwidth: [240],
456
- },
457
- content: [
458
- {
459
- type: 'paragraph',
460
- content: [],
461
- },
462
- ],
463
- },
464
- {
465
- type: 'tableCell',
466
- attrs: {
467
- colwidth: [48],
468
- },
469
- content: [
470
- {
471
- type: 'paragraph',
472
- content: [],
473
- },
474
- ],
475
- },
476
- {
477
- type: 'tableCell',
478
- attrs: {
479
- colwidth: [48],
480
- },
481
- content: [
482
- {
483
- type: 'paragraph',
484
- content: [],
485
- },
486
- ],
487
- },
488
- ],
489
- },
490
- ],
491
- },
492
- ],
493
- };