@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,607 @@
1
+ const defaultTableInOverflow = {
2
+ version: 1,
3
+ type: 'doc',
4
+ content: [
5
+ {
6
+ type: 'table',
7
+ attrs: {
8
+ isNumberColumnEnabled: false,
9
+ layout: 'default',
10
+ },
11
+ content: [
12
+ {
13
+ type: 'tableRow',
14
+ content: [
15
+ {
16
+ type: 'tableHeader',
17
+ attrs: {
18
+ colwidth: [226],
19
+ },
20
+ content: [
21
+ {
22
+ type: 'paragraph',
23
+ content: [],
24
+ },
25
+ ],
26
+ },
27
+ {
28
+ type: 'tableHeader',
29
+ attrs: {
30
+ colwidth: [463],
31
+ },
32
+ content: [
33
+ {
34
+ type: 'paragraph',
35
+ content: [],
36
+ },
37
+ ],
38
+ },
39
+ {
40
+ type: 'tableHeader',
41
+ attrs: {
42
+ colwidth: [48],
43
+ },
44
+ content: [
45
+ {
46
+ type: 'paragraph',
47
+ content: [],
48
+ },
49
+ ],
50
+ },
51
+ ],
52
+ },
53
+ {
54
+ type: 'tableRow',
55
+ content: [
56
+ {
57
+ type: 'tableCell',
58
+ attrs: {
59
+ colwidth: [226],
60
+ },
61
+ content: [
62
+ {
63
+ type: 'paragraph',
64
+ content: [],
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ type: 'tableCell',
70
+ attrs: {
71
+ colwidth: [463],
72
+ },
73
+ content: [
74
+ {
75
+ type: 'paragraph',
76
+ content: [],
77
+ },
78
+ ],
79
+ },
80
+ {
81
+ type: 'tableCell',
82
+ attrs: {
83
+ colwidth: [48],
84
+ },
85
+ content: [
86
+ {
87
+ type: 'paragraph',
88
+ content: [],
89
+ },
90
+ ],
91
+ },
92
+ ],
93
+ },
94
+ {
95
+ type: 'tableRow',
96
+ content: [
97
+ {
98
+ type: 'tableCell',
99
+ attrs: {
100
+ colwidth: [226],
101
+ },
102
+ content: [
103
+ {
104
+ type: 'paragraph',
105
+ content: [],
106
+ },
107
+ ],
108
+ },
109
+ {
110
+ type: 'tableCell',
111
+ attrs: {
112
+ colwidth: [463],
113
+ },
114
+ content: [
115
+ {
116
+ type: 'paragraph',
117
+ content: [],
118
+ },
119
+ ],
120
+ },
121
+ {
122
+ type: 'tableCell',
123
+ attrs: {
124
+ colwidth: [48],
125
+ },
126
+ content: [
127
+ {
128
+ type: 'paragraph',
129
+ content: [],
130
+ },
131
+ ],
132
+ },
133
+ ],
134
+ },
135
+ ],
136
+ },
137
+ ],
138
+ };
139
+
140
+ const defaultTableResizedTable = {
141
+ version: 1,
142
+ type: 'doc',
143
+ content: [
144
+ {
145
+ type: 'table',
146
+ attrs: {
147
+ isNumberColumnEnabled: false,
148
+ layout: 'default',
149
+ },
150
+ content: [
151
+ {
152
+ type: 'tableRow',
153
+ content: [
154
+ {
155
+ type: 'tableHeader',
156
+ attrs: {
157
+ colwidth: [340],
158
+ },
159
+ content: [
160
+ {
161
+ type: 'paragraph',
162
+ content: [],
163
+ },
164
+ ],
165
+ },
166
+ {
167
+ type: 'tableHeader',
168
+ attrs: {
169
+ colwidth: [339],
170
+ },
171
+ content: [
172
+ {
173
+ type: 'paragraph',
174
+ content: [],
175
+ },
176
+ ],
177
+ },
178
+ ],
179
+ },
180
+ {
181
+ type: 'tableRow',
182
+ content: [
183
+ {
184
+ type: 'tableCell',
185
+ attrs: {
186
+ rowspan: 2,
187
+ colwidth: [340],
188
+ },
189
+ content: [
190
+ {
191
+ type: 'paragraph',
192
+ content: [],
193
+ },
194
+ ],
195
+ },
196
+ {
197
+ type: 'tableCell',
198
+ attrs: {
199
+ colwidth: [339],
200
+ },
201
+ content: [
202
+ {
203
+ type: 'paragraph',
204
+ content: [],
205
+ },
206
+ ],
207
+ },
208
+ ],
209
+ },
210
+ {
211
+ type: 'tableRow',
212
+ content: [
213
+ {
214
+ type: 'tableCell',
215
+ attrs: {
216
+ colwidth: [339],
217
+ },
218
+ content: [
219
+ {
220
+ type: 'paragraph',
221
+ content: [],
222
+ },
223
+ ],
224
+ },
225
+ ],
226
+ },
227
+ {
228
+ type: 'tableRow',
229
+ content: [
230
+ {
231
+ type: 'tableCell',
232
+ attrs: {
233
+ colwidth: [340],
234
+ },
235
+ content: [
236
+ {
237
+ type: 'paragraph',
238
+ content: [],
239
+ },
240
+ ],
241
+ },
242
+ {
243
+ type: 'tableCell',
244
+ attrs: {
245
+ colwidth: [339],
246
+ },
247
+ content: [
248
+ {
249
+ type: 'paragraph',
250
+ content: [],
251
+ },
252
+ ],
253
+ },
254
+ ],
255
+ },
256
+ ],
257
+ },
258
+ {
259
+ type: 'paragraph',
260
+ content: [],
261
+ },
262
+ ],
263
+ };
264
+
265
+ const nestedTables = {
266
+ version: 1,
267
+ type: 'doc',
268
+ content: [
269
+ {
270
+ type: 'paragraph',
271
+ content: [
272
+ {
273
+ type: 'text',
274
+ text:
275
+ '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.',
276
+ },
277
+ ],
278
+ },
279
+ {
280
+ type: 'layoutSection',
281
+ content: [
282
+ {
283
+ type: 'layoutColumn',
284
+ attrs: {
285
+ width: 50,
286
+ },
287
+ content: [
288
+ {
289
+ type: 'table',
290
+ attrs: {
291
+ isNumberColumnEnabled: false,
292
+ layout: 'default',
293
+ },
294
+ content: [
295
+ {
296
+ type: 'tableRow',
297
+ content: [
298
+ {
299
+ type: 'tableHeader',
300
+ attrs: {
301
+ colwidth: [143],
302
+ },
303
+ content: [
304
+ {
305
+ type: 'paragraph',
306
+ content: [],
307
+ },
308
+ ],
309
+ },
310
+ {
311
+ type: 'tableHeader',
312
+ attrs: {
313
+ colwidth: [71],
314
+ },
315
+ content: [
316
+ {
317
+ type: 'paragraph',
318
+ content: [],
319
+ },
320
+ ],
321
+ },
322
+ {
323
+ type: 'tableHeader',
324
+ attrs: {
325
+ colwidth: [259.5],
326
+ },
327
+ content: [
328
+ {
329
+ type: 'paragraph',
330
+ content: [],
331
+ },
332
+ ],
333
+ },
334
+ ],
335
+ },
336
+ {
337
+ type: 'tableRow',
338
+ content: [
339
+ {
340
+ type: 'tableCell',
341
+ attrs: {
342
+ colwidth: [143],
343
+ },
344
+ content: [
345
+ {
346
+ type: 'paragraph',
347
+ content: [],
348
+ },
349
+ ],
350
+ },
351
+ {
352
+ type: 'tableCell',
353
+ attrs: {
354
+ colwidth: [71],
355
+ },
356
+ content: [
357
+ {
358
+ type: 'paragraph',
359
+ content: [],
360
+ },
361
+ ],
362
+ },
363
+ {
364
+ type: 'tableCell',
365
+ attrs: {
366
+ colwidth: [259.5],
367
+ },
368
+ content: [
369
+ {
370
+ type: 'paragraph',
371
+ content: [],
372
+ },
373
+ ],
374
+ },
375
+ ],
376
+ },
377
+ {
378
+ type: 'tableRow',
379
+ content: [
380
+ {
381
+ type: 'tableCell',
382
+ attrs: {
383
+ colwidth: [143],
384
+ },
385
+ content: [
386
+ {
387
+ type: 'paragraph',
388
+ content: [],
389
+ },
390
+ ],
391
+ },
392
+ {
393
+ type: 'tableCell',
394
+ attrs: {
395
+ colwidth: [71],
396
+ },
397
+ content: [
398
+ {
399
+ type: 'paragraph',
400
+ content: [],
401
+ },
402
+ ],
403
+ },
404
+ {
405
+ type: 'tableCell',
406
+ attrs: {
407
+ colwidth: [259.5],
408
+ },
409
+ content: [
410
+ {
411
+ type: 'paragraph',
412
+ content: [],
413
+ },
414
+ ],
415
+ },
416
+ ],
417
+ },
418
+ ],
419
+ },
420
+ ],
421
+ },
422
+ {
423
+ type: 'layoutColumn',
424
+ attrs: {
425
+ width: 50,
426
+ },
427
+ content: [
428
+ {
429
+ type: 'paragraph',
430
+ content: [],
431
+ },
432
+ ],
433
+ },
434
+ ],
435
+ marks: [
436
+ {
437
+ type: 'breakout',
438
+ attrs: {
439
+ mode: 'wide',
440
+ },
441
+ },
442
+ ],
443
+ },
444
+ {
445
+ type: 'bodiedExtension',
446
+ attrs: {
447
+ extensionType: 'com.atlassian.confluence.macro.core',
448
+ extensionKey: 'bodied-eh',
449
+ parameters: {
450
+ macroParams: {},
451
+ macroMetadata: {
452
+ placeholder: [
453
+ {
454
+ data: {
455
+ url: '',
456
+ },
457
+ type: 'icon',
458
+ },
459
+ ],
460
+ },
461
+ },
462
+ localId: 'testId',
463
+ layout: 'wide',
464
+ },
465
+ content: [
466
+ {
467
+ type: 'paragraph',
468
+ content: [],
469
+ },
470
+ {
471
+ type: 'table',
472
+ attrs: {
473
+ isNumberColumnEnabled: false,
474
+ layout: 'default',
475
+ },
476
+ content: [
477
+ {
478
+ type: 'tableRow',
479
+ content: [
480
+ {
481
+ type: 'tableHeader',
482
+ attrs: {
483
+ colwidth: [349],
484
+ },
485
+ content: [
486
+ {
487
+ type: 'paragraph',
488
+ content: [],
489
+ },
490
+ ],
491
+ },
492
+ {
493
+ type: 'tableHeader',
494
+ attrs: {
495
+ colwidth: [302],
496
+ },
497
+ content: [
498
+ {
499
+ type: 'paragraph',
500
+ content: [],
501
+ },
502
+ ],
503
+ },
504
+ {
505
+ type: 'tableHeader',
506
+ attrs: {
507
+ colwidth: [328],
508
+ },
509
+ content: [
510
+ {
511
+ type: 'paragraph',
512
+ content: [],
513
+ },
514
+ ],
515
+ },
516
+ ],
517
+ },
518
+ {
519
+ type: 'tableRow',
520
+ content: [
521
+ {
522
+ type: 'tableCell',
523
+ attrs: {
524
+ colwidth: [349],
525
+ },
526
+ content: [
527
+ {
528
+ type: 'paragraph',
529
+ content: [],
530
+ },
531
+ ],
532
+ },
533
+ {
534
+ type: 'tableCell',
535
+ attrs: {
536
+ colwidth: [302],
537
+ },
538
+ content: [
539
+ {
540
+ type: 'paragraph',
541
+ content: [],
542
+ },
543
+ ],
544
+ },
545
+ {
546
+ type: 'tableCell',
547
+ attrs: {
548
+ colwidth: [328],
549
+ },
550
+ content: [
551
+ {
552
+ type: 'paragraph',
553
+ content: [],
554
+ },
555
+ ],
556
+ },
557
+ ],
558
+ },
559
+ {
560
+ type: 'tableRow',
561
+ content: [
562
+ {
563
+ type: 'tableCell',
564
+ attrs: {
565
+ colwidth: [349],
566
+ },
567
+ content: [
568
+ {
569
+ type: 'paragraph',
570
+ content: [],
571
+ },
572
+ ],
573
+ },
574
+ {
575
+ type: 'tableCell',
576
+ attrs: {
577
+ colwidth: [302],
578
+ },
579
+ content: [
580
+ {
581
+ type: 'paragraph',
582
+ content: [],
583
+ },
584
+ ],
585
+ },
586
+ {
587
+ type: 'tableCell',
588
+ attrs: {
589
+ colwidth: [328],
590
+ },
591
+ content: [
592
+ {
593
+ type: 'paragraph',
594
+ content: [],
595
+ },
596
+ ],
597
+ },
598
+ ],
599
+ },
600
+ ],
601
+ },
602
+ ],
603
+ },
604
+ ],
605
+ };
606
+
607
+ export { defaultTableInOverflow, defaultTableResizedTable, nestedTables };