@atlaskit/editor-plugin-table 0.0.2 → 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 (182) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  7. package/dist/esm/version.json +1 -1
  8. package/dist/types-ts4.0/index.d.ts +1 -0
  9. package/dist/types-ts4.0/plugins/plugin-key.d.ts +4 -0
  10. package/dist/types-ts4.0/plugins/table/commands/clear.d.ts +3 -0
  11. package/dist/types-ts4.0/plugins/table/commands/collapse.d.ts +2 -0
  12. package/dist/types-ts4.0/plugins/table/commands/go-to-next-cell.d.ts +4 -0
  13. package/dist/types-ts4.0/plugins/table/commands/hover.d.ts +8 -0
  14. package/dist/types-ts4.0/plugins/table/commands/index.d.ts +7 -0
  15. package/dist/types-ts4.0/plugins/table/commands/insert.d.ts +10 -0
  16. package/dist/types-ts4.0/plugins/table/commands/misc.d.ts +27 -0
  17. package/dist/types-ts4.0/plugins/table/commands/selection.d.ts +8 -0
  18. package/dist/types-ts4.0/plugins/table/commands/sort.d.ts +3 -0
  19. package/dist/types-ts4.0/plugins/table/commands/split-cell.d.ts +6 -0
  20. package/dist/types-ts4.0/plugins/table/commands/toggle.d.ts +12 -0
  21. package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +26 -0
  22. package/dist/types-ts4.0/plugins/table/create-plugin-config.d.ts +2 -0
  23. package/dist/types-ts4.0/plugins/table/event-handlers.d.ts +16 -0
  24. package/dist/types-ts4.0/plugins/table/handlers.d.ts +3 -0
  25. package/dist/types-ts4.0/plugins/table/index.d.ts +17 -0
  26. package/dist/types-ts4.0/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +26 -0
  27. package/dist/types-ts4.0/plugins/table/nodeviews/TableComponent.d.ts +72 -0
  28. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
  29. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
  30. package/dist/types-ts4.0/plugins/table/nodeviews/table.d.ts +31 -0
  31. package/dist/types-ts4.0/plugins/table/nodeviews/tableCell.d.ts +19 -0
  32. package/dist/types-ts4.0/plugins/table/nodeviews/types.d.ts +23 -0
  33. package/dist/types-ts4.0/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
  34. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
  35. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
  36. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
  37. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
  38. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
  39. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
  40. package/dist/types-ts4.0/plugins/table/pm-plugins/default-table-selection.d.ts +5 -0
  41. package/dist/types-ts4.0/plugins/table/pm-plugins/keymap.d.ts +5 -0
  42. package/dist/types-ts4.0/plugins/table/pm-plugins/main.d.ts +8 -0
  43. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
  44. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
  45. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +4 -0
  46. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
  47. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
  48. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
  49. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
  50. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +65 -0
  51. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
  52. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
  53. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
  54. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
  55. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
  56. package/dist/types-ts4.0/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
  57. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
  58. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
  59. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/index.d.ts +3 -0
  60. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
  61. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
  62. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
  63. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
  64. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +8 -0
  65. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
  66. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
  67. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
  68. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
  69. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
  70. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
  71. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
  72. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
  73. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
  74. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
  75. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
  76. package/dist/types-ts4.0/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
  77. package/dist/types-ts4.0/plugins/table/reducer.d.ts +3 -0
  78. package/dist/types-ts4.0/plugins/table/todo-stubs.d.ts +1 -0
  79. package/dist/types-ts4.0/plugins/table/toolbar.d.ts +36 -0
  80. package/dist/types-ts4.0/plugins/table/transforms/column-width.d.ts +18 -0
  81. package/dist/types-ts4.0/plugins/table/transforms/delete-columns.d.ts +3 -0
  82. package/dist/types-ts4.0/plugins/table/transforms/delete-rows.d.ts +3 -0
  83. package/dist/types-ts4.0/plugins/table/transforms/fix-tables.d.ts +10 -0
  84. package/dist/types-ts4.0/plugins/table/transforms/index.d.ts +7 -0
  85. package/dist/types-ts4.0/plugins/table/transforms/merge.d.ts +5 -0
  86. package/dist/types-ts4.0/plugins/table/transforms/metadata.d.ts +21 -0
  87. package/dist/types-ts4.0/plugins/table/transforms/replace-table.d.ts +5 -0
  88. package/dist/types-ts4.0/plugins/table/transforms/split.d.ts +9 -0
  89. package/dist/types-ts4.0/plugins/table/types.d.ts +328 -0
  90. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
  91. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -0
  92. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +87 -0
  93. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/index.d.ts +22 -0
  94. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
  95. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
  96. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
  97. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
  98. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
  99. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
  100. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
  101. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
  102. package/dist/types-ts4.0/plugins/table/ui/LayoutButton/index.d.ts +21 -0
  103. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +19 -0
  104. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
  105. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
  106. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
  107. package/dist/types-ts4.0/plugins/table/ui/common-styles.d.ts +4 -0
  108. package/dist/types-ts4.0/plugins/table/ui/consts.d.ts +39 -0
  109. package/dist/types-ts4.0/plugins/table/ui/messages.d.ts +38 -0
  110. package/dist/types-ts4.0/plugins/table/ui/ui-styles.d.ts +15 -0
  111. package/dist/types-ts4.0/plugins/table/utils/analytics.d.ts +18 -0
  112. package/dist/types-ts4.0/plugins/table/utils/collapse.d.ts +29 -0
  113. package/dist/types-ts4.0/plugins/table/utils/column-controls.d.ts +10 -0
  114. package/dist/types-ts4.0/plugins/table/utils/decoration.d.ts +16 -0
  115. package/dist/types-ts4.0/plugins/table/utils/dom.d.ts +20 -0
  116. package/dist/types-ts4.0/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
  117. package/dist/types-ts4.0/plugins/table/utils/index.d.ts +11 -0
  118. package/dist/types-ts4.0/plugins/table/utils/nodes.d.ts +12 -0
  119. package/dist/types-ts4.0/plugins/table/utils/paste.d.ts +14 -0
  120. package/dist/types-ts4.0/plugins/table/utils/referentiality.d.ts +2 -0
  121. package/dist/types-ts4.0/plugins/table/utils/row-controls.d.ts +16 -0
  122. package/dist/types-ts4.0/plugins/table/utils/selection.d.ts +6 -0
  123. package/dist/types-ts4.0/plugins/table/utils/table.d.ts +4 -0
  124. package/dist/types-ts4.0/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
  125. package/dist/types-ts4.0/plugins/table-plugin.d.ts +2 -0
  126. package/dist/types-ts4.0/types.d.ts +3 -0
  127. package/examples/99-testing.tsx +227 -0
  128. package/package.json +16 -3
  129. package/src/plugins/table/__tests__/integration/__fixtures__/auto-size-documents.ts +439 -0
  130. package/src/plugins/table/__tests__/integration/__fixtures__/basic-table.ts +120 -0
  131. package/src/plugins/table/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +396 -0
  132. package/src/plugins/table/__tests__/integration/__fixtures__/even-columns.ts +493 -0
  133. package/src/plugins/table/__tests__/integration/__fixtures__/layout-documents.ts +607 -0
  134. package/src/plugins/table/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +343 -0
  135. package/src/plugins/table/__tests__/integration/__fixtures__/nested-in-extension.ts +163 -0
  136. package/src/plugins/table/__tests__/integration/__fixtures__/paragraph-and-table-adf.json +130 -0
  137. package/src/plugins/table/__tests__/integration/__fixtures__/resize-documents.ts +1610 -0
  138. package/src/plugins/table/__tests__/integration/__fixtures__/scale.ts +825 -0
  139. package/src/plugins/table/__tests__/integration/__fixtures__/table-inside-layout.ts +145 -0
  140. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +175 -0
  141. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +168 -0
  142. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +216 -0
  143. package/src/plugins/table/__tests__/integration/__snapshots__/auto-size.ts.snap +609 -0
  144. package/src/plugins/table/__tests__/integration/__snapshots__/change-date-inside-table.ts.snap +173 -0
  145. package/src/plugins/table/__tests__/integration/__snapshots__/copy-button.ts.snap +421 -0
  146. package/src/plugins/table/__tests__/integration/__snapshots__/delete-columns.ts.snap +818 -0
  147. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +119 -0
  148. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +119 -0
  149. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +227 -0
  150. package/src/plugins/table/__tests__/integration/__snapshots__/delete-rows.ts.snap +959 -0
  151. package/src/plugins/table/__tests__/integration/__snapshots__/delete-table-when-selected.ts.snap +101 -0
  152. package/src/plugins/table/__tests__/integration/__snapshots__/deleting-empty-paragraph-under-table.ts.snap +502 -0
  153. package/src/plugins/table/__tests__/integration/__snapshots__/even-columns.ts.snap +645 -0
  154. package/src/plugins/table/__tests__/integration/__snapshots__/insert-cell-header-with-strong-mark.ts.snap +172 -0
  155. package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +238 -0
  156. package/src/plugins/table/__tests__/integration/__snapshots__/layout.ts.snap +1645 -0
  157. package/src/plugins/table/__tests__/integration/__snapshots__/resize.ts.snap +2674 -0
  158. package/src/plugins/table/__tests__/integration/__snapshots__/scale.ts.snap +1083 -0
  159. package/src/plugins/table/__tests__/integration/arrow-down-into-table.ts +38 -0
  160. package/src/plugins/table/__tests__/integration/auto-size.ts +87 -0
  161. package/src/plugins/table/__tests__/integration/block-node-selection.ts +162 -163
  162. package/src/plugins/table/__tests__/integration/cell-selection.ts +101 -0
  163. package/src/plugins/table/__tests__/integration/change-date-inside-table.ts +47 -0
  164. package/src/plugins/table/__tests__/integration/copy-button.ts +179 -0
  165. package/src/plugins/table/__tests__/integration/delete-columns.ts +95 -0
  166. package/src/plugins/table/__tests__/integration/delete-last-column-in-full-width.ts +70 -0
  167. package/src/plugins/table/__tests__/integration/delete-last-column-with-empty-action.ts +58 -0
  168. package/src/plugins/table/__tests__/integration/delete-last-row-with-empty-action.ts +97 -0
  169. package/src/plugins/table/__tests__/integration/delete-rows.ts +122 -0
  170. package/src/plugins/table/__tests__/integration/delete-table-when-selected.ts +110 -0
  171. package/src/plugins/table/__tests__/integration/deleting-empty-paragraph-under-table.ts +86 -0
  172. package/src/plugins/table/__tests__/integration/even-columns.ts +72 -0
  173. package/src/plugins/table/__tests__/integration/insert-cell-header-with-strong-mark.ts +40 -0
  174. package/src/plugins/table/__tests__/integration/insert-long-smart-link.ts +52 -0
  175. package/src/plugins/table/__tests__/integration/insert-row-inside-layout.ts +47 -0
  176. package/src/plugins/table/__tests__/integration/layout.ts +224 -0
  177. package/src/plugins/table/__tests__/integration/resize-handler.ts +101 -0
  178. package/src/plugins/table/__tests__/integration/resize.ts +342 -0
  179. package/src/plugins/table/__tests__/integration/scale.ts +67 -0
  180. package/src/plugins/table/__tests__/integration/table-controls-selection.ts +70 -0
  181. package/src/plugins/table/ui/FloatingContextualButton/index.tsx +2 -2
  182. package/types/package.json +8 -1
@@ -0,0 +1,1083 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Should scale remaining columns when adding a new column preventing from going to overflow 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
+ 48,
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
+ 48,
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
+ 48,
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
+ 48,
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
+ 48,
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
+ 140,
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
+ 48,
118
+ ],
119
+ "rowspan": 1,
120
+ },
121
+ "content": Array [
122
+ Object {
123
+ "type": "paragraph",
124
+ },
125
+ ],
126
+ "type": "tableHeader",
127
+ },
128
+ Object {
129
+ "attrs": Object {
130
+ "background": null,
131
+ "colspan": 1,
132
+ "colwidth": Array [
133
+ 48,
134
+ ],
135
+ "rowspan": 1,
136
+ },
137
+ "content": Array [
138
+ Object {
139
+ "type": "paragraph",
140
+ },
141
+ ],
142
+ "type": "tableHeader",
143
+ },
144
+ Object {
145
+ "attrs": Object {
146
+ "background": null,
147
+ "colspan": 1,
148
+ "colwidth": Array [
149
+ 48,
150
+ ],
151
+ "rowspan": 1,
152
+ },
153
+ "content": Array [
154
+ Object {
155
+ "type": "paragraph",
156
+ },
157
+ ],
158
+ "type": "tableHeader",
159
+ },
160
+ Object {
161
+ "attrs": Object {
162
+ "background": null,
163
+ "colspan": 1,
164
+ "colwidth": Array [
165
+ 48,
166
+ ],
167
+ "rowspan": 1,
168
+ },
169
+ "content": Array [
170
+ Object {
171
+ "type": "paragraph",
172
+ },
173
+ ],
174
+ "type": "tableHeader",
175
+ },
176
+ Object {
177
+ "attrs": Object {
178
+ "background": null,
179
+ "colspan": 1,
180
+ "colwidth": Array [
181
+ 48,
182
+ ],
183
+ "rowspan": 1,
184
+ },
185
+ "content": Array [
186
+ Object {
187
+ "type": "paragraph",
188
+ },
189
+ ],
190
+ "type": "tableHeader",
191
+ },
192
+ Object {
193
+ "attrs": Object {
194
+ "background": null,
195
+ "colspan": 1,
196
+ "colwidth": Array [
197
+ 48,
198
+ ],
199
+ "rowspan": 1,
200
+ },
201
+ "content": Array [
202
+ Object {
203
+ "type": "paragraph",
204
+ },
205
+ ],
206
+ "type": "tableHeader",
207
+ },
208
+ Object {
209
+ "attrs": Object {
210
+ "background": null,
211
+ "colspan": 1,
212
+ "colwidth": Array [
213
+ 48,
214
+ ],
215
+ "rowspan": 1,
216
+ },
217
+ "content": Array [
218
+ Object {
219
+ "type": "paragraph",
220
+ },
221
+ ],
222
+ "type": "tableHeader",
223
+ },
224
+ Object {
225
+ "attrs": Object {
226
+ "background": null,
227
+ "colspan": 1,
228
+ "colwidth": Array [
229
+ 48,
230
+ ],
231
+ "rowspan": 1,
232
+ },
233
+ "content": Array [
234
+ Object {
235
+ "type": "paragraph",
236
+ },
237
+ ],
238
+ "type": "tableHeader",
239
+ },
240
+ ],
241
+ "type": "tableRow",
242
+ },
243
+ Object {
244
+ "content": Array [
245
+ Object {
246
+ "attrs": Object {
247
+ "background": null,
248
+ "colspan": 1,
249
+ "colwidth": Array [
250
+ 48,
251
+ ],
252
+ "rowspan": 1,
253
+ },
254
+ "content": Array [
255
+ Object {
256
+ "type": "paragraph",
257
+ },
258
+ ],
259
+ "type": "tableCell",
260
+ },
261
+ Object {
262
+ "attrs": Object {
263
+ "background": null,
264
+ "colspan": 1,
265
+ "colwidth": Array [
266
+ 48,
267
+ ],
268
+ "rowspan": 1,
269
+ },
270
+ "content": Array [
271
+ Object {
272
+ "type": "paragraph",
273
+ },
274
+ ],
275
+ "type": "tableCell",
276
+ },
277
+ Object {
278
+ "attrs": Object {
279
+ "background": null,
280
+ "colspan": 1,
281
+ "colwidth": Array [
282
+ 48,
283
+ ],
284
+ "rowspan": 1,
285
+ },
286
+ "content": Array [
287
+ Object {
288
+ "type": "paragraph",
289
+ },
290
+ ],
291
+ "type": "tableCell",
292
+ },
293
+ Object {
294
+ "attrs": Object {
295
+ "background": null,
296
+ "colspan": 1,
297
+ "colwidth": Array [
298
+ 48,
299
+ ],
300
+ "rowspan": 1,
301
+ },
302
+ "content": Array [
303
+ Object {
304
+ "type": "paragraph",
305
+ },
306
+ ],
307
+ "type": "tableCell",
308
+ },
309
+ Object {
310
+ "attrs": Object {
311
+ "background": null,
312
+ "colspan": 1,
313
+ "colwidth": Array [
314
+ 48,
315
+ ],
316
+ "rowspan": 1,
317
+ },
318
+ "content": Array [
319
+ Object {
320
+ "type": "paragraph",
321
+ },
322
+ ],
323
+ "type": "tableCell",
324
+ },
325
+ Object {
326
+ "attrs": Object {
327
+ "background": null,
328
+ "colspan": 1,
329
+ "colwidth": Array [
330
+ 140,
331
+ ],
332
+ "rowspan": 1,
333
+ },
334
+ "content": Array [
335
+ Object {
336
+ "type": "paragraph",
337
+ },
338
+ ],
339
+ "type": "tableCell",
340
+ },
341
+ Object {
342
+ "attrs": Object {
343
+ "background": null,
344
+ "colspan": 1,
345
+ "colwidth": Array [
346
+ 48,
347
+ ],
348
+ "rowspan": 1,
349
+ },
350
+ "content": Array [
351
+ Object {
352
+ "type": "paragraph",
353
+ },
354
+ ],
355
+ "type": "tableCell",
356
+ },
357
+ Object {
358
+ "attrs": Object {
359
+ "background": null,
360
+ "colspan": 1,
361
+ "colwidth": Array [
362
+ 48,
363
+ ],
364
+ "rowspan": 1,
365
+ },
366
+ "content": Array [
367
+ Object {
368
+ "type": "paragraph",
369
+ },
370
+ ],
371
+ "type": "tableCell",
372
+ },
373
+ Object {
374
+ "attrs": Object {
375
+ "background": null,
376
+ "colspan": 1,
377
+ "colwidth": Array [
378
+ 48,
379
+ ],
380
+ "rowspan": 1,
381
+ },
382
+ "content": Array [
383
+ Object {
384
+ "type": "paragraph",
385
+ },
386
+ ],
387
+ "type": "tableCell",
388
+ },
389
+ Object {
390
+ "attrs": Object {
391
+ "background": null,
392
+ "colspan": 1,
393
+ "colwidth": Array [
394
+ 48,
395
+ ],
396
+ "rowspan": 1,
397
+ },
398
+ "content": Array [
399
+ Object {
400
+ "type": "paragraph",
401
+ },
402
+ ],
403
+ "type": "tableCell",
404
+ },
405
+ Object {
406
+ "attrs": Object {
407
+ "background": null,
408
+ "colspan": 1,
409
+ "colwidth": Array [
410
+ 48,
411
+ ],
412
+ "rowspan": 1,
413
+ },
414
+ "content": Array [
415
+ Object {
416
+ "type": "paragraph",
417
+ },
418
+ ],
419
+ "type": "tableCell",
420
+ },
421
+ Object {
422
+ "attrs": Object {
423
+ "background": null,
424
+ "colspan": 1,
425
+ "colwidth": Array [
426
+ 48,
427
+ ],
428
+ "rowspan": 1,
429
+ },
430
+ "content": Array [
431
+ Object {
432
+ "type": "paragraph",
433
+ },
434
+ ],
435
+ "type": "tableCell",
436
+ },
437
+ Object {
438
+ "attrs": Object {
439
+ "background": null,
440
+ "colspan": 1,
441
+ "colwidth": Array [
442
+ 48,
443
+ ],
444
+ "rowspan": 1,
445
+ },
446
+ "content": Array [
447
+ Object {
448
+ "type": "paragraph",
449
+ },
450
+ ],
451
+ "type": "tableCell",
452
+ },
453
+ Object {
454
+ "attrs": Object {
455
+ "background": null,
456
+ "colspan": 1,
457
+ "colwidth": Array [
458
+ 48,
459
+ ],
460
+ "rowspan": 1,
461
+ },
462
+ "content": Array [
463
+ Object {
464
+ "type": "paragraph",
465
+ },
466
+ ],
467
+ "type": "tableCell",
468
+ },
469
+ ],
470
+ "type": "tableRow",
471
+ },
472
+ Object {
473
+ "content": Array [
474
+ Object {
475
+ "attrs": Object {
476
+ "background": null,
477
+ "colspan": 1,
478
+ "colwidth": Array [
479
+ 48,
480
+ ],
481
+ "rowspan": 1,
482
+ },
483
+ "content": Array [
484
+ Object {
485
+ "type": "paragraph",
486
+ },
487
+ ],
488
+ "type": "tableCell",
489
+ },
490
+ Object {
491
+ "attrs": Object {
492
+ "background": null,
493
+ "colspan": 1,
494
+ "colwidth": Array [
495
+ 48,
496
+ ],
497
+ "rowspan": 1,
498
+ },
499
+ "content": Array [
500
+ Object {
501
+ "type": "paragraph",
502
+ },
503
+ ],
504
+ "type": "tableCell",
505
+ },
506
+ Object {
507
+ "attrs": Object {
508
+ "background": null,
509
+ "colspan": 1,
510
+ "colwidth": Array [
511
+ 48,
512
+ ],
513
+ "rowspan": 1,
514
+ },
515
+ "content": Array [
516
+ Object {
517
+ "type": "paragraph",
518
+ },
519
+ ],
520
+ "type": "tableCell",
521
+ },
522
+ Object {
523
+ "attrs": Object {
524
+ "background": null,
525
+ "colspan": 1,
526
+ "colwidth": Array [
527
+ 48,
528
+ ],
529
+ "rowspan": 1,
530
+ },
531
+ "content": Array [
532
+ Object {
533
+ "type": "paragraph",
534
+ },
535
+ ],
536
+ "type": "tableCell",
537
+ },
538
+ Object {
539
+ "attrs": Object {
540
+ "background": null,
541
+ "colspan": 1,
542
+ "colwidth": Array [
543
+ 48,
544
+ ],
545
+ "rowspan": 1,
546
+ },
547
+ "content": Array [
548
+ Object {
549
+ "type": "paragraph",
550
+ },
551
+ ],
552
+ "type": "tableCell",
553
+ },
554
+ Object {
555
+ "attrs": Object {
556
+ "background": null,
557
+ "colspan": 1,
558
+ "colwidth": Array [
559
+ 140,
560
+ ],
561
+ "rowspan": 1,
562
+ },
563
+ "content": Array [
564
+ Object {
565
+ "type": "paragraph",
566
+ },
567
+ ],
568
+ "type": "tableCell",
569
+ },
570
+ Object {
571
+ "attrs": Object {
572
+ "background": null,
573
+ "colspan": 1,
574
+ "colwidth": Array [
575
+ 48,
576
+ ],
577
+ "rowspan": 1,
578
+ },
579
+ "content": Array [
580
+ Object {
581
+ "type": "paragraph",
582
+ },
583
+ ],
584
+ "type": "tableCell",
585
+ },
586
+ Object {
587
+ "attrs": Object {
588
+ "background": null,
589
+ "colspan": 1,
590
+ "colwidth": Array [
591
+ 48,
592
+ ],
593
+ "rowspan": 1,
594
+ },
595
+ "content": Array [
596
+ Object {
597
+ "type": "paragraph",
598
+ },
599
+ ],
600
+ "type": "tableCell",
601
+ },
602
+ Object {
603
+ "attrs": Object {
604
+ "background": null,
605
+ "colspan": 1,
606
+ "colwidth": Array [
607
+ 48,
608
+ ],
609
+ "rowspan": 1,
610
+ },
611
+ "content": Array [
612
+ Object {
613
+ "type": "paragraph",
614
+ },
615
+ ],
616
+ "type": "tableCell",
617
+ },
618
+ Object {
619
+ "attrs": Object {
620
+ "background": null,
621
+ "colspan": 1,
622
+ "colwidth": Array [
623
+ 48,
624
+ ],
625
+ "rowspan": 1,
626
+ },
627
+ "content": Array [
628
+ Object {
629
+ "type": "paragraph",
630
+ },
631
+ ],
632
+ "type": "tableCell",
633
+ },
634
+ Object {
635
+ "attrs": Object {
636
+ "background": null,
637
+ "colspan": 1,
638
+ "colwidth": Array [
639
+ 48,
640
+ ],
641
+ "rowspan": 1,
642
+ },
643
+ "content": Array [
644
+ Object {
645
+ "type": "paragraph",
646
+ },
647
+ ],
648
+ "type": "tableCell",
649
+ },
650
+ Object {
651
+ "attrs": Object {
652
+ "background": null,
653
+ "colspan": 1,
654
+ "colwidth": Array [
655
+ 48,
656
+ ],
657
+ "rowspan": 1,
658
+ },
659
+ "content": Array [
660
+ Object {
661
+ "type": "paragraph",
662
+ },
663
+ ],
664
+ "type": "tableCell",
665
+ },
666
+ Object {
667
+ "attrs": Object {
668
+ "background": null,
669
+ "colspan": 1,
670
+ "colwidth": Array [
671
+ 48,
672
+ ],
673
+ "rowspan": 1,
674
+ },
675
+ "content": Array [
676
+ Object {
677
+ "type": "paragraph",
678
+ },
679
+ ],
680
+ "type": "tableCell",
681
+ },
682
+ Object {
683
+ "attrs": Object {
684
+ "background": null,
685
+ "colspan": 1,
686
+ "colwidth": Array [
687
+ 48,
688
+ ],
689
+ "rowspan": 1,
690
+ },
691
+ "content": Array [
692
+ Object {
693
+ "type": "paragraph",
694
+ },
695
+ ],
696
+ "type": "tableCell",
697
+ },
698
+ ],
699
+ "type": "tableRow",
700
+ },
701
+ ],
702
+ "type": "table",
703
+ },
704
+ Object {
705
+ "type": "paragraph",
706
+ },
707
+ ],
708
+ "type": "doc",
709
+ }
710
+ `;
711
+
712
+ exports[`Should scale remaining columns when deleting a column recovering table from overflow 1`] = `
713
+ Object {
714
+ "content": Array [
715
+ Object {
716
+ "attrs": Object {
717
+ "__autoSize": false,
718
+ "isNumberColumnEnabled": false,
719
+ "layout": "default",
720
+ "localId": "abc-123",
721
+ },
722
+ "content": Array [
723
+ Object {
724
+ "content": Array [
725
+ Object {
726
+ "attrs": Object {
727
+ "background": null,
728
+ "colspan": 1,
729
+ "colwidth": Array [
730
+ 199,
731
+ ],
732
+ "rowspan": 1,
733
+ },
734
+ "content": Array [
735
+ Object {
736
+ "type": "paragraph",
737
+ },
738
+ ],
739
+ "type": "tableHeader",
740
+ },
741
+ Object {
742
+ "attrs": Object {
743
+ "background": null,
744
+ "colspan": 1,
745
+ "colwidth": Array [
746
+ 305,
747
+ ],
748
+ "rowspan": 1,
749
+ },
750
+ "content": Array [
751
+ Object {
752
+ "type": "paragraph",
753
+ },
754
+ ],
755
+ "type": "tableHeader",
756
+ },
757
+ Object {
758
+ "attrs": Object {
759
+ "background": null,
760
+ "colspan": 1,
761
+ "colwidth": Array [
762
+ 48,
763
+ ],
764
+ "rowspan": 1,
765
+ },
766
+ "content": Array [
767
+ Object {
768
+ "type": "paragraph",
769
+ },
770
+ ],
771
+ "type": "tableHeader",
772
+ },
773
+ Object {
774
+ "attrs": Object {
775
+ "background": null,
776
+ "colspan": 1,
777
+ "colwidth": Array [
778
+ 48,
779
+ ],
780
+ "rowspan": 1,
781
+ },
782
+ "content": Array [
783
+ Object {
784
+ "type": "paragraph",
785
+ },
786
+ ],
787
+ "type": "tableHeader",
788
+ },
789
+ Object {
790
+ "attrs": Object {
791
+ "background": null,
792
+ "colspan": 1,
793
+ "colwidth": Array [
794
+ 48,
795
+ ],
796
+ "rowspan": 1,
797
+ },
798
+ "content": Array [
799
+ Object {
800
+ "type": "paragraph",
801
+ },
802
+ ],
803
+ "type": "tableHeader",
804
+ },
805
+ Object {
806
+ "attrs": Object {
807
+ "background": null,
808
+ "colspan": 1,
809
+ "colwidth": Array [
810
+ 48,
811
+ ],
812
+ "rowspan": 1,
813
+ },
814
+ "content": Array [
815
+ Object {
816
+ "type": "paragraph",
817
+ },
818
+ ],
819
+ "type": "tableHeader",
820
+ },
821
+ Object {
822
+ "attrs": Object {
823
+ "background": null,
824
+ "colspan": 1,
825
+ "colwidth": Array [
826
+ 48,
827
+ ],
828
+ "rowspan": 1,
829
+ },
830
+ "content": Array [
831
+ Object {
832
+ "type": "paragraph",
833
+ },
834
+ ],
835
+ "type": "tableHeader",
836
+ },
837
+ ],
838
+ "type": "tableRow",
839
+ },
840
+ Object {
841
+ "content": Array [
842
+ Object {
843
+ "attrs": Object {
844
+ "background": null,
845
+ "colspan": 1,
846
+ "colwidth": Array [
847
+ 199,
848
+ ],
849
+ "rowspan": 1,
850
+ },
851
+ "content": Array [
852
+ Object {
853
+ "type": "paragraph",
854
+ },
855
+ ],
856
+ "type": "tableCell",
857
+ },
858
+ Object {
859
+ "attrs": Object {
860
+ "background": null,
861
+ "colspan": 1,
862
+ "colwidth": Array [
863
+ 305,
864
+ ],
865
+ "rowspan": 1,
866
+ },
867
+ "content": Array [
868
+ Object {
869
+ "type": "paragraph",
870
+ },
871
+ ],
872
+ "type": "tableCell",
873
+ },
874
+ Object {
875
+ "attrs": Object {
876
+ "background": null,
877
+ "colspan": 1,
878
+ "colwidth": Array [
879
+ 48,
880
+ ],
881
+ "rowspan": 1,
882
+ },
883
+ "content": Array [
884
+ Object {
885
+ "type": "paragraph",
886
+ },
887
+ ],
888
+ "type": "tableCell",
889
+ },
890
+ Object {
891
+ "attrs": Object {
892
+ "background": null,
893
+ "colspan": 1,
894
+ "colwidth": Array [
895
+ 48,
896
+ ],
897
+ "rowspan": 1,
898
+ },
899
+ "content": Array [
900
+ Object {
901
+ "type": "paragraph",
902
+ },
903
+ ],
904
+ "type": "tableCell",
905
+ },
906
+ Object {
907
+ "attrs": Object {
908
+ "background": null,
909
+ "colspan": 1,
910
+ "colwidth": Array [
911
+ 48,
912
+ ],
913
+ "rowspan": 1,
914
+ },
915
+ "content": Array [
916
+ Object {
917
+ "type": "paragraph",
918
+ },
919
+ ],
920
+ "type": "tableCell",
921
+ },
922
+ Object {
923
+ "attrs": Object {
924
+ "background": null,
925
+ "colspan": 1,
926
+ "colwidth": Array [
927
+ 48,
928
+ ],
929
+ "rowspan": 1,
930
+ },
931
+ "content": Array [
932
+ Object {
933
+ "type": "paragraph",
934
+ },
935
+ ],
936
+ "type": "tableCell",
937
+ },
938
+ Object {
939
+ "attrs": Object {
940
+ "background": null,
941
+ "colspan": 1,
942
+ "colwidth": Array [
943
+ 48,
944
+ ],
945
+ "rowspan": 1,
946
+ },
947
+ "content": Array [
948
+ Object {
949
+ "type": "paragraph",
950
+ },
951
+ ],
952
+ "type": "tableCell",
953
+ },
954
+ ],
955
+ "type": "tableRow",
956
+ },
957
+ Object {
958
+ "content": Array [
959
+ Object {
960
+ "attrs": Object {
961
+ "background": null,
962
+ "colspan": 1,
963
+ "colwidth": Array [
964
+ 199,
965
+ ],
966
+ "rowspan": 1,
967
+ },
968
+ "content": Array [
969
+ Object {
970
+ "type": "paragraph",
971
+ },
972
+ ],
973
+ "type": "tableCell",
974
+ },
975
+ Object {
976
+ "attrs": Object {
977
+ "background": null,
978
+ "colspan": 1,
979
+ "colwidth": Array [
980
+ 305,
981
+ ],
982
+ "rowspan": 1,
983
+ },
984
+ "content": Array [
985
+ Object {
986
+ "type": "paragraph",
987
+ },
988
+ ],
989
+ "type": "tableCell",
990
+ },
991
+ Object {
992
+ "attrs": Object {
993
+ "background": null,
994
+ "colspan": 1,
995
+ "colwidth": Array [
996
+ 48,
997
+ ],
998
+ "rowspan": 1,
999
+ },
1000
+ "content": Array [
1001
+ Object {
1002
+ "type": "paragraph",
1003
+ },
1004
+ ],
1005
+ "type": "tableCell",
1006
+ },
1007
+ Object {
1008
+ "attrs": Object {
1009
+ "background": null,
1010
+ "colspan": 1,
1011
+ "colwidth": Array [
1012
+ 48,
1013
+ ],
1014
+ "rowspan": 1,
1015
+ },
1016
+ "content": Array [
1017
+ Object {
1018
+ "type": "paragraph",
1019
+ },
1020
+ ],
1021
+ "type": "tableCell",
1022
+ },
1023
+ Object {
1024
+ "attrs": Object {
1025
+ "background": null,
1026
+ "colspan": 1,
1027
+ "colwidth": Array [
1028
+ 48,
1029
+ ],
1030
+ "rowspan": 1,
1031
+ },
1032
+ "content": Array [
1033
+ Object {
1034
+ "type": "paragraph",
1035
+ },
1036
+ ],
1037
+ "type": "tableCell",
1038
+ },
1039
+ Object {
1040
+ "attrs": Object {
1041
+ "background": null,
1042
+ "colspan": 1,
1043
+ "colwidth": Array [
1044
+ 48,
1045
+ ],
1046
+ "rowspan": 1,
1047
+ },
1048
+ "content": Array [
1049
+ Object {
1050
+ "type": "paragraph",
1051
+ },
1052
+ ],
1053
+ "type": "tableCell",
1054
+ },
1055
+ Object {
1056
+ "attrs": Object {
1057
+ "background": null,
1058
+ "colspan": 1,
1059
+ "colwidth": Array [
1060
+ 48,
1061
+ ],
1062
+ "rowspan": 1,
1063
+ },
1064
+ "content": Array [
1065
+ Object {
1066
+ "type": "paragraph",
1067
+ },
1068
+ ],
1069
+ "type": "tableCell",
1070
+ },
1071
+ ],
1072
+ "type": "tableRow",
1073
+ },
1074
+ ],
1075
+ "type": "table",
1076
+ },
1077
+ Object {
1078
+ "type": "paragraph",
1079
+ },
1080
+ ],
1081
+ "type": "doc",
1082
+ }
1083
+ `;