@atlaskit/editor-plugin-table 0.0.2 → 0.0.4

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 (186) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/table/index.js +5 -1
  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 +3 -4
  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 +5 -4
  9. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  10. package/dist/esm/version.json +1 -1
  11. package/dist/types-ts4.0/index.d.ts +1 -0
  12. package/dist/types-ts4.0/plugins/plugin-key.d.ts +4 -0
  13. package/dist/types-ts4.0/plugins/table/commands/clear.d.ts +3 -0
  14. package/dist/types-ts4.0/plugins/table/commands/collapse.d.ts +2 -0
  15. package/dist/types-ts4.0/plugins/table/commands/go-to-next-cell.d.ts +4 -0
  16. package/dist/types-ts4.0/plugins/table/commands/hover.d.ts +8 -0
  17. package/dist/types-ts4.0/plugins/table/commands/index.d.ts +7 -0
  18. package/dist/types-ts4.0/plugins/table/commands/insert.d.ts +10 -0
  19. package/dist/types-ts4.0/plugins/table/commands/misc.d.ts +27 -0
  20. package/dist/types-ts4.0/plugins/table/commands/selection.d.ts +8 -0
  21. package/dist/types-ts4.0/plugins/table/commands/sort.d.ts +3 -0
  22. package/dist/types-ts4.0/plugins/table/commands/split-cell.d.ts +6 -0
  23. package/dist/types-ts4.0/plugins/table/commands/toggle.d.ts +12 -0
  24. package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +26 -0
  25. package/dist/types-ts4.0/plugins/table/create-plugin-config.d.ts +2 -0
  26. package/dist/types-ts4.0/plugins/table/event-handlers.d.ts +16 -0
  27. package/dist/types-ts4.0/plugins/table/handlers.d.ts +3 -0
  28. package/dist/types-ts4.0/plugins/table/index.d.ts +17 -0
  29. package/dist/types-ts4.0/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +26 -0
  30. package/dist/types-ts4.0/plugins/table/nodeviews/TableComponent.d.ts +72 -0
  31. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
  32. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
  33. package/dist/types-ts4.0/plugins/table/nodeviews/table.d.ts +31 -0
  34. package/dist/types-ts4.0/plugins/table/nodeviews/tableCell.d.ts +19 -0
  35. package/dist/types-ts4.0/plugins/table/nodeviews/types.d.ts +23 -0
  36. package/dist/types-ts4.0/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
  37. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
  38. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
  39. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
  40. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
  41. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
  42. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
  43. package/dist/types-ts4.0/plugins/table/pm-plugins/default-table-selection.d.ts +5 -0
  44. package/dist/types-ts4.0/plugins/table/pm-plugins/keymap.d.ts +5 -0
  45. package/dist/types-ts4.0/plugins/table/pm-plugins/main.d.ts +8 -0
  46. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
  47. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
  48. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +4 -0
  49. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
  50. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
  51. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
  52. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
  53. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +65 -0
  54. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
  55. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
  56. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
  57. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
  58. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
  59. package/dist/types-ts4.0/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
  60. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
  61. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
  62. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/index.d.ts +3 -0
  63. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
  64. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
  65. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
  66. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
  67. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +8 -0
  68. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
  69. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
  70. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
  71. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
  72. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
  73. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
  74. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
  75. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
  76. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
  77. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
  78. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
  79. package/dist/types-ts4.0/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
  80. package/dist/types-ts4.0/plugins/table/reducer.d.ts +3 -0
  81. package/dist/types-ts4.0/plugins/table/todo-stubs.d.ts +1 -0
  82. package/dist/types-ts4.0/plugins/table/toolbar.d.ts +36 -0
  83. package/dist/types-ts4.0/plugins/table/transforms/column-width.d.ts +18 -0
  84. package/dist/types-ts4.0/plugins/table/transforms/delete-columns.d.ts +3 -0
  85. package/dist/types-ts4.0/plugins/table/transforms/delete-rows.d.ts +3 -0
  86. package/dist/types-ts4.0/plugins/table/transforms/fix-tables.d.ts +10 -0
  87. package/dist/types-ts4.0/plugins/table/transforms/index.d.ts +7 -0
  88. package/dist/types-ts4.0/plugins/table/transforms/merge.d.ts +5 -0
  89. package/dist/types-ts4.0/plugins/table/transforms/metadata.d.ts +21 -0
  90. package/dist/types-ts4.0/plugins/table/transforms/replace-table.d.ts +5 -0
  91. package/dist/types-ts4.0/plugins/table/transforms/split.d.ts +9 -0
  92. package/dist/types-ts4.0/plugins/table/types.d.ts +328 -0
  93. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
  94. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -0
  95. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +87 -0
  96. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/index.d.ts +22 -0
  97. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
  98. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
  99. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
  100. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
  101. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
  102. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
  103. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
  104. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
  105. package/dist/types-ts4.0/plugins/table/ui/LayoutButton/index.d.ts +21 -0
  106. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +19 -0
  107. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
  108. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
  109. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
  110. package/dist/types-ts4.0/plugins/table/ui/common-styles.d.ts +4 -0
  111. package/dist/types-ts4.0/plugins/table/ui/consts.d.ts +39 -0
  112. package/dist/types-ts4.0/plugins/table/ui/messages.d.ts +38 -0
  113. package/dist/types-ts4.0/plugins/table/ui/ui-styles.d.ts +15 -0
  114. package/dist/types-ts4.0/plugins/table/utils/analytics.d.ts +18 -0
  115. package/dist/types-ts4.0/plugins/table/utils/collapse.d.ts +29 -0
  116. package/dist/types-ts4.0/plugins/table/utils/column-controls.d.ts +10 -0
  117. package/dist/types-ts4.0/plugins/table/utils/decoration.d.ts +16 -0
  118. package/dist/types-ts4.0/plugins/table/utils/dom.d.ts +20 -0
  119. package/dist/types-ts4.0/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
  120. package/dist/types-ts4.0/plugins/table/utils/index.d.ts +11 -0
  121. package/dist/types-ts4.0/plugins/table/utils/nodes.d.ts +12 -0
  122. package/dist/types-ts4.0/plugins/table/utils/paste.d.ts +14 -0
  123. package/dist/types-ts4.0/plugins/table/utils/referentiality.d.ts +2 -0
  124. package/dist/types-ts4.0/plugins/table/utils/row-controls.d.ts +16 -0
  125. package/dist/types-ts4.0/plugins/table/utils/selection.d.ts +6 -0
  126. package/dist/types-ts4.0/plugins/table/utils/table.d.ts +4 -0
  127. package/dist/types-ts4.0/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
  128. package/dist/types-ts4.0/plugins/table-plugin.d.ts +2 -0
  129. package/dist/types-ts4.0/types.d.ts +3 -0
  130. package/examples/99-testing.tsx +227 -0
  131. package/package.json +18 -5
  132. package/src/plugins/table/__tests__/integration/__fixtures__/auto-size-documents.ts +439 -0
  133. package/src/plugins/table/__tests__/integration/__fixtures__/basic-table.ts +120 -0
  134. package/src/plugins/table/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +396 -0
  135. package/src/plugins/table/__tests__/integration/__fixtures__/even-columns.ts +493 -0
  136. package/src/plugins/table/__tests__/integration/__fixtures__/layout-documents.ts +607 -0
  137. package/src/plugins/table/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +343 -0
  138. package/src/plugins/table/__tests__/integration/__fixtures__/nested-in-extension.ts +163 -0
  139. package/src/plugins/table/__tests__/integration/__fixtures__/paragraph-and-table-adf.json +130 -0
  140. package/src/plugins/table/__tests__/integration/__fixtures__/resize-documents.ts +1610 -0
  141. package/src/plugins/table/__tests__/integration/__fixtures__/scale.ts +825 -0
  142. package/src/plugins/table/__tests__/integration/__fixtures__/table-inside-layout.ts +145 -0
  143. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +175 -0
  144. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +168 -0
  145. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +216 -0
  146. package/src/plugins/table/__tests__/integration/__snapshots__/auto-size.ts.snap +609 -0
  147. package/src/plugins/table/__tests__/integration/__snapshots__/change-date-inside-table.ts.snap +173 -0
  148. package/src/plugins/table/__tests__/integration/__snapshots__/copy-button.ts.snap +421 -0
  149. package/src/plugins/table/__tests__/integration/__snapshots__/delete-columns.ts.snap +818 -0
  150. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +119 -0
  151. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +119 -0
  152. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +227 -0
  153. package/src/plugins/table/__tests__/integration/__snapshots__/delete-rows.ts.snap +959 -0
  154. package/src/plugins/table/__tests__/integration/__snapshots__/delete-table-when-selected.ts.snap +101 -0
  155. package/src/plugins/table/__tests__/integration/__snapshots__/deleting-empty-paragraph-under-table.ts.snap +502 -0
  156. package/src/plugins/table/__tests__/integration/__snapshots__/even-columns.ts.snap +645 -0
  157. package/src/plugins/table/__tests__/integration/__snapshots__/insert-cell-header-with-strong-mark.ts.snap +172 -0
  158. package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +238 -0
  159. package/src/plugins/table/__tests__/integration/__snapshots__/layout.ts.snap +1645 -0
  160. package/src/plugins/table/__tests__/integration/__snapshots__/resize.ts.snap +2674 -0
  161. package/src/plugins/table/__tests__/integration/__snapshots__/scale.ts.snap +1083 -0
  162. package/src/plugins/table/__tests__/integration/arrow-down-into-table.ts +38 -0
  163. package/src/plugins/table/__tests__/integration/auto-size.ts +87 -0
  164. package/src/plugins/table/__tests__/integration/block-node-selection.ts +162 -163
  165. package/src/plugins/table/__tests__/integration/cell-selection.ts +101 -0
  166. package/src/plugins/table/__tests__/integration/change-date-inside-table.ts +47 -0
  167. package/src/plugins/table/__tests__/integration/copy-button.ts +179 -0
  168. package/src/plugins/table/__tests__/integration/delete-columns.ts +95 -0
  169. package/src/plugins/table/__tests__/integration/delete-last-column-in-full-width.ts +70 -0
  170. package/src/plugins/table/__tests__/integration/delete-last-column-with-empty-action.ts +58 -0
  171. package/src/plugins/table/__tests__/integration/delete-last-row-with-empty-action.ts +97 -0
  172. package/src/plugins/table/__tests__/integration/delete-rows.ts +122 -0
  173. package/src/plugins/table/__tests__/integration/delete-table-when-selected.ts +110 -0
  174. package/src/plugins/table/__tests__/integration/deleting-empty-paragraph-under-table.ts +86 -0
  175. package/src/plugins/table/__tests__/integration/even-columns.ts +72 -0
  176. package/src/plugins/table/__tests__/integration/insert-cell-header-with-strong-mark.ts +40 -0
  177. package/src/plugins/table/__tests__/integration/insert-long-smart-link.ts +52 -0
  178. package/src/plugins/table/__tests__/integration/insert-row-inside-layout.ts +47 -0
  179. package/src/plugins/table/__tests__/integration/layout.ts +224 -0
  180. package/src/plugins/table/__tests__/integration/resize-handler.ts +101 -0
  181. package/src/plugins/table/__tests__/integration/resize.ts +342 -0
  182. package/src/plugins/table/__tests__/integration/scale.ts +67 -0
  183. package/src/plugins/table/__tests__/integration/table-controls-selection.ts +70 -0
  184. package/src/plugins/table/index.tsx +3 -3
  185. package/src/plugins/table/ui/FloatingContextualButton/index.tsx +2 -2
  186. package/types/package.json +8 -1
@@ -0,0 +1,2674 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Can resize normally on a full width table with content 1`] = `
4
+ Object {
5
+ "content": Array [
6
+ Object {
7
+ "attrs": Object {
8
+ "__autoSize": false,
9
+ "isNumberColumnEnabled": true,
10
+ "layout": "full-width",
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
+ 768,
22
+ ],
23
+ "rowspan": 1,
24
+ },
25
+ "content": Array [
26
+ Object {
27
+ "content": Array [
28
+ Object {
29
+ "text": "Steps to reproduce and screenshots",
30
+ "type": "text",
31
+ },
32
+ ],
33
+ "type": "paragraph",
34
+ },
35
+ ],
36
+ "type": "tableHeader",
37
+ },
38
+ Object {
39
+ "attrs": Object {
40
+ "background": null,
41
+ "colspan": 1,
42
+ "colwidth": Array [
43
+ 988,
44
+ ],
45
+ "rowspan": 1,
46
+ },
47
+ "content": Array [
48
+ Object {
49
+ "content": Array [
50
+ Object {
51
+ "text": "Priority",
52
+ "type": "text",
53
+ },
54
+ ],
55
+ "type": "paragraph",
56
+ },
57
+ ],
58
+ "type": "tableHeader",
59
+ },
60
+ ],
61
+ "type": "tableRow",
62
+ },
63
+ Object {
64
+ "content": Array [
65
+ Object {
66
+ "attrs": Object {
67
+ "background": null,
68
+ "colspan": 1,
69
+ "colwidth": Array [
70
+ 768,
71
+ ],
72
+ "rowspan": 1,
73
+ },
74
+ "content": Array [
75
+ Object {
76
+ "content": Array [
77
+ Object {
78
+ "text": "Possible to create a blank link",
79
+ "type": "text",
80
+ },
81
+ ],
82
+ "type": "paragraph",
83
+ },
84
+ Object {
85
+ "content": Array [
86
+ Object {
87
+ "text": "Steps to reproduce:",
88
+ "type": "text",
89
+ },
90
+ Object {
91
+ "type": "hardBreak",
92
+ },
93
+ Object {
94
+ "text": "1. Use markdown for a URL",
95
+ "type": "text",
96
+ },
97
+ Object {
98
+ "type": "hardBreak",
99
+ },
100
+ Object {
101
+ "text": "2. Paste a jira link in for the href and immediately close the bracket to complete the markdown",
102
+ "type": "text",
103
+ },
104
+ ],
105
+ "type": "paragraph",
106
+ },
107
+ Object {
108
+ "content": Array [
109
+ Object {
110
+ "text": "Expected behaviour",
111
+ "type": "text",
112
+ },
113
+ Object {
114
+ "type": "hardBreak",
115
+ },
116
+ Object {
117
+ "text": "markdown for URL works correctly? or smartcard overrides it?",
118
+ "type": "text",
119
+ },
120
+ ],
121
+ "type": "paragraph",
122
+ },
123
+ Object {
124
+ "content": Array [
125
+ Object {
126
+ "text": "Actual behaviour",
127
+ "type": "text",
128
+ },
129
+ Object {
130
+ "type": "hardBreak",
131
+ },
132
+ Object {
133
+ "text": "Smartcard link for Jira is still being processed and is entered as the value for the markdown for the URL ",
134
+ "type": "text",
135
+ },
136
+ Object {
137
+ "attrs": Object {
138
+ "id": "atlassian-question_mark",
139
+ "shortName": ":question:",
140
+ "text": ":question:",
141
+ },
142
+ "type": "emoji",
143
+ },
144
+ Object {
145
+ "type": "hardBreak",
146
+ },
147
+ Object {
148
+ "text": "URL ends up pointing to the confluence edit link but without a page ID so 404s",
149
+ "type": "text",
150
+ },
151
+ ],
152
+ "type": "paragraph",
153
+ },
154
+ ],
155
+ "type": "tableCell",
156
+ },
157
+ Object {
158
+ "attrs": Object {
159
+ "background": null,
160
+ "colspan": 1,
161
+ "colwidth": Array [
162
+ 988,
163
+ ],
164
+ "rowspan": 1,
165
+ },
166
+ "content": Array [
167
+ Object {
168
+ "content": Array [
169
+ Object {
170
+ "text": "Papercut",
171
+ "type": "text",
172
+ },
173
+ ],
174
+ "type": "paragraph",
175
+ },
176
+ ],
177
+ "type": "tableCell",
178
+ },
179
+ ],
180
+ "type": "tableRow",
181
+ },
182
+ Object {
183
+ "content": Array [
184
+ Object {
185
+ "attrs": Object {
186
+ "background": null,
187
+ "colspan": 1,
188
+ "colwidth": Array [
189
+ 768,
190
+ ],
191
+ "rowspan": 1,
192
+ },
193
+ "content": Array [
194
+ Object {
195
+ "content": Array [
196
+ Object {
197
+ "text": "Publishing somewhat big pages doesn't really provide any indication to the user that their page is actually being published and they're going to be navigated away",
198
+ "type": "text",
199
+ },
200
+ ],
201
+ "type": "paragraph",
202
+ },
203
+ ],
204
+ "type": "tableCell",
205
+ },
206
+ Object {
207
+ "attrs": Object {
208
+ "background": null,
209
+ "colspan": 1,
210
+ "colwidth": Array [
211
+ 988,
212
+ ],
213
+ "rowspan": 1,
214
+ },
215
+ "content": Array [
216
+ Object {
217
+ "content": Array [
218
+ Object {
219
+ "text": "Papercut",
220
+ "type": "text",
221
+ },
222
+ ],
223
+ "type": "paragraph",
224
+ },
225
+ ],
226
+ "type": "tableCell",
227
+ },
228
+ ],
229
+ "type": "tableRow",
230
+ },
231
+ ],
232
+ "type": "table",
233
+ },
234
+ Object {
235
+ "type": "paragraph",
236
+ },
237
+ ],
238
+ "type": "doc",
239
+ }
240
+ `;
241
+
242
+ exports[`Can resize normally with a rowspan and colspan 1`] = `
243
+ Object {
244
+ "content": Array [
245
+ Object {
246
+ "attrs": Object {
247
+ "__autoSize": false,
248
+ "isNumberColumnEnabled": false,
249
+ "layout": "default",
250
+ "localId": "abc-123",
251
+ },
252
+ "content": Array [
253
+ Object {
254
+ "content": Array [
255
+ Object {
256
+ "attrs": Object {
257
+ "background": null,
258
+ "colspan": 1,
259
+ "colwidth": Array [
260
+ 79,
261
+ ],
262
+ "rowspan": 1,
263
+ },
264
+ "content": Array [
265
+ Object {
266
+ "type": "paragraph",
267
+ },
268
+ ],
269
+ "type": "tableHeader",
270
+ },
271
+ Object {
272
+ "attrs": Object {
273
+ "background": null,
274
+ "colspan": 2,
275
+ "colwidth": Array [
276
+ 422,
277
+ 178,
278
+ ],
279
+ "rowspan": 1,
280
+ },
281
+ "content": Array [
282
+ Object {
283
+ "type": "paragraph",
284
+ },
285
+ ],
286
+ "type": "tableHeader",
287
+ },
288
+ ],
289
+ "type": "tableRow",
290
+ },
291
+ Object {
292
+ "content": Array [
293
+ Object {
294
+ "attrs": Object {
295
+ "background": null,
296
+ "colspan": 3,
297
+ "colwidth": Array [
298
+ 79,
299
+ 422,
300
+ 178,
301
+ ],
302
+ "rowspan": 1,
303
+ },
304
+ "content": Array [
305
+ Object {
306
+ "type": "paragraph",
307
+ },
308
+ ],
309
+ "type": "tableCell",
310
+ },
311
+ ],
312
+ "type": "tableRow",
313
+ },
314
+ Object {
315
+ "content": Array [
316
+ Object {
317
+ "attrs": Object {
318
+ "background": null,
319
+ "colspan": 1,
320
+ "colwidth": Array [
321
+ 79,
322
+ ],
323
+ "rowspan": 2,
324
+ },
325
+ "content": Array [
326
+ Object {
327
+ "type": "paragraph",
328
+ },
329
+ ],
330
+ "type": "tableCell",
331
+ },
332
+ Object {
333
+ "attrs": Object {
334
+ "background": null,
335
+ "colspan": 1,
336
+ "colwidth": Array [
337
+ 422,
338
+ ],
339
+ "rowspan": 1,
340
+ },
341
+ "content": Array [
342
+ Object {
343
+ "type": "paragraph",
344
+ },
345
+ ],
346
+ "type": "tableCell",
347
+ },
348
+ Object {
349
+ "attrs": Object {
350
+ "background": null,
351
+ "colspan": 1,
352
+ "colwidth": Array [
353
+ 178,
354
+ ],
355
+ "rowspan": 2,
356
+ },
357
+ "content": Array [
358
+ Object {
359
+ "type": "paragraph",
360
+ },
361
+ ],
362
+ "type": "tableCell",
363
+ },
364
+ ],
365
+ "type": "tableRow",
366
+ },
367
+ Object {
368
+ "content": Array [
369
+ Object {
370
+ "attrs": Object {
371
+ "background": null,
372
+ "colspan": 1,
373
+ "colwidth": Array [
374
+ 422,
375
+ ],
376
+ "rowspan": 1,
377
+ },
378
+ "content": Array [
379
+ Object {
380
+ "type": "paragraph",
381
+ },
382
+ ],
383
+ "type": "tableCell",
384
+ },
385
+ ],
386
+ "type": "tableRow",
387
+ },
388
+ ],
389
+ "type": "table",
390
+ },
391
+ Object {
392
+ "type": "paragraph",
393
+ },
394
+ ],
395
+ "type": "doc",
396
+ }
397
+ `;
398
+
399
+ exports[`Can resize normally with a rowspan in the non last column. 1`] = `
400
+ Object {
401
+ "content": Array [
402
+ Object {
403
+ "attrs": Object {
404
+ "__autoSize": false,
405
+ "isNumberColumnEnabled": false,
406
+ "layout": "default",
407
+ "localId": "abc-123",
408
+ },
409
+ "content": Array [
410
+ Object {
411
+ "content": Array [
412
+ Object {
413
+ "attrs": Object {
414
+ "background": null,
415
+ "colspan": 1,
416
+ "colwidth": Array [
417
+ 198,
418
+ ],
419
+ "rowspan": 1,
420
+ },
421
+ "content": Array [
422
+ Object {
423
+ "type": "paragraph",
424
+ },
425
+ ],
426
+ "type": "tableHeader",
427
+ },
428
+ Object {
429
+ "attrs": Object {
430
+ "background": null,
431
+ "colspan": 1,
432
+ "colwidth": Array [
433
+ 482,
434
+ ],
435
+ "rowspan": 1,
436
+ },
437
+ "content": Array [
438
+ Object {
439
+ "type": "paragraph",
440
+ },
441
+ ],
442
+ "type": "tableHeader",
443
+ },
444
+ ],
445
+ "type": "tableRow",
446
+ },
447
+ Object {
448
+ "content": Array [
449
+ Object {
450
+ "attrs": Object {
451
+ "background": null,
452
+ "colspan": 1,
453
+ "colwidth": Array [
454
+ 198,
455
+ ],
456
+ "rowspan": 2,
457
+ },
458
+ "content": Array [
459
+ Object {
460
+ "type": "paragraph",
461
+ },
462
+ ],
463
+ "type": "tableCell",
464
+ },
465
+ Object {
466
+ "attrs": Object {
467
+ "background": null,
468
+ "colspan": 1,
469
+ "colwidth": Array [
470
+ 482,
471
+ ],
472
+ "rowspan": 1,
473
+ },
474
+ "content": Array [
475
+ Object {
476
+ "type": "paragraph",
477
+ },
478
+ ],
479
+ "type": "tableCell",
480
+ },
481
+ ],
482
+ "type": "tableRow",
483
+ },
484
+ Object {
485
+ "content": Array [
486
+ Object {
487
+ "attrs": Object {
488
+ "background": null,
489
+ "colspan": 1,
490
+ "colwidth": Array [
491
+ 482,
492
+ ],
493
+ "rowspan": 1,
494
+ },
495
+ "content": Array [
496
+ Object {
497
+ "type": "paragraph",
498
+ },
499
+ ],
500
+ "type": "tableCell",
501
+ },
502
+ ],
503
+ "type": "tableRow",
504
+ },
505
+ Object {
506
+ "content": Array [
507
+ Object {
508
+ "attrs": Object {
509
+ "background": null,
510
+ "colspan": 1,
511
+ "colwidth": Array [
512
+ 198,
513
+ ],
514
+ "rowspan": 1,
515
+ },
516
+ "content": Array [
517
+ Object {
518
+ "type": "paragraph",
519
+ },
520
+ ],
521
+ "type": "tableCell",
522
+ },
523
+ Object {
524
+ "attrs": Object {
525
+ "background": null,
526
+ "colspan": 1,
527
+ "colwidth": Array [
528
+ 482,
529
+ ],
530
+ "rowspan": 1,
531
+ },
532
+ "content": Array [
533
+ Object {
534
+ "type": "paragraph",
535
+ },
536
+ ],
537
+ "type": "tableCell",
538
+ },
539
+ ],
540
+ "type": "tableRow",
541
+ },
542
+ ],
543
+ "type": "table",
544
+ },
545
+ Object {
546
+ "type": "paragraph",
547
+ },
548
+ ],
549
+ "type": "doc",
550
+ }
551
+ `;
552
+
553
+ exports[`Can resize the last column when table is nested in Columns 1`] = `
554
+ Object {
555
+ "content": Array [
556
+ Object {
557
+ "content": Array [
558
+ Object {
559
+ "attrs": Object {
560
+ "width": 50,
561
+ },
562
+ "content": Array [
563
+ Object {
564
+ "attrs": Object {
565
+ "__autoSize": false,
566
+ "isNumberColumnEnabled": false,
567
+ "layout": "default",
568
+ "localId": "abc-123",
569
+ },
570
+ "content": Array [
571
+ Object {
572
+ "content": Array [
573
+ Object {
574
+ "attrs": Object {
575
+ "background": null,
576
+ "colspan": 1,
577
+ "colwidth": Array [
578
+ 159,
579
+ ],
580
+ "rowspan": 1,
581
+ },
582
+ "content": Array [
583
+ Object {
584
+ "type": "paragraph",
585
+ },
586
+ ],
587
+ "type": "tableHeader",
588
+ },
589
+ Object {
590
+ "attrs": Object {
591
+ "background": null,
592
+ "colspan": 1,
593
+ "colwidth": Array [
594
+ 119,
595
+ ],
596
+ "rowspan": 1,
597
+ },
598
+ "content": Array [
599
+ Object {
600
+ "type": "paragraph",
601
+ },
602
+ ],
603
+ "type": "tableHeader",
604
+ },
605
+ Object {
606
+ "attrs": Object {
607
+ "background": null,
608
+ "colspan": 1,
609
+ "colwidth": Array [
610
+ 83,
611
+ ],
612
+ "rowspan": 1,
613
+ },
614
+ "content": Array [
615
+ Object {
616
+ "type": "paragraph",
617
+ },
618
+ ],
619
+ "type": "tableHeader",
620
+ },
621
+ ],
622
+ "type": "tableRow",
623
+ },
624
+ Object {
625
+ "content": Array [
626
+ Object {
627
+ "attrs": Object {
628
+ "background": null,
629
+ "colspan": 1,
630
+ "colwidth": Array [
631
+ 159,
632
+ ],
633
+ "rowspan": 1,
634
+ },
635
+ "content": Array [
636
+ Object {
637
+ "type": "paragraph",
638
+ },
639
+ ],
640
+ "type": "tableCell",
641
+ },
642
+ Object {
643
+ "attrs": Object {
644
+ "background": null,
645
+ "colspan": 1,
646
+ "colwidth": Array [
647
+ 119,
648
+ ],
649
+ "rowspan": 1,
650
+ },
651
+ "content": Array [
652
+ Object {
653
+ "type": "paragraph",
654
+ },
655
+ ],
656
+ "type": "tableCell",
657
+ },
658
+ Object {
659
+ "attrs": Object {
660
+ "background": null,
661
+ "colspan": 1,
662
+ "colwidth": Array [
663
+ 83,
664
+ ],
665
+ "rowspan": 1,
666
+ },
667
+ "content": Array [
668
+ Object {
669
+ "type": "paragraph",
670
+ },
671
+ ],
672
+ "type": "tableCell",
673
+ },
674
+ ],
675
+ "type": "tableRow",
676
+ },
677
+ Object {
678
+ "content": Array [
679
+ Object {
680
+ "attrs": Object {
681
+ "background": null,
682
+ "colspan": 1,
683
+ "colwidth": Array [
684
+ 159,
685
+ ],
686
+ "rowspan": 1,
687
+ },
688
+ "content": Array [
689
+ Object {
690
+ "type": "paragraph",
691
+ },
692
+ ],
693
+ "type": "tableCell",
694
+ },
695
+ Object {
696
+ "attrs": Object {
697
+ "background": null,
698
+ "colspan": 1,
699
+ "colwidth": Array [
700
+ 119,
701
+ ],
702
+ "rowspan": 1,
703
+ },
704
+ "content": Array [
705
+ Object {
706
+ "type": "paragraph",
707
+ },
708
+ ],
709
+ "type": "tableCell",
710
+ },
711
+ Object {
712
+ "attrs": Object {
713
+ "background": null,
714
+ "colspan": 1,
715
+ "colwidth": Array [
716
+ 83,
717
+ ],
718
+ "rowspan": 1,
719
+ },
720
+ "content": Array [
721
+ Object {
722
+ "type": "paragraph",
723
+ },
724
+ ],
725
+ "type": "tableCell",
726
+ },
727
+ ],
728
+ "type": "tableRow",
729
+ },
730
+ ],
731
+ "type": "table",
732
+ },
733
+ ],
734
+ "type": "layoutColumn",
735
+ },
736
+ Object {
737
+ "attrs": Object {
738
+ "width": 50,
739
+ },
740
+ "content": Array [
741
+ Object {
742
+ "type": "paragraph",
743
+ },
744
+ ],
745
+ "type": "layoutColumn",
746
+ },
747
+ ],
748
+ "type": "layoutSection",
749
+ },
750
+ ],
751
+ "type": "doc",
752
+ }
753
+ `;
754
+
755
+ exports[`Created column should be set to 140px 1`] = `
756
+ Object {
757
+ "content": Array [
758
+ Object {
759
+ "attrs": Object {
760
+ "__autoSize": false,
761
+ "isNumberColumnEnabled": false,
762
+ "layout": "default",
763
+ "localId": "abc-123",
764
+ },
765
+ "content": Array [
766
+ Object {
767
+ "content": Array [
768
+ Object {
769
+ "attrs": Object {
770
+ "background": null,
771
+ "colspan": 1,
772
+ "colwidth": Array [
773
+ 48,
774
+ ],
775
+ "rowspan": 1,
776
+ },
777
+ "content": Array [
778
+ Object {
779
+ "type": "paragraph",
780
+ },
781
+ ],
782
+ "type": "tableHeader",
783
+ },
784
+ Object {
785
+ "attrs": Object {
786
+ "background": null,
787
+ "colspan": 1,
788
+ "colwidth": Array [
789
+ 140,
790
+ ],
791
+ "rowspan": 1,
792
+ },
793
+ "content": Array [
794
+ Object {
795
+ "type": "paragraph",
796
+ },
797
+ ],
798
+ "type": "tableHeader",
799
+ },
800
+ Object {
801
+ "attrs": Object {
802
+ "background": null,
803
+ "colspan": 1,
804
+ "colwidth": Array [
805
+ 48,
806
+ ],
807
+ "rowspan": 1,
808
+ },
809
+ "content": Array [
810
+ Object {
811
+ "type": "paragraph",
812
+ },
813
+ ],
814
+ "type": "tableHeader",
815
+ },
816
+ Object {
817
+ "attrs": Object {
818
+ "background": null,
819
+ "colspan": 1,
820
+ "colwidth": Array [
821
+ 48,
822
+ ],
823
+ "rowspan": 1,
824
+ },
825
+ "content": Array [
826
+ Object {
827
+ "type": "paragraph",
828
+ },
829
+ ],
830
+ "type": "tableHeader",
831
+ },
832
+ Object {
833
+ "attrs": Object {
834
+ "background": null,
835
+ "colspan": 1,
836
+ "colwidth": Array [
837
+ 476,
838
+ ],
839
+ "rowspan": 1,
840
+ },
841
+ "content": Array [
842
+ Object {
843
+ "type": "paragraph",
844
+ },
845
+ ],
846
+ "type": "tableHeader",
847
+ },
848
+ ],
849
+ "type": "tableRow",
850
+ },
851
+ Object {
852
+ "content": Array [
853
+ Object {
854
+ "attrs": Object {
855
+ "background": null,
856
+ "colspan": 1,
857
+ "colwidth": Array [
858
+ 48,
859
+ ],
860
+ "rowspan": 1,
861
+ },
862
+ "content": Array [
863
+ Object {
864
+ "type": "paragraph",
865
+ },
866
+ ],
867
+ "type": "tableCell",
868
+ },
869
+ Object {
870
+ "attrs": Object {
871
+ "background": null,
872
+ "colspan": 1,
873
+ "colwidth": Array [
874
+ 140,
875
+ ],
876
+ "rowspan": 1,
877
+ },
878
+ "content": Array [
879
+ Object {
880
+ "type": "paragraph",
881
+ },
882
+ ],
883
+ "type": "tableCell",
884
+ },
885
+ Object {
886
+ "attrs": Object {
887
+ "background": null,
888
+ "colspan": 1,
889
+ "colwidth": Array [
890
+ 48,
891
+ ],
892
+ "rowspan": 1,
893
+ },
894
+ "content": Array [
895
+ Object {
896
+ "type": "paragraph",
897
+ },
898
+ ],
899
+ "type": "tableCell",
900
+ },
901
+ Object {
902
+ "attrs": Object {
903
+ "background": null,
904
+ "colspan": 1,
905
+ "colwidth": Array [
906
+ 48,
907
+ ],
908
+ "rowspan": 1,
909
+ },
910
+ "content": Array [
911
+ Object {
912
+ "type": "paragraph",
913
+ },
914
+ ],
915
+ "type": "tableCell",
916
+ },
917
+ Object {
918
+ "attrs": Object {
919
+ "background": null,
920
+ "colspan": 1,
921
+ "colwidth": Array [
922
+ 476,
923
+ ],
924
+ "rowspan": 1,
925
+ },
926
+ "content": Array [
927
+ Object {
928
+ "type": "paragraph",
929
+ },
930
+ ],
931
+ "type": "tableCell",
932
+ },
933
+ ],
934
+ "type": "tableRow",
935
+ },
936
+ Object {
937
+ "content": Array [
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
+ Object {
955
+ "attrs": Object {
956
+ "background": null,
957
+ "colspan": 1,
958
+ "colwidth": Array [
959
+ 140,
960
+ ],
961
+ "rowspan": 1,
962
+ },
963
+ "content": Array [
964
+ Object {
965
+ "type": "paragraph",
966
+ },
967
+ ],
968
+ "type": "tableCell",
969
+ },
970
+ Object {
971
+ "attrs": Object {
972
+ "background": null,
973
+ "colspan": 1,
974
+ "colwidth": Array [
975
+ 48,
976
+ ],
977
+ "rowspan": 1,
978
+ },
979
+ "content": Array [
980
+ Object {
981
+ "type": "paragraph",
982
+ },
983
+ ],
984
+ "type": "tableCell",
985
+ },
986
+ Object {
987
+ "attrs": Object {
988
+ "background": null,
989
+ "colspan": 1,
990
+ "colwidth": Array [
991
+ 48,
992
+ ],
993
+ "rowspan": 1,
994
+ },
995
+ "content": Array [
996
+ Object {
997
+ "type": "paragraph",
998
+ },
999
+ ],
1000
+ "type": "tableCell",
1001
+ },
1002
+ Object {
1003
+ "attrs": Object {
1004
+ "background": null,
1005
+ "colspan": 1,
1006
+ "colwidth": Array [
1007
+ 476,
1008
+ ],
1009
+ "rowspan": 1,
1010
+ },
1011
+ "content": Array [
1012
+ Object {
1013
+ "type": "paragraph",
1014
+ },
1015
+ ],
1016
+ "type": "tableCell",
1017
+ },
1018
+ ],
1019
+ "type": "tableRow",
1020
+ },
1021
+ ],
1022
+ "type": "table",
1023
+ },
1024
+ ],
1025
+ "type": "doc",
1026
+ }
1027
+ `;
1028
+
1029
+ exports[`Should bulk resize 3 columns in 4 columns table 1`] = `
1030
+ Object {
1031
+ "content": Array [
1032
+ Object {
1033
+ "attrs": Object {
1034
+ "__autoSize": false,
1035
+ "isNumberColumnEnabled": false,
1036
+ "layout": "default",
1037
+ "localId": "abc-123",
1038
+ },
1039
+ "content": Array [
1040
+ Object {
1041
+ "content": Array [
1042
+ Object {
1043
+ "attrs": Object {
1044
+ "background": null,
1045
+ "colspan": 1,
1046
+ "colwidth": Array [
1047
+ 224,
1048
+ ],
1049
+ "rowspan": 1,
1050
+ },
1051
+ "content": Array [
1052
+ Object {
1053
+ "type": "paragraph",
1054
+ },
1055
+ ],
1056
+ "type": "tableHeader",
1057
+ },
1058
+ Object {
1059
+ "attrs": Object {
1060
+ "background": null,
1061
+ "colspan": 1,
1062
+ "colwidth": Array [
1063
+ 90,
1064
+ ],
1065
+ "rowspan": 1,
1066
+ },
1067
+ "content": Array [
1068
+ Object {
1069
+ "type": "paragraph",
1070
+ },
1071
+ ],
1072
+ "type": "tableHeader",
1073
+ },
1074
+ Object {
1075
+ "attrs": Object {
1076
+ "background": null,
1077
+ "colspan": 1,
1078
+ "colwidth": Array [
1079
+ 223,
1080
+ ],
1081
+ "rowspan": 1,
1082
+ },
1083
+ "content": Array [
1084
+ Object {
1085
+ "type": "paragraph",
1086
+ },
1087
+ ],
1088
+ "type": "tableHeader",
1089
+ },
1090
+ Object {
1091
+ "attrs": Object {
1092
+ "background": null,
1093
+ "colspan": 1,
1094
+ "colwidth": Array [
1095
+ 223,
1096
+ ],
1097
+ "rowspan": 1,
1098
+ },
1099
+ "content": Array [
1100
+ Object {
1101
+ "type": "paragraph",
1102
+ },
1103
+ ],
1104
+ "type": "tableHeader",
1105
+ },
1106
+ ],
1107
+ "type": "tableRow",
1108
+ },
1109
+ Object {
1110
+ "content": Array [
1111
+ Object {
1112
+ "attrs": Object {
1113
+ "background": null,
1114
+ "colspan": 1,
1115
+ "colwidth": Array [
1116
+ 224,
1117
+ ],
1118
+ "rowspan": 1,
1119
+ },
1120
+ "content": Array [
1121
+ Object {
1122
+ "type": "paragraph",
1123
+ },
1124
+ ],
1125
+ "type": "tableCell",
1126
+ },
1127
+ Object {
1128
+ "attrs": Object {
1129
+ "background": null,
1130
+ "colspan": 1,
1131
+ "colwidth": Array [
1132
+ 90,
1133
+ ],
1134
+ "rowspan": 1,
1135
+ },
1136
+ "content": Array [
1137
+ Object {
1138
+ "type": "paragraph",
1139
+ },
1140
+ ],
1141
+ "type": "tableCell",
1142
+ },
1143
+ Object {
1144
+ "attrs": Object {
1145
+ "background": null,
1146
+ "colspan": 1,
1147
+ "colwidth": Array [
1148
+ 223,
1149
+ ],
1150
+ "rowspan": 1,
1151
+ },
1152
+ "content": Array [
1153
+ Object {
1154
+ "type": "paragraph",
1155
+ },
1156
+ ],
1157
+ "type": "tableCell",
1158
+ },
1159
+ Object {
1160
+ "attrs": Object {
1161
+ "background": null,
1162
+ "colspan": 1,
1163
+ "colwidth": Array [
1164
+ 223,
1165
+ ],
1166
+ "rowspan": 1,
1167
+ },
1168
+ "content": Array [
1169
+ Object {
1170
+ "type": "paragraph",
1171
+ },
1172
+ ],
1173
+ "type": "tableCell",
1174
+ },
1175
+ ],
1176
+ "type": "tableRow",
1177
+ },
1178
+ Object {
1179
+ "content": Array [
1180
+ Object {
1181
+ "attrs": Object {
1182
+ "background": null,
1183
+ "colspan": 1,
1184
+ "colwidth": Array [
1185
+ 224,
1186
+ ],
1187
+ "rowspan": 1,
1188
+ },
1189
+ "content": Array [
1190
+ Object {
1191
+ "type": "paragraph",
1192
+ },
1193
+ ],
1194
+ "type": "tableCell",
1195
+ },
1196
+ Object {
1197
+ "attrs": Object {
1198
+ "background": null,
1199
+ "colspan": 1,
1200
+ "colwidth": Array [
1201
+ 90,
1202
+ ],
1203
+ "rowspan": 1,
1204
+ },
1205
+ "content": Array [
1206
+ Object {
1207
+ "type": "paragraph",
1208
+ },
1209
+ ],
1210
+ "type": "tableCell",
1211
+ },
1212
+ Object {
1213
+ "attrs": Object {
1214
+ "background": null,
1215
+ "colspan": 1,
1216
+ "colwidth": Array [
1217
+ 223,
1218
+ ],
1219
+ "rowspan": 1,
1220
+ },
1221
+ "content": Array [
1222
+ Object {
1223
+ "type": "paragraph",
1224
+ },
1225
+ ],
1226
+ "type": "tableCell",
1227
+ },
1228
+ Object {
1229
+ "attrs": Object {
1230
+ "background": null,
1231
+ "colspan": 1,
1232
+ "colwidth": Array [
1233
+ 223,
1234
+ ],
1235
+ "rowspan": 1,
1236
+ },
1237
+ "content": Array [
1238
+ Object {
1239
+ "type": "paragraph",
1240
+ },
1241
+ ],
1242
+ "type": "tableCell",
1243
+ },
1244
+ ],
1245
+ "type": "tableRow",
1246
+ },
1247
+ ],
1248
+ "type": "table",
1249
+ },
1250
+ ],
1251
+ "type": "doc",
1252
+ }
1253
+ `;
1254
+
1255
+ exports[`Should bulk resize selected columns 1`] = `
1256
+ Object {
1257
+ "content": Array [
1258
+ Object {
1259
+ "attrs": Object {
1260
+ "__autoSize": false,
1261
+ "isNumberColumnEnabled": false,
1262
+ "layout": "default",
1263
+ "localId": "abc-123",
1264
+ },
1265
+ "content": Array [
1266
+ Object {
1267
+ "content": Array [
1268
+ Object {
1269
+ "attrs": Object {
1270
+ "background": null,
1271
+ "colspan": 1,
1272
+ "colwidth": Array [
1273
+ 101,
1274
+ ],
1275
+ "rowspan": 1,
1276
+ },
1277
+ "content": Array [
1278
+ Object {
1279
+ "type": "paragraph",
1280
+ },
1281
+ ],
1282
+ "type": "tableHeader",
1283
+ },
1284
+ Object {
1285
+ "attrs": Object {
1286
+ "background": null,
1287
+ "colspan": 1,
1288
+ "colwidth": Array [
1289
+ 100,
1290
+ ],
1291
+ "rowspan": 1,
1292
+ },
1293
+ "content": Array [
1294
+ Object {
1295
+ "type": "paragraph",
1296
+ },
1297
+ ],
1298
+ "type": "tableHeader",
1299
+ },
1300
+ Object {
1301
+ "attrs": Object {
1302
+ "background": null,
1303
+ "colspan": 1,
1304
+ "colwidth": Array [
1305
+ 127,
1306
+ ],
1307
+ "rowspan": 1,
1308
+ },
1309
+ "content": Array [
1310
+ Object {
1311
+ "type": "paragraph",
1312
+ },
1313
+ ],
1314
+ "type": "tableHeader",
1315
+ },
1316
+ Object {
1317
+ "attrs": Object {
1318
+ "background": null,
1319
+ "colspan": 1,
1320
+ "colwidth": Array [
1321
+ 108,
1322
+ ],
1323
+ "rowspan": 1,
1324
+ },
1325
+ "content": Array [
1326
+ Object {
1327
+ "type": "paragraph",
1328
+ },
1329
+ ],
1330
+ "type": "tableHeader",
1331
+ },
1332
+ Object {
1333
+ "attrs": Object {
1334
+ "background": null,
1335
+ "colspan": 1,
1336
+ "colwidth": Array [
1337
+ 108,
1338
+ ],
1339
+ "rowspan": 1,
1340
+ },
1341
+ "content": Array [
1342
+ Object {
1343
+ "type": "paragraph",
1344
+ },
1345
+ ],
1346
+ "type": "tableHeader",
1347
+ },
1348
+ Object {
1349
+ "attrs": Object {
1350
+ "background": null,
1351
+ "colspan": 1,
1352
+ "colwidth": Array [
1353
+ 108,
1354
+ ],
1355
+ "rowspan": 1,
1356
+ },
1357
+ "content": Array [
1358
+ Object {
1359
+ "type": "paragraph",
1360
+ },
1361
+ ],
1362
+ "type": "tableHeader",
1363
+ },
1364
+ Object {
1365
+ "attrs": Object {
1366
+ "background": null,
1367
+ "colspan": 1,
1368
+ "colwidth": Array [
1369
+ 108,
1370
+ ],
1371
+ "rowspan": 1,
1372
+ },
1373
+ "content": Array [
1374
+ Object {
1375
+ "type": "paragraph",
1376
+ },
1377
+ ],
1378
+ "type": "tableHeader",
1379
+ },
1380
+ ],
1381
+ "type": "tableRow",
1382
+ },
1383
+ Object {
1384
+ "content": Array [
1385
+ Object {
1386
+ "attrs": Object {
1387
+ "background": null,
1388
+ "colspan": 1,
1389
+ "colwidth": Array [
1390
+ 101,
1391
+ ],
1392
+ "rowspan": 1,
1393
+ },
1394
+ "content": Array [
1395
+ Object {
1396
+ "type": "paragraph",
1397
+ },
1398
+ ],
1399
+ "type": "tableCell",
1400
+ },
1401
+ Object {
1402
+ "attrs": Object {
1403
+ "background": null,
1404
+ "colspan": 1,
1405
+ "colwidth": Array [
1406
+ 100,
1407
+ ],
1408
+ "rowspan": 1,
1409
+ },
1410
+ "content": Array [
1411
+ Object {
1412
+ "type": "paragraph",
1413
+ },
1414
+ ],
1415
+ "type": "tableCell",
1416
+ },
1417
+ Object {
1418
+ "attrs": Object {
1419
+ "background": null,
1420
+ "colspan": 1,
1421
+ "colwidth": Array [
1422
+ 127,
1423
+ ],
1424
+ "rowspan": 1,
1425
+ },
1426
+ "content": Array [
1427
+ Object {
1428
+ "type": "paragraph",
1429
+ },
1430
+ ],
1431
+ "type": "tableCell",
1432
+ },
1433
+ Object {
1434
+ "attrs": Object {
1435
+ "background": null,
1436
+ "colspan": 1,
1437
+ "colwidth": Array [
1438
+ 108,
1439
+ ],
1440
+ "rowspan": 1,
1441
+ },
1442
+ "content": Array [
1443
+ Object {
1444
+ "type": "paragraph",
1445
+ },
1446
+ ],
1447
+ "type": "tableCell",
1448
+ },
1449
+ Object {
1450
+ "attrs": Object {
1451
+ "background": null,
1452
+ "colspan": 1,
1453
+ "colwidth": Array [
1454
+ 108,
1455
+ ],
1456
+ "rowspan": 1,
1457
+ },
1458
+ "content": Array [
1459
+ Object {
1460
+ "type": "paragraph",
1461
+ },
1462
+ ],
1463
+ "type": "tableCell",
1464
+ },
1465
+ Object {
1466
+ "attrs": Object {
1467
+ "background": null,
1468
+ "colspan": 1,
1469
+ "colwidth": Array [
1470
+ 108,
1471
+ ],
1472
+ "rowspan": 1,
1473
+ },
1474
+ "content": Array [
1475
+ Object {
1476
+ "type": "paragraph",
1477
+ },
1478
+ ],
1479
+ "type": "tableCell",
1480
+ },
1481
+ Object {
1482
+ "attrs": Object {
1483
+ "background": null,
1484
+ "colspan": 1,
1485
+ "colwidth": Array [
1486
+ 108,
1487
+ ],
1488
+ "rowspan": 1,
1489
+ },
1490
+ "content": Array [
1491
+ Object {
1492
+ "type": "paragraph",
1493
+ },
1494
+ ],
1495
+ "type": "tableCell",
1496
+ },
1497
+ ],
1498
+ "type": "tableRow",
1499
+ },
1500
+ Object {
1501
+ "content": Array [
1502
+ Object {
1503
+ "attrs": Object {
1504
+ "background": null,
1505
+ "colspan": 1,
1506
+ "colwidth": Array [
1507
+ 101,
1508
+ ],
1509
+ "rowspan": 1,
1510
+ },
1511
+ "content": Array [
1512
+ Object {
1513
+ "type": "paragraph",
1514
+ },
1515
+ ],
1516
+ "type": "tableCell",
1517
+ },
1518
+ Object {
1519
+ "attrs": Object {
1520
+ "background": null,
1521
+ "colspan": 1,
1522
+ "colwidth": Array [
1523
+ 100,
1524
+ ],
1525
+ "rowspan": 1,
1526
+ },
1527
+ "content": Array [
1528
+ Object {
1529
+ "type": "paragraph",
1530
+ },
1531
+ ],
1532
+ "type": "tableCell",
1533
+ },
1534
+ Object {
1535
+ "attrs": Object {
1536
+ "background": null,
1537
+ "colspan": 1,
1538
+ "colwidth": Array [
1539
+ 127,
1540
+ ],
1541
+ "rowspan": 1,
1542
+ },
1543
+ "content": Array [
1544
+ Object {
1545
+ "type": "paragraph",
1546
+ },
1547
+ ],
1548
+ "type": "tableCell",
1549
+ },
1550
+ Object {
1551
+ "attrs": Object {
1552
+ "background": null,
1553
+ "colspan": 1,
1554
+ "colwidth": Array [
1555
+ 108,
1556
+ ],
1557
+ "rowspan": 1,
1558
+ },
1559
+ "content": Array [
1560
+ Object {
1561
+ "type": "paragraph",
1562
+ },
1563
+ ],
1564
+ "type": "tableCell",
1565
+ },
1566
+ Object {
1567
+ "attrs": Object {
1568
+ "background": null,
1569
+ "colspan": 1,
1570
+ "colwidth": Array [
1571
+ 108,
1572
+ ],
1573
+ "rowspan": 1,
1574
+ },
1575
+ "content": Array [
1576
+ Object {
1577
+ "type": "paragraph",
1578
+ },
1579
+ ],
1580
+ "type": "tableCell",
1581
+ },
1582
+ Object {
1583
+ "attrs": Object {
1584
+ "background": null,
1585
+ "colspan": 1,
1586
+ "colwidth": Array [
1587
+ 108,
1588
+ ],
1589
+ "rowspan": 1,
1590
+ },
1591
+ "content": Array [
1592
+ Object {
1593
+ "type": "paragraph",
1594
+ },
1595
+ ],
1596
+ "type": "tableCell",
1597
+ },
1598
+ Object {
1599
+ "attrs": Object {
1600
+ "background": null,
1601
+ "colspan": 1,
1602
+ "colwidth": Array [
1603
+ 108,
1604
+ ],
1605
+ "rowspan": 1,
1606
+ },
1607
+ "content": Array [
1608
+ Object {
1609
+ "type": "paragraph",
1610
+ },
1611
+ ],
1612
+ "type": "tableCell",
1613
+ },
1614
+ ],
1615
+ "type": "tableRow",
1616
+ },
1617
+ ],
1618
+ "type": "table",
1619
+ },
1620
+ ],
1621
+ "type": "doc",
1622
+ }
1623
+ `;
1624
+
1625
+ exports[`Should recover from overflow when number col is selected 1`] = `
1626
+ Object {
1627
+ "content": Array [
1628
+ Object {
1629
+ "attrs": Object {
1630
+ "__autoSize": false,
1631
+ "isNumberColumnEnabled": true,
1632
+ "layout": "default",
1633
+ "localId": "abc-123",
1634
+ },
1635
+ "content": Array [
1636
+ Object {
1637
+ "content": Array [
1638
+ Object {
1639
+ "attrs": Object {
1640
+ "background": null,
1641
+ "colspan": 1,
1642
+ "colwidth": Array [
1643
+ 115,
1644
+ ],
1645
+ "rowspan": 1,
1646
+ },
1647
+ "content": Array [
1648
+ Object {
1649
+ "type": "paragraph",
1650
+ },
1651
+ ],
1652
+ "type": "tableHeader",
1653
+ },
1654
+ Object {
1655
+ "attrs": Object {
1656
+ "background": null,
1657
+ "colspan": 1,
1658
+ "colwidth": Array [
1659
+ 201,
1660
+ ],
1661
+ "rowspan": 1,
1662
+ },
1663
+ "content": Array [
1664
+ Object {
1665
+ "type": "paragraph",
1666
+ },
1667
+ ],
1668
+ "type": "tableHeader",
1669
+ },
1670
+ Object {
1671
+ "attrs": Object {
1672
+ "background": null,
1673
+ "colspan": 1,
1674
+ "colwidth": Array [
1675
+ 201,
1676
+ ],
1677
+ "rowspan": 1,
1678
+ },
1679
+ "content": Array [
1680
+ Object {
1681
+ "type": "paragraph",
1682
+ },
1683
+ ],
1684
+ "type": "tableHeader",
1685
+ },
1686
+ Object {
1687
+ "attrs": Object {
1688
+ "background": null,
1689
+ "colspan": 1,
1690
+ "colwidth": Array [
1691
+ 201,
1692
+ ],
1693
+ "rowspan": 1,
1694
+ },
1695
+ "content": Array [
1696
+ Object {
1697
+ "type": "paragraph",
1698
+ },
1699
+ ],
1700
+ "type": "tableHeader",
1701
+ },
1702
+ ],
1703
+ "type": "tableRow",
1704
+ },
1705
+ Object {
1706
+ "content": Array [
1707
+ Object {
1708
+ "attrs": Object {
1709
+ "background": null,
1710
+ "colspan": 1,
1711
+ "colwidth": Array [
1712
+ 115,
1713
+ ],
1714
+ "rowspan": 1,
1715
+ },
1716
+ "content": Array [
1717
+ Object {
1718
+ "type": "paragraph",
1719
+ },
1720
+ ],
1721
+ "type": "tableCell",
1722
+ },
1723
+ Object {
1724
+ "attrs": Object {
1725
+ "background": null,
1726
+ "colspan": 1,
1727
+ "colwidth": Array [
1728
+ 201,
1729
+ ],
1730
+ "rowspan": 1,
1731
+ },
1732
+ "content": Array [
1733
+ Object {
1734
+ "type": "paragraph",
1735
+ },
1736
+ ],
1737
+ "type": "tableCell",
1738
+ },
1739
+ Object {
1740
+ "attrs": Object {
1741
+ "background": null,
1742
+ "colspan": 1,
1743
+ "colwidth": Array [
1744
+ 201,
1745
+ ],
1746
+ "rowspan": 1,
1747
+ },
1748
+ "content": Array [
1749
+ Object {
1750
+ "type": "paragraph",
1751
+ },
1752
+ ],
1753
+ "type": "tableCell",
1754
+ },
1755
+ Object {
1756
+ "attrs": Object {
1757
+ "background": null,
1758
+ "colspan": 1,
1759
+ "colwidth": Array [
1760
+ 201,
1761
+ ],
1762
+ "rowspan": 1,
1763
+ },
1764
+ "content": Array [
1765
+ Object {
1766
+ "type": "paragraph",
1767
+ },
1768
+ ],
1769
+ "type": "tableCell",
1770
+ },
1771
+ ],
1772
+ "type": "tableRow",
1773
+ },
1774
+ Object {
1775
+ "content": Array [
1776
+ Object {
1777
+ "attrs": Object {
1778
+ "background": null,
1779
+ "colspan": 1,
1780
+ "colwidth": Array [
1781
+ 115,
1782
+ ],
1783
+ "rowspan": 1,
1784
+ },
1785
+ "content": Array [
1786
+ Object {
1787
+ "type": "paragraph",
1788
+ },
1789
+ ],
1790
+ "type": "tableCell",
1791
+ },
1792
+ Object {
1793
+ "attrs": Object {
1794
+ "background": null,
1795
+ "colspan": 1,
1796
+ "colwidth": Array [
1797
+ 201,
1798
+ ],
1799
+ "rowspan": 1,
1800
+ },
1801
+ "content": Array [
1802
+ Object {
1803
+ "type": "paragraph",
1804
+ },
1805
+ ],
1806
+ "type": "tableCell",
1807
+ },
1808
+ Object {
1809
+ "attrs": Object {
1810
+ "background": null,
1811
+ "colspan": 1,
1812
+ "colwidth": Array [
1813
+ 201,
1814
+ ],
1815
+ "rowspan": 1,
1816
+ },
1817
+ "content": Array [
1818
+ Object {
1819
+ "type": "paragraph",
1820
+ },
1821
+ ],
1822
+ "type": "tableCell",
1823
+ },
1824
+ Object {
1825
+ "attrs": Object {
1826
+ "background": null,
1827
+ "colspan": 1,
1828
+ "colwidth": Array [
1829
+ 201,
1830
+ ],
1831
+ "rowspan": 1,
1832
+ },
1833
+ "content": Array [
1834
+ Object {
1835
+ "type": "paragraph",
1836
+ },
1837
+ ],
1838
+ "type": "tableCell",
1839
+ },
1840
+ ],
1841
+ "type": "tableRow",
1842
+ },
1843
+ ],
1844
+ "type": "table",
1845
+ },
1846
+ Object {
1847
+ "type": "paragraph",
1848
+ },
1849
+ ],
1850
+ "type": "doc",
1851
+ }
1852
+ `;
1853
+
1854
+ exports[`Should stack columns to the left when widths of some of the columns equal minWidth 1`] = `
1855
+ Object {
1856
+ "content": Array [
1857
+ Object {
1858
+ "attrs": Object {
1859
+ "__autoSize": false,
1860
+ "isNumberColumnEnabled": false,
1861
+ "layout": "default",
1862
+ "localId": "abc-123",
1863
+ },
1864
+ "content": Array [
1865
+ Object {
1866
+ "content": Array [
1867
+ Object {
1868
+ "attrs": Object {
1869
+ "background": null,
1870
+ "colspan": 1,
1871
+ "colwidth": Array [
1872
+ 48,
1873
+ ],
1874
+ "rowspan": 1,
1875
+ },
1876
+ "content": Array [
1877
+ Object {
1878
+ "type": "paragraph",
1879
+ },
1880
+ ],
1881
+ "type": "tableHeader",
1882
+ },
1883
+ Object {
1884
+ "attrs": Object {
1885
+ "background": null,
1886
+ "colspan": 1,
1887
+ "colwidth": Array [
1888
+ 48,
1889
+ ],
1890
+ "rowspan": 1,
1891
+ },
1892
+ "content": Array [
1893
+ Object {
1894
+ "type": "paragraph",
1895
+ },
1896
+ ],
1897
+ "type": "tableHeader",
1898
+ },
1899
+ Object {
1900
+ "attrs": Object {
1901
+ "background": null,
1902
+ "colspan": 1,
1903
+ "colwidth": Array [
1904
+ 48,
1905
+ ],
1906
+ "rowspan": 1,
1907
+ },
1908
+ "content": Array [
1909
+ Object {
1910
+ "type": "paragraph",
1911
+ },
1912
+ ],
1913
+ "type": "tableHeader",
1914
+ },
1915
+ Object {
1916
+ "attrs": Object {
1917
+ "background": null,
1918
+ "colspan": 1,
1919
+ "colwidth": Array [
1920
+ 48,
1921
+ ],
1922
+ "rowspan": 1,
1923
+ },
1924
+ "content": Array [
1925
+ Object {
1926
+ "type": "paragraph",
1927
+ },
1928
+ ],
1929
+ "type": "tableHeader",
1930
+ },
1931
+ Object {
1932
+ "attrs": Object {
1933
+ "background": null,
1934
+ "colspan": 1,
1935
+ "colwidth": Array [
1936
+ 487,
1937
+ ],
1938
+ "rowspan": 1,
1939
+ },
1940
+ "content": Array [
1941
+ Object {
1942
+ "type": "paragraph",
1943
+ },
1944
+ ],
1945
+ "type": "tableHeader",
1946
+ },
1947
+ ],
1948
+ "type": "tableRow",
1949
+ },
1950
+ Object {
1951
+ "content": Array [
1952
+ Object {
1953
+ "attrs": Object {
1954
+ "background": null,
1955
+ "colspan": 1,
1956
+ "colwidth": Array [
1957
+ 48,
1958
+ ],
1959
+ "rowspan": 1,
1960
+ },
1961
+ "content": Array [
1962
+ Object {
1963
+ "type": "paragraph",
1964
+ },
1965
+ ],
1966
+ "type": "tableCell",
1967
+ },
1968
+ Object {
1969
+ "attrs": Object {
1970
+ "background": null,
1971
+ "colspan": 1,
1972
+ "colwidth": Array [
1973
+ 48,
1974
+ ],
1975
+ "rowspan": 1,
1976
+ },
1977
+ "content": Array [
1978
+ Object {
1979
+ "type": "paragraph",
1980
+ },
1981
+ ],
1982
+ "type": "tableCell",
1983
+ },
1984
+ Object {
1985
+ "attrs": Object {
1986
+ "background": null,
1987
+ "colspan": 1,
1988
+ "colwidth": Array [
1989
+ 48,
1990
+ ],
1991
+ "rowspan": 1,
1992
+ },
1993
+ "content": Array [
1994
+ Object {
1995
+ "type": "paragraph",
1996
+ },
1997
+ ],
1998
+ "type": "tableCell",
1999
+ },
2000
+ Object {
2001
+ "attrs": Object {
2002
+ "background": null,
2003
+ "colspan": 1,
2004
+ "colwidth": Array [
2005
+ 48,
2006
+ ],
2007
+ "rowspan": 1,
2008
+ },
2009
+ "content": Array [
2010
+ Object {
2011
+ "type": "paragraph",
2012
+ },
2013
+ ],
2014
+ "type": "tableCell",
2015
+ },
2016
+ Object {
2017
+ "attrs": Object {
2018
+ "background": null,
2019
+ "colspan": 1,
2020
+ "colwidth": Array [
2021
+ 487,
2022
+ ],
2023
+ "rowspan": 1,
2024
+ },
2025
+ "content": Array [
2026
+ Object {
2027
+ "type": "paragraph",
2028
+ },
2029
+ ],
2030
+ "type": "tableCell",
2031
+ },
2032
+ ],
2033
+ "type": "tableRow",
2034
+ },
2035
+ Object {
2036
+ "content": Array [
2037
+ Object {
2038
+ "attrs": Object {
2039
+ "background": null,
2040
+ "colspan": 1,
2041
+ "colwidth": Array [
2042
+ 48,
2043
+ ],
2044
+ "rowspan": 1,
2045
+ },
2046
+ "content": Array [
2047
+ Object {
2048
+ "type": "paragraph",
2049
+ },
2050
+ ],
2051
+ "type": "tableCell",
2052
+ },
2053
+ Object {
2054
+ "attrs": Object {
2055
+ "background": null,
2056
+ "colspan": 1,
2057
+ "colwidth": Array [
2058
+ 48,
2059
+ ],
2060
+ "rowspan": 1,
2061
+ },
2062
+ "content": Array [
2063
+ Object {
2064
+ "type": "paragraph",
2065
+ },
2066
+ ],
2067
+ "type": "tableCell",
2068
+ },
2069
+ Object {
2070
+ "attrs": Object {
2071
+ "background": null,
2072
+ "colspan": 1,
2073
+ "colwidth": Array [
2074
+ 48,
2075
+ ],
2076
+ "rowspan": 1,
2077
+ },
2078
+ "content": Array [
2079
+ Object {
2080
+ "type": "paragraph",
2081
+ },
2082
+ ],
2083
+ "type": "tableCell",
2084
+ },
2085
+ Object {
2086
+ "attrs": Object {
2087
+ "background": null,
2088
+ "colspan": 1,
2089
+ "colwidth": Array [
2090
+ 48,
2091
+ ],
2092
+ "rowspan": 1,
2093
+ },
2094
+ "content": Array [
2095
+ Object {
2096
+ "type": "paragraph",
2097
+ },
2098
+ ],
2099
+ "type": "tableCell",
2100
+ },
2101
+ Object {
2102
+ "attrs": Object {
2103
+ "background": null,
2104
+ "colspan": 1,
2105
+ "colwidth": Array [
2106
+ 487,
2107
+ ],
2108
+ "rowspan": 1,
2109
+ },
2110
+ "content": Array [
2111
+ Object {
2112
+ "type": "paragraph",
2113
+ },
2114
+ ],
2115
+ "type": "tableCell",
2116
+ },
2117
+ ],
2118
+ "type": "tableRow",
2119
+ },
2120
+ ],
2121
+ "type": "table",
2122
+ },
2123
+ ],
2124
+ "type": "doc",
2125
+ }
2126
+ `;
2127
+
2128
+ exports[`Should stack columns to the right and go to overflow 1`] = `
2129
+ Object {
2130
+ "content": Array [
2131
+ Object {
2132
+ "attrs": Object {
2133
+ "__autoSize": false,
2134
+ "isNumberColumnEnabled": false,
2135
+ "layout": "default",
2136
+ "localId": "abc-123",
2137
+ },
2138
+ "content": Array [
2139
+ Object {
2140
+ "content": Array [
2141
+ Object {
2142
+ "attrs": Object {
2143
+ "background": null,
2144
+ "colspan": 1,
2145
+ "colwidth": Array [
2146
+ 504,
2147
+ ],
2148
+ "rowspan": 1,
2149
+ },
2150
+ "content": Array [
2151
+ Object {
2152
+ "type": "paragraph",
2153
+ },
2154
+ ],
2155
+ "type": "tableHeader",
2156
+ },
2157
+ Object {
2158
+ "attrs": Object {
2159
+ "background": null,
2160
+ "colspan": 1,
2161
+ "colwidth": Array [
2162
+ 48,
2163
+ ],
2164
+ "rowspan": 1,
2165
+ },
2166
+ "content": Array [
2167
+ Object {
2168
+ "type": "paragraph",
2169
+ },
2170
+ ],
2171
+ "type": "tableHeader",
2172
+ },
2173
+ Object {
2174
+ "attrs": Object {
2175
+ "background": null,
2176
+ "colspan": 1,
2177
+ "colwidth": Array [
2178
+ 48,
2179
+ ],
2180
+ "rowspan": 1,
2181
+ },
2182
+ "content": Array [
2183
+ Object {
2184
+ "type": "paragraph",
2185
+ },
2186
+ ],
2187
+ "type": "tableHeader",
2188
+ },
2189
+ Object {
2190
+ "attrs": Object {
2191
+ "background": null,
2192
+ "colspan": 1,
2193
+ "colwidth": Array [
2194
+ 48,
2195
+ ],
2196
+ "rowspan": 1,
2197
+ },
2198
+ "content": Array [
2199
+ Object {
2200
+ "type": "paragraph",
2201
+ },
2202
+ ],
2203
+ "type": "tableHeader",
2204
+ },
2205
+ Object {
2206
+ "attrs": Object {
2207
+ "background": null,
2208
+ "colspan": 1,
2209
+ "colwidth": Array [
2210
+ 48,
2211
+ ],
2212
+ "rowspan": 1,
2213
+ },
2214
+ "content": Array [
2215
+ Object {
2216
+ "type": "paragraph",
2217
+ },
2218
+ ],
2219
+ "type": "tableHeader",
2220
+ },
2221
+ ],
2222
+ "type": "tableRow",
2223
+ },
2224
+ Object {
2225
+ "content": Array [
2226
+ Object {
2227
+ "attrs": Object {
2228
+ "background": null,
2229
+ "colspan": 1,
2230
+ "colwidth": Array [
2231
+ 504,
2232
+ ],
2233
+ "rowspan": 1,
2234
+ },
2235
+ "content": Array [
2236
+ Object {
2237
+ "type": "paragraph",
2238
+ },
2239
+ ],
2240
+ "type": "tableCell",
2241
+ },
2242
+ Object {
2243
+ "attrs": Object {
2244
+ "background": null,
2245
+ "colspan": 1,
2246
+ "colwidth": Array [
2247
+ 48,
2248
+ ],
2249
+ "rowspan": 1,
2250
+ },
2251
+ "content": Array [
2252
+ Object {
2253
+ "type": "paragraph",
2254
+ },
2255
+ ],
2256
+ "type": "tableCell",
2257
+ },
2258
+ Object {
2259
+ "attrs": Object {
2260
+ "background": null,
2261
+ "colspan": 1,
2262
+ "colwidth": Array [
2263
+ 48,
2264
+ ],
2265
+ "rowspan": 1,
2266
+ },
2267
+ "content": Array [
2268
+ Object {
2269
+ "type": "paragraph",
2270
+ },
2271
+ ],
2272
+ "type": "tableCell",
2273
+ },
2274
+ Object {
2275
+ "attrs": Object {
2276
+ "background": null,
2277
+ "colspan": 1,
2278
+ "colwidth": Array [
2279
+ 48,
2280
+ ],
2281
+ "rowspan": 1,
2282
+ },
2283
+ "content": Array [
2284
+ Object {
2285
+ "type": "paragraph",
2286
+ },
2287
+ ],
2288
+ "type": "tableCell",
2289
+ },
2290
+ Object {
2291
+ "attrs": Object {
2292
+ "background": null,
2293
+ "colspan": 1,
2294
+ "colwidth": Array [
2295
+ 48,
2296
+ ],
2297
+ "rowspan": 1,
2298
+ },
2299
+ "content": Array [
2300
+ Object {
2301
+ "type": "paragraph",
2302
+ },
2303
+ ],
2304
+ "type": "tableCell",
2305
+ },
2306
+ ],
2307
+ "type": "tableRow",
2308
+ },
2309
+ Object {
2310
+ "content": Array [
2311
+ Object {
2312
+ "attrs": Object {
2313
+ "background": null,
2314
+ "colspan": 1,
2315
+ "colwidth": Array [
2316
+ 504,
2317
+ ],
2318
+ "rowspan": 1,
2319
+ },
2320
+ "content": Array [
2321
+ Object {
2322
+ "type": "paragraph",
2323
+ },
2324
+ ],
2325
+ "type": "tableCell",
2326
+ },
2327
+ Object {
2328
+ "attrs": Object {
2329
+ "background": null,
2330
+ "colspan": 1,
2331
+ "colwidth": Array [
2332
+ 48,
2333
+ ],
2334
+ "rowspan": 1,
2335
+ },
2336
+ "content": Array [
2337
+ Object {
2338
+ "type": "paragraph",
2339
+ },
2340
+ ],
2341
+ "type": "tableCell",
2342
+ },
2343
+ Object {
2344
+ "attrs": Object {
2345
+ "background": null,
2346
+ "colspan": 1,
2347
+ "colwidth": Array [
2348
+ 48,
2349
+ ],
2350
+ "rowspan": 1,
2351
+ },
2352
+ "content": Array [
2353
+ Object {
2354
+ "type": "paragraph",
2355
+ },
2356
+ ],
2357
+ "type": "tableCell",
2358
+ },
2359
+ Object {
2360
+ "attrs": Object {
2361
+ "background": null,
2362
+ "colspan": 1,
2363
+ "colwidth": Array [
2364
+ 48,
2365
+ ],
2366
+ "rowspan": 1,
2367
+ },
2368
+ "content": Array [
2369
+ Object {
2370
+ "type": "paragraph",
2371
+ },
2372
+ ],
2373
+ "type": "tableCell",
2374
+ },
2375
+ Object {
2376
+ "attrs": Object {
2377
+ "background": null,
2378
+ "colspan": 1,
2379
+ "colwidth": Array [
2380
+ 48,
2381
+ ],
2382
+ "rowspan": 1,
2383
+ },
2384
+ "content": Array [
2385
+ Object {
2386
+ "type": "paragraph",
2387
+ },
2388
+ ],
2389
+ "type": "tableCell",
2390
+ },
2391
+ ],
2392
+ "type": "tableRow",
2393
+ },
2394
+ ],
2395
+ "type": "table",
2396
+ },
2397
+ ],
2398
+ "type": "doc",
2399
+ }
2400
+ `;
2401
+
2402
+ exports[`Should stack columns to the right and go to overflow with overflowShadowsOptimisation 1`] = `
2403
+ Object {
2404
+ "content": Array [
2405
+ Object {
2406
+ "attrs": Object {
2407
+ "__autoSize": false,
2408
+ "isNumberColumnEnabled": false,
2409
+ "layout": "default",
2410
+ "localId": "abc-123",
2411
+ },
2412
+ "content": Array [
2413
+ Object {
2414
+ "content": Array [
2415
+ Object {
2416
+ "attrs": Object {
2417
+ "background": null,
2418
+ "colspan": 1,
2419
+ "colwidth": Array [
2420
+ 504,
2421
+ ],
2422
+ "rowspan": 1,
2423
+ },
2424
+ "content": Array [
2425
+ Object {
2426
+ "type": "paragraph",
2427
+ },
2428
+ ],
2429
+ "type": "tableHeader",
2430
+ },
2431
+ Object {
2432
+ "attrs": Object {
2433
+ "background": null,
2434
+ "colspan": 1,
2435
+ "colwidth": Array [
2436
+ 48,
2437
+ ],
2438
+ "rowspan": 1,
2439
+ },
2440
+ "content": Array [
2441
+ Object {
2442
+ "type": "paragraph",
2443
+ },
2444
+ ],
2445
+ "type": "tableHeader",
2446
+ },
2447
+ Object {
2448
+ "attrs": Object {
2449
+ "background": null,
2450
+ "colspan": 1,
2451
+ "colwidth": Array [
2452
+ 48,
2453
+ ],
2454
+ "rowspan": 1,
2455
+ },
2456
+ "content": Array [
2457
+ Object {
2458
+ "type": "paragraph",
2459
+ },
2460
+ ],
2461
+ "type": "tableHeader",
2462
+ },
2463
+ Object {
2464
+ "attrs": Object {
2465
+ "background": null,
2466
+ "colspan": 1,
2467
+ "colwidth": Array [
2468
+ 48,
2469
+ ],
2470
+ "rowspan": 1,
2471
+ },
2472
+ "content": Array [
2473
+ Object {
2474
+ "type": "paragraph",
2475
+ },
2476
+ ],
2477
+ "type": "tableHeader",
2478
+ },
2479
+ Object {
2480
+ "attrs": Object {
2481
+ "background": null,
2482
+ "colspan": 1,
2483
+ "colwidth": Array [
2484
+ 48,
2485
+ ],
2486
+ "rowspan": 1,
2487
+ },
2488
+ "content": Array [
2489
+ Object {
2490
+ "type": "paragraph",
2491
+ },
2492
+ ],
2493
+ "type": "tableHeader",
2494
+ },
2495
+ ],
2496
+ "type": "tableRow",
2497
+ },
2498
+ Object {
2499
+ "content": Array [
2500
+ Object {
2501
+ "attrs": Object {
2502
+ "background": null,
2503
+ "colspan": 1,
2504
+ "colwidth": Array [
2505
+ 504,
2506
+ ],
2507
+ "rowspan": 1,
2508
+ },
2509
+ "content": Array [
2510
+ Object {
2511
+ "type": "paragraph",
2512
+ },
2513
+ ],
2514
+ "type": "tableCell",
2515
+ },
2516
+ Object {
2517
+ "attrs": Object {
2518
+ "background": null,
2519
+ "colspan": 1,
2520
+ "colwidth": Array [
2521
+ 48,
2522
+ ],
2523
+ "rowspan": 1,
2524
+ },
2525
+ "content": Array [
2526
+ Object {
2527
+ "type": "paragraph",
2528
+ },
2529
+ ],
2530
+ "type": "tableCell",
2531
+ },
2532
+ Object {
2533
+ "attrs": Object {
2534
+ "background": null,
2535
+ "colspan": 1,
2536
+ "colwidth": Array [
2537
+ 48,
2538
+ ],
2539
+ "rowspan": 1,
2540
+ },
2541
+ "content": Array [
2542
+ Object {
2543
+ "type": "paragraph",
2544
+ },
2545
+ ],
2546
+ "type": "tableCell",
2547
+ },
2548
+ Object {
2549
+ "attrs": Object {
2550
+ "background": null,
2551
+ "colspan": 1,
2552
+ "colwidth": Array [
2553
+ 48,
2554
+ ],
2555
+ "rowspan": 1,
2556
+ },
2557
+ "content": Array [
2558
+ Object {
2559
+ "type": "paragraph",
2560
+ },
2561
+ ],
2562
+ "type": "tableCell",
2563
+ },
2564
+ Object {
2565
+ "attrs": Object {
2566
+ "background": null,
2567
+ "colspan": 1,
2568
+ "colwidth": Array [
2569
+ 48,
2570
+ ],
2571
+ "rowspan": 1,
2572
+ },
2573
+ "content": Array [
2574
+ Object {
2575
+ "type": "paragraph",
2576
+ },
2577
+ ],
2578
+ "type": "tableCell",
2579
+ },
2580
+ ],
2581
+ "type": "tableRow",
2582
+ },
2583
+ Object {
2584
+ "content": Array [
2585
+ Object {
2586
+ "attrs": Object {
2587
+ "background": null,
2588
+ "colspan": 1,
2589
+ "colwidth": Array [
2590
+ 504,
2591
+ ],
2592
+ "rowspan": 1,
2593
+ },
2594
+ "content": Array [
2595
+ Object {
2596
+ "type": "paragraph",
2597
+ },
2598
+ ],
2599
+ "type": "tableCell",
2600
+ },
2601
+ Object {
2602
+ "attrs": Object {
2603
+ "background": null,
2604
+ "colspan": 1,
2605
+ "colwidth": Array [
2606
+ 48,
2607
+ ],
2608
+ "rowspan": 1,
2609
+ },
2610
+ "content": Array [
2611
+ Object {
2612
+ "type": "paragraph",
2613
+ },
2614
+ ],
2615
+ "type": "tableCell",
2616
+ },
2617
+ Object {
2618
+ "attrs": Object {
2619
+ "background": null,
2620
+ "colspan": 1,
2621
+ "colwidth": Array [
2622
+ 48,
2623
+ ],
2624
+ "rowspan": 1,
2625
+ },
2626
+ "content": Array [
2627
+ Object {
2628
+ "type": "paragraph",
2629
+ },
2630
+ ],
2631
+ "type": "tableCell",
2632
+ },
2633
+ Object {
2634
+ "attrs": Object {
2635
+ "background": null,
2636
+ "colspan": 1,
2637
+ "colwidth": Array [
2638
+ 48,
2639
+ ],
2640
+ "rowspan": 1,
2641
+ },
2642
+ "content": Array [
2643
+ Object {
2644
+ "type": "paragraph",
2645
+ },
2646
+ ],
2647
+ "type": "tableCell",
2648
+ },
2649
+ Object {
2650
+ "attrs": Object {
2651
+ "background": null,
2652
+ "colspan": 1,
2653
+ "colwidth": Array [
2654
+ 48,
2655
+ ],
2656
+ "rowspan": 1,
2657
+ },
2658
+ "content": Array [
2659
+ Object {
2660
+ "type": "paragraph",
2661
+ },
2662
+ ],
2663
+ "type": "tableCell",
2664
+ },
2665
+ ],
2666
+ "type": "tableRow",
2667
+ },
2668
+ ],
2669
+ "type": "table",
2670
+ },
2671
+ ],
2672
+ "type": "doc",
2673
+ }
2674
+ `;