@atlaskit/editor-plugin-table 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/plugins/table/index.js +42 -15
  3. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/es2019/plugins/table/index.js +287 -255
  6. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/plugins/table/index.js +41 -15
  9. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  10. package/dist/esm/version.json +1 -1
  11. package/dist/types/plugins/table/index.d.ts +1 -2
  12. package/dist/types-ts4.0/index.d.ts +1 -0
  13. package/dist/types-ts4.0/plugins/plugin-key.d.ts +4 -0
  14. package/dist/types-ts4.0/plugins/table/commands/clear.d.ts +3 -0
  15. package/dist/types-ts4.0/plugins/table/commands/collapse.d.ts +2 -0
  16. package/dist/types-ts4.0/plugins/table/commands/go-to-next-cell.d.ts +4 -0
  17. package/dist/types-ts4.0/plugins/table/commands/hover.d.ts +8 -0
  18. package/dist/types-ts4.0/plugins/table/commands/index.d.ts +7 -0
  19. package/dist/types-ts4.0/plugins/table/commands/insert.d.ts +10 -0
  20. package/dist/types-ts4.0/plugins/table/commands/misc.d.ts +27 -0
  21. package/dist/types-ts4.0/plugins/table/commands/selection.d.ts +8 -0
  22. package/dist/types-ts4.0/plugins/table/commands/sort.d.ts +3 -0
  23. package/dist/types-ts4.0/plugins/table/commands/split-cell.d.ts +6 -0
  24. package/dist/types-ts4.0/plugins/table/commands/toggle.d.ts +12 -0
  25. package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +26 -0
  26. package/dist/types-ts4.0/plugins/table/create-plugin-config.d.ts +2 -0
  27. package/dist/types-ts4.0/plugins/table/event-handlers.d.ts +16 -0
  28. package/dist/types-ts4.0/plugins/table/handlers.d.ts +3 -0
  29. package/dist/types-ts4.0/plugins/table/index.d.ts +17 -0
  30. package/dist/types-ts4.0/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +26 -0
  31. package/dist/types-ts4.0/plugins/table/nodeviews/TableComponent.d.ts +72 -0
  32. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
  33. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
  34. package/dist/types-ts4.0/plugins/table/nodeviews/table.d.ts +31 -0
  35. package/dist/types-ts4.0/plugins/table/nodeviews/tableCell.d.ts +19 -0
  36. package/dist/types-ts4.0/plugins/table/nodeviews/types.d.ts +23 -0
  37. package/dist/types-ts4.0/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
  38. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
  39. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
  40. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
  41. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
  42. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
  43. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
  44. package/dist/types-ts4.0/plugins/table/pm-plugins/default-table-selection.d.ts +5 -0
  45. package/dist/types-ts4.0/plugins/table/pm-plugins/keymap.d.ts +5 -0
  46. package/dist/types-ts4.0/plugins/table/pm-plugins/main.d.ts +8 -0
  47. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
  48. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
  49. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +4 -0
  50. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
  51. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
  52. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
  53. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
  54. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +65 -0
  55. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
  56. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
  57. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
  58. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
  59. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
  60. package/dist/types-ts4.0/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
  61. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
  62. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
  63. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/index.d.ts +3 -0
  64. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
  65. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
  66. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
  67. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
  68. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +8 -0
  69. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
  70. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
  71. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
  72. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
  73. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
  74. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
  75. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
  76. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
  77. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
  78. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
  79. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
  80. package/dist/types-ts4.0/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
  81. package/dist/types-ts4.0/plugins/table/reducer.d.ts +3 -0
  82. package/dist/types-ts4.0/plugins/table/todo-stubs.d.ts +1 -0
  83. package/dist/types-ts4.0/plugins/table/toolbar.d.ts +36 -0
  84. package/dist/types-ts4.0/plugins/table/transforms/column-width.d.ts +18 -0
  85. package/dist/types-ts4.0/plugins/table/transforms/delete-columns.d.ts +3 -0
  86. package/dist/types-ts4.0/plugins/table/transforms/delete-rows.d.ts +3 -0
  87. package/dist/types-ts4.0/plugins/table/transforms/fix-tables.d.ts +10 -0
  88. package/dist/types-ts4.0/plugins/table/transforms/index.d.ts +7 -0
  89. package/dist/types-ts4.0/plugins/table/transforms/merge.d.ts +5 -0
  90. package/dist/types-ts4.0/plugins/table/transforms/metadata.d.ts +21 -0
  91. package/dist/types-ts4.0/plugins/table/transforms/replace-table.d.ts +5 -0
  92. package/dist/types-ts4.0/plugins/table/transforms/split.d.ts +9 -0
  93. package/dist/types-ts4.0/plugins/table/types.d.ts +328 -0
  94. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
  95. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -0
  96. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +87 -0
  97. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/index.d.ts +22 -0
  98. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
  99. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
  100. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
  101. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
  102. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
  103. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
  104. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
  105. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
  106. package/dist/types-ts4.0/plugins/table/ui/LayoutButton/index.d.ts +21 -0
  107. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +19 -0
  108. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
  109. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
  110. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
  111. package/dist/types-ts4.0/plugins/table/ui/common-styles.d.ts +4 -0
  112. package/dist/types-ts4.0/plugins/table/ui/consts.d.ts +39 -0
  113. package/dist/types-ts4.0/plugins/table/ui/messages.d.ts +38 -0
  114. package/dist/types-ts4.0/plugins/table/ui/ui-styles.d.ts +15 -0
  115. package/dist/types-ts4.0/plugins/table/utils/analytics.d.ts +18 -0
  116. package/dist/types-ts4.0/plugins/table/utils/collapse.d.ts +29 -0
  117. package/dist/types-ts4.0/plugins/table/utils/column-controls.d.ts +10 -0
  118. package/dist/types-ts4.0/plugins/table/utils/decoration.d.ts +16 -0
  119. package/dist/types-ts4.0/plugins/table/utils/dom.d.ts +20 -0
  120. package/dist/types-ts4.0/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
  121. package/dist/types-ts4.0/plugins/table/utils/index.d.ts +11 -0
  122. package/dist/types-ts4.0/plugins/table/utils/nodes.d.ts +12 -0
  123. package/dist/types-ts4.0/plugins/table/utils/paste.d.ts +14 -0
  124. package/dist/types-ts4.0/plugins/table/utils/referentiality.d.ts +2 -0
  125. package/dist/types-ts4.0/plugins/table/utils/row-controls.d.ts +16 -0
  126. package/dist/types-ts4.0/plugins/table/utils/selection.d.ts +6 -0
  127. package/dist/types-ts4.0/plugins/table/utils/table.d.ts +4 -0
  128. package/dist/types-ts4.0/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
  129. package/dist/types-ts4.0/plugins/table-plugin.d.ts +2 -0
  130. package/dist/types-ts4.0/types.d.ts +3 -0
  131. package/examples/99-testing.tsx +227 -0
  132. package/package.json +16 -3
  133. package/report.api.md +61 -24
  134. package/src/plugins/table/__tests__/integration/__fixtures__/auto-size-documents.ts +439 -0
  135. package/src/plugins/table/__tests__/integration/__fixtures__/basic-table.ts +120 -0
  136. package/src/plugins/table/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +396 -0
  137. package/src/plugins/table/__tests__/integration/__fixtures__/even-columns.ts +493 -0
  138. package/src/plugins/table/__tests__/integration/__fixtures__/layout-documents.ts +607 -0
  139. package/src/plugins/table/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +343 -0
  140. package/src/plugins/table/__tests__/integration/__fixtures__/nested-in-extension.ts +163 -0
  141. package/src/plugins/table/__tests__/integration/__fixtures__/paragraph-and-table-adf.json +130 -0
  142. package/src/plugins/table/__tests__/integration/__fixtures__/resize-documents.ts +1610 -0
  143. package/src/plugins/table/__tests__/integration/__fixtures__/scale.ts +825 -0
  144. package/src/plugins/table/__tests__/integration/__fixtures__/table-inside-layout.ts +145 -0
  145. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +175 -0
  146. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +168 -0
  147. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +216 -0
  148. package/src/plugins/table/__tests__/integration/__snapshots__/auto-size.ts.snap +609 -0
  149. package/src/plugins/table/__tests__/integration/__snapshots__/change-date-inside-table.ts.snap +173 -0
  150. package/src/plugins/table/__tests__/integration/__snapshots__/copy-button.ts.snap +421 -0
  151. package/src/plugins/table/__tests__/integration/__snapshots__/delete-columns.ts.snap +818 -0
  152. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +119 -0
  153. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +119 -0
  154. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +227 -0
  155. package/src/plugins/table/__tests__/integration/__snapshots__/delete-rows.ts.snap +959 -0
  156. package/src/plugins/table/__tests__/integration/__snapshots__/delete-table-when-selected.ts.snap +101 -0
  157. package/src/plugins/table/__tests__/integration/__snapshots__/deleting-empty-paragraph-under-table.ts.snap +502 -0
  158. package/src/plugins/table/__tests__/integration/__snapshots__/even-columns.ts.snap +645 -0
  159. package/src/plugins/table/__tests__/integration/__snapshots__/insert-cell-header-with-strong-mark.ts.snap +172 -0
  160. package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +238 -0
  161. package/src/plugins/table/__tests__/integration/__snapshots__/layout.ts.snap +1645 -0
  162. package/src/plugins/table/__tests__/integration/__snapshots__/resize.ts.snap +2674 -0
  163. package/src/plugins/table/__tests__/integration/__snapshots__/scale.ts.snap +1083 -0
  164. package/src/plugins/table/__tests__/integration/arrow-down-into-table.ts +38 -0
  165. package/src/plugins/table/__tests__/integration/auto-size.ts +87 -0
  166. package/src/plugins/table/__tests__/integration/block-node-selection.ts +162 -163
  167. package/src/plugins/table/__tests__/integration/cell-selection.ts +101 -0
  168. package/src/plugins/table/__tests__/integration/change-date-inside-table.ts +47 -0
  169. package/src/plugins/table/__tests__/integration/copy-button.ts +179 -0
  170. package/src/plugins/table/__tests__/integration/delete-columns.ts +95 -0
  171. package/src/plugins/table/__tests__/integration/delete-last-column-in-full-width.ts +70 -0
  172. package/src/plugins/table/__tests__/integration/delete-last-column-with-empty-action.ts +58 -0
  173. package/src/plugins/table/__tests__/integration/delete-last-row-with-empty-action.ts +97 -0
  174. package/src/plugins/table/__tests__/integration/delete-rows.ts +122 -0
  175. package/src/plugins/table/__tests__/integration/delete-table-when-selected.ts +110 -0
  176. package/src/plugins/table/__tests__/integration/deleting-empty-paragraph-under-table.ts +86 -0
  177. package/src/plugins/table/__tests__/integration/even-columns.ts +72 -0
  178. package/src/plugins/table/__tests__/integration/insert-cell-header-with-strong-mark.ts +40 -0
  179. package/src/plugins/table/__tests__/integration/insert-long-smart-link.ts +52 -0
  180. package/src/plugins/table/__tests__/integration/insert-row-inside-layout.ts +47 -0
  181. package/src/plugins/table/__tests__/integration/layout.ts +224 -0
  182. package/src/plugins/table/__tests__/integration/resize-handler.ts +101 -0
  183. package/src/plugins/table/__tests__/integration/resize.ts +342 -0
  184. package/src/plugins/table/__tests__/integration/scale.ts +67 -0
  185. package/src/plugins/table/__tests__/integration/table-controls-selection.ts +70 -0
  186. package/src/plugins/table/__tests__/unit/commands/insert.ts +0 -1
  187. package/src/plugins/table/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +2 -0
  188. package/src/plugins/table/index.tsx +322 -295
  189. package/src/plugins/table/ui/FloatingContextualButton/index.tsx +2 -2
  190. package/types/package.json +8 -1
@@ -0,0 +1,1645 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Avoid overflow when table scale to full width 1`] = `
4
+ Object {
5
+ "content": Array [
6
+ Object {
7
+ "attrs": Object {
8
+ "__autoSize": false,
9
+ "isNumberColumnEnabled": false,
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
+ 554,
22
+ ],
23
+ "rowspan": 1,
24
+ },
25
+ "content": Array [
26
+ Object {
27
+ "type": "paragraph",
28
+ },
29
+ ],
30
+ "type": "tableHeader",
31
+ },
32
+ Object {
33
+ "attrs": Object {
34
+ "background": null,
35
+ "colspan": 1,
36
+ "colwidth": Array [
37
+ 1130,
38
+ ],
39
+ "rowspan": 1,
40
+ },
41
+ "content": Array [
42
+ Object {
43
+ "type": "paragraph",
44
+ },
45
+ ],
46
+ "type": "tableHeader",
47
+ },
48
+ Object {
49
+ "attrs": Object {
50
+ "background": null,
51
+ "colspan": 1,
52
+ "colwidth": Array [
53
+ 116,
54
+ ],
55
+ "rowspan": 1,
56
+ },
57
+ "content": Array [
58
+ Object {
59
+ "type": "paragraph",
60
+ },
61
+ ],
62
+ "type": "tableHeader",
63
+ },
64
+ ],
65
+ "type": "tableRow",
66
+ },
67
+ Object {
68
+ "content": Array [
69
+ Object {
70
+ "attrs": Object {
71
+ "background": null,
72
+ "colspan": 1,
73
+ "colwidth": Array [
74
+ 554,
75
+ ],
76
+ "rowspan": 1,
77
+ },
78
+ "content": Array [
79
+ Object {
80
+ "type": "paragraph",
81
+ },
82
+ ],
83
+ "type": "tableCell",
84
+ },
85
+ Object {
86
+ "attrs": Object {
87
+ "background": null,
88
+ "colspan": 1,
89
+ "colwidth": Array [
90
+ 1130,
91
+ ],
92
+ "rowspan": 1,
93
+ },
94
+ "content": Array [
95
+ Object {
96
+ "type": "paragraph",
97
+ },
98
+ ],
99
+ "type": "tableCell",
100
+ },
101
+ Object {
102
+ "attrs": Object {
103
+ "background": null,
104
+ "colspan": 1,
105
+ "colwidth": Array [
106
+ 116,
107
+ ],
108
+ "rowspan": 1,
109
+ },
110
+ "content": Array [
111
+ Object {
112
+ "type": "paragraph",
113
+ },
114
+ ],
115
+ "type": "tableCell",
116
+ },
117
+ ],
118
+ "type": "tableRow",
119
+ },
120
+ Object {
121
+ "content": Array [
122
+ Object {
123
+ "attrs": Object {
124
+ "background": null,
125
+ "colspan": 1,
126
+ "colwidth": Array [
127
+ 554,
128
+ ],
129
+ "rowspan": 1,
130
+ },
131
+ "content": Array [
132
+ Object {
133
+ "type": "paragraph",
134
+ },
135
+ ],
136
+ "type": "tableCell",
137
+ },
138
+ Object {
139
+ "attrs": Object {
140
+ "background": null,
141
+ "colspan": 1,
142
+ "colwidth": Array [
143
+ 1130,
144
+ ],
145
+ "rowspan": 1,
146
+ },
147
+ "content": Array [
148
+ Object {
149
+ "type": "paragraph",
150
+ },
151
+ ],
152
+ "type": "tableCell",
153
+ },
154
+ Object {
155
+ "attrs": Object {
156
+ "background": null,
157
+ "colspan": 1,
158
+ "colwidth": Array [
159
+ 116,
160
+ ],
161
+ "rowspan": 1,
162
+ },
163
+ "content": Array [
164
+ Object {
165
+ "type": "paragraph",
166
+ },
167
+ ],
168
+ "type": "tableCell",
169
+ },
170
+ ],
171
+ "type": "tableRow",
172
+ },
173
+ ],
174
+ "type": "table",
175
+ },
176
+ ],
177
+ "type": "doc",
178
+ }
179
+ `;
180
+
181
+ exports[`Avoid overflow when table scale to wide 1`] = `
182
+ Object {
183
+ "content": Array [
184
+ Object {
185
+ "attrs": Object {
186
+ "__autoSize": false,
187
+ "isNumberColumnEnabled": false,
188
+ "layout": "wide",
189
+ "localId": "abc-123",
190
+ },
191
+ "content": Array [
192
+ Object {
193
+ "content": Array [
194
+ Object {
195
+ "attrs": Object {
196
+ "background": null,
197
+ "colspan": 1,
198
+ "colwidth": Array [
199
+ 295,
200
+ ],
201
+ "rowspan": 1,
202
+ },
203
+ "content": Array [
204
+ Object {
205
+ "type": "paragraph",
206
+ },
207
+ ],
208
+ "type": "tableHeader",
209
+ },
210
+ Object {
211
+ "attrs": Object {
212
+ "background": null,
213
+ "colspan": 1,
214
+ "colwidth": Array [
215
+ 603,
216
+ ],
217
+ "rowspan": 1,
218
+ },
219
+ "content": Array [
220
+ Object {
221
+ "type": "paragraph",
222
+ },
223
+ ],
224
+ "type": "tableHeader",
225
+ },
226
+ Object {
227
+ "attrs": Object {
228
+ "background": null,
229
+ "colspan": 1,
230
+ "colwidth": Array [
231
+ 62,
232
+ ],
233
+ "rowspan": 1,
234
+ },
235
+ "content": Array [
236
+ Object {
237
+ "type": "paragraph",
238
+ },
239
+ ],
240
+ "type": "tableHeader",
241
+ },
242
+ ],
243
+ "type": "tableRow",
244
+ },
245
+ Object {
246
+ "content": Array [
247
+ Object {
248
+ "attrs": Object {
249
+ "background": null,
250
+ "colspan": 1,
251
+ "colwidth": Array [
252
+ 295,
253
+ ],
254
+ "rowspan": 1,
255
+ },
256
+ "content": Array [
257
+ Object {
258
+ "type": "paragraph",
259
+ },
260
+ ],
261
+ "type": "tableCell",
262
+ },
263
+ Object {
264
+ "attrs": Object {
265
+ "background": null,
266
+ "colspan": 1,
267
+ "colwidth": Array [
268
+ 603,
269
+ ],
270
+ "rowspan": 1,
271
+ },
272
+ "content": Array [
273
+ Object {
274
+ "type": "paragraph",
275
+ },
276
+ ],
277
+ "type": "tableCell",
278
+ },
279
+ Object {
280
+ "attrs": Object {
281
+ "background": null,
282
+ "colspan": 1,
283
+ "colwidth": Array [
284
+ 62,
285
+ ],
286
+ "rowspan": 1,
287
+ },
288
+ "content": Array [
289
+ Object {
290
+ "type": "paragraph",
291
+ },
292
+ ],
293
+ "type": "tableCell",
294
+ },
295
+ ],
296
+ "type": "tableRow",
297
+ },
298
+ Object {
299
+ "content": Array [
300
+ Object {
301
+ "attrs": Object {
302
+ "background": null,
303
+ "colspan": 1,
304
+ "colwidth": Array [
305
+ 295,
306
+ ],
307
+ "rowspan": 1,
308
+ },
309
+ "content": Array [
310
+ Object {
311
+ "type": "paragraph",
312
+ },
313
+ ],
314
+ "type": "tableCell",
315
+ },
316
+ Object {
317
+ "attrs": Object {
318
+ "background": null,
319
+ "colspan": 1,
320
+ "colwidth": Array [
321
+ 603,
322
+ ],
323
+ "rowspan": 1,
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
+ 62,
338
+ ],
339
+ "rowspan": 1,
340
+ },
341
+ "content": Array [
342
+ Object {
343
+ "type": "paragraph",
344
+ },
345
+ ],
346
+ "type": "tableCell",
347
+ },
348
+ ],
349
+ "type": "tableRow",
350
+ },
351
+ ],
352
+ "type": "table",
353
+ },
354
+ ],
355
+ "type": "doc",
356
+ }
357
+ `;
358
+
359
+ exports[`Maintains the default layout size without overflow when toggling through layouts 1`] = `
360
+ Object {
361
+ "content": Array [
362
+ Object {
363
+ "attrs": Object {
364
+ "__autoSize": false,
365
+ "isNumberColumnEnabled": false,
366
+ "layout": "default",
367
+ "localId": "abc-123",
368
+ },
369
+ "content": Array [
370
+ Object {
371
+ "content": Array [
372
+ Object {
373
+ "attrs": Object {
374
+ "background": null,
375
+ "colspan": 1,
376
+ "colwidth": Array [
377
+ 381,
378
+ ],
379
+ "rowspan": 1,
380
+ },
381
+ "content": Array [
382
+ Object {
383
+ "type": "paragraph",
384
+ },
385
+ ],
386
+ "type": "tableHeader",
387
+ },
388
+ Object {
389
+ "attrs": Object {
390
+ "background": null,
391
+ "colspan": 1,
392
+ "colwidth": Array [
393
+ 379,
394
+ ],
395
+ "rowspan": 1,
396
+ },
397
+ "content": Array [
398
+ Object {
399
+ "type": "paragraph",
400
+ },
401
+ ],
402
+ "type": "tableHeader",
403
+ },
404
+ ],
405
+ "type": "tableRow",
406
+ },
407
+ Object {
408
+ "content": Array [
409
+ Object {
410
+ "attrs": Object {
411
+ "background": null,
412
+ "colspan": 1,
413
+ "colwidth": Array [
414
+ 381,
415
+ ],
416
+ "rowspan": 2,
417
+ },
418
+ "content": Array [
419
+ Object {
420
+ "type": "paragraph",
421
+ },
422
+ ],
423
+ "type": "tableCell",
424
+ },
425
+ Object {
426
+ "attrs": Object {
427
+ "background": null,
428
+ "colspan": 1,
429
+ "colwidth": Array [
430
+ 379,
431
+ ],
432
+ "rowspan": 1,
433
+ },
434
+ "content": Array [
435
+ Object {
436
+ "type": "paragraph",
437
+ },
438
+ ],
439
+ "type": "tableCell",
440
+ },
441
+ ],
442
+ "type": "tableRow",
443
+ },
444
+ Object {
445
+ "content": Array [
446
+ Object {
447
+ "attrs": Object {
448
+ "background": null,
449
+ "colspan": 1,
450
+ "colwidth": Array [
451
+ 379,
452
+ ],
453
+ "rowspan": 1,
454
+ },
455
+ "content": Array [
456
+ Object {
457
+ "type": "paragraph",
458
+ },
459
+ ],
460
+ "type": "tableCell",
461
+ },
462
+ ],
463
+ "type": "tableRow",
464
+ },
465
+ Object {
466
+ "content": Array [
467
+ Object {
468
+ "attrs": Object {
469
+ "background": null,
470
+ "colspan": 1,
471
+ "colwidth": Array [
472
+ 381,
473
+ ],
474
+ "rowspan": 1,
475
+ },
476
+ "content": Array [
477
+ Object {
478
+ "type": "paragraph",
479
+ },
480
+ ],
481
+ "type": "tableCell",
482
+ },
483
+ Object {
484
+ "attrs": Object {
485
+ "background": null,
486
+ "colspan": 1,
487
+ "colwidth": Array [
488
+ 379,
489
+ ],
490
+ "rowspan": 1,
491
+ },
492
+ "content": Array [
493
+ Object {
494
+ "type": "paragraph",
495
+ },
496
+ ],
497
+ "type": "tableCell",
498
+ },
499
+ ],
500
+ "type": "tableRow",
501
+ },
502
+ ],
503
+ "type": "table",
504
+ },
505
+ Object {
506
+ "type": "paragraph",
507
+ },
508
+ ],
509
+ "type": "doc",
510
+ }
511
+ `;
512
+
513
+ exports[`Maintains the full-width layout size without overflow 1`] = `
514
+ Object {
515
+ "content": Array [
516
+ Object {
517
+ "attrs": Object {
518
+ "__autoSize": false,
519
+ "isNumberColumnEnabled": false,
520
+ "layout": "full-width",
521
+ "localId": "abc-123",
522
+ },
523
+ "content": Array [
524
+ Object {
525
+ "content": Array [
526
+ Object {
527
+ "attrs": Object {
528
+ "background": null,
529
+ "colspan": 1,
530
+ "colwidth": Array [
531
+ 902,
532
+ ],
533
+ "rowspan": 1,
534
+ },
535
+ "content": Array [
536
+ Object {
537
+ "type": "paragraph",
538
+ },
539
+ ],
540
+ "type": "tableHeader",
541
+ },
542
+ Object {
543
+ "attrs": Object {
544
+ "background": null,
545
+ "colspan": 1,
546
+ "colwidth": Array [
547
+ 898,
548
+ ],
549
+ "rowspan": 1,
550
+ },
551
+ "content": Array [
552
+ Object {
553
+ "type": "paragraph",
554
+ },
555
+ ],
556
+ "type": "tableHeader",
557
+ },
558
+ ],
559
+ "type": "tableRow",
560
+ },
561
+ Object {
562
+ "content": Array [
563
+ Object {
564
+ "attrs": Object {
565
+ "background": null,
566
+ "colspan": 1,
567
+ "colwidth": Array [
568
+ 902,
569
+ ],
570
+ "rowspan": 2,
571
+ },
572
+ "content": Array [
573
+ Object {
574
+ "type": "paragraph",
575
+ },
576
+ ],
577
+ "type": "tableCell",
578
+ },
579
+ Object {
580
+ "attrs": Object {
581
+ "background": null,
582
+ "colspan": 1,
583
+ "colwidth": Array [
584
+ 898,
585
+ ],
586
+ "rowspan": 1,
587
+ },
588
+ "content": Array [
589
+ Object {
590
+ "type": "paragraph",
591
+ },
592
+ ],
593
+ "type": "tableCell",
594
+ },
595
+ ],
596
+ "type": "tableRow",
597
+ },
598
+ Object {
599
+ "content": Array [
600
+ Object {
601
+ "attrs": Object {
602
+ "background": null,
603
+ "colspan": 1,
604
+ "colwidth": Array [
605
+ 898,
606
+ ],
607
+ "rowspan": 1,
608
+ },
609
+ "content": Array [
610
+ Object {
611
+ "type": "paragraph",
612
+ },
613
+ ],
614
+ "type": "tableCell",
615
+ },
616
+ ],
617
+ "type": "tableRow",
618
+ },
619
+ Object {
620
+ "content": Array [
621
+ Object {
622
+ "attrs": Object {
623
+ "background": null,
624
+ "colspan": 1,
625
+ "colwidth": Array [
626
+ 902,
627
+ ],
628
+ "rowspan": 1,
629
+ },
630
+ "content": Array [
631
+ Object {
632
+ "type": "paragraph",
633
+ },
634
+ ],
635
+ "type": "tableCell",
636
+ },
637
+ Object {
638
+ "attrs": Object {
639
+ "background": null,
640
+ "colspan": 1,
641
+ "colwidth": Array [
642
+ 898,
643
+ ],
644
+ "rowspan": 1,
645
+ },
646
+ "content": Array [
647
+ Object {
648
+ "type": "paragraph",
649
+ },
650
+ ],
651
+ "type": "tableCell",
652
+ },
653
+ ],
654
+ "type": "tableRow",
655
+ },
656
+ ],
657
+ "type": "table",
658
+ },
659
+ Object {
660
+ "type": "paragraph",
661
+ },
662
+ ],
663
+ "type": "doc",
664
+ }
665
+ `;
666
+
667
+ exports[`Maintains the wide layout size without overflow 1`] = `
668
+ Object {
669
+ "content": Array [
670
+ Object {
671
+ "attrs": Object {
672
+ "__autoSize": false,
673
+ "isNumberColumnEnabled": false,
674
+ "layout": "wide",
675
+ "localId": "abc-123",
676
+ },
677
+ "content": Array [
678
+ Object {
679
+ "content": Array [
680
+ Object {
681
+ "attrs": Object {
682
+ "background": null,
683
+ "colspan": 1,
684
+ "colwidth": Array [
685
+ 481,
686
+ ],
687
+ "rowspan": 1,
688
+ },
689
+ "content": Array [
690
+ Object {
691
+ "type": "paragraph",
692
+ },
693
+ ],
694
+ "type": "tableHeader",
695
+ },
696
+ Object {
697
+ "attrs": Object {
698
+ "background": null,
699
+ "colspan": 1,
700
+ "colwidth": Array [
701
+ 479,
702
+ ],
703
+ "rowspan": 1,
704
+ },
705
+ "content": Array [
706
+ Object {
707
+ "type": "paragraph",
708
+ },
709
+ ],
710
+ "type": "tableHeader",
711
+ },
712
+ ],
713
+ "type": "tableRow",
714
+ },
715
+ Object {
716
+ "content": Array [
717
+ Object {
718
+ "attrs": Object {
719
+ "background": null,
720
+ "colspan": 1,
721
+ "colwidth": Array [
722
+ 481,
723
+ ],
724
+ "rowspan": 2,
725
+ },
726
+ "content": Array [
727
+ Object {
728
+ "type": "paragraph",
729
+ },
730
+ ],
731
+ "type": "tableCell",
732
+ },
733
+ Object {
734
+ "attrs": Object {
735
+ "background": null,
736
+ "colspan": 1,
737
+ "colwidth": Array [
738
+ 479,
739
+ ],
740
+ "rowspan": 1,
741
+ },
742
+ "content": Array [
743
+ Object {
744
+ "type": "paragraph",
745
+ },
746
+ ],
747
+ "type": "tableCell",
748
+ },
749
+ ],
750
+ "type": "tableRow",
751
+ },
752
+ Object {
753
+ "content": Array [
754
+ Object {
755
+ "attrs": Object {
756
+ "background": null,
757
+ "colspan": 1,
758
+ "colwidth": Array [
759
+ 479,
760
+ ],
761
+ "rowspan": 1,
762
+ },
763
+ "content": Array [
764
+ Object {
765
+ "type": "paragraph",
766
+ },
767
+ ],
768
+ "type": "tableCell",
769
+ },
770
+ ],
771
+ "type": "tableRow",
772
+ },
773
+ Object {
774
+ "content": Array [
775
+ Object {
776
+ "attrs": Object {
777
+ "background": null,
778
+ "colspan": 1,
779
+ "colwidth": Array [
780
+ 481,
781
+ ],
782
+ "rowspan": 1,
783
+ },
784
+ "content": Array [
785
+ Object {
786
+ "type": "paragraph",
787
+ },
788
+ ],
789
+ "type": "tableCell",
790
+ },
791
+ Object {
792
+ "attrs": Object {
793
+ "background": null,
794
+ "colspan": 1,
795
+ "colwidth": Array [
796
+ 479,
797
+ ],
798
+ "rowspan": 1,
799
+ },
800
+ "content": Array [
801
+ Object {
802
+ "type": "paragraph",
803
+ },
804
+ ],
805
+ "type": "tableCell",
806
+ },
807
+ ],
808
+ "type": "tableRow",
809
+ },
810
+ ],
811
+ "type": "table",
812
+ },
813
+ Object {
814
+ "type": "paragraph",
815
+ },
816
+ ],
817
+ "type": "doc",
818
+ }
819
+ `;
820
+
821
+ exports[`Scales down column sizes when bodied extension parent layout changes 1`] = `
822
+ Object {
823
+ "content": Array [
824
+ Object {
825
+ "content": Array [
826
+ Object {
827
+ "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mi nisl, venenatis eget auctor vitae, venenatis quis lorem. Suspendisse maximus tortor vel dui tincidunt cursus. Vestibulum magna nibh, auctor non auctor id, finibus vitae orci. Nulla viverra ipsum et nunc fringilla ultricies. Pellentesque vitae felis molestie justo finibus accumsan. Suspendisse potenti. Nulla facilisi. Integer dignissim quis velit quis elementum. Sed sit amet varius ante. Duis vestibulum porta augue eu laoreet. Morbi id risus et augue sollicitudin aliquam. In et ligula dolor. Nam ac aliquet diam.",
828
+ "type": "text",
829
+ },
830
+ ],
831
+ "type": "paragraph",
832
+ },
833
+ Object {
834
+ "content": Array [
835
+ Object {
836
+ "attrs": Object {
837
+ "width": 50,
838
+ },
839
+ "content": Array [
840
+ Object {
841
+ "attrs": Object {
842
+ "__autoSize": false,
843
+ "isNumberColumnEnabled": false,
844
+ "layout": "default",
845
+ "localId": "abc-123",
846
+ },
847
+ "content": Array [
848
+ Object {
849
+ "content": Array [
850
+ Object {
851
+ "attrs": Object {
852
+ "background": null,
853
+ "colspan": 1,
854
+ "colwidth": Array [
855
+ 148,
856
+ ],
857
+ "rowspan": 1,
858
+ },
859
+ "content": Array [
860
+ Object {
861
+ "type": "paragraph",
862
+ },
863
+ ],
864
+ "type": "tableHeader",
865
+ },
866
+ Object {
867
+ "attrs": Object {
868
+ "background": null,
869
+ "colspan": 1,
870
+ "colwidth": Array [
871
+ 73,
872
+ ],
873
+ "rowspan": 1,
874
+ },
875
+ "content": Array [
876
+ Object {
877
+ "type": "paragraph",
878
+ },
879
+ ],
880
+ "type": "tableHeader",
881
+ },
882
+ Object {
883
+ "attrs": Object {
884
+ "background": null,
885
+ "colspan": 1,
886
+ "colwidth": Array [
887
+ 266,
888
+ ],
889
+ "rowspan": 1,
890
+ },
891
+ "content": Array [
892
+ Object {
893
+ "type": "paragraph",
894
+ },
895
+ ],
896
+ "type": "tableHeader",
897
+ },
898
+ ],
899
+ "type": "tableRow",
900
+ },
901
+ Object {
902
+ "content": Array [
903
+ Object {
904
+ "attrs": Object {
905
+ "background": null,
906
+ "colspan": 1,
907
+ "colwidth": Array [
908
+ 148,
909
+ ],
910
+ "rowspan": 1,
911
+ },
912
+ "content": Array [
913
+ Object {
914
+ "type": "paragraph",
915
+ },
916
+ ],
917
+ "type": "tableCell",
918
+ },
919
+ Object {
920
+ "attrs": Object {
921
+ "background": null,
922
+ "colspan": 1,
923
+ "colwidth": Array [
924
+ 73,
925
+ ],
926
+ "rowspan": 1,
927
+ },
928
+ "content": Array [
929
+ Object {
930
+ "type": "paragraph",
931
+ },
932
+ ],
933
+ "type": "tableCell",
934
+ },
935
+ Object {
936
+ "attrs": Object {
937
+ "background": null,
938
+ "colspan": 1,
939
+ "colwidth": Array [
940
+ 266,
941
+ ],
942
+ "rowspan": 1,
943
+ },
944
+ "content": Array [
945
+ Object {
946
+ "type": "paragraph",
947
+ },
948
+ ],
949
+ "type": "tableCell",
950
+ },
951
+ ],
952
+ "type": "tableRow",
953
+ },
954
+ Object {
955
+ "content": Array [
956
+ Object {
957
+ "attrs": Object {
958
+ "background": null,
959
+ "colspan": 1,
960
+ "colwidth": Array [
961
+ 148,
962
+ ],
963
+ "rowspan": 1,
964
+ },
965
+ "content": Array [
966
+ Object {
967
+ "type": "paragraph",
968
+ },
969
+ ],
970
+ "type": "tableCell",
971
+ },
972
+ Object {
973
+ "attrs": Object {
974
+ "background": null,
975
+ "colspan": 1,
976
+ "colwidth": Array [
977
+ 73,
978
+ ],
979
+ "rowspan": 1,
980
+ },
981
+ "content": Array [
982
+ Object {
983
+ "type": "paragraph",
984
+ },
985
+ ],
986
+ "type": "tableCell",
987
+ },
988
+ Object {
989
+ "attrs": Object {
990
+ "background": null,
991
+ "colspan": 1,
992
+ "colwidth": Array [
993
+ 266,
994
+ ],
995
+ "rowspan": 1,
996
+ },
997
+ "content": Array [
998
+ Object {
999
+ "type": "paragraph",
1000
+ },
1001
+ ],
1002
+ "type": "tableCell",
1003
+ },
1004
+ ],
1005
+ "type": "tableRow",
1006
+ },
1007
+ ],
1008
+ "type": "table",
1009
+ },
1010
+ ],
1011
+ "type": "layoutColumn",
1012
+ },
1013
+ Object {
1014
+ "attrs": Object {
1015
+ "width": 50,
1016
+ },
1017
+ "content": Array [
1018
+ Object {
1019
+ "type": "paragraph",
1020
+ },
1021
+ ],
1022
+ "type": "layoutColumn",
1023
+ },
1024
+ ],
1025
+ "marks": Array [
1026
+ Object {
1027
+ "attrs": Object {
1028
+ "mode": "wide",
1029
+ },
1030
+ "type": "breakout",
1031
+ },
1032
+ ],
1033
+ "type": "layoutSection",
1034
+ },
1035
+ Object {
1036
+ "attrs": Object {
1037
+ "extensionKey": "bodied-eh",
1038
+ "extensionType": "com.atlassian.confluence.macro.core",
1039
+ "layout": "default",
1040
+ "localId": "testId",
1041
+ "parameters": Object {
1042
+ "macroMetadata": Object {
1043
+ "placeholder": Array [
1044
+ Object {
1045
+ "data": Object {
1046
+ "url": "",
1047
+ },
1048
+ "type": "icon",
1049
+ },
1050
+ ],
1051
+ },
1052
+ "macroParams": Object {},
1053
+ },
1054
+ "text": null,
1055
+ },
1056
+ "content": Array [
1057
+ Object {
1058
+ "type": "paragraph",
1059
+ },
1060
+ Object {
1061
+ "attrs": Object {
1062
+ "__autoSize": false,
1063
+ "isNumberColumnEnabled": false,
1064
+ "layout": "default",
1065
+ "localId": "abc-123",
1066
+ },
1067
+ "content": Array [
1068
+ Object {
1069
+ "content": Array [
1070
+ Object {
1071
+ "attrs": Object {
1072
+ "background": null,
1073
+ "colspan": 1,
1074
+ "colwidth": Array [
1075
+ 261,
1076
+ ],
1077
+ "rowspan": 1,
1078
+ },
1079
+ "content": Array [
1080
+ Object {
1081
+ "type": "paragraph",
1082
+ },
1083
+ ],
1084
+ "type": "tableHeader",
1085
+ },
1086
+ Object {
1087
+ "attrs": Object {
1088
+ "background": null,
1089
+ "colspan": 1,
1090
+ "colwidth": Array [
1091
+ 223,
1092
+ ],
1093
+ "rowspan": 1,
1094
+ },
1095
+ "content": Array [
1096
+ Object {
1097
+ "type": "paragraph",
1098
+ },
1099
+ ],
1100
+ "type": "tableHeader",
1101
+ },
1102
+ Object {
1103
+ "attrs": Object {
1104
+ "background": null,
1105
+ "colspan": 1,
1106
+ "colwidth": Array [
1107
+ 242,
1108
+ ],
1109
+ "rowspan": 1,
1110
+ },
1111
+ "content": Array [
1112
+ Object {
1113
+ "type": "paragraph",
1114
+ },
1115
+ ],
1116
+ "type": "tableHeader",
1117
+ },
1118
+ ],
1119
+ "type": "tableRow",
1120
+ },
1121
+ Object {
1122
+ "content": Array [
1123
+ Object {
1124
+ "attrs": Object {
1125
+ "background": null,
1126
+ "colspan": 1,
1127
+ "colwidth": Array [
1128
+ 261,
1129
+ ],
1130
+ "rowspan": 1,
1131
+ },
1132
+ "content": Array [
1133
+ Object {
1134
+ "type": "paragraph",
1135
+ },
1136
+ ],
1137
+ "type": "tableCell",
1138
+ },
1139
+ Object {
1140
+ "attrs": Object {
1141
+ "background": null,
1142
+ "colspan": 1,
1143
+ "colwidth": Array [
1144
+ 223,
1145
+ ],
1146
+ "rowspan": 1,
1147
+ },
1148
+ "content": Array [
1149
+ Object {
1150
+ "type": "paragraph",
1151
+ },
1152
+ ],
1153
+ "type": "tableCell",
1154
+ },
1155
+ Object {
1156
+ "attrs": Object {
1157
+ "background": null,
1158
+ "colspan": 1,
1159
+ "colwidth": Array [
1160
+ 242,
1161
+ ],
1162
+ "rowspan": 1,
1163
+ },
1164
+ "content": Array [
1165
+ Object {
1166
+ "type": "paragraph",
1167
+ },
1168
+ ],
1169
+ "type": "tableCell",
1170
+ },
1171
+ ],
1172
+ "type": "tableRow",
1173
+ },
1174
+ Object {
1175
+ "content": Array [
1176
+ Object {
1177
+ "attrs": Object {
1178
+ "background": null,
1179
+ "colspan": 1,
1180
+ "colwidth": Array [
1181
+ 261,
1182
+ ],
1183
+ "rowspan": 1,
1184
+ },
1185
+ "content": Array [
1186
+ Object {
1187
+ "type": "paragraph",
1188
+ },
1189
+ ],
1190
+ "type": "tableCell",
1191
+ },
1192
+ Object {
1193
+ "attrs": Object {
1194
+ "background": null,
1195
+ "colspan": 1,
1196
+ "colwidth": Array [
1197
+ 223,
1198
+ ],
1199
+ "rowspan": 1,
1200
+ },
1201
+ "content": Array [
1202
+ Object {
1203
+ "type": "paragraph",
1204
+ },
1205
+ ],
1206
+ "type": "tableCell",
1207
+ },
1208
+ Object {
1209
+ "attrs": Object {
1210
+ "background": null,
1211
+ "colspan": 1,
1212
+ "colwidth": Array [
1213
+ 242,
1214
+ ],
1215
+ "rowspan": 1,
1216
+ },
1217
+ "content": Array [
1218
+ Object {
1219
+ "type": "paragraph",
1220
+ },
1221
+ ],
1222
+ "type": "tableCell",
1223
+ },
1224
+ ],
1225
+ "type": "tableRow",
1226
+ },
1227
+ ],
1228
+ "type": "table",
1229
+ },
1230
+ ],
1231
+ "type": "bodiedExtension",
1232
+ },
1233
+ ],
1234
+ "type": "doc",
1235
+ }
1236
+ `;
1237
+
1238
+ exports[`Scales down column sizes when parent layout changes breakout 1`] = `
1239
+ Object {
1240
+ "content": Array [
1241
+ Object {
1242
+ "content": Array [
1243
+ Object {
1244
+ "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mi nisl, venenatis eget auctor vitae, venenatis quis lorem. Suspendisse maximus tortor vel dui tincidunt cursus. Vestibulum magna nibh, auctor non auctor id, finibus vitae orci. Nulla viverra ipsum et nunc fringilla ultricies. Pellentesque vitae felis molestie justo finibus accumsan. Suspendisse potenti. Nulla facilisi. Integer dignissim quis velit quis elementum. Sed sit amet varius ante. Duis vestibulum porta augue eu laoreet. Morbi id risus et augue sollicitudin aliquam. In et ligula dolor. Nam ac aliquet diam.",
1245
+ "type": "text",
1246
+ },
1247
+ ],
1248
+ "type": "paragraph",
1249
+ },
1250
+ Object {
1251
+ "content": Array [
1252
+ Object {
1253
+ "attrs": Object {
1254
+ "width": 50,
1255
+ },
1256
+ "content": Array [
1257
+ Object {
1258
+ "attrs": Object {
1259
+ "__autoSize": false,
1260
+ "isNumberColumnEnabled": false,
1261
+ "layout": "default",
1262
+ "localId": "abc-123",
1263
+ },
1264
+ "content": Array [
1265
+ Object {
1266
+ "content": Array [
1267
+ Object {
1268
+ "attrs": Object {
1269
+ "background": null,
1270
+ "colspan": 1,
1271
+ "colwidth": Array [
1272
+ 110,
1273
+ ],
1274
+ "rowspan": 1,
1275
+ },
1276
+ "content": Array [
1277
+ Object {
1278
+ "type": "paragraph",
1279
+ },
1280
+ ],
1281
+ "type": "tableHeader",
1282
+ },
1283
+ Object {
1284
+ "attrs": Object {
1285
+ "background": null,
1286
+ "colspan": 1,
1287
+ "colwidth": Array [
1288
+ 54,
1289
+ ],
1290
+ "rowspan": 1,
1291
+ },
1292
+ "content": Array [
1293
+ Object {
1294
+ "type": "paragraph",
1295
+ },
1296
+ ],
1297
+ "type": "tableHeader",
1298
+ },
1299
+ Object {
1300
+ "attrs": Object {
1301
+ "background": null,
1302
+ "colspan": 1,
1303
+ "colwidth": Array [
1304
+ 197,
1305
+ ],
1306
+ "rowspan": 1,
1307
+ },
1308
+ "content": Array [
1309
+ Object {
1310
+ "type": "paragraph",
1311
+ },
1312
+ ],
1313
+ "type": "tableHeader",
1314
+ },
1315
+ ],
1316
+ "type": "tableRow",
1317
+ },
1318
+ Object {
1319
+ "content": Array [
1320
+ Object {
1321
+ "attrs": Object {
1322
+ "background": null,
1323
+ "colspan": 1,
1324
+ "colwidth": Array [
1325
+ 110,
1326
+ ],
1327
+ "rowspan": 1,
1328
+ },
1329
+ "content": Array [
1330
+ Object {
1331
+ "type": "paragraph",
1332
+ },
1333
+ ],
1334
+ "type": "tableCell",
1335
+ },
1336
+ Object {
1337
+ "attrs": Object {
1338
+ "background": null,
1339
+ "colspan": 1,
1340
+ "colwidth": Array [
1341
+ 54,
1342
+ ],
1343
+ "rowspan": 1,
1344
+ },
1345
+ "content": Array [
1346
+ Object {
1347
+ "type": "paragraph",
1348
+ },
1349
+ ],
1350
+ "type": "tableCell",
1351
+ },
1352
+ Object {
1353
+ "attrs": Object {
1354
+ "background": null,
1355
+ "colspan": 1,
1356
+ "colwidth": Array [
1357
+ 197,
1358
+ ],
1359
+ "rowspan": 1,
1360
+ },
1361
+ "content": Array [
1362
+ Object {
1363
+ "type": "paragraph",
1364
+ },
1365
+ ],
1366
+ "type": "tableCell",
1367
+ },
1368
+ ],
1369
+ "type": "tableRow",
1370
+ },
1371
+ Object {
1372
+ "content": Array [
1373
+ Object {
1374
+ "attrs": Object {
1375
+ "background": null,
1376
+ "colspan": 1,
1377
+ "colwidth": Array [
1378
+ 110,
1379
+ ],
1380
+ "rowspan": 1,
1381
+ },
1382
+ "content": Array [
1383
+ Object {
1384
+ "type": "paragraph",
1385
+ },
1386
+ ],
1387
+ "type": "tableCell",
1388
+ },
1389
+ Object {
1390
+ "attrs": Object {
1391
+ "background": null,
1392
+ "colspan": 1,
1393
+ "colwidth": Array [
1394
+ 54,
1395
+ ],
1396
+ "rowspan": 1,
1397
+ },
1398
+ "content": Array [
1399
+ Object {
1400
+ "type": "paragraph",
1401
+ },
1402
+ ],
1403
+ "type": "tableCell",
1404
+ },
1405
+ Object {
1406
+ "attrs": Object {
1407
+ "background": null,
1408
+ "colspan": 1,
1409
+ "colwidth": Array [
1410
+ 197,
1411
+ ],
1412
+ "rowspan": 1,
1413
+ },
1414
+ "content": Array [
1415
+ Object {
1416
+ "type": "paragraph",
1417
+ },
1418
+ ],
1419
+ "type": "tableCell",
1420
+ },
1421
+ ],
1422
+ "type": "tableRow",
1423
+ },
1424
+ ],
1425
+ "type": "table",
1426
+ },
1427
+ ],
1428
+ "type": "layoutColumn",
1429
+ },
1430
+ Object {
1431
+ "attrs": Object {
1432
+ "width": 50,
1433
+ },
1434
+ "content": Array [
1435
+ Object {
1436
+ "type": "paragraph",
1437
+ },
1438
+ ],
1439
+ "type": "layoutColumn",
1440
+ },
1441
+ ],
1442
+ "type": "layoutSection",
1443
+ },
1444
+ Object {
1445
+ "attrs": Object {
1446
+ "extensionKey": "bodied-eh",
1447
+ "extensionType": "com.atlassian.confluence.macro.core",
1448
+ "layout": "wide",
1449
+ "localId": "testId",
1450
+ "parameters": Object {
1451
+ "macroMetadata": Object {
1452
+ "placeholder": Array [
1453
+ Object {
1454
+ "data": Object {
1455
+ "url": "",
1456
+ },
1457
+ "type": "icon",
1458
+ },
1459
+ ],
1460
+ },
1461
+ "macroParams": Object {},
1462
+ },
1463
+ "text": null,
1464
+ },
1465
+ "content": Array [
1466
+ Object {
1467
+ "type": "paragraph",
1468
+ },
1469
+ Object {
1470
+ "attrs": Object {
1471
+ "__autoSize": false,
1472
+ "isNumberColumnEnabled": false,
1473
+ "layout": "default",
1474
+ "localId": "abc-123",
1475
+ },
1476
+ "content": Array [
1477
+ Object {
1478
+ "content": Array [
1479
+ Object {
1480
+ "attrs": Object {
1481
+ "background": null,
1482
+ "colspan": 1,
1483
+ "colwidth": Array [
1484
+ 349,
1485
+ ],
1486
+ "rowspan": 1,
1487
+ },
1488
+ "content": Array [
1489
+ Object {
1490
+ "type": "paragraph",
1491
+ },
1492
+ ],
1493
+ "type": "tableHeader",
1494
+ },
1495
+ Object {
1496
+ "attrs": Object {
1497
+ "background": null,
1498
+ "colspan": 1,
1499
+ "colwidth": Array [
1500
+ 301,
1501
+ ],
1502
+ "rowspan": 1,
1503
+ },
1504
+ "content": Array [
1505
+ Object {
1506
+ "type": "paragraph",
1507
+ },
1508
+ ],
1509
+ "type": "tableHeader",
1510
+ },
1511
+ Object {
1512
+ "attrs": Object {
1513
+ "background": null,
1514
+ "colspan": 1,
1515
+ "colwidth": Array [
1516
+ 327,
1517
+ ],
1518
+ "rowspan": 1,
1519
+ },
1520
+ "content": Array [
1521
+ Object {
1522
+ "type": "paragraph",
1523
+ },
1524
+ ],
1525
+ "type": "tableHeader",
1526
+ },
1527
+ ],
1528
+ "type": "tableRow",
1529
+ },
1530
+ Object {
1531
+ "content": Array [
1532
+ Object {
1533
+ "attrs": Object {
1534
+ "background": null,
1535
+ "colspan": 1,
1536
+ "colwidth": Array [
1537
+ 349,
1538
+ ],
1539
+ "rowspan": 1,
1540
+ },
1541
+ "content": Array [
1542
+ Object {
1543
+ "type": "paragraph",
1544
+ },
1545
+ ],
1546
+ "type": "tableCell",
1547
+ },
1548
+ Object {
1549
+ "attrs": Object {
1550
+ "background": null,
1551
+ "colspan": 1,
1552
+ "colwidth": Array [
1553
+ 301,
1554
+ ],
1555
+ "rowspan": 1,
1556
+ },
1557
+ "content": Array [
1558
+ Object {
1559
+ "type": "paragraph",
1560
+ },
1561
+ ],
1562
+ "type": "tableCell",
1563
+ },
1564
+ Object {
1565
+ "attrs": Object {
1566
+ "background": null,
1567
+ "colspan": 1,
1568
+ "colwidth": Array [
1569
+ 327,
1570
+ ],
1571
+ "rowspan": 1,
1572
+ },
1573
+ "content": Array [
1574
+ Object {
1575
+ "type": "paragraph",
1576
+ },
1577
+ ],
1578
+ "type": "tableCell",
1579
+ },
1580
+ ],
1581
+ "type": "tableRow",
1582
+ },
1583
+ Object {
1584
+ "content": Array [
1585
+ Object {
1586
+ "attrs": Object {
1587
+ "background": null,
1588
+ "colspan": 1,
1589
+ "colwidth": Array [
1590
+ 349,
1591
+ ],
1592
+ "rowspan": 1,
1593
+ },
1594
+ "content": Array [
1595
+ Object {
1596
+ "type": "paragraph",
1597
+ },
1598
+ ],
1599
+ "type": "tableCell",
1600
+ },
1601
+ Object {
1602
+ "attrs": Object {
1603
+ "background": null,
1604
+ "colspan": 1,
1605
+ "colwidth": Array [
1606
+ 301,
1607
+ ],
1608
+ "rowspan": 1,
1609
+ },
1610
+ "content": Array [
1611
+ Object {
1612
+ "type": "paragraph",
1613
+ },
1614
+ ],
1615
+ "type": "tableCell",
1616
+ },
1617
+ Object {
1618
+ "attrs": Object {
1619
+ "background": null,
1620
+ "colspan": 1,
1621
+ "colwidth": Array [
1622
+ 327,
1623
+ ],
1624
+ "rowspan": 1,
1625
+ },
1626
+ "content": Array [
1627
+ Object {
1628
+ "type": "paragraph",
1629
+ },
1630
+ ],
1631
+ "type": "tableCell",
1632
+ },
1633
+ ],
1634
+ "type": "tableRow",
1635
+ },
1636
+ ],
1637
+ "type": "table",
1638
+ },
1639
+ ],
1640
+ "type": "bodiedExtension",
1641
+ },
1642
+ ],
1643
+ "type": "doc",
1644
+ }
1645
+ `;