@atlaskit/editor-plugin-table 5.4.11 → 5.4.13

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 (49) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/plugins/table/event-handlers.js +10 -4
  3. package/dist/cjs/plugins/table/toolbar.js +3 -6
  4. package/dist/cjs/plugins/table/ui/ColumnResizeWidget/index.js +3 -6
  5. package/dist/cjs/plugins/table/ui/DragHandle/index.js +12 -6
  6. package/dist/cjs/plugins/table/ui/DragPreview/index.js +2 -0
  7. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +7 -10
  8. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +10 -11
  9. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +3 -6
  10. package/dist/cjs/plugins/table/ui/FloatingDragMenu/DragMenu.js +4 -7
  11. package/dist/cjs/plugins/table/ui/TableFloatingColumnControls/index.js +1 -4
  12. package/dist/cjs/plugins/table/utils/column-controls.js +63 -1
  13. package/dist/cjs/plugins/table/utils/index.js +12 -0
  14. package/dist/es2019/plugins/table/event-handlers.js +11 -5
  15. package/dist/es2019/plugins/table/toolbar.js +3 -5
  16. package/dist/es2019/plugins/table/ui/ColumnResizeWidget/index.js +3 -5
  17. package/dist/es2019/plugins/table/ui/DragHandle/index.js +11 -4
  18. package/dist/es2019/plugins/table/ui/DragPreview/index.js +2 -0
  19. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +7 -9
  20. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +9 -11
  21. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +3 -5
  22. package/dist/es2019/plugins/table/ui/FloatingDragMenu/DragMenu.js +4 -6
  23. package/dist/es2019/plugins/table/ui/TableFloatingColumnControls/index.js +1 -4
  24. package/dist/es2019/plugins/table/utils/column-controls.js +62 -0
  25. package/dist/es2019/plugins/table/utils/index.js +1 -1
  26. package/dist/esm/plugins/table/event-handlers.js +11 -5
  27. package/dist/esm/plugins/table/toolbar.js +3 -5
  28. package/dist/esm/plugins/table/ui/ColumnResizeWidget/index.js +3 -5
  29. package/dist/esm/plugins/table/ui/DragHandle/index.js +11 -5
  30. package/dist/esm/plugins/table/ui/DragPreview/index.js +2 -0
  31. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +7 -9
  32. package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +9 -11
  33. package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +3 -5
  34. package/dist/esm/plugins/table/ui/FloatingDragMenu/DragMenu.js +4 -6
  35. package/dist/esm/plugins/table/ui/TableFloatingColumnControls/index.js +1 -4
  36. package/dist/esm/plugins/table/utils/column-controls.js +62 -0
  37. package/dist/esm/plugins/table/utils/index.js +1 -1
  38. package/dist/types/plugins/table/utils/column-controls.d.ts +3 -0
  39. package/dist/types/plugins/table/utils/index.d.ts +1 -1
  40. package/dist/types-ts4.5/plugins/table/utils/column-controls.d.ts +3 -0
  41. package/dist/types-ts4.5/plugins/table/utils/index.d.ts +1 -1
  42. package/package.json +4 -4
  43. package/src/__tests__/unit/utils/column-controls.ts +145 -1
  44. package/src/plugins/table/event-handlers.ts +22 -4
  45. package/src/plugins/table/ui/DragHandle/index.tsx +30 -21
  46. package/src/plugins/table/ui/TableFloatingColumnControls/index.tsx +1 -5
  47. package/src/plugins/table/utils/column-controls.ts +81 -0
  48. package/src/plugins/table/utils/index.ts +2 -0
  49. package/src/__tests__/integration/block-node-selection.ts +0 -165
@@ -1,165 +0,0 @@
1
- export {};
2
- it.todo('TODO: ED-15801 - Fix smart link async rendering integration test');
3
- // import { runBlockNodeSelectionTestSuite } from '@atlaskit/editor-test-helpers/integration/selection';
4
- //
5
- // runBlockNodeSelectionTestSuite({
6
- // nodeName: 'table',
7
- // editorOptions: {
8
- // allowTables: {
9
- // advanced: true,
10
- // },
11
- // },
12
- // selector: 'table',
13
- // adfNode: {
14
- // type: 'table',
15
- // attrs: {
16
- // isNumberColumnEnabled: false,
17
- // layout: 'default',
18
- // localId: '15804638-b946-4591-b64c-beffe5122733',
19
- // },
20
- // content: [
21
- // {
22
- // type: 'tableRow',
23
- // content: [
24
- // {
25
- // type: 'tableHeader',
26
- // attrs: {},
27
- // content: [
28
- // {
29
- // type: 'paragraph',
30
- // content: [],
31
- // },
32
- // ],
33
- // },
34
- // {
35
- // type: 'tableHeader',
36
- // attrs: {},
37
- // content: [
38
- // {
39
- // type: 'paragraph',
40
- // content: [],
41
- // },
42
- // ],
43
- // },
44
- // {
45
- // type: 'tableHeader',
46
- // attrs: {},
47
- // content: [
48
- // {
49
- // type: 'paragraph',
50
- // content: [],
51
- // },
52
- // ],
53
- // },
54
- // ],
55
- // },
56
- // {
57
- // type: 'tableRow',
58
- // content: [
59
- // {
60
- // type: 'tableCell',
61
- // attrs: {},
62
- // content: [
63
- // {
64
- // type: 'paragraph',
65
- // content: [],
66
- // },
67
- // ],
68
- // },
69
- // {
70
- // type: 'tableCell',
71
- // attrs: {},
72
- // content: [
73
- // {
74
- // type: 'paragraph',
75
- // content: [],
76
- // },
77
- // ],
78
- // },
79
- // {
80
- // type: 'tableCell',
81
- // attrs: {},
82
- // content: [
83
- // {
84
- // type: 'paragraph',
85
- // content: [],
86
- // },
87
- // ],
88
- // },
89
- // ],
90
- // },
91
- // {
92
- // type: 'tableRow',
93
- // content: [
94
- // {
95
- // type: 'tableCell',
96
- // attrs: {},
97
- // content: [
98
- // {
99
- // type: 'paragraph',
100
- // content: [],
101
- // },
102
- // ],
103
- // },
104
- // {
105
- // type: 'tableCell',
106
- // attrs: {},
107
- // content: [
108
- // {
109
- // type: 'paragraph',
110
- // content: [],
111
- // },
112
- // ],
113
- // },
114
- // {
115
- // type: 'tableCell',
116
- // attrs: {},
117
- // content: [
118
- // {
119
- // type: 'paragraph',
120
- // content: [],
121
- // },
122
- // ],
123
- // },
124
- // ],
125
- // },
126
- // ],
127
- // },
128
- // skipTests: {
129
- // 'Extend selection right two characters to select [block-node] from line above with shift + arrow right': [
130
- // 'chrome',
131
- // 'safari',
132
- // 'firefox',
133
- // ],
134
- // 'Extend selection left two characters to select [block-node] from line below with shift + arrow left': [
135
- // 'chrome',
136
- // 'safari',
137
- // 'firefox',
138
- // ],
139
- // 'Extend a selection from end of the document to the start when [block-node] is the first node': [
140
- // 'chrome',
141
- // 'safari',
142
- // 'firefox',
143
- // ],
144
- // 'Click and drag from the end to start of the document to select [block-node] when [block-node] is the first node': [
145
- // 'chrome',
146
- // 'safari',
147
- // 'firefox',
148
- // ],
149
- // 'Extend a selection to the end of the document from start when [block-node] is the last node': [
150
- // 'chrome',
151
- // 'safari',
152
- // 'firefox',
153
- // ],
154
- // 'Click and drag from start of the document to select [block-node] when [block-node] is the last node': [
155
- // 'chrome',
156
- // 'safari',
157
- // 'firefox',
158
- // ],
159
- // "Extend selection down by one line multiple times to select [block-node]'s in sequence with shift + arrow down": [
160
- // 'chrome',
161
- // 'safari',
162
- // 'firefox',
163
- // ],
164
- // },
165
- // });