@atlaskit/editor-plugin-table 0.0.1 → 0.0.3

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 (190) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/plugins/table/index.js +42 -15
  3. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/es2019/plugins/table/index.js +287 -255
  6. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/plugins/table/index.js +41 -15
  9. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  10. package/dist/esm/version.json +1 -1
  11. package/dist/types/plugins/table/index.d.ts +1 -2
  12. package/dist/types-ts4.0/index.d.ts +1 -0
  13. package/dist/types-ts4.0/plugins/plugin-key.d.ts +4 -0
  14. package/dist/types-ts4.0/plugins/table/commands/clear.d.ts +3 -0
  15. package/dist/types-ts4.0/plugins/table/commands/collapse.d.ts +2 -0
  16. package/dist/types-ts4.0/plugins/table/commands/go-to-next-cell.d.ts +4 -0
  17. package/dist/types-ts4.0/plugins/table/commands/hover.d.ts +8 -0
  18. package/dist/types-ts4.0/plugins/table/commands/index.d.ts +7 -0
  19. package/dist/types-ts4.0/plugins/table/commands/insert.d.ts +10 -0
  20. package/dist/types-ts4.0/plugins/table/commands/misc.d.ts +27 -0
  21. package/dist/types-ts4.0/plugins/table/commands/selection.d.ts +8 -0
  22. package/dist/types-ts4.0/plugins/table/commands/sort.d.ts +3 -0
  23. package/dist/types-ts4.0/plugins/table/commands/split-cell.d.ts +6 -0
  24. package/dist/types-ts4.0/plugins/table/commands/toggle.d.ts +12 -0
  25. package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +26 -0
  26. package/dist/types-ts4.0/plugins/table/create-plugin-config.d.ts +2 -0
  27. package/dist/types-ts4.0/plugins/table/event-handlers.d.ts +16 -0
  28. package/dist/types-ts4.0/plugins/table/handlers.d.ts +3 -0
  29. package/dist/types-ts4.0/plugins/table/index.d.ts +17 -0
  30. package/dist/types-ts4.0/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +26 -0
  31. package/dist/types-ts4.0/plugins/table/nodeviews/TableComponent.d.ts +72 -0
  32. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
  33. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
  34. package/dist/types-ts4.0/plugins/table/nodeviews/table.d.ts +31 -0
  35. package/dist/types-ts4.0/plugins/table/nodeviews/tableCell.d.ts +19 -0
  36. package/dist/types-ts4.0/plugins/table/nodeviews/types.d.ts +23 -0
  37. package/dist/types-ts4.0/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
  38. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
  39. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
  40. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
  41. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
  42. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
  43. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
  44. package/dist/types-ts4.0/plugins/table/pm-plugins/default-table-selection.d.ts +5 -0
  45. package/dist/types-ts4.0/plugins/table/pm-plugins/keymap.d.ts +5 -0
  46. package/dist/types-ts4.0/plugins/table/pm-plugins/main.d.ts +8 -0
  47. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
  48. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
  49. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +4 -0
  50. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
  51. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
  52. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
  53. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
  54. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +65 -0
  55. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
  56. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
  57. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
  58. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
  59. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
  60. package/dist/types-ts4.0/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
  61. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
  62. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
  63. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/index.d.ts +3 -0
  64. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
  65. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
  66. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
  67. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
  68. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +8 -0
  69. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
  70. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
  71. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
  72. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
  73. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
  74. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
  75. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
  76. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
  77. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
  78. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
  79. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
  80. package/dist/types-ts4.0/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
  81. package/dist/types-ts4.0/plugins/table/reducer.d.ts +3 -0
  82. package/dist/types-ts4.0/plugins/table/todo-stubs.d.ts +1 -0
  83. package/dist/types-ts4.0/plugins/table/toolbar.d.ts +36 -0
  84. package/dist/types-ts4.0/plugins/table/transforms/column-width.d.ts +18 -0
  85. package/dist/types-ts4.0/plugins/table/transforms/delete-columns.d.ts +3 -0
  86. package/dist/types-ts4.0/plugins/table/transforms/delete-rows.d.ts +3 -0
  87. package/dist/types-ts4.0/plugins/table/transforms/fix-tables.d.ts +10 -0
  88. package/dist/types-ts4.0/plugins/table/transforms/index.d.ts +7 -0
  89. package/dist/types-ts4.0/plugins/table/transforms/merge.d.ts +5 -0
  90. package/dist/types-ts4.0/plugins/table/transforms/metadata.d.ts +21 -0
  91. package/dist/types-ts4.0/plugins/table/transforms/replace-table.d.ts +5 -0
  92. package/dist/types-ts4.0/plugins/table/transforms/split.d.ts +9 -0
  93. package/dist/types-ts4.0/plugins/table/types.d.ts +328 -0
  94. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
  95. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -0
  96. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +87 -0
  97. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/index.d.ts +22 -0
  98. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
  99. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
  100. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
  101. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
  102. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
  103. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
  104. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
  105. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
  106. package/dist/types-ts4.0/plugins/table/ui/LayoutButton/index.d.ts +21 -0
  107. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +19 -0
  108. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
  109. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
  110. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
  111. package/dist/types-ts4.0/plugins/table/ui/common-styles.d.ts +4 -0
  112. package/dist/types-ts4.0/plugins/table/ui/consts.d.ts +39 -0
  113. package/dist/types-ts4.0/plugins/table/ui/messages.d.ts +38 -0
  114. package/dist/types-ts4.0/plugins/table/ui/ui-styles.d.ts +15 -0
  115. package/dist/types-ts4.0/plugins/table/utils/analytics.d.ts +18 -0
  116. package/dist/types-ts4.0/plugins/table/utils/collapse.d.ts +29 -0
  117. package/dist/types-ts4.0/plugins/table/utils/column-controls.d.ts +10 -0
  118. package/dist/types-ts4.0/plugins/table/utils/decoration.d.ts +16 -0
  119. package/dist/types-ts4.0/plugins/table/utils/dom.d.ts +20 -0
  120. package/dist/types-ts4.0/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
  121. package/dist/types-ts4.0/plugins/table/utils/index.d.ts +11 -0
  122. package/dist/types-ts4.0/plugins/table/utils/nodes.d.ts +12 -0
  123. package/dist/types-ts4.0/plugins/table/utils/paste.d.ts +14 -0
  124. package/dist/types-ts4.0/plugins/table/utils/referentiality.d.ts +2 -0
  125. package/dist/types-ts4.0/plugins/table/utils/row-controls.d.ts +16 -0
  126. package/dist/types-ts4.0/plugins/table/utils/selection.d.ts +6 -0
  127. package/dist/types-ts4.0/plugins/table/utils/table.d.ts +4 -0
  128. package/dist/types-ts4.0/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
  129. package/dist/types-ts4.0/plugins/table-plugin.d.ts +2 -0
  130. package/dist/types-ts4.0/types.d.ts +3 -0
  131. package/examples/99-testing.tsx +227 -0
  132. package/package.json +16 -3
  133. package/report.api.md +61 -24
  134. package/src/plugins/table/__tests__/integration/__fixtures__/auto-size-documents.ts +439 -0
  135. package/src/plugins/table/__tests__/integration/__fixtures__/basic-table.ts +120 -0
  136. package/src/plugins/table/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +396 -0
  137. package/src/plugins/table/__tests__/integration/__fixtures__/even-columns.ts +493 -0
  138. package/src/plugins/table/__tests__/integration/__fixtures__/layout-documents.ts +607 -0
  139. package/src/plugins/table/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +343 -0
  140. package/src/plugins/table/__tests__/integration/__fixtures__/nested-in-extension.ts +163 -0
  141. package/src/plugins/table/__tests__/integration/__fixtures__/paragraph-and-table-adf.json +130 -0
  142. package/src/plugins/table/__tests__/integration/__fixtures__/resize-documents.ts +1610 -0
  143. package/src/plugins/table/__tests__/integration/__fixtures__/scale.ts +825 -0
  144. package/src/plugins/table/__tests__/integration/__fixtures__/table-inside-layout.ts +145 -0
  145. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +175 -0
  146. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +168 -0
  147. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +216 -0
  148. package/src/plugins/table/__tests__/integration/__snapshots__/auto-size.ts.snap +609 -0
  149. package/src/plugins/table/__tests__/integration/__snapshots__/change-date-inside-table.ts.snap +173 -0
  150. package/src/plugins/table/__tests__/integration/__snapshots__/copy-button.ts.snap +421 -0
  151. package/src/plugins/table/__tests__/integration/__snapshots__/delete-columns.ts.snap +818 -0
  152. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +119 -0
  153. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +119 -0
  154. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +227 -0
  155. package/src/plugins/table/__tests__/integration/__snapshots__/delete-rows.ts.snap +959 -0
  156. package/src/plugins/table/__tests__/integration/__snapshots__/delete-table-when-selected.ts.snap +101 -0
  157. package/src/plugins/table/__tests__/integration/__snapshots__/deleting-empty-paragraph-under-table.ts.snap +502 -0
  158. package/src/plugins/table/__tests__/integration/__snapshots__/even-columns.ts.snap +645 -0
  159. package/src/plugins/table/__tests__/integration/__snapshots__/insert-cell-header-with-strong-mark.ts.snap +172 -0
  160. package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +238 -0
  161. package/src/plugins/table/__tests__/integration/__snapshots__/layout.ts.snap +1645 -0
  162. package/src/plugins/table/__tests__/integration/__snapshots__/resize.ts.snap +2674 -0
  163. package/src/plugins/table/__tests__/integration/__snapshots__/scale.ts.snap +1083 -0
  164. package/src/plugins/table/__tests__/integration/arrow-down-into-table.ts +38 -0
  165. package/src/plugins/table/__tests__/integration/auto-size.ts +87 -0
  166. package/src/plugins/table/__tests__/integration/block-node-selection.ts +162 -163
  167. package/src/plugins/table/__tests__/integration/cell-selection.ts +101 -0
  168. package/src/plugins/table/__tests__/integration/change-date-inside-table.ts +47 -0
  169. package/src/plugins/table/__tests__/integration/copy-button.ts +179 -0
  170. package/src/plugins/table/__tests__/integration/delete-columns.ts +95 -0
  171. package/src/plugins/table/__tests__/integration/delete-last-column-in-full-width.ts +70 -0
  172. package/src/plugins/table/__tests__/integration/delete-last-column-with-empty-action.ts +58 -0
  173. package/src/plugins/table/__tests__/integration/delete-last-row-with-empty-action.ts +97 -0
  174. package/src/plugins/table/__tests__/integration/delete-rows.ts +122 -0
  175. package/src/plugins/table/__tests__/integration/delete-table-when-selected.ts +110 -0
  176. package/src/plugins/table/__tests__/integration/deleting-empty-paragraph-under-table.ts +86 -0
  177. package/src/plugins/table/__tests__/integration/even-columns.ts +72 -0
  178. package/src/plugins/table/__tests__/integration/insert-cell-header-with-strong-mark.ts +40 -0
  179. package/src/plugins/table/__tests__/integration/insert-long-smart-link.ts +52 -0
  180. package/src/plugins/table/__tests__/integration/insert-row-inside-layout.ts +47 -0
  181. package/src/plugins/table/__tests__/integration/layout.ts +224 -0
  182. package/src/plugins/table/__tests__/integration/resize-handler.ts +101 -0
  183. package/src/plugins/table/__tests__/integration/resize.ts +342 -0
  184. package/src/plugins/table/__tests__/integration/scale.ts +67 -0
  185. package/src/plugins/table/__tests__/integration/table-controls-selection.ts +70 -0
  186. package/src/plugins/table/__tests__/unit/commands/insert.ts +0 -1
  187. package/src/plugins/table/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +2 -0
  188. package/src/plugins/table/index.tsx +322 -295
  189. package/src/plugins/table/ui/FloatingContextualButton/index.tsx +2 -2
  190. package/types/package.json +8 -1
@@ -0,0 +1,645 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Should even columns and remain overflown on double click on resize handle when table is selected 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
+ },
13
+ "content": Array [
14
+ Object {
15
+ "content": Array [
16
+ Object {
17
+ "attrs": Object {
18
+ "background": null,
19
+ "colspan": 1,
20
+ "colwidth": Array [
21
+ 119,
22
+ ],
23
+ "rowspan": 1,
24
+ },
25
+ "content": Array [
26
+ Object {
27
+ "type": "paragraph",
28
+ },
29
+ ],
30
+ "type": "tableHeader",
31
+ },
32
+ Object {
33
+ "attrs": Object {
34
+ "background": null,
35
+ "colspan": 1,
36
+ "colwidth": Array [
37
+ 113,
38
+ ],
39
+ "rowspan": 1,
40
+ },
41
+ "content": Array [
42
+ Object {
43
+ "type": "paragraph",
44
+ },
45
+ ],
46
+ "type": "tableHeader",
47
+ },
48
+ Object {
49
+ "attrs": Object {
50
+ "background": null,
51
+ "colspan": 1,
52
+ "colwidth": Array [
53
+ 113,
54
+ ],
55
+ "rowspan": 1,
56
+ },
57
+ "content": Array [
58
+ Object {
59
+ "type": "paragraph",
60
+ },
61
+ ],
62
+ "type": "tableHeader",
63
+ },
64
+ Object {
65
+ "attrs": Object {
66
+ "background": null,
67
+ "colspan": 1,
68
+ "colwidth": Array [
69
+ 113,
70
+ ],
71
+ "rowspan": 1,
72
+ },
73
+ "content": Array [
74
+ Object {
75
+ "type": "paragraph",
76
+ },
77
+ ],
78
+ "type": "tableHeader",
79
+ },
80
+ Object {
81
+ "attrs": Object {
82
+ "background": null,
83
+ "colspan": 1,
84
+ "colwidth": Array [
85
+ 113,
86
+ ],
87
+ "rowspan": 1,
88
+ },
89
+ "content": Array [
90
+ Object {
91
+ "type": "paragraph",
92
+ },
93
+ ],
94
+ "type": "tableHeader",
95
+ },
96
+ Object {
97
+ "attrs": Object {
98
+ "background": null,
99
+ "colspan": 1,
100
+ "colwidth": Array [
101
+ 113,
102
+ ],
103
+ "rowspan": 1,
104
+ },
105
+ "content": Array [
106
+ Object {
107
+ "type": "paragraph",
108
+ },
109
+ ],
110
+ "type": "tableHeader",
111
+ },
112
+ Object {
113
+ "attrs": Object {
114
+ "background": null,
115
+ "colspan": 1,
116
+ "colwidth": Array [
117
+ 113,
118
+ ],
119
+ "rowspan": 1,
120
+ },
121
+ "content": Array [
122
+ Object {
123
+ "type": "paragraph",
124
+ },
125
+ ],
126
+ "type": "tableHeader",
127
+ },
128
+ ],
129
+ "type": "tableRow",
130
+ },
131
+ Object {
132
+ "content": Array [
133
+ Object {
134
+ "attrs": Object {
135
+ "background": null,
136
+ "colspan": 1,
137
+ "colwidth": Array [
138
+ 119,
139
+ ],
140
+ "rowspan": 1,
141
+ },
142
+ "content": Array [
143
+ Object {
144
+ "type": "paragraph",
145
+ },
146
+ ],
147
+ "type": "tableCell",
148
+ },
149
+ Object {
150
+ "attrs": Object {
151
+ "background": null,
152
+ "colspan": 1,
153
+ "colwidth": Array [
154
+ 113,
155
+ ],
156
+ "rowspan": 1,
157
+ },
158
+ "content": Array [
159
+ Object {
160
+ "type": "paragraph",
161
+ },
162
+ ],
163
+ "type": "tableCell",
164
+ },
165
+ Object {
166
+ "attrs": Object {
167
+ "background": null,
168
+ "colspan": 1,
169
+ "colwidth": Array [
170
+ 113,
171
+ ],
172
+ "rowspan": 1,
173
+ },
174
+ "content": Array [
175
+ Object {
176
+ "type": "paragraph",
177
+ },
178
+ ],
179
+ "type": "tableCell",
180
+ },
181
+ Object {
182
+ "attrs": Object {
183
+ "background": null,
184
+ "colspan": 1,
185
+ "colwidth": Array [
186
+ 113,
187
+ ],
188
+ "rowspan": 1,
189
+ },
190
+ "content": Array [
191
+ Object {
192
+ "type": "paragraph",
193
+ },
194
+ ],
195
+ "type": "tableCell",
196
+ },
197
+ Object {
198
+ "attrs": Object {
199
+ "background": null,
200
+ "colspan": 1,
201
+ "colwidth": Array [
202
+ 113,
203
+ ],
204
+ "rowspan": 1,
205
+ },
206
+ "content": Array [
207
+ Object {
208
+ "type": "paragraph",
209
+ },
210
+ ],
211
+ "type": "tableCell",
212
+ },
213
+ Object {
214
+ "attrs": Object {
215
+ "background": null,
216
+ "colspan": 1,
217
+ "colwidth": Array [
218
+ 113,
219
+ ],
220
+ "rowspan": 1,
221
+ },
222
+ "content": Array [
223
+ Object {
224
+ "type": "paragraph",
225
+ },
226
+ ],
227
+ "type": "tableCell",
228
+ },
229
+ Object {
230
+ "attrs": Object {
231
+ "background": null,
232
+ "colspan": 1,
233
+ "colwidth": Array [
234
+ 113,
235
+ ],
236
+ "rowspan": 1,
237
+ },
238
+ "content": Array [
239
+ Object {
240
+ "type": "paragraph",
241
+ },
242
+ ],
243
+ "type": "tableCell",
244
+ },
245
+ ],
246
+ "type": "tableRow",
247
+ },
248
+ Object {
249
+ "content": Array [
250
+ Object {
251
+ "attrs": Object {
252
+ "background": null,
253
+ "colspan": 1,
254
+ "colwidth": Array [
255
+ 119,
256
+ ],
257
+ "rowspan": 1,
258
+ },
259
+ "content": Array [
260
+ Object {
261
+ "type": "paragraph",
262
+ },
263
+ ],
264
+ "type": "tableCell",
265
+ },
266
+ Object {
267
+ "attrs": Object {
268
+ "background": null,
269
+ "colspan": 1,
270
+ "colwidth": Array [
271
+ 113,
272
+ ],
273
+ "rowspan": 1,
274
+ },
275
+ "content": Array [
276
+ Object {
277
+ "type": "paragraph",
278
+ },
279
+ ],
280
+ "type": "tableCell",
281
+ },
282
+ Object {
283
+ "attrs": Object {
284
+ "background": null,
285
+ "colspan": 1,
286
+ "colwidth": Array [
287
+ 113,
288
+ ],
289
+ "rowspan": 1,
290
+ },
291
+ "content": Array [
292
+ Object {
293
+ "type": "paragraph",
294
+ },
295
+ ],
296
+ "type": "tableCell",
297
+ },
298
+ Object {
299
+ "attrs": Object {
300
+ "background": null,
301
+ "colspan": 1,
302
+ "colwidth": Array [
303
+ 113,
304
+ ],
305
+ "rowspan": 1,
306
+ },
307
+ "content": Array [
308
+ Object {
309
+ "type": "paragraph",
310
+ },
311
+ ],
312
+ "type": "tableCell",
313
+ },
314
+ Object {
315
+ "attrs": Object {
316
+ "background": null,
317
+ "colspan": 1,
318
+ "colwidth": Array [
319
+ 113,
320
+ ],
321
+ "rowspan": 1,
322
+ },
323
+ "content": Array [
324
+ Object {
325
+ "type": "paragraph",
326
+ },
327
+ ],
328
+ "type": "tableCell",
329
+ },
330
+ Object {
331
+ "attrs": Object {
332
+ "background": null,
333
+ "colspan": 1,
334
+ "colwidth": Array [
335
+ 113,
336
+ ],
337
+ "rowspan": 1,
338
+ },
339
+ "content": Array [
340
+ Object {
341
+ "type": "paragraph",
342
+ },
343
+ ],
344
+ "type": "tableCell",
345
+ },
346
+ Object {
347
+ "attrs": Object {
348
+ "background": null,
349
+ "colspan": 1,
350
+ "colwidth": Array [
351
+ 113,
352
+ ],
353
+ "rowspan": 1,
354
+ },
355
+ "content": Array [
356
+ Object {
357
+ "type": "paragraph",
358
+ },
359
+ ],
360
+ "type": "tableCell",
361
+ },
362
+ ],
363
+ "type": "tableRow",
364
+ },
365
+ ],
366
+ "type": "table",
367
+ },
368
+ ],
369
+ "type": "doc",
370
+ }
371
+ `;
372
+
373
+ exports[`Should even columns on double click on resize handle when table is selected 1`] = `
374
+ Object {
375
+ "content": Array [
376
+ Object {
377
+ "attrs": Object {
378
+ "__autoSize": false,
379
+ "isNumberColumnEnabled": false,
380
+ "layout": "default",
381
+ "localId": "abc-123",
382
+ },
383
+ "content": Array [
384
+ Object {
385
+ "content": Array [
386
+ Object {
387
+ "attrs": Object {
388
+ "background": null,
389
+ "colspan": 1,
390
+ "colwidth": Array [
391
+ 152,
392
+ ],
393
+ "rowspan": 1,
394
+ },
395
+ "content": Array [
396
+ Object {
397
+ "type": "paragraph",
398
+ },
399
+ ],
400
+ "type": "tableHeader",
401
+ },
402
+ Object {
403
+ "attrs": Object {
404
+ "background": null,
405
+ "colspan": 1,
406
+ "colwidth": Array [
407
+ 152,
408
+ ],
409
+ "rowspan": 1,
410
+ },
411
+ "content": Array [
412
+ Object {
413
+ "type": "paragraph",
414
+ },
415
+ ],
416
+ "type": "tableHeader",
417
+ },
418
+ Object {
419
+ "attrs": Object {
420
+ "background": null,
421
+ "colspan": 1,
422
+ "colwidth": Array [
423
+ 152,
424
+ ],
425
+ "rowspan": 1,
426
+ },
427
+ "content": Array [
428
+ Object {
429
+ "type": "paragraph",
430
+ },
431
+ ],
432
+ "type": "tableHeader",
433
+ },
434
+ Object {
435
+ "attrs": Object {
436
+ "background": null,
437
+ "colspan": 1,
438
+ "colwidth": Array [
439
+ 152,
440
+ ],
441
+ "rowspan": 1,
442
+ },
443
+ "content": Array [
444
+ Object {
445
+ "type": "paragraph",
446
+ },
447
+ ],
448
+ "type": "tableHeader",
449
+ },
450
+ Object {
451
+ "attrs": Object {
452
+ "background": null,
453
+ "colspan": 1,
454
+ "colwidth": Array [
455
+ 152,
456
+ ],
457
+ "rowspan": 1,
458
+ },
459
+ "content": Array [
460
+ Object {
461
+ "type": "paragraph",
462
+ },
463
+ ],
464
+ "type": "tableHeader",
465
+ },
466
+ ],
467
+ "type": "tableRow",
468
+ },
469
+ Object {
470
+ "content": Array [
471
+ Object {
472
+ "attrs": Object {
473
+ "background": null,
474
+ "colspan": 1,
475
+ "colwidth": Array [
476
+ 152,
477
+ ],
478
+ "rowspan": 1,
479
+ },
480
+ "content": Array [
481
+ Object {
482
+ "type": "paragraph",
483
+ },
484
+ ],
485
+ "type": "tableCell",
486
+ },
487
+ Object {
488
+ "attrs": Object {
489
+ "background": null,
490
+ "colspan": 1,
491
+ "colwidth": Array [
492
+ 152,
493
+ ],
494
+ "rowspan": 1,
495
+ },
496
+ "content": Array [
497
+ Object {
498
+ "type": "paragraph",
499
+ },
500
+ ],
501
+ "type": "tableCell",
502
+ },
503
+ Object {
504
+ "attrs": Object {
505
+ "background": null,
506
+ "colspan": 1,
507
+ "colwidth": Array [
508
+ 152,
509
+ ],
510
+ "rowspan": 1,
511
+ },
512
+ "content": Array [
513
+ Object {
514
+ "type": "paragraph",
515
+ },
516
+ ],
517
+ "type": "tableCell",
518
+ },
519
+ Object {
520
+ "attrs": Object {
521
+ "background": null,
522
+ "colspan": 1,
523
+ "colwidth": Array [
524
+ 152,
525
+ ],
526
+ "rowspan": 1,
527
+ },
528
+ "content": Array [
529
+ Object {
530
+ "type": "paragraph",
531
+ },
532
+ ],
533
+ "type": "tableCell",
534
+ },
535
+ Object {
536
+ "attrs": Object {
537
+ "background": null,
538
+ "colspan": 1,
539
+ "colwidth": Array [
540
+ 152,
541
+ ],
542
+ "rowspan": 1,
543
+ },
544
+ "content": Array [
545
+ Object {
546
+ "type": "paragraph",
547
+ },
548
+ ],
549
+ "type": "tableCell",
550
+ },
551
+ ],
552
+ "type": "tableRow",
553
+ },
554
+ Object {
555
+ "content": Array [
556
+ Object {
557
+ "attrs": Object {
558
+ "background": null,
559
+ "colspan": 1,
560
+ "colwidth": Array [
561
+ 152,
562
+ ],
563
+ "rowspan": 1,
564
+ },
565
+ "content": Array [
566
+ Object {
567
+ "type": "paragraph",
568
+ },
569
+ ],
570
+ "type": "tableCell",
571
+ },
572
+ Object {
573
+ "attrs": Object {
574
+ "background": null,
575
+ "colspan": 1,
576
+ "colwidth": Array [
577
+ 152,
578
+ ],
579
+ "rowspan": 1,
580
+ },
581
+ "content": Array [
582
+ Object {
583
+ "type": "paragraph",
584
+ },
585
+ ],
586
+ "type": "tableCell",
587
+ },
588
+ Object {
589
+ "attrs": Object {
590
+ "background": null,
591
+ "colspan": 1,
592
+ "colwidth": Array [
593
+ 152,
594
+ ],
595
+ "rowspan": 1,
596
+ },
597
+ "content": Array [
598
+ Object {
599
+ "type": "paragraph",
600
+ },
601
+ ],
602
+ "type": "tableCell",
603
+ },
604
+ Object {
605
+ "attrs": Object {
606
+ "background": null,
607
+ "colspan": 1,
608
+ "colwidth": Array [
609
+ 152,
610
+ ],
611
+ "rowspan": 1,
612
+ },
613
+ "content": Array [
614
+ Object {
615
+ "type": "paragraph",
616
+ },
617
+ ],
618
+ "type": "tableCell",
619
+ },
620
+ Object {
621
+ "attrs": Object {
622
+ "background": null,
623
+ "colspan": 1,
624
+ "colwidth": Array [
625
+ 152,
626
+ ],
627
+ "rowspan": 1,
628
+ },
629
+ "content": Array [
630
+ Object {
631
+ "type": "paragraph",
632
+ },
633
+ ],
634
+ "type": "tableCell",
635
+ },
636
+ ],
637
+ "type": "tableRow",
638
+ },
639
+ ],
640
+ "type": "table",
641
+ },
642
+ ],
643
+ "type": "doc",
644
+ }
645
+ `;