@blocknote/core 0.26.0 → 0.27.2

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 (147) hide show
  1. package/dist/blocknote.cjs +11 -10
  2. package/dist/blocknote.cjs.map +1 -1
  3. package/dist/blocknote.js +3685 -9960
  4. package/dist/blocknote.js.map +1 -1
  5. package/dist/comments.cjs.map +1 -1
  6. package/dist/comments.js.map +1 -1
  7. package/dist/en-B7ycW7c8.js +360 -0
  8. package/dist/en-B7ycW7c8.js.map +1 -0
  9. package/dist/en-D4taoCs4.cjs +2 -0
  10. package/dist/en-D4taoCs4.cjs.map +1 -0
  11. package/dist/locales.cjs +2 -0
  12. package/dist/locales.cjs.map +1 -0
  13. package/dist/locales.js +6129 -0
  14. package/dist/locales.js.map +1 -0
  15. package/dist/style.css +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/dist/webpack-stats.json +1 -1
  18. package/package.json +36 -31
  19. package/src/api/clipboard/__snapshots__/internal/basicBlocks.html +1 -1
  20. package/src/api/clipboard/__snapshots__/internal/basicBlocksWithProps.html +1 -1
  21. package/src/api/clipboard/clipboardExternal.test.ts +1 -1
  22. package/src/api/clipboard/clipboardInternal.test.ts +1 -1
  23. package/src/api/clipboard/fromClipboard/acceptedMIMETypes.ts +1 -0
  24. package/src/api/clipboard/fromClipboard/pasteExtension.ts +96 -42
  25. package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/external.html +1 -1
  26. package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/internal.html +1 -1
  27. package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/external.html +1 -1
  28. package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/internal.html +1 -1
  29. package/src/api/exporters/html/__snapshots__/codeBlock/empty/external.html +1 -1
  30. package/src/api/exporters/html/__snapshots__/codeBlock/empty/internal.html +1 -1
  31. package/src/api/exporters/html/__snapshots__/codeBlock/python/external.html +1 -1
  32. package/src/api/exporters/html/__snapshots__/codeBlock/python/internal.html +1 -1
  33. package/src/api/exporters/html/htmlConversion.test.ts +2 -2
  34. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +4 -4
  35. package/src/api/exporters/markdown/__snapshots__/codeBlock/defaultLanguage/markdown.md +1 -1
  36. package/src/api/exporters/markdown/__snapshots__/codeBlock/empty/markdown.md +1 -1
  37. package/src/api/exporters/markdown/__snapshots__/complex/misc/markdown.md +1 -1
  38. package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -6
  39. package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +6 -6
  40. package/src/api/exporters/markdown/markdownExporter.test.ts +2 -2
  41. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +2 -2
  42. package/src/api/parsers/html/__snapshots__/parse-codeblocks.json +1 -1
  43. package/src/api/parsers/html/parseHTML.test.ts +1 -1
  44. package/src/api/parsers/markdown/__snapshots__/pasted/whitespace bold.json +42 -0
  45. package/src/api/parsers/markdown/__snapshots__/whitespace bold.json +19 -0
  46. package/src/api/parsers/markdown/detectMarkdown.ts +60 -0
  47. package/src/api/parsers/markdown/parseMarkdown.test.ts +7 -2
  48. package/src/api/parsers/markdown/parseMarkdown.ts +19 -18
  49. package/src/api/testUtil/cases/defaultSchema.ts +13 -0
  50. package/src/blocks/CodeBlockContent/CodeBlockContent.ts +100 -69
  51. package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +98 -0
  52. package/src/blocks/TableBlockContent/TableExtension.ts +1 -1
  53. package/src/blocks/defaultBlocks.ts +2 -2
  54. package/src/editor/Block.css +13 -0
  55. package/src/editor/BlockNoteEditor.ts +102 -10
  56. package/src/editor/BlockNoteExtensions.ts +18 -4
  57. package/src/extensions/Comments/CommentsPlugin.ts +1 -1
  58. package/src/extensions/HardBreak/HardBreak.ts +35 -0
  59. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +100 -3
  60. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +3 -1
  61. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +12 -0
  62. package/src/i18n/index.ts +2 -0
  63. package/src/i18n/locales/ar.ts +6 -0
  64. package/src/i18n/locales/de.ts +6 -0
  65. package/src/i18n/locales/en.ts +6 -0
  66. package/src/i18n/locales/es.ts +6 -0
  67. package/src/i18n/locales/fr.ts +6 -0
  68. package/src/i18n/locales/hr.ts +6 -0
  69. package/src/i18n/locales/is.ts +6 -0
  70. package/src/i18n/locales/it.ts +6 -0
  71. package/src/i18n/locales/ja.ts +6 -0
  72. package/src/i18n/locales/ko.ts +6 -0
  73. package/src/i18n/locales/nl.ts +6 -0
  74. package/src/i18n/locales/no.ts +6 -0
  75. package/src/i18n/locales/pl.ts +6 -0
  76. package/src/i18n/locales/pt.ts +6 -0
  77. package/src/i18n/locales/ru.ts +6 -0
  78. package/src/i18n/locales/uk.ts +6 -0
  79. package/src/i18n/locales/vi.ts +6 -0
  80. package/src/i18n/locales/zh.ts +6 -0
  81. package/src/index.ts +2 -3
  82. package/src/locales.ts +1 -0
  83. package/src/schema/blocks/types.ts +1 -0
  84. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +1 -1
  85. package/types/src/api/blockManipulation/setupTestEnv.d.ts +34 -2
  86. package/types/src/api/clipboard/fromClipboard/acceptedMIMETypes.d.ts +1 -1
  87. package/types/src/api/clipboard/fromClipboard/fileDropExtension.d.ts +2 -2
  88. package/types/src/api/clipboard/fromClipboard/pasteExtension.d.ts +3 -3
  89. package/types/src/api/clipboard/testUtil.d.ts +66 -34
  90. package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
  91. package/types/src/api/exporters/html/externalHTMLExporter.d.ts +2 -2
  92. package/types/src/api/exporters/html/internalHTMLSerializer.d.ts +2 -2
  93. package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
  94. package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
  95. package/types/src/api/parsers/markdown/detectMarkdown.d.ts +6 -0
  96. package/types/src/api/parsers/markdown/parseMarkdown.d.ts +1 -0
  97. package/types/src/api/testUtil/cases/customBlocks.d.ts +72 -40
  98. package/types/src/api/testUtil/cases/customInlineContent.d.ts +34 -2
  99. package/types/src/api/testUtil/cases/customStyles.d.ts +34 -2
  100. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +3 -3
  101. package/types/src/blocks/CodeBlockContent/CodeBlockContent.d.ts +46 -34
  102. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +3 -3
  103. package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +1 -1
  104. package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +2 -2
  105. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +2 -2
  106. package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +2 -2
  107. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +2 -2
  108. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +2 -2
  109. package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +2 -2
  110. package/types/src/blocks/PageBreakBlockContent/schema.d.ts +13 -13
  111. package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +2 -2
  112. package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +52 -0
  113. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +2 -2
  114. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +2 -2
  115. package/types/src/blocks/defaultBlockHelpers.d.ts +2 -2
  116. package/types/src/blocks/defaultBlocks.d.ts +107 -44
  117. package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +3 -3
  118. package/types/src/editor/BlockNoteEditor.d.ts +58 -0
  119. package/types/src/editor/BlockNoteExtensions.d.ts +3 -2
  120. package/types/src/exporter/mapping.d.ts +2 -2
  121. package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +1 -1
  122. package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
  123. package/types/src/extensions/HardBreak/HardBreak.d.ts +2 -0
  124. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +4 -4
  125. package/types/src/extensions/TextColor/TextColorMark.d.ts +1 -1
  126. package/types/src/i18n/index.d.ts +2 -0
  127. package/types/src/i18n/locales/en.d.ts +7 -1
  128. package/types/src/index.d.ts +1 -2
  129. package/types/src/locales.d.ts +1 -0
  130. package/types/src/pm-nodes/BlockContainer.d.ts +2 -7
  131. package/types/src/pm-nodes/BlockGroup.d.ts +2 -7
  132. package/types/src/schema/blocks/types.d.ts +1 -0
  133. package/types/src/schema/inlineContent/internal.d.ts +1 -1
  134. package/README.md +0 -125
  135. package/src/blocks/CodeBlockContent/defaultSupportedLanguages.ts +0 -116
  136. package/types/src/blocks/CodeBlockContent/defaultSupportedLanguages.d.ts +0 -6
  137. package/types/src/extensions/Comments/threadstore/DefaultThreadStoreAuth.d.ts +0 -47
  138. package/types/src/extensions/Comments/threadstore/ThreadStore.d.ts +0 -121
  139. package/types/src/extensions/Comments/threadstore/ThreadStoreAuth.d.ts +0 -12
  140. package/types/src/extensions/Comments/threadstore/TipTapThreadStore.d.ts +0 -97
  141. package/types/src/extensions/Comments/threadstore/yjs/RESTYjsThreadStore.d.ts +0 -83
  142. package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStore.d.ts +0 -79
  143. package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStore.test.d.ts +0 -1
  144. package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStoreBase.d.ts +0 -15
  145. package/types/src/extensions/Comments/threadstore/yjs/yjsHelpers.d.ts +0 -13
  146. package/types/src/extensions/Comments/types.d.ts +0 -109
  147. package/types/src/models/User.d.ts +0 -5
@@ -27,7 +27,7 @@ export declare const BulletListItem: {
27
27
  };
28
28
  };
29
29
  };
30
- implementation: import("../../../schema/index.js").TiptapBlockImplementation<{
30
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
31
31
  type: "bulletListItem";
32
32
  content: "inline";
33
33
  propSchema: {
@@ -42,5 +42,5 @@ export declare const BulletListItem: {
42
42
  values: readonly ["left", "center", "right", "justify"];
43
43
  };
44
44
  };
45
- }, any, import("../../../schema/index.js").InlineContentSchema, import("../../../schema/index.js").StyleSchema>;
45
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
46
46
  };
@@ -33,7 +33,7 @@ export declare const CheckListItem: {
33
33
  };
34
34
  };
35
35
  };
36
- implementation: import("../../../schema/index.js").TiptapBlockImplementation<{
36
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
37
37
  type: "checkListItem";
38
38
  content: "inline";
39
39
  propSchema: {
@@ -51,5 +51,5 @@ export declare const CheckListItem: {
51
51
  values: readonly ["left", "center", "right", "justify"];
52
52
  };
53
53
  };
54
- }, any, import("../../../schema/index.js").InlineContentSchema, import("../../../schema/index.js").StyleSchema>;
54
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
55
55
  };
@@ -35,7 +35,7 @@ export declare const NumberedListItem: {
35
35
  };
36
36
  };
37
37
  };
38
- implementation: import("../../../schema/index.js").TiptapBlockImplementation<{
38
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
39
39
  type: "numberedListItem";
40
40
  content: "inline";
41
41
  propSchema: {
@@ -54,5 +54,5 @@ export declare const NumberedListItem: {
54
54
  values: readonly ["left", "center", "right", "justify"];
55
55
  };
56
56
  };
57
- }, any, import("../../../schema/index.js").InlineContentSchema, import("../../../schema/index.js").StyleSchema>;
57
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
58
58
  };
@@ -21,11 +21,11 @@ export declare const PageBreak: {
21
21
  isFileBlock: false;
22
22
  isSelectable: false;
23
23
  };
24
- implementation: import("../../schema/index.js").TiptapBlockImplementation<{
24
+ implementation: import("../../index.js").TiptapBlockImplementation<{
25
25
  type: "pageBreak";
26
26
  propSchema: {};
27
27
  content: "none";
28
28
  isFileBlock: false;
29
29
  isSelectable: false;
30
- }, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
30
+ }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
31
31
  };
@@ -1,7 +1,7 @@
1
1
  import { BlockNoteSchema } from "../../editor/BlockNoteSchema.js";
2
- import { InlineContentSchema, StyleSchema } from "../../schema/index.js";
2
+ import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
3
3
  import { PageBreak } from "./PageBreakBlockContent.js";
4
- export declare const pageBreakSchema: BlockNoteSchema<import("../../schema/index.js").BlockSchemaFromSpecs<{
4
+ export declare const pageBreakSchema: BlockNoteSchema<import("../../index.js").BlockSchemaFromSpecs<{
5
5
  pageBreak: {
6
6
  config: {
7
7
  type: "pageBreak";
@@ -10,7 +10,7 @@ export declare const pageBreakSchema: BlockNoteSchema<import("../../schema/index
10
10
  isFileBlock: false;
11
11
  isSelectable: false;
12
12
  };
13
- implementation: import("../../schema/index.js").TiptapBlockImplementation<{
13
+ implementation: import("../../index.js").TiptapBlockImplementation<{
14
14
  type: "pageBreak";
15
15
  propSchema: {};
16
16
  content: "none";
@@ -18,7 +18,7 @@ export declare const pageBreakSchema: BlockNoteSchema<import("../../schema/index
18
18
  isSelectable: false;
19
19
  }, any, InlineContentSchema, StyleSchema>;
20
20
  };
21
- }>, import("../../schema/index.js").InlineContentSchemaFromSpecs<{
21
+ }>, import("../../index.js").InlineContentSchemaFromSpecs<{
22
22
  text: {
23
23
  config: "text";
24
24
  implementation: any;
@@ -27,60 +27,60 @@ export declare const pageBreakSchema: BlockNoteSchema<import("../../schema/index
27
27
  config: "link";
28
28
  implementation: any;
29
29
  };
30
- }>, import("../../schema/index.js").StyleSchemaFromSpecs<{
30
+ }>, import("../../index.js").StyleSchemaFromSpecs<{
31
31
  bold: {
32
32
  config: {
33
33
  type: string;
34
34
  propSchema: "boolean";
35
35
  };
36
- implementation: import("../../schema/index.js").StyleImplementation;
36
+ implementation: import("../../index.js").StyleImplementation;
37
37
  };
38
38
  italic: {
39
39
  config: {
40
40
  type: string;
41
41
  propSchema: "boolean";
42
42
  };
43
- implementation: import("../../schema/index.js").StyleImplementation;
43
+ implementation: import("../../index.js").StyleImplementation;
44
44
  };
45
45
  underline: {
46
46
  config: {
47
47
  type: string;
48
48
  propSchema: "boolean";
49
49
  };
50
- implementation: import("../../schema/index.js").StyleImplementation;
50
+ implementation: import("../../index.js").StyleImplementation;
51
51
  };
52
52
  strike: {
53
53
  config: {
54
54
  type: string;
55
55
  propSchema: "boolean";
56
56
  };
57
- implementation: import("../../schema/index.js").StyleImplementation;
57
+ implementation: import("../../index.js").StyleImplementation;
58
58
  };
59
59
  code: {
60
60
  config: {
61
61
  type: string;
62
62
  propSchema: "boolean";
63
63
  };
64
- implementation: import("../../schema/index.js").StyleImplementation;
64
+ implementation: import("../../index.js").StyleImplementation;
65
65
  };
66
66
  textColor: {
67
67
  config: {
68
68
  type: string;
69
69
  propSchema: "string";
70
70
  };
71
- implementation: import("../../schema/index.js").StyleImplementation;
71
+ implementation: import("../../index.js").StyleImplementation;
72
72
  };
73
73
  backgroundColor: {
74
74
  config: {
75
75
  type: string;
76
76
  propSchema: "string";
77
77
  };
78
- implementation: import("../../schema/index.js").StyleImplementation;
78
+ implementation: import("../../index.js").StyleImplementation;
79
79
  };
80
80
  }>>;
81
81
  /**
82
82
  * Adds page break support to the given schema.
83
83
  */
84
- export declare const withPageBreak: <B extends Record<string, import("../../schema/index.js").BlockConfig>, I extends InlineContentSchema, S extends StyleSchema>(schema: BlockNoteSchema<B, I, S>) => BlockNoteSchema<B & {
84
+ export declare const withPageBreak: <B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(schema: BlockNoteSchema<B, I, S>) => BlockNoteSchema<B & {
85
85
  pageBreak: typeof PageBreak.config;
86
86
  }, I, S>;
@@ -33,7 +33,7 @@ export declare const Paragraph: {
33
33
  };
34
34
  };
35
35
  };
36
- implementation: import("../../schema/index.js").TiptapBlockImplementation<{
36
+ implementation: import("../../index.js").TiptapBlockImplementation<{
37
37
  type: "paragraph";
38
38
  content: "inline";
39
39
  propSchema: {
@@ -48,5 +48,5 @@ export declare const Paragraph: {
48
48
  values: readonly ["left", "center", "right", "justify"];
49
49
  };
50
50
  };
51
- }, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
51
+ }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
52
52
  };
@@ -0,0 +1,52 @@
1
+ export declare const quotePropSchema: {
2
+ backgroundColor: {
3
+ default: "default";
4
+ };
5
+ textColor: {
6
+ default: "default";
7
+ };
8
+ textAlignment: {
9
+ default: "left";
10
+ values: readonly ["left", "center", "right", "justify"];
11
+ };
12
+ };
13
+ export declare const QuoteBlockContent: import("@tiptap/core").Node<any, any> & {
14
+ name: "quote";
15
+ config: {
16
+ content: "inline*";
17
+ };
18
+ };
19
+ export declare const Quote: {
20
+ config: {
21
+ type: "quote";
22
+ content: "inline";
23
+ propSchema: {
24
+ backgroundColor: {
25
+ default: "default";
26
+ };
27
+ textColor: {
28
+ default: "default";
29
+ };
30
+ textAlignment: {
31
+ default: "left";
32
+ values: readonly ["left", "center", "right", "justify"];
33
+ };
34
+ };
35
+ };
36
+ implementation: import("../../index.js").TiptapBlockImplementation<{
37
+ type: "quote";
38
+ content: "inline";
39
+ propSchema: {
40
+ backgroundColor: {
41
+ default: "default";
42
+ };
43
+ textColor: {
44
+ default: "default";
45
+ };
46
+ textAlignment: {
47
+ default: "left";
48
+ values: readonly ["left", "center", "right", "justify"];
49
+ };
50
+ };
51
+ }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
52
+ };
@@ -19,7 +19,7 @@ export declare const Table: {
19
19
  };
20
20
  };
21
21
  };
22
- implementation: import("../../schema/index.js").TiptapBlockImplementation<{
22
+ implementation: import("../../index.js").TiptapBlockImplementation<{
23
23
  type: "table";
24
24
  content: "table";
25
25
  propSchema: {
@@ -27,5 +27,5 @@ export declare const Table: {
27
27
  default: "default";
28
28
  };
29
29
  };
30
- }, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
30
+ }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
31
31
  };
@@ -94,7 +94,7 @@ export declare const VideoBlock: {
94
94
  isFileBlock: true;
95
95
  fileBlockAccept: string[];
96
96
  };
97
- implementation: import("../../schema/index.js").TiptapBlockImplementation<{
97
+ implementation: import("../../index.js").TiptapBlockImplementation<{
98
98
  type: "video";
99
99
  propSchema: {
100
100
  textAlignment: {
@@ -123,5 +123,5 @@ export declare const VideoBlock: {
123
123
  content: "none";
124
124
  isFileBlock: true;
125
125
  fileBlockAccept: string[];
126
- }, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
126
+ }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
127
127
  };
@@ -1,10 +1,10 @@
1
1
  import type { BlockNoteEditor } from "../editor/BlockNoteEditor.js";
2
- import type { BlockNoDefaults, InlineContentSchema, StyleSchema } from "../schema/index.js";
2
+ import type { BlockNoDefaults, BlockSchema, InlineContentSchema, StyleSchema } from "../schema/index.js";
3
3
  export declare function createDefaultBlockDOMOutputSpec(blockName: string, htmlTag: string, blockContentHTMLAttributes: Record<string, string>, inlineContentHTMLAttributes: Record<string, string>): {
4
4
  dom: HTMLDivElement;
5
5
  contentDOM: HTMLElement;
6
6
  };
7
- export declare const defaultBlockToHTML: <BSchema extends Record<string, import("../schema/index.js").BlockConfig>, I extends InlineContentSchema, S extends StyleSchema>(block: BlockNoDefaults<BSchema, I, S>, editor: BlockNoteEditor<BSchema, I, S>) => {
7
+ export declare const defaultBlockToHTML: <BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(block: BlockNoDefaults<BSchema, I, S>, editor: BlockNoteEditor<BSchema, I, S>) => {
8
8
  dom: HTMLElement;
9
9
  contentDOM?: HTMLElement;
10
10
  };