@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
@@ -1879,11 +1879,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
1879
1879
  "content": [
1880
1880
  {
1881
1881
  "attrs": {
1882
+ "backgroundColor": "default",
1882
1883
  "colspan": 1,
1883
1884
  "colwidth": [
1884
1885
  100,
1885
1886
  ],
1886
1887
  "rowspan": 1,
1888
+ "textAlignment": "left",
1889
+ "textColor": "default",
1887
1890
  },
1888
1891
  "content": [
1889
1892
  {
@@ -1900,11 +1903,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
1900
1903
  },
1901
1904
  {
1902
1905
  "attrs": {
1906
+ "backgroundColor": "default",
1903
1907
  "colspan": 1,
1904
1908
  "colwidth": [
1905
1909
  200,
1906
1910
  ],
1907
1911
  "rowspan": 1,
1912
+ "textAlignment": "left",
1913
+ "textColor": "default",
1908
1914
  },
1909
1915
  "content": [
1910
1916
  {
@@ -1921,11 +1927,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
1921
1927
  },
1922
1928
  {
1923
1929
  "attrs": {
1930
+ "backgroundColor": "default",
1924
1931
  "colspan": 1,
1925
1932
  "colwidth": [
1926
1933
  300,
1927
1934
  ],
1928
1935
  "rowspan": 1,
1936
+ "textAlignment": "left",
1937
+ "textColor": "default",
1929
1938
  },
1930
1939
  "content": [
1931
1940
  {
@@ -1947,11 +1956,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
1947
1956
  "content": [
1948
1957
  {
1949
1958
  "attrs": {
1959
+ "backgroundColor": "default",
1950
1960
  "colspan": 1,
1951
1961
  "colwidth": [
1952
1962
  100,
1953
1963
  ],
1954
1964
  "rowspan": 1,
1965
+ "textAlignment": "left",
1966
+ "textColor": "default",
1955
1967
  },
1956
1968
  "content": [
1957
1969
  {
@@ -1968,11 +1980,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
1968
1980
  },
1969
1981
  {
1970
1982
  "attrs": {
1983
+ "backgroundColor": "default",
1971
1984
  "colspan": 1,
1972
1985
  "colwidth": [
1973
1986
  200,
1974
1987
  ],
1975
1988
  "rowspan": 1,
1989
+ "textAlignment": "left",
1990
+ "textColor": "default",
1976
1991
  },
1977
1992
  "content": [
1978
1993
  {
@@ -1989,11 +2004,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
1989
2004
  },
1990
2005
  {
1991
2006
  "attrs": {
2007
+ "backgroundColor": "default",
1992
2008
  "colspan": 1,
1993
2009
  "colwidth": [
1994
2010
  300,
1995
2011
  ],
1996
2012
  "rowspan": 1,
2013
+ "textAlignment": "left",
2014
+ "textColor": "default",
1997
2015
  },
1998
2016
  "content": [
1999
2017
  {
@@ -2015,11 +2033,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2015
2033
  "content": [
2016
2034
  {
2017
2035
  "attrs": {
2036
+ "backgroundColor": "default",
2018
2037
  "colspan": 1,
2019
2038
  "colwidth": [
2020
2039
  100,
2021
2040
  ],
2022
2041
  "rowspan": 1,
2042
+ "textAlignment": "left",
2043
+ "textColor": "default",
2023
2044
  },
2024
2045
  "content": [
2025
2046
  {
@@ -2036,11 +2057,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2036
2057
  },
2037
2058
  {
2038
2059
  "attrs": {
2060
+ "backgroundColor": "default",
2039
2061
  "colspan": 1,
2040
2062
  "colwidth": [
2041
2063
  200,
2042
2064
  ],
2043
2065
  "rowspan": 1,
2066
+ "textAlignment": "left",
2067
+ "textColor": "default",
2044
2068
  },
2045
2069
  "content": [
2046
2070
  {
@@ -2057,11 +2081,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2057
2081
  },
2058
2082
  {
2059
2083
  "attrs": {
2084
+ "backgroundColor": "default",
2060
2085
  "colspan": 1,
2061
2086
  "colwidth": [
2062
2087
  300,
2063
2088
  ],
2064
2089
  "rowspan": 1,
2090
+ "textAlignment": "left",
2091
+ "textColor": "default",
2065
2092
  },
2066
2093
  "content": [
2067
2094
  {
@@ -2101,9 +2128,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2101
2128
  "content": [
2102
2129
  {
2103
2130
  "attrs": {
2131
+ "backgroundColor": "default",
2104
2132
  "colspan": 1,
2105
2133
  "colwidth": null,
2106
2134
  "rowspan": 1,
2135
+ "textAlignment": "left",
2136
+ "textColor": "default",
2107
2137
  },
2108
2138
  "content": [
2109
2139
  {
@@ -2120,9 +2150,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2120
2150
  },
2121
2151
  {
2122
2152
  "attrs": {
2153
+ "backgroundColor": "default",
2123
2154
  "colspan": 1,
2124
2155
  "colwidth": null,
2125
2156
  "rowspan": 1,
2157
+ "textAlignment": "left",
2158
+ "textColor": "default",
2126
2159
  },
2127
2160
  "content": [
2128
2161
  {
@@ -2139,9 +2172,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2139
2172
  },
2140
2173
  {
2141
2174
  "attrs": {
2175
+ "backgroundColor": "default",
2142
2176
  "colspan": 1,
2143
2177
  "colwidth": null,
2144
2178
  "rowspan": 1,
2179
+ "textAlignment": "left",
2180
+ "textColor": "default",
2145
2181
  },
2146
2182
  "content": [
2147
2183
  {
@@ -2163,9 +2199,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2163
2199
  "content": [
2164
2200
  {
2165
2201
  "attrs": {
2202
+ "backgroundColor": "default",
2166
2203
  "colspan": 1,
2167
2204
  "colwidth": null,
2168
2205
  "rowspan": 1,
2206
+ "textAlignment": "left",
2207
+ "textColor": "default",
2169
2208
  },
2170
2209
  "content": [
2171
2210
  {
@@ -2182,9 +2221,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2182
2221
  },
2183
2222
  {
2184
2223
  "attrs": {
2224
+ "backgroundColor": "default",
2185
2225
  "colspan": 1,
2186
2226
  "colwidth": null,
2187
2227
  "rowspan": 1,
2228
+ "textAlignment": "left",
2229
+ "textColor": "default",
2188
2230
  },
2189
2231
  "content": [
2190
2232
  {
@@ -2201,9 +2243,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2201
2243
  },
2202
2244
  {
2203
2245
  "attrs": {
2246
+ "backgroundColor": "default",
2204
2247
  "colspan": 1,
2205
2248
  "colwidth": null,
2206
2249
  "rowspan": 1,
2250
+ "textAlignment": "left",
2251
+ "textColor": "default",
2207
2252
  },
2208
2253
  "content": [
2209
2254
  {
@@ -2225,9 +2270,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2225
2270
  "content": [
2226
2271
  {
2227
2272
  "attrs": {
2273
+ "backgroundColor": "default",
2228
2274
  "colspan": 1,
2229
2275
  "colwidth": null,
2230
2276
  "rowspan": 1,
2277
+ "textAlignment": "left",
2278
+ "textColor": "default",
2231
2279
  },
2232
2280
  "content": [
2233
2281
  {
@@ -2244,9 +2292,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2244
2292
  },
2245
2293
  {
2246
2294
  "attrs": {
2295
+ "backgroundColor": "default",
2247
2296
  "colspan": 1,
2248
2297
  "colwidth": null,
2249
2298
  "rowspan": 1,
2299
+ "textAlignment": "left",
2300
+ "textColor": "default",
2250
2301
  },
2251
2302
  "content": [
2252
2303
  {
@@ -2263,9 +2314,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2263
2314
  },
2264
2315
  {
2265
2316
  "attrs": {
2317
+ "backgroundColor": "default",
2266
2318
  "colspan": 1,
2267
2319
  "colwidth": null,
2268
2320
  "rowspan": 1,
2321
+ "textAlignment": "left",
2322
+ "textColor": "default",
2269
2323
  },
2270
2324
  "content": [
2271
2325
  {
@@ -2291,7 +2345,7 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2291
2345
  }
2292
2346
  `;
2293
2347
 
2294
- exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert table/mixedColWidths to/from prosemirror 1`] = `
2348
+ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert table/headerCols to/from prosemirror 1`] = `
2295
2349
  {
2296
2350
  "attrs": {
2297
2351
  "backgroundColor": "default",
@@ -2305,11 +2359,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2305
2359
  "content": [
2306
2360
  {
2307
2361
  "attrs": {
2362
+ "backgroundColor": "default",
2308
2363
  "colspan": 1,
2309
- "colwidth": [
2310
- 100,
2311
- ],
2364
+ "colwidth": null,
2312
2365
  "rowspan": 1,
2366
+ "textAlignment": "left",
2367
+ "textColor": "default",
2313
2368
  },
2314
2369
  "content": [
2315
2370
  {
@@ -2322,13 +2377,16 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2322
2377
  "type": "tableParagraph",
2323
2378
  },
2324
2379
  ],
2325
- "type": "tableCell",
2380
+ "type": "tableHeader",
2326
2381
  },
2327
2382
  {
2328
2383
  "attrs": {
2384
+ "backgroundColor": "default",
2329
2385
  "colspan": 1,
2330
2386
  "colwidth": null,
2331
2387
  "rowspan": 1,
2388
+ "textAlignment": "left",
2389
+ "textColor": "default",
2332
2390
  },
2333
2391
  "content": [
2334
2392
  {
@@ -2345,11 +2403,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2345
2403
  },
2346
2404
  {
2347
2405
  "attrs": {
2406
+ "backgroundColor": "default",
2348
2407
  "colspan": 1,
2349
- "colwidth": [
2350
- 300,
2351
- ],
2408
+ "colwidth": null,
2352
2409
  "rowspan": 1,
2410
+ "textAlignment": "left",
2411
+ "textColor": "default",
2353
2412
  },
2354
2413
  "content": [
2355
2414
  {
@@ -2371,11 +2430,34 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2371
2430
  "content": [
2372
2431
  {
2373
2432
  "attrs": {
2433
+ "backgroundColor": "default",
2374
2434
  "colspan": 1,
2375
- "colwidth": [
2376
- 100,
2377
- ],
2435
+ "colwidth": null,
2436
+ "rowspan": 1,
2437
+ "textAlignment": "left",
2438
+ "textColor": "default",
2439
+ },
2440
+ "content": [
2441
+ {
2442
+ "content": [
2443
+ {
2444
+ "text": "Table Cell",
2445
+ "type": "text",
2446
+ },
2447
+ ],
2448
+ "type": "tableParagraph",
2449
+ },
2450
+ ],
2451
+ "type": "tableHeader",
2452
+ },
2453
+ {
2454
+ "attrs": {
2455
+ "backgroundColor": "default",
2456
+ "colspan": 1,
2457
+ "colwidth": null,
2378
2458
  "rowspan": 1,
2459
+ "textAlignment": "left",
2460
+ "textColor": "default",
2379
2461
  },
2380
2462
  "content": [
2381
2463
  {
@@ -2392,9 +2474,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2392
2474
  },
2393
2475
  {
2394
2476
  "attrs": {
2477
+ "backgroundColor": "default",
2395
2478
  "colspan": 1,
2396
2479
  "colwidth": null,
2397
2480
  "rowspan": 1,
2481
+ "textAlignment": "left",
2482
+ "textColor": "default",
2398
2483
  },
2399
2484
  "content": [
2400
2485
  {
@@ -2409,13 +2494,63 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2409
2494
  ],
2410
2495
  "type": "tableCell",
2411
2496
  },
2497
+ ],
2498
+ "type": "tableRow",
2499
+ },
2500
+ {
2501
+ "content": [
2412
2502
  {
2413
2503
  "attrs": {
2504
+ "backgroundColor": "default",
2414
2505
  "colspan": 1,
2415
- "colwidth": [
2416
- 300,
2417
- ],
2506
+ "colwidth": null,
2507
+ "rowspan": 1,
2508
+ "textAlignment": "left",
2509
+ "textColor": "default",
2510
+ },
2511
+ "content": [
2512
+ {
2513
+ "content": [
2514
+ {
2515
+ "text": "Table Cell",
2516
+ "type": "text",
2517
+ },
2518
+ ],
2519
+ "type": "tableParagraph",
2520
+ },
2521
+ ],
2522
+ "type": "tableHeader",
2523
+ },
2524
+ {
2525
+ "attrs": {
2526
+ "backgroundColor": "default",
2527
+ "colspan": 1,
2528
+ "colwidth": null,
2529
+ "rowspan": 1,
2530
+ "textAlignment": "left",
2531
+ "textColor": "default",
2532
+ },
2533
+ "content": [
2534
+ {
2535
+ "content": [
2536
+ {
2537
+ "text": "Table Cell",
2538
+ "type": "text",
2539
+ },
2540
+ ],
2541
+ "type": "tableParagraph",
2542
+ },
2543
+ ],
2544
+ "type": "tableCell",
2545
+ },
2546
+ {
2547
+ "attrs": {
2548
+ "backgroundColor": "default",
2549
+ "colspan": 1,
2550
+ "colwidth": null,
2418
2551
  "rowspan": 1,
2552
+ "textAlignment": "left",
2553
+ "textColor": "default",
2419
2554
  },
2420
2555
  "content": [
2421
2556
  {
@@ -2433,15 +2568,105 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2433
2568
  ],
2434
2569
  "type": "tableRow",
2435
2570
  },
2571
+ ],
2572
+ "type": "table",
2573
+ },
2574
+ ],
2575
+ "type": "blockContainer",
2576
+ }
2577
+ `;
2578
+
2579
+ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert table/headerRows to/from prosemirror 1`] = `
2580
+ {
2581
+ "attrs": {
2582
+ "backgroundColor": "default",
2583
+ "id": "1",
2584
+ "textColor": "default",
2585
+ },
2586
+ "content": [
2587
+ {
2588
+ "content": [
2436
2589
  {
2437
2590
  "content": [
2438
2591
  {
2439
2592
  "attrs": {
2593
+ "backgroundColor": "default",
2440
2594
  "colspan": 1,
2441
- "colwidth": [
2442
- 100,
2443
- ],
2595
+ "colwidth": null,
2596
+ "rowspan": 1,
2597
+ "textAlignment": "left",
2598
+ "textColor": "default",
2599
+ },
2600
+ "content": [
2601
+ {
2602
+ "content": [
2603
+ {
2604
+ "text": "Table Cell",
2605
+ "type": "text",
2606
+ },
2607
+ ],
2608
+ "type": "tableParagraph",
2609
+ },
2610
+ ],
2611
+ "type": "tableHeader",
2612
+ },
2613
+ {
2614
+ "attrs": {
2615
+ "backgroundColor": "default",
2616
+ "colspan": 1,
2617
+ "colwidth": null,
2618
+ "rowspan": 1,
2619
+ "textAlignment": "left",
2620
+ "textColor": "default",
2621
+ },
2622
+ "content": [
2623
+ {
2624
+ "content": [
2625
+ {
2626
+ "text": "Table Cell",
2627
+ "type": "text",
2628
+ },
2629
+ ],
2630
+ "type": "tableParagraph",
2631
+ },
2632
+ ],
2633
+ "type": "tableHeader",
2634
+ },
2635
+ {
2636
+ "attrs": {
2637
+ "backgroundColor": "default",
2638
+ "colspan": 1,
2639
+ "colwidth": null,
2640
+ "rowspan": 1,
2641
+ "textAlignment": "left",
2642
+ "textColor": "default",
2643
+ },
2644
+ "content": [
2645
+ {
2646
+ "content": [
2647
+ {
2648
+ "text": "Table Cell",
2649
+ "type": "text",
2650
+ },
2651
+ ],
2652
+ "type": "tableParagraph",
2653
+ },
2654
+ ],
2655
+ "type": "tableHeader",
2656
+ },
2657
+ ],
2658
+ "type": "tableRow",
2659
+ },
2660
+ {
2661
+ "content": [
2662
+ {
2663
+ "attrs": {
2664
+ "backgroundColor": "default",
2665
+ "colspan": 1,
2666
+ "colwidth": null,
2444
2667
  "rowspan": 1,
2668
+ "textAlignment": "left",
2669
+ "textColor": "default",
2445
2670
  },
2446
2671
  "content": [
2447
2672
  {
@@ -2458,9 +2683,12 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2458
2683
  },
2459
2684
  {
2460
2685
  "attrs": {
2686
+ "backgroundColor": "default",
2461
2687
  "colspan": 1,
2462
2688
  "colwidth": null,
2463
2689
  "rowspan": 1,
2690
+ "textAlignment": "left",
2691
+ "textColor": "default",
2464
2692
  },
2465
2693
  "content": [
2466
2694
  {
@@ -2477,11 +2705,748 @@ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert
2477
2705
  },
2478
2706
  {
2479
2707
  "attrs": {
2708
+ "backgroundColor": "default",
2480
2709
  "colspan": 1,
2481
- "colwidth": [
2482
- 300,
2483
- ],
2710
+ "colwidth": null,
2711
+ "rowspan": 1,
2712
+ "textAlignment": "left",
2713
+ "textColor": "default",
2714
+ },
2715
+ "content": [
2716
+ {
2717
+ "content": [
2718
+ {
2719
+ "text": "Table Cell",
2720
+ "type": "text",
2721
+ },
2722
+ ],
2723
+ "type": "tableParagraph",
2724
+ },
2725
+ ],
2726
+ "type": "tableCell",
2727
+ },
2728
+ ],
2729
+ "type": "tableRow",
2730
+ },
2731
+ {
2732
+ "content": [
2733
+ {
2734
+ "attrs": {
2735
+ "backgroundColor": "default",
2736
+ "colspan": 1,
2737
+ "colwidth": null,
2738
+ "rowspan": 1,
2739
+ "textAlignment": "left",
2740
+ "textColor": "default",
2741
+ },
2742
+ "content": [
2743
+ {
2744
+ "content": [
2745
+ {
2746
+ "text": "Table Cell",
2747
+ "type": "text",
2748
+ },
2749
+ ],
2750
+ "type": "tableParagraph",
2751
+ },
2752
+ ],
2753
+ "type": "tableCell",
2754
+ },
2755
+ {
2756
+ "attrs": {
2757
+ "backgroundColor": "default",
2758
+ "colspan": 1,
2759
+ "colwidth": null,
2484
2760
  "rowspan": 1,
2761
+ "textAlignment": "left",
2762
+ "textColor": "default",
2763
+ },
2764
+ "content": [
2765
+ {
2766
+ "content": [
2767
+ {
2768
+ "text": "Table Cell",
2769
+ "type": "text",
2770
+ },
2771
+ ],
2772
+ "type": "tableParagraph",
2773
+ },
2774
+ ],
2775
+ "type": "tableCell",
2776
+ },
2777
+ {
2778
+ "attrs": {
2779
+ "backgroundColor": "default",
2780
+ "colspan": 1,
2781
+ "colwidth": null,
2782
+ "rowspan": 1,
2783
+ "textAlignment": "left",
2784
+ "textColor": "default",
2785
+ },
2786
+ "content": [
2787
+ {
2788
+ "content": [
2789
+ {
2790
+ "text": "Table Cell",
2791
+ "type": "text",
2792
+ },
2793
+ ],
2794
+ "type": "tableParagraph",
2795
+ },
2796
+ ],
2797
+ "type": "tableCell",
2798
+ },
2799
+ ],
2800
+ "type": "tableRow",
2801
+ },
2802
+ ],
2803
+ "type": "table",
2804
+ },
2805
+ ],
2806
+ "type": "blockContainer",
2807
+ }
2808
+ `;
2809
+
2810
+ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert table/mixedCellColors to/from prosemirror 1`] = `
2811
+ {
2812
+ "attrs": {
2813
+ "backgroundColor": "default",
2814
+ "id": "1",
2815
+ "textColor": "default",
2816
+ },
2817
+ "content": [
2818
+ {
2819
+ "content": [
2820
+ {
2821
+ "content": [
2822
+ {
2823
+ "attrs": {
2824
+ "backgroundColor": "red",
2825
+ "colspan": 1,
2826
+ "colwidth": [
2827
+ 100,
2828
+ ],
2829
+ "rowspan": 1,
2830
+ "textAlignment": "left",
2831
+ "textColor": "blue",
2832
+ },
2833
+ "content": [
2834
+ {
2835
+ "content": [
2836
+ {
2837
+ "text": "Table Cell",
2838
+ "type": "text",
2839
+ },
2840
+ ],
2841
+ "type": "tableParagraph",
2842
+ },
2843
+ ],
2844
+ "type": "tableCell",
2845
+ },
2846
+ {
2847
+ "attrs": {
2848
+ "backgroundColor": "blue",
2849
+ "colspan": 1,
2850
+ "colwidth": null,
2851
+ "rowspan": 1,
2852
+ "textAlignment": "left",
2853
+ "textColor": "default",
2854
+ },
2855
+ "content": [
2856
+ {
2857
+ "content": [
2858
+ {
2859
+ "text": "Table Cell",
2860
+ "type": "text",
2861
+ },
2862
+ ],
2863
+ "type": "tableParagraph",
2864
+ },
2865
+ ],
2866
+ "type": "tableCell",
2867
+ },
2868
+ {
2869
+ "attrs": {
2870
+ "backgroundColor": "yellow",
2871
+ "colspan": 1,
2872
+ "colwidth": [
2873
+ 300,
2874
+ ],
2875
+ "rowspan": 1,
2876
+ "textAlignment": "left",
2877
+ "textColor": "red",
2878
+ },
2879
+ "content": [
2880
+ {
2881
+ "content": [
2882
+ {
2883
+ "text": "Table Cell",
2884
+ "type": "text",
2885
+ },
2886
+ ],
2887
+ "type": "tableParagraph",
2888
+ },
2889
+ ],
2890
+ "type": "tableCell",
2891
+ },
2892
+ ],
2893
+ "type": "tableRow",
2894
+ },
2895
+ {
2896
+ "content": [
2897
+ {
2898
+ "attrs": {
2899
+ "backgroundColor": "default",
2900
+ "colspan": 1,
2901
+ "colwidth": [
2902
+ 100,
2903
+ ],
2904
+ "rowspan": 1,
2905
+ "textAlignment": "left",
2906
+ "textColor": "default",
2907
+ },
2908
+ "content": [
2909
+ {
2910
+ "content": [
2911
+ {
2912
+ "text": "Table Cell",
2913
+ "type": "text",
2914
+ },
2915
+ ],
2916
+ "type": "tableParagraph",
2917
+ },
2918
+ ],
2919
+ "type": "tableCell",
2920
+ },
2921
+ {
2922
+ "attrs": {
2923
+ "backgroundColor": "default",
2924
+ "colspan": 1,
2925
+ "colwidth": null,
2926
+ "rowspan": 1,
2927
+ "textAlignment": "left",
2928
+ "textColor": "default",
2929
+ },
2930
+ "content": [
2931
+ {
2932
+ "content": [
2933
+ {
2934
+ "text": "Table Cell",
2935
+ "type": "text",
2936
+ },
2937
+ ],
2938
+ "type": "tableParagraph",
2939
+ },
2940
+ ],
2941
+ "type": "tableCell",
2942
+ },
2943
+ {
2944
+ "attrs": {
2945
+ "backgroundColor": "default",
2946
+ "colspan": 1,
2947
+ "colwidth": [
2948
+ 300,
2949
+ ],
2950
+ "rowspan": 1,
2951
+ "textAlignment": "left",
2952
+ "textColor": "default",
2953
+ },
2954
+ "content": [
2955
+ {
2956
+ "content": [
2957
+ {
2958
+ "text": "Table Cell",
2959
+ "type": "text",
2960
+ },
2961
+ ],
2962
+ "type": "tableParagraph",
2963
+ },
2964
+ ],
2965
+ "type": "tableCell",
2966
+ },
2967
+ ],
2968
+ "type": "tableRow",
2969
+ },
2970
+ {
2971
+ "content": [
2972
+ {
2973
+ "attrs": {
2974
+ "backgroundColor": "default",
2975
+ "colspan": 1,
2976
+ "colwidth": [
2977
+ 100,
2978
+ ],
2979
+ "rowspan": 1,
2980
+ "textAlignment": "left",
2981
+ "textColor": "default",
2982
+ },
2983
+ "content": [
2984
+ {
2985
+ "content": [
2986
+ {
2987
+ "text": "Table Cell",
2988
+ "type": "text",
2989
+ },
2990
+ ],
2991
+ "type": "tableParagraph",
2992
+ },
2993
+ ],
2994
+ "type": "tableCell",
2995
+ },
2996
+ {
2997
+ "attrs": {
2998
+ "backgroundColor": "default",
2999
+ "colspan": 1,
3000
+ "colwidth": null,
3001
+ "rowspan": 1,
3002
+ "textAlignment": "left",
3003
+ "textColor": "default",
3004
+ },
3005
+ "content": [
3006
+ {
3007
+ "content": [
3008
+ {
3009
+ "text": "Table Cell",
3010
+ "type": "text",
3011
+ },
3012
+ ],
3013
+ "type": "tableParagraph",
3014
+ },
3015
+ ],
3016
+ "type": "tableCell",
3017
+ },
3018
+ {
3019
+ "attrs": {
3020
+ "backgroundColor": "default",
3021
+ "colspan": 1,
3022
+ "colwidth": [
3023
+ 300,
3024
+ ],
3025
+ "rowspan": 1,
3026
+ "textAlignment": "left",
3027
+ "textColor": "default",
3028
+ },
3029
+ "content": [
3030
+ {
3031
+ "content": [
3032
+ {
3033
+ "text": "Table Cell",
3034
+ "type": "text",
3035
+ },
3036
+ ],
3037
+ "type": "tableParagraph",
3038
+ },
3039
+ ],
3040
+ "type": "tableCell",
3041
+ },
3042
+ ],
3043
+ "type": "tableRow",
3044
+ },
3045
+ ],
3046
+ "type": "table",
3047
+ },
3048
+ ],
3049
+ "type": "blockContainer",
3050
+ }
3051
+ `;
3052
+
3053
+ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert table/mixedColWidths to/from prosemirror 1`] = `
3054
+ {
3055
+ "attrs": {
3056
+ "backgroundColor": "default",
3057
+ "id": "1",
3058
+ "textColor": "default",
3059
+ },
3060
+ "content": [
3061
+ {
3062
+ "content": [
3063
+ {
3064
+ "content": [
3065
+ {
3066
+ "attrs": {
3067
+ "backgroundColor": "default",
3068
+ "colspan": 1,
3069
+ "colwidth": [
3070
+ 100,
3071
+ ],
3072
+ "rowspan": 1,
3073
+ "textAlignment": "left",
3074
+ "textColor": "default",
3075
+ },
3076
+ "content": [
3077
+ {
3078
+ "content": [
3079
+ {
3080
+ "text": "Table Cell",
3081
+ "type": "text",
3082
+ },
3083
+ ],
3084
+ "type": "tableParagraph",
3085
+ },
3086
+ ],
3087
+ "type": "tableCell",
3088
+ },
3089
+ {
3090
+ "attrs": {
3091
+ "backgroundColor": "default",
3092
+ "colspan": 1,
3093
+ "colwidth": null,
3094
+ "rowspan": 1,
3095
+ "textAlignment": "left",
3096
+ "textColor": "default",
3097
+ },
3098
+ "content": [
3099
+ {
3100
+ "content": [
3101
+ {
3102
+ "text": "Table Cell",
3103
+ "type": "text",
3104
+ },
3105
+ ],
3106
+ "type": "tableParagraph",
3107
+ },
3108
+ ],
3109
+ "type": "tableCell",
3110
+ },
3111
+ {
3112
+ "attrs": {
3113
+ "backgroundColor": "default",
3114
+ "colspan": 1,
3115
+ "colwidth": [
3116
+ 300,
3117
+ ],
3118
+ "rowspan": 1,
3119
+ "textAlignment": "left",
3120
+ "textColor": "default",
3121
+ },
3122
+ "content": [
3123
+ {
3124
+ "content": [
3125
+ {
3126
+ "text": "Table Cell",
3127
+ "type": "text",
3128
+ },
3129
+ ],
3130
+ "type": "tableParagraph",
3131
+ },
3132
+ ],
3133
+ "type": "tableCell",
3134
+ },
3135
+ ],
3136
+ "type": "tableRow",
3137
+ },
3138
+ {
3139
+ "content": [
3140
+ {
3141
+ "attrs": {
3142
+ "backgroundColor": "default",
3143
+ "colspan": 1,
3144
+ "colwidth": [
3145
+ 100,
3146
+ ],
3147
+ "rowspan": 1,
3148
+ "textAlignment": "left",
3149
+ "textColor": "default",
3150
+ },
3151
+ "content": [
3152
+ {
3153
+ "content": [
3154
+ {
3155
+ "text": "Table Cell",
3156
+ "type": "text",
3157
+ },
3158
+ ],
3159
+ "type": "tableParagraph",
3160
+ },
3161
+ ],
3162
+ "type": "tableCell",
3163
+ },
3164
+ {
3165
+ "attrs": {
3166
+ "backgroundColor": "default",
3167
+ "colspan": 1,
3168
+ "colwidth": null,
3169
+ "rowspan": 1,
3170
+ "textAlignment": "left",
3171
+ "textColor": "default",
3172
+ },
3173
+ "content": [
3174
+ {
3175
+ "content": [
3176
+ {
3177
+ "text": "Table Cell",
3178
+ "type": "text",
3179
+ },
3180
+ ],
3181
+ "type": "tableParagraph",
3182
+ },
3183
+ ],
3184
+ "type": "tableCell",
3185
+ },
3186
+ {
3187
+ "attrs": {
3188
+ "backgroundColor": "default",
3189
+ "colspan": 1,
3190
+ "colwidth": [
3191
+ 300,
3192
+ ],
3193
+ "rowspan": 1,
3194
+ "textAlignment": "left",
3195
+ "textColor": "default",
3196
+ },
3197
+ "content": [
3198
+ {
3199
+ "content": [
3200
+ {
3201
+ "text": "Table Cell",
3202
+ "type": "text",
3203
+ },
3204
+ ],
3205
+ "type": "tableParagraph",
3206
+ },
3207
+ ],
3208
+ "type": "tableCell",
3209
+ },
3210
+ ],
3211
+ "type": "tableRow",
3212
+ },
3213
+ {
3214
+ "content": [
3215
+ {
3216
+ "attrs": {
3217
+ "backgroundColor": "default",
3218
+ "colspan": 1,
3219
+ "colwidth": [
3220
+ 100,
3221
+ ],
3222
+ "rowspan": 1,
3223
+ "textAlignment": "left",
3224
+ "textColor": "default",
3225
+ },
3226
+ "content": [
3227
+ {
3228
+ "content": [
3229
+ {
3230
+ "text": "Table Cell",
3231
+ "type": "text",
3232
+ },
3233
+ ],
3234
+ "type": "tableParagraph",
3235
+ },
3236
+ ],
3237
+ "type": "tableCell",
3238
+ },
3239
+ {
3240
+ "attrs": {
3241
+ "backgroundColor": "default",
3242
+ "colspan": 1,
3243
+ "colwidth": null,
3244
+ "rowspan": 1,
3245
+ "textAlignment": "left",
3246
+ "textColor": "default",
3247
+ },
3248
+ "content": [
3249
+ {
3250
+ "content": [
3251
+ {
3252
+ "text": "Table Cell",
3253
+ "type": "text",
3254
+ },
3255
+ ],
3256
+ "type": "tableParagraph",
3257
+ },
3258
+ ],
3259
+ "type": "tableCell",
3260
+ },
3261
+ {
3262
+ "attrs": {
3263
+ "backgroundColor": "default",
3264
+ "colspan": 1,
3265
+ "colwidth": [
3266
+ 300,
3267
+ ],
3268
+ "rowspan": 1,
3269
+ "textAlignment": "left",
3270
+ "textColor": "default",
3271
+ },
3272
+ "content": [
3273
+ {
3274
+ "content": [
3275
+ {
3276
+ "text": "Table Cell",
3277
+ "type": "text",
3278
+ },
3279
+ ],
3280
+ "type": "tableParagraph",
3281
+ },
3282
+ ],
3283
+ "type": "tableCell",
3284
+ },
3285
+ ],
3286
+ "type": "tableRow",
3287
+ },
3288
+ ],
3289
+ "type": "table",
3290
+ },
3291
+ ],
3292
+ "type": "blockContainer",
3293
+ }
3294
+ `;
3295
+
3296
+ exports[`Test BlockNote-Prosemirror conversion > Case: default schema > Convert table/mixedRowspansAndColspans to/from prosemirror 1`] = `
3297
+ {
3298
+ "attrs": {
3299
+ "backgroundColor": "default",
3300
+ "id": "1",
3301
+ "textColor": "default",
3302
+ },
3303
+ "content": [
3304
+ {
3305
+ "content": [
3306
+ {
3307
+ "content": [
3308
+ {
3309
+ "attrs": {
3310
+ "backgroundColor": "red",
3311
+ "colspan": 2,
3312
+ "colwidth": [
3313
+ 100,
3314
+ 200,
3315
+ ],
3316
+ "rowspan": 1,
3317
+ "textAlignment": "left",
3318
+ "textColor": "blue",
3319
+ },
3320
+ "content": [
3321
+ {
3322
+ "content": [
3323
+ {
3324
+ "text": "Table Cell",
3325
+ "type": "text",
3326
+ },
3327
+ ],
3328
+ "type": "tableParagraph",
3329
+ },
3330
+ ],
3331
+ "type": "tableCell",
3332
+ },
3333
+ {
3334
+ "attrs": {
3335
+ "backgroundColor": "yellow",
3336
+ "colspan": 1,
3337
+ "colwidth": [
3338
+ 300,
3339
+ ],
3340
+ "rowspan": 1,
3341
+ "textAlignment": "left",
3342
+ "textColor": "red",
3343
+ },
3344
+ "content": [
3345
+ {
3346
+ "content": [
3347
+ {
3348
+ "text": "Table Cell",
3349
+ "type": "text",
3350
+ },
3351
+ ],
3352
+ "type": "tableParagraph",
3353
+ },
3354
+ ],
3355
+ "type": "tableCell",
3356
+ },
3357
+ ],
3358
+ "type": "tableRow",
3359
+ },
3360
+ {
3361
+ "content": [
3362
+ {
3363
+ "attrs": {
3364
+ "backgroundColor": "default",
3365
+ "colspan": 1,
3366
+ "colwidth": [
3367
+ 100,
3368
+ ],
3369
+ "rowspan": 2,
3370
+ "textAlignment": "left",
3371
+ "textColor": "default",
3372
+ },
3373
+ "content": [
3374
+ {
3375
+ "content": [
3376
+ {
3377
+ "text": "Table Cell",
3378
+ "type": "text",
3379
+ },
3380
+ ],
3381
+ "type": "tableParagraph",
3382
+ },
3383
+ ],
3384
+ "type": "tableCell",
3385
+ },
3386
+ {
3387
+ "attrs": {
3388
+ "backgroundColor": "default",
3389
+ "colspan": 2,
3390
+ "colwidth": [
3391
+ 200,
3392
+ 300,
3393
+ ],
3394
+ "rowspan": 1,
3395
+ "textAlignment": "left",
3396
+ "textColor": "default",
3397
+ },
3398
+ "content": [
3399
+ {
3400
+ "content": [
3401
+ {
3402
+ "text": "Table Cell",
3403
+ "type": "text",
3404
+ },
3405
+ ],
3406
+ "type": "tableParagraph",
3407
+ },
3408
+ ],
3409
+ "type": "tableCell",
3410
+ },
3411
+ ],
3412
+ "type": "tableRow",
3413
+ },
3414
+ {
3415
+ "content": [
3416
+ {
3417
+ "attrs": {
3418
+ "backgroundColor": "default",
3419
+ "colspan": 1,
3420
+ "colwidth": [
3421
+ 200,
3422
+ ],
3423
+ "rowspan": 1,
3424
+ "textAlignment": "left",
3425
+ "textColor": "default",
3426
+ },
3427
+ "content": [
3428
+ {
3429
+ "content": [
3430
+ {
3431
+ "text": "Table Cell",
3432
+ "type": "text",
3433
+ },
3434
+ ],
3435
+ "type": "tableParagraph",
3436
+ },
3437
+ ],
3438
+ "type": "tableCell",
3439
+ },
3440
+ {
3441
+ "attrs": {
3442
+ "backgroundColor": "default",
3443
+ "colspan": 1,
3444
+ "colwidth": [
3445
+ 300,
3446
+ ],
3447
+ "rowspan": 1,
3448
+ "textAlignment": "left",
3449
+ "textColor": "default",
2485
3450
  },
2486
3451
  "content": [
2487
3452
  {