@blocknote/core 0.24.2 → 0.25.1

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 (143) hide show
  1. package/dist/blocknote.cjs +12 -0
  2. package/dist/blocknote.cjs.map +1 -0
  3. package/dist/blocknote.js +4784 -3545
  4. package/dist/blocknote.js.map +1 -1
  5. package/dist/comments.cjs +2 -0
  6. package/dist/comments.cjs.map +1 -0
  7. package/dist/comments.js +593 -0
  8. package/dist/comments.js.map +1 -0
  9. package/dist/style.css +1 -1
  10. package/dist/tsconfig.tsbuildinfo +1 -1
  11. package/dist/webpack-stats.json +1 -1
  12. package/package.json +40 -27
  13. package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +1022 -378
  14. package/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +730 -270
  15. package/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap +3100 -1260
  16. package/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap +438 -162
  17. package/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +1168 -432
  18. package/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +930 -378
  19. package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +2485 -1015
  20. package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +28 -1
  21. package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +1 -1
  22. package/src/api/blockManipulation/selections/__snapshots__/selection.test.ts.snap +292 -108
  23. package/src/api/blockManipulation/setupTestEnv.ts +14 -1
  24. package/src/api/blockManipulation/tables/tables.test.ts +1987 -0
  25. package/src/api/blockManipulation/tables/tables.ts +887 -0
  26. package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraph.html +66 -24
  27. package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraphText.html +66 -24
  28. package/src/api/clipboard/__snapshots__/external/pasteImage.html +66 -24
  29. package/src/api/clipboard/__snapshots__/external/pasteParagraphInCustomBlock.html +66 -24
  30. package/src/api/clipboard/__snapshots__/external/pasteTable.html +132 -48
  31. package/src/api/clipboard/__snapshots__/external/pasteTableInExistingTable.html +136 -44
  32. package/src/api/clipboard/toClipboard/copyExtension.ts +2 -3
  33. package/src/api/exporters/html/__snapshots__/table/headerCols/external.html +1 -0
  34. package/src/api/exporters/html/__snapshots__/table/headerCols/internal.html +1 -0
  35. package/src/api/exporters/html/__snapshots__/table/headerRows/external.html +1 -0
  36. package/src/api/exporters/html/__snapshots__/table/headerRows/internal.html +1 -0
  37. package/src/api/exporters/html/__snapshots__/table/headersRows/external.html +1 -0
  38. package/src/api/exporters/html/__snapshots__/table/headersRows/internal.html +1 -0
  39. package/src/api/exporters/html/__snapshots__/table/mixedCellColors/external.html +1 -0
  40. package/src/api/exporters/html/__snapshots__/table/mixedCellColors/internal.html +1 -0
  41. package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/external.html +1 -0
  42. package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/internal.html +1 -0
  43. package/src/api/exporters/markdown/__snapshots__/table/headerCols/markdown.md +4 -0
  44. package/src/api/exporters/markdown/__snapshots__/table/headerRows/markdown.md +4 -0
  45. package/src/api/exporters/markdown/__snapshots__/table/mixedCellColors/markdown.md +5 -0
  46. package/src/api/exporters/markdown/__snapshots__/table/mixedRowspansAndColspans/markdown.md +5 -0
  47. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +985 -20
  48. package/src/api/nodeConversions/blockToNode.ts +63 -20
  49. package/src/api/nodeConversions/nodeToBlock.ts +75 -13
  50. package/src/api/parsers/html/__snapshots__/parse-notion-html.json +145 -54
  51. package/src/api/testUtil/cases/defaultSchema.ts +782 -9
  52. package/src/api/testUtil/partialBlockTestUtil.ts +39 -4
  53. package/src/blocks/TableBlockContent/TableBlockContent.ts +11 -5
  54. package/src/blocks/defaultBlockTypeGuards.ts +8 -0
  55. package/src/comments/index.ts +9 -0
  56. package/src/comments/models/User.ts +8 -0
  57. package/src/comments/threadstore/DefaultThreadStoreAuth.ts +106 -0
  58. package/src/comments/threadstore/ThreadStore.ts +134 -0
  59. package/src/comments/threadstore/ThreadStoreAuth.ts +13 -0
  60. package/src/comments/threadstore/TipTapThreadStore.ts +292 -0
  61. package/src/comments/threadstore/yjs/RESTYjsThreadStore.ts +144 -0
  62. package/src/comments/threadstore/yjs/YjsThreadStore.test.ts +294 -0
  63. package/src/comments/threadstore/yjs/YjsThreadStore.ts +340 -0
  64. package/src/comments/threadstore/yjs/YjsThreadStoreBase.ts +48 -0
  65. package/src/comments/threadstore/yjs/yjsHelpers.ts +121 -0
  66. package/src/comments/types.ts +117 -0
  67. package/src/editor/Block.css +16 -8
  68. package/src/editor/BlockNoteEditor.ts +269 -92
  69. package/src/editor/BlockNoteExtensions.ts +24 -1
  70. package/src/editor/BlockNoteTipTapEditor.ts +5 -1
  71. package/src/editor/editor.css +23 -4
  72. package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +1 -1
  73. package/src/extensions/Collaboration/createCollaborationExtensions.ts +8 -17
  74. package/src/extensions/Comments/CommentMark.ts +61 -0
  75. package/src/extensions/Comments/CommentsPlugin.ts +301 -0
  76. package/src/extensions/Comments/userstore/UserStore.ts +72 -0
  77. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +9 -5
  78. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +3 -3
  79. package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +52 -0
  80. package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +34 -17
  81. package/src/extensions/TableHandles/TableHandlesPlugin.ts +409 -57
  82. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +2 -0
  83. package/src/extensions/TextColor/TextColorExtension.ts +1 -1
  84. package/src/i18n/locales/ar.ts +23 -0
  85. package/src/i18n/locales/de.ts +15 -0
  86. package/src/i18n/locales/en.ts +25 -1
  87. package/src/i18n/locales/es.ts +16 -1
  88. package/src/i18n/locales/fr.ts +23 -0
  89. package/src/i18n/locales/hr.ts +18 -0
  90. package/src/i18n/locales/is.ts +24 -1
  91. package/src/i18n/locales/it.ts +15 -0
  92. package/src/i18n/locales/ja.ts +23 -0
  93. package/src/i18n/locales/ko.ts +23 -0
  94. package/src/i18n/locales/nl.ts +23 -0
  95. package/src/i18n/locales/no.ts +23 -0
  96. package/src/i18n/locales/pl.ts +23 -0
  97. package/src/i18n/locales/pt.ts +23 -0
  98. package/src/i18n/locales/ru.ts +23 -0
  99. package/src/i18n/locales/uk.ts +23 -0
  100. package/src/i18n/locales/vi.ts +23 -0
  101. package/src/i18n/locales/zh.ts +23 -0
  102. package/src/index.ts +6 -4
  103. package/src/schema/blocks/types.ts +32 -2
  104. package/src/util/browser.ts +1 -1
  105. package/src/util/table.ts +107 -0
  106. package/types/src/api/blockManipulation/tables/tables.d.ts +343 -0
  107. package/types/src/api/blockManipulation/tables/tables.test.d.ts +1 -0
  108. package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
  109. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +1 -2
  110. package/types/src/blocks/defaultBlockTypeGuards.d.ts +3 -0
  111. package/types/src/comments/index.d.ts +9 -0
  112. package/types/src/comments/models/User.d.ts +8 -0
  113. package/types/src/comments/threadstore/DefaultThreadStoreAuth.d.ts +47 -0
  114. package/types/src/comments/threadstore/ThreadStore.d.ts +121 -0
  115. package/types/src/comments/threadstore/ThreadStoreAuth.d.ts +12 -0
  116. package/types/src/comments/threadstore/TipTapThreadStore.d.ts +97 -0
  117. package/types/src/comments/threadstore/yjs/RESTYjsThreadStore.d.ts +83 -0
  118. package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +79 -0
  119. package/types/src/comments/threadstore/yjs/YjsThreadStore.test.d.ts +1 -0
  120. package/types/src/comments/threadstore/yjs/YjsThreadStoreBase.d.ts +15 -0
  121. package/types/src/comments/threadstore/yjs/yjsHelpers.d.ts +13 -0
  122. package/types/src/comments/types.d.ts +109 -0
  123. package/types/src/editor/BlockNoteEditor.d.ts +146 -66
  124. package/types/src/editor/BlockNoteExtensions.d.ts +4 -0
  125. package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
  126. package/types/src/extensions/Comments/CommentMark.d.ts +2 -0
  127. package/types/src/extensions/Comments/CommentsPlugin.d.ts +49 -0
  128. package/types/src/extensions/Comments/userstore/UserStore.d.ts +31 -0
  129. package/types/src/extensions/ShowSelection/ShowSelectionPlugin.d.ts +15 -0
  130. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +66 -1
  131. package/types/src/i18n/locales/de.d.ts +15 -0
  132. package/types/src/i18n/locales/en.d.ts +20 -0
  133. package/types/src/i18n/locales/es.d.ts +15 -0
  134. package/types/src/i18n/locales/hr.d.ts +18 -0
  135. package/types/src/i18n/locales/it.d.ts +15 -0
  136. package/types/src/index.d.ts +5 -4
  137. package/types/src/pm-nodes/BlockContainer.d.ts +2 -2
  138. package/types/src/pm-nodes/BlockGroup.d.ts +2 -2
  139. package/types/src/schema/blocks/types.d.ts +23 -2
  140. package/types/src/util/browser.d.ts +1 -1
  141. package/types/src/util/table.d.ts +12 -0
  142. package/dist/blocknote.umd.cjs +0 -11
  143. package/dist/blocknote.umd.cjs.map +0 -1
@@ -176,80 +176,172 @@ exports[`Test replaceBlocks > Remove multiple consecutive blocks 1`] = `
176
176
  undefined,
177
177
  undefined,
178
178
  ],
179
+ "headerCols": undefined,
180
+ "headerRows": undefined,
179
181
  "rows": [
180
182
  {
181
183
  "cells": [
182
- [
183
- {
184
- "styles": {},
185
- "text": "Cell 1",
186
- "type": "text",
184
+ {
185
+ "content": [
186
+ {
187
+ "styles": {},
188
+ "text": "Cell 1",
189
+ "type": "text",
190
+ },
191
+ ],
192
+ "props": {
193
+ "backgroundColor": "default",
194
+ "colspan": 1,
195
+ "rowspan": 1,
196
+ "textAlignment": "left",
197
+ "textColor": "default",
187
198
  },
188
- ],
189
- [
190
- {
191
- "styles": {},
192
- "text": "Cell 2",
193
- "type": "text",
199
+ "type": "tableCell",
200
+ },
201
+ {
202
+ "content": [
203
+ {
204
+ "styles": {},
205
+ "text": "Cell 2",
206
+ "type": "text",
207
+ },
208
+ ],
209
+ "props": {
210
+ "backgroundColor": "default",
211
+ "colspan": 1,
212
+ "rowspan": 1,
213
+ "textAlignment": "left",
214
+ "textColor": "default",
194
215
  },
195
- ],
196
- [
197
- {
198
- "styles": {},
199
- "text": "Cell 3",
200
- "type": "text",
216
+ "type": "tableCell",
217
+ },
218
+ {
219
+ "content": [
220
+ {
221
+ "styles": {},
222
+ "text": "Cell 3",
223
+ "type": "text",
224
+ },
225
+ ],
226
+ "props": {
227
+ "backgroundColor": "default",
228
+ "colspan": 1,
229
+ "rowspan": 1,
230
+ "textAlignment": "left",
231
+ "textColor": "default",
201
232
  },
202
- ],
233
+ "type": "tableCell",
234
+ },
203
235
  ],
204
236
  },
205
237
  {
206
238
  "cells": [
207
- [
208
- {
209
- "styles": {},
210
- "text": "Cell 4",
211
- "type": "text",
239
+ {
240
+ "content": [
241
+ {
242
+ "styles": {},
243
+ "text": "Cell 4",
244
+ "type": "text",
245
+ },
246
+ ],
247
+ "props": {
248
+ "backgroundColor": "default",
249
+ "colspan": 1,
250
+ "rowspan": 1,
251
+ "textAlignment": "left",
252
+ "textColor": "default",
212
253
  },
213
- ],
214
- [
215
- {
216
- "styles": {},
217
- "text": "Cell 5",
218
- "type": "text",
254
+ "type": "tableCell",
255
+ },
256
+ {
257
+ "content": [
258
+ {
259
+ "styles": {},
260
+ "text": "Cell 5",
261
+ "type": "text",
262
+ },
263
+ ],
264
+ "props": {
265
+ "backgroundColor": "default",
266
+ "colspan": 1,
267
+ "rowspan": 1,
268
+ "textAlignment": "left",
269
+ "textColor": "default",
219
270
  },
220
- ],
221
- [
222
- {
223
- "styles": {},
224
- "text": "Cell 6",
225
- "type": "text",
271
+ "type": "tableCell",
272
+ },
273
+ {
274
+ "content": [
275
+ {
276
+ "styles": {},
277
+ "text": "Cell 6",
278
+ "type": "text",
279
+ },
280
+ ],
281
+ "props": {
282
+ "backgroundColor": "default",
283
+ "colspan": 1,
284
+ "rowspan": 1,
285
+ "textAlignment": "left",
286
+ "textColor": "default",
226
287
  },
227
- ],
288
+ "type": "tableCell",
289
+ },
228
290
  ],
229
291
  },
230
292
  {
231
293
  "cells": [
232
- [
233
- {
234
- "styles": {},
235
- "text": "Cell 7",
236
- "type": "text",
294
+ {
295
+ "content": [
296
+ {
297
+ "styles": {},
298
+ "text": "Cell 7",
299
+ "type": "text",
300
+ },
301
+ ],
302
+ "props": {
303
+ "backgroundColor": "default",
304
+ "colspan": 1,
305
+ "rowspan": 1,
306
+ "textAlignment": "left",
307
+ "textColor": "default",
237
308
  },
238
- ],
239
- [
240
- {
241
- "styles": {},
242
- "text": "Cell 8",
243
- "type": "text",
309
+ "type": "tableCell",
310
+ },
311
+ {
312
+ "content": [
313
+ {
314
+ "styles": {},
315
+ "text": "Cell 8",
316
+ "type": "text",
317
+ },
318
+ ],
319
+ "props": {
320
+ "backgroundColor": "default",
321
+ "colspan": 1,
322
+ "rowspan": 1,
323
+ "textAlignment": "left",
324
+ "textColor": "default",
244
325
  },
245
- ],
246
- [
247
- {
248
- "styles": {},
249
- "text": "Cell 9",
250
- "type": "text",
326
+ "type": "tableCell",
327
+ },
328
+ {
329
+ "content": [
330
+ {
331
+ "styles": {},
332
+ "text": "Cell 9",
333
+ "type": "text",
334
+ },
335
+ ],
336
+ "props": {
337
+ "backgroundColor": "default",
338
+ "colspan": 1,
339
+ "rowspan": 1,
340
+ "textAlignment": "left",
341
+ "textColor": "default",
251
342
  },
252
- ],
343
+ "type": "tableCell",
344
+ },
253
345
  ],
254
346
  },
255
347
  ],
@@ -931,80 +1023,172 @@ exports[`Test replaceBlocks > Remove single block 1`] = `
931
1023
  undefined,
932
1024
  undefined,
933
1025
  ],
1026
+ "headerCols": undefined,
1027
+ "headerRows": undefined,
934
1028
  "rows": [
935
1029
  {
936
1030
  "cells": [
937
- [
938
- {
939
- "styles": {},
940
- "text": "Cell 1",
941
- "type": "text",
1031
+ {
1032
+ "content": [
1033
+ {
1034
+ "styles": {},
1035
+ "text": "Cell 1",
1036
+ "type": "text",
1037
+ },
1038
+ ],
1039
+ "props": {
1040
+ "backgroundColor": "default",
1041
+ "colspan": 1,
1042
+ "rowspan": 1,
1043
+ "textAlignment": "left",
1044
+ "textColor": "default",
942
1045
  },
943
- ],
944
- [
945
- {
946
- "styles": {},
947
- "text": "Cell 2",
948
- "type": "text",
1046
+ "type": "tableCell",
1047
+ },
1048
+ {
1049
+ "content": [
1050
+ {
1051
+ "styles": {},
1052
+ "text": "Cell 2",
1053
+ "type": "text",
1054
+ },
1055
+ ],
1056
+ "props": {
1057
+ "backgroundColor": "default",
1058
+ "colspan": 1,
1059
+ "rowspan": 1,
1060
+ "textAlignment": "left",
1061
+ "textColor": "default",
949
1062
  },
950
- ],
951
- [
952
- {
953
- "styles": {},
954
- "text": "Cell 3",
955
- "type": "text",
1063
+ "type": "tableCell",
1064
+ },
1065
+ {
1066
+ "content": [
1067
+ {
1068
+ "styles": {},
1069
+ "text": "Cell 3",
1070
+ "type": "text",
1071
+ },
1072
+ ],
1073
+ "props": {
1074
+ "backgroundColor": "default",
1075
+ "colspan": 1,
1076
+ "rowspan": 1,
1077
+ "textAlignment": "left",
1078
+ "textColor": "default",
956
1079
  },
957
- ],
1080
+ "type": "tableCell",
1081
+ },
958
1082
  ],
959
1083
  },
960
1084
  {
961
1085
  "cells": [
962
- [
963
- {
964
- "styles": {},
965
- "text": "Cell 4",
966
- "type": "text",
1086
+ {
1087
+ "content": [
1088
+ {
1089
+ "styles": {},
1090
+ "text": "Cell 4",
1091
+ "type": "text",
1092
+ },
1093
+ ],
1094
+ "props": {
1095
+ "backgroundColor": "default",
1096
+ "colspan": 1,
1097
+ "rowspan": 1,
1098
+ "textAlignment": "left",
1099
+ "textColor": "default",
967
1100
  },
968
- ],
969
- [
970
- {
971
- "styles": {},
972
- "text": "Cell 5",
973
- "type": "text",
1101
+ "type": "tableCell",
1102
+ },
1103
+ {
1104
+ "content": [
1105
+ {
1106
+ "styles": {},
1107
+ "text": "Cell 5",
1108
+ "type": "text",
1109
+ },
1110
+ ],
1111
+ "props": {
1112
+ "backgroundColor": "default",
1113
+ "colspan": 1,
1114
+ "rowspan": 1,
1115
+ "textAlignment": "left",
1116
+ "textColor": "default",
974
1117
  },
975
- ],
976
- [
977
- {
978
- "styles": {},
979
- "text": "Cell 6",
980
- "type": "text",
1118
+ "type": "tableCell",
1119
+ },
1120
+ {
1121
+ "content": [
1122
+ {
1123
+ "styles": {},
1124
+ "text": "Cell 6",
1125
+ "type": "text",
1126
+ },
1127
+ ],
1128
+ "props": {
1129
+ "backgroundColor": "default",
1130
+ "colspan": 1,
1131
+ "rowspan": 1,
1132
+ "textAlignment": "left",
1133
+ "textColor": "default",
981
1134
  },
982
- ],
1135
+ "type": "tableCell",
1136
+ },
983
1137
  ],
984
1138
  },
985
1139
  {
986
1140
  "cells": [
987
- [
988
- {
989
- "styles": {},
990
- "text": "Cell 7",
991
- "type": "text",
1141
+ {
1142
+ "content": [
1143
+ {
1144
+ "styles": {},
1145
+ "text": "Cell 7",
1146
+ "type": "text",
1147
+ },
1148
+ ],
1149
+ "props": {
1150
+ "backgroundColor": "default",
1151
+ "colspan": 1,
1152
+ "rowspan": 1,
1153
+ "textAlignment": "left",
1154
+ "textColor": "default",
992
1155
  },
993
- ],
994
- [
995
- {
996
- "styles": {},
997
- "text": "Cell 8",
998
- "type": "text",
1156
+ "type": "tableCell",
1157
+ },
1158
+ {
1159
+ "content": [
1160
+ {
1161
+ "styles": {},
1162
+ "text": "Cell 8",
1163
+ "type": "text",
1164
+ },
1165
+ ],
1166
+ "props": {
1167
+ "backgroundColor": "default",
1168
+ "colspan": 1,
1169
+ "rowspan": 1,
1170
+ "textAlignment": "left",
1171
+ "textColor": "default",
999
1172
  },
1000
- ],
1001
- [
1002
- {
1003
- "styles": {},
1004
- "text": "Cell 9",
1005
- "type": "text",
1173
+ "type": "tableCell",
1174
+ },
1175
+ {
1176
+ "content": [
1177
+ {
1178
+ "styles": {},
1179
+ "text": "Cell 9",
1180
+ "type": "text",
1181
+ },
1182
+ ],
1183
+ "props": {
1184
+ "backgroundColor": "default",
1185
+ "colspan": 1,
1186
+ "rowspan": 1,
1187
+ "textAlignment": "left",
1188
+ "textColor": "default",
1006
1189
  },
1007
- ],
1190
+ "type": "tableCell",
1191
+ },
1008
1192
  ],
1009
1193
  },
1010
1194
  ],
@@ -1370,80 +1554,172 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with multiple
1370
1554
  undefined,
1371
1555
  undefined,
1372
1556
  ],
1557
+ "headerCols": undefined,
1558
+ "headerRows": undefined,
1373
1559
  "rows": [
1374
1560
  {
1375
1561
  "cells": [
1376
- [
1377
- {
1378
- "styles": {},
1379
- "text": "Cell 1",
1380
- "type": "text",
1562
+ {
1563
+ "content": [
1564
+ {
1565
+ "styles": {},
1566
+ "text": "Cell 1",
1567
+ "type": "text",
1568
+ },
1569
+ ],
1570
+ "props": {
1571
+ "backgroundColor": "default",
1572
+ "colspan": 1,
1573
+ "rowspan": 1,
1574
+ "textAlignment": "left",
1575
+ "textColor": "default",
1381
1576
  },
1382
- ],
1383
- [
1384
- {
1385
- "styles": {},
1386
- "text": "Cell 2",
1387
- "type": "text",
1577
+ "type": "tableCell",
1578
+ },
1579
+ {
1580
+ "content": [
1581
+ {
1582
+ "styles": {},
1583
+ "text": "Cell 2",
1584
+ "type": "text",
1585
+ },
1586
+ ],
1587
+ "props": {
1588
+ "backgroundColor": "default",
1589
+ "colspan": 1,
1590
+ "rowspan": 1,
1591
+ "textAlignment": "left",
1592
+ "textColor": "default",
1388
1593
  },
1389
- ],
1390
- [
1391
- {
1392
- "styles": {},
1393
- "text": "Cell 3",
1394
- "type": "text",
1594
+ "type": "tableCell",
1595
+ },
1596
+ {
1597
+ "content": [
1598
+ {
1599
+ "styles": {},
1600
+ "text": "Cell 3",
1601
+ "type": "text",
1602
+ },
1603
+ ],
1604
+ "props": {
1605
+ "backgroundColor": "default",
1606
+ "colspan": 1,
1607
+ "rowspan": 1,
1608
+ "textAlignment": "left",
1609
+ "textColor": "default",
1395
1610
  },
1396
- ],
1611
+ "type": "tableCell",
1612
+ },
1397
1613
  ],
1398
1614
  },
1399
1615
  {
1400
1616
  "cells": [
1401
- [
1402
- {
1403
- "styles": {},
1404
- "text": "Cell 4",
1405
- "type": "text",
1617
+ {
1618
+ "content": [
1619
+ {
1620
+ "styles": {},
1621
+ "text": "Cell 4",
1622
+ "type": "text",
1623
+ },
1624
+ ],
1625
+ "props": {
1626
+ "backgroundColor": "default",
1627
+ "colspan": 1,
1628
+ "rowspan": 1,
1629
+ "textAlignment": "left",
1630
+ "textColor": "default",
1406
1631
  },
1407
- ],
1408
- [
1409
- {
1410
- "styles": {},
1411
- "text": "Cell 5",
1412
- "type": "text",
1632
+ "type": "tableCell",
1633
+ },
1634
+ {
1635
+ "content": [
1636
+ {
1637
+ "styles": {},
1638
+ "text": "Cell 5",
1639
+ "type": "text",
1640
+ },
1641
+ ],
1642
+ "props": {
1643
+ "backgroundColor": "default",
1644
+ "colspan": 1,
1645
+ "rowspan": 1,
1646
+ "textAlignment": "left",
1647
+ "textColor": "default",
1413
1648
  },
1414
- ],
1415
- [
1416
- {
1417
- "styles": {},
1418
- "text": "Cell 6",
1419
- "type": "text",
1649
+ "type": "tableCell",
1650
+ },
1651
+ {
1652
+ "content": [
1653
+ {
1654
+ "styles": {},
1655
+ "text": "Cell 6",
1656
+ "type": "text",
1657
+ },
1658
+ ],
1659
+ "props": {
1660
+ "backgroundColor": "default",
1661
+ "colspan": 1,
1662
+ "rowspan": 1,
1663
+ "textAlignment": "left",
1664
+ "textColor": "default",
1420
1665
  },
1421
- ],
1666
+ "type": "tableCell",
1667
+ },
1422
1668
  ],
1423
1669
  },
1424
1670
  {
1425
1671
  "cells": [
1426
- [
1427
- {
1428
- "styles": {},
1429
- "text": "Cell 7",
1430
- "type": "text",
1672
+ {
1673
+ "content": [
1674
+ {
1675
+ "styles": {},
1676
+ "text": "Cell 7",
1677
+ "type": "text",
1678
+ },
1679
+ ],
1680
+ "props": {
1681
+ "backgroundColor": "default",
1682
+ "colspan": 1,
1683
+ "rowspan": 1,
1684
+ "textAlignment": "left",
1685
+ "textColor": "default",
1431
1686
  },
1432
- ],
1433
- [
1434
- {
1435
- "styles": {},
1436
- "text": "Cell 8",
1437
- "type": "text",
1687
+ "type": "tableCell",
1688
+ },
1689
+ {
1690
+ "content": [
1691
+ {
1692
+ "styles": {},
1693
+ "text": "Cell 8",
1694
+ "type": "text",
1695
+ },
1696
+ ],
1697
+ "props": {
1698
+ "backgroundColor": "default",
1699
+ "colspan": 1,
1700
+ "rowspan": 1,
1701
+ "textAlignment": "left",
1702
+ "textColor": "default",
1438
1703
  },
1439
- ],
1440
- [
1441
- {
1442
- "styles": {},
1443
- "text": "Cell 9",
1444
- "type": "text",
1704
+ "type": "tableCell",
1705
+ },
1706
+ {
1707
+ "content": [
1708
+ {
1709
+ "styles": {},
1710
+ "text": "Cell 9",
1711
+ "type": "text",
1712
+ },
1713
+ ],
1714
+ "props": {
1715
+ "backgroundColor": "default",
1716
+ "colspan": 1,
1717
+ "rowspan": 1,
1718
+ "textAlignment": "left",
1719
+ "textColor": "default",
1445
1720
  },
1446
- ],
1721
+ "type": "tableCell",
1722
+ },
1447
1723
  ],
1448
1724
  },
1449
1725
  ],
@@ -1769,80 +2045,172 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with single ba
1769
2045
  undefined,
1770
2046
  undefined,
1771
2047
  ],
2048
+ "headerCols": undefined,
2049
+ "headerRows": undefined,
1772
2050
  "rows": [
1773
2051
  {
1774
2052
  "cells": [
1775
- [
1776
- {
1777
- "styles": {},
1778
- "text": "Cell 1",
1779
- "type": "text",
2053
+ {
2054
+ "content": [
2055
+ {
2056
+ "styles": {},
2057
+ "text": "Cell 1",
2058
+ "type": "text",
2059
+ },
2060
+ ],
2061
+ "props": {
2062
+ "backgroundColor": "default",
2063
+ "colspan": 1,
2064
+ "rowspan": 1,
2065
+ "textAlignment": "left",
2066
+ "textColor": "default",
1780
2067
  },
1781
- ],
1782
- [
1783
- {
1784
- "styles": {},
1785
- "text": "Cell 2",
1786
- "type": "text",
2068
+ "type": "tableCell",
2069
+ },
2070
+ {
2071
+ "content": [
2072
+ {
2073
+ "styles": {},
2074
+ "text": "Cell 2",
2075
+ "type": "text",
2076
+ },
2077
+ ],
2078
+ "props": {
2079
+ "backgroundColor": "default",
2080
+ "colspan": 1,
2081
+ "rowspan": 1,
2082
+ "textAlignment": "left",
2083
+ "textColor": "default",
1787
2084
  },
1788
- ],
1789
- [
1790
- {
1791
- "styles": {},
1792
- "text": "Cell 3",
1793
- "type": "text",
2085
+ "type": "tableCell",
2086
+ },
2087
+ {
2088
+ "content": [
2089
+ {
2090
+ "styles": {},
2091
+ "text": "Cell 3",
2092
+ "type": "text",
2093
+ },
2094
+ ],
2095
+ "props": {
2096
+ "backgroundColor": "default",
2097
+ "colspan": 1,
2098
+ "rowspan": 1,
2099
+ "textAlignment": "left",
2100
+ "textColor": "default",
1794
2101
  },
1795
- ],
2102
+ "type": "tableCell",
2103
+ },
1796
2104
  ],
1797
2105
  },
1798
2106
  {
1799
2107
  "cells": [
1800
- [
1801
- {
1802
- "styles": {},
1803
- "text": "Cell 4",
1804
- "type": "text",
2108
+ {
2109
+ "content": [
2110
+ {
2111
+ "styles": {},
2112
+ "text": "Cell 4",
2113
+ "type": "text",
2114
+ },
2115
+ ],
2116
+ "props": {
2117
+ "backgroundColor": "default",
2118
+ "colspan": 1,
2119
+ "rowspan": 1,
2120
+ "textAlignment": "left",
2121
+ "textColor": "default",
1805
2122
  },
1806
- ],
1807
- [
1808
- {
1809
- "styles": {},
1810
- "text": "Cell 5",
1811
- "type": "text",
2123
+ "type": "tableCell",
2124
+ },
2125
+ {
2126
+ "content": [
2127
+ {
2128
+ "styles": {},
2129
+ "text": "Cell 5",
2130
+ "type": "text",
2131
+ },
2132
+ ],
2133
+ "props": {
2134
+ "backgroundColor": "default",
2135
+ "colspan": 1,
2136
+ "rowspan": 1,
2137
+ "textAlignment": "left",
2138
+ "textColor": "default",
1812
2139
  },
1813
- ],
1814
- [
1815
- {
1816
- "styles": {},
1817
- "text": "Cell 6",
1818
- "type": "text",
2140
+ "type": "tableCell",
2141
+ },
2142
+ {
2143
+ "content": [
2144
+ {
2145
+ "styles": {},
2146
+ "text": "Cell 6",
2147
+ "type": "text",
2148
+ },
2149
+ ],
2150
+ "props": {
2151
+ "backgroundColor": "default",
2152
+ "colspan": 1,
2153
+ "rowspan": 1,
2154
+ "textAlignment": "left",
2155
+ "textColor": "default",
1819
2156
  },
1820
- ],
2157
+ "type": "tableCell",
2158
+ },
1821
2159
  ],
1822
2160
  },
1823
2161
  {
1824
2162
  "cells": [
1825
- [
1826
- {
1827
- "styles": {},
1828
- "text": "Cell 7",
1829
- "type": "text",
2163
+ {
2164
+ "content": [
2165
+ {
2166
+ "styles": {},
2167
+ "text": "Cell 7",
2168
+ "type": "text",
2169
+ },
2170
+ ],
2171
+ "props": {
2172
+ "backgroundColor": "default",
2173
+ "colspan": 1,
2174
+ "rowspan": 1,
2175
+ "textAlignment": "left",
2176
+ "textColor": "default",
1830
2177
  },
1831
- ],
1832
- [
1833
- {
1834
- "styles": {},
1835
- "text": "Cell 8",
1836
- "type": "text",
2178
+ "type": "tableCell",
2179
+ },
2180
+ {
2181
+ "content": [
2182
+ {
2183
+ "styles": {},
2184
+ "text": "Cell 8",
2185
+ "type": "text",
2186
+ },
2187
+ ],
2188
+ "props": {
2189
+ "backgroundColor": "default",
2190
+ "colspan": 1,
2191
+ "rowspan": 1,
2192
+ "textAlignment": "left",
2193
+ "textColor": "default",
1837
2194
  },
1838
- ],
1839
- [
1840
- {
1841
- "styles": {},
1842
- "text": "Cell 9",
1843
- "type": "text",
2195
+ "type": "tableCell",
2196
+ },
2197
+ {
2198
+ "content": [
2199
+ {
2200
+ "styles": {},
2201
+ "text": "Cell 9",
2202
+ "type": "text",
2203
+ },
2204
+ ],
2205
+ "props": {
2206
+ "backgroundColor": "default",
2207
+ "colspan": 1,
2208
+ "rowspan": 1,
2209
+ "textAlignment": "left",
2210
+ "textColor": "default",
1844
2211
  },
1845
- ],
2212
+ "type": "tableCell",
2213
+ },
1846
2214
  ],
1847
2215
  },
1848
2216
  ],
@@ -2225,80 +2593,172 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with single co
2225
2593
  undefined,
2226
2594
  undefined,
2227
2595
  ],
2596
+ "headerCols": undefined,
2597
+ "headerRows": undefined,
2228
2598
  "rows": [
2229
2599
  {
2230
2600
  "cells": [
2231
- [
2232
- {
2233
- "styles": {},
2234
- "text": "Cell 1",
2235
- "type": "text",
2601
+ {
2602
+ "content": [
2603
+ {
2604
+ "styles": {},
2605
+ "text": "Cell 1",
2606
+ "type": "text",
2607
+ },
2608
+ ],
2609
+ "props": {
2610
+ "backgroundColor": "default",
2611
+ "colspan": 1,
2612
+ "rowspan": 1,
2613
+ "textAlignment": "left",
2614
+ "textColor": "default",
2236
2615
  },
2237
- ],
2238
- [
2239
- {
2240
- "styles": {},
2241
- "text": "Cell 2",
2242
- "type": "text",
2616
+ "type": "tableCell",
2617
+ },
2618
+ {
2619
+ "content": [
2620
+ {
2621
+ "styles": {},
2622
+ "text": "Cell 2",
2623
+ "type": "text",
2624
+ },
2625
+ ],
2626
+ "props": {
2627
+ "backgroundColor": "default",
2628
+ "colspan": 1,
2629
+ "rowspan": 1,
2630
+ "textAlignment": "left",
2631
+ "textColor": "default",
2243
2632
  },
2244
- ],
2245
- [
2246
- {
2247
- "styles": {},
2248
- "text": "Cell 3",
2249
- "type": "text",
2633
+ "type": "tableCell",
2634
+ },
2635
+ {
2636
+ "content": [
2637
+ {
2638
+ "styles": {},
2639
+ "text": "Cell 3",
2640
+ "type": "text",
2641
+ },
2642
+ ],
2643
+ "props": {
2644
+ "backgroundColor": "default",
2645
+ "colspan": 1,
2646
+ "rowspan": 1,
2647
+ "textAlignment": "left",
2648
+ "textColor": "default",
2250
2649
  },
2251
- ],
2650
+ "type": "tableCell",
2651
+ },
2252
2652
  ],
2253
2653
  },
2254
2654
  {
2255
2655
  "cells": [
2256
- [
2257
- {
2258
- "styles": {},
2259
- "text": "Cell 4",
2260
- "type": "text",
2656
+ {
2657
+ "content": [
2658
+ {
2659
+ "styles": {},
2660
+ "text": "Cell 4",
2661
+ "type": "text",
2662
+ },
2663
+ ],
2664
+ "props": {
2665
+ "backgroundColor": "default",
2666
+ "colspan": 1,
2667
+ "rowspan": 1,
2668
+ "textAlignment": "left",
2669
+ "textColor": "default",
2261
2670
  },
2262
- ],
2263
- [
2264
- {
2265
- "styles": {},
2266
- "text": "Cell 5",
2267
- "type": "text",
2671
+ "type": "tableCell",
2672
+ },
2673
+ {
2674
+ "content": [
2675
+ {
2676
+ "styles": {},
2677
+ "text": "Cell 5",
2678
+ "type": "text",
2679
+ },
2680
+ ],
2681
+ "props": {
2682
+ "backgroundColor": "default",
2683
+ "colspan": 1,
2684
+ "rowspan": 1,
2685
+ "textAlignment": "left",
2686
+ "textColor": "default",
2268
2687
  },
2269
- ],
2270
- [
2271
- {
2272
- "styles": {},
2273
- "text": "Cell 6",
2274
- "type": "text",
2688
+ "type": "tableCell",
2689
+ },
2690
+ {
2691
+ "content": [
2692
+ {
2693
+ "styles": {},
2694
+ "text": "Cell 6",
2695
+ "type": "text",
2696
+ },
2697
+ ],
2698
+ "props": {
2699
+ "backgroundColor": "default",
2700
+ "colspan": 1,
2701
+ "rowspan": 1,
2702
+ "textAlignment": "left",
2703
+ "textColor": "default",
2275
2704
  },
2276
- ],
2705
+ "type": "tableCell",
2706
+ },
2277
2707
  ],
2278
2708
  },
2279
2709
  {
2280
2710
  "cells": [
2281
- [
2282
- {
2283
- "styles": {},
2284
- "text": "Cell 7",
2285
- "type": "text",
2711
+ {
2712
+ "content": [
2713
+ {
2714
+ "styles": {},
2715
+ "text": "Cell 7",
2716
+ "type": "text",
2717
+ },
2718
+ ],
2719
+ "props": {
2720
+ "backgroundColor": "default",
2721
+ "colspan": 1,
2722
+ "rowspan": 1,
2723
+ "textAlignment": "left",
2724
+ "textColor": "default",
2286
2725
  },
2287
- ],
2288
- [
2289
- {
2290
- "styles": {},
2291
- "text": "Cell 8",
2292
- "type": "text",
2726
+ "type": "tableCell",
2727
+ },
2728
+ {
2729
+ "content": [
2730
+ {
2731
+ "styles": {},
2732
+ "text": "Cell 8",
2733
+ "type": "text",
2734
+ },
2735
+ ],
2736
+ "props": {
2737
+ "backgroundColor": "default",
2738
+ "colspan": 1,
2739
+ "rowspan": 1,
2740
+ "textAlignment": "left",
2741
+ "textColor": "default",
2293
2742
  },
2294
- ],
2295
- [
2296
- {
2297
- "styles": {},
2298
- "text": "Cell 9",
2299
- "type": "text",
2743
+ "type": "tableCell",
2744
+ },
2745
+ {
2746
+ "content": [
2747
+ {
2748
+ "styles": {},
2749
+ "text": "Cell 9",
2750
+ "type": "text",
2751
+ },
2752
+ ],
2753
+ "props": {
2754
+ "backgroundColor": "default",
2755
+ "colspan": 1,
2756
+ "rowspan": 1,
2757
+ "textAlignment": "left",
2758
+ "textColor": "default",
2300
2759
  },
2301
- ],
2760
+ "type": "tableCell",
2761
+ },
2302
2762
  ],
2303
2763
  },
2304
2764
  ],
@@ -3755,80 +4215,172 @@ exports[`Test replaceBlocks > Replace single block with multiple 1`] = `
3755
4215
  undefined,
3756
4216
  undefined,
3757
4217
  ],
4218
+ "headerCols": undefined,
4219
+ "headerRows": undefined,
3758
4220
  "rows": [
3759
4221
  {
3760
4222
  "cells": [
3761
- [
3762
- {
3763
- "styles": {},
3764
- "text": "Cell 1",
3765
- "type": "text",
4223
+ {
4224
+ "content": [
4225
+ {
4226
+ "styles": {},
4227
+ "text": "Cell 1",
4228
+ "type": "text",
4229
+ },
4230
+ ],
4231
+ "props": {
4232
+ "backgroundColor": "default",
4233
+ "colspan": 1,
4234
+ "rowspan": 1,
4235
+ "textAlignment": "left",
4236
+ "textColor": "default",
3766
4237
  },
3767
- ],
3768
- [
3769
- {
3770
- "styles": {},
3771
- "text": "Cell 2",
3772
- "type": "text",
4238
+ "type": "tableCell",
4239
+ },
4240
+ {
4241
+ "content": [
4242
+ {
4243
+ "styles": {},
4244
+ "text": "Cell 2",
4245
+ "type": "text",
4246
+ },
4247
+ ],
4248
+ "props": {
4249
+ "backgroundColor": "default",
4250
+ "colspan": 1,
4251
+ "rowspan": 1,
4252
+ "textAlignment": "left",
4253
+ "textColor": "default",
3773
4254
  },
3774
- ],
3775
- [
3776
- {
3777
- "styles": {},
3778
- "text": "Cell 3",
3779
- "type": "text",
4255
+ "type": "tableCell",
4256
+ },
4257
+ {
4258
+ "content": [
4259
+ {
4260
+ "styles": {},
4261
+ "text": "Cell 3",
4262
+ "type": "text",
4263
+ },
4264
+ ],
4265
+ "props": {
4266
+ "backgroundColor": "default",
4267
+ "colspan": 1,
4268
+ "rowspan": 1,
4269
+ "textAlignment": "left",
4270
+ "textColor": "default",
3780
4271
  },
3781
- ],
4272
+ "type": "tableCell",
4273
+ },
3782
4274
  ],
3783
4275
  },
3784
4276
  {
3785
4277
  "cells": [
3786
- [
3787
- {
3788
- "styles": {},
3789
- "text": "Cell 4",
3790
- "type": "text",
4278
+ {
4279
+ "content": [
4280
+ {
4281
+ "styles": {},
4282
+ "text": "Cell 4",
4283
+ "type": "text",
4284
+ },
4285
+ ],
4286
+ "props": {
4287
+ "backgroundColor": "default",
4288
+ "colspan": 1,
4289
+ "rowspan": 1,
4290
+ "textAlignment": "left",
4291
+ "textColor": "default",
3791
4292
  },
3792
- ],
3793
- [
3794
- {
3795
- "styles": {},
3796
- "text": "Cell 5",
3797
- "type": "text",
4293
+ "type": "tableCell",
4294
+ },
4295
+ {
4296
+ "content": [
4297
+ {
4298
+ "styles": {},
4299
+ "text": "Cell 5",
4300
+ "type": "text",
4301
+ },
4302
+ ],
4303
+ "props": {
4304
+ "backgroundColor": "default",
4305
+ "colspan": 1,
4306
+ "rowspan": 1,
4307
+ "textAlignment": "left",
4308
+ "textColor": "default",
3798
4309
  },
3799
- ],
3800
- [
3801
- {
3802
- "styles": {},
3803
- "text": "Cell 6",
3804
- "type": "text",
4310
+ "type": "tableCell",
4311
+ },
4312
+ {
4313
+ "content": [
4314
+ {
4315
+ "styles": {},
4316
+ "text": "Cell 6",
4317
+ "type": "text",
4318
+ },
4319
+ ],
4320
+ "props": {
4321
+ "backgroundColor": "default",
4322
+ "colspan": 1,
4323
+ "rowspan": 1,
4324
+ "textAlignment": "left",
4325
+ "textColor": "default",
3805
4326
  },
3806
- ],
4327
+ "type": "tableCell",
4328
+ },
3807
4329
  ],
3808
4330
  },
3809
4331
  {
3810
4332
  "cells": [
3811
- [
3812
- {
3813
- "styles": {},
3814
- "text": "Cell 7",
3815
- "type": "text",
4333
+ {
4334
+ "content": [
4335
+ {
4336
+ "styles": {},
4337
+ "text": "Cell 7",
4338
+ "type": "text",
4339
+ },
4340
+ ],
4341
+ "props": {
4342
+ "backgroundColor": "default",
4343
+ "colspan": 1,
4344
+ "rowspan": 1,
4345
+ "textAlignment": "left",
4346
+ "textColor": "default",
3816
4347
  },
3817
- ],
3818
- [
3819
- {
3820
- "styles": {},
3821
- "text": "Cell 8",
3822
- "type": "text",
4348
+ "type": "tableCell",
4349
+ },
4350
+ {
4351
+ "content": [
4352
+ {
4353
+ "styles": {},
4354
+ "text": "Cell 8",
4355
+ "type": "text",
4356
+ },
4357
+ ],
4358
+ "props": {
4359
+ "backgroundColor": "default",
4360
+ "colspan": 1,
4361
+ "rowspan": 1,
4362
+ "textAlignment": "left",
4363
+ "textColor": "default",
3823
4364
  },
3824
- ],
3825
- [
3826
- {
3827
- "styles": {},
3828
- "text": "Cell 9",
3829
- "type": "text",
4365
+ "type": "tableCell",
4366
+ },
4367
+ {
4368
+ "content": [
4369
+ {
4370
+ "styles": {},
4371
+ "text": "Cell 9",
4372
+ "type": "text",
4373
+ },
4374
+ ],
4375
+ "props": {
4376
+ "backgroundColor": "default",
4377
+ "colspan": 1,
4378
+ "rowspan": 1,
4379
+ "textAlignment": "left",
4380
+ "textColor": "default",
3830
4381
  },
3831
- ],
4382
+ "type": "tableCell",
4383
+ },
3832
4384
  ],
3833
4385
  },
3834
4386
  ],
@@ -4224,80 +4776,172 @@ exports[`Test replaceBlocks > Replace single block with single basic 1`] = `
4224
4776
  undefined,
4225
4777
  undefined,
4226
4778
  ],
4779
+ "headerCols": undefined,
4780
+ "headerRows": undefined,
4227
4781
  "rows": [
4228
4782
  {
4229
4783
  "cells": [
4230
- [
4231
- {
4232
- "styles": {},
4233
- "text": "Cell 1",
4234
- "type": "text",
4784
+ {
4785
+ "content": [
4786
+ {
4787
+ "styles": {},
4788
+ "text": "Cell 1",
4789
+ "type": "text",
4790
+ },
4791
+ ],
4792
+ "props": {
4793
+ "backgroundColor": "default",
4794
+ "colspan": 1,
4795
+ "rowspan": 1,
4796
+ "textAlignment": "left",
4797
+ "textColor": "default",
4235
4798
  },
4236
- ],
4237
- [
4238
- {
4239
- "styles": {},
4240
- "text": "Cell 2",
4241
- "type": "text",
4799
+ "type": "tableCell",
4800
+ },
4801
+ {
4802
+ "content": [
4803
+ {
4804
+ "styles": {},
4805
+ "text": "Cell 2",
4806
+ "type": "text",
4807
+ },
4808
+ ],
4809
+ "props": {
4810
+ "backgroundColor": "default",
4811
+ "colspan": 1,
4812
+ "rowspan": 1,
4813
+ "textAlignment": "left",
4814
+ "textColor": "default",
4242
4815
  },
4243
- ],
4244
- [
4245
- {
4246
- "styles": {},
4247
- "text": "Cell 3",
4248
- "type": "text",
4816
+ "type": "tableCell",
4817
+ },
4818
+ {
4819
+ "content": [
4820
+ {
4821
+ "styles": {},
4822
+ "text": "Cell 3",
4823
+ "type": "text",
4824
+ },
4825
+ ],
4826
+ "props": {
4827
+ "backgroundColor": "default",
4828
+ "colspan": 1,
4829
+ "rowspan": 1,
4830
+ "textAlignment": "left",
4831
+ "textColor": "default",
4249
4832
  },
4250
- ],
4833
+ "type": "tableCell",
4834
+ },
4251
4835
  ],
4252
4836
  },
4253
4837
  {
4254
4838
  "cells": [
4255
- [
4256
- {
4257
- "styles": {},
4258
- "text": "Cell 4",
4259
- "type": "text",
4839
+ {
4840
+ "content": [
4841
+ {
4842
+ "styles": {},
4843
+ "text": "Cell 4",
4844
+ "type": "text",
4845
+ },
4846
+ ],
4847
+ "props": {
4848
+ "backgroundColor": "default",
4849
+ "colspan": 1,
4850
+ "rowspan": 1,
4851
+ "textAlignment": "left",
4852
+ "textColor": "default",
4260
4853
  },
4261
- ],
4262
- [
4263
- {
4264
- "styles": {},
4265
- "text": "Cell 5",
4266
- "type": "text",
4854
+ "type": "tableCell",
4855
+ },
4856
+ {
4857
+ "content": [
4858
+ {
4859
+ "styles": {},
4860
+ "text": "Cell 5",
4861
+ "type": "text",
4862
+ },
4863
+ ],
4864
+ "props": {
4865
+ "backgroundColor": "default",
4866
+ "colspan": 1,
4867
+ "rowspan": 1,
4868
+ "textAlignment": "left",
4869
+ "textColor": "default",
4267
4870
  },
4268
- ],
4269
- [
4270
- {
4271
- "styles": {},
4272
- "text": "Cell 6",
4273
- "type": "text",
4871
+ "type": "tableCell",
4872
+ },
4873
+ {
4874
+ "content": [
4875
+ {
4876
+ "styles": {},
4877
+ "text": "Cell 6",
4878
+ "type": "text",
4879
+ },
4880
+ ],
4881
+ "props": {
4882
+ "backgroundColor": "default",
4883
+ "colspan": 1,
4884
+ "rowspan": 1,
4885
+ "textAlignment": "left",
4886
+ "textColor": "default",
4274
4887
  },
4275
- ],
4888
+ "type": "tableCell",
4889
+ },
4276
4890
  ],
4277
4891
  },
4278
4892
  {
4279
4893
  "cells": [
4280
- [
4281
- {
4282
- "styles": {},
4283
- "text": "Cell 7",
4284
- "type": "text",
4894
+ {
4895
+ "content": [
4896
+ {
4897
+ "styles": {},
4898
+ "text": "Cell 7",
4899
+ "type": "text",
4900
+ },
4901
+ ],
4902
+ "props": {
4903
+ "backgroundColor": "default",
4904
+ "colspan": 1,
4905
+ "rowspan": 1,
4906
+ "textAlignment": "left",
4907
+ "textColor": "default",
4285
4908
  },
4286
- ],
4287
- [
4288
- {
4289
- "styles": {},
4290
- "text": "Cell 8",
4291
- "type": "text",
4909
+ "type": "tableCell",
4910
+ },
4911
+ {
4912
+ "content": [
4913
+ {
4914
+ "styles": {},
4915
+ "text": "Cell 8",
4916
+ "type": "text",
4917
+ },
4918
+ ],
4919
+ "props": {
4920
+ "backgroundColor": "default",
4921
+ "colspan": 1,
4922
+ "rowspan": 1,
4923
+ "textAlignment": "left",
4924
+ "textColor": "default",
4292
4925
  },
4293
- ],
4294
- [
4295
- {
4296
- "styles": {},
4297
- "text": "Cell 9",
4298
- "type": "text",
4926
+ "type": "tableCell",
4927
+ },
4928
+ {
4929
+ "content": [
4930
+ {
4931
+ "styles": {},
4932
+ "text": "Cell 9",
4933
+ "type": "text",
4934
+ },
4935
+ ],
4936
+ "props": {
4937
+ "backgroundColor": "default",
4938
+ "colspan": 1,
4939
+ "rowspan": 1,
4940
+ "textAlignment": "left",
4941
+ "textColor": "default",
4299
4942
  },
4300
- ],
4943
+ "type": "tableCell",
4944
+ },
4301
4945
  ],
4302
4946
  },
4303
4947
  ],
@@ -4750,80 +5394,172 @@ exports[`Test replaceBlocks > Replace single block with single complex 1`] = `
4750
5394
  undefined,
4751
5395
  undefined,
4752
5396
  ],
5397
+ "headerCols": undefined,
5398
+ "headerRows": undefined,
4753
5399
  "rows": [
4754
5400
  {
4755
5401
  "cells": [
4756
- [
4757
- {
4758
- "styles": {},
4759
- "text": "Cell 1",
4760
- "type": "text",
5402
+ {
5403
+ "content": [
5404
+ {
5405
+ "styles": {},
5406
+ "text": "Cell 1",
5407
+ "type": "text",
5408
+ },
5409
+ ],
5410
+ "props": {
5411
+ "backgroundColor": "default",
5412
+ "colspan": 1,
5413
+ "rowspan": 1,
5414
+ "textAlignment": "left",
5415
+ "textColor": "default",
4761
5416
  },
4762
- ],
4763
- [
4764
- {
4765
- "styles": {},
4766
- "text": "Cell 2",
4767
- "type": "text",
5417
+ "type": "tableCell",
5418
+ },
5419
+ {
5420
+ "content": [
5421
+ {
5422
+ "styles": {},
5423
+ "text": "Cell 2",
5424
+ "type": "text",
5425
+ },
5426
+ ],
5427
+ "props": {
5428
+ "backgroundColor": "default",
5429
+ "colspan": 1,
5430
+ "rowspan": 1,
5431
+ "textAlignment": "left",
5432
+ "textColor": "default",
4768
5433
  },
4769
- ],
4770
- [
4771
- {
4772
- "styles": {},
4773
- "text": "Cell 3",
4774
- "type": "text",
5434
+ "type": "tableCell",
5435
+ },
5436
+ {
5437
+ "content": [
5438
+ {
5439
+ "styles": {},
5440
+ "text": "Cell 3",
5441
+ "type": "text",
5442
+ },
5443
+ ],
5444
+ "props": {
5445
+ "backgroundColor": "default",
5446
+ "colspan": 1,
5447
+ "rowspan": 1,
5448
+ "textAlignment": "left",
5449
+ "textColor": "default",
4775
5450
  },
4776
- ],
5451
+ "type": "tableCell",
5452
+ },
4777
5453
  ],
4778
5454
  },
4779
5455
  {
4780
5456
  "cells": [
4781
- [
4782
- {
4783
- "styles": {},
4784
- "text": "Cell 4",
4785
- "type": "text",
5457
+ {
5458
+ "content": [
5459
+ {
5460
+ "styles": {},
5461
+ "text": "Cell 4",
5462
+ "type": "text",
5463
+ },
5464
+ ],
5465
+ "props": {
5466
+ "backgroundColor": "default",
5467
+ "colspan": 1,
5468
+ "rowspan": 1,
5469
+ "textAlignment": "left",
5470
+ "textColor": "default",
4786
5471
  },
4787
- ],
4788
- [
4789
- {
4790
- "styles": {},
4791
- "text": "Cell 5",
4792
- "type": "text",
5472
+ "type": "tableCell",
5473
+ },
5474
+ {
5475
+ "content": [
5476
+ {
5477
+ "styles": {},
5478
+ "text": "Cell 5",
5479
+ "type": "text",
5480
+ },
5481
+ ],
5482
+ "props": {
5483
+ "backgroundColor": "default",
5484
+ "colspan": 1,
5485
+ "rowspan": 1,
5486
+ "textAlignment": "left",
5487
+ "textColor": "default",
4793
5488
  },
4794
- ],
4795
- [
4796
- {
4797
- "styles": {},
4798
- "text": "Cell 6",
4799
- "type": "text",
5489
+ "type": "tableCell",
5490
+ },
5491
+ {
5492
+ "content": [
5493
+ {
5494
+ "styles": {},
5495
+ "text": "Cell 6",
5496
+ "type": "text",
5497
+ },
5498
+ ],
5499
+ "props": {
5500
+ "backgroundColor": "default",
5501
+ "colspan": 1,
5502
+ "rowspan": 1,
5503
+ "textAlignment": "left",
5504
+ "textColor": "default",
4800
5505
  },
4801
- ],
5506
+ "type": "tableCell",
5507
+ },
4802
5508
  ],
4803
5509
  },
4804
5510
  {
4805
5511
  "cells": [
4806
- [
4807
- {
4808
- "styles": {},
4809
- "text": "Cell 7",
4810
- "type": "text",
5512
+ {
5513
+ "content": [
5514
+ {
5515
+ "styles": {},
5516
+ "text": "Cell 7",
5517
+ "type": "text",
5518
+ },
5519
+ ],
5520
+ "props": {
5521
+ "backgroundColor": "default",
5522
+ "colspan": 1,
5523
+ "rowspan": 1,
5524
+ "textAlignment": "left",
5525
+ "textColor": "default",
4811
5526
  },
4812
- ],
4813
- [
4814
- {
4815
- "styles": {},
4816
- "text": "Cell 8",
4817
- "type": "text",
5527
+ "type": "tableCell",
5528
+ },
5529
+ {
5530
+ "content": [
5531
+ {
5532
+ "styles": {},
5533
+ "text": "Cell 8",
5534
+ "type": "text",
5535
+ },
5536
+ ],
5537
+ "props": {
5538
+ "backgroundColor": "default",
5539
+ "colspan": 1,
5540
+ "rowspan": 1,
5541
+ "textAlignment": "left",
5542
+ "textColor": "default",
4818
5543
  },
4819
- ],
4820
- [
4821
- {
4822
- "styles": {},
4823
- "text": "Cell 9",
4824
- "type": "text",
5544
+ "type": "tableCell",
5545
+ },
5546
+ {
5547
+ "content": [
5548
+ {
5549
+ "styles": {},
5550
+ "text": "Cell 9",
5551
+ "type": "text",
5552
+ },
5553
+ ],
5554
+ "props": {
5555
+ "backgroundColor": "default",
5556
+ "colspan": 1,
5557
+ "rowspan": 1,
5558
+ "textAlignment": "left",
5559
+ "textColor": "default",
4825
5560
  },
4826
- ],
5561
+ "type": "tableCell",
5562
+ },
4827
5563
  ],
4828
5564
  },
4829
5565
  ],