@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
@@ -227,80 +227,172 @@ exports[`Test removeBlocks > Remove all child blocks 1`] = `
227
227
  undefined,
228
228
  undefined,
229
229
  ],
230
+ "headerCols": undefined,
231
+ "headerRows": undefined,
230
232
  "rows": [
231
233
  {
232
234
  "cells": [
233
- [
234
- {
235
- "styles": {},
236
- "text": "Cell 1",
237
- "type": "text",
235
+ {
236
+ "content": [
237
+ {
238
+ "styles": {},
239
+ "text": "Cell 1",
240
+ "type": "text",
241
+ },
242
+ ],
243
+ "props": {
244
+ "backgroundColor": "default",
245
+ "colspan": 1,
246
+ "rowspan": 1,
247
+ "textAlignment": "left",
248
+ "textColor": "default",
238
249
  },
239
- ],
240
- [
241
- {
242
- "styles": {},
243
- "text": "Cell 2",
244
- "type": "text",
250
+ "type": "tableCell",
251
+ },
252
+ {
253
+ "content": [
254
+ {
255
+ "styles": {},
256
+ "text": "Cell 2",
257
+ "type": "text",
258
+ },
259
+ ],
260
+ "props": {
261
+ "backgroundColor": "default",
262
+ "colspan": 1,
263
+ "rowspan": 1,
264
+ "textAlignment": "left",
265
+ "textColor": "default",
245
266
  },
246
- ],
247
- [
248
- {
249
- "styles": {},
250
- "text": "Cell 3",
251
- "type": "text",
267
+ "type": "tableCell",
268
+ },
269
+ {
270
+ "content": [
271
+ {
272
+ "styles": {},
273
+ "text": "Cell 3",
274
+ "type": "text",
275
+ },
276
+ ],
277
+ "props": {
278
+ "backgroundColor": "default",
279
+ "colspan": 1,
280
+ "rowspan": 1,
281
+ "textAlignment": "left",
282
+ "textColor": "default",
252
283
  },
253
- ],
284
+ "type": "tableCell",
285
+ },
254
286
  ],
255
287
  },
256
288
  {
257
289
  "cells": [
258
- [
259
- {
260
- "styles": {},
261
- "text": "Cell 4",
262
- "type": "text",
290
+ {
291
+ "content": [
292
+ {
293
+ "styles": {},
294
+ "text": "Cell 4",
295
+ "type": "text",
296
+ },
297
+ ],
298
+ "props": {
299
+ "backgroundColor": "default",
300
+ "colspan": 1,
301
+ "rowspan": 1,
302
+ "textAlignment": "left",
303
+ "textColor": "default",
263
304
  },
264
- ],
265
- [
266
- {
267
- "styles": {},
268
- "text": "Cell 5",
269
- "type": "text",
305
+ "type": "tableCell",
306
+ },
307
+ {
308
+ "content": [
309
+ {
310
+ "styles": {},
311
+ "text": "Cell 5",
312
+ "type": "text",
313
+ },
314
+ ],
315
+ "props": {
316
+ "backgroundColor": "default",
317
+ "colspan": 1,
318
+ "rowspan": 1,
319
+ "textAlignment": "left",
320
+ "textColor": "default",
270
321
  },
271
- ],
272
- [
273
- {
274
- "styles": {},
275
- "text": "Cell 6",
276
- "type": "text",
322
+ "type": "tableCell",
323
+ },
324
+ {
325
+ "content": [
326
+ {
327
+ "styles": {},
328
+ "text": "Cell 6",
329
+ "type": "text",
330
+ },
331
+ ],
332
+ "props": {
333
+ "backgroundColor": "default",
334
+ "colspan": 1,
335
+ "rowspan": 1,
336
+ "textAlignment": "left",
337
+ "textColor": "default",
277
338
  },
278
- ],
339
+ "type": "tableCell",
340
+ },
279
341
  ],
280
342
  },
281
343
  {
282
344
  "cells": [
283
- [
284
- {
285
- "styles": {},
286
- "text": "Cell 7",
287
- "type": "text",
345
+ {
346
+ "content": [
347
+ {
348
+ "styles": {},
349
+ "text": "Cell 7",
350
+ "type": "text",
351
+ },
352
+ ],
353
+ "props": {
354
+ "backgroundColor": "default",
355
+ "colspan": 1,
356
+ "rowspan": 1,
357
+ "textAlignment": "left",
358
+ "textColor": "default",
288
359
  },
289
- ],
290
- [
291
- {
292
- "styles": {},
293
- "text": "Cell 8",
294
- "type": "text",
360
+ "type": "tableCell",
361
+ },
362
+ {
363
+ "content": [
364
+ {
365
+ "styles": {},
366
+ "text": "Cell 8",
367
+ "type": "text",
368
+ },
369
+ ],
370
+ "props": {
371
+ "backgroundColor": "default",
372
+ "colspan": 1,
373
+ "rowspan": 1,
374
+ "textAlignment": "left",
375
+ "textColor": "default",
295
376
  },
296
- ],
297
- [
298
- {
299
- "styles": {},
300
- "text": "Cell 9",
301
- "type": "text",
377
+ "type": "tableCell",
378
+ },
379
+ {
380
+ "content": [
381
+ {
382
+ "styles": {},
383
+ "text": "Cell 9",
384
+ "type": "text",
385
+ },
386
+ ],
387
+ "props": {
388
+ "backgroundColor": "default",
389
+ "colspan": 1,
390
+ "rowspan": 1,
391
+ "textAlignment": "left",
392
+ "textColor": "default",
302
393
  },
303
- ],
394
+ "type": "tableCell",
395
+ },
304
396
  ],
305
397
  },
306
398
  ],
@@ -615,80 +707,172 @@ exports[`Test removeBlocks > Remove multiple consecutive blocks 1`] = `
615
707
  undefined,
616
708
  undefined,
617
709
  ],
710
+ "headerCols": undefined,
711
+ "headerRows": undefined,
618
712
  "rows": [
619
713
  {
620
714
  "cells": [
621
- [
622
- {
623
- "styles": {},
624
- "text": "Cell 1",
625
- "type": "text",
715
+ {
716
+ "content": [
717
+ {
718
+ "styles": {},
719
+ "text": "Cell 1",
720
+ "type": "text",
721
+ },
722
+ ],
723
+ "props": {
724
+ "backgroundColor": "default",
725
+ "colspan": 1,
726
+ "rowspan": 1,
727
+ "textAlignment": "left",
728
+ "textColor": "default",
626
729
  },
627
- ],
628
- [
629
- {
630
- "styles": {},
631
- "text": "Cell 2",
632
- "type": "text",
730
+ "type": "tableCell",
731
+ },
732
+ {
733
+ "content": [
734
+ {
735
+ "styles": {},
736
+ "text": "Cell 2",
737
+ "type": "text",
738
+ },
739
+ ],
740
+ "props": {
741
+ "backgroundColor": "default",
742
+ "colspan": 1,
743
+ "rowspan": 1,
744
+ "textAlignment": "left",
745
+ "textColor": "default",
633
746
  },
634
- ],
635
- [
636
- {
637
- "styles": {},
638
- "text": "Cell 3",
639
- "type": "text",
747
+ "type": "tableCell",
748
+ },
749
+ {
750
+ "content": [
751
+ {
752
+ "styles": {},
753
+ "text": "Cell 3",
754
+ "type": "text",
755
+ },
756
+ ],
757
+ "props": {
758
+ "backgroundColor": "default",
759
+ "colspan": 1,
760
+ "rowspan": 1,
761
+ "textAlignment": "left",
762
+ "textColor": "default",
640
763
  },
641
- ],
764
+ "type": "tableCell",
765
+ },
642
766
  ],
643
767
  },
644
768
  {
645
769
  "cells": [
646
- [
647
- {
648
- "styles": {},
649
- "text": "Cell 4",
650
- "type": "text",
770
+ {
771
+ "content": [
772
+ {
773
+ "styles": {},
774
+ "text": "Cell 4",
775
+ "type": "text",
776
+ },
777
+ ],
778
+ "props": {
779
+ "backgroundColor": "default",
780
+ "colspan": 1,
781
+ "rowspan": 1,
782
+ "textAlignment": "left",
783
+ "textColor": "default",
651
784
  },
652
- ],
653
- [
654
- {
655
- "styles": {},
656
- "text": "Cell 5",
657
- "type": "text",
785
+ "type": "tableCell",
786
+ },
787
+ {
788
+ "content": [
789
+ {
790
+ "styles": {},
791
+ "text": "Cell 5",
792
+ "type": "text",
793
+ },
794
+ ],
795
+ "props": {
796
+ "backgroundColor": "default",
797
+ "colspan": 1,
798
+ "rowspan": 1,
799
+ "textAlignment": "left",
800
+ "textColor": "default",
658
801
  },
659
- ],
660
- [
661
- {
662
- "styles": {},
663
- "text": "Cell 6",
664
- "type": "text",
802
+ "type": "tableCell",
803
+ },
804
+ {
805
+ "content": [
806
+ {
807
+ "styles": {},
808
+ "text": "Cell 6",
809
+ "type": "text",
810
+ },
811
+ ],
812
+ "props": {
813
+ "backgroundColor": "default",
814
+ "colspan": 1,
815
+ "rowspan": 1,
816
+ "textAlignment": "left",
817
+ "textColor": "default",
665
818
  },
666
- ],
819
+ "type": "tableCell",
820
+ },
667
821
  ],
668
822
  },
669
823
  {
670
824
  "cells": [
671
- [
672
- {
673
- "styles": {},
674
- "text": "Cell 7",
675
- "type": "text",
825
+ {
826
+ "content": [
827
+ {
828
+ "styles": {},
829
+ "text": "Cell 7",
830
+ "type": "text",
831
+ },
832
+ ],
833
+ "props": {
834
+ "backgroundColor": "default",
835
+ "colspan": 1,
836
+ "rowspan": 1,
837
+ "textAlignment": "left",
838
+ "textColor": "default",
676
839
  },
677
- ],
678
- [
679
- {
680
- "styles": {},
681
- "text": "Cell 8",
682
- "type": "text",
840
+ "type": "tableCell",
841
+ },
842
+ {
843
+ "content": [
844
+ {
845
+ "styles": {},
846
+ "text": "Cell 8",
847
+ "type": "text",
848
+ },
849
+ ],
850
+ "props": {
851
+ "backgroundColor": "default",
852
+ "colspan": 1,
853
+ "rowspan": 1,
854
+ "textAlignment": "left",
855
+ "textColor": "default",
683
856
  },
684
- ],
685
- [
686
- {
687
- "styles": {},
688
- "text": "Cell 9",
689
- "type": "text",
857
+ "type": "tableCell",
858
+ },
859
+ {
860
+ "content": [
861
+ {
862
+ "styles": {},
863
+ "text": "Cell 9",
864
+ "type": "text",
865
+ },
866
+ ],
867
+ "props": {
868
+ "backgroundColor": "default",
869
+ "colspan": 1,
870
+ "rowspan": 1,
871
+ "textAlignment": "left",
872
+ "textColor": "default",
690
873
  },
691
- ],
874
+ "type": "tableCell",
875
+ },
692
876
  ],
693
877
  },
694
878
  ],
@@ -1370,80 +1554,172 @@ exports[`Test removeBlocks > Remove single block 1`] = `
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
  ],