@blocknote/core 0.24.2 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote.cjs +12 -0
- package/dist/blocknote.cjs.map +1 -0
- package/dist/blocknote.js +4784 -3545
- package/dist/blocknote.js.map +1 -1
- package/dist/comments.cjs +2 -0
- package/dist/comments.cjs.map +1 -0
- package/dist/comments.js +593 -0
- package/dist/comments.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +40 -27
- package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +1022 -378
- package/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +730 -270
- package/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap +3100 -1260
- package/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap +438 -162
- package/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +1168 -432
- package/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +930 -378
- package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +2485 -1015
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +28 -1
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +1 -1
- package/src/api/blockManipulation/selections/__snapshots__/selection.test.ts.snap +292 -108
- package/src/api/blockManipulation/setupTestEnv.ts +14 -1
- package/src/api/blockManipulation/tables/tables.test.ts +1987 -0
- package/src/api/blockManipulation/tables/tables.ts +887 -0
- package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraph.html +66 -24
- package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraphText.html +66 -24
- package/src/api/clipboard/__snapshots__/external/pasteImage.html +66 -24
- package/src/api/clipboard/__snapshots__/external/pasteParagraphInCustomBlock.html +66 -24
- package/src/api/clipboard/__snapshots__/external/pasteTable.html +132 -48
- package/src/api/clipboard/__snapshots__/external/pasteTableInExistingTable.html +136 -44
- package/src/api/clipboard/toClipboard/copyExtension.ts +2 -3
- package/src/api/exporters/html/__snapshots__/table/headerCols/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/headerCols/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/headerRows/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/headerRows/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/headersRows/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/headersRows/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/mixedCellColors/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/mixedCellColors/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/table/mixedRowspansAndColspans/internal.html +1 -0
- package/src/api/exporters/markdown/__snapshots__/table/headerCols/markdown.md +4 -0
- package/src/api/exporters/markdown/__snapshots__/table/headerRows/markdown.md +4 -0
- package/src/api/exporters/markdown/__snapshots__/table/mixedCellColors/markdown.md +5 -0
- package/src/api/exporters/markdown/__snapshots__/table/mixedRowspansAndColspans/markdown.md +5 -0
- package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +985 -20
- package/src/api/nodeConversions/blockToNode.ts +63 -20
- package/src/api/nodeConversions/nodeToBlock.ts +75 -13
- package/src/api/parsers/html/__snapshots__/parse-notion-html.json +145 -54
- package/src/api/testUtil/cases/defaultSchema.ts +782 -9
- package/src/api/testUtil/partialBlockTestUtil.ts +39 -4
- package/src/blocks/TableBlockContent/TableBlockContent.ts +11 -5
- package/src/blocks/defaultBlockTypeGuards.ts +8 -0
- package/src/comments/index.ts +9 -0
- package/src/comments/models/User.ts +8 -0
- package/src/comments/threadstore/DefaultThreadStoreAuth.ts +106 -0
- package/src/comments/threadstore/ThreadStore.ts +134 -0
- package/src/comments/threadstore/ThreadStoreAuth.ts +13 -0
- package/src/comments/threadstore/TipTapThreadStore.ts +292 -0
- package/src/comments/threadstore/yjs/RESTYjsThreadStore.ts +144 -0
- package/src/comments/threadstore/yjs/YjsThreadStore.test.ts +294 -0
- package/src/comments/threadstore/yjs/YjsThreadStore.ts +340 -0
- package/src/comments/threadstore/yjs/YjsThreadStoreBase.ts +48 -0
- package/src/comments/threadstore/yjs/yjsHelpers.ts +121 -0
- package/src/comments/types.ts +117 -0
- package/src/editor/Block.css +16 -8
- package/src/editor/BlockNoteEditor.ts +269 -92
- package/src/editor/BlockNoteExtensions.ts +24 -1
- package/src/editor/BlockNoteTipTapEditor.ts +5 -1
- package/src/editor/editor.css +23 -4
- package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +1 -1
- package/src/extensions/Collaboration/createCollaborationExtensions.ts +8 -17
- package/src/extensions/Comments/CommentMark.ts +61 -0
- package/src/extensions/Comments/CommentsPlugin.ts +301 -0
- package/src/extensions/Comments/userstore/UserStore.ts +72 -0
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +9 -5
- package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +3 -3
- package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +52 -0
- package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +34 -17
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +409 -57
- package/src/extensions/TextAlignment/TextAlignmentExtension.ts +2 -0
- package/src/extensions/TextColor/TextColorExtension.ts +1 -1
- package/src/i18n/locales/ar.ts +23 -0
- package/src/i18n/locales/de.ts +15 -0
- package/src/i18n/locales/en.ts +25 -1
- package/src/i18n/locales/es.ts +16 -1
- package/src/i18n/locales/fr.ts +23 -0
- package/src/i18n/locales/hr.ts +18 -0
- package/src/i18n/locales/is.ts +24 -1
- package/src/i18n/locales/it.ts +15 -0
- package/src/i18n/locales/ja.ts +23 -0
- package/src/i18n/locales/ko.ts +23 -0
- package/src/i18n/locales/nl.ts +23 -0
- package/src/i18n/locales/no.ts +23 -0
- package/src/i18n/locales/pl.ts +23 -0
- package/src/i18n/locales/pt.ts +23 -0
- package/src/i18n/locales/ru.ts +23 -0
- package/src/i18n/locales/uk.ts +23 -0
- package/src/i18n/locales/vi.ts +23 -0
- package/src/i18n/locales/zh.ts +23 -0
- package/src/index.ts +6 -4
- package/src/schema/blocks/types.ts +32 -2
- package/src/util/browser.ts +1 -1
- package/src/util/table.ts +107 -0
- package/types/src/api/blockManipulation/tables/tables.d.ts +343 -0
- package/types/src/api/blockManipulation/tables/tables.test.d.ts +1 -0
- package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
- package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +1 -2
- package/types/src/blocks/defaultBlockTypeGuards.d.ts +3 -0
- package/types/src/comments/index.d.ts +9 -0
- package/types/src/comments/models/User.d.ts +8 -0
- package/types/src/comments/threadstore/DefaultThreadStoreAuth.d.ts +47 -0
- package/types/src/comments/threadstore/ThreadStore.d.ts +121 -0
- package/types/src/comments/threadstore/ThreadStoreAuth.d.ts +12 -0
- package/types/src/comments/threadstore/TipTapThreadStore.d.ts +97 -0
- package/types/src/comments/threadstore/yjs/RESTYjsThreadStore.d.ts +83 -0
- package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +79 -0
- package/types/src/comments/threadstore/yjs/YjsThreadStore.test.d.ts +1 -0
- package/types/src/comments/threadstore/yjs/YjsThreadStoreBase.d.ts +15 -0
- package/types/src/comments/threadstore/yjs/yjsHelpers.d.ts +13 -0
- package/types/src/comments/types.d.ts +109 -0
- package/types/src/editor/BlockNoteEditor.d.ts +146 -66
- package/types/src/editor/BlockNoteExtensions.d.ts +4 -0
- package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
- package/types/src/extensions/Comments/CommentMark.d.ts +2 -0
- package/types/src/extensions/Comments/CommentsPlugin.d.ts +49 -0
- package/types/src/extensions/Comments/userstore/UserStore.d.ts +31 -0
- package/types/src/extensions/ShowSelection/ShowSelectionPlugin.d.ts +15 -0
- package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +66 -1
- package/types/src/i18n/locales/de.d.ts +15 -0
- package/types/src/i18n/locales/en.d.ts +20 -0
- package/types/src/i18n/locales/es.d.ts +15 -0
- package/types/src/i18n/locales/hr.d.ts +18 -0
- package/types/src/i18n/locales/it.d.ts +15 -0
- package/types/src/index.d.ts +5 -4
- package/types/src/pm-nodes/BlockContainer.d.ts +2 -2
- package/types/src/pm-nodes/BlockGroup.d.ts +2 -2
- package/types/src/schema/blocks/types.d.ts +23 -2
- package/types/src/util/browser.d.ts +1 -1
- package/types/src/util/table.d.ts +12 -0
- package/dist/blocknote.umd.cjs +0 -11
- package/dist/blocknote.umd.cjs.map +0 -1
package/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap
CHANGED
|
@@ -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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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
|
-
|
|
624
|
-
|
|
625
|
-
|
|
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
|
-
|
|
631
|
-
|
|
632
|
-
|
|
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
|
-
|
|
638
|
-
|
|
639
|
-
|
|
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
|
-
|
|
649
|
-
|
|
650
|
-
|
|
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
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|
-
|
|
663
|
-
|
|
664
|
-
|
|
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
|
-
|
|
674
|
-
|
|
675
|
-
|
|
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
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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
|
-
|
|
688
|
-
|
|
689
|
-
|
|
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
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
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
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
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
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
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
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
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
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
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
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
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
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
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
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
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
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
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
|
],
|