@blocknote/core 0.24.2 → 0.25.0

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 (141) hide show
  1. package/dist/blocknote.cjs +12 -0
  2. package/dist/blocknote.cjs.map +1 -0
  3. package/dist/blocknote.js +4754 -3514
  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 +39 -26
  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 +17 -0
  72. package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +1 -1
  73. package/src/extensions/Comments/CommentMark.ts +61 -0
  74. package/src/extensions/Comments/CommentsPlugin.ts +301 -0
  75. package/src/extensions/Comments/userstore/UserStore.ts +72 -0
  76. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +9 -5
  77. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +3 -3
  78. package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +52 -0
  79. package/src/extensions/TableHandles/TableHandlesPlugin.ts +409 -57
  80. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +2 -0
  81. package/src/extensions/TextColor/TextColorExtension.ts +1 -1
  82. package/src/i18n/locales/ar.ts +23 -0
  83. package/src/i18n/locales/de.ts +15 -0
  84. package/src/i18n/locales/en.ts +25 -1
  85. package/src/i18n/locales/es.ts +16 -1
  86. package/src/i18n/locales/fr.ts +23 -0
  87. package/src/i18n/locales/hr.ts +18 -0
  88. package/src/i18n/locales/is.ts +24 -1
  89. package/src/i18n/locales/it.ts +15 -0
  90. package/src/i18n/locales/ja.ts +23 -0
  91. package/src/i18n/locales/ko.ts +23 -0
  92. package/src/i18n/locales/nl.ts +23 -0
  93. package/src/i18n/locales/no.ts +23 -0
  94. package/src/i18n/locales/pl.ts +23 -0
  95. package/src/i18n/locales/pt.ts +23 -0
  96. package/src/i18n/locales/ru.ts +23 -0
  97. package/src/i18n/locales/uk.ts +23 -0
  98. package/src/i18n/locales/vi.ts +23 -0
  99. package/src/i18n/locales/zh.ts +23 -0
  100. package/src/index.ts +6 -4
  101. package/src/schema/blocks/types.ts +32 -2
  102. package/src/util/browser.ts +1 -1
  103. package/src/util/table.ts +107 -0
  104. package/types/src/api/blockManipulation/tables/tables.d.ts +343 -0
  105. package/types/src/api/blockManipulation/tables/tables.test.d.ts +1 -0
  106. package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
  107. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +1 -2
  108. package/types/src/blocks/defaultBlockTypeGuards.d.ts +3 -0
  109. package/types/src/comments/index.d.ts +9 -0
  110. package/types/src/comments/models/User.d.ts +8 -0
  111. package/types/src/comments/threadstore/DefaultThreadStoreAuth.d.ts +47 -0
  112. package/types/src/comments/threadstore/ThreadStore.d.ts +121 -0
  113. package/types/src/comments/threadstore/ThreadStoreAuth.d.ts +12 -0
  114. package/types/src/comments/threadstore/TipTapThreadStore.d.ts +97 -0
  115. package/types/src/comments/threadstore/yjs/RESTYjsThreadStore.d.ts +83 -0
  116. package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +79 -0
  117. package/types/src/comments/threadstore/yjs/YjsThreadStore.test.d.ts +1 -0
  118. package/types/src/comments/threadstore/yjs/YjsThreadStoreBase.d.ts +15 -0
  119. package/types/src/comments/threadstore/yjs/yjsHelpers.d.ts +13 -0
  120. package/types/src/comments/types.d.ts +109 -0
  121. package/types/src/editor/BlockNoteEditor.d.ts +146 -66
  122. package/types/src/editor/BlockNoteExtensions.d.ts +4 -0
  123. package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
  124. package/types/src/extensions/Comments/CommentMark.d.ts +2 -0
  125. package/types/src/extensions/Comments/CommentsPlugin.d.ts +49 -0
  126. package/types/src/extensions/Comments/userstore/UserStore.d.ts +31 -0
  127. package/types/src/extensions/ShowSelection/ShowSelectionPlugin.d.ts +15 -0
  128. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +66 -1
  129. package/types/src/i18n/locales/de.d.ts +15 -0
  130. package/types/src/i18n/locales/en.d.ts +20 -0
  131. package/types/src/i18n/locales/es.d.ts +15 -0
  132. package/types/src/i18n/locales/hr.d.ts +18 -0
  133. package/types/src/i18n/locales/it.d.ts +15 -0
  134. package/types/src/index.d.ts +5 -4
  135. package/types/src/pm-nodes/BlockContainer.d.ts +2 -2
  136. package/types/src/pm-nodes/BlockGroup.d.ts +2 -2
  137. package/types/src/schema/blocks/types.d.ts +23 -2
  138. package/types/src/util/browser.d.ts +1 -1
  139. package/types/src/util/table.d.ts +12 -0
  140. package/dist/blocknote.umd.cjs +0 -11
  141. package/dist/blocknote.umd.cjs.map +0 -1
@@ -263,80 +263,172 @@ exports[`Test updateBlock > Revert all props 1`] = `
263
263
  undefined,
264
264
  undefined,
265
265
  ],
266
+ "headerCols": undefined,
267
+ "headerRows": undefined,
266
268
  "rows": [
267
269
  {
268
270
  "cells": [
269
- [
270
- {
271
- "styles": {},
272
- "text": "Cell 1",
273
- "type": "text",
274
- },
275
- ],
276
- [
277
- {
278
- "styles": {},
279
- "text": "Cell 2",
280
- "type": "text",
281
- },
282
- ],
283
- [
284
- {
285
- "styles": {},
286
- "text": "Cell 3",
287
- "type": "text",
288
- },
289
- ],
271
+ {
272
+ "content": [
273
+ {
274
+ "styles": {},
275
+ "text": "Cell 1",
276
+ "type": "text",
277
+ },
278
+ ],
279
+ "props": {
280
+ "backgroundColor": "default",
281
+ "colspan": 1,
282
+ "rowspan": 1,
283
+ "textAlignment": "left",
284
+ "textColor": "default",
285
+ },
286
+ "type": "tableCell",
287
+ },
288
+ {
289
+ "content": [
290
+ {
291
+ "styles": {},
292
+ "text": "Cell 2",
293
+ "type": "text",
294
+ },
295
+ ],
296
+ "props": {
297
+ "backgroundColor": "default",
298
+ "colspan": 1,
299
+ "rowspan": 1,
300
+ "textAlignment": "left",
301
+ "textColor": "default",
302
+ },
303
+ "type": "tableCell",
304
+ },
305
+ {
306
+ "content": [
307
+ {
308
+ "styles": {},
309
+ "text": "Cell 3",
310
+ "type": "text",
311
+ },
312
+ ],
313
+ "props": {
314
+ "backgroundColor": "default",
315
+ "colspan": 1,
316
+ "rowspan": 1,
317
+ "textAlignment": "left",
318
+ "textColor": "default",
319
+ },
320
+ "type": "tableCell",
321
+ },
290
322
  ],
291
323
  },
292
324
  {
293
325
  "cells": [
294
- [
295
- {
296
- "styles": {},
297
- "text": "Cell 4",
298
- "type": "text",
299
- },
300
- ],
301
- [
302
- {
303
- "styles": {},
304
- "text": "Cell 5",
305
- "type": "text",
306
- },
307
- ],
308
- [
309
- {
310
- "styles": {},
311
- "text": "Cell 6",
312
- "type": "text",
313
- },
314
- ],
326
+ {
327
+ "content": [
328
+ {
329
+ "styles": {},
330
+ "text": "Cell 4",
331
+ "type": "text",
332
+ },
333
+ ],
334
+ "props": {
335
+ "backgroundColor": "default",
336
+ "colspan": 1,
337
+ "rowspan": 1,
338
+ "textAlignment": "left",
339
+ "textColor": "default",
340
+ },
341
+ "type": "tableCell",
342
+ },
343
+ {
344
+ "content": [
345
+ {
346
+ "styles": {},
347
+ "text": "Cell 5",
348
+ "type": "text",
349
+ },
350
+ ],
351
+ "props": {
352
+ "backgroundColor": "default",
353
+ "colspan": 1,
354
+ "rowspan": 1,
355
+ "textAlignment": "left",
356
+ "textColor": "default",
357
+ },
358
+ "type": "tableCell",
359
+ },
360
+ {
361
+ "content": [
362
+ {
363
+ "styles": {},
364
+ "text": "Cell 6",
365
+ "type": "text",
366
+ },
367
+ ],
368
+ "props": {
369
+ "backgroundColor": "default",
370
+ "colspan": 1,
371
+ "rowspan": 1,
372
+ "textAlignment": "left",
373
+ "textColor": "default",
374
+ },
375
+ "type": "tableCell",
376
+ },
315
377
  ],
316
378
  },
317
379
  {
318
380
  "cells": [
319
- [
320
- {
321
- "styles": {},
322
- "text": "Cell 7",
323
- "type": "text",
324
- },
325
- ],
326
- [
327
- {
328
- "styles": {},
329
- "text": "Cell 8",
330
- "type": "text",
331
- },
332
- ],
333
- [
334
- {
335
- "styles": {},
336
- "text": "Cell 9",
337
- "type": "text",
338
- },
339
- ],
381
+ {
382
+ "content": [
383
+ {
384
+ "styles": {},
385
+ "text": "Cell 7",
386
+ "type": "text",
387
+ },
388
+ ],
389
+ "props": {
390
+ "backgroundColor": "default",
391
+ "colspan": 1,
392
+ "rowspan": 1,
393
+ "textAlignment": "left",
394
+ "textColor": "default",
395
+ },
396
+ "type": "tableCell",
397
+ },
398
+ {
399
+ "content": [
400
+ {
401
+ "styles": {},
402
+ "text": "Cell 8",
403
+ "type": "text",
404
+ },
405
+ ],
406
+ "props": {
407
+ "backgroundColor": "default",
408
+ "colspan": 1,
409
+ "rowspan": 1,
410
+ "textAlignment": "left",
411
+ "textColor": "default",
412
+ },
413
+ "type": "tableCell",
414
+ },
415
+ {
416
+ "content": [
417
+ {
418
+ "styles": {},
419
+ "text": "Cell 9",
420
+ "type": "text",
421
+ },
422
+ ],
423
+ "props": {
424
+ "backgroundColor": "default",
425
+ "colspan": 1,
426
+ "rowspan": 1,
427
+ "textAlignment": "left",
428
+ "textColor": "default",
429
+ },
430
+ "type": "tableCell",
431
+ },
340
432
  ],
341
433
  },
342
434
  ],
@@ -738,80 +830,172 @@ exports[`Test updateBlock > Revert single prop 1`] = `
738
830
  undefined,
739
831
  undefined,
740
832
  ],
833
+ "headerCols": undefined,
834
+ "headerRows": undefined,
741
835
  "rows": [
742
836
  {
743
837
  "cells": [
744
- [
745
- {
746
- "styles": {},
747
- "text": "Cell 1",
748
- "type": "text",
749
- },
750
- ],
751
- [
752
- {
753
- "styles": {},
754
- "text": "Cell 2",
755
- "type": "text",
756
- },
757
- ],
758
- [
759
- {
760
- "styles": {},
761
- "text": "Cell 3",
762
- "type": "text",
763
- },
764
- ],
838
+ {
839
+ "content": [
840
+ {
841
+ "styles": {},
842
+ "text": "Cell 1",
843
+ "type": "text",
844
+ },
845
+ ],
846
+ "props": {
847
+ "backgroundColor": "default",
848
+ "colspan": 1,
849
+ "rowspan": 1,
850
+ "textAlignment": "left",
851
+ "textColor": "default",
852
+ },
853
+ "type": "tableCell",
854
+ },
855
+ {
856
+ "content": [
857
+ {
858
+ "styles": {},
859
+ "text": "Cell 2",
860
+ "type": "text",
861
+ },
862
+ ],
863
+ "props": {
864
+ "backgroundColor": "default",
865
+ "colspan": 1,
866
+ "rowspan": 1,
867
+ "textAlignment": "left",
868
+ "textColor": "default",
869
+ },
870
+ "type": "tableCell",
871
+ },
872
+ {
873
+ "content": [
874
+ {
875
+ "styles": {},
876
+ "text": "Cell 3",
877
+ "type": "text",
878
+ },
879
+ ],
880
+ "props": {
881
+ "backgroundColor": "default",
882
+ "colspan": 1,
883
+ "rowspan": 1,
884
+ "textAlignment": "left",
885
+ "textColor": "default",
886
+ },
887
+ "type": "tableCell",
888
+ },
765
889
  ],
766
890
  },
767
891
  {
768
892
  "cells": [
769
- [
770
- {
771
- "styles": {},
772
- "text": "Cell 4",
773
- "type": "text",
774
- },
775
- ],
776
- [
777
- {
778
- "styles": {},
779
- "text": "Cell 5",
780
- "type": "text",
781
- },
782
- ],
783
- [
784
- {
785
- "styles": {},
786
- "text": "Cell 6",
787
- "type": "text",
788
- },
789
- ],
893
+ {
894
+ "content": [
895
+ {
896
+ "styles": {},
897
+ "text": "Cell 4",
898
+ "type": "text",
899
+ },
900
+ ],
901
+ "props": {
902
+ "backgroundColor": "default",
903
+ "colspan": 1,
904
+ "rowspan": 1,
905
+ "textAlignment": "left",
906
+ "textColor": "default",
907
+ },
908
+ "type": "tableCell",
909
+ },
910
+ {
911
+ "content": [
912
+ {
913
+ "styles": {},
914
+ "text": "Cell 5",
915
+ "type": "text",
916
+ },
917
+ ],
918
+ "props": {
919
+ "backgroundColor": "default",
920
+ "colspan": 1,
921
+ "rowspan": 1,
922
+ "textAlignment": "left",
923
+ "textColor": "default",
924
+ },
925
+ "type": "tableCell",
926
+ },
927
+ {
928
+ "content": [
929
+ {
930
+ "styles": {},
931
+ "text": "Cell 6",
932
+ "type": "text",
933
+ },
934
+ ],
935
+ "props": {
936
+ "backgroundColor": "default",
937
+ "colspan": 1,
938
+ "rowspan": 1,
939
+ "textAlignment": "left",
940
+ "textColor": "default",
941
+ },
942
+ "type": "tableCell",
943
+ },
790
944
  ],
791
945
  },
792
946
  {
793
947
  "cells": [
794
- [
795
- {
796
- "styles": {},
797
- "text": "Cell 7",
798
- "type": "text",
799
- },
800
- ],
801
- [
802
- {
803
- "styles": {},
804
- "text": "Cell 8",
805
- "type": "text",
806
- },
807
- ],
808
- [
809
- {
810
- "styles": {},
811
- "text": "Cell 9",
812
- "type": "text",
813
- },
814
- ],
948
+ {
949
+ "content": [
950
+ {
951
+ "styles": {},
952
+ "text": "Cell 7",
953
+ "type": "text",
954
+ },
955
+ ],
956
+ "props": {
957
+ "backgroundColor": "default",
958
+ "colspan": 1,
959
+ "rowspan": 1,
960
+ "textAlignment": "left",
961
+ "textColor": "default",
962
+ },
963
+ "type": "tableCell",
964
+ },
965
+ {
966
+ "content": [
967
+ {
968
+ "styles": {},
969
+ "text": "Cell 8",
970
+ "type": "text",
971
+ },
972
+ ],
973
+ "props": {
974
+ "backgroundColor": "default",
975
+ "colspan": 1,
976
+ "rowspan": 1,
977
+ "textAlignment": "left",
978
+ "textColor": "default",
979
+ },
980
+ "type": "tableCell",
981
+ },
982
+ {
983
+ "content": [
984
+ {
985
+ "styles": {},
986
+ "text": "Cell 9",
987
+ "type": "text",
988
+ },
989
+ ],
990
+ "props": {
991
+ "backgroundColor": "default",
992
+ "colspan": 1,
993
+ "rowspan": 1,
994
+ "textAlignment": "left",
995
+ "textColor": "default",
996
+ },
997
+ "type": "tableCell",
998
+ },
815
999
  ],
816
1000
  },
817
1001
  ],
@@ -1213,80 +1397,172 @@ exports[`Test updateBlock > Update all props 1`] = `
1213
1397
  undefined,
1214
1398
  undefined,
1215
1399
  ],
1400
+ "headerCols": undefined,
1401
+ "headerRows": undefined,
1216
1402
  "rows": [
1217
1403
  {
1218
1404
  "cells": [
1219
- [
1220
- {
1221
- "styles": {},
1222
- "text": "Cell 1",
1223
- "type": "text",
1224
- },
1225
- ],
1226
- [
1227
- {
1228
- "styles": {},
1229
- "text": "Cell 2",
1230
- "type": "text",
1231
- },
1232
- ],
1233
- [
1234
- {
1235
- "styles": {},
1236
- "text": "Cell 3",
1237
- "type": "text",
1238
- },
1239
- ],
1405
+ {
1406
+ "content": [
1407
+ {
1408
+ "styles": {},
1409
+ "text": "Cell 1",
1410
+ "type": "text",
1411
+ },
1412
+ ],
1413
+ "props": {
1414
+ "backgroundColor": "default",
1415
+ "colspan": 1,
1416
+ "rowspan": 1,
1417
+ "textAlignment": "left",
1418
+ "textColor": "default",
1419
+ },
1420
+ "type": "tableCell",
1421
+ },
1422
+ {
1423
+ "content": [
1424
+ {
1425
+ "styles": {},
1426
+ "text": "Cell 2",
1427
+ "type": "text",
1428
+ },
1429
+ ],
1430
+ "props": {
1431
+ "backgroundColor": "default",
1432
+ "colspan": 1,
1433
+ "rowspan": 1,
1434
+ "textAlignment": "left",
1435
+ "textColor": "default",
1436
+ },
1437
+ "type": "tableCell",
1438
+ },
1439
+ {
1440
+ "content": [
1441
+ {
1442
+ "styles": {},
1443
+ "text": "Cell 3",
1444
+ "type": "text",
1445
+ },
1446
+ ],
1447
+ "props": {
1448
+ "backgroundColor": "default",
1449
+ "colspan": 1,
1450
+ "rowspan": 1,
1451
+ "textAlignment": "left",
1452
+ "textColor": "default",
1453
+ },
1454
+ "type": "tableCell",
1455
+ },
1240
1456
  ],
1241
1457
  },
1242
1458
  {
1243
1459
  "cells": [
1244
- [
1245
- {
1246
- "styles": {},
1247
- "text": "Cell 4",
1248
- "type": "text",
1249
- },
1250
- ],
1251
- [
1252
- {
1253
- "styles": {},
1254
- "text": "Cell 5",
1255
- "type": "text",
1256
- },
1257
- ],
1258
- [
1259
- {
1260
- "styles": {},
1261
- "text": "Cell 6",
1262
- "type": "text",
1263
- },
1264
- ],
1460
+ {
1461
+ "content": [
1462
+ {
1463
+ "styles": {},
1464
+ "text": "Cell 4",
1465
+ "type": "text",
1466
+ },
1467
+ ],
1468
+ "props": {
1469
+ "backgroundColor": "default",
1470
+ "colspan": 1,
1471
+ "rowspan": 1,
1472
+ "textAlignment": "left",
1473
+ "textColor": "default",
1474
+ },
1475
+ "type": "tableCell",
1476
+ },
1477
+ {
1478
+ "content": [
1479
+ {
1480
+ "styles": {},
1481
+ "text": "Cell 5",
1482
+ "type": "text",
1483
+ },
1484
+ ],
1485
+ "props": {
1486
+ "backgroundColor": "default",
1487
+ "colspan": 1,
1488
+ "rowspan": 1,
1489
+ "textAlignment": "left",
1490
+ "textColor": "default",
1491
+ },
1492
+ "type": "tableCell",
1493
+ },
1494
+ {
1495
+ "content": [
1496
+ {
1497
+ "styles": {},
1498
+ "text": "Cell 6",
1499
+ "type": "text",
1500
+ },
1501
+ ],
1502
+ "props": {
1503
+ "backgroundColor": "default",
1504
+ "colspan": 1,
1505
+ "rowspan": 1,
1506
+ "textAlignment": "left",
1507
+ "textColor": "default",
1508
+ },
1509
+ "type": "tableCell",
1510
+ },
1265
1511
  ],
1266
1512
  },
1267
1513
  {
1268
1514
  "cells": [
1269
- [
1270
- {
1271
- "styles": {},
1272
- "text": "Cell 7",
1273
- "type": "text",
1274
- },
1275
- ],
1276
- [
1277
- {
1278
- "styles": {},
1279
- "text": "Cell 8",
1280
- "type": "text",
1281
- },
1282
- ],
1283
- [
1284
- {
1285
- "styles": {},
1286
- "text": "Cell 9",
1287
- "type": "text",
1288
- },
1289
- ],
1515
+ {
1516
+ "content": [
1517
+ {
1518
+ "styles": {},
1519
+ "text": "Cell 7",
1520
+ "type": "text",
1521
+ },
1522
+ ],
1523
+ "props": {
1524
+ "backgroundColor": "default",
1525
+ "colspan": 1,
1526
+ "rowspan": 1,
1527
+ "textAlignment": "left",
1528
+ "textColor": "default",
1529
+ },
1530
+ "type": "tableCell",
1531
+ },
1532
+ {
1533
+ "content": [
1534
+ {
1535
+ "styles": {},
1536
+ "text": "Cell 8",
1537
+ "type": "text",
1538
+ },
1539
+ ],
1540
+ "props": {
1541
+ "backgroundColor": "default",
1542
+ "colspan": 1,
1543
+ "rowspan": 1,
1544
+ "textAlignment": "left",
1545
+ "textColor": "default",
1546
+ },
1547
+ "type": "tableCell",
1548
+ },
1549
+ {
1550
+ "content": [
1551
+ {
1552
+ "styles": {},
1553
+ "text": "Cell 9",
1554
+ "type": "text",
1555
+ },
1556
+ ],
1557
+ "props": {
1558
+ "backgroundColor": "default",
1559
+ "colspan": 1,
1560
+ "rowspan": 1,
1561
+ "textAlignment": "left",
1562
+ "textColor": "default",
1563
+ },
1564
+ "type": "tableCell",
1565
+ },
1290
1566
  ],
1291
1567
  },
1292
1568
  ],
@@ -1688,80 +1964,172 @@ exports[`Test updateBlock > Update children 1`] = `
1688
1964
  undefined,
1689
1965
  undefined,
1690
1966
  ],
1967
+ "headerCols": undefined,
1968
+ "headerRows": undefined,
1691
1969
  "rows": [
1692
1970
  {
1693
1971
  "cells": [
1694
- [
1695
- {
1696
- "styles": {},
1697
- "text": "Cell 1",
1698
- "type": "text",
1699
- },
1700
- ],
1701
- [
1702
- {
1703
- "styles": {},
1704
- "text": "Cell 2",
1705
- "type": "text",
1706
- },
1707
- ],
1708
- [
1709
- {
1710
- "styles": {},
1711
- "text": "Cell 3",
1712
- "type": "text",
1713
- },
1714
- ],
1972
+ {
1973
+ "content": [
1974
+ {
1975
+ "styles": {},
1976
+ "text": "Cell 1",
1977
+ "type": "text",
1978
+ },
1979
+ ],
1980
+ "props": {
1981
+ "backgroundColor": "default",
1982
+ "colspan": 1,
1983
+ "rowspan": 1,
1984
+ "textAlignment": "left",
1985
+ "textColor": "default",
1986
+ },
1987
+ "type": "tableCell",
1988
+ },
1989
+ {
1990
+ "content": [
1991
+ {
1992
+ "styles": {},
1993
+ "text": "Cell 2",
1994
+ "type": "text",
1995
+ },
1996
+ ],
1997
+ "props": {
1998
+ "backgroundColor": "default",
1999
+ "colspan": 1,
2000
+ "rowspan": 1,
2001
+ "textAlignment": "left",
2002
+ "textColor": "default",
2003
+ },
2004
+ "type": "tableCell",
2005
+ },
2006
+ {
2007
+ "content": [
2008
+ {
2009
+ "styles": {},
2010
+ "text": "Cell 3",
2011
+ "type": "text",
2012
+ },
2013
+ ],
2014
+ "props": {
2015
+ "backgroundColor": "default",
2016
+ "colspan": 1,
2017
+ "rowspan": 1,
2018
+ "textAlignment": "left",
2019
+ "textColor": "default",
2020
+ },
2021
+ "type": "tableCell",
2022
+ },
1715
2023
  ],
1716
2024
  },
1717
2025
  {
1718
2026
  "cells": [
1719
- [
1720
- {
1721
- "styles": {},
1722
- "text": "Cell 4",
1723
- "type": "text",
1724
- },
1725
- ],
1726
- [
1727
- {
1728
- "styles": {},
1729
- "text": "Cell 5",
1730
- "type": "text",
1731
- },
1732
- ],
1733
- [
1734
- {
1735
- "styles": {},
1736
- "text": "Cell 6",
1737
- "type": "text",
1738
- },
1739
- ],
2027
+ {
2028
+ "content": [
2029
+ {
2030
+ "styles": {},
2031
+ "text": "Cell 4",
2032
+ "type": "text",
2033
+ },
2034
+ ],
2035
+ "props": {
2036
+ "backgroundColor": "default",
2037
+ "colspan": 1,
2038
+ "rowspan": 1,
2039
+ "textAlignment": "left",
2040
+ "textColor": "default",
2041
+ },
2042
+ "type": "tableCell",
2043
+ },
2044
+ {
2045
+ "content": [
2046
+ {
2047
+ "styles": {},
2048
+ "text": "Cell 5",
2049
+ "type": "text",
2050
+ },
2051
+ ],
2052
+ "props": {
2053
+ "backgroundColor": "default",
2054
+ "colspan": 1,
2055
+ "rowspan": 1,
2056
+ "textAlignment": "left",
2057
+ "textColor": "default",
2058
+ },
2059
+ "type": "tableCell",
2060
+ },
2061
+ {
2062
+ "content": [
2063
+ {
2064
+ "styles": {},
2065
+ "text": "Cell 6",
2066
+ "type": "text",
2067
+ },
2068
+ ],
2069
+ "props": {
2070
+ "backgroundColor": "default",
2071
+ "colspan": 1,
2072
+ "rowspan": 1,
2073
+ "textAlignment": "left",
2074
+ "textColor": "default",
2075
+ },
2076
+ "type": "tableCell",
2077
+ },
1740
2078
  ],
1741
2079
  },
1742
2080
  {
1743
2081
  "cells": [
1744
- [
1745
- {
1746
- "styles": {},
1747
- "text": "Cell 7",
1748
- "type": "text",
1749
- },
1750
- ],
1751
- [
1752
- {
1753
- "styles": {},
1754
- "text": "Cell 8",
1755
- "type": "text",
1756
- },
1757
- ],
1758
- [
1759
- {
1760
- "styles": {},
1761
- "text": "Cell 9",
1762
- "type": "text",
1763
- },
1764
- ],
2082
+ {
2083
+ "content": [
2084
+ {
2085
+ "styles": {},
2086
+ "text": "Cell 7",
2087
+ "type": "text",
2088
+ },
2089
+ ],
2090
+ "props": {
2091
+ "backgroundColor": "default",
2092
+ "colspan": 1,
2093
+ "rowspan": 1,
2094
+ "textAlignment": "left",
2095
+ "textColor": "default",
2096
+ },
2097
+ "type": "tableCell",
2098
+ },
2099
+ {
2100
+ "content": [
2101
+ {
2102
+ "styles": {},
2103
+ "text": "Cell 8",
2104
+ "type": "text",
2105
+ },
2106
+ ],
2107
+ "props": {
2108
+ "backgroundColor": "default",
2109
+ "colspan": 1,
2110
+ "rowspan": 1,
2111
+ "textAlignment": "left",
2112
+ "textColor": "default",
2113
+ },
2114
+ "type": "tableCell",
2115
+ },
2116
+ {
2117
+ "content": [
2118
+ {
2119
+ "styles": {},
2120
+ "text": "Cell 9",
2121
+ "type": "text",
2122
+ },
2123
+ ],
2124
+ "props": {
2125
+ "backgroundColor": "default",
2126
+ "colspan": 1,
2127
+ "rowspan": 1,
2128
+ "textAlignment": "left",
2129
+ "textColor": "default",
2130
+ },
2131
+ "type": "tableCell",
2132
+ },
1765
2133
  ],
1766
2134
  },
1767
2135
  ],
@@ -2161,80 +2529,172 @@ exports[`Test updateBlock > Update inline content to no content 1`] = `
2161
2529
  undefined,
2162
2530
  undefined,
2163
2531
  ],
2532
+ "headerCols": undefined,
2533
+ "headerRows": undefined,
2164
2534
  "rows": [
2165
2535
  {
2166
2536
  "cells": [
2167
- [
2168
- {
2169
- "styles": {},
2170
- "text": "Cell 1",
2171
- "type": "text",
2172
- },
2173
- ],
2174
- [
2175
- {
2176
- "styles": {},
2177
- "text": "Cell 2",
2178
- "type": "text",
2179
- },
2180
- ],
2181
- [
2182
- {
2183
- "styles": {},
2184
- "text": "Cell 3",
2185
- "type": "text",
2186
- },
2187
- ],
2537
+ {
2538
+ "content": [
2539
+ {
2540
+ "styles": {},
2541
+ "text": "Cell 1",
2542
+ "type": "text",
2543
+ },
2544
+ ],
2545
+ "props": {
2546
+ "backgroundColor": "default",
2547
+ "colspan": 1,
2548
+ "rowspan": 1,
2549
+ "textAlignment": "left",
2550
+ "textColor": "default",
2551
+ },
2552
+ "type": "tableCell",
2553
+ },
2554
+ {
2555
+ "content": [
2556
+ {
2557
+ "styles": {},
2558
+ "text": "Cell 2",
2559
+ "type": "text",
2560
+ },
2561
+ ],
2562
+ "props": {
2563
+ "backgroundColor": "default",
2564
+ "colspan": 1,
2565
+ "rowspan": 1,
2566
+ "textAlignment": "left",
2567
+ "textColor": "default",
2568
+ },
2569
+ "type": "tableCell",
2570
+ },
2571
+ {
2572
+ "content": [
2573
+ {
2574
+ "styles": {},
2575
+ "text": "Cell 3",
2576
+ "type": "text",
2577
+ },
2578
+ ],
2579
+ "props": {
2580
+ "backgroundColor": "default",
2581
+ "colspan": 1,
2582
+ "rowspan": 1,
2583
+ "textAlignment": "left",
2584
+ "textColor": "default",
2585
+ },
2586
+ "type": "tableCell",
2587
+ },
2188
2588
  ],
2189
2589
  },
2190
2590
  {
2191
2591
  "cells": [
2192
- [
2193
- {
2194
- "styles": {},
2195
- "text": "Cell 4",
2196
- "type": "text",
2197
- },
2198
- ],
2199
- [
2200
- {
2201
- "styles": {},
2202
- "text": "Cell 5",
2203
- "type": "text",
2204
- },
2205
- ],
2206
- [
2207
- {
2208
- "styles": {},
2209
- "text": "Cell 6",
2210
- "type": "text",
2211
- },
2212
- ],
2592
+ {
2593
+ "content": [
2594
+ {
2595
+ "styles": {},
2596
+ "text": "Cell 4",
2597
+ "type": "text",
2598
+ },
2599
+ ],
2600
+ "props": {
2601
+ "backgroundColor": "default",
2602
+ "colspan": 1,
2603
+ "rowspan": 1,
2604
+ "textAlignment": "left",
2605
+ "textColor": "default",
2606
+ },
2607
+ "type": "tableCell",
2608
+ },
2609
+ {
2610
+ "content": [
2611
+ {
2612
+ "styles": {},
2613
+ "text": "Cell 5",
2614
+ "type": "text",
2615
+ },
2616
+ ],
2617
+ "props": {
2618
+ "backgroundColor": "default",
2619
+ "colspan": 1,
2620
+ "rowspan": 1,
2621
+ "textAlignment": "left",
2622
+ "textColor": "default",
2623
+ },
2624
+ "type": "tableCell",
2625
+ },
2626
+ {
2627
+ "content": [
2628
+ {
2629
+ "styles": {},
2630
+ "text": "Cell 6",
2631
+ "type": "text",
2632
+ },
2633
+ ],
2634
+ "props": {
2635
+ "backgroundColor": "default",
2636
+ "colspan": 1,
2637
+ "rowspan": 1,
2638
+ "textAlignment": "left",
2639
+ "textColor": "default",
2640
+ },
2641
+ "type": "tableCell",
2642
+ },
2213
2643
  ],
2214
2644
  },
2215
2645
  {
2216
2646
  "cells": [
2217
- [
2218
- {
2219
- "styles": {},
2220
- "text": "Cell 7",
2221
- "type": "text",
2222
- },
2223
- ],
2224
- [
2225
- {
2226
- "styles": {},
2227
- "text": "Cell 8",
2228
- "type": "text",
2229
- },
2230
- ],
2231
- [
2232
- {
2233
- "styles": {},
2234
- "text": "Cell 9",
2235
- "type": "text",
2236
- },
2237
- ],
2647
+ {
2648
+ "content": [
2649
+ {
2650
+ "styles": {},
2651
+ "text": "Cell 7",
2652
+ "type": "text",
2653
+ },
2654
+ ],
2655
+ "props": {
2656
+ "backgroundColor": "default",
2657
+ "colspan": 1,
2658
+ "rowspan": 1,
2659
+ "textAlignment": "left",
2660
+ "textColor": "default",
2661
+ },
2662
+ "type": "tableCell",
2663
+ },
2664
+ {
2665
+ "content": [
2666
+ {
2667
+ "styles": {},
2668
+ "text": "Cell 8",
2669
+ "type": "text",
2670
+ },
2671
+ ],
2672
+ "props": {
2673
+ "backgroundColor": "default",
2674
+ "colspan": 1,
2675
+ "rowspan": 1,
2676
+ "textAlignment": "left",
2677
+ "textColor": "default",
2678
+ },
2679
+ "type": "tableCell",
2680
+ },
2681
+ {
2682
+ "content": [
2683
+ {
2684
+ "styles": {},
2685
+ "text": "Cell 9",
2686
+ "type": "text",
2687
+ },
2688
+ ],
2689
+ "props": {
2690
+ "backgroundColor": "default",
2691
+ "colspan": 1,
2692
+ "rowspan": 1,
2693
+ "textAlignment": "left",
2694
+ "textColor": "default",
2695
+ },
2696
+ "type": "tableCell",
2697
+ },
2238
2698
  ],
2239
2699
  },
2240
2700
  ],
@@ -2383,80 +2843,172 @@ exports[`Test updateBlock > Update inline content to table content 1`] = `
2383
2843
  undefined,
2384
2844
  undefined,
2385
2845
  ],
2846
+ "headerCols": undefined,
2847
+ "headerRows": undefined,
2386
2848
  "rows": [
2387
2849
  {
2388
2850
  "cells": [
2389
- [
2390
- {
2391
- "styles": {},
2392
- "text": "Cell 1",
2393
- "type": "text",
2394
- },
2395
- ],
2396
- [
2397
- {
2398
- "styles": {},
2399
- "text": "Cell 2",
2400
- "type": "text",
2401
- },
2402
- ],
2403
- [
2404
- {
2405
- "styles": {},
2406
- "text": "Cell 3",
2407
- "type": "text",
2408
- },
2409
- ],
2851
+ {
2852
+ "content": [
2853
+ {
2854
+ "styles": {},
2855
+ "text": "Cell 1",
2856
+ "type": "text",
2857
+ },
2858
+ ],
2859
+ "props": {
2860
+ "backgroundColor": "default",
2861
+ "colspan": 1,
2862
+ "rowspan": 1,
2863
+ "textAlignment": "left",
2864
+ "textColor": "default",
2865
+ },
2866
+ "type": "tableCell",
2867
+ },
2868
+ {
2869
+ "content": [
2870
+ {
2871
+ "styles": {},
2872
+ "text": "Cell 2",
2873
+ "type": "text",
2874
+ },
2875
+ ],
2876
+ "props": {
2877
+ "backgroundColor": "default",
2878
+ "colspan": 1,
2879
+ "rowspan": 1,
2880
+ "textAlignment": "left",
2881
+ "textColor": "default",
2882
+ },
2883
+ "type": "tableCell",
2884
+ },
2885
+ {
2886
+ "content": [
2887
+ {
2888
+ "styles": {},
2889
+ "text": "Cell 3",
2890
+ "type": "text",
2891
+ },
2892
+ ],
2893
+ "props": {
2894
+ "backgroundColor": "default",
2895
+ "colspan": 1,
2896
+ "rowspan": 1,
2897
+ "textAlignment": "left",
2898
+ "textColor": "default",
2899
+ },
2900
+ "type": "tableCell",
2901
+ },
2410
2902
  ],
2411
2903
  },
2412
2904
  {
2413
2905
  "cells": [
2414
- [
2415
- {
2416
- "styles": {},
2417
- "text": "Cell 4",
2418
- "type": "text",
2419
- },
2420
- ],
2421
- [
2422
- {
2423
- "styles": {},
2424
- "text": "Cell 5",
2425
- "type": "text",
2426
- },
2427
- ],
2428
- [
2429
- {
2430
- "styles": {},
2431
- "text": "Cell 6",
2432
- "type": "text",
2433
- },
2434
- ],
2906
+ {
2907
+ "content": [
2908
+ {
2909
+ "styles": {},
2910
+ "text": "Cell 4",
2911
+ "type": "text",
2912
+ },
2913
+ ],
2914
+ "props": {
2915
+ "backgroundColor": "default",
2916
+ "colspan": 1,
2917
+ "rowspan": 1,
2918
+ "textAlignment": "left",
2919
+ "textColor": "default",
2920
+ },
2921
+ "type": "tableCell",
2922
+ },
2923
+ {
2924
+ "content": [
2925
+ {
2926
+ "styles": {},
2927
+ "text": "Cell 5",
2928
+ "type": "text",
2929
+ },
2930
+ ],
2931
+ "props": {
2932
+ "backgroundColor": "default",
2933
+ "colspan": 1,
2934
+ "rowspan": 1,
2935
+ "textAlignment": "left",
2936
+ "textColor": "default",
2937
+ },
2938
+ "type": "tableCell",
2939
+ },
2940
+ {
2941
+ "content": [
2942
+ {
2943
+ "styles": {},
2944
+ "text": "Cell 6",
2945
+ "type": "text",
2946
+ },
2947
+ ],
2948
+ "props": {
2949
+ "backgroundColor": "default",
2950
+ "colspan": 1,
2951
+ "rowspan": 1,
2952
+ "textAlignment": "left",
2953
+ "textColor": "default",
2954
+ },
2955
+ "type": "tableCell",
2956
+ },
2435
2957
  ],
2436
2958
  },
2437
2959
  {
2438
2960
  "cells": [
2439
- [
2440
- {
2441
- "styles": {},
2442
- "text": "Cell 7",
2443
- "type": "text",
2444
- },
2445
- ],
2446
- [
2447
- {
2448
- "styles": {},
2449
- "text": "Cell 8",
2450
- "type": "text",
2451
- },
2452
- ],
2453
- [
2454
- {
2455
- "styles": {},
2456
- "text": "Cell 9",
2457
- "type": "text",
2458
- },
2459
- ],
2961
+ {
2962
+ "content": [
2963
+ {
2964
+ "styles": {},
2965
+ "text": "Cell 7",
2966
+ "type": "text",
2967
+ },
2968
+ ],
2969
+ "props": {
2970
+ "backgroundColor": "default",
2971
+ "colspan": 1,
2972
+ "rowspan": 1,
2973
+ "textAlignment": "left",
2974
+ "textColor": "default",
2975
+ },
2976
+ "type": "tableCell",
2977
+ },
2978
+ {
2979
+ "content": [
2980
+ {
2981
+ "styles": {},
2982
+ "text": "Cell 8",
2983
+ "type": "text",
2984
+ },
2985
+ ],
2986
+ "props": {
2987
+ "backgroundColor": "default",
2988
+ "colspan": 1,
2989
+ "rowspan": 1,
2990
+ "textAlignment": "left",
2991
+ "textColor": "default",
2992
+ },
2993
+ "type": "tableCell",
2994
+ },
2995
+ {
2996
+ "content": [
2997
+ {
2998
+ "styles": {},
2999
+ "text": "Cell 9",
3000
+ "type": "text",
3001
+ },
3002
+ ],
3003
+ "props": {
3004
+ "backgroundColor": "default",
3005
+ "colspan": 1,
3006
+ "rowspan": 1,
3007
+ "textAlignment": "left",
3008
+ "textColor": "default",
3009
+ },
3010
+ "type": "tableCell",
3011
+ },
2460
3012
  ],
2461
3013
  },
2462
3014
  ],
@@ -2712,80 +3264,172 @@ exports[`Test updateBlock > Update inline content to table content 1`] = `
2712
3264
  undefined,
2713
3265
  undefined,
2714
3266
  ],
3267
+ "headerCols": undefined,
3268
+ "headerRows": undefined,
2715
3269
  "rows": [
2716
3270
  {
2717
3271
  "cells": [
2718
- [
2719
- {
2720
- "styles": {},
2721
- "text": "Cell 1",
2722
- "type": "text",
2723
- },
2724
- ],
2725
- [
2726
- {
2727
- "styles": {},
2728
- "text": "Cell 2",
2729
- "type": "text",
2730
- },
2731
- ],
2732
- [
2733
- {
2734
- "styles": {},
2735
- "text": "Cell 3",
2736
- "type": "text",
2737
- },
2738
- ],
3272
+ {
3273
+ "content": [
3274
+ {
3275
+ "styles": {},
3276
+ "text": "Cell 1",
3277
+ "type": "text",
3278
+ },
3279
+ ],
3280
+ "props": {
3281
+ "backgroundColor": "default",
3282
+ "colspan": 1,
3283
+ "rowspan": 1,
3284
+ "textAlignment": "left",
3285
+ "textColor": "default",
3286
+ },
3287
+ "type": "tableCell",
3288
+ },
3289
+ {
3290
+ "content": [
3291
+ {
3292
+ "styles": {},
3293
+ "text": "Cell 2",
3294
+ "type": "text",
3295
+ },
3296
+ ],
3297
+ "props": {
3298
+ "backgroundColor": "default",
3299
+ "colspan": 1,
3300
+ "rowspan": 1,
3301
+ "textAlignment": "left",
3302
+ "textColor": "default",
3303
+ },
3304
+ "type": "tableCell",
3305
+ },
3306
+ {
3307
+ "content": [
3308
+ {
3309
+ "styles": {},
3310
+ "text": "Cell 3",
3311
+ "type": "text",
3312
+ },
3313
+ ],
3314
+ "props": {
3315
+ "backgroundColor": "default",
3316
+ "colspan": 1,
3317
+ "rowspan": 1,
3318
+ "textAlignment": "left",
3319
+ "textColor": "default",
3320
+ },
3321
+ "type": "tableCell",
3322
+ },
2739
3323
  ],
2740
3324
  },
2741
3325
  {
2742
3326
  "cells": [
2743
- [
2744
- {
2745
- "styles": {},
2746
- "text": "Cell 4",
2747
- "type": "text",
2748
- },
2749
- ],
2750
- [
2751
- {
2752
- "styles": {},
2753
- "text": "Cell 5",
2754
- "type": "text",
2755
- },
2756
- ],
2757
- [
2758
- {
2759
- "styles": {},
2760
- "text": "Cell 6",
2761
- "type": "text",
2762
- },
2763
- ],
3327
+ {
3328
+ "content": [
3329
+ {
3330
+ "styles": {},
3331
+ "text": "Cell 4",
3332
+ "type": "text",
3333
+ },
3334
+ ],
3335
+ "props": {
3336
+ "backgroundColor": "default",
3337
+ "colspan": 1,
3338
+ "rowspan": 1,
3339
+ "textAlignment": "left",
3340
+ "textColor": "default",
3341
+ },
3342
+ "type": "tableCell",
3343
+ },
3344
+ {
3345
+ "content": [
3346
+ {
3347
+ "styles": {},
3348
+ "text": "Cell 5",
3349
+ "type": "text",
3350
+ },
3351
+ ],
3352
+ "props": {
3353
+ "backgroundColor": "default",
3354
+ "colspan": 1,
3355
+ "rowspan": 1,
3356
+ "textAlignment": "left",
3357
+ "textColor": "default",
3358
+ },
3359
+ "type": "tableCell",
3360
+ },
3361
+ {
3362
+ "content": [
3363
+ {
3364
+ "styles": {},
3365
+ "text": "Cell 6",
3366
+ "type": "text",
3367
+ },
3368
+ ],
3369
+ "props": {
3370
+ "backgroundColor": "default",
3371
+ "colspan": 1,
3372
+ "rowspan": 1,
3373
+ "textAlignment": "left",
3374
+ "textColor": "default",
3375
+ },
3376
+ "type": "tableCell",
3377
+ },
2764
3378
  ],
2765
3379
  },
2766
3380
  {
2767
3381
  "cells": [
2768
- [
2769
- {
2770
- "styles": {},
2771
- "text": "Cell 7",
2772
- "type": "text",
2773
- },
2774
- ],
2775
- [
2776
- {
2777
- "styles": {},
2778
- "text": "Cell 8",
2779
- "type": "text",
2780
- },
2781
- ],
2782
- [
2783
- {
2784
- "styles": {},
2785
- "text": "Cell 9",
2786
- "type": "text",
2787
- },
2788
- ],
3382
+ {
3383
+ "content": [
3384
+ {
3385
+ "styles": {},
3386
+ "text": "Cell 7",
3387
+ "type": "text",
3388
+ },
3389
+ ],
3390
+ "props": {
3391
+ "backgroundColor": "default",
3392
+ "colspan": 1,
3393
+ "rowspan": 1,
3394
+ "textAlignment": "left",
3395
+ "textColor": "default",
3396
+ },
3397
+ "type": "tableCell",
3398
+ },
3399
+ {
3400
+ "content": [
3401
+ {
3402
+ "styles": {},
3403
+ "text": "Cell 8",
3404
+ "type": "text",
3405
+ },
3406
+ ],
3407
+ "props": {
3408
+ "backgroundColor": "default",
3409
+ "colspan": 1,
3410
+ "rowspan": 1,
3411
+ "textAlignment": "left",
3412
+ "textColor": "default",
3413
+ },
3414
+ "type": "tableCell",
3415
+ },
3416
+ {
3417
+ "content": [
3418
+ {
3419
+ "styles": {},
3420
+ "text": "Cell 9",
3421
+ "type": "text",
3422
+ },
3423
+ ],
3424
+ "props": {
3425
+ "backgroundColor": "default",
3426
+ "colspan": 1,
3427
+ "rowspan": 1,
3428
+ "textAlignment": "left",
3429
+ "textColor": "default",
3430
+ },
3431
+ "type": "tableCell",
3432
+ },
2789
3433
  ],
2790
3434
  },
2791
3435
  ],
@@ -3183,80 +3827,172 @@ exports[`Test updateBlock > Update no content to empty inline content 1`] = `
3183
3827
  undefined,
3184
3828
  undefined,
3185
3829
  ],
3830
+ "headerCols": undefined,
3831
+ "headerRows": undefined,
3186
3832
  "rows": [
3187
3833
  {
3188
3834
  "cells": [
3189
- [
3190
- {
3191
- "styles": {},
3192
- "text": "Cell 1",
3193
- "type": "text",
3194
- },
3195
- ],
3196
- [
3197
- {
3198
- "styles": {},
3199
- "text": "Cell 2",
3200
- "type": "text",
3201
- },
3202
- ],
3203
- [
3204
- {
3205
- "styles": {},
3206
- "text": "Cell 3",
3207
- "type": "text",
3208
- },
3209
- ],
3835
+ {
3836
+ "content": [
3837
+ {
3838
+ "styles": {},
3839
+ "text": "Cell 1",
3840
+ "type": "text",
3841
+ },
3842
+ ],
3843
+ "props": {
3844
+ "backgroundColor": "default",
3845
+ "colspan": 1,
3846
+ "rowspan": 1,
3847
+ "textAlignment": "left",
3848
+ "textColor": "default",
3849
+ },
3850
+ "type": "tableCell",
3851
+ },
3852
+ {
3853
+ "content": [
3854
+ {
3855
+ "styles": {},
3856
+ "text": "Cell 2",
3857
+ "type": "text",
3858
+ },
3859
+ ],
3860
+ "props": {
3861
+ "backgroundColor": "default",
3862
+ "colspan": 1,
3863
+ "rowspan": 1,
3864
+ "textAlignment": "left",
3865
+ "textColor": "default",
3866
+ },
3867
+ "type": "tableCell",
3868
+ },
3869
+ {
3870
+ "content": [
3871
+ {
3872
+ "styles": {},
3873
+ "text": "Cell 3",
3874
+ "type": "text",
3875
+ },
3876
+ ],
3877
+ "props": {
3878
+ "backgroundColor": "default",
3879
+ "colspan": 1,
3880
+ "rowspan": 1,
3881
+ "textAlignment": "left",
3882
+ "textColor": "default",
3883
+ },
3884
+ "type": "tableCell",
3885
+ },
3210
3886
  ],
3211
3887
  },
3212
3888
  {
3213
3889
  "cells": [
3214
- [
3215
- {
3216
- "styles": {},
3217
- "text": "Cell 4",
3218
- "type": "text",
3219
- },
3220
- ],
3221
- [
3222
- {
3223
- "styles": {},
3224
- "text": "Cell 5",
3225
- "type": "text",
3226
- },
3227
- ],
3228
- [
3229
- {
3230
- "styles": {},
3231
- "text": "Cell 6",
3232
- "type": "text",
3233
- },
3234
- ],
3890
+ {
3891
+ "content": [
3892
+ {
3893
+ "styles": {},
3894
+ "text": "Cell 4",
3895
+ "type": "text",
3896
+ },
3897
+ ],
3898
+ "props": {
3899
+ "backgroundColor": "default",
3900
+ "colspan": 1,
3901
+ "rowspan": 1,
3902
+ "textAlignment": "left",
3903
+ "textColor": "default",
3904
+ },
3905
+ "type": "tableCell",
3906
+ },
3907
+ {
3908
+ "content": [
3909
+ {
3910
+ "styles": {},
3911
+ "text": "Cell 5",
3912
+ "type": "text",
3913
+ },
3914
+ ],
3915
+ "props": {
3916
+ "backgroundColor": "default",
3917
+ "colspan": 1,
3918
+ "rowspan": 1,
3919
+ "textAlignment": "left",
3920
+ "textColor": "default",
3921
+ },
3922
+ "type": "tableCell",
3923
+ },
3924
+ {
3925
+ "content": [
3926
+ {
3927
+ "styles": {},
3928
+ "text": "Cell 6",
3929
+ "type": "text",
3930
+ },
3931
+ ],
3932
+ "props": {
3933
+ "backgroundColor": "default",
3934
+ "colspan": 1,
3935
+ "rowspan": 1,
3936
+ "textAlignment": "left",
3937
+ "textColor": "default",
3938
+ },
3939
+ "type": "tableCell",
3940
+ },
3235
3941
  ],
3236
3942
  },
3237
3943
  {
3238
3944
  "cells": [
3239
- [
3240
- {
3241
- "styles": {},
3242
- "text": "Cell 7",
3243
- "type": "text",
3244
- },
3245
- ],
3246
- [
3247
- {
3248
- "styles": {},
3249
- "text": "Cell 8",
3250
- "type": "text",
3251
- },
3252
- ],
3253
- [
3254
- {
3255
- "styles": {},
3256
- "text": "Cell 9",
3257
- "type": "text",
3258
- },
3259
- ],
3945
+ {
3946
+ "content": [
3947
+ {
3948
+ "styles": {},
3949
+ "text": "Cell 7",
3950
+ "type": "text",
3951
+ },
3952
+ ],
3953
+ "props": {
3954
+ "backgroundColor": "default",
3955
+ "colspan": 1,
3956
+ "rowspan": 1,
3957
+ "textAlignment": "left",
3958
+ "textColor": "default",
3959
+ },
3960
+ "type": "tableCell",
3961
+ },
3962
+ {
3963
+ "content": [
3964
+ {
3965
+ "styles": {},
3966
+ "text": "Cell 8",
3967
+ "type": "text",
3968
+ },
3969
+ ],
3970
+ "props": {
3971
+ "backgroundColor": "default",
3972
+ "colspan": 1,
3973
+ "rowspan": 1,
3974
+ "textAlignment": "left",
3975
+ "textColor": "default",
3976
+ },
3977
+ "type": "tableCell",
3978
+ },
3979
+ {
3980
+ "content": [
3981
+ {
3982
+ "styles": {},
3983
+ "text": "Cell 9",
3984
+ "type": "text",
3985
+ },
3986
+ ],
3987
+ "props": {
3988
+ "backgroundColor": "default",
3989
+ "colspan": 1,
3990
+ "rowspan": 1,
3991
+ "textAlignment": "left",
3992
+ "textColor": "default",
3993
+ },
3994
+ "type": "tableCell",
3995
+ },
3260
3996
  ],
3261
3997
  },
3262
3998
  ],
@@ -3620,16 +4356,14 @@ exports[`Test updateBlock > Update no content to empty table content 1`] = `
3620
4356
  },
3621
4357
  {
3622
4358
  "children": [],
3623
- "content": {
3624
- "columnWidths": [],
3625
- "rows": [],
3626
- "type": "tableContent",
3627
- },
4359
+ "content": [],
3628
4360
  "id": "image-0",
3629
4361
  "props": {
4362
+ "backgroundColor": "default",
4363
+ "textAlignment": "left",
3630
4364
  "textColor": "default",
3631
4365
  },
3632
- "type": "table",
4366
+ "type": "paragraph",
3633
4367
  },
3634
4368
  {
3635
4369
  "children": [],
@@ -3656,80 +4390,172 @@ exports[`Test updateBlock > Update no content to empty table content 1`] = `
3656
4390
  undefined,
3657
4391
  undefined,
3658
4392
  ],
4393
+ "headerCols": undefined,
4394
+ "headerRows": undefined,
3659
4395
  "rows": [
3660
4396
  {
3661
4397
  "cells": [
3662
- [
3663
- {
3664
- "styles": {},
3665
- "text": "Cell 1",
3666
- "type": "text",
3667
- },
3668
- ],
3669
- [
3670
- {
3671
- "styles": {},
3672
- "text": "Cell 2",
3673
- "type": "text",
3674
- },
3675
- ],
3676
- [
3677
- {
3678
- "styles": {},
3679
- "text": "Cell 3",
3680
- "type": "text",
3681
- },
3682
- ],
4398
+ {
4399
+ "content": [
4400
+ {
4401
+ "styles": {},
4402
+ "text": "Cell 1",
4403
+ "type": "text",
4404
+ },
4405
+ ],
4406
+ "props": {
4407
+ "backgroundColor": "default",
4408
+ "colspan": 1,
4409
+ "rowspan": 1,
4410
+ "textAlignment": "left",
4411
+ "textColor": "default",
4412
+ },
4413
+ "type": "tableCell",
4414
+ },
4415
+ {
4416
+ "content": [
4417
+ {
4418
+ "styles": {},
4419
+ "text": "Cell 2",
4420
+ "type": "text",
4421
+ },
4422
+ ],
4423
+ "props": {
4424
+ "backgroundColor": "default",
4425
+ "colspan": 1,
4426
+ "rowspan": 1,
4427
+ "textAlignment": "left",
4428
+ "textColor": "default",
4429
+ },
4430
+ "type": "tableCell",
4431
+ },
4432
+ {
4433
+ "content": [
4434
+ {
4435
+ "styles": {},
4436
+ "text": "Cell 3",
4437
+ "type": "text",
4438
+ },
4439
+ ],
4440
+ "props": {
4441
+ "backgroundColor": "default",
4442
+ "colspan": 1,
4443
+ "rowspan": 1,
4444
+ "textAlignment": "left",
4445
+ "textColor": "default",
4446
+ },
4447
+ "type": "tableCell",
4448
+ },
3683
4449
  ],
3684
4450
  },
3685
4451
  {
3686
4452
  "cells": [
3687
- [
3688
- {
3689
- "styles": {},
3690
- "text": "Cell 4",
3691
- "type": "text",
3692
- },
3693
- ],
3694
- [
3695
- {
3696
- "styles": {},
3697
- "text": "Cell 5",
3698
- "type": "text",
3699
- },
3700
- ],
3701
- [
3702
- {
3703
- "styles": {},
3704
- "text": "Cell 6",
3705
- "type": "text",
3706
- },
3707
- ],
4453
+ {
4454
+ "content": [
4455
+ {
4456
+ "styles": {},
4457
+ "text": "Cell 4",
4458
+ "type": "text",
4459
+ },
4460
+ ],
4461
+ "props": {
4462
+ "backgroundColor": "default",
4463
+ "colspan": 1,
4464
+ "rowspan": 1,
4465
+ "textAlignment": "left",
4466
+ "textColor": "default",
4467
+ },
4468
+ "type": "tableCell",
4469
+ },
4470
+ {
4471
+ "content": [
4472
+ {
4473
+ "styles": {},
4474
+ "text": "Cell 5",
4475
+ "type": "text",
4476
+ },
4477
+ ],
4478
+ "props": {
4479
+ "backgroundColor": "default",
4480
+ "colspan": 1,
4481
+ "rowspan": 1,
4482
+ "textAlignment": "left",
4483
+ "textColor": "default",
4484
+ },
4485
+ "type": "tableCell",
4486
+ },
4487
+ {
4488
+ "content": [
4489
+ {
4490
+ "styles": {},
4491
+ "text": "Cell 6",
4492
+ "type": "text",
4493
+ },
4494
+ ],
4495
+ "props": {
4496
+ "backgroundColor": "default",
4497
+ "colspan": 1,
4498
+ "rowspan": 1,
4499
+ "textAlignment": "left",
4500
+ "textColor": "default",
4501
+ },
4502
+ "type": "tableCell",
4503
+ },
3708
4504
  ],
3709
4505
  },
3710
4506
  {
3711
4507
  "cells": [
3712
- [
3713
- {
3714
- "styles": {},
3715
- "text": "Cell 7",
3716
- "type": "text",
3717
- },
3718
- ],
3719
- [
3720
- {
3721
- "styles": {},
3722
- "text": "Cell 8",
3723
- "type": "text",
3724
- },
3725
- ],
3726
- [
3727
- {
3728
- "styles": {},
3729
- "text": "Cell 9",
3730
- "type": "text",
3731
- },
3732
- ],
4508
+ {
4509
+ "content": [
4510
+ {
4511
+ "styles": {},
4512
+ "text": "Cell 7",
4513
+ "type": "text",
4514
+ },
4515
+ ],
4516
+ "props": {
4517
+ "backgroundColor": "default",
4518
+ "colspan": 1,
4519
+ "rowspan": 1,
4520
+ "textAlignment": "left",
4521
+ "textColor": "default",
4522
+ },
4523
+ "type": "tableCell",
4524
+ },
4525
+ {
4526
+ "content": [
4527
+ {
4528
+ "styles": {},
4529
+ "text": "Cell 8",
4530
+ "type": "text",
4531
+ },
4532
+ ],
4533
+ "props": {
4534
+ "backgroundColor": "default",
4535
+ "colspan": 1,
4536
+ "rowspan": 1,
4537
+ "textAlignment": "left",
4538
+ "textColor": "default",
4539
+ },
4540
+ "type": "tableCell",
4541
+ },
4542
+ {
4543
+ "content": [
4544
+ {
4545
+ "styles": {},
4546
+ "text": "Cell 9",
4547
+ "type": "text",
4548
+ },
4549
+ ],
4550
+ "props": {
4551
+ "backgroundColor": "default",
4552
+ "colspan": 1,
4553
+ "rowspan": 1,
4554
+ "textAlignment": "left",
4555
+ "textColor": "default",
4556
+ },
4557
+ "type": "tableCell",
4558
+ },
3733
4559
  ],
3734
4560
  },
3735
4561
  ],
@@ -4133,80 +4959,172 @@ exports[`Test updateBlock > Update no content to inline content 1`] = `
4133
4959
  undefined,
4134
4960
  undefined,
4135
4961
  ],
4962
+ "headerCols": undefined,
4963
+ "headerRows": undefined,
4136
4964
  "rows": [
4137
4965
  {
4138
4966
  "cells": [
4139
- [
4140
- {
4141
- "styles": {},
4142
- "text": "Cell 1",
4143
- "type": "text",
4144
- },
4145
- ],
4146
- [
4147
- {
4148
- "styles": {},
4149
- "text": "Cell 2",
4150
- "type": "text",
4151
- },
4152
- ],
4153
- [
4154
- {
4155
- "styles": {},
4156
- "text": "Cell 3",
4157
- "type": "text",
4158
- },
4159
- ],
4967
+ {
4968
+ "content": [
4969
+ {
4970
+ "styles": {},
4971
+ "text": "Cell 1",
4972
+ "type": "text",
4973
+ },
4974
+ ],
4975
+ "props": {
4976
+ "backgroundColor": "default",
4977
+ "colspan": 1,
4978
+ "rowspan": 1,
4979
+ "textAlignment": "left",
4980
+ "textColor": "default",
4981
+ },
4982
+ "type": "tableCell",
4983
+ },
4984
+ {
4985
+ "content": [
4986
+ {
4987
+ "styles": {},
4988
+ "text": "Cell 2",
4989
+ "type": "text",
4990
+ },
4991
+ ],
4992
+ "props": {
4993
+ "backgroundColor": "default",
4994
+ "colspan": 1,
4995
+ "rowspan": 1,
4996
+ "textAlignment": "left",
4997
+ "textColor": "default",
4998
+ },
4999
+ "type": "tableCell",
5000
+ },
5001
+ {
5002
+ "content": [
5003
+ {
5004
+ "styles": {},
5005
+ "text": "Cell 3",
5006
+ "type": "text",
5007
+ },
5008
+ ],
5009
+ "props": {
5010
+ "backgroundColor": "default",
5011
+ "colspan": 1,
5012
+ "rowspan": 1,
5013
+ "textAlignment": "left",
5014
+ "textColor": "default",
5015
+ },
5016
+ "type": "tableCell",
5017
+ },
4160
5018
  ],
4161
5019
  },
4162
5020
  {
4163
5021
  "cells": [
4164
- [
4165
- {
4166
- "styles": {},
4167
- "text": "Cell 4",
4168
- "type": "text",
4169
- },
4170
- ],
4171
- [
4172
- {
4173
- "styles": {},
4174
- "text": "Cell 5",
4175
- "type": "text",
4176
- },
4177
- ],
4178
- [
4179
- {
4180
- "styles": {},
4181
- "text": "Cell 6",
4182
- "type": "text",
4183
- },
4184
- ],
5022
+ {
5023
+ "content": [
5024
+ {
5025
+ "styles": {},
5026
+ "text": "Cell 4",
5027
+ "type": "text",
5028
+ },
5029
+ ],
5030
+ "props": {
5031
+ "backgroundColor": "default",
5032
+ "colspan": 1,
5033
+ "rowspan": 1,
5034
+ "textAlignment": "left",
5035
+ "textColor": "default",
5036
+ },
5037
+ "type": "tableCell",
5038
+ },
5039
+ {
5040
+ "content": [
5041
+ {
5042
+ "styles": {},
5043
+ "text": "Cell 5",
5044
+ "type": "text",
5045
+ },
5046
+ ],
5047
+ "props": {
5048
+ "backgroundColor": "default",
5049
+ "colspan": 1,
5050
+ "rowspan": 1,
5051
+ "textAlignment": "left",
5052
+ "textColor": "default",
5053
+ },
5054
+ "type": "tableCell",
5055
+ },
5056
+ {
5057
+ "content": [
5058
+ {
5059
+ "styles": {},
5060
+ "text": "Cell 6",
5061
+ "type": "text",
5062
+ },
5063
+ ],
5064
+ "props": {
5065
+ "backgroundColor": "default",
5066
+ "colspan": 1,
5067
+ "rowspan": 1,
5068
+ "textAlignment": "left",
5069
+ "textColor": "default",
5070
+ },
5071
+ "type": "tableCell",
5072
+ },
4185
5073
  ],
4186
5074
  },
4187
5075
  {
4188
5076
  "cells": [
4189
- [
4190
- {
4191
- "styles": {},
4192
- "text": "Cell 7",
4193
- "type": "text",
4194
- },
4195
- ],
4196
- [
4197
- {
4198
- "styles": {},
4199
- "text": "Cell 8",
4200
- "type": "text",
4201
- },
4202
- ],
4203
- [
4204
- {
4205
- "styles": {},
4206
- "text": "Cell 9",
4207
- "type": "text",
4208
- },
4209
- ],
5077
+ {
5078
+ "content": [
5079
+ {
5080
+ "styles": {},
5081
+ "text": "Cell 7",
5082
+ "type": "text",
5083
+ },
5084
+ ],
5085
+ "props": {
5086
+ "backgroundColor": "default",
5087
+ "colspan": 1,
5088
+ "rowspan": 1,
5089
+ "textAlignment": "left",
5090
+ "textColor": "default",
5091
+ },
5092
+ "type": "tableCell",
5093
+ },
5094
+ {
5095
+ "content": [
5096
+ {
5097
+ "styles": {},
5098
+ "text": "Cell 8",
5099
+ "type": "text",
5100
+ },
5101
+ ],
5102
+ "props": {
5103
+ "backgroundColor": "default",
5104
+ "colspan": 1,
5105
+ "rowspan": 1,
5106
+ "textAlignment": "left",
5107
+ "textColor": "default",
5108
+ },
5109
+ "type": "tableCell",
5110
+ },
5111
+ {
5112
+ "content": [
5113
+ {
5114
+ "styles": {},
5115
+ "text": "Cell 9",
5116
+ "type": "text",
5117
+ },
5118
+ ],
5119
+ "props": {
5120
+ "backgroundColor": "default",
5121
+ "colspan": 1,
5122
+ "rowspan": 1,
5123
+ "textAlignment": "left",
5124
+ "textColor": "default",
5125
+ },
5126
+ "type": "tableCell",
5127
+ },
4210
5128
  ],
4211
5129
  },
4212
5130
  ],
@@ -4576,80 +5494,172 @@ exports[`Test updateBlock > Update no content to table content 1`] = `
4576
5494
  undefined,
4577
5495
  undefined,
4578
5496
  ],
5497
+ "headerCols": undefined,
5498
+ "headerRows": undefined,
4579
5499
  "rows": [
4580
5500
  {
4581
5501
  "cells": [
4582
- [
4583
- {
4584
- "styles": {},
4585
- "text": "Cell 1",
4586
- "type": "text",
4587
- },
4588
- ],
4589
- [
4590
- {
4591
- "styles": {},
4592
- "text": "Cell 2",
4593
- "type": "text",
4594
- },
4595
- ],
4596
- [
4597
- {
4598
- "styles": {},
4599
- "text": "Cell 3",
4600
- "type": "text",
4601
- },
4602
- ],
5502
+ {
5503
+ "content": [
5504
+ {
5505
+ "styles": {},
5506
+ "text": "Cell 1",
5507
+ "type": "text",
5508
+ },
5509
+ ],
5510
+ "props": {
5511
+ "backgroundColor": "default",
5512
+ "colspan": 1,
5513
+ "rowspan": 1,
5514
+ "textAlignment": "left",
5515
+ "textColor": "default",
5516
+ },
5517
+ "type": "tableCell",
5518
+ },
5519
+ {
5520
+ "content": [
5521
+ {
5522
+ "styles": {},
5523
+ "text": "Cell 2",
5524
+ "type": "text",
5525
+ },
5526
+ ],
5527
+ "props": {
5528
+ "backgroundColor": "red",
5529
+ "colspan": 1,
5530
+ "rowspan": 1,
5531
+ "textAlignment": "right",
5532
+ "textColor": "red",
5533
+ },
5534
+ "type": "tableCell",
5535
+ },
5536
+ {
5537
+ "content": [
5538
+ {
5539
+ "styles": {},
5540
+ "text": "Cell 3",
5541
+ "type": "text",
5542
+ },
5543
+ ],
5544
+ "props": {
5545
+ "backgroundColor": "default",
5546
+ "colspan": 1,
5547
+ "rowspan": 1,
5548
+ "textAlignment": "left",
5549
+ "textColor": "default",
5550
+ },
5551
+ "type": "tableCell",
5552
+ },
4603
5553
  ],
4604
5554
  },
4605
5555
  {
4606
5556
  "cells": [
4607
- [
4608
- {
4609
- "styles": {},
4610
- "text": "Cell 4",
4611
- "type": "text",
4612
- },
4613
- ],
4614
- [
4615
- {
4616
- "styles": {},
4617
- "text": "Cell 5",
4618
- "type": "text",
4619
- },
4620
- ],
4621
- [
4622
- {
4623
- "styles": {},
4624
- "text": "Cell 6",
4625
- "type": "text",
4626
- },
4627
- ],
5557
+ {
5558
+ "content": [
5559
+ {
5560
+ "styles": {},
5561
+ "text": "Cell 4",
5562
+ "type": "text",
5563
+ },
5564
+ ],
5565
+ "props": {
5566
+ "backgroundColor": "default",
5567
+ "colspan": 1,
5568
+ "rowspan": 1,
5569
+ "textAlignment": "left",
5570
+ "textColor": "default",
5571
+ },
5572
+ "type": "tableCell",
5573
+ },
5574
+ {
5575
+ "content": [
5576
+ {
5577
+ "styles": {},
5578
+ "text": "Cell 5",
5579
+ "type": "text",
5580
+ },
5581
+ ],
5582
+ "props": {
5583
+ "backgroundColor": "default",
5584
+ "colspan": 1,
5585
+ "rowspan": 1,
5586
+ "textAlignment": "left",
5587
+ "textColor": "default",
5588
+ },
5589
+ "type": "tableCell",
5590
+ },
5591
+ {
5592
+ "content": [
5593
+ {
5594
+ "styles": {},
5595
+ "text": "Cell 6",
5596
+ "type": "text",
5597
+ },
5598
+ ],
5599
+ "props": {
5600
+ "backgroundColor": "default",
5601
+ "colspan": 1,
5602
+ "rowspan": 1,
5603
+ "textAlignment": "left",
5604
+ "textColor": "default",
5605
+ },
5606
+ "type": "tableCell",
5607
+ },
4628
5608
  ],
4629
5609
  },
4630
5610
  {
4631
5611
  "cells": [
4632
- [
4633
- {
4634
- "styles": {},
4635
- "text": "Cell 7",
4636
- "type": "text",
4637
- },
4638
- ],
4639
- [
4640
- {
4641
- "styles": {},
4642
- "text": "Cell 8",
4643
- "type": "text",
4644
- },
4645
- ],
4646
- [
4647
- {
4648
- "styles": {},
4649
- "text": "Cell 9",
4650
- "type": "text",
4651
- },
4652
- ],
5612
+ {
5613
+ "content": [
5614
+ {
5615
+ "styles": {},
5616
+ "text": "Cell 7",
5617
+ "type": "text",
5618
+ },
5619
+ ],
5620
+ "props": {
5621
+ "backgroundColor": "default",
5622
+ "colspan": 1,
5623
+ "rowspan": 1,
5624
+ "textAlignment": "left",
5625
+ "textColor": "default",
5626
+ },
5627
+ "type": "tableCell",
5628
+ },
5629
+ {
5630
+ "content": [
5631
+ {
5632
+ "styles": {},
5633
+ "text": "Cell 8",
5634
+ "type": "text",
5635
+ },
5636
+ ],
5637
+ "props": {
5638
+ "backgroundColor": "default",
5639
+ "colspan": 1,
5640
+ "rowspan": 1,
5641
+ "textAlignment": "left",
5642
+ "textColor": "default",
5643
+ },
5644
+ "type": "tableCell",
5645
+ },
5646
+ {
5647
+ "content": [
5648
+ {
5649
+ "styles": {},
5650
+ "text": "Cell 9",
5651
+ "type": "text",
5652
+ },
5653
+ ],
5654
+ "props": {
5655
+ "backgroundColor": "default",
5656
+ "colspan": 1,
5657
+ "rowspan": 1,
5658
+ "textAlignment": "left",
5659
+ "textColor": "default",
5660
+ },
5661
+ "type": "tableCell",
5662
+ },
4653
5663
  ],
4654
5664
  },
4655
5665
  ],
@@ -4686,80 +5696,172 @@ exports[`Test updateBlock > Update no content to table content 1`] = `
4686
5696
  undefined,
4687
5697
  undefined,
4688
5698
  ],
5699
+ "headerCols": undefined,
5700
+ "headerRows": undefined,
4689
5701
  "rows": [
4690
5702
  {
4691
- "cells": [
4692
- [
4693
- {
4694
- "styles": {},
4695
- "text": "Cell 1",
4696
- "type": "text",
4697
- },
4698
- ],
4699
- [
4700
- {
4701
- "styles": {},
4702
- "text": "Cell 2",
4703
- "type": "text",
4704
- },
4705
- ],
4706
- [
4707
- {
4708
- "styles": {},
4709
- "text": "Cell 3",
4710
- "type": "text",
4711
- },
4712
- ],
5703
+ "cells": [
5704
+ {
5705
+ "content": [
5706
+ {
5707
+ "styles": {},
5708
+ "text": "Cell 1",
5709
+ "type": "text",
5710
+ },
5711
+ ],
5712
+ "props": {
5713
+ "backgroundColor": "default",
5714
+ "colspan": 1,
5715
+ "rowspan": 1,
5716
+ "textAlignment": "left",
5717
+ "textColor": "default",
5718
+ },
5719
+ "type": "tableCell",
5720
+ },
5721
+ {
5722
+ "content": [
5723
+ {
5724
+ "styles": {},
5725
+ "text": "Cell 2",
5726
+ "type": "text",
5727
+ },
5728
+ ],
5729
+ "props": {
5730
+ "backgroundColor": "default",
5731
+ "colspan": 1,
5732
+ "rowspan": 1,
5733
+ "textAlignment": "left",
5734
+ "textColor": "default",
5735
+ },
5736
+ "type": "tableCell",
5737
+ },
5738
+ {
5739
+ "content": [
5740
+ {
5741
+ "styles": {},
5742
+ "text": "Cell 3",
5743
+ "type": "text",
5744
+ },
5745
+ ],
5746
+ "props": {
5747
+ "backgroundColor": "default",
5748
+ "colspan": 1,
5749
+ "rowspan": 1,
5750
+ "textAlignment": "left",
5751
+ "textColor": "default",
5752
+ },
5753
+ "type": "tableCell",
5754
+ },
4713
5755
  ],
4714
5756
  },
4715
5757
  {
4716
5758
  "cells": [
4717
- [
4718
- {
4719
- "styles": {},
4720
- "text": "Cell 4",
4721
- "type": "text",
4722
- },
4723
- ],
4724
- [
4725
- {
4726
- "styles": {},
4727
- "text": "Cell 5",
4728
- "type": "text",
4729
- },
4730
- ],
4731
- [
4732
- {
4733
- "styles": {},
4734
- "text": "Cell 6",
4735
- "type": "text",
4736
- },
4737
- ],
5759
+ {
5760
+ "content": [
5761
+ {
5762
+ "styles": {},
5763
+ "text": "Cell 4",
5764
+ "type": "text",
5765
+ },
5766
+ ],
5767
+ "props": {
5768
+ "backgroundColor": "default",
5769
+ "colspan": 1,
5770
+ "rowspan": 1,
5771
+ "textAlignment": "left",
5772
+ "textColor": "default",
5773
+ },
5774
+ "type": "tableCell",
5775
+ },
5776
+ {
5777
+ "content": [
5778
+ {
5779
+ "styles": {},
5780
+ "text": "Cell 5",
5781
+ "type": "text",
5782
+ },
5783
+ ],
5784
+ "props": {
5785
+ "backgroundColor": "default",
5786
+ "colspan": 1,
5787
+ "rowspan": 1,
5788
+ "textAlignment": "left",
5789
+ "textColor": "default",
5790
+ },
5791
+ "type": "tableCell",
5792
+ },
5793
+ {
5794
+ "content": [
5795
+ {
5796
+ "styles": {},
5797
+ "text": "Cell 6",
5798
+ "type": "text",
5799
+ },
5800
+ ],
5801
+ "props": {
5802
+ "backgroundColor": "default",
5803
+ "colspan": 1,
5804
+ "rowspan": 1,
5805
+ "textAlignment": "left",
5806
+ "textColor": "default",
5807
+ },
5808
+ "type": "tableCell",
5809
+ },
4738
5810
  ],
4739
5811
  },
4740
5812
  {
4741
5813
  "cells": [
4742
- [
4743
- {
4744
- "styles": {},
4745
- "text": "Cell 7",
4746
- "type": "text",
4747
- },
4748
- ],
4749
- [
4750
- {
4751
- "styles": {},
4752
- "text": "Cell 8",
4753
- "type": "text",
4754
- },
4755
- ],
4756
- [
4757
- {
4758
- "styles": {},
4759
- "text": "Cell 9",
4760
- "type": "text",
4761
- },
4762
- ],
5814
+ {
5815
+ "content": [
5816
+ {
5817
+ "styles": {},
5818
+ "text": "Cell 7",
5819
+ "type": "text",
5820
+ },
5821
+ ],
5822
+ "props": {
5823
+ "backgroundColor": "default",
5824
+ "colspan": 1,
5825
+ "rowspan": 1,
5826
+ "textAlignment": "left",
5827
+ "textColor": "default",
5828
+ },
5829
+ "type": "tableCell",
5830
+ },
5831
+ {
5832
+ "content": [
5833
+ {
5834
+ "styles": {},
5835
+ "text": "Cell 8",
5836
+ "type": "text",
5837
+ },
5838
+ ],
5839
+ "props": {
5840
+ "backgroundColor": "default",
5841
+ "colspan": 1,
5842
+ "rowspan": 1,
5843
+ "textAlignment": "left",
5844
+ "textColor": "default",
5845
+ },
5846
+ "type": "tableCell",
5847
+ },
5848
+ {
5849
+ "content": [
5850
+ {
5851
+ "styles": {},
5852
+ "text": "Cell 9",
5853
+ "type": "text",
5854
+ },
5855
+ ],
5856
+ "props": {
5857
+ "backgroundColor": "default",
5858
+ "colspan": 1,
5859
+ "rowspan": 1,
5860
+ "textAlignment": "left",
5861
+ "textColor": "default",
5862
+ },
5863
+ "type": "tableCell",
5864
+ },
4763
5865
  ],
4764
5866
  },
4765
5867
  ],
@@ -5161,80 +6263,172 @@ exports[`Test updateBlock > Update single prop 1`] = `
5161
6263
  undefined,
5162
6264
  undefined,
5163
6265
  ],
6266
+ "headerCols": undefined,
6267
+ "headerRows": undefined,
5164
6268
  "rows": [
5165
6269
  {
5166
6270
  "cells": [
5167
- [
5168
- {
5169
- "styles": {},
5170
- "text": "Cell 1",
5171
- "type": "text",
5172
- },
5173
- ],
5174
- [
5175
- {
5176
- "styles": {},
5177
- "text": "Cell 2",
5178
- "type": "text",
5179
- },
5180
- ],
5181
- [
5182
- {
5183
- "styles": {},
5184
- "text": "Cell 3",
5185
- "type": "text",
5186
- },
5187
- ],
6271
+ {
6272
+ "content": [
6273
+ {
6274
+ "styles": {},
6275
+ "text": "Cell 1",
6276
+ "type": "text",
6277
+ },
6278
+ ],
6279
+ "props": {
6280
+ "backgroundColor": "default",
6281
+ "colspan": 1,
6282
+ "rowspan": 1,
6283
+ "textAlignment": "left",
6284
+ "textColor": "default",
6285
+ },
6286
+ "type": "tableCell",
6287
+ },
6288
+ {
6289
+ "content": [
6290
+ {
6291
+ "styles": {},
6292
+ "text": "Cell 2",
6293
+ "type": "text",
6294
+ },
6295
+ ],
6296
+ "props": {
6297
+ "backgroundColor": "default",
6298
+ "colspan": 1,
6299
+ "rowspan": 1,
6300
+ "textAlignment": "left",
6301
+ "textColor": "default",
6302
+ },
6303
+ "type": "tableCell",
6304
+ },
6305
+ {
6306
+ "content": [
6307
+ {
6308
+ "styles": {},
6309
+ "text": "Cell 3",
6310
+ "type": "text",
6311
+ },
6312
+ ],
6313
+ "props": {
6314
+ "backgroundColor": "default",
6315
+ "colspan": 1,
6316
+ "rowspan": 1,
6317
+ "textAlignment": "left",
6318
+ "textColor": "default",
6319
+ },
6320
+ "type": "tableCell",
6321
+ },
5188
6322
  ],
5189
6323
  },
5190
6324
  {
5191
6325
  "cells": [
5192
- [
5193
- {
5194
- "styles": {},
5195
- "text": "Cell 4",
5196
- "type": "text",
5197
- },
5198
- ],
5199
- [
5200
- {
5201
- "styles": {},
5202
- "text": "Cell 5",
5203
- "type": "text",
5204
- },
5205
- ],
5206
- [
5207
- {
5208
- "styles": {},
5209
- "text": "Cell 6",
5210
- "type": "text",
5211
- },
5212
- ],
6326
+ {
6327
+ "content": [
6328
+ {
6329
+ "styles": {},
6330
+ "text": "Cell 4",
6331
+ "type": "text",
6332
+ },
6333
+ ],
6334
+ "props": {
6335
+ "backgroundColor": "default",
6336
+ "colspan": 1,
6337
+ "rowspan": 1,
6338
+ "textAlignment": "left",
6339
+ "textColor": "default",
6340
+ },
6341
+ "type": "tableCell",
6342
+ },
6343
+ {
6344
+ "content": [
6345
+ {
6346
+ "styles": {},
6347
+ "text": "Cell 5",
6348
+ "type": "text",
6349
+ },
6350
+ ],
6351
+ "props": {
6352
+ "backgroundColor": "default",
6353
+ "colspan": 1,
6354
+ "rowspan": 1,
6355
+ "textAlignment": "left",
6356
+ "textColor": "default",
6357
+ },
6358
+ "type": "tableCell",
6359
+ },
6360
+ {
6361
+ "content": [
6362
+ {
6363
+ "styles": {},
6364
+ "text": "Cell 6",
6365
+ "type": "text",
6366
+ },
6367
+ ],
6368
+ "props": {
6369
+ "backgroundColor": "default",
6370
+ "colspan": 1,
6371
+ "rowspan": 1,
6372
+ "textAlignment": "left",
6373
+ "textColor": "default",
6374
+ },
6375
+ "type": "tableCell",
6376
+ },
5213
6377
  ],
5214
6378
  },
5215
6379
  {
5216
6380
  "cells": [
5217
- [
5218
- {
5219
- "styles": {},
5220
- "text": "Cell 7",
5221
- "type": "text",
5222
- },
5223
- ],
5224
- [
5225
- {
5226
- "styles": {},
5227
- "text": "Cell 8",
5228
- "type": "text",
5229
- },
5230
- ],
5231
- [
5232
- {
5233
- "styles": {},
5234
- "text": "Cell 9",
5235
- "type": "text",
5236
- },
5237
- ],
6381
+ {
6382
+ "content": [
6383
+ {
6384
+ "styles": {},
6385
+ "text": "Cell 7",
6386
+ "type": "text",
6387
+ },
6388
+ ],
6389
+ "props": {
6390
+ "backgroundColor": "default",
6391
+ "colspan": 1,
6392
+ "rowspan": 1,
6393
+ "textAlignment": "left",
6394
+ "textColor": "default",
6395
+ },
6396
+ "type": "tableCell",
6397
+ },
6398
+ {
6399
+ "content": [
6400
+ {
6401
+ "styles": {},
6402
+ "text": "Cell 8",
6403
+ "type": "text",
6404
+ },
6405
+ ],
6406
+ "props": {
6407
+ "backgroundColor": "default",
6408
+ "colspan": 1,
6409
+ "rowspan": 1,
6410
+ "textAlignment": "left",
6411
+ "textColor": "default",
6412
+ },
6413
+ "type": "tableCell",
6414
+ },
6415
+ {
6416
+ "content": [
6417
+ {
6418
+ "styles": {},
6419
+ "text": "Cell 9",
6420
+ "type": "text",
6421
+ },
6422
+ ],
6423
+ "props": {
6424
+ "backgroundColor": "default",
6425
+ "colspan": 1,
6426
+ "rowspan": 1,
6427
+ "textAlignment": "left",
6428
+ "textColor": "default",
6429
+ },
6430
+ "type": "tableCell",
6431
+ },
5238
6432
  ],
5239
6433
  },
5240
6434
  ],
@@ -6825,80 +8019,172 @@ exports[`Test updateBlock > Update type 1`] = `
6825
8019
  undefined,
6826
8020
  undefined,
6827
8021
  ],
8022
+ "headerCols": undefined,
8023
+ "headerRows": undefined,
6828
8024
  "rows": [
6829
8025
  {
6830
8026
  "cells": [
6831
- [
6832
- {
6833
- "styles": {},
6834
- "text": "Cell 1",
6835
- "type": "text",
6836
- },
6837
- ],
6838
- [
6839
- {
6840
- "styles": {},
6841
- "text": "Cell 2",
6842
- "type": "text",
6843
- },
6844
- ],
6845
- [
6846
- {
6847
- "styles": {},
6848
- "text": "Cell 3",
6849
- "type": "text",
6850
- },
6851
- ],
8027
+ {
8028
+ "content": [
8029
+ {
8030
+ "styles": {},
8031
+ "text": "Cell 1",
8032
+ "type": "text",
8033
+ },
8034
+ ],
8035
+ "props": {
8036
+ "backgroundColor": "default",
8037
+ "colspan": 1,
8038
+ "rowspan": 1,
8039
+ "textAlignment": "left",
8040
+ "textColor": "default",
8041
+ },
8042
+ "type": "tableCell",
8043
+ },
8044
+ {
8045
+ "content": [
8046
+ {
8047
+ "styles": {},
8048
+ "text": "Cell 2",
8049
+ "type": "text",
8050
+ },
8051
+ ],
8052
+ "props": {
8053
+ "backgroundColor": "default",
8054
+ "colspan": 1,
8055
+ "rowspan": 1,
8056
+ "textAlignment": "left",
8057
+ "textColor": "default",
8058
+ },
8059
+ "type": "tableCell",
8060
+ },
8061
+ {
8062
+ "content": [
8063
+ {
8064
+ "styles": {},
8065
+ "text": "Cell 3",
8066
+ "type": "text",
8067
+ },
8068
+ ],
8069
+ "props": {
8070
+ "backgroundColor": "default",
8071
+ "colspan": 1,
8072
+ "rowspan": 1,
8073
+ "textAlignment": "left",
8074
+ "textColor": "default",
8075
+ },
8076
+ "type": "tableCell",
8077
+ },
6852
8078
  ],
6853
8079
  },
6854
8080
  {
6855
8081
  "cells": [
6856
- [
6857
- {
6858
- "styles": {},
6859
- "text": "Cell 4",
6860
- "type": "text",
6861
- },
6862
- ],
6863
- [
6864
- {
6865
- "styles": {},
6866
- "text": "Cell 5",
6867
- "type": "text",
6868
- },
6869
- ],
6870
- [
6871
- {
6872
- "styles": {},
6873
- "text": "Cell 6",
6874
- "type": "text",
6875
- },
6876
- ],
8082
+ {
8083
+ "content": [
8084
+ {
8085
+ "styles": {},
8086
+ "text": "Cell 4",
8087
+ "type": "text",
8088
+ },
8089
+ ],
8090
+ "props": {
8091
+ "backgroundColor": "default",
8092
+ "colspan": 1,
8093
+ "rowspan": 1,
8094
+ "textAlignment": "left",
8095
+ "textColor": "default",
8096
+ },
8097
+ "type": "tableCell",
8098
+ },
8099
+ {
8100
+ "content": [
8101
+ {
8102
+ "styles": {},
8103
+ "text": "Cell 5",
8104
+ "type": "text",
8105
+ },
8106
+ ],
8107
+ "props": {
8108
+ "backgroundColor": "default",
8109
+ "colspan": 1,
8110
+ "rowspan": 1,
8111
+ "textAlignment": "left",
8112
+ "textColor": "default",
8113
+ },
8114
+ "type": "tableCell",
8115
+ },
8116
+ {
8117
+ "content": [
8118
+ {
8119
+ "styles": {},
8120
+ "text": "Cell 6",
8121
+ "type": "text",
8122
+ },
8123
+ ],
8124
+ "props": {
8125
+ "backgroundColor": "default",
8126
+ "colspan": 1,
8127
+ "rowspan": 1,
8128
+ "textAlignment": "left",
8129
+ "textColor": "default",
8130
+ },
8131
+ "type": "tableCell",
8132
+ },
6877
8133
  ],
6878
8134
  },
6879
8135
  {
6880
8136
  "cells": [
6881
- [
6882
- {
6883
- "styles": {},
6884
- "text": "Cell 7",
6885
- "type": "text",
6886
- },
6887
- ],
6888
- [
6889
- {
6890
- "styles": {},
6891
- "text": "Cell 8",
6892
- "type": "text",
6893
- },
6894
- ],
6895
- [
6896
- {
6897
- "styles": {},
6898
- "text": "Cell 9",
6899
- "type": "text",
6900
- },
6901
- ],
8137
+ {
8138
+ "content": [
8139
+ {
8140
+ "styles": {},
8141
+ "text": "Cell 7",
8142
+ "type": "text",
8143
+ },
8144
+ ],
8145
+ "props": {
8146
+ "backgroundColor": "default",
8147
+ "colspan": 1,
8148
+ "rowspan": 1,
8149
+ "textAlignment": "left",
8150
+ "textColor": "default",
8151
+ },
8152
+ "type": "tableCell",
8153
+ },
8154
+ {
8155
+ "content": [
8156
+ {
8157
+ "styles": {},
8158
+ "text": "Cell 8",
8159
+ "type": "text",
8160
+ },
8161
+ ],
8162
+ "props": {
8163
+ "backgroundColor": "default",
8164
+ "colspan": 1,
8165
+ "rowspan": 1,
8166
+ "textAlignment": "left",
8167
+ "textColor": "default",
8168
+ },
8169
+ "type": "tableCell",
8170
+ },
8171
+ {
8172
+ "content": [
8173
+ {
8174
+ "styles": {},
8175
+ "text": "Cell 9",
8176
+ "type": "text",
8177
+ },
8178
+ ],
8179
+ "props": {
8180
+ "backgroundColor": "default",
8181
+ "colspan": 1,
8182
+ "rowspan": 1,
8183
+ "textAlignment": "left",
8184
+ "textColor": "default",
8185
+ },
8186
+ "type": "tableCell",
8187
+ },
6902
8188
  ],
6903
8189
  },
6904
8190
  ],
@@ -7299,80 +8585,172 @@ exports[`Test updateBlock > Update with plain content 1`] = `
7299
8585
  undefined,
7300
8586
  undefined,
7301
8587
  ],
8588
+ "headerCols": undefined,
8589
+ "headerRows": undefined,
7302
8590
  "rows": [
7303
8591
  {
7304
8592
  "cells": [
7305
- [
7306
- {
7307
- "styles": {},
7308
- "text": "Cell 1",
7309
- "type": "text",
7310
- },
7311
- ],
7312
- [
7313
- {
7314
- "styles": {},
7315
- "text": "Cell 2",
7316
- "type": "text",
7317
- },
7318
- ],
7319
- [
7320
- {
7321
- "styles": {},
7322
- "text": "Cell 3",
7323
- "type": "text",
7324
- },
7325
- ],
8593
+ {
8594
+ "content": [
8595
+ {
8596
+ "styles": {},
8597
+ "text": "Cell 1",
8598
+ "type": "text",
8599
+ },
8600
+ ],
8601
+ "props": {
8602
+ "backgroundColor": "default",
8603
+ "colspan": 1,
8604
+ "rowspan": 1,
8605
+ "textAlignment": "left",
8606
+ "textColor": "default",
8607
+ },
8608
+ "type": "tableCell",
8609
+ },
8610
+ {
8611
+ "content": [
8612
+ {
8613
+ "styles": {},
8614
+ "text": "Cell 2",
8615
+ "type": "text",
8616
+ },
8617
+ ],
8618
+ "props": {
8619
+ "backgroundColor": "default",
8620
+ "colspan": 1,
8621
+ "rowspan": 1,
8622
+ "textAlignment": "left",
8623
+ "textColor": "default",
8624
+ },
8625
+ "type": "tableCell",
8626
+ },
8627
+ {
8628
+ "content": [
8629
+ {
8630
+ "styles": {},
8631
+ "text": "Cell 3",
8632
+ "type": "text",
8633
+ },
8634
+ ],
8635
+ "props": {
8636
+ "backgroundColor": "default",
8637
+ "colspan": 1,
8638
+ "rowspan": 1,
8639
+ "textAlignment": "left",
8640
+ "textColor": "default",
8641
+ },
8642
+ "type": "tableCell",
8643
+ },
7326
8644
  ],
7327
8645
  },
7328
8646
  {
7329
8647
  "cells": [
7330
- [
7331
- {
7332
- "styles": {},
7333
- "text": "Cell 4",
7334
- "type": "text",
7335
- },
7336
- ],
7337
- [
7338
- {
7339
- "styles": {},
7340
- "text": "Cell 5",
7341
- "type": "text",
7342
- },
7343
- ],
7344
- [
7345
- {
7346
- "styles": {},
7347
- "text": "Cell 6",
7348
- "type": "text",
7349
- },
7350
- ],
8648
+ {
8649
+ "content": [
8650
+ {
8651
+ "styles": {},
8652
+ "text": "Cell 4",
8653
+ "type": "text",
8654
+ },
8655
+ ],
8656
+ "props": {
8657
+ "backgroundColor": "default",
8658
+ "colspan": 1,
8659
+ "rowspan": 1,
8660
+ "textAlignment": "left",
8661
+ "textColor": "default",
8662
+ },
8663
+ "type": "tableCell",
8664
+ },
8665
+ {
8666
+ "content": [
8667
+ {
8668
+ "styles": {},
8669
+ "text": "Cell 5",
8670
+ "type": "text",
8671
+ },
8672
+ ],
8673
+ "props": {
8674
+ "backgroundColor": "default",
8675
+ "colspan": 1,
8676
+ "rowspan": 1,
8677
+ "textAlignment": "left",
8678
+ "textColor": "default",
8679
+ },
8680
+ "type": "tableCell",
8681
+ },
8682
+ {
8683
+ "content": [
8684
+ {
8685
+ "styles": {},
8686
+ "text": "Cell 6",
8687
+ "type": "text",
8688
+ },
8689
+ ],
8690
+ "props": {
8691
+ "backgroundColor": "default",
8692
+ "colspan": 1,
8693
+ "rowspan": 1,
8694
+ "textAlignment": "left",
8695
+ "textColor": "default",
8696
+ },
8697
+ "type": "tableCell",
8698
+ },
7351
8699
  ],
7352
8700
  },
7353
8701
  {
7354
8702
  "cells": [
7355
- [
7356
- {
7357
- "styles": {},
7358
- "text": "Cell 7",
7359
- "type": "text",
7360
- },
7361
- ],
7362
- [
7363
- {
7364
- "styles": {},
7365
- "text": "Cell 8",
7366
- "type": "text",
7367
- },
7368
- ],
7369
- [
7370
- {
7371
- "styles": {},
7372
- "text": "Cell 9",
7373
- "type": "text",
7374
- },
7375
- ],
8703
+ {
8704
+ "content": [
8705
+ {
8706
+ "styles": {},
8707
+ "text": "Cell 7",
8708
+ "type": "text",
8709
+ },
8710
+ ],
8711
+ "props": {
8712
+ "backgroundColor": "default",
8713
+ "colspan": 1,
8714
+ "rowspan": 1,
8715
+ "textAlignment": "left",
8716
+ "textColor": "default",
8717
+ },
8718
+ "type": "tableCell",
8719
+ },
8720
+ {
8721
+ "content": [
8722
+ {
8723
+ "styles": {},
8724
+ "text": "Cell 8",
8725
+ "type": "text",
8726
+ },
8727
+ ],
8728
+ "props": {
8729
+ "backgroundColor": "default",
8730
+ "colspan": 1,
8731
+ "rowspan": 1,
8732
+ "textAlignment": "left",
8733
+ "textColor": "default",
8734
+ },
8735
+ "type": "tableCell",
8736
+ },
8737
+ {
8738
+ "content": [
8739
+ {
8740
+ "styles": {},
8741
+ "text": "Cell 9",
8742
+ "type": "text",
8743
+ },
8744
+ ],
8745
+ "props": {
8746
+ "backgroundColor": "default",
8747
+ "colspan": 1,
8748
+ "rowspan": 1,
8749
+ "textAlignment": "left",
8750
+ "textColor": "default",
8751
+ },
8752
+ "type": "tableCell",
8753
+ },
7376
8754
  ],
7377
8755
  },
7378
8756
  ],
@@ -7760,80 +9138,172 @@ exports[`Test updateBlock > Update with styled content 1`] = `
7760
9138
  undefined,
7761
9139
  undefined,
7762
9140
  ],
9141
+ "headerCols": undefined,
9142
+ "headerRows": undefined,
7763
9143
  "rows": [
7764
9144
  {
7765
9145
  "cells": [
7766
- [
7767
- {
7768
- "styles": {},
7769
- "text": "Cell 1",
7770
- "type": "text",
7771
- },
7772
- ],
7773
- [
7774
- {
7775
- "styles": {},
7776
- "text": "Cell 2",
7777
- "type": "text",
7778
- },
7779
- ],
7780
- [
7781
- {
7782
- "styles": {},
7783
- "text": "Cell 3",
7784
- "type": "text",
7785
- },
7786
- ],
9146
+ {
9147
+ "content": [
9148
+ {
9149
+ "styles": {},
9150
+ "text": "Cell 1",
9151
+ "type": "text",
9152
+ },
9153
+ ],
9154
+ "props": {
9155
+ "backgroundColor": "default",
9156
+ "colspan": 1,
9157
+ "rowspan": 1,
9158
+ "textAlignment": "left",
9159
+ "textColor": "default",
9160
+ },
9161
+ "type": "tableCell",
9162
+ },
9163
+ {
9164
+ "content": [
9165
+ {
9166
+ "styles": {},
9167
+ "text": "Cell 2",
9168
+ "type": "text",
9169
+ },
9170
+ ],
9171
+ "props": {
9172
+ "backgroundColor": "default",
9173
+ "colspan": 1,
9174
+ "rowspan": 1,
9175
+ "textAlignment": "left",
9176
+ "textColor": "default",
9177
+ },
9178
+ "type": "tableCell",
9179
+ },
9180
+ {
9181
+ "content": [
9182
+ {
9183
+ "styles": {},
9184
+ "text": "Cell 3",
9185
+ "type": "text",
9186
+ },
9187
+ ],
9188
+ "props": {
9189
+ "backgroundColor": "default",
9190
+ "colspan": 1,
9191
+ "rowspan": 1,
9192
+ "textAlignment": "left",
9193
+ "textColor": "default",
9194
+ },
9195
+ "type": "tableCell",
9196
+ },
7787
9197
  ],
7788
9198
  },
7789
9199
  {
7790
9200
  "cells": [
7791
- [
7792
- {
7793
- "styles": {},
7794
- "text": "Cell 4",
7795
- "type": "text",
7796
- },
7797
- ],
7798
- [
7799
- {
7800
- "styles": {},
7801
- "text": "Cell 5",
7802
- "type": "text",
7803
- },
7804
- ],
7805
- [
7806
- {
7807
- "styles": {},
7808
- "text": "Cell 6",
7809
- "type": "text",
7810
- },
7811
- ],
9201
+ {
9202
+ "content": [
9203
+ {
9204
+ "styles": {},
9205
+ "text": "Cell 4",
9206
+ "type": "text",
9207
+ },
9208
+ ],
9209
+ "props": {
9210
+ "backgroundColor": "default",
9211
+ "colspan": 1,
9212
+ "rowspan": 1,
9213
+ "textAlignment": "left",
9214
+ "textColor": "default",
9215
+ },
9216
+ "type": "tableCell",
9217
+ },
9218
+ {
9219
+ "content": [
9220
+ {
9221
+ "styles": {},
9222
+ "text": "Cell 5",
9223
+ "type": "text",
9224
+ },
9225
+ ],
9226
+ "props": {
9227
+ "backgroundColor": "default",
9228
+ "colspan": 1,
9229
+ "rowspan": 1,
9230
+ "textAlignment": "left",
9231
+ "textColor": "default",
9232
+ },
9233
+ "type": "tableCell",
9234
+ },
9235
+ {
9236
+ "content": [
9237
+ {
9238
+ "styles": {},
9239
+ "text": "Cell 6",
9240
+ "type": "text",
9241
+ },
9242
+ ],
9243
+ "props": {
9244
+ "backgroundColor": "default",
9245
+ "colspan": 1,
9246
+ "rowspan": 1,
9247
+ "textAlignment": "left",
9248
+ "textColor": "default",
9249
+ },
9250
+ "type": "tableCell",
9251
+ },
7812
9252
  ],
7813
9253
  },
7814
9254
  {
7815
9255
  "cells": [
7816
- [
7817
- {
7818
- "styles": {},
7819
- "text": "Cell 7",
7820
- "type": "text",
7821
- },
7822
- ],
7823
- [
7824
- {
7825
- "styles": {},
7826
- "text": "Cell 8",
7827
- "type": "text",
7828
- },
7829
- ],
7830
- [
7831
- {
7832
- "styles": {},
7833
- "text": "Cell 9",
7834
- "type": "text",
7835
- },
7836
- ],
9256
+ {
9257
+ "content": [
9258
+ {
9259
+ "styles": {},
9260
+ "text": "Cell 7",
9261
+ "type": "text",
9262
+ },
9263
+ ],
9264
+ "props": {
9265
+ "backgroundColor": "default",
9266
+ "colspan": 1,
9267
+ "rowspan": 1,
9268
+ "textAlignment": "left",
9269
+ "textColor": "default",
9270
+ },
9271
+ "type": "tableCell",
9272
+ },
9273
+ {
9274
+ "content": [
9275
+ {
9276
+ "styles": {},
9277
+ "text": "Cell 8",
9278
+ "type": "text",
9279
+ },
9280
+ ],
9281
+ "props": {
9282
+ "backgroundColor": "default",
9283
+ "colspan": 1,
9284
+ "rowspan": 1,
9285
+ "textAlignment": "left",
9286
+ "textColor": "default",
9287
+ },
9288
+ "type": "tableCell",
9289
+ },
9290
+ {
9291
+ "content": [
9292
+ {
9293
+ "styles": {},
9294
+ "text": "Cell 9",
9295
+ "type": "text",
9296
+ },
9297
+ ],
9298
+ "props": {
9299
+ "backgroundColor": "default",
9300
+ "colspan": 1,
9301
+ "rowspan": 1,
9302
+ "textAlignment": "left",
9303
+ "textColor": "default",
9304
+ },
9305
+ "type": "tableCell",
9306
+ },
7837
9307
  ],
7838
9308
  },
7839
9309
  ],