@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,1610 @@
1
+ export const tableWithRowSpan = {
2
+ version: 1,
3
+ type: 'doc',
4
+ content: [
5
+ {
6
+ type: 'table',
7
+ attrs: {
8
+ isNumberColumnEnabled: false,
9
+ layout: 'default',
10
+ localId: 'abc-123',
11
+ },
12
+ content: [
13
+ {
14
+ type: 'tableRow',
15
+ content: [
16
+ {
17
+ type: 'tableHeader',
18
+ attrs: {
19
+ colwidth: [148],
20
+ },
21
+ content: [
22
+ {
23
+ type: 'paragraph',
24
+ content: [],
25
+ },
26
+ ],
27
+ },
28
+ {
29
+ type: 'tableHeader',
30
+ attrs: {
31
+ colwidth: [532],
32
+ },
33
+ content: [
34
+ {
35
+ type: 'paragraph',
36
+ content: [],
37
+ },
38
+ ],
39
+ },
40
+ ],
41
+ },
42
+ {
43
+ type: 'tableRow',
44
+ content: [
45
+ {
46
+ type: 'tableCell',
47
+ attrs: {
48
+ rowspan: 2,
49
+ colwidth: [148],
50
+ },
51
+ content: [
52
+ {
53
+ type: 'paragraph',
54
+ content: [],
55
+ },
56
+ ],
57
+ },
58
+ {
59
+ type: 'tableCell',
60
+ attrs: {
61
+ colwidth: [532],
62
+ },
63
+ content: [
64
+ {
65
+ type: 'paragraph',
66
+ content: [],
67
+ },
68
+ ],
69
+ },
70
+ ],
71
+ },
72
+ {
73
+ type: 'tableRow',
74
+ content: [
75
+ {
76
+ type: 'tableCell',
77
+ attrs: {
78
+ colwidth: [532],
79
+ },
80
+ content: [
81
+ {
82
+ type: 'paragraph',
83
+ content: [],
84
+ },
85
+ ],
86
+ },
87
+ ],
88
+ },
89
+ {
90
+ type: 'tableRow',
91
+ content: [
92
+ {
93
+ type: 'tableCell',
94
+ attrs: {
95
+ colwidth: [148],
96
+ },
97
+ content: [
98
+ {
99
+ type: 'paragraph',
100
+ content: [],
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ type: 'tableCell',
106
+ attrs: {
107
+ colwidth: [532],
108
+ },
109
+ content: [
110
+ {
111
+ type: 'paragraph',
112
+ content: [],
113
+ },
114
+ ],
115
+ },
116
+ ],
117
+ },
118
+ ],
119
+ },
120
+ {
121
+ type: 'paragraph',
122
+ content: [],
123
+ },
124
+ ],
125
+ };
126
+
127
+ export const twoColFullWidthTableWithContent = {
128
+ version: 1,
129
+ type: 'doc',
130
+ content: [
131
+ {
132
+ type: 'table',
133
+ attrs: {
134
+ isNumberColumnEnabled: true,
135
+ layout: 'full-width',
136
+ localId: 'abc-123',
137
+ },
138
+ content: [
139
+ {
140
+ type: 'tableRow',
141
+ content: [
142
+ {
143
+ type: 'tableHeader',
144
+ attrs: {
145
+ colwidth: [868],
146
+ },
147
+ content: [
148
+ {
149
+ type: 'paragraph',
150
+ content: [
151
+ {
152
+ type: 'text',
153
+ text: 'Steps to reproduce and screenshots',
154
+ },
155
+ ],
156
+ },
157
+ ],
158
+ },
159
+ {
160
+ type: 'tableHeader',
161
+ attrs: {
162
+ colwidth: [888],
163
+ },
164
+ content: [
165
+ {
166
+ type: 'paragraph',
167
+ content: [
168
+ {
169
+ type: 'text',
170
+ text: 'Priority',
171
+ },
172
+ ],
173
+ },
174
+ ],
175
+ },
176
+ ],
177
+ },
178
+ {
179
+ type: 'tableRow',
180
+ content: [
181
+ {
182
+ type: 'tableCell',
183
+ attrs: {
184
+ colwidth: [868],
185
+ },
186
+ content: [
187
+ {
188
+ type: 'paragraph',
189
+ content: [
190
+ {
191
+ type: 'text',
192
+ text: 'Possible to create a blank link',
193
+ },
194
+ ],
195
+ },
196
+ {
197
+ type: 'paragraph',
198
+ content: [
199
+ {
200
+ type: 'text',
201
+ text: 'Steps to reproduce:',
202
+ },
203
+ {
204
+ type: 'hardBreak',
205
+ },
206
+ {
207
+ type: 'text',
208
+ text: '1. Use markdown for a URL',
209
+ },
210
+ {
211
+ type: 'hardBreak',
212
+ },
213
+ {
214
+ type: 'text',
215
+ text:
216
+ '2. Paste a jira link in for the href and immediately close the bracket to complete the markdown',
217
+ },
218
+ ],
219
+ },
220
+ {
221
+ type: 'paragraph',
222
+ content: [
223
+ {
224
+ type: 'text',
225
+ text: 'Expected behaviour',
226
+ },
227
+ {
228
+ type: 'hardBreak',
229
+ },
230
+ {
231
+ type: 'text',
232
+ text:
233
+ 'markdown for URL works correctly? or smartcard overrides it?',
234
+ },
235
+ ],
236
+ },
237
+ {
238
+ type: 'paragraph',
239
+ content: [
240
+ {
241
+ type: 'text',
242
+ text: 'Actual behaviour',
243
+ },
244
+ {
245
+ type: 'hardBreak',
246
+ },
247
+ {
248
+ type: 'text',
249
+ text:
250
+ 'Smartcard link for Jira is still being processed and is entered as the value for the markdown for the URL ',
251
+ },
252
+ {
253
+ type: 'emoji',
254
+ attrs: {
255
+ shortName: ':question:',
256
+ id: 'atlassian-question_mark',
257
+ text: ':question:',
258
+ },
259
+ },
260
+ {
261
+ type: 'hardBreak',
262
+ },
263
+ {
264
+ type: 'text',
265
+ text:
266
+ 'URL ends up pointing to the confluence edit link but without a page ID so 404s',
267
+ },
268
+ ],
269
+ },
270
+ ],
271
+ },
272
+ {
273
+ type: 'tableCell',
274
+ attrs: {
275
+ colwidth: [888],
276
+ },
277
+ content: [
278
+ {
279
+ type: 'paragraph',
280
+ content: [
281
+ {
282
+ type: 'text',
283
+ text: 'Papercut',
284
+ },
285
+ ],
286
+ },
287
+ ],
288
+ },
289
+ ],
290
+ },
291
+ {
292
+ type: 'tableRow',
293
+ content: [
294
+ {
295
+ type: 'tableCell',
296
+ attrs: {
297
+ colwidth: [868],
298
+ },
299
+ content: [
300
+ {
301
+ type: 'paragraph',
302
+ content: [
303
+ {
304
+ type: 'text',
305
+ text:
306
+ "Publishing somewhat big pages doesn't really provide any indication to the user that their page is actually being published and they're going to be navigated away",
307
+ },
308
+ ],
309
+ },
310
+ ],
311
+ },
312
+ {
313
+ type: 'tableCell',
314
+ attrs: {
315
+ colwidth: [888],
316
+ },
317
+ content: [
318
+ {
319
+ type: 'paragraph',
320
+ content: [
321
+ {
322
+ type: 'text',
323
+ text: 'Papercut',
324
+ },
325
+ ],
326
+ },
327
+ ],
328
+ },
329
+ ],
330
+ },
331
+ ],
332
+ },
333
+ {
334
+ type: 'paragraph',
335
+ content: [],
336
+ },
337
+ ],
338
+ };
339
+
340
+ export const tableWithRowSpanAndColSpan = {
341
+ version: 1,
342
+ type: 'doc',
343
+ content: [
344
+ {
345
+ type: 'table',
346
+ attrs: {
347
+ isNumberColumnEnabled: false,
348
+ layout: 'default',
349
+ localId: 'abc-123',
350
+ },
351
+ content: [
352
+ {
353
+ type: 'tableRow',
354
+ content: [
355
+ {
356
+ type: 'tableHeader',
357
+ attrs: {
358
+ colwidth: [79],
359
+ },
360
+ content: [
361
+ {
362
+ type: 'paragraph',
363
+ content: [],
364
+ },
365
+ ],
366
+ },
367
+ {
368
+ type: 'tableHeader',
369
+ attrs: {
370
+ colspan: 2,
371
+ colwidth: [472, 128],
372
+ },
373
+ content: [
374
+ {
375
+ type: 'paragraph',
376
+ content: [],
377
+ },
378
+ ],
379
+ },
380
+ ],
381
+ },
382
+ {
383
+ type: 'tableRow',
384
+ content: [
385
+ {
386
+ type: 'tableCell',
387
+ attrs: {
388
+ colspan: 3,
389
+ colwidth: [79, 472, 128],
390
+ },
391
+ content: [
392
+ {
393
+ type: 'paragraph',
394
+ content: [],
395
+ },
396
+ ],
397
+ },
398
+ ],
399
+ },
400
+ {
401
+ type: 'tableRow',
402
+ content: [
403
+ {
404
+ type: 'tableCell',
405
+ attrs: {
406
+ rowspan: 2,
407
+ colwidth: [79],
408
+ },
409
+ content: [
410
+ {
411
+ type: 'paragraph',
412
+ content: [],
413
+ },
414
+ ],
415
+ },
416
+ {
417
+ type: 'tableCell',
418
+ attrs: {
419
+ colwidth: [472],
420
+ },
421
+ content: [
422
+ {
423
+ type: 'paragraph',
424
+ content: [],
425
+ },
426
+ ],
427
+ },
428
+ {
429
+ type: 'tableCell',
430
+ attrs: {
431
+ rowspan: 2,
432
+ colwidth: [128],
433
+ },
434
+ content: [
435
+ {
436
+ type: 'paragraph',
437
+ content: [],
438
+ },
439
+ ],
440
+ },
441
+ ],
442
+ },
443
+ {
444
+ type: 'tableRow',
445
+ content: [
446
+ {
447
+ type: 'tableCell',
448
+ attrs: {
449
+ colwidth: [472],
450
+ },
451
+ content: [
452
+ {
453
+ type: 'paragraph',
454
+ content: [],
455
+ },
456
+ ],
457
+ },
458
+ ],
459
+ },
460
+ ],
461
+ },
462
+ {
463
+ type: 'paragraph',
464
+ content: [],
465
+ },
466
+ ],
467
+ };
468
+
469
+ export const tableWithDynamicLayoutSizing = {
470
+ version: 1,
471
+ type: 'doc',
472
+ content: [
473
+ {
474
+ type: 'table',
475
+ attrs: {
476
+ isNumberColumnEnabled: false,
477
+ layout: 'default',
478
+ localId: 'abc-123',
479
+ },
480
+ content: [
481
+ {
482
+ type: 'tableRow',
483
+ content: [
484
+ {
485
+ type: 'tableHeader',
486
+ attrs: {
487
+ colwidth: [166],
488
+ },
489
+ content: [
490
+ {
491
+ type: 'paragraph',
492
+ content: [],
493
+ },
494
+ ],
495
+ },
496
+ {
497
+ type: 'tableHeader',
498
+ attrs: {
499
+ colwidth: [594],
500
+ },
501
+ content: [
502
+ {
503
+ type: 'paragraph',
504
+ content: [],
505
+ },
506
+ ],
507
+ },
508
+ ],
509
+ },
510
+ {
511
+ type: 'tableRow',
512
+ content: [
513
+ {
514
+ type: 'tableCell',
515
+ attrs: {
516
+ rowspan: 2,
517
+ colwidth: [166],
518
+ },
519
+ content: [
520
+ {
521
+ type: 'paragraph',
522
+ content: [],
523
+ },
524
+ ],
525
+ },
526
+ {
527
+ type: 'tableCell',
528
+ attrs: {
529
+ colwidth: [594],
530
+ },
531
+ content: [
532
+ {
533
+ type: 'paragraph',
534
+ content: [],
535
+ },
536
+ ],
537
+ },
538
+ ],
539
+ },
540
+ {
541
+ type: 'tableRow',
542
+ content: [
543
+ {
544
+ type: 'tableCell',
545
+ attrs: {
546
+ colwidth: [594],
547
+ },
548
+ content: [
549
+ {
550
+ type: 'paragraph',
551
+ content: [],
552
+ },
553
+ ],
554
+ },
555
+ ],
556
+ },
557
+ {
558
+ type: 'tableRow',
559
+ content: [
560
+ {
561
+ type: 'tableCell',
562
+ attrs: {
563
+ colwidth: [166],
564
+ },
565
+ content: [
566
+ {
567
+ type: 'paragraph',
568
+ content: [],
569
+ },
570
+ ],
571
+ },
572
+ {
573
+ type: 'tableCell',
574
+ attrs: {
575
+ colwidth: [594],
576
+ },
577
+ content: [
578
+ {
579
+ type: 'paragraph',
580
+ content: [],
581
+ },
582
+ ],
583
+ },
584
+ ],
585
+ },
586
+ ],
587
+ },
588
+ {
589
+ type: 'paragraph',
590
+ content: [],
591
+ },
592
+ ],
593
+ };
594
+
595
+ export const tableInsideColumns = {
596
+ version: 1,
597
+ type: 'doc',
598
+ content: [
599
+ {
600
+ type: 'layoutSection',
601
+ content: [
602
+ {
603
+ type: 'layoutColumn',
604
+ attrs: {
605
+ width: 50,
606
+ },
607
+ content: [
608
+ {
609
+ type: 'table',
610
+ attrs: {
611
+ isNumberColumnEnabled: false,
612
+ layout: 'default',
613
+ localId: 'abc-123',
614
+ },
615
+ content: [
616
+ {
617
+ type: 'tableRow',
618
+ content: [
619
+ {
620
+ type: 'tableHeader',
621
+ attrs: {
622
+ colwidth: [202],
623
+ },
624
+ content: [
625
+ {
626
+ type: 'paragraph',
627
+ content: [],
628
+ },
629
+ ],
630
+ },
631
+ {
632
+ type: 'tableHeader',
633
+ attrs: {
634
+ colwidth: [152],
635
+ },
636
+ content: [
637
+ {
638
+ type: 'paragraph',
639
+ content: [],
640
+ },
641
+ ],
642
+ },
643
+ {
644
+ type: 'tableHeader',
645
+ attrs: {
646
+ colwidth: [107],
647
+ },
648
+ content: [
649
+ {
650
+ type: 'paragraph',
651
+ content: [],
652
+ },
653
+ ],
654
+ },
655
+ ],
656
+ },
657
+ {
658
+ type: 'tableRow',
659
+ content: [
660
+ {
661
+ type: 'tableCell',
662
+ attrs: {
663
+ colwidth: [202],
664
+ },
665
+ content: [
666
+ {
667
+ type: 'paragraph',
668
+ content: [],
669
+ },
670
+ ],
671
+ },
672
+ {
673
+ type: 'tableCell',
674
+ attrs: {
675
+ colwidth: [152],
676
+ },
677
+ content: [
678
+ {
679
+ type: 'paragraph',
680
+ content: [],
681
+ },
682
+ ],
683
+ },
684
+ {
685
+ type: 'tableCell',
686
+ attrs: {
687
+ colwidth: [107],
688
+ },
689
+ content: [
690
+ {
691
+ type: 'paragraph',
692
+ content: [],
693
+ },
694
+ ],
695
+ },
696
+ ],
697
+ },
698
+ {
699
+ type: 'tableRow',
700
+ content: [
701
+ {
702
+ type: 'tableCell',
703
+ attrs: {
704
+ colwidth: [202],
705
+ },
706
+ content: [
707
+ {
708
+ type: 'paragraph',
709
+ content: [],
710
+ },
711
+ ],
712
+ },
713
+ {
714
+ type: 'tableCell',
715
+ attrs: {
716
+ colwidth: [152],
717
+ },
718
+ content: [
719
+ {
720
+ type: 'paragraph',
721
+ content: [],
722
+ },
723
+ ],
724
+ },
725
+ {
726
+ type: 'tableCell',
727
+ attrs: {
728
+ colwidth: [107],
729
+ },
730
+ content: [
731
+ {
732
+ type: 'paragraph',
733
+ content: [],
734
+ },
735
+ ],
736
+ },
737
+ ],
738
+ },
739
+ ],
740
+ },
741
+ ],
742
+ },
743
+ {
744
+ type: 'layoutColumn',
745
+ attrs: {
746
+ width: 50,
747
+ },
748
+ content: [
749
+ {
750
+ type: 'paragraph',
751
+ content: [],
752
+ },
753
+ ],
754
+ },
755
+ ],
756
+ },
757
+ ],
758
+ };
759
+
760
+ export const resizedTableWithStackedColumns = {
761
+ version: 1,
762
+ type: 'doc',
763
+ content: [
764
+ {
765
+ type: 'table',
766
+ attrs: {
767
+ isNumberColumnEnabled: false,
768
+ layout: 'default',
769
+ localId: 'abc-123',
770
+ },
771
+ content: [
772
+ {
773
+ type: 'tableRow',
774
+ content: [
775
+ {
776
+ type: 'tableHeader',
777
+ attrs: {
778
+ colwidth: [84],
779
+ },
780
+ content: [
781
+ {
782
+ type: 'paragraph',
783
+ content: [],
784
+ },
785
+ ],
786
+ },
787
+ {
788
+ type: 'tableHeader',
789
+ attrs: {
790
+ colwidth: [118],
791
+ },
792
+ content: [
793
+ {
794
+ type: 'paragraph',
795
+ content: [],
796
+ },
797
+ ],
798
+ },
799
+ {
800
+ type: 'tableHeader',
801
+ attrs: {
802
+ colwidth: [48],
803
+ },
804
+ content: [
805
+ {
806
+ type: 'paragraph',
807
+ content: [],
808
+ },
809
+ ],
810
+ },
811
+ {
812
+ type: 'tableHeader',
813
+ attrs: {
814
+ colwidth: [111],
815
+ },
816
+ content: [
817
+ {
818
+ type: 'paragraph',
819
+ content: [],
820
+ },
821
+ ],
822
+ },
823
+ {
824
+ type: 'tableHeader',
825
+ attrs: {
826
+ colwidth: [318],
827
+ },
828
+ content: [
829
+ {
830
+ type: 'paragraph',
831
+ content: [],
832
+ },
833
+ ],
834
+ },
835
+ ],
836
+ },
837
+ {
838
+ type: 'tableRow',
839
+ content: [
840
+ {
841
+ type: 'tableCell',
842
+ attrs: {
843
+ colwidth: [84],
844
+ },
845
+ content: [
846
+ {
847
+ type: 'paragraph',
848
+ content: [],
849
+ },
850
+ ],
851
+ },
852
+ {
853
+ type: 'tableCell',
854
+ attrs: {
855
+ colwidth: [118],
856
+ },
857
+ content: [
858
+ {
859
+ type: 'paragraph',
860
+ content: [],
861
+ },
862
+ ],
863
+ },
864
+ {
865
+ type: 'tableCell',
866
+ attrs: {
867
+ colwidth: [48],
868
+ },
869
+ content: [
870
+ {
871
+ type: 'paragraph',
872
+ content: [],
873
+ },
874
+ ],
875
+ },
876
+ {
877
+ type: 'tableCell',
878
+ attrs: {
879
+ colwidth: [111],
880
+ },
881
+ content: [
882
+ {
883
+ type: 'paragraph',
884
+ content: [],
885
+ },
886
+ ],
887
+ },
888
+ {
889
+ type: 'tableCell',
890
+ attrs: {
891
+ colwidth: [318],
892
+ },
893
+ content: [
894
+ {
895
+ type: 'paragraph',
896
+ content: [],
897
+ },
898
+ ],
899
+ },
900
+ ],
901
+ },
902
+ {
903
+ type: 'tableRow',
904
+ content: [
905
+ {
906
+ type: 'tableCell',
907
+ attrs: {
908
+ colwidth: [84],
909
+ },
910
+ content: [
911
+ {
912
+ type: 'paragraph',
913
+ content: [],
914
+ },
915
+ ],
916
+ },
917
+ {
918
+ type: 'tableCell',
919
+ attrs: {
920
+ colwidth: [118],
921
+ },
922
+ content: [
923
+ {
924
+ type: 'paragraph',
925
+ content: [],
926
+ },
927
+ ],
928
+ },
929
+ {
930
+ type: 'tableCell',
931
+ attrs: {
932
+ colwidth: [48],
933
+ },
934
+ content: [
935
+ {
936
+ type: 'paragraph',
937
+ content: [],
938
+ },
939
+ ],
940
+ },
941
+ {
942
+ type: 'tableCell',
943
+ attrs: {
944
+ colwidth: [111],
945
+ },
946
+ content: [
947
+ {
948
+ type: 'paragraph',
949
+ content: [],
950
+ },
951
+ ],
952
+ },
953
+ {
954
+ type: 'tableCell',
955
+ attrs: {
956
+ colwidth: [318],
957
+ },
958
+ content: [
959
+ {
960
+ type: 'paragraph',
961
+ content: [],
962
+ },
963
+ ],
964
+ },
965
+ ],
966
+ },
967
+ ],
968
+ },
969
+ ],
970
+ };
971
+
972
+ export const tableForBulkResize = {
973
+ version: 1,
974
+ type: 'doc',
975
+ content: [
976
+ {
977
+ type: 'table',
978
+ attrs: {
979
+ isNumberColumnEnabled: false,
980
+ layout: 'default',
981
+ localId: 'abc-123',
982
+ },
983
+ content: [
984
+ {
985
+ type: 'tableRow',
986
+ content: [
987
+ {
988
+ type: 'tableHeader',
989
+ attrs: {
990
+ colwidth: [48],
991
+ },
992
+ content: [
993
+ {
994
+ type: 'paragraph',
995
+ content: [],
996
+ },
997
+ ],
998
+ },
999
+ {
1000
+ type: 'tableHeader',
1001
+ attrs: {
1002
+ colwidth: [48],
1003
+ },
1004
+ content: [
1005
+ {
1006
+ type: 'paragraph',
1007
+ content: [],
1008
+ },
1009
+ ],
1010
+ },
1011
+ {
1012
+ type: 'tableHeader',
1013
+ attrs: {
1014
+ colwidth: [231],
1015
+ },
1016
+ content: [
1017
+ {
1018
+ type: 'paragraph',
1019
+ content: [],
1020
+ },
1021
+ ],
1022
+ },
1023
+ {
1024
+ type: 'tableHeader',
1025
+ attrs: {
1026
+ colwidth: [108],
1027
+ },
1028
+ content: [
1029
+ {
1030
+ type: 'paragraph',
1031
+ content: [],
1032
+ },
1033
+ ],
1034
+ },
1035
+ {
1036
+ type: 'tableHeader',
1037
+ attrs: {
1038
+ colwidth: [108],
1039
+ },
1040
+ content: [
1041
+ {
1042
+ type: 'paragraph',
1043
+ content: [],
1044
+ },
1045
+ ],
1046
+ },
1047
+ {
1048
+ type: 'tableHeader',
1049
+ attrs: {
1050
+ colwidth: [108],
1051
+ },
1052
+ content: [
1053
+ {
1054
+ type: 'paragraph',
1055
+ content: [],
1056
+ },
1057
+ ],
1058
+ },
1059
+ {
1060
+ type: 'tableHeader',
1061
+ attrs: {
1062
+ colwidth: [108],
1063
+ },
1064
+ content: [
1065
+ {
1066
+ type: 'paragraph',
1067
+ content: [],
1068
+ },
1069
+ ],
1070
+ },
1071
+ ],
1072
+ },
1073
+ {
1074
+ type: 'tableRow',
1075
+ content: [
1076
+ {
1077
+ type: 'tableCell',
1078
+ attrs: {
1079
+ colwidth: [48],
1080
+ },
1081
+ content: [
1082
+ {
1083
+ type: 'paragraph',
1084
+ content: [],
1085
+ },
1086
+ ],
1087
+ },
1088
+ {
1089
+ type: 'tableCell',
1090
+ attrs: {
1091
+ colwidth: [48],
1092
+ },
1093
+ content: [
1094
+ {
1095
+ type: 'paragraph',
1096
+ content: [],
1097
+ },
1098
+ ],
1099
+ },
1100
+ {
1101
+ type: 'tableCell',
1102
+ attrs: {
1103
+ colwidth: [231],
1104
+ },
1105
+ content: [
1106
+ {
1107
+ type: 'paragraph',
1108
+ content: [],
1109
+ },
1110
+ ],
1111
+ },
1112
+ {
1113
+ type: 'tableCell',
1114
+ attrs: {
1115
+ colwidth: [108],
1116
+ },
1117
+ content: [
1118
+ {
1119
+ type: 'paragraph',
1120
+ content: [],
1121
+ },
1122
+ ],
1123
+ },
1124
+ {
1125
+ type: 'tableCell',
1126
+ attrs: {
1127
+ colwidth: [108],
1128
+ },
1129
+ content: [
1130
+ {
1131
+ type: 'paragraph',
1132
+ content: [],
1133
+ },
1134
+ ],
1135
+ },
1136
+ {
1137
+ type: 'tableCell',
1138
+ attrs: {
1139
+ colwidth: [108],
1140
+ },
1141
+ content: [
1142
+ {
1143
+ type: 'paragraph',
1144
+ content: [],
1145
+ },
1146
+ ],
1147
+ },
1148
+ {
1149
+ type: 'tableCell',
1150
+ attrs: {
1151
+ colwidth: [108],
1152
+ },
1153
+ content: [
1154
+ {
1155
+ type: 'paragraph',
1156
+ content: [],
1157
+ },
1158
+ ],
1159
+ },
1160
+ ],
1161
+ },
1162
+ {
1163
+ type: 'tableRow',
1164
+ content: [
1165
+ {
1166
+ type: 'tableCell',
1167
+ attrs: {
1168
+ colwidth: [48],
1169
+ },
1170
+ content: [
1171
+ {
1172
+ type: 'paragraph',
1173
+ content: [],
1174
+ },
1175
+ ],
1176
+ },
1177
+ {
1178
+ type: 'tableCell',
1179
+ attrs: {
1180
+ colwidth: [48],
1181
+ },
1182
+ content: [
1183
+ {
1184
+ type: 'paragraph',
1185
+ content: [],
1186
+ },
1187
+ ],
1188
+ },
1189
+ {
1190
+ type: 'tableCell',
1191
+ attrs: {
1192
+ colwidth: [231],
1193
+ },
1194
+ content: [
1195
+ {
1196
+ type: 'paragraph',
1197
+ content: [],
1198
+ },
1199
+ ],
1200
+ },
1201
+ {
1202
+ type: 'tableCell',
1203
+ attrs: {
1204
+ colwidth: [108],
1205
+ },
1206
+ content: [
1207
+ {
1208
+ type: 'paragraph',
1209
+ content: [],
1210
+ },
1211
+ ],
1212
+ },
1213
+ {
1214
+ type: 'tableCell',
1215
+ attrs: {
1216
+ colwidth: [108],
1217
+ },
1218
+ content: [
1219
+ {
1220
+ type: 'paragraph',
1221
+ content: [],
1222
+ },
1223
+ ],
1224
+ },
1225
+ {
1226
+ type: 'tableCell',
1227
+ attrs: {
1228
+ colwidth: [108],
1229
+ },
1230
+ content: [
1231
+ {
1232
+ type: 'paragraph',
1233
+ content: [],
1234
+ },
1235
+ ],
1236
+ },
1237
+ {
1238
+ type: 'tableCell',
1239
+ attrs: {
1240
+ colwidth: [108],
1241
+ },
1242
+ content: [
1243
+ {
1244
+ type: 'paragraph',
1245
+ content: [],
1246
+ },
1247
+ ],
1248
+ },
1249
+ ],
1250
+ },
1251
+ ],
1252
+ },
1253
+ ],
1254
+ };
1255
+
1256
+ export const tableForBulkResize3Cols = {
1257
+ version: 1,
1258
+ type: 'doc',
1259
+ content: [
1260
+ {
1261
+ type: 'table',
1262
+ attrs: {
1263
+ isNumberColumnEnabled: false,
1264
+ layout: 'default',
1265
+ localId: 'abc-123',
1266
+ },
1267
+ content: [
1268
+ {
1269
+ type: 'tableRow',
1270
+ content: [
1271
+ {
1272
+ type: 'tableHeader',
1273
+ attrs: {
1274
+ colwidth: [119],
1275
+ },
1276
+ content: [
1277
+ {
1278
+ type: 'paragraph',
1279
+ content: [],
1280
+ },
1281
+ ],
1282
+ },
1283
+ {
1284
+ type: 'tableHeader',
1285
+ attrs: {
1286
+ colwidth: [110],
1287
+ },
1288
+ content: [
1289
+ {
1290
+ type: 'paragraph',
1291
+ content: [],
1292
+ },
1293
+ ],
1294
+ },
1295
+ {
1296
+ type: 'tableHeader',
1297
+ attrs: {
1298
+ colwidth: [403],
1299
+ },
1300
+ content: [
1301
+ {
1302
+ type: 'paragraph',
1303
+ content: [],
1304
+ },
1305
+ ],
1306
+ },
1307
+ {
1308
+ type: 'tableHeader',
1309
+ attrs: {
1310
+ colwidth: [48],
1311
+ },
1312
+ content: [
1313
+ {
1314
+ type: 'paragraph',
1315
+ content: [],
1316
+ },
1317
+ ],
1318
+ },
1319
+ ],
1320
+ },
1321
+ {
1322
+ type: 'tableRow',
1323
+ content: [
1324
+ {
1325
+ type: 'tableCell',
1326
+ attrs: {
1327
+ colwidth: [119],
1328
+ },
1329
+ content: [
1330
+ {
1331
+ type: 'paragraph',
1332
+ content: [],
1333
+ },
1334
+ ],
1335
+ },
1336
+ {
1337
+ type: 'tableCell',
1338
+ attrs: {
1339
+ colwidth: [110],
1340
+ },
1341
+ content: [
1342
+ {
1343
+ type: 'paragraph',
1344
+ content: [],
1345
+ },
1346
+ ],
1347
+ },
1348
+ {
1349
+ type: 'tableCell',
1350
+ attrs: {
1351
+ colwidth: [403],
1352
+ },
1353
+ content: [
1354
+ {
1355
+ type: 'paragraph',
1356
+ content: [],
1357
+ },
1358
+ ],
1359
+ },
1360
+ {
1361
+ type: 'tableCell',
1362
+ attrs: {
1363
+ colwidth: [48],
1364
+ },
1365
+ content: [
1366
+ {
1367
+ type: 'paragraph',
1368
+ content: [],
1369
+ },
1370
+ ],
1371
+ },
1372
+ ],
1373
+ },
1374
+ {
1375
+ type: 'tableRow',
1376
+ content: [
1377
+ {
1378
+ type: 'tableCell',
1379
+ attrs: {
1380
+ colwidth: [119],
1381
+ },
1382
+ content: [
1383
+ {
1384
+ type: 'paragraph',
1385
+ content: [],
1386
+ },
1387
+ ],
1388
+ },
1389
+ {
1390
+ type: 'tableCell',
1391
+ attrs: {
1392
+ colwidth: [110],
1393
+ },
1394
+ content: [
1395
+ {
1396
+ type: 'paragraph',
1397
+ content: [],
1398
+ },
1399
+ ],
1400
+ },
1401
+ {
1402
+ type: 'tableCell',
1403
+ attrs: {
1404
+ colwidth: [403],
1405
+ },
1406
+ content: [
1407
+ {
1408
+ type: 'paragraph',
1409
+ content: [],
1410
+ },
1411
+ ],
1412
+ },
1413
+ {
1414
+ type: 'tableCell',
1415
+ attrs: {
1416
+ colwidth: [48],
1417
+ },
1418
+ content: [
1419
+ {
1420
+ type: 'paragraph',
1421
+ content: [],
1422
+ },
1423
+ ],
1424
+ },
1425
+ ],
1426
+ },
1427
+ ],
1428
+ },
1429
+ ],
1430
+ };
1431
+
1432
+ export const tableForBulkResizeWithNumberCol = {
1433
+ version: 1,
1434
+ type: 'doc',
1435
+ content: [
1436
+ {
1437
+ type: 'table',
1438
+ attrs: {
1439
+ isNumberColumnEnabled: true,
1440
+ layout: 'default',
1441
+ localId: 'abc-123',
1442
+ },
1443
+ content: [
1444
+ {
1445
+ type: 'tableRow',
1446
+ content: [
1447
+ {
1448
+ type: 'tableHeader',
1449
+ attrs: {
1450
+ colwidth: [134],
1451
+ },
1452
+ content: [
1453
+ {
1454
+ type: 'paragraph',
1455
+ content: [],
1456
+ },
1457
+ ],
1458
+ },
1459
+ {
1460
+ type: 'tableHeader',
1461
+ attrs: {
1462
+ colwidth: [519],
1463
+ },
1464
+ content: [
1465
+ {
1466
+ type: 'paragraph',
1467
+ content: [],
1468
+ },
1469
+ ],
1470
+ },
1471
+ {
1472
+ type: 'tableHeader',
1473
+ attrs: {
1474
+ colwidth: [48],
1475
+ },
1476
+ content: [
1477
+ {
1478
+ type: 'paragraph',
1479
+ content: [],
1480
+ },
1481
+ ],
1482
+ },
1483
+ {
1484
+ type: 'tableHeader',
1485
+ attrs: {
1486
+ colwidth: [48],
1487
+ },
1488
+ content: [
1489
+ {
1490
+ type: 'paragraph',
1491
+ content: [],
1492
+ },
1493
+ ],
1494
+ },
1495
+ ],
1496
+ },
1497
+ {
1498
+ type: 'tableRow',
1499
+ content: [
1500
+ {
1501
+ type: 'tableCell',
1502
+ attrs: {
1503
+ colwidth: [134],
1504
+ },
1505
+ content: [
1506
+ {
1507
+ type: 'paragraph',
1508
+ content: [],
1509
+ },
1510
+ ],
1511
+ },
1512
+ {
1513
+ type: 'tableCell',
1514
+ attrs: {
1515
+ colwidth: [519],
1516
+ },
1517
+ content: [
1518
+ {
1519
+ type: 'paragraph',
1520
+ content: [],
1521
+ },
1522
+ ],
1523
+ },
1524
+ {
1525
+ type: 'tableCell',
1526
+ attrs: {
1527
+ colwidth: [48],
1528
+ },
1529
+ content: [
1530
+ {
1531
+ type: 'paragraph',
1532
+ content: [],
1533
+ },
1534
+ ],
1535
+ },
1536
+ {
1537
+ type: 'tableCell',
1538
+ attrs: {
1539
+ colwidth: [48],
1540
+ },
1541
+ content: [
1542
+ {
1543
+ type: 'paragraph',
1544
+ content: [],
1545
+ },
1546
+ ],
1547
+ },
1548
+ ],
1549
+ },
1550
+ {
1551
+ type: 'tableRow',
1552
+ content: [
1553
+ {
1554
+ type: 'tableCell',
1555
+ attrs: {
1556
+ colwidth: [134],
1557
+ },
1558
+ content: [
1559
+ {
1560
+ type: 'paragraph',
1561
+ content: [],
1562
+ },
1563
+ ],
1564
+ },
1565
+ {
1566
+ type: 'tableCell',
1567
+ attrs: {
1568
+ colwidth: [519],
1569
+ },
1570
+ content: [
1571
+ {
1572
+ type: 'paragraph',
1573
+ content: [],
1574
+ },
1575
+ ],
1576
+ },
1577
+ {
1578
+ type: 'tableCell',
1579
+ attrs: {
1580
+ colwidth: [48],
1581
+ },
1582
+ content: [
1583
+ {
1584
+ type: 'paragraph',
1585
+ content: [],
1586
+ },
1587
+ ],
1588
+ },
1589
+ {
1590
+ type: 'tableCell',
1591
+ attrs: {
1592
+ colwidth: [48],
1593
+ },
1594
+ content: [
1595
+ {
1596
+ type: 'paragraph',
1597
+ content: [],
1598
+ },
1599
+ ],
1600
+ },
1601
+ ],
1602
+ },
1603
+ ],
1604
+ },
1605
+ {
1606
+ type: 'paragraph',
1607
+ content: [],
1608
+ },
1609
+ ],
1610
+ };