@atlaskit/editor-plugin-table 5.4.4 → 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 (64) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/table/types.js +1 -1
  3. package/dist/cjs/plugins/table/ui/DragHandle/HandleIconComponent.js +29 -0
  4. package/dist/cjs/plugins/table/ui/DragHandle/index.js +21 -20
  5. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  6. package/dist/cjs/plugins/table/ui/consts.js +1 -2
  7. package/dist/cjs/plugins/table/ui/ui-styles.js +10 -13
  8. package/dist/cjs/plugins/table/utils/decoration.js +7 -6
  9. package/dist/es2019/plugins/table/types.js +1 -1
  10. package/dist/es2019/plugins/table/ui/DragHandle/HandleIconComponent.js +24 -0
  11. package/dist/es2019/plugins/table/ui/DragHandle/index.js +21 -20
  12. package/dist/es2019/plugins/table/ui/common-styles.js +6 -2
  13. package/dist/es2019/plugins/table/ui/consts.js +0 -1
  14. package/dist/es2019/plugins/table/ui/ui-styles.js +18 -12
  15. package/dist/es2019/plugins/table/utils/decoration.js +7 -6
  16. package/dist/esm/plugins/table/types.js +1 -1
  17. package/dist/esm/plugins/table/ui/DragHandle/HandleIconComponent.js +22 -0
  18. package/dist/esm/plugins/table/ui/DragHandle/index.js +21 -20
  19. package/dist/esm/plugins/table/ui/common-styles.js +2 -2
  20. package/dist/esm/plugins/table/ui/consts.js +0 -1
  21. package/dist/esm/plugins/table/ui/ui-styles.js +10 -13
  22. package/dist/esm/plugins/table/utils/decoration.js +7 -6
  23. package/dist/types/plugins/table/types.d.ts +1 -1
  24. package/dist/types/plugins/table/ui/DragHandle/HandleIconComponent.d.ts +13 -0
  25. package/dist/types/plugins/table/ui/consts.d.ts +0 -1
  26. package/dist/types/plugins/table/ui/ui-styles.d.ts +0 -1
  27. package/dist/types-ts4.5/plugins/table/types.d.ts +1 -1
  28. package/dist/types-ts4.5/plugins/table/ui/DragHandle/HandleIconComponent.d.ts +13 -0
  29. package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +0 -1
  30. package/dist/types-ts4.5/plugins/table/ui/ui-styles.d.ts +0 -1
  31. package/package.json +4 -4
  32. package/src/plugins/table/types.ts +1 -1
  33. package/src/plugins/table/ui/DragHandle/HandleIconComponent.tsx +51 -0
  34. package/src/plugins/table/ui/DragHandle/index.tsx +30 -33
  35. package/src/plugins/table/ui/common-styles.ts +5 -2
  36. package/src/plugins/table/ui/consts.ts +0 -5
  37. package/src/plugins/table/ui/ui-styles.ts +17 -12
  38. package/src/plugins/table/utils/decoration.ts +14 -19
  39. package/tsconfig.dev.json +0 -3
  40. package/src/__tests__/integration/__fixtures__/auto-size-documents.ts +0 -434
  41. package/src/__tests__/integration/__fixtures__/basic-table-with-merged-cell.ts +0 -112
  42. package/src/__tests__/integration/__fixtures__/basic-table.ts +0 -120
  43. package/src/__tests__/integration/__fixtures__/empty-layout.ts +0 -35
  44. package/src/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +0 -396
  45. package/src/__tests__/integration/__fixtures__/even-columns.ts +0 -493
  46. package/src/__tests__/integration/__fixtures__/large-table-with-sticky-header.ts +0 -2311
  47. package/src/__tests__/integration/__fixtures__/layout-documents.ts +0 -606
  48. package/src/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +0 -343
  49. package/src/__tests__/integration/__fixtures__/nested-in-expand.ts +0 -129
  50. package/src/__tests__/integration/__fixtures__/nested-in-extension.ts +0 -163
  51. package/src/__tests__/integration/__fixtures__/paragraph-and-table-adf.ts +0 -132
  52. package/src/__tests__/integration/__fixtures__/resize-documents.ts +0 -1605
  53. package/src/__tests__/integration/__fixtures__/scale.ts +0 -825
  54. package/src/__tests__/integration/__fixtures__/table-and-paragraph-adf.ts +0 -130
  55. package/src/__tests__/integration/__fixtures__/table-inside-layout.ts +0 -145
  56. package/src/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +0 -175
  57. package/src/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +0 -168
  58. package/src/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +0 -216
  59. package/src/__tests__/integration/__snapshots__/copy-button.ts.snap +0 -423
  60. package/src/__tests__/integration/copy-button.ts +0 -179
  61. package/src/__tests__/integration/horizontal-scroll-shadows.ts +0 -197
  62. package/src/__tests__/integration/meta-arrowup-cursor-in-first-row.ts +0 -42
  63. package/src/__tests__/integration/sticky-header.ts +0 -133
  64. package/src/__tests__/integration/table-controls-selection.ts +0 -71
@@ -1,216 +0,0 @@
1
- export default {
2
- version: 1,
3
- type: 'doc',
4
- content: [
5
- {
6
- type: 'table',
7
- attrs: {
8
- isNumberColumnEnabled: false,
9
- layout: 'default',
10
- localId: 'f37fd7b7-a3e6-4061-b2c2-c5074e766225',
11
- },
12
- content: [
13
- {
14
- type: 'tableRow',
15
- content: [
16
- {
17
- type: 'tableHeader',
18
- attrs: {},
19
- content: [
20
- {
21
- type: 'paragraph',
22
- content: [
23
- {
24
- type: 'text',
25
- text: 'hello',
26
- marks: [
27
- {
28
- type: 'strong',
29
- },
30
- ],
31
- },
32
- ],
33
- },
34
- ],
35
- },
36
- {
37
- type: 'tableHeader',
38
- attrs: {},
39
- content: [
40
- {
41
- type: 'paragraph',
42
- content: [
43
- {
44
- type: 'text',
45
- text: 'hello',
46
- marks: [
47
- {
48
- type: 'strong',
49
- },
50
- ],
51
- },
52
- ],
53
- },
54
- ],
55
- },
56
- {
57
- type: 'tableHeader',
58
- attrs: {},
59
- content: [
60
- {
61
- type: 'paragraph',
62
- content: [
63
- {
64
- type: 'text',
65
- text: 'hello',
66
- marks: [
67
- {
68
- type: 'strong',
69
- },
70
- ],
71
- },
72
- ],
73
- },
74
- ],
75
- },
76
- ],
77
- },
78
- {
79
- type: 'tableRow',
80
- content: [
81
- {
82
- type: 'tableCell',
83
- attrs: {},
84
- content: [
85
- {
86
- type: 'paragraph',
87
- content: [
88
- {
89
- type: 'text',
90
- text: 'hello',
91
- },
92
- ],
93
- },
94
- ],
95
- },
96
- {
97
- type: 'tableCell',
98
- attrs: {},
99
- content: [
100
- {
101
- type: 'paragraph',
102
- content: [
103
- {
104
- type: 'text',
105
- text: 'hello',
106
- },
107
- ],
108
- },
109
- ],
110
- },
111
- {
112
- type: 'tableCell',
113
- attrs: {},
114
- content: [
115
- {
116
- type: 'paragraph',
117
- content: [
118
- {
119
- type: 'text',
120
- text: 'hello',
121
- },
122
- ],
123
- },
124
- ],
125
- },
126
- ],
127
- },
128
- {
129
- type: 'tableRow',
130
- content: [
131
- {
132
- type: 'tableCell',
133
- attrs: {},
134
- content: [
135
- {
136
- type: 'paragraph',
137
- content: [
138
- {
139
- type: 'text',
140
- text: 'hello',
141
- },
142
- ],
143
- },
144
- ],
145
- },
146
- {
147
- type: 'tableCell',
148
- attrs: {},
149
- content: [
150
- {
151
- type: 'paragraph',
152
- content: [
153
- {
154
- type: 'text',
155
- text: 'hello',
156
- },
157
- ],
158
- },
159
- ],
160
- },
161
- {
162
- type: 'tableCell',
163
- attrs: {},
164
- content: [
165
- {
166
- type: 'paragraph',
167
- content: [
168
- {
169
- type: 'text',
170
- text: 'hello',
171
- },
172
- ],
173
- },
174
- ],
175
- },
176
- ],
177
- },
178
- {
179
- type: 'tableRow',
180
- content: [
181
- {
182
- type: 'tableCell',
183
- attrs: {},
184
- content: [
185
- {
186
- type: 'paragraph',
187
- content: [],
188
- },
189
- ],
190
- },
191
- {
192
- type: 'tableCell',
193
- attrs: {},
194
- content: [
195
- {
196
- type: 'paragraph',
197
- content: [],
198
- },
199
- ],
200
- },
201
- {
202
- type: 'tableCell',
203
- attrs: {},
204
- content: [
205
- {
206
- type: 'paragraph',
207
- content: [],
208
- },
209
- ],
210
- },
211
- ],
212
- },
213
- ],
214
- },
215
- ],
216
- };
@@ -1,423 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Copy block with floating toolbar copy button 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": null,
22
- "rowspan": 1,
23
- },
24
- "content": Array [
25
- Object {
26
- "content": Array [
27
- Object {
28
- "text": "1",
29
- "type": "text",
30
- },
31
- ],
32
- "type": "paragraph",
33
- },
34
- ],
35
- "type": "tableHeader",
36
- },
37
- Object {
38
- "attrs": Object {
39
- "background": null,
40
- "colspan": 1,
41
- "colwidth": null,
42
- "rowspan": 1,
43
- },
44
- "content": Array [
45
- Object {
46
- "content": Array [
47
- Object {
48
- "text": "2",
49
- "type": "text",
50
- },
51
- ],
52
- "type": "paragraph",
53
- },
54
- ],
55
- "type": "tableHeader",
56
- },
57
- Object {
58
- "attrs": Object {
59
- "background": null,
60
- "colspan": 1,
61
- "colwidth": null,
62
- "rowspan": 1,
63
- },
64
- "content": Array [
65
- Object {
66
- "content": Array [
67
- Object {
68
- "text": "3",
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": null,
87
- "rowspan": 1,
88
- },
89
- "content": Array [
90
- Object {
91
- "content": Array [
92
- Object {
93
- "text": "4",
94
- "type": "text",
95
- },
96
- ],
97
- "type": "paragraph",
98
- },
99
- ],
100
- "type": "tableCell",
101
- },
102
- Object {
103
- "attrs": Object {
104
- "background": null,
105
- "colspan": 1,
106
- "colwidth": null,
107
- "rowspan": 1,
108
- },
109
- "content": Array [
110
- Object {
111
- "content": Array [
112
- Object {
113
- "text": "5",
114
- "type": "text",
115
- },
116
- ],
117
- "type": "paragraph",
118
- },
119
- ],
120
- "type": "tableCell",
121
- },
122
- Object {
123
- "attrs": Object {
124
- "background": null,
125
- "colspan": 1,
126
- "colwidth": null,
127
- "rowspan": 1,
128
- },
129
- "content": Array [
130
- Object {
131
- "content": Array [
132
- Object {
133
- "text": "6",
134
- "type": "text",
135
- },
136
- ],
137
- "type": "paragraph",
138
- },
139
- ],
140
- "type": "tableCell",
141
- },
142
- ],
143
- "type": "tableRow",
144
- },
145
- Object {
146
- "content": Array [
147
- Object {
148
- "attrs": Object {
149
- "background": null,
150
- "colspan": 1,
151
- "colwidth": null,
152
- "rowspan": 1,
153
- },
154
- "content": Array [
155
- Object {
156
- "content": Array [
157
- Object {
158
- "text": "7",
159
- "type": "text",
160
- },
161
- ],
162
- "type": "paragraph",
163
- },
164
- ],
165
- "type": "tableCell",
166
- },
167
- Object {
168
- "attrs": Object {
169
- "background": null,
170
- "colspan": 1,
171
- "colwidth": null,
172
- "rowspan": 1,
173
- },
174
- "content": Array [
175
- Object {
176
- "content": Array [
177
- Object {
178
- "text": "8",
179
- "type": "text",
180
- },
181
- ],
182
- "type": "paragraph",
183
- },
184
- ],
185
- "type": "tableCell",
186
- },
187
- Object {
188
- "attrs": Object {
189
- "background": null,
190
- "colspan": 1,
191
- "colwidth": null,
192
- "rowspan": 1,
193
- },
194
- "content": Array [
195
- Object {
196
- "content": Array [
197
- Object {
198
- "text": "9",
199
- "type": "text",
200
- },
201
- ],
202
- "type": "paragraph",
203
- },
204
- ],
205
- "type": "tableCell",
206
- },
207
- ],
208
- "type": "tableRow",
209
- },
210
- ],
211
- "type": "table",
212
- },
213
- Object {
214
- "attrs": Object {
215
- "__autoSize": false,
216
- "isNumberColumnEnabled": false,
217
- "layout": "default",
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": null,
229
- "rowspan": 1,
230
- },
231
- "content": Array [
232
- Object {
233
- "content": Array [
234
- Object {
235
- "text": "1",
236
- "type": "text",
237
- },
238
- ],
239
- "type": "paragraph",
240
- },
241
- ],
242
- "type": "tableHeader",
243
- },
244
- Object {
245
- "attrs": Object {
246
- "background": null,
247
- "colspan": 1,
248
- "colwidth": null,
249
- "rowspan": 1,
250
- },
251
- "content": Array [
252
- Object {
253
- "content": Array [
254
- Object {
255
- "text": "2",
256
- "type": "text",
257
- },
258
- ],
259
- "type": "paragraph",
260
- },
261
- ],
262
- "type": "tableHeader",
263
- },
264
- Object {
265
- "attrs": Object {
266
- "background": null,
267
- "colspan": 1,
268
- "colwidth": null,
269
- "rowspan": 1,
270
- },
271
- "content": Array [
272
- Object {
273
- "content": Array [
274
- Object {
275
- "text": "3",
276
- "type": "text",
277
- },
278
- ],
279
- "type": "paragraph",
280
- },
281
- ],
282
- "type": "tableHeader",
283
- },
284
- ],
285
- "type": "tableRow",
286
- },
287
- Object {
288
- "content": Array [
289
- Object {
290
- "attrs": Object {
291
- "background": null,
292
- "colspan": 1,
293
- "colwidth": null,
294
- "rowspan": 1,
295
- },
296
- "content": Array [
297
- Object {
298
- "content": Array [
299
- Object {
300
- "text": "4",
301
- "type": "text",
302
- },
303
- ],
304
- "type": "paragraph",
305
- },
306
- ],
307
- "type": "tableCell",
308
- },
309
- Object {
310
- "attrs": Object {
311
- "background": null,
312
- "colspan": 1,
313
- "colwidth": null,
314
- "rowspan": 1,
315
- },
316
- "content": Array [
317
- Object {
318
- "content": Array [
319
- Object {
320
- "text": "5",
321
- "type": "text",
322
- },
323
- ],
324
- "type": "paragraph",
325
- },
326
- ],
327
- "type": "tableCell",
328
- },
329
- Object {
330
- "attrs": Object {
331
- "background": null,
332
- "colspan": 1,
333
- "colwidth": null,
334
- "rowspan": 1,
335
- },
336
- "content": Array [
337
- Object {
338
- "content": Array [
339
- Object {
340
- "text": "6",
341
- "type": "text",
342
- },
343
- ],
344
- "type": "paragraph",
345
- },
346
- ],
347
- "type": "tableCell",
348
- },
349
- ],
350
- "type": "tableRow",
351
- },
352
- Object {
353
- "content": Array [
354
- Object {
355
- "attrs": Object {
356
- "background": null,
357
- "colspan": 1,
358
- "colwidth": null,
359
- "rowspan": 1,
360
- },
361
- "content": Array [
362
- Object {
363
- "content": Array [
364
- Object {
365
- "text": "7",
366
- "type": "text",
367
- },
368
- ],
369
- "type": "paragraph",
370
- },
371
- ],
372
- "type": "tableCell",
373
- },
374
- Object {
375
- "attrs": Object {
376
- "background": null,
377
- "colspan": 1,
378
- "colwidth": null,
379
- "rowspan": 1,
380
- },
381
- "content": Array [
382
- Object {
383
- "content": Array [
384
- Object {
385
- "text": "8",
386
- "type": "text",
387
- },
388
- ],
389
- "type": "paragraph",
390
- },
391
- ],
392
- "type": "tableCell",
393
- },
394
- Object {
395
- "attrs": Object {
396
- "background": null,
397
- "colspan": 1,
398
- "colwidth": null,
399
- "rowspan": 1,
400
- },
401
- "content": Array [
402
- Object {
403
- "content": Array [
404
- Object {
405
- "text": "9",
406
- "type": "text",
407
- },
408
- ],
409
- "type": "paragraph",
410
- },
411
- ],
412
- "type": "tableCell",
413
- },
414
- ],
415
- "type": "tableRow",
416
- },
417
- ],
418
- "type": "table",
419
- },
420
- ],
421
- "type": "doc",
422
- }
423
- `;