@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
@@ -32,6 +32,20 @@ export const ko: Dictionary = {
32
32
  aliases: ["ul", "li", "목록", "글머리 기호 목록", "글머리 목록"],
33
33
  group: "기본 블록",
34
34
  },
35
+ check_list: {
36
+ title: "체크리스트",
37
+ subtext: "체크박스가 있는 목록을 표시하는 데 사용",
38
+ aliases: [
39
+ "ul",
40
+ "li",
41
+ "목록",
42
+ "체크리스트",
43
+ "체크 리스트",
44
+ "체크된 목록",
45
+ "체크박스",
46
+ ],
47
+ group: "기본 블록",
48
+ },
35
49
  paragraph: {
36
50
  title: "본문",
37
51
  subtext: "일반 텍스트",
@@ -101,6 +115,7 @@ export const ko: Dictionary = {
101
115
  heading: "제목",
102
116
  bulletListItem: "목록",
103
117
  numberedListItem: "목록",
118
+ checkListItem: "목록",
104
119
  },
105
120
  file_blocks: {
106
121
  image: {
@@ -32,6 +32,12 @@ export const nl: Dictionary = {
32
32
  aliases: ["ul", "li", "lijst", "puntenlijst", "punten lijst"],
33
33
  group: "Basisblokken",
34
34
  },
35
+ check_list: {
36
+ title: "Controlelijst",
37
+ subtext: "Gebruikt om een lijst met selectievakjes weer te geven",
38
+ aliases: ["ul", "li", "lijst", "aangevinkte lijst", "selectievakje"],
39
+ group: "Basisblokken",
40
+ },
35
41
  paragraph: {
36
42
  title: "Paragraaf",
37
43
  subtext: "Gebruikt voor de hoofdtekst van uw document",
@@ -100,6 +106,7 @@ export const nl: Dictionary = {
100
106
  heading: "Kop",
101
107
  bulletListItem: "Lijst",
102
108
  numberedListItem: "Lijst",
109
+ checkListItem: "Lijst",
103
110
  },
104
111
  file_blocks: {
105
112
  image: {
@@ -32,6 +32,12 @@ export const pl: Dictionary = {
32
32
  aliases: ["ul", "li", "lista", "punktowana lista"],
33
33
  group: "Podstawowe bloki",
34
34
  },
35
+ check_list: {
36
+ title: "Lista z polami wyboru",
37
+ subtext: "Używana do wyświetlania listy z polami wyboru",
38
+ aliases: ["ul", "li", "lista", "lista z polami wyboru", "pole wyboru"],
39
+ group: "Podstawowe bloki",
40
+ },
35
41
  paragraph: {
36
42
  title: "Akapit",
37
43
  subtext: "Używany dla treści dokumentu",
@@ -90,6 +96,7 @@ export const pl: Dictionary = {
90
96
  heading: "Nagłówek",
91
97
  bulletListItem: "Lista",
92
98
  numberedListItem: "Lista",
99
+ checkListItem: "Lista",
93
100
  },
94
101
  file_blocks: {
95
102
  image: {
@@ -32,6 +32,19 @@ export const pt: Dictionary = {
32
32
  aliases: ["ul", "li", "lista", "listamarcadores", "lista com marcadores"],
33
33
  group: "Blocos Básicos",
34
34
  },
35
+ check_list: {
36
+ title: "Lista de verificação",
37
+ subtext: "Usado para exibir uma lista com caixas de seleção",
38
+ aliases: [
39
+ "ul",
40
+ "li",
41
+ "lista",
42
+ "lista de verificação",
43
+ "lista marcada",
44
+ "caixa de seleção",
45
+ ],
46
+ group: "Blocos básicos",
47
+ },
35
48
  paragraph: {
36
49
  title: "Parágrafo",
37
50
  subtext: "Usado para o corpo do seu documento",
@@ -90,6 +103,7 @@ export const pt: Dictionary = {
90
103
  heading: "Título",
91
104
  bulletListItem: "Lista",
92
105
  numberedListItem: "Lista",
106
+ checkListItem: "Lista",
93
107
  },
94
108
  file_blocks: {
95
109
  image: {
@@ -23,13 +23,26 @@ export const vi: Dictionary = {
23
23
  numbered_list: {
24
24
  title: "Danh sách đánh số",
25
25
  subtext: "Sử dụng để hiển thị danh sách có đánh số",
26
- aliases: ["ol", "li", "ds", "danhsachdso", "danh sách đánh số"],
26
+ aliases: ["ol", "li", "ds", "danhsachdso", "danh sach danh so"],
27
27
  group: "Khối cơ bản",
28
28
  },
29
29
  bullet_list: {
30
30
  title: "Danh sách",
31
31
  subtext: "Sử dụng để hiển thị danh sách không đánh số",
32
- aliases: ["ul", "li", "ds", "danhsach", "danh sách"],
32
+ aliases: ["ul", "li", "ds", "danhsach", "danh sach"],
33
+ group: "Khối cơ bản",
34
+ },
35
+ check_list: {
36
+ title: "Danh sách kiểm tra",
37
+ subtext: "Dùng để hiển thị danh sách có hộp kiểm",
38
+ aliases: [
39
+ "ul",
40
+ "li",
41
+ "danh sach",
42
+ "danh sach kiem tra",
43
+ "danh sach da kiem tra",
44
+ "hop kiem",
45
+ ],
33
46
  group: "Khối cơ bản",
34
47
  },
35
48
  paragraph: {
@@ -90,6 +103,7 @@ export const vi: Dictionary = {
90
103
  heading: "Tiêu đề",
91
104
  bulletListItem: "Danh sách",
92
105
  numberedListItem: "Danh sách",
106
+ checkListItem: "Danh sách",
93
107
  },
94
108
  file_blocks: {
95
109
  image: {
@@ -48,6 +48,21 @@ export const zh: Dictionary = {
48
48
  ],
49
49
  group: "基础",
50
50
  },
51
+ check_list: {
52
+ title: "检查清单",
53
+ subtext: "用于显示带有复选框的列表",
54
+ aliases: [
55
+ "ul",
56
+ "li",
57
+ "checklist",
58
+ "checked list",
59
+ "列表",
60
+ "检查清单",
61
+ "勾选列表",
62
+ "复选框",
63
+ ],
64
+ group: "基本块",
65
+ },
51
66
  paragraph: {
52
67
  title: "段落",
53
68
  subtext: "用于文档正文",
@@ -121,6 +136,7 @@ export const zh: Dictionary = {
121
136
  heading: "标题",
122
137
  bulletListItem: "列表",
123
138
  numberedListItem: "列表",
139
+ checkListItem: "列表",
124
140
  },
125
141
  file_blocks: {
126
142
  image: {
@@ -36,7 +36,11 @@ declare module "@tiptap/core" {
36
36
  BNCreateBlock: (pos: number) => ReturnType;
37
37
  BNDeleteBlock: (posInBlock: number) => ReturnType;
38
38
  BNMergeBlocks: (posBetweenBlocks: number) => ReturnType;
39
- BNSplitBlock: (posInBlock: number, keepType: boolean) => ReturnType;
39
+ BNSplitBlock: (
40
+ posInBlock: number,
41
+ keepType?: boolean,
42
+ keepProps?: boolean
43
+ ) => ReturnType;
40
44
  BNUpdateBlock: <
41
45
  BSchema extends BlockSchema,
42
46
  I extends InlineContentSchema,
@@ -402,8 +406,12 @@ export const BlockContainer = Node.create<{
402
406
  },
403
407
  // Splits a block at a given position. Content after the position is moved to a new block below, at the same
404
408
  // nesting level.
409
+ // - `keepType` is usually false, unless the selection is at the start of
410
+ // a block.
411
+ // - `keepProps` is usually true when `keepType` is true, except for when
412
+ // creating new list item blocks with Enter.
405
413
  BNSplitBlock:
406
- (posInBlock, keepType) =>
414
+ (posInBlock, keepType, keepProps) =>
407
415
  ({ state, dispatch }) => {
408
416
  const blockInfo = getBlockInfoFromPos(state.doc, posInBlock);
409
417
  if (blockInfo === undefined) {
@@ -448,7 +456,7 @@ export const BlockContainer = Node.create<{
448
456
  newBlockContentPos,
449
457
  newBlockContentPos,
450
458
  state.schema.node(contentType).type,
451
- contentNode.attrs
459
+ keepProps ? contentNode.attrs : undefined
452
460
  );
453
461
  }
454
462
 
@@ -671,7 +679,11 @@ export const BlockContainer = Node.create<{
671
679
  if (!blockEmpty) {
672
680
  chain()
673
681
  .deleteSelection()
674
- .BNSplitBlock(state.selection.from, selectionAtBlockStart)
682
+ .BNSplitBlock(
683
+ state.selection.from,
684
+ selectionAtBlockStart,
685
+ selectionAtBlockStart
686
+ )
675
687
  .run();
676
688
 
677
689
  return true;
@@ -50,7 +50,6 @@ export type FileBlockConfig = {
50
50
  };
51
51
  content: "none";
52
52
  isFileBlock: true;
53
- isFileBlockPlaceholder: (block: any) => boolean;
54
53
  fileBlockAcceptMimeTypes?: string[];
55
54
  };
56
55
 
@@ -0,0 +1,7 @@
1
+ import { Parent as HASTParent } from "hast";
2
+ /**
3
+ * Rehype plugin which adds a space after each checkbox input element. This is
4
+ * because remark doesn't add any spaces between the checkbox input and the text
5
+ * itself, but these are needed for correct Markdown syntax.
6
+ */
7
+ export declare function addSpacesToCheckboxes(): (tree: HASTParent) => void;
@@ -272,6 +272,80 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
272
272
  };
273
273
  }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
274
274
  };
275
+ checkListItem: {
276
+ config: {
277
+ type: "checkListItem";
278
+ content: "inline";
279
+ propSchema: {
280
+ checked: {
281
+ default: false;
282
+ };
283
+ backgroundColor: {
284
+ default: "default";
285
+ };
286
+ textColor: {
287
+ default: "default";
288
+ };
289
+ textAlignment: {
290
+ default: "left";
291
+ values: readonly ["left", "center", "right", "justify"];
292
+ };
293
+ };
294
+ };
295
+ implementation: import("../../../schema").TiptapBlockImplementation<{
296
+ type: "checkListItem";
297
+ content: "inline";
298
+ propSchema: {
299
+ checked: {
300
+ default: false;
301
+ };
302
+ backgroundColor: {
303
+ default: "default";
304
+ };
305
+ textColor: {
306
+ default: "default";
307
+ };
308
+ textAlignment: {
309
+ default: "left";
310
+ values: readonly ["left", "center", "right", "justify"];
311
+ };
312
+ };
313
+ }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
314
+ };
315
+ table: {
316
+ config: {
317
+ type: "table";
318
+ content: "table";
319
+ propSchema: {
320
+ backgroundColor: {
321
+ default: "default";
322
+ };
323
+ textColor: {
324
+ default: "default";
325
+ };
326
+ textAlignment: {
327
+ default: "left";
328
+ values: readonly ["left", "center", "right", "justify"];
329
+ };
330
+ };
331
+ };
332
+ implementation: import("../../../schema").TiptapBlockImplementation<{
333
+ type: "table";
334
+ content: "table";
335
+ propSchema: {
336
+ backgroundColor: {
337
+ default: "default";
338
+ };
339
+ textColor: {
340
+ default: "default";
341
+ };
342
+ textAlignment: {
343
+ default: "left";
344
+ values: readonly ["left", "center", "right", "justify"];
345
+ };
346
+ };
347
+ }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
348
+ };
275
349
  file: {
276
350
  config: {
277
351
  type: "file";
@@ -291,7 +365,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
291
365
  };
292
366
  content: "none";
293
367
  isFileBlock: true;
294
- isFileBlockPlaceholder: (block: any) => boolean;
295
368
  };
296
369
  implementation: import("../../../schema").TiptapBlockImplementation<{
297
370
  type: "file";
@@ -311,7 +384,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
311
384
  };
312
385
  content: "none";
313
386
  isFileBlock: true;
314
- isFileBlockPlaceholder: (block: any) => boolean;
315
387
  }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
316
388
  };
317
389
  image: {
@@ -343,7 +415,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
343
415
  };
344
416
  content: "none";
345
417
  isFileBlock: true;
346
- isFileBlockPlaceholder: (block: any) => boolean;
347
418
  fileBlockAcceptMimeTypes: string[];
348
419
  };
349
420
  implementation: import("../../../schema").TiptapBlockImplementation<{
@@ -374,7 +445,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
374
445
  };
375
446
  content: "none";
376
447
  isFileBlock: true;
377
- isFileBlockPlaceholder: (block: any) => boolean;
378
448
  fileBlockAcceptMimeTypes: string[];
379
449
  }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
380
450
  };
@@ -407,7 +477,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
407
477
  };
408
478
  content: "none";
409
479
  isFileBlock: true;
410
- isFileBlockPlaceholder: (block: any) => boolean;
411
480
  fileBlockAcceptMimeTypes: string[];
412
481
  };
413
482
  implementation: import("../../../schema").TiptapBlockImplementation<{
@@ -438,7 +507,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
438
507
  };
439
508
  content: "none";
440
509
  isFileBlock: true;
441
- isFileBlockPlaceholder: (block: any) => boolean;
442
510
  fileBlockAcceptMimeTypes: string[];
443
511
  }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
444
512
  };
@@ -464,7 +532,6 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
464
532
  };
465
533
  content: "none";
466
534
  isFileBlock: true;
467
- isFileBlockPlaceholder: (block: any) => boolean;
468
535
  fileBlockAcceptMimeTypes: string[];
469
536
  };
470
537
  implementation: import("../../../schema").TiptapBlockImplementation<{
@@ -488,44 +555,9 @@ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromS
488
555
  };
489
556
  content: "none";
490
557
  isFileBlock: true;
491
- isFileBlockPlaceholder: (block: any) => boolean;
492
558
  fileBlockAcceptMimeTypes: string[];
493
559
  }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
494
560
  };
495
- table: {
496
- config: {
497
- type: "table";
498
- content: "table";
499
- propSchema: {
500
- backgroundColor: {
501
- default: "default";
502
- };
503
- textColor: {
504
- default: "default";
505
- };
506
- textAlignment: {
507
- default: "left";
508
- values: readonly ["left", "center", "right", "justify"];
509
- };
510
- };
511
- };
512
- implementation: import("../../../schema").TiptapBlockImplementation<{
513
- type: "table";
514
- content: "table";
515
- propSchema: {
516
- backgroundColor: {
517
- default: "default";
518
- };
519
- textColor: {
520
- default: "default";
521
- };
522
- textAlignment: {
523
- default: "left";
524
- values: readonly ["left", "center", "right", "justify"];
525
- };
526
- };
527
- }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
528
- };
529
561
  }>, import("../../../schema").InlineContentSchemaFromSpecs<{
530
562
  text: {
531
563
  config: "text";
@@ -146,6 +146,80 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
146
146
  };
147
147
  }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
148
148
  };
149
+ checkListItem: {
150
+ config: {
151
+ type: "checkListItem";
152
+ content: "inline";
153
+ propSchema: {
154
+ checked: {
155
+ default: false;
156
+ };
157
+ backgroundColor: {
158
+ default: "default";
159
+ };
160
+ textColor: {
161
+ default: "default";
162
+ };
163
+ textAlignment: {
164
+ default: "left";
165
+ values: readonly ["left", "center", "right", "justify"];
166
+ };
167
+ };
168
+ };
169
+ implementation: import("../../..").TiptapBlockImplementation<{
170
+ type: "checkListItem";
171
+ content: "inline";
172
+ propSchema: {
173
+ checked: {
174
+ default: false;
175
+ };
176
+ backgroundColor: {
177
+ default: "default";
178
+ };
179
+ textColor: {
180
+ default: "default";
181
+ };
182
+ textAlignment: {
183
+ default: "left";
184
+ values: readonly ["left", "center", "right", "justify"];
185
+ };
186
+ };
187
+ }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
188
+ };
189
+ table: {
190
+ config: {
191
+ type: "table";
192
+ content: "table";
193
+ propSchema: {
194
+ backgroundColor: {
195
+ default: "default";
196
+ };
197
+ textColor: {
198
+ default: "default";
199
+ };
200
+ textAlignment: {
201
+ default: "left";
202
+ values: readonly ["left", "center", "right", "justify"];
203
+ };
204
+ };
205
+ };
206
+ implementation: import("../../..").TiptapBlockImplementation<{
207
+ type: "table";
208
+ content: "table";
209
+ propSchema: {
210
+ backgroundColor: {
211
+ default: "default";
212
+ };
213
+ textColor: {
214
+ default: "default";
215
+ };
216
+ textAlignment: {
217
+ default: "left";
218
+ values: readonly ["left", "center", "right", "justify"];
219
+ };
220
+ };
221
+ }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
222
+ };
149
223
  file: {
150
224
  config: {
151
225
  type: "file";
@@ -165,7 +239,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
165
239
  };
166
240
  content: "none";
167
241
  isFileBlock: true;
168
- isFileBlockPlaceholder: (block: any) => boolean;
169
242
  };
170
243
  implementation: import("../../..").TiptapBlockImplementation<{
171
244
  type: "file";
@@ -185,7 +258,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
185
258
  };
186
259
  content: "none";
187
260
  isFileBlock: true;
188
- isFileBlockPlaceholder: (block: any) => boolean;
189
261
  }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
190
262
  };
191
263
  image: {
@@ -217,7 +289,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
217
289
  };
218
290
  content: "none";
219
291
  isFileBlock: true;
220
- isFileBlockPlaceholder: (block: any) => boolean;
221
292
  fileBlockAcceptMimeTypes: string[];
222
293
  };
223
294
  implementation: import("../../..").TiptapBlockImplementation<{
@@ -248,7 +319,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
248
319
  };
249
320
  content: "none";
250
321
  isFileBlock: true;
251
- isFileBlockPlaceholder: (block: any) => boolean;
252
322
  fileBlockAcceptMimeTypes: string[];
253
323
  }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
254
324
  };
@@ -281,7 +351,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
281
351
  };
282
352
  content: "none";
283
353
  isFileBlock: true;
284
- isFileBlockPlaceholder: (block: any) => boolean;
285
354
  fileBlockAcceptMimeTypes: string[];
286
355
  };
287
356
  implementation: import("../../..").TiptapBlockImplementation<{
@@ -312,7 +381,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
312
381
  };
313
382
  content: "none";
314
383
  isFileBlock: true;
315
- isFileBlockPlaceholder: (block: any) => boolean;
316
384
  fileBlockAcceptMimeTypes: string[];
317
385
  }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
318
386
  };
@@ -338,7 +406,6 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
338
406
  };
339
407
  content: "none";
340
408
  isFileBlock: true;
341
- isFileBlockPlaceholder: (block: any) => boolean;
342
409
  fileBlockAcceptMimeTypes: string[];
343
410
  };
344
411
  implementation: import("../../..").TiptapBlockImplementation<{
@@ -362,44 +429,9 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
362
429
  };
363
430
  content: "none";
364
431
  isFileBlock: true;
365
- isFileBlockPlaceholder: (block: any) => boolean;
366
432
  fileBlockAcceptMimeTypes: string[];
367
433
  }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
368
434
  };
369
- table: {
370
- config: {
371
- type: "table";
372
- content: "table";
373
- propSchema: {
374
- backgroundColor: {
375
- default: "default";
376
- };
377
- textColor: {
378
- default: "default";
379
- };
380
- textAlignment: {
381
- default: "left";
382
- values: readonly ["left", "center", "right", "justify"];
383
- };
384
- };
385
- };
386
- implementation: import("../../..").TiptapBlockImplementation<{
387
- type: "table";
388
- content: "table";
389
- propSchema: {
390
- backgroundColor: {
391
- default: "default";
392
- };
393
- textColor: {
394
- default: "default";
395
- };
396
- textAlignment: {
397
- default: "left";
398
- values: readonly ["left", "center", "right", "justify"];
399
- };
400
- };
401
- }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
402
- };
403
435
  }>, import("../../..").InlineContentSchemaFromSpecs<{
404
436
  mention: import("../../..").InlineContentSpec<{
405
437
  type: "mention";