@blocknote/core 0.24.1 → 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 (149) hide show
  1. package/dist/blocknote.cjs +12 -0
  2. package/dist/blocknote.cjs.map +1 -0
  3. package/dist/blocknote.js +5028 -3444
  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/fromClipboard/handleFileInsertion.ts +36 -14
  33. package/src/api/clipboard/toClipboard/copyExtension.ts +2 -3
  34. package/src/api/exporters/html/__snapshots__/table/headerCols/external.html +1 -0
  35. package/src/api/exporters/html/__snapshots__/table/headerCols/internal.html +1 -0
  36. package/src/api/exporters/html/__snapshots__/table/headerRows/external.html +1 -0
  37. package/src/api/exporters/html/__snapshots__/table/headerRows/internal.html +1 -0
  38. package/src/api/exporters/html/__snapshots__/table/headersRows/external.html +1 -0
  39. package/src/api/exporters/html/__snapshots__/table/headersRows/internal.html +1 -0
  40. package/src/api/exporters/html/__snapshots__/table/mixedCellColors/external.html +1 -0
  41. package/src/api/exporters/html/__snapshots__/table/mixedCellColors/internal.html +1 -0
  42. package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/external.html +1 -0
  43. package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/internal.html +1 -0
  44. package/src/api/exporters/markdown/__snapshots__/table/headerCols/markdown.md +4 -0
  45. package/src/api/exporters/markdown/__snapshots__/table/headerRows/markdown.md +4 -0
  46. package/src/api/exporters/markdown/__snapshots__/table/mixedCellColors/markdown.md +5 -0
  47. package/src/api/exporters/markdown/__snapshots__/table/mixedRowspansAndColspans/markdown.md +5 -0
  48. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +985 -20
  49. package/src/api/nodeConversions/blockToNode.ts +63 -20
  50. package/src/api/nodeConversions/nodeToBlock.ts +75 -13
  51. package/src/api/parsers/html/__snapshots__/parse-notion-html.json +145 -54
  52. package/src/api/testUtil/cases/defaultSchema.ts +782 -9
  53. package/src/api/testUtil/partialBlockTestUtil.ts +39 -4
  54. package/src/blocks/TableBlockContent/TableBlockContent.ts +11 -5
  55. package/src/blocks/defaultBlockTypeGuards.ts +8 -0
  56. package/src/comments/index.ts +9 -0
  57. package/src/comments/models/User.ts +8 -0
  58. package/src/comments/threadstore/DefaultThreadStoreAuth.ts +106 -0
  59. package/src/comments/threadstore/ThreadStore.ts +134 -0
  60. package/src/comments/threadstore/ThreadStoreAuth.ts +13 -0
  61. package/src/comments/threadstore/TipTapThreadStore.ts +292 -0
  62. package/src/comments/threadstore/yjs/RESTYjsThreadStore.ts +144 -0
  63. package/src/comments/threadstore/yjs/YjsThreadStore.test.ts +294 -0
  64. package/src/comments/threadstore/yjs/YjsThreadStore.ts +340 -0
  65. package/src/comments/threadstore/yjs/YjsThreadStoreBase.ts +48 -0
  66. package/src/comments/threadstore/yjs/yjsHelpers.ts +121 -0
  67. package/src/comments/types.ts +117 -0
  68. package/src/editor/Block.css +16 -8
  69. package/src/editor/BlockNoteEditor.ts +269 -92
  70. package/src/editor/BlockNoteExtensions.ts +24 -1
  71. package/src/editor/BlockNoteTipTapEditor.ts +5 -1
  72. package/src/editor/editor.css +17 -0
  73. package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +1 -1
  74. package/src/extensions/Comments/CommentMark.ts +61 -0
  75. package/src/extensions/Comments/CommentsPlugin.ts +301 -0
  76. package/src/extensions/Comments/userstore/UserStore.ts +72 -0
  77. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +16 -10
  78. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +3 -3
  79. package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +52 -0
  80. package/src/extensions/SideMenu/SideMenuPlugin.ts +22 -9
  81. package/src/extensions/TableHandles/TableHandlesPlugin.ts +409 -57
  82. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +2 -0
  83. package/src/extensions/TextColor/TextColorExtension.ts +1 -1
  84. package/src/extensions/UniqueID/UniqueID.ts +8 -3
  85. package/src/i18n/locales/ar.ts +23 -0
  86. package/src/i18n/locales/de.ts +15 -0
  87. package/src/i18n/locales/en.ts +25 -1
  88. package/src/i18n/locales/es.ts +16 -1
  89. package/src/i18n/locales/fr.ts +23 -0
  90. package/src/i18n/locales/hr.ts +18 -0
  91. package/src/i18n/locales/index.ts +1 -0
  92. package/src/i18n/locales/is.ts +24 -1
  93. package/src/i18n/locales/it.ts +21 -0
  94. package/src/i18n/locales/ja.ts +23 -0
  95. package/src/i18n/locales/ko.ts +23 -0
  96. package/src/i18n/locales/nl.ts +23 -0
  97. package/src/i18n/locales/no.ts +346 -0
  98. package/src/i18n/locales/pl.ts +23 -0
  99. package/src/i18n/locales/pt.ts +23 -0
  100. package/src/i18n/locales/ru.ts +23 -0
  101. package/src/i18n/locales/uk.ts +23 -0
  102. package/src/i18n/locales/vi.ts +23 -0
  103. package/src/i18n/locales/zh.ts +23 -0
  104. package/src/index.ts +6 -4
  105. package/src/schema/blocks/types.ts +32 -2
  106. package/src/util/browser.ts +1 -1
  107. package/src/util/table.ts +107 -0
  108. package/types/src/api/blockManipulation/tables/tables.d.ts +343 -0
  109. package/types/src/api/blockManipulation/tables/tables.test.d.ts +1 -0
  110. package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
  111. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +1 -2
  112. package/types/src/blocks/defaultBlockTypeGuards.d.ts +3 -0
  113. package/types/src/comments/index.d.ts +9 -0
  114. package/types/src/comments/models/User.d.ts +8 -0
  115. package/types/src/comments/threadstore/DefaultThreadStoreAuth.d.ts +47 -0
  116. package/types/src/comments/threadstore/ThreadStore.d.ts +121 -0
  117. package/types/src/comments/threadstore/ThreadStoreAuth.d.ts +12 -0
  118. package/types/src/comments/threadstore/TipTapThreadStore.d.ts +97 -0
  119. package/types/src/comments/threadstore/yjs/RESTYjsThreadStore.d.ts +83 -0
  120. package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +79 -0
  121. package/types/src/comments/threadstore/yjs/YjsThreadStore.test.d.ts +1 -0
  122. package/types/src/comments/threadstore/yjs/YjsThreadStoreBase.d.ts +15 -0
  123. package/types/src/comments/threadstore/yjs/yjsHelpers.d.ts +13 -0
  124. package/types/src/comments/types.d.ts +109 -0
  125. package/types/src/editor/BlockNoteEditor.d.ts +146 -66
  126. package/types/src/editor/BlockNoteExtensions.d.ts +4 -0
  127. package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
  128. package/types/src/extensions/Comments/CommentMark.d.ts +2 -0
  129. package/types/src/extensions/Comments/CommentsPlugin.d.ts +49 -0
  130. package/types/src/extensions/Comments/userstore/UserStore.d.ts +31 -0
  131. package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +1 -1
  132. package/types/src/extensions/ShowSelection/ShowSelectionPlugin.d.ts +15 -0
  133. package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +1 -0
  134. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +66 -1
  135. package/types/src/i18n/locales/de.d.ts +15 -0
  136. package/types/src/i18n/locales/en.d.ts +20 -0
  137. package/types/src/i18n/locales/es.d.ts +15 -0
  138. package/types/src/i18n/locales/hr.d.ts +18 -0
  139. package/types/src/i18n/locales/index.d.ts +1 -0
  140. package/types/src/i18n/locales/it.d.ts +21 -0
  141. package/types/src/i18n/locales/no.d.ts +2 -0
  142. package/types/src/index.d.ts +5 -4
  143. package/types/src/pm-nodes/BlockContainer.d.ts +2 -2
  144. package/types/src/pm-nodes/BlockGroup.d.ts +2 -2
  145. package/types/src/schema/blocks/types.d.ts +23 -2
  146. package/types/src/util/browser.d.ts +1 -1
  147. package/types/src/util/table.d.ts +12 -0
  148. package/dist/blocknote.umd.cjs +0 -11
  149. package/dist/blocknote.umd.cjs.map +0 -1
@@ -23,41 +23,83 @@
23
23
  undefined,
24
24
  undefined,
25
25
  ],
26
+ "headerCols": undefined,
27
+ "headerRows": undefined,
26
28
  "rows": [
27
29
  {
28
30
  "cells": [
29
- [
30
- {
31
- "styles": {},
32
- "text": "Table Cell",
33
- "type": "text",
31
+ {
32
+ "content": [
33
+ {
34
+ "styles": {},
35
+ "text": "Table Cell",
36
+ "type": "text",
37
+ },
38
+ ],
39
+ "props": {
40
+ "backgroundColor": "default",
41
+ "colspan": 1,
42
+ "rowspan": 1,
43
+ "textAlignment": "left",
44
+ "textColor": "default",
34
45
  },
35
- ],
36
- [
37
- {
38
- "styles": {},
39
- "text": "Table Cell",
40
- "type": "text",
46
+ "type": "tableCell",
47
+ },
48
+ {
49
+ "content": [
50
+ {
51
+ "styles": {},
52
+ "text": "Table Cell",
53
+ "type": "text",
54
+ },
55
+ ],
56
+ "props": {
57
+ "backgroundColor": "default",
58
+ "colspan": 1,
59
+ "rowspan": 1,
60
+ "textAlignment": "left",
61
+ "textColor": "default",
41
62
  },
42
- ],
63
+ "type": "tableCell",
64
+ },
43
65
  ],
44
66
  },
45
67
  {
46
68
  "cells": [
47
- [
48
- {
49
- "styles": {},
50
- "text": "Table Cell",
51
- "type": "text",
69
+ {
70
+ "content": [
71
+ {
72
+ "styles": {},
73
+ "text": "Table Cell",
74
+ "type": "text",
75
+ },
76
+ ],
77
+ "props": {
78
+ "backgroundColor": "default",
79
+ "colspan": 1,
80
+ "rowspan": 1,
81
+ "textAlignment": "left",
82
+ "textColor": "default",
52
83
  },
53
- ],
54
- [
55
- {
56
- "styles": {},
57
- "text": "Table Cell",
58
- "type": "text",
84
+ "type": "tableCell",
85
+ },
86
+ {
87
+ "content": [
88
+ {
89
+ "styles": {},
90
+ "text": "Table Cell",
91
+ "type": "text",
92
+ },
93
+ ],
94
+ "props": {
95
+ "backgroundColor": "default",
96
+ "colspan": 1,
97
+ "rowspan": 1,
98
+ "textAlignment": "left",
99
+ "textColor": "default",
59
100
  },
60
- ],
101
+ "type": "tableCell",
102
+ },
61
103
  ],
62
104
  },
63
105
  ],
@@ -23,41 +23,83 @@
23
23
  undefined,
24
24
  undefined,
25
25
  ],
26
+ "headerCols": undefined,
27
+ "headerRows": undefined,
26
28
  "rows": [
27
29
  {
28
30
  "cells": [
29
- [
30
- {
31
- "styles": {},
32
- "text": "Table Cell",
33
- "type": "text",
31
+ {
32
+ "content": [
33
+ {
34
+ "styles": {},
35
+ "text": "Table Cell",
36
+ "type": "text",
37
+ },
38
+ ],
39
+ "props": {
40
+ "backgroundColor": "default",
41
+ "colspan": 1,
42
+ "rowspan": 1,
43
+ "textAlignment": "left",
44
+ "textColor": "default",
34
45
  },
35
- ],
36
- [
37
- {
38
- "styles": {},
39
- "text": "Table Cell",
40
- "type": "text",
46
+ "type": "tableCell",
47
+ },
48
+ {
49
+ "content": [
50
+ {
51
+ "styles": {},
52
+ "text": "Table Cell",
53
+ "type": "text",
54
+ },
55
+ ],
56
+ "props": {
57
+ "backgroundColor": "default",
58
+ "colspan": 1,
59
+ "rowspan": 1,
60
+ "textAlignment": "left",
61
+ "textColor": "default",
41
62
  },
42
- ],
63
+ "type": "tableCell",
64
+ },
43
65
  ],
44
66
  },
45
67
  {
46
68
  "cells": [
47
- [
48
- {
49
- "styles": {},
50
- "text": "Table Cell",
51
- "type": "text",
69
+ {
70
+ "content": [
71
+ {
72
+ "styles": {},
73
+ "text": "Table Cell",
74
+ "type": "text",
75
+ },
76
+ ],
77
+ "props": {
78
+ "backgroundColor": "default",
79
+ "colspan": 1,
80
+ "rowspan": 1,
81
+ "textAlignment": "left",
82
+ "textColor": "default",
52
83
  },
53
- ],
54
- [
55
- {
56
- "styles": {},
57
- "text": "Table Cell",
58
- "type": "text",
84
+ "type": "tableCell",
85
+ },
86
+ {
87
+ "content": [
88
+ {
89
+ "styles": {},
90
+ "text": "Table Cell",
91
+ "type": "text",
92
+ },
93
+ ],
94
+ "props": {
95
+ "backgroundColor": "default",
96
+ "colspan": 1,
97
+ "rowspan": 1,
98
+ "textAlignment": "left",
99
+ "textColor": "default",
59
100
  },
60
- ],
101
+ "type": "tableCell",
102
+ },
61
103
  ],
62
104
  },
63
105
  ],
@@ -38,41 +38,83 @@
38
38
  undefined,
39
39
  undefined,
40
40
  ],
41
+ "headerCols": undefined,
42
+ "headerRows": undefined,
41
43
  "rows": [
42
44
  {
43
45
  "cells": [
44
- [
45
- {
46
- "styles": {},
47
- "text": "Table Cell",
48
- "type": "text",
46
+ {
47
+ "content": [
48
+ {
49
+ "styles": {},
50
+ "text": "Table Cell",
51
+ "type": "text",
52
+ },
53
+ ],
54
+ "props": {
55
+ "backgroundColor": "default",
56
+ "colspan": 1,
57
+ "rowspan": 1,
58
+ "textAlignment": "left",
59
+ "textColor": "default",
49
60
  },
50
- ],
51
- [
52
- {
53
- "styles": {},
54
- "text": "Table Cell",
55
- "type": "text",
61
+ "type": "tableCell",
62
+ },
63
+ {
64
+ "content": [
65
+ {
66
+ "styles": {},
67
+ "text": "Table Cell",
68
+ "type": "text",
69
+ },
70
+ ],
71
+ "props": {
72
+ "backgroundColor": "default",
73
+ "colspan": 1,
74
+ "rowspan": 1,
75
+ "textAlignment": "left",
76
+ "textColor": "default",
56
77
  },
57
- ],
78
+ "type": "tableCell",
79
+ },
58
80
  ],
59
81
  },
60
82
  {
61
83
  "cells": [
62
- [
63
- {
64
- "styles": {},
65
- "text": "Table Cell",
66
- "type": "text",
84
+ {
85
+ "content": [
86
+ {
87
+ "styles": {},
88
+ "text": "Table Cell",
89
+ "type": "text",
90
+ },
91
+ ],
92
+ "props": {
93
+ "backgroundColor": "default",
94
+ "colspan": 1,
95
+ "rowspan": 1,
96
+ "textAlignment": "left",
97
+ "textColor": "default",
67
98
  },
68
- ],
69
- [
70
- {
71
- "styles": {},
72
- "text": "Table Cell",
73
- "type": "text",
99
+ "type": "tableCell",
100
+ },
101
+ {
102
+ "content": [
103
+ {
104
+ "styles": {},
105
+ "text": "Table Cell",
106
+ "type": "text",
107
+ },
108
+ ],
109
+ "props": {
110
+ "backgroundColor": "default",
111
+ "colspan": 1,
112
+ "rowspan": 1,
113
+ "textAlignment": "left",
114
+ "textColor": "default",
74
115
  },
75
- ],
116
+ "type": "tableCell",
117
+ },
76
118
  ],
77
119
  },
78
120
  ],
@@ -23,41 +23,83 @@
23
23
  undefined,
24
24
  undefined,
25
25
  ],
26
+ "headerCols": undefined,
27
+ "headerRows": undefined,
26
28
  "rows": [
27
29
  {
28
30
  "cells": [
29
- [
30
- {
31
- "styles": {},
32
- "text": "Table Cell",
33
- "type": "text",
31
+ {
32
+ "content": [
33
+ {
34
+ "styles": {},
35
+ "text": "Table Cell",
36
+ "type": "text",
37
+ },
38
+ ],
39
+ "props": {
40
+ "backgroundColor": "default",
41
+ "colspan": 1,
42
+ "rowspan": 1,
43
+ "textAlignment": "left",
44
+ "textColor": "default",
34
45
  },
35
- ],
36
- [
37
- {
38
- "styles": {},
39
- "text": "Table Cell",
40
- "type": "text",
46
+ "type": "tableCell",
47
+ },
48
+ {
49
+ "content": [
50
+ {
51
+ "styles": {},
52
+ "text": "Table Cell",
53
+ "type": "text",
54
+ },
55
+ ],
56
+ "props": {
57
+ "backgroundColor": "default",
58
+ "colspan": 1,
59
+ "rowspan": 1,
60
+ "textAlignment": "left",
61
+ "textColor": "default",
41
62
  },
42
- ],
63
+ "type": "tableCell",
64
+ },
43
65
  ],
44
66
  },
45
67
  {
46
68
  "cells": [
47
- [
48
- {
49
- "styles": {},
50
- "text": "Table Cell",
51
- "type": "text",
69
+ {
70
+ "content": [
71
+ {
72
+ "styles": {},
73
+ "text": "Table Cell",
74
+ "type": "text",
75
+ },
76
+ ],
77
+ "props": {
78
+ "backgroundColor": "default",
79
+ "colspan": 1,
80
+ "rowspan": 1,
81
+ "textAlignment": "left",
82
+ "textColor": "default",
52
83
  },
53
- ],
54
- [
55
- {
56
- "styles": {},
57
- "text": "Table Cell",
58
- "type": "text",
84
+ "type": "tableCell",
85
+ },
86
+ {
87
+ "content": [
88
+ {
89
+ "styles": {},
90
+ "text": "Table Cell",
91
+ "type": "text",
92
+ },
93
+ ],
94
+ "props": {
95
+ "backgroundColor": "default",
96
+ "colspan": 1,
97
+ "rowspan": 1,
98
+ "textAlignment": "left",
99
+ "textColor": "default",
59
100
  },
60
- ],
101
+ "type": "tableCell",
102
+ },
61
103
  ],
62
104
  },
63
105
  ],
@@ -23,41 +23,83 @@
23
23
  undefined,
24
24
  undefined,
25
25
  ],
26
+ "headerCols": undefined,
27
+ "headerRows": undefined,
26
28
  "rows": [
27
29
  {
28
30
  "cells": [
29
- [
30
- {
31
- "styles": {},
32
- "text": "Cell 1",
33
- "type": "text",
31
+ {
32
+ "content": [
33
+ {
34
+ "styles": {},
35
+ "text": "Cell 1",
36
+ "type": "text",
37
+ },
38
+ ],
39
+ "props": {
40
+ "backgroundColor": "default",
41
+ "colspan": 1,
42
+ "rowspan": 1,
43
+ "textAlignment": "left",
44
+ "textColor": "default",
34
45
  },
35
- ],
36
- [
37
- {
38
- "styles": {},
39
- "text": "Cell 2",
40
- "type": "text",
46
+ "type": "tableCell",
47
+ },
48
+ {
49
+ "content": [
50
+ {
51
+ "styles": {},
52
+ "text": "Cell 2",
53
+ "type": "text",
54
+ },
55
+ ],
56
+ "props": {
57
+ "backgroundColor": "default",
58
+ "colspan": 1,
59
+ "rowspan": 1,
60
+ "textAlignment": "left",
61
+ "textColor": "default",
41
62
  },
42
- ],
63
+ "type": "tableCell",
64
+ },
43
65
  ],
44
66
  },
45
67
  {
46
68
  "cells": [
47
- [
48
- {
49
- "styles": {},
50
- "text": "Cell 3",
51
- "type": "text",
69
+ {
70
+ "content": [
71
+ {
72
+ "styles": {},
73
+ "text": "Cell 3",
74
+ "type": "text",
75
+ },
76
+ ],
77
+ "props": {
78
+ "backgroundColor": "default",
79
+ "colspan": 1,
80
+ "rowspan": 1,
81
+ "textAlignment": "left",
82
+ "textColor": "default",
52
83
  },
53
- ],
54
- [
55
- {
56
- "styles": {},
57
- "text": "Cell 4",
58
- "type": "text",
84
+ "type": "tableCell",
85
+ },
86
+ {
87
+ "content": [
88
+ {
89
+ "styles": {},
90
+ "text": "Cell 4",
91
+ "type": "text",
92
+ },
93
+ ],
94
+ "props": {
95
+ "backgroundColor": "default",
96
+ "colspan": 1,
97
+ "rowspan": 1,
98
+ "textAlignment": "left",
99
+ "textColor": "default",
59
100
  },
60
- ],
101
+ "type": "tableCell",
102
+ },
61
103
  ],
62
104
  },
63
105
  ],
@@ -76,41 +118,83 @@
76
118
  undefined,
77
119
  undefined,
78
120
  ],
121
+ "headerCols": undefined,
122
+ "headerRows": undefined,
79
123
  "rows": [
80
124
  {
81
125
  "cells": [
82
- [
83
- {
84
- "styles": {},
85
- "text": "Table Cell",
86
- "type": "text",
126
+ {
127
+ "content": [
128
+ {
129
+ "styles": {},
130
+ "text": "Table Cell",
131
+ "type": "text",
132
+ },
133
+ ],
134
+ "props": {
135
+ "backgroundColor": "default",
136
+ "colspan": 1,
137
+ "rowspan": 1,
138
+ "textAlignment": "left",
139
+ "textColor": "default",
87
140
  },
88
- ],
89
- [
90
- {
91
- "styles": {},
92
- "text": "Table Cell",
93
- "type": "text",
141
+ "type": "tableCell",
142
+ },
143
+ {
144
+ "content": [
145
+ {
146
+ "styles": {},
147
+ "text": "Table Cell",
148
+ "type": "text",
149
+ },
150
+ ],
151
+ "props": {
152
+ "backgroundColor": "default",
153
+ "colspan": 1,
154
+ "rowspan": 1,
155
+ "textAlignment": "left",
156
+ "textColor": "default",
94
157
  },
95
- ],
158
+ "type": "tableCell",
159
+ },
96
160
  ],
97
161
  },
98
162
  {
99
163
  "cells": [
100
- [
101
- {
102
- "styles": {},
103
- "text": "Table Cell",
104
- "type": "text",
164
+ {
165
+ "content": [
166
+ {
167
+ "styles": {},
168
+ "text": "Table Cell",
169
+ "type": "text",
170
+ },
171
+ ],
172
+ "props": {
173
+ "backgroundColor": "default",
174
+ "colspan": 1,
175
+ "rowspan": 1,
176
+ "textAlignment": "left",
177
+ "textColor": "default",
105
178
  },
106
- ],
107
- [
108
- {
109
- "styles": {},
110
- "text": "Table Cell",
111
- "type": "text",
179
+ "type": "tableCell",
180
+ },
181
+ {
182
+ "content": [
183
+ {
184
+ "styles": {},
185
+ "text": "Table Cell",
186
+ "type": "text",
187
+ },
188
+ ],
189
+ "props": {
190
+ "backgroundColor": "default",
191
+ "colspan": 1,
192
+ "rowspan": 1,
193
+ "textAlignment": "left",
194
+ "textColor": "default",
112
195
  },
113
- ],
196
+ "type": "tableCell",
197
+ },
114
198
  ],
115
199
  },
116
200
  ],