@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,818 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Should delete merged columns from contextual menu and append missing cells to the table 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": "#ffffff",
19
+ "colspan": 1,
20
+ "colwidth": Array [
21
+ 151,
22
+ ],
23
+ "rowspan": 1,
24
+ },
25
+ "content": Array [
26
+ Object {
27
+ "content": Array [
28
+ Object {
29
+ "text": "1",
30
+ "type": "text",
31
+ },
32
+ ],
33
+ "type": "paragraph",
34
+ },
35
+ ],
36
+ "type": "tableHeader",
37
+ },
38
+ Object {
39
+ "attrs": Object {
40
+ "background": "#e6fcff",
41
+ "colspan": 1,
42
+ "colwidth": Array [
43
+ 275,
44
+ ],
45
+ "rowspan": 1,
46
+ },
47
+ "content": Array [
48
+ Object {
49
+ "content": Array [
50
+ Object {
51
+ "text": "3",
52
+ "type": "text",
53
+ },
54
+ ],
55
+ "type": "paragraph",
56
+ },
57
+ ],
58
+ "type": "tableHeader",
59
+ },
60
+ Object {
61
+ "attrs": Object {
62
+ "background": "#eae6ff",
63
+ "colspan": 1,
64
+ "colwidth": Array [
65
+ 83,
66
+ ],
67
+ "rowspan": 1,
68
+ },
69
+ "content": Array [
70
+ Object {
71
+ "content": Array [
72
+ Object {
73
+ "text": "4",
74
+ "type": "text",
75
+ },
76
+ ],
77
+ "type": "paragraph",
78
+ },
79
+ ],
80
+ "type": "tableHeader",
81
+ },
82
+ Object {
83
+ "attrs": Object {
84
+ "background": "#ffffff",
85
+ "colspan": 1,
86
+ "colwidth": Array [
87
+ 152,
88
+ ],
89
+ "rowspan": 1,
90
+ },
91
+ "content": Array [
92
+ Object {
93
+ "content": Array [
94
+ Object {
95
+ "text": "5",
96
+ "type": "text",
97
+ },
98
+ ],
99
+ "type": "paragraph",
100
+ },
101
+ ],
102
+ "type": "tableHeader",
103
+ },
104
+ ],
105
+ "type": "tableRow",
106
+ },
107
+ Object {
108
+ "content": Array [
109
+ Object {
110
+ "attrs": Object {
111
+ "background": "#e6fcff",
112
+ "colspan": 1,
113
+ "colwidth": Array [
114
+ 151,
115
+ ],
116
+ "rowspan": 1,
117
+ },
118
+ "content": Array [
119
+ Object {
120
+ "content": Array [
121
+ Object {
122
+ "text": "2",
123
+ "type": "text",
124
+ },
125
+ ],
126
+ "type": "paragraph",
127
+ },
128
+ ],
129
+ "type": "tableCell",
130
+ },
131
+ Object {
132
+ "attrs": Object {
133
+ "background": "#fffae6",
134
+ "colspan": 1,
135
+ "colwidth": Array [
136
+ 275,
137
+ ],
138
+ "rowspan": 1,
139
+ },
140
+ "content": Array [
141
+ Object {
142
+ "type": "paragraph",
143
+ },
144
+ ],
145
+ "type": "tableCell",
146
+ },
147
+ Object {
148
+ "attrs": Object {
149
+ "background": "#fffae6",
150
+ "colspan": 1,
151
+ "colwidth": Array [
152
+ 83,
153
+ ],
154
+ "rowspan": 1,
155
+ },
156
+ "content": Array [
157
+ Object {
158
+ "type": "paragraph",
159
+ },
160
+ ],
161
+ "type": "tableCell",
162
+ },
163
+ Object {
164
+ "attrs": Object {
165
+ "background": "#e6fcff",
166
+ "colspan": 1,
167
+ "colwidth": Array [
168
+ 152,
169
+ ],
170
+ "rowspan": 1,
171
+ },
172
+ "content": Array [
173
+ Object {
174
+ "content": Array [
175
+ Object {
176
+ "text": "2",
177
+ "type": "text",
178
+ },
179
+ ],
180
+ "type": "paragraph",
181
+ },
182
+ ],
183
+ "type": "tableCell",
184
+ },
185
+ ],
186
+ "type": "tableRow",
187
+ },
188
+ Object {
189
+ "content": Array [
190
+ Object {
191
+ "attrs": Object {
192
+ "background": "#ffebe6",
193
+ "colspan": 1,
194
+ "colwidth": Array [
195
+ 151,
196
+ ],
197
+ "rowspan": 1,
198
+ },
199
+ "content": Array [
200
+ Object {
201
+ "content": Array [
202
+ Object {
203
+ "text": "3",
204
+ "type": "text",
205
+ },
206
+ ],
207
+ "type": "paragraph",
208
+ },
209
+ ],
210
+ "type": "tableCell",
211
+ },
212
+ Object {
213
+ "attrs": Object {
214
+ "background": "#fffae6",
215
+ "colspan": 1,
216
+ "colwidth": Array [
217
+ 275,
218
+ ],
219
+ "rowspan": 1,
220
+ },
221
+ "content": Array [
222
+ Object {
223
+ "type": "paragraph",
224
+ },
225
+ ],
226
+ "type": "tableCell",
227
+ },
228
+ Object {
229
+ "attrs": Object {
230
+ "background": "#fffae6",
231
+ "colspan": 1,
232
+ "colwidth": Array [
233
+ 83,
234
+ ],
235
+ "rowspan": 1,
236
+ },
237
+ "content": Array [
238
+ Object {
239
+ "type": "paragraph",
240
+ },
241
+ ],
242
+ "type": "tableCell",
243
+ },
244
+ Object {
245
+ "attrs": Object {
246
+ "background": "#ffebe6",
247
+ "colspan": 1,
248
+ "colwidth": Array [
249
+ 152,
250
+ ],
251
+ "rowspan": 1,
252
+ },
253
+ "content": Array [
254
+ Object {
255
+ "content": Array [
256
+ Object {
257
+ "text": "3",
258
+ "type": "text",
259
+ },
260
+ ],
261
+ "type": "paragraph",
262
+ },
263
+ ],
264
+ "type": "tableCell",
265
+ },
266
+ ],
267
+ "type": "tableRow",
268
+ },
269
+ Object {
270
+ "content": Array [
271
+ Object {
272
+ "attrs": Object {
273
+ "background": "#e3fcef",
274
+ "colspan": 1,
275
+ "colwidth": Array [
276
+ 151,
277
+ ],
278
+ "rowspan": 1,
279
+ },
280
+ "content": Array [
281
+ Object {
282
+ "content": Array [
283
+ Object {
284
+ "text": "4",
285
+ "type": "text",
286
+ },
287
+ ],
288
+ "type": "paragraph",
289
+ },
290
+ ],
291
+ "type": "tableCell",
292
+ },
293
+ Object {
294
+ "attrs": Object {
295
+ "background": "#fffae6",
296
+ "colspan": 1,
297
+ "colwidth": Array [
298
+ 275,
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": "#fffae6",
312
+ "colspan": 1,
313
+ "colwidth": Array [
314
+ 83,
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": "#e3fcef",
328
+ "colspan": 1,
329
+ "colwidth": Array [
330
+ 152,
331
+ ],
332
+ "rowspan": 1,
333
+ },
334
+ "content": Array [
335
+ Object {
336
+ "content": Array [
337
+ Object {
338
+ "text": "4",
339
+ "type": "text",
340
+ },
341
+ ],
342
+ "type": "paragraph",
343
+ },
344
+ ],
345
+ "type": "tableCell",
346
+ },
347
+ ],
348
+ "type": "tableRow",
349
+ },
350
+ Object {
351
+ "content": Array [
352
+ Object {
353
+ "attrs": Object {
354
+ "background": "#ffffff",
355
+ "colspan": 1,
356
+ "colwidth": Array [
357
+ 151,
358
+ ],
359
+ "rowspan": 1,
360
+ },
361
+ "content": Array [
362
+ Object {
363
+ "content": Array [
364
+ Object {
365
+ "text": "5",
366
+ "type": "text",
367
+ },
368
+ ],
369
+ "type": "paragraph",
370
+ },
371
+ ],
372
+ "type": "tableCell",
373
+ },
374
+ Object {
375
+ "attrs": Object {
376
+ "background": "#e6fcff",
377
+ "colspan": 1,
378
+ "colwidth": Array [
379
+ 275,
380
+ ],
381
+ "rowspan": 1,
382
+ },
383
+ "content": Array [
384
+ Object {
385
+ "content": Array [
386
+ Object {
387
+ "text": "3",
388
+ "type": "text",
389
+ },
390
+ ],
391
+ "type": "paragraph",
392
+ },
393
+ ],
394
+ "type": "tableCell",
395
+ },
396
+ Object {
397
+ "attrs": Object {
398
+ "background": "#eae6ff",
399
+ "colspan": 1,
400
+ "colwidth": Array [
401
+ 83,
402
+ ],
403
+ "rowspan": 1,
404
+ },
405
+ "content": Array [
406
+ Object {
407
+ "content": Array [
408
+ Object {
409
+ "text": "4",
410
+ "type": "text",
411
+ },
412
+ ],
413
+ "type": "paragraph",
414
+ },
415
+ ],
416
+ "type": "tableCell",
417
+ },
418
+ Object {
419
+ "attrs": Object {
420
+ "background": "#ffffff",
421
+ "colspan": 1,
422
+ "colwidth": Array [
423
+ 152,
424
+ ],
425
+ "rowspan": 1,
426
+ },
427
+ "content": Array [
428
+ Object {
429
+ "content": Array [
430
+ Object {
431
+ "text": "5",
432
+ "type": "text",
433
+ },
434
+ ],
435
+ "type": "paragraph",
436
+ },
437
+ ],
438
+ "type": "tableCell",
439
+ },
440
+ ],
441
+ "type": "tableRow",
442
+ },
443
+ ],
444
+ "type": "table",
445
+ },
446
+ ],
447
+ "type": "doc",
448
+ }
449
+ `;
450
+
451
+ exports[`Should delete merged columns from contextual menu and decrement colspan of the spanning cell 1`] = `
452
+ Object {
453
+ "content": Array [
454
+ Object {
455
+ "attrs": Object {
456
+ "__autoSize": false,
457
+ "isNumberColumnEnabled": false,
458
+ "layout": "default",
459
+ "localId": "abc-123",
460
+ },
461
+ "content": Array [
462
+ Object {
463
+ "content": Array [
464
+ Object {
465
+ "attrs": Object {
466
+ "background": "#ffffff",
467
+ "colspan": 1,
468
+ "colwidth": Array [
469
+ 151,
470
+ ],
471
+ "rowspan": 1,
472
+ },
473
+ "content": Array [
474
+ Object {
475
+ "content": Array [
476
+ Object {
477
+ "text": "1",
478
+ "type": "text",
479
+ },
480
+ ],
481
+ "type": "paragraph",
482
+ },
483
+ ],
484
+ "type": "tableHeader",
485
+ },
486
+ Object {
487
+ "attrs": Object {
488
+ "background": "#deebff",
489
+ "colspan": 1,
490
+ "colwidth": Array [
491
+ 98,
492
+ ],
493
+ "rowspan": 1,
494
+ },
495
+ "content": Array [
496
+ Object {
497
+ "content": Array [
498
+ Object {
499
+ "text": "2",
500
+ "type": "text",
501
+ },
502
+ ],
503
+ "type": "paragraph",
504
+ },
505
+ ],
506
+ "type": "tableHeader",
507
+ },
508
+ Object {
509
+ "attrs": Object {
510
+ "background": "#eae6ff",
511
+ "colspan": 1,
512
+ "colwidth": Array [
513
+ 83,
514
+ ],
515
+ "rowspan": 1,
516
+ },
517
+ "content": Array [
518
+ Object {
519
+ "content": Array [
520
+ Object {
521
+ "text": "4",
522
+ "type": "text",
523
+ },
524
+ ],
525
+ "type": "paragraph",
526
+ },
527
+ ],
528
+ "type": "tableHeader",
529
+ },
530
+ Object {
531
+ "attrs": Object {
532
+ "background": "#ffffff",
533
+ "colspan": 1,
534
+ "colwidth": Array [
535
+ 152,
536
+ ],
537
+ "rowspan": 1,
538
+ },
539
+ "content": Array [
540
+ Object {
541
+ "content": Array [
542
+ Object {
543
+ "text": "5",
544
+ "type": "text",
545
+ },
546
+ ],
547
+ "type": "paragraph",
548
+ },
549
+ ],
550
+ "type": "tableHeader",
551
+ },
552
+ ],
553
+ "type": "tableRow",
554
+ },
555
+ Object {
556
+ "content": Array [
557
+ Object {
558
+ "attrs": Object {
559
+ "background": "#e6fcff",
560
+ "colspan": 1,
561
+ "colwidth": Array [
562
+ 151,
563
+ ],
564
+ "rowspan": 1,
565
+ },
566
+ "content": Array [
567
+ Object {
568
+ "content": Array [
569
+ Object {
570
+ "text": "2",
571
+ "type": "text",
572
+ },
573
+ ],
574
+ "type": "paragraph",
575
+ },
576
+ ],
577
+ "type": "tableCell",
578
+ },
579
+ Object {
580
+ "attrs": Object {
581
+ "background": "#fffae6",
582
+ "colspan": 2,
583
+ "colwidth": Array [
584
+ 98,
585
+ 83,
586
+ ],
587
+ "rowspan": 3,
588
+ },
589
+ "content": Array [
590
+ Object {
591
+ "type": "paragraph",
592
+ },
593
+ ],
594
+ "type": "tableCell",
595
+ },
596
+ Object {
597
+ "attrs": Object {
598
+ "background": "#e6fcff",
599
+ "colspan": 1,
600
+ "colwidth": Array [
601
+ 152,
602
+ ],
603
+ "rowspan": 1,
604
+ },
605
+ "content": Array [
606
+ Object {
607
+ "content": Array [
608
+ Object {
609
+ "text": "2",
610
+ "type": "text",
611
+ },
612
+ ],
613
+ "type": "paragraph",
614
+ },
615
+ ],
616
+ "type": "tableCell",
617
+ },
618
+ ],
619
+ "type": "tableRow",
620
+ },
621
+ Object {
622
+ "content": Array [
623
+ Object {
624
+ "attrs": Object {
625
+ "background": "#ffebe6",
626
+ "colspan": 1,
627
+ "colwidth": Array [
628
+ 151,
629
+ ],
630
+ "rowspan": 1,
631
+ },
632
+ "content": Array [
633
+ Object {
634
+ "content": Array [
635
+ Object {
636
+ "text": "3",
637
+ "type": "text",
638
+ },
639
+ ],
640
+ "type": "paragraph",
641
+ },
642
+ ],
643
+ "type": "tableCell",
644
+ },
645
+ Object {
646
+ "attrs": Object {
647
+ "background": "#ffebe6",
648
+ "colspan": 1,
649
+ "colwidth": Array [
650
+ 152,
651
+ ],
652
+ "rowspan": 1,
653
+ },
654
+ "content": Array [
655
+ Object {
656
+ "content": Array [
657
+ Object {
658
+ "text": "3",
659
+ "type": "text",
660
+ },
661
+ ],
662
+ "type": "paragraph",
663
+ },
664
+ ],
665
+ "type": "tableCell",
666
+ },
667
+ ],
668
+ "type": "tableRow",
669
+ },
670
+ Object {
671
+ "content": Array [
672
+ Object {
673
+ "attrs": Object {
674
+ "background": "#e3fcef",
675
+ "colspan": 1,
676
+ "colwidth": Array [
677
+ 151,
678
+ ],
679
+ "rowspan": 1,
680
+ },
681
+ "content": Array [
682
+ Object {
683
+ "content": Array [
684
+ Object {
685
+ "text": "4",
686
+ "type": "text",
687
+ },
688
+ ],
689
+ "type": "paragraph",
690
+ },
691
+ ],
692
+ "type": "tableCell",
693
+ },
694
+ Object {
695
+ "attrs": Object {
696
+ "background": "#e3fcef",
697
+ "colspan": 1,
698
+ "colwidth": Array [
699
+ 152,
700
+ ],
701
+ "rowspan": 1,
702
+ },
703
+ "content": Array [
704
+ Object {
705
+ "content": Array [
706
+ Object {
707
+ "text": "4",
708
+ "type": "text",
709
+ },
710
+ ],
711
+ "type": "paragraph",
712
+ },
713
+ ],
714
+ "type": "tableCell",
715
+ },
716
+ ],
717
+ "type": "tableRow",
718
+ },
719
+ Object {
720
+ "content": Array [
721
+ Object {
722
+ "attrs": Object {
723
+ "background": "#ffffff",
724
+ "colspan": 1,
725
+ "colwidth": Array [
726
+ 151,
727
+ ],
728
+ "rowspan": 1,
729
+ },
730
+ "content": Array [
731
+ Object {
732
+ "content": Array [
733
+ Object {
734
+ "text": "5",
735
+ "type": "text",
736
+ },
737
+ ],
738
+ "type": "paragraph",
739
+ },
740
+ ],
741
+ "type": "tableCell",
742
+ },
743
+ Object {
744
+ "attrs": Object {
745
+ "background": "#deebff",
746
+ "colspan": 1,
747
+ "colwidth": Array [
748
+ 98,
749
+ ],
750
+ "rowspan": 1,
751
+ },
752
+ "content": Array [
753
+ Object {
754
+ "content": Array [
755
+ Object {
756
+ "text": "2",
757
+ "type": "text",
758
+ },
759
+ ],
760
+ "type": "paragraph",
761
+ },
762
+ ],
763
+ "type": "tableCell",
764
+ },
765
+ Object {
766
+ "attrs": Object {
767
+ "background": "#eae6ff",
768
+ "colspan": 1,
769
+ "colwidth": Array [
770
+ 83,
771
+ ],
772
+ "rowspan": 1,
773
+ },
774
+ "content": Array [
775
+ Object {
776
+ "content": Array [
777
+ Object {
778
+ "text": "4",
779
+ "type": "text",
780
+ },
781
+ ],
782
+ "type": "paragraph",
783
+ },
784
+ ],
785
+ "type": "tableCell",
786
+ },
787
+ Object {
788
+ "attrs": Object {
789
+ "background": "#ffffff",
790
+ "colspan": 1,
791
+ "colwidth": Array [
792
+ 152,
793
+ ],
794
+ "rowspan": 1,
795
+ },
796
+ "content": Array [
797
+ Object {
798
+ "content": Array [
799
+ Object {
800
+ "text": "5",
801
+ "type": "text",
802
+ },
803
+ ],
804
+ "type": "paragraph",
805
+ },
806
+ ],
807
+ "type": "tableCell",
808
+ },
809
+ ],
810
+ "type": "tableRow",
811
+ },
812
+ ],
813
+ "type": "table",
814
+ },
815
+ ],
816
+ "type": "doc",
817
+ }
818
+ `;