@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,396 +0,0 @@
1
- const emptyParagraphUnderneathTable = {
2
- version: 1,
3
- type: 'doc',
4
- content: [
5
- {
6
- type: 'table',
7
- attrs: {
8
- isNumberColumnEnabled: false,
9
- layout: 'default',
10
- localId: '2b7ca746-3f15-476d-a6bc-c754b8c14b71',
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
- ],
25
- },
26
- {
27
- type: 'tableHeader',
28
- attrs: {},
29
- content: [
30
- {
31
- type: 'paragraph',
32
- content: [],
33
- },
34
- ],
35
- },
36
- {
37
- type: 'tableHeader',
38
- attrs: {},
39
- content: [
40
- {
41
- type: 'paragraph',
42
- content: [],
43
- },
44
- ],
45
- },
46
- ],
47
- },
48
- {
49
- type: 'tableRow',
50
- content: [
51
- {
52
- type: 'tableCell',
53
- attrs: {},
54
- content: [
55
- {
56
- type: 'paragraph',
57
- content: [],
58
- },
59
- ],
60
- },
61
- {
62
- type: 'tableCell',
63
- attrs: {},
64
- content: [
65
- {
66
- type: 'paragraph',
67
- content: [],
68
- },
69
- ],
70
- },
71
- {
72
- type: 'tableCell',
73
- attrs: {},
74
- content: [
75
- {
76
- type: 'paragraph',
77
- content: [],
78
- },
79
- ],
80
- },
81
- ],
82
- },
83
- {
84
- type: 'tableRow',
85
- content: [
86
- {
87
- type: 'tableCell',
88
- attrs: {},
89
- content: [
90
- {
91
- type: 'paragraph',
92
- content: [],
93
- },
94
- ],
95
- },
96
- {
97
- type: 'tableCell',
98
- attrs: {},
99
- content: [
100
- {
101
- type: 'paragraph',
102
- content: [],
103
- },
104
- ],
105
- },
106
- {
107
- type: 'tableCell',
108
- attrs: {},
109
- content: [
110
- {
111
- type: 'paragraph',
112
- content: [],
113
- },
114
- ],
115
- },
116
- ],
117
- },
118
- ],
119
- },
120
- {
121
- type: 'paragraph',
122
- content: [],
123
- },
124
- {
125
- type: 'paragraph',
126
- content: [],
127
- },
128
- ],
129
- };
130
-
131
- const emptyParagraphUnderneathTableAtEnd = {
132
- version: 1,
133
- type: 'doc',
134
- content: [
135
- {
136
- type: 'table',
137
- attrs: {
138
- isNumberColumnEnabled: false,
139
- layout: 'default',
140
- localId: '2b7ca746-3f15-476d-a6bc-c754b8c14b71',
141
- },
142
- content: [
143
- {
144
- type: 'tableRow',
145
- content: [
146
- {
147
- type: 'tableHeader',
148
- attrs: {},
149
- content: [
150
- {
151
- type: 'paragraph',
152
- content: [],
153
- },
154
- ],
155
- },
156
- {
157
- type: 'tableHeader',
158
- attrs: {},
159
- content: [
160
- {
161
- type: 'paragraph',
162
- content: [],
163
- },
164
- ],
165
- },
166
- {
167
- type: 'tableHeader',
168
- attrs: {},
169
- content: [
170
- {
171
- type: 'paragraph',
172
- content: [],
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
- type: 'tableRow',
215
- content: [
216
- {
217
- type: 'tableCell',
218
- attrs: {},
219
- content: [
220
- {
221
- type: 'paragraph',
222
- content: [],
223
- },
224
- ],
225
- },
226
- {
227
- type: 'tableCell',
228
- attrs: {},
229
- content: [
230
- {
231
- type: 'paragraph',
232
- content: [],
233
- },
234
- ],
235
- },
236
- {
237
- type: 'tableCell',
238
- attrs: {},
239
- content: [
240
- {
241
- type: 'paragraph',
242
- content: [],
243
- },
244
- ],
245
- },
246
- ],
247
- },
248
- ],
249
- },
250
- {
251
- type: 'paragraph',
252
- content: [],
253
- },
254
- ],
255
- };
256
-
257
- const filledParagraphUnderneathTable = {
258
- version: 1,
259
- type: 'doc',
260
- content: [
261
- {
262
- type: 'table',
263
- attrs: {
264
- isNumberColumnEnabled: false,
265
- layout: 'default',
266
- localId: '2b7ca746-3f15-476d-a6bc-c754b8c14b71',
267
- },
268
- content: [
269
- {
270
- type: 'tableRow',
271
- content: [
272
- {
273
- type: 'tableHeader',
274
- attrs: {},
275
- content: [
276
- {
277
- type: 'paragraph',
278
- content: [],
279
- },
280
- ],
281
- },
282
- {
283
- type: 'tableHeader',
284
- attrs: {},
285
- content: [
286
- {
287
- type: 'paragraph',
288
- content: [],
289
- },
290
- ],
291
- },
292
- {
293
- type: 'tableHeader',
294
- attrs: {},
295
- content: [
296
- {
297
- type: 'paragraph',
298
- content: [],
299
- },
300
- ],
301
- },
302
- ],
303
- },
304
- {
305
- type: 'tableRow',
306
- content: [
307
- {
308
- type: 'tableCell',
309
- attrs: {},
310
- content: [
311
- {
312
- type: 'paragraph',
313
- content: [],
314
- },
315
- ],
316
- },
317
- {
318
- type: 'tableCell',
319
- attrs: {},
320
- content: [
321
- {
322
- type: 'paragraph',
323
- content: [],
324
- },
325
- ],
326
- },
327
- {
328
- type: 'tableCell',
329
- attrs: {},
330
- content: [
331
- {
332
- type: 'paragraph',
333
- content: [],
334
- },
335
- ],
336
- },
337
- ],
338
- },
339
- {
340
- type: 'tableRow',
341
- content: [
342
- {
343
- type: 'tableCell',
344
- attrs: {},
345
- content: [
346
- {
347
- type: 'paragraph',
348
- content: [],
349
- },
350
- ],
351
- },
352
- {
353
- type: 'tableCell',
354
- attrs: {},
355
- content: [
356
- {
357
- type: 'paragraph',
358
- content: [],
359
- },
360
- ],
361
- },
362
- {
363
- type: 'tableCell',
364
- attrs: {},
365
- content: [
366
- {
367
- type: 'paragraph',
368
- content: [],
369
- },
370
- ],
371
- },
372
- ],
373
- },
374
- ],
375
- },
376
- {
377
- type: 'paragraph',
378
- content: [
379
- {
380
- type: 'text',
381
- text: 'hello there',
382
- },
383
- ],
384
- },
385
- {
386
- type: 'paragraph',
387
- content: [],
388
- },
389
- ],
390
- };
391
-
392
- export {
393
- emptyParagraphUnderneathTable,
394
- emptyParagraphUnderneathTableAtEnd,
395
- filledParagraphUnderneathTable,
396
- };