@blocknote/core 0.13.3 → 0.13.4

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 (84) hide show
  1. package/dist/blocknote.js +1038 -696
  2. package/dist/blocknote.js.map +1 -1
  3. package/dist/blocknote.umd.cjs +6 -6
  4. package/dist/blocknote.umd.cjs.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/webpack-stats.json +1 -1
  7. package/package.json +2 -2
  8. package/src/api/exporters/html/__snapshots__/image/basic/internal.html +1 -1
  9. package/src/api/exporters/html/__snapshots__/image/nested/internal.html +1 -1
  10. package/src/api/exporters/html/__snapshots__/image/noCaption/internal.html +1 -1
  11. package/src/api/exporters/html/__snapshots__/image/noName/internal.html +1 -1
  12. package/src/api/exporters/html/__snapshots__/lists/basic/external.html +1 -0
  13. package/src/api/exporters/html/__snapshots__/lists/basic/internal.html +1 -0
  14. package/src/api/exporters/html/__snapshots__/lists/nested/external.html +1 -0
  15. package/src/api/exporters/html/__snapshots__/lists/nested/internal.html +1 -0
  16. package/src/api/exporters/html/__snapshots__/simpleImage/basic/external.html +1 -1
  17. package/src/api/exporters/html/__snapshots__/simpleImage/basic/internal.html +1 -1
  18. package/src/api/exporters/html/__snapshots__/simpleImage/nested/external.html +1 -1
  19. package/src/api/exporters/html/__snapshots__/simpleImage/nested/internal.html +1 -1
  20. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/external.html +1 -1
  21. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/internal.html +1 -1
  22. package/src/api/exporters/html/__snapshots__/simpleImage/noName/external.html +1 -1
  23. package/src/api/exporters/html/__snapshots__/simpleImage/noName/internal.html +1 -1
  24. package/src/api/exporters/html/externalHTMLExporter.ts +4 -3
  25. package/src/api/exporters/html/util/simplifyBlocksRehypePlugin.ts +1 -1
  26. package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -0
  27. package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +10 -0
  28. package/src/api/exporters/markdown/__snapshots__/simpleImage/basic/markdown.md +1 -1
  29. package/src/api/exporters/markdown/__snapshots__/simpleImage/nested/markdown.md +2 -2
  30. package/src/api/exporters/markdown/__snapshots__/simpleImage/noCaption/markdown.md +1 -1
  31. package/src/api/exporters/markdown/__snapshots__/simpleImage/noName/markdown.md +1 -1
  32. package/src/api/exporters/markdown/markdownExporter.ts +2 -0
  33. package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +42 -0
  34. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +50 -0
  35. package/src/api/parsers/html/__snapshots__/paste/list-test.json +74 -2
  36. package/src/api/parsers/html/__snapshots__/paste/parse-mixed-nested-lists.json +135 -10
  37. package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists-with-paragraphs.json +132 -7
  38. package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists.json +111 -3
  39. package/src/api/parsers/html/parseHTML.test.ts +166 -95
  40. package/src/api/testUtil/cases/customBlocks.ts +3 -0
  41. package/src/api/testUtil/cases/defaultSchema.ts +71 -0
  42. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +3 -2
  43. package/src/blocks/FileBlockContent/FileBlockContent.ts +1 -2
  44. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +3 -2
  45. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +3 -0
  46. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +266 -0
  47. package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +2 -1
  48. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +1 -0
  49. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +0 -1
  50. package/src/blocks/defaultBlockTypeGuards.ts +1 -1
  51. package/src/blocks/defaultBlocks.ts +6 -3
  52. package/src/editor/Block.css +22 -0
  53. package/src/editor/BlockNoteEditor.ts +10 -0
  54. package/src/editor/transformPasted.ts +2 -1
  55. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +13 -0
  56. package/src/extensions/TableHandles/TableHandlesPlugin.ts +27 -27
  57. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +7 -1
  58. package/src/i18n/locales/en.ts +15 -0
  59. package/src/i18n/locales/fr.ts +14 -0
  60. package/src/i18n/locales/is.ts +7 -0
  61. package/src/i18n/locales/ja.ts +24 -1
  62. package/src/i18n/locales/ko.ts +15 -0
  63. package/src/i18n/locales/nl.ts +7 -0
  64. package/src/i18n/locales/pl.ts +7 -0
  65. package/src/i18n/locales/pt.ts +14 -0
  66. package/src/i18n/locales/vi.ts +16 -2
  67. package/src/i18n/locales/zh.ts +16 -0
  68. package/src/pm-nodes/BlockContainer.ts +16 -4
  69. package/src/schema/blocks/types.ts +0 -1
  70. package/types/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.d.ts +7 -0
  71. package/types/src/api/testUtil/cases/customBlocks.d.ts +74 -42
  72. package/types/src/api/testUtil/cases/customInlineContent.d.ts +74 -42
  73. package/types/src/api/testUtil/cases/customStyles.d.ts +74 -42
  74. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +0 -3
  75. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +0 -3
  76. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +0 -3
  77. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +55 -0
  78. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +0 -3
  79. package/types/src/blocks/defaultBlocks.d.ts +141 -77
  80. package/types/src/editor/BlockNoteEditor.d.ts +7 -0
  81. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +1 -1
  82. package/types/src/i18n/locales/en.d.ts +7 -0
  83. package/types/src/pm-nodes/BlockContainer.d.ts +1 -1
  84. package/types/src/schema/blocks/types.d.ts +0 -1
@@ -144,6 +144,80 @@ export declare const defaultBlockSpecs: {
144
144
  };
145
145
  }, any, InlineContentSchema, StyleSchema>;
146
146
  };
147
+ checkListItem: {
148
+ config: {
149
+ type: "checkListItem";
150
+ content: "inline";
151
+ propSchema: {
152
+ checked: {
153
+ default: false;
154
+ };
155
+ backgroundColor: {
156
+ default: "default";
157
+ };
158
+ textColor: {
159
+ default: "default";
160
+ };
161
+ textAlignment: {
162
+ default: "left";
163
+ values: readonly ["left", "center", "right", "justify"];
164
+ };
165
+ };
166
+ };
167
+ implementation: import("../schema").TiptapBlockImplementation<{
168
+ type: "checkListItem";
169
+ content: "inline";
170
+ propSchema: {
171
+ checked: {
172
+ default: false;
173
+ };
174
+ backgroundColor: {
175
+ default: "default";
176
+ };
177
+ textColor: {
178
+ default: "default";
179
+ };
180
+ textAlignment: {
181
+ default: "left";
182
+ values: readonly ["left", "center", "right", "justify"];
183
+ };
184
+ };
185
+ }, any, InlineContentSchema, StyleSchema>;
186
+ };
187
+ table: {
188
+ config: {
189
+ type: "table";
190
+ content: "table";
191
+ propSchema: {
192
+ backgroundColor: {
193
+ default: "default";
194
+ };
195
+ textColor: {
196
+ default: "default";
197
+ };
198
+ textAlignment: {
199
+ default: "left";
200
+ values: readonly ["left", "center", "right", "justify"];
201
+ };
202
+ };
203
+ };
204
+ implementation: import("../schema").TiptapBlockImplementation<{
205
+ type: "table";
206
+ content: "table";
207
+ propSchema: {
208
+ backgroundColor: {
209
+ default: "default";
210
+ };
211
+ textColor: {
212
+ default: "default";
213
+ };
214
+ textAlignment: {
215
+ default: "left";
216
+ values: readonly ["left", "center", "right", "justify"];
217
+ };
218
+ };
219
+ }, any, InlineContentSchema, StyleSchema>;
220
+ };
147
221
  file: {
148
222
  config: {
149
223
  type: "file";
@@ -163,7 +237,6 @@ export declare const defaultBlockSpecs: {
163
237
  };
164
238
  content: "none";
165
239
  isFileBlock: true;
166
- isFileBlockPlaceholder: (block: any) => boolean;
167
240
  };
168
241
  implementation: import("../schema").TiptapBlockImplementation<{
169
242
  type: "file";
@@ -183,7 +256,6 @@ export declare const defaultBlockSpecs: {
183
256
  };
184
257
  content: "none";
185
258
  isFileBlock: true;
186
- isFileBlockPlaceholder: (block: any) => boolean;
187
259
  }, any, InlineContentSchema, StyleSchema>;
188
260
  };
189
261
  image: {
@@ -215,7 +287,6 @@ export declare const defaultBlockSpecs: {
215
287
  };
216
288
  content: "none";
217
289
  isFileBlock: true;
218
- isFileBlockPlaceholder: (block: any) => boolean;
219
290
  fileBlockAcceptMimeTypes: string[];
220
291
  };
221
292
  implementation: import("../schema").TiptapBlockImplementation<{
@@ -246,7 +317,6 @@ export declare const defaultBlockSpecs: {
246
317
  };
247
318
  content: "none";
248
319
  isFileBlock: true;
249
- isFileBlockPlaceholder: (block: any) => boolean;
250
320
  fileBlockAcceptMimeTypes: string[];
251
321
  }, any, InlineContentSchema, StyleSchema>;
252
322
  };
@@ -279,7 +349,6 @@ export declare const defaultBlockSpecs: {
279
349
  };
280
350
  content: "none";
281
351
  isFileBlock: true;
282
- isFileBlockPlaceholder: (block: any) => boolean;
283
352
  fileBlockAcceptMimeTypes: string[];
284
353
  };
285
354
  implementation: import("../schema").TiptapBlockImplementation<{
@@ -310,7 +379,6 @@ export declare const defaultBlockSpecs: {
310
379
  };
311
380
  content: "none";
312
381
  isFileBlock: true;
313
- isFileBlockPlaceholder: (block: any) => boolean;
314
382
  fileBlockAcceptMimeTypes: string[];
315
383
  }, any, InlineContentSchema, StyleSchema>;
316
384
  };
@@ -336,7 +404,6 @@ export declare const defaultBlockSpecs: {
336
404
  };
337
405
  content: "none";
338
406
  isFileBlock: true;
339
- isFileBlockPlaceholder: (block: any) => boolean;
340
407
  fileBlockAcceptMimeTypes: string[];
341
408
  };
342
409
  implementation: import("../schema").TiptapBlockImplementation<{
@@ -360,14 +427,15 @@ export declare const defaultBlockSpecs: {
360
427
  };
361
428
  content: "none";
362
429
  isFileBlock: true;
363
- isFileBlockPlaceholder: (block: any) => boolean;
364
430
  fileBlockAcceptMimeTypes: string[];
365
431
  }, any, InlineContentSchema, StyleSchema>;
366
432
  };
367
- table: {
433
+ };
434
+ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpecs<{
435
+ paragraph: {
368
436
  config: {
369
- type: "table";
370
- content: "table";
437
+ type: "paragraph";
438
+ content: "inline";
371
439
  propSchema: {
372
440
  backgroundColor: {
373
441
  default: "default";
@@ -382,8 +450,8 @@ export declare const defaultBlockSpecs: {
382
450
  };
383
451
  };
384
452
  implementation: import("../schema").TiptapBlockImplementation<{
385
- type: "table";
386
- content: "table";
453
+ type: "paragraph";
454
+ content: "inline";
387
455
  propSchema: {
388
456
  backgroundColor: {
389
457
  default: "default";
@@ -398,13 +466,15 @@ export declare const defaultBlockSpecs: {
398
466
  };
399
467
  }, any, InlineContentSchema, StyleSchema>;
400
468
  };
401
- };
402
- export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpecs<{
403
- paragraph: {
469
+ heading: {
404
470
  config: {
405
- type: "paragraph";
471
+ type: "heading";
406
472
  content: "inline";
407
473
  propSchema: {
474
+ level: {
475
+ default: number;
476
+ values: readonly [1, 2, 3];
477
+ };
408
478
  backgroundColor: {
409
479
  default: "default";
410
480
  };
@@ -418,9 +488,13 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
418
488
  };
419
489
  };
420
490
  implementation: import("../schema").TiptapBlockImplementation<{
421
- type: "paragraph";
491
+ type: "heading";
422
492
  content: "inline";
423
493
  propSchema: {
494
+ level: {
495
+ default: number;
496
+ values: readonly [1, 2, 3];
497
+ };
424
498
  backgroundColor: {
425
499
  default: "default";
426
500
  };
@@ -434,15 +508,11 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
434
508
  };
435
509
  }, any, InlineContentSchema, StyleSchema>;
436
510
  };
437
- heading: {
511
+ bulletListItem: {
438
512
  config: {
439
- type: "heading";
513
+ type: "bulletListItem";
440
514
  content: "inline";
441
515
  propSchema: {
442
- level: {
443
- default: number;
444
- values: readonly [1, 2, 3];
445
- };
446
516
  backgroundColor: {
447
517
  default: "default";
448
518
  };
@@ -456,13 +526,9 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
456
526
  };
457
527
  };
458
528
  implementation: import("../schema").TiptapBlockImplementation<{
459
- type: "heading";
529
+ type: "bulletListItem";
460
530
  content: "inline";
461
531
  propSchema: {
462
- level: {
463
- default: number;
464
- values: readonly [1, 2, 3];
465
- };
466
532
  backgroundColor: {
467
533
  default: "default";
468
534
  };
@@ -476,9 +542,9 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
476
542
  };
477
543
  }, any, InlineContentSchema, StyleSchema>;
478
544
  };
479
- bulletListItem: {
545
+ numberedListItem: {
480
546
  config: {
481
- type: "bulletListItem";
547
+ type: "numberedListItem";
482
548
  content: "inline";
483
549
  propSchema: {
484
550
  backgroundColor: {
@@ -494,7 +560,7 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
494
560
  };
495
561
  };
496
562
  implementation: import("../schema").TiptapBlockImplementation<{
497
- type: "bulletListItem";
563
+ type: "numberedListItem";
498
564
  content: "inline";
499
565
  propSchema: {
500
566
  backgroundColor: {
@@ -510,11 +576,14 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
510
576
  };
511
577
  }, any, InlineContentSchema, StyleSchema>;
512
578
  };
513
- numberedListItem: {
579
+ checkListItem: {
514
580
  config: {
515
- type: "numberedListItem";
581
+ type: "checkListItem";
516
582
  content: "inline";
517
583
  propSchema: {
584
+ checked: {
585
+ default: false;
586
+ };
518
587
  backgroundColor: {
519
588
  default: "default";
520
589
  };
@@ -528,8 +597,45 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
528
597
  };
529
598
  };
530
599
  implementation: import("../schema").TiptapBlockImplementation<{
531
- type: "numberedListItem";
600
+ type: "checkListItem";
532
601
  content: "inline";
602
+ propSchema: {
603
+ checked: {
604
+ default: false;
605
+ };
606
+ backgroundColor: {
607
+ default: "default";
608
+ };
609
+ textColor: {
610
+ default: "default";
611
+ };
612
+ textAlignment: {
613
+ default: "left";
614
+ values: readonly ["left", "center", "right", "justify"];
615
+ };
616
+ };
617
+ }, any, InlineContentSchema, StyleSchema>;
618
+ };
619
+ table: {
620
+ config: {
621
+ type: "table";
622
+ content: "table";
623
+ propSchema: {
624
+ backgroundColor: {
625
+ default: "default";
626
+ };
627
+ textColor: {
628
+ default: "default";
629
+ };
630
+ textAlignment: {
631
+ default: "left";
632
+ values: readonly ["left", "center", "right", "justify"];
633
+ };
634
+ };
635
+ };
636
+ implementation: import("../schema").TiptapBlockImplementation<{
637
+ type: "table";
638
+ content: "table";
533
639
  propSchema: {
534
640
  backgroundColor: {
535
641
  default: "default";
@@ -563,7 +669,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
563
669
  };
564
670
  content: "none";
565
671
  isFileBlock: true;
566
- isFileBlockPlaceholder: (block: any) => boolean;
567
672
  };
568
673
  implementation: import("../schema").TiptapBlockImplementation<{
569
674
  type: "file";
@@ -583,7 +688,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
583
688
  };
584
689
  content: "none";
585
690
  isFileBlock: true;
586
- isFileBlockPlaceholder: (block: any) => boolean;
587
691
  }, any, InlineContentSchema, StyleSchema>;
588
692
  };
589
693
  image: {
@@ -615,7 +719,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
615
719
  };
616
720
  content: "none";
617
721
  isFileBlock: true;
618
- isFileBlockPlaceholder: (block: any) => boolean;
619
722
  fileBlockAcceptMimeTypes: string[];
620
723
  };
621
724
  implementation: import("../schema").TiptapBlockImplementation<{
@@ -646,7 +749,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
646
749
  };
647
750
  content: "none";
648
751
  isFileBlock: true;
649
- isFileBlockPlaceholder: (block: any) => boolean;
650
752
  fileBlockAcceptMimeTypes: string[];
651
753
  }, any, InlineContentSchema, StyleSchema>;
652
754
  };
@@ -679,7 +781,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
679
781
  };
680
782
  content: "none";
681
783
  isFileBlock: true;
682
- isFileBlockPlaceholder: (block: any) => boolean;
683
784
  fileBlockAcceptMimeTypes: string[];
684
785
  };
685
786
  implementation: import("../schema").TiptapBlockImplementation<{
@@ -710,7 +811,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
710
811
  };
711
812
  content: "none";
712
813
  isFileBlock: true;
713
- isFileBlockPlaceholder: (block: any) => boolean;
714
814
  fileBlockAcceptMimeTypes: string[];
715
815
  }, any, InlineContentSchema, StyleSchema>;
716
816
  };
@@ -736,7 +836,6 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
736
836
  };
737
837
  content: "none";
738
838
  isFileBlock: true;
739
- isFileBlockPlaceholder: (block: any) => boolean;
740
839
  fileBlockAcceptMimeTypes: string[];
741
840
  };
742
841
  implementation: import("../schema").TiptapBlockImplementation<{
@@ -760,44 +859,9 @@ export declare const defaultBlockSchema: import("../schema").BlockSchemaFromSpec
760
859
  };
761
860
  content: "none";
762
861
  isFileBlock: true;
763
- isFileBlockPlaceholder: (block: any) => boolean;
764
862
  fileBlockAcceptMimeTypes: string[];
765
863
  }, any, InlineContentSchema, StyleSchema>;
766
864
  };
767
- table: {
768
- config: {
769
- type: "table";
770
- content: "table";
771
- propSchema: {
772
- backgroundColor: {
773
- default: "default";
774
- };
775
- textColor: {
776
- default: "default";
777
- };
778
- textAlignment: {
779
- default: "left";
780
- values: readonly ["left", "center", "right", "justify"];
781
- };
782
- };
783
- };
784
- implementation: import("../schema").TiptapBlockImplementation<{
785
- type: "table";
786
- content: "table";
787
- propSchema: {
788
- backgroundColor: {
789
- default: "default";
790
- };
791
- textColor: {
792
- default: "default";
793
- };
794
- textAlignment: {
795
- default: "left";
796
- values: readonly ["left", "center", "right", "justify"];
797
- };
798
- };
799
- }, any, InlineContentSchema, StyleSchema>;
800
- };
801
865
  }>;
802
866
  export type _DefaultBlockSchema = typeof defaultBlockSchema;
803
867
  export type DefaultBlockSchema = _DefaultBlockSchema;
@@ -50,6 +50,12 @@ export type BlockNoteEditorOptions<BSchema extends BlockSchema, ISchema extends
50
50
  * @returns The URL of the uploaded file OR an object containing props that should be set on the file block (such as an id)
51
51
  */
52
52
  uploadFile: (file: File) => Promise<string | Record<string, any>>;
53
+ /**
54
+ * Resolve a URL of a file block to one that can be displayed or downloaded. This can be used for creating authenticated URL or
55
+ * implementing custom protocols / schemes
56
+ * @returns The URL that's
57
+ */
58
+ resolveFileUrl: (url: string) => Promise<string>;
53
59
  /**
54
60
  * When enabled, allows for collaboration between multiple users.
55
61
  */
@@ -95,6 +101,7 @@ export declare class BlockNoteEditor<BSchema extends BlockSchema = DefaultBlockS
95
101
  readonly filePanel?: FilePanelProsemirrorPlugin<BSchema, ISchema, SSchema>;
96
102
  readonly tableHandles?: TableHandlesProsemirrorPlugin<ISchema, SSchema>;
97
103
  readonly uploadFile: ((file: File) => Promise<string | Record<string, any>>) | undefined;
104
+ readonly resolveFileUrl: (url: string) => Promise<string>;
98
105
  static create<BSchema extends BlockSchema = DefaultBlockSchema, ISchema extends InlineContentSchema = DefaultInlineContentSchema, SSchema extends StyleSchema = DefaultStyleSchema>(options?: Partial<BlockNoteEditorOptions<BSchema, ISchema, SSchema>>): BlockNoteEditor<BSchema, ISchema, SSchema>;
99
106
  private constructor();
100
107
  /**
@@ -17,7 +17,7 @@ export type TableHandlesState<I extends InlineContentSchema, S extends StyleSche
17
17
  mousePos: number;
18
18
  } | undefined;
19
19
  };
20
- export declare class TableHandlesView<BSchema extends BlockSchemaWithBlock<"table", DefaultBlockSchema["table"]>, I extends InlineContentSchema, S extends StyleSchema> implements PluginView {
20
+ export declare class TableHandlesView<I extends InlineContentSchema, S extends StyleSchema> implements PluginView {
21
21
  private readonly editor;
22
22
  private readonly pmView;
23
23
  state?: TableHandlesState<I, S>;
@@ -30,6 +30,12 @@ export declare const en: {
30
30
  aliases: string[];
31
31
  group: string;
32
32
  };
33
+ check_list: {
34
+ title: string;
35
+ subtext: string;
36
+ aliases: string[];
37
+ group: string;
38
+ };
33
39
  paragraph: {
34
40
  title: string;
35
41
  subtext: string;
@@ -72,6 +78,7 @@ export declare const en: {
72
78
  heading: string;
73
79
  bulletListItem: string;
74
80
  numberedListItem: string;
81
+ checkListItem: string;
75
82
  };
76
83
  file_blocks: {
77
84
  image: {
@@ -8,7 +8,7 @@ declare module "@tiptap/core" {
8
8
  BNCreateBlock: (pos: number) => ReturnType;
9
9
  BNDeleteBlock: (posInBlock: number) => ReturnType;
10
10
  BNMergeBlocks: (posBetweenBlocks: number) => ReturnType;
11
- BNSplitBlock: (posInBlock: number, keepType: boolean) => ReturnType;
11
+ BNSplitBlock: (posInBlock: number, keepType?: boolean, keepProps?: boolean) => ReturnType;
12
12
  BNUpdateBlock: <BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(posInBlock: number, block: PartialBlock<BSchema, I, S>) => ReturnType;
13
13
  BNCreateOrUpdateBlock: <BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(posInBlock: number, block: PartialBlock<BSchema, I, S>) => ReturnType;
14
14
  };
@@ -29,7 +29,6 @@ export type FileBlockConfig = {
29
29
  };
30
30
  content: "none";
31
31
  isFileBlock: true;
32
- isFileBlockPlaceholder: (block: any) => boolean;
33
32
  fileBlockAcceptMimeTypes?: string[];
34
33
  };
35
34
  export type BlockConfig = {