@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,130 +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: '79259280-56bc-4cb0-9587-572864b97f39',
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
- type: 'text',
125
- text: 'test',
126
- },
127
- ],
128
- },
129
- ],
130
- };
@@ -1,145 +0,0 @@
1
- export const table = {
2
- version: 1,
3
- type: 'doc',
4
- content: [
5
- {
6
- type: 'layoutSection',
7
- content: [
8
- {
9
- type: 'layoutColumn',
10
- attrs: {
11
- width: 50,
12
- },
13
- content: [
14
- {
15
- type: 'paragraph',
16
- content: [],
17
- },
18
- ],
19
- },
20
- {
21
- type: 'layoutColumn',
22
- attrs: {
23
- width: 50,
24
- },
25
- content: [
26
- {
27
- type: 'table',
28
- attrs: {
29
- isNumberColumnEnabled: false,
30
- layout: 'default',
31
- },
32
- content: [
33
- {
34
- type: 'tableRow',
35
- content: [
36
- {
37
- type: 'tableHeader',
38
- attrs: {},
39
- content: [
40
- {
41
- type: 'paragraph',
42
- content: [],
43
- },
44
- ],
45
- },
46
- {
47
- type: 'tableHeader',
48
- attrs: {},
49
- content: [
50
- {
51
- type: 'paragraph',
52
- content: [],
53
- },
54
- ],
55
- },
56
- {
57
- type: 'tableHeader',
58
- attrs: {},
59
- content: [
60
- {
61
- type: 'paragraph',
62
- content: [],
63
- },
64
- ],
65
- },
66
- ],
67
- },
68
- {
69
- type: 'tableRow',
70
- content: [
71
- {
72
- type: 'tableCell',
73
- attrs: {},
74
- content: [
75
- {
76
- type: 'paragraph',
77
- content: [],
78
- },
79
- ],
80
- },
81
- {
82
- type: 'tableCell',
83
- attrs: {},
84
- content: [
85
- {
86
- type: 'paragraph',
87
- content: [],
88
- },
89
- ],
90
- },
91
- {
92
- type: 'tableCell',
93
- attrs: {},
94
- content: [
95
- {
96
- type: 'paragraph',
97
- content: [],
98
- },
99
- ],
100
- },
101
- ],
102
- },
103
- {
104
- type: 'tableRow',
105
- content: [
106
- {
107
- type: 'tableCell',
108
- attrs: {},
109
- content: [
110
- {
111
- type: 'paragraph',
112
- content: [],
113
- },
114
- ],
115
- },
116
- {
117
- type: 'tableCell',
118
- attrs: {},
119
- content: [
120
- {
121
- type: 'paragraph',
122
- content: [],
123
- },
124
- ],
125
- },
126
- {
127
- type: 'tableCell',
128
- attrs: {},
129
- content: [
130
- {
131
- type: 'paragraph',
132
- content: [],
133
- },
134
- ],
135
- },
136
- ],
137
- },
138
- ],
139
- },
140
- ],
141
- },
142
- ],
143
- },
144
- ],
145
- };
@@ -1,175 +0,0 @@
1
- export const tableWithMinWidthColumnsDocument = {
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: [48],
20
- },
21
- content: [
22
- {
23
- type: 'paragraph',
24
- content: [],
25
- },
26
- ],
27
- },
28
- {
29
- type: 'tableHeader',
30
- attrs: {
31
- colwidth: [48],
32
- },
33
- content: [
34
- {
35
- type: 'paragraph',
36
- content: [],
37
- },
38
- ],
39
- },
40
- {
41
- type: 'tableHeader',
42
- attrs: {
43
- colwidth: [48],
44
- },
45
- content: [
46
- {
47
- type: 'paragraph',
48
- content: [],
49
- },
50
- ],
51
- },
52
- {
53
- type: 'tableHeader',
54
- attrs: {
55
- colwidth: [535],
56
- },
57
- content: [
58
- {
59
- type: 'paragraph',
60
- content: [],
61
- },
62
- ],
63
- },
64
- ],
65
- },
66
- {
67
- type: 'tableRow',
68
- content: [
69
- {
70
- type: 'tableCell',
71
- attrs: {
72
- colwidth: [48],
73
- },
74
- content: [
75
- {
76
- type: 'paragraph',
77
- content: [],
78
- },
79
- ],
80
- },
81
- {
82
- type: 'tableCell',
83
- attrs: {
84
- colwidth: [48],
85
- },
86
- content: [
87
- {
88
- type: 'paragraph',
89
- content: [],
90
- },
91
- ],
92
- },
93
- {
94
- type: 'tableCell',
95
- attrs: {
96
- colwidth: [48],
97
- },
98
- content: [
99
- {
100
- type: 'paragraph',
101
- content: [],
102
- },
103
- ],
104
- },
105
- {
106
- type: 'tableCell',
107
- attrs: {
108
- colwidth: [535],
109
- },
110
- content: [
111
- {
112
- type: 'paragraph',
113
- content: [],
114
- },
115
- ],
116
- },
117
- ],
118
- },
119
- {
120
- type: 'tableRow',
121
- content: [
122
- {
123
- type: 'tableCell',
124
- attrs: {
125
- colwidth: [48],
126
- },
127
- content: [
128
- {
129
- type: 'paragraph',
130
- content: [],
131
- },
132
- ],
133
- },
134
- {
135
- type: 'tableCell',
136
- attrs: {
137
- colwidth: [48],
138
- },
139
- content: [
140
- {
141
- type: 'paragraph',
142
- content: [],
143
- },
144
- ],
145
- },
146
- {
147
- type: 'tableCell',
148
- attrs: {
149
- colwidth: [48],
150
- },
151
- content: [
152
- {
153
- type: 'paragraph',
154
- content: [],
155
- },
156
- ],
157
- },
158
- {
159
- type: 'tableCell',
160
- attrs: {
161
- colwidth: [535],
162
- },
163
- content: [
164
- {
165
- type: 'paragraph',
166
- content: [],
167
- },
168
- ],
169
- },
170
- ],
171
- },
172
- ],
173
- },
174
- ],
175
- };
@@ -1,168 +0,0 @@
1
- {
2
- "version": 1,
3
- "type": "doc",
4
- "content": [
5
- {
6
- "type": "table",
7
- "attrs": {
8
- "isNumberColumnEnabled": false,
9
- "layout": "default",
10
- "localId": "b1db8b12-65aa-40a4-b3ab-74cee4a7069b"
11
- },
12
- "content": [
13
- {
14
- "type": "tableRow",
15
- "content": [
16
- {
17
- "type": "tableHeader",
18
- "attrs": {
19
- "colwidth": [
20
- 253
21
- ]
22
- },
23
- "content": [
24
- {
25
- "type": "paragraph",
26
- "content": []
27
- }
28
- ]
29
- },
30
- {
31
- "type": "tableHeader",
32
- "attrs": {
33
- "colwidth": [
34
- 405
35
- ]
36
- },
37
- "content": [
38
- {
39
- "type": "paragraph",
40
- "content": []
41
- }
42
- ]
43
- },
44
- {
45
- "type": "tableHeader",
46
- "attrs": {
47
- "colwidth": [
48
- 101
49
- ]
50
- },
51
- "content": [
52
- {
53
- "type": "paragraph",
54
- "content": []
55
- }
56
- ]
57
- }
58
- ]
59
- },
60
- {
61
- "type": "tableRow",
62
- "content": [
63
- {
64
- "type": "tableCell",
65
- "attrs": {
66
- "colwidth": [
67
- 253
68
- ]
69
- },
70
- "content": [
71
- {
72
- "type": "paragraph",
73
- "content": []
74
- }
75
- ]
76
- },
77
- {
78
- "type": "tableCell",
79
- "attrs": {
80
- "colwidth": [
81
- 405
82
- ]
83
- },
84
- "content": [
85
- {
86
- "type": "paragraph",
87
- "content": []
88
- }
89
- ]
90
- },
91
- {
92
- "type": "tableCell",
93
- "attrs": {
94
- "colwidth": [
95
- 101
96
- ]
97
- },
98
- "content": [
99
- {
100
- "type": "paragraph",
101
- "content": [
102
- {
103
- "type": "date",
104
- "attrs": {
105
- "timestamp": "1659484800000"
106
- }
107
- },
108
- {
109
- "type": "text",
110
- "text": " "
111
- }
112
- ]
113
- }
114
- ]
115
- }
116
- ]
117
- },
118
- {
119
- "type": "tableRow",
120
- "content": [
121
- {
122
- "type": "tableCell",
123
- "attrs": {
124
- "colwidth": [
125
- 253
126
- ]
127
- },
128
- "content": [
129
- {
130
- "type": "paragraph",
131
- "content": []
132
- }
133
- ]
134
- },
135
- {
136
- "type": "tableCell",
137
- "attrs": {
138
- "colwidth": [
139
- 405
140
- ]
141
- },
142
- "content": [
143
- {
144
- "type": "paragraph",
145
- "content": []
146
- }
147
- ]
148
- },
149
- {
150
- "type": "tableCell",
151
- "attrs": {
152
- "colwidth": [
153
- 101
154
- ]
155
- },
156
- "content": [
157
- {
158
- "type": "paragraph",
159
- "content": []
160
- }
161
- ]
162
- }
163
- ]
164
- }
165
- ]
166
- }
167
- ]
168
- }