@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.
- package/dist/blocknote.cjs +11 -10
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +3685 -9960
- package/dist/blocknote.js.map +1 -1
- package/dist/comments.cjs.map +1 -1
- package/dist/comments.js.map +1 -1
- package/dist/en-B7ycW7c8.js +360 -0
- package/dist/en-B7ycW7c8.js.map +1 -0
- package/dist/en-D4taoCs4.cjs +2 -0
- package/dist/en-D4taoCs4.cjs.map +1 -0
- package/dist/locales.cjs +2 -0
- package/dist/locales.cjs.map +1 -0
- package/dist/locales.js +6129 -0
- package/dist/locales.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 +36 -31
- package/src/api/clipboard/__snapshots__/internal/basicBlocks.html +1 -1
- package/src/api/clipboard/__snapshots__/internal/basicBlocksWithProps.html +1 -1
- package/src/api/clipboard/clipboardExternal.test.ts +1 -1
- package/src/api/clipboard/clipboardInternal.test.ts +1 -1
- package/src/api/clipboard/fromClipboard/acceptedMIMETypes.ts +1 -0
- package/src/api/clipboard/fromClipboard/pasteExtension.ts +96 -42
- package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/empty/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/empty/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/python/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/codeBlock/python/internal.html +1 -1
- package/src/api/exporters/html/htmlConversion.test.ts +2 -2
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +4 -4
- package/src/api/exporters/markdown/__snapshots__/codeBlock/defaultLanguage/markdown.md +1 -1
- package/src/api/exporters/markdown/__snapshots__/codeBlock/empty/markdown.md +1 -1
- package/src/api/exporters/markdown/__snapshots__/complex/misc/markdown.md +1 -1
- package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -6
- package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +6 -6
- package/src/api/exporters/markdown/markdownExporter.test.ts +2 -2
- package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +2 -2
- package/src/api/parsers/html/__snapshots__/parse-codeblocks.json +1 -1
- package/src/api/parsers/html/parseHTML.test.ts +1 -1
- package/src/api/parsers/markdown/__snapshots__/pasted/whitespace bold.json +42 -0
- package/src/api/parsers/markdown/__snapshots__/whitespace bold.json +19 -0
- package/src/api/parsers/markdown/detectMarkdown.ts +60 -0
- package/src/api/parsers/markdown/parseMarkdown.test.ts +7 -2
- package/src/api/parsers/markdown/parseMarkdown.ts +19 -18
- package/src/api/testUtil/cases/defaultSchema.ts +13 -0
- package/src/blocks/CodeBlockContent/CodeBlockContent.ts +100 -69
- package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +98 -0
- package/src/blocks/TableBlockContent/TableExtension.ts +1 -1
- package/src/blocks/defaultBlocks.ts +2 -2
- package/src/editor/Block.css +13 -0
- package/src/editor/BlockNoteEditor.ts +102 -10
- package/src/editor/BlockNoteExtensions.ts +18 -4
- package/src/extensions/Comments/CommentsPlugin.ts +1 -1
- package/src/extensions/HardBreak/HardBreak.ts +35 -0
- package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +100 -3
- package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +3 -1
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +12 -0
- package/src/i18n/index.ts +2 -0
- package/src/i18n/locales/ar.ts +6 -0
- package/src/i18n/locales/de.ts +6 -0
- package/src/i18n/locales/en.ts +6 -0
- package/src/i18n/locales/es.ts +6 -0
- package/src/i18n/locales/fr.ts +6 -0
- package/src/i18n/locales/hr.ts +6 -0
- package/src/i18n/locales/is.ts +6 -0
- package/src/i18n/locales/it.ts +6 -0
- package/src/i18n/locales/ja.ts +6 -0
- package/src/i18n/locales/ko.ts +6 -0
- package/src/i18n/locales/nl.ts +6 -0
- package/src/i18n/locales/no.ts +6 -0
- package/src/i18n/locales/pl.ts +6 -0
- package/src/i18n/locales/pt.ts +6 -0
- package/src/i18n/locales/ru.ts +6 -0
- package/src/i18n/locales/uk.ts +6 -0
- package/src/i18n/locales/vi.ts +6 -0
- package/src/i18n/locales/zh.ts +6 -0
- package/src/index.ts +2 -3
- package/src/locales.ts +1 -0
- package/src/schema/blocks/types.ts +1 -0
- package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +1 -1
- package/types/src/api/blockManipulation/setupTestEnv.d.ts +34 -2
- package/types/src/api/clipboard/fromClipboard/acceptedMIMETypes.d.ts +1 -1
- package/types/src/api/clipboard/fromClipboard/fileDropExtension.d.ts +2 -2
- package/types/src/api/clipboard/fromClipboard/pasteExtension.d.ts +3 -3
- package/types/src/api/clipboard/testUtil.d.ts +66 -34
- package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
- package/types/src/api/exporters/html/externalHTMLExporter.d.ts +2 -2
- package/types/src/api/exporters/html/internalHTMLSerializer.d.ts +2 -2
- package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
- package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
- package/types/src/api/parsers/markdown/detectMarkdown.d.ts +6 -0
- package/types/src/api/parsers/markdown/parseMarkdown.d.ts +1 -0
- package/types/src/api/testUtil/cases/customBlocks.d.ts +72 -40
- package/types/src/api/testUtil/cases/customInlineContent.d.ts +34 -2
- package/types/src/api/testUtil/cases/customStyles.d.ts +34 -2
- package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +3 -3
- package/types/src/blocks/CodeBlockContent/CodeBlockContent.d.ts +46 -34
- package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +3 -3
- package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +1 -1
- package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +2 -2
- package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +2 -2
- package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +2 -2
- package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +2 -2
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +2 -2
- package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +2 -2
- package/types/src/blocks/PageBreakBlockContent/schema.d.ts +13 -13
- package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +2 -2
- package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +52 -0
- package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +2 -2
- package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +2 -2
- package/types/src/blocks/defaultBlockHelpers.d.ts +2 -2
- package/types/src/blocks/defaultBlocks.d.ts +107 -44
- package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +3 -3
- package/types/src/editor/BlockNoteEditor.d.ts +58 -0
- package/types/src/editor/BlockNoteExtensions.d.ts +3 -2
- package/types/src/exporter/mapping.d.ts +2 -2
- package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +1 -1
- package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
- package/types/src/extensions/HardBreak/HardBreak.d.ts +2 -0
- package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +4 -4
- package/types/src/extensions/TextColor/TextColorMark.d.ts +1 -1
- package/types/src/i18n/index.d.ts +2 -0
- package/types/src/i18n/locales/en.d.ts +7 -1
- package/types/src/index.d.ts +1 -2
- package/types/src/locales.d.ts +1 -0
- package/types/src/pm-nodes/BlockContainer.d.ts +2 -7
- package/types/src/pm-nodes/BlockGroup.d.ts +2 -7
- package/types/src/schema/blocks/types.d.ts +1 -0
- package/types/src/schema/inlineContent/internal.d.ts +1 -1
- package/README.md +0 -125
- package/src/blocks/CodeBlockContent/defaultSupportedLanguages.ts +0 -116
- package/types/src/blocks/CodeBlockContent/defaultSupportedLanguages.d.ts +0 -6
- package/types/src/extensions/Comments/threadstore/DefaultThreadStoreAuth.d.ts +0 -47
- package/types/src/extensions/Comments/threadstore/ThreadStore.d.ts +0 -121
- package/types/src/extensions/Comments/threadstore/ThreadStoreAuth.d.ts +0 -12
- package/types/src/extensions/Comments/threadstore/TipTapThreadStore.d.ts +0 -97
- package/types/src/extensions/Comments/threadstore/yjs/RESTYjsThreadStore.d.ts +0 -83
- package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStore.d.ts +0 -79
- package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStore.test.d.ts +0 -1
- package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStoreBase.d.ts +0 -15
- package/types/src/extensions/Comments/threadstore/yjs/yjsHelpers.d.ts +0 -13
- package/types/src/extensions/Comments/types.d.ts +0 -109
- 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("../../../
|
|
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("../../../
|
|
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("../../../
|
|
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("../../../
|
|
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("../../../
|
|
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("../../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
30
|
+
}>, import("../../index.js").StyleSchemaFromSpecs<{
|
|
31
31
|
bold: {
|
|
32
32
|
config: {
|
|
33
33
|
type: string;
|
|
34
34
|
propSchema: "boolean";
|
|
35
35
|
};
|
|
36
|
-
implementation: import("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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("../../
|
|
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
|
|
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
|
};
|