@blocknote/core 0.16.0 → 0.17.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.js +3292 -2755
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +6 -6
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -2
- package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +3087 -0
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.ts +132 -0
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +71 -0
- package/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +2276 -0
- package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.ts +131 -0
- package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts +103 -0
- package/src/api/blockManipulation/commands/moveBlock/__snapshots__/moveBlock.test.ts.snap +3767 -0
- package/src/api/blockManipulation/commands/moveBlock/moveBlock.test.ts +192 -0
- package/src/api/blockManipulation/commands/moveBlock/moveBlock.ts +178 -0
- package/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap +1136 -0
- package/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.ts +34 -0
- package/src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts +100 -0
- package/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +4931 -0
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.ts +222 -0
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +70 -0
- package/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +2924 -0
- package/src/api/blockManipulation/commands/splitBlock/splitBlock.test.ts +136 -0
- package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +48 -0
- package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +8376 -0
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +300 -0
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +199 -0
- package/src/api/blockManipulation/insertContentAt.ts +96 -0
- package/src/api/blockManipulation/selections/textCursorPosition/__snapshots__/textCursorPosition.test.ts.snap +316 -0
- package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.ts +53 -0
- package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts +130 -0
- package/src/api/blockManipulation/setupTestEnv.ts +179 -0
- package/src/api/clipboard/__snapshots__/tableAllCells.html +1 -1
- package/src/api/clipboard/clipboard.test.ts +5 -6
- package/src/api/clipboard/fromClipboard/fileDropExtension.ts +8 -4
- package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +11 -6
- package/src/api/clipboard/fromClipboard/pasteExtension.ts +8 -4
- package/src/api/clipboard/toClipboard/copyExtension.ts +113 -61
- package/src/api/exporters/html/__snapshots__/complex/misc/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/lists/basic/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/lists/nested/external.html +1 -1
- package/src/api/exporters/html/externalHTMLExporter.ts +42 -94
- package/src/api/exporters/html/htmlConversion.test.ts +19 -13
- package/src/api/exporters/html/internalHTMLSerializer.ts +21 -72
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +263 -0
- package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +158 -0
- package/src/api/exporters/markdown/markdownExporter.test.ts +10 -10
- package/src/api/exporters/markdown/markdownExporter.ts +11 -7
- package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +2 -2
- package/src/api/getBlockInfoFromPos.ts +172 -90
- package/src/api/nodeConversions/blockToNode.ts +257 -0
- package/src/api/nodeConversions/fragmentToBlocks.ts +60 -0
- package/src/api/nodeConversions/nodeConversions.test.ts +9 -8
- package/src/api/nodeConversions/{nodeConversions.ts → nodeToBlock.ts} +20 -262
- package/src/api/parsers/html/parseHTML.test.ts +2 -2
- package/src/api/parsers/html/parseHTML.ts +8 -4
- package/src/api/parsers/html/util/nestedLists.test.ts +2 -2
- package/src/api/parsers/markdown/parseMarkdown.test.ts +2 -2
- package/src/api/parsers/markdown/parseMarkdown.ts +8 -4
- package/src/api/testUtil/cases/customBlocks.ts +11 -11
- package/src/api/testUtil/cases/customInlineContent.ts +6 -6
- package/src/api/testUtil/cases/customStyles.ts +6 -6
- package/src/api/testUtil/cases/defaultSchema.ts +4 -4
- package/src/api/testUtil/index.ts +6 -6
- package/src/api/testUtil/partialBlockTestUtil.ts +5 -5
- package/src/blocks/AudioBlockContent/AudioBlockContent.ts +5 -5
- package/src/blocks/FileBlockContent/FileBlockContent.ts +4 -4
- package/src/blocks/FileBlockContent/fileBlockHelpers.ts +2 -2
- package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +61 -39
- package/src/blocks/ImageBlockContent/ImageBlockContent.ts +5 -5
- package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +30 -18
- package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +67 -33
- package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +23 -19
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +22 -24
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +31 -19
- package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +16 -11
- package/src/blocks/TableBlockContent/TableBlockContent.ts +4 -4
- package/src/blocks/VideoBlockContent/VideoBlockContent.ts +5 -5
- package/src/blocks/defaultBlockHelpers.ts +4 -4
- package/src/blocks/defaultBlockTypeGuards.ts +5 -5
- package/src/blocks/defaultBlocks.ts +13 -13
- package/src/blocks/defaultProps.ts +1 -1
- package/src/editor/BlockNoteEditor.test.ts +14 -7
- package/src/editor/BlockNoteEditor.ts +82 -149
- package/src/editor/BlockNoteExtensions.ts +15 -11
- package/src/editor/BlockNoteSchema.ts +7 -7
- package/src/editor/BlockNoteTipTapEditor.ts +5 -3
- package/src/editor/cursorPositionTypes.ts +7 -2
- package/src/editor/selectionTypes.ts +6 -2
- package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +1 -1
- package/src/extensions/BackgroundColor/BackgroundColorMark.ts +1 -1
- package/src/extensions/FilePanel/FilePanelPlugin.ts +4 -4
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +8 -4
- package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +334 -0
- package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +9 -4
- package/src/extensions/{NonEditableBlocks/NonEditableBlockPlugin.ts → NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts} +2 -2
- package/src/extensions/Placeholder/PlaceholderPlugin.ts +1 -1
- package/src/extensions/SideMenu/SideMenuPlugin.ts +72 -401
- package/src/extensions/SideMenu/dragging.ts +251 -0
- package/src/extensions/SuggestionMenu/DefaultSuggestionItem.ts +1 -1
- package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +8 -4
- package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +8 -4
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +19 -15
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +11 -7
- package/src/extensions/TextColor/TextColorExtension.ts +1 -1
- package/src/extensions/TextColor/TextColorMark.ts +1 -1
- package/src/i18n/dictionary.ts +1 -1
- package/src/i18n/locales/ar.ts +1 -1
- package/src/i18n/locales/fr.ts +1 -1
- package/src/i18n/locales/hr.ts +308 -0
- package/src/i18n/locales/index.ts +15 -14
- package/src/i18n/locales/is.ts +1 -1
- package/src/i18n/locales/ja.ts +1 -1
- package/src/i18n/locales/ko.ts +1 -1
- package/src/i18n/locales/nl.ts +1 -1
- package/src/i18n/locales/pl.ts +1 -1
- package/src/i18n/locales/pt.ts +1 -1
- package/src/i18n/locales/ru.ts +1 -1
- package/src/i18n/locales/vi.ts +1 -1
- package/src/i18n/locales/zh.ts +1 -1
- package/src/index.ts +45 -44
- package/src/pm-nodes/BlockContainer.ts +3 -647
- package/src/pm-nodes/BlockGroup.ts +2 -2
- package/src/pm-nodes/index.ts +3 -3
- package/src/schema/blocks/createSpec.ts +8 -7
- package/src/schema/blocks/internal.ts +9 -9
- package/src/schema/blocks/types.ts +4 -4
- package/src/schema/index.ts +10 -10
- package/src/schema/inlineContent/createSpec.ts +9 -10
- package/src/schema/inlineContent/internal.ts +3 -3
- package/src/schema/inlineContent/types.ts +2 -2
- package/src/schema/styles/createSpec.ts +4 -3
- package/src/schema/styles/internal.ts +1 -1
- package/types/src/api/blockManipulation/commands/insertBlocks/insertBlocks.d.ts +4 -0
- package/types/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.d.ts +7 -0
- package/types/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.d.ts +1 -0
- package/types/src/api/blockManipulation/commands/moveBlock/moveBlock.d.ts +5 -0
- package/types/src/api/blockManipulation/commands/moveBlock/moveBlock.test.d.ts +1 -0
- package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.d.ts +7 -0
- package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.d.ts +1 -0
- package/types/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.d.ts +7 -0
- package/types/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.d.ts +1 -0
- package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.d.ts +5 -0
- package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.test.d.ts +1 -0
- package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +11 -0
- package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.test.d.ts +1 -0
- package/types/src/api/blockManipulation/insertContentAt.d.ts +6 -0
- package/types/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.d.ts +5 -0
- package/types/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.d.ts +1 -0
- package/types/src/api/blockManipulation/setupTestEnv.d.ts +492 -0
- package/types/src/api/clipboard/fromClipboard/fileDropExtension.d.ts +3 -3
- package/types/src/api/clipboard/fromClipboard/handleFileInsertion.d.ts +1 -1
- package/types/src/api/clipboard/fromClipboard/pasteExtension.d.ts +2 -2
- package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +5 -5
- package/types/src/api/exporters/html/externalHTMLExporter.d.ts +7 -9
- package/types/src/api/exporters/html/internalHTMLSerializer.d.ts +6 -10
- package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +10 -0
- package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +11 -0
- package/types/src/api/exporters/markdown/markdownExporter.d.ts +3 -3
- package/types/src/api/getBlockInfoFromPos.d.ts +63 -20
- package/types/src/api/nodeConversions/blockToNode.d.ts +15 -0
- package/types/src/api/nodeConversions/fragmentToBlocks.d.ts +7 -0
- package/types/src/api/nodeConversions/nodeToBlock.d.ts +16 -0
- package/types/src/api/parsers/html/parseHTML.d.ts +2 -2
- package/types/src/api/parsers/markdown/parseMarkdown.d.ts +2 -2
- package/types/src/api/testUtil/cases/customBlocks.d.ts +39 -39
- package/types/src/api/testUtil/cases/customInlineContent.d.ts +35 -35
- package/types/src/api/testUtil/cases/customStyles.d.ts +35 -35
- package/types/src/api/testUtil/cases/defaultSchema.d.ts +2 -2
- package/types/src/api/testUtil/index.d.ts +6 -6
- package/types/src/api/testUtil/partialBlockTestUtil.d.ts +4 -4
- package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +4 -4
- package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +4 -4
- package/types/src/blocks/FileBlockContent/fileBlockHelpers.d.ts +2 -2
- package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +2 -2
- package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +4 -4
- 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/ListItemKeyboardShortcuts.d.ts +2 -2
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +2 -2
- package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +2 -2
- package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +2 -2
- package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +4 -4
- package/types/src/blocks/defaultBlockHelpers.d.ts +3 -3
- package/types/src/blocks/defaultBlockTypeGuards.d.ts +4 -4
- package/types/src/blocks/defaultBlocks.d.ts +38 -38
- package/types/src/blocks/defaultProps.d.ts +1 -1
- package/types/src/editor/BlockNoteEditor.d.ts +28 -16
- package/types/src/editor/BlockNoteExtensions.d.ts +3 -3
- package/types/src/editor/BlockNoteSchema.d.ts +4 -4
- package/types/src/editor/BlockNoteTipTapEditor.d.ts +2 -2
- package/types/src/editor/cursorPositionTypes.d.ts +3 -2
- package/types/src/editor/selectionTypes.d.ts +2 -2
- package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +1 -1
- package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
- package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +4 -4
- package/types/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.d.ts +5 -0
- package/types/src/extensions/LinkToolbar/LinkToolbarPlugin.d.ts +4 -4
- package/types/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.d.ts +2 -0
- package/types/src/extensions/Placeholder/PlaceholderPlugin.d.ts +1 -1
- package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +12 -28
- package/types/src/extensions/SideMenu/dragging.d.ts +17 -0
- package/types/src/extensions/SuggestionMenu/DefaultSuggestionItem.d.ts +1 -1
- package/types/src/extensions/SuggestionMenu/SuggestionPlugin.d.ts +4 -4
- package/types/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.d.ts +3 -3
- package/types/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.d.ts +4 -4
- package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +4 -4
- package/types/src/extensions/TextColor/TextColorMark.d.ts +1 -1
- package/types/src/i18n/dictionary.d.ts +1 -1
- package/types/src/i18n/locales/ar.d.ts +1 -1
- package/types/src/i18n/locales/fr.d.ts +1 -1
- package/types/src/i18n/locales/hr.d.ts +239 -0
- package/types/src/i18n/locales/index.d.ts +15 -14
- package/types/src/i18n/locales/is.d.ts +1 -1
- package/types/src/i18n/locales/ja.d.ts +1 -1
- package/types/src/i18n/locales/ko.d.ts +1 -1
- package/types/src/i18n/locales/nl.d.ts +1 -1
- package/types/src/i18n/locales/pl.d.ts +1 -1
- package/types/src/i18n/locales/pt.d.ts +1 -1
- package/types/src/i18n/locales/ru.d.ts +1 -1
- package/types/src/i18n/locales/vi.d.ts +1 -1
- package/types/src/i18n/locales/zh.d.ts +1 -1
- package/types/src/index.d.ts +45 -44
- package/types/src/pm-nodes/BlockContainer.d.ts +2 -16
- package/types/src/pm-nodes/BlockGroup.d.ts +1 -1
- package/types/src/pm-nodes/index.d.ts +3 -3
- package/types/src/schema/blocks/createSpec.d.ts +5 -5
- package/types/src/schema/blocks/internal.d.ts +5 -5
- package/types/src/schema/blocks/types.d.ts +4 -4
- package/types/src/schema/index.d.ts +10 -10
- package/types/src/schema/inlineContent/createSpec.d.ts +3 -3
- package/types/src/schema/inlineContent/internal.d.ts +2 -2
- package/types/src/schema/inlineContent/types.d.ts +2 -2
- package/types/src/schema/styles/createSpec.d.ts +1 -1
- package/types/src/schema/styles/internal.d.ts +1 -1
- package/src/api/blockManipulation/__snapshots__/blockManipulation.test.ts.snap +0 -714
- package/src/api/blockManipulation/blockManipulation.test.ts +0 -292
- package/src/api/blockManipulation/blockManipulation.ts +0 -350
- package/src/api/exporters/html/util/sharedHTMLConversion.ts +0 -130
- package/src/api/exporters/html/util/simplifyBlocksRehypePlugin.ts +0 -218
- package/src/api/getCurrentBlockContentType.ts +0 -14
- package/types/src/api/blockManipulation/blockManipulation.d.ts +0 -14
- package/types/src/api/exporters/html/util/sharedHTMLConversion.d.ts +0 -9
- package/types/src/api/exporters/html/util/simplifyBlocksRehypePlugin.d.ts +0 -16
- package/types/src/api/getCurrentBlockContentType.d.ts +0 -2
- package/types/src/api/nodeConversions/nodeConversions.d.ts +0 -24
- package/types/src/extensions/NonEditableBlocks/NonEditableBlockPlugin.d.ts +0 -2
- /package/types/src/api/blockManipulation/{blockManipulation.test.d.ts → commands/insertBlocks/insertBlocks.test.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditorTestCases } from "../index";
|
|
2
|
-
import { DefaultBlockSchema, DefaultStyleSchema } from "../../../blocks/defaultBlocks";
|
|
3
|
-
import { BlockNoteSchema } from "../../../editor/BlockNoteSchema";
|
|
4
|
-
declare const schema: BlockNoteSchema<import("
|
|
1
|
+
import { EditorTestCases } from "../index.js";
|
|
2
|
+
import { DefaultBlockSchema, DefaultStyleSchema } from "../../../blocks/defaultBlocks.js";
|
|
3
|
+
import { BlockNoteSchema } from "../../../editor/BlockNoteSchema.js";
|
|
4
|
+
declare const schema: BlockNoteSchema<import("../../../index.js").BlockSchemaFromSpecs<{
|
|
5
5
|
paragraph: {
|
|
6
6
|
config: {
|
|
7
7
|
type: "paragraph";
|
|
@@ -19,7 +19,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
implementation: import("
|
|
22
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
23
23
|
type: "paragraph";
|
|
24
24
|
content: "inline";
|
|
25
25
|
propSchema: {
|
|
@@ -34,7 +34,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
34
34
|
values: readonly ["left", "center", "right", "justify"];
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
}, any, import("
|
|
37
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
38
38
|
};
|
|
39
39
|
heading: {
|
|
40
40
|
config: {
|
|
@@ -57,7 +57,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
implementation: import("
|
|
60
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
61
61
|
type: "heading";
|
|
62
62
|
content: "inline";
|
|
63
63
|
propSchema: {
|
|
@@ -76,7 +76,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
76
76
|
values: readonly ["left", "center", "right", "justify"];
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
-
}, any, import("
|
|
79
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
80
80
|
};
|
|
81
81
|
bulletListItem: {
|
|
82
82
|
config: {
|
|
@@ -95,7 +95,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
-
implementation: import("
|
|
98
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
99
99
|
type: "bulletListItem";
|
|
100
100
|
content: "inline";
|
|
101
101
|
propSchema: {
|
|
@@ -110,7 +110,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
110
110
|
values: readonly ["left", "center", "right", "justify"];
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
}, any, import("
|
|
113
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
114
114
|
};
|
|
115
115
|
numberedListItem: {
|
|
116
116
|
config: {
|
|
@@ -129,7 +129,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
implementation: import("
|
|
132
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
133
133
|
type: "numberedListItem";
|
|
134
134
|
content: "inline";
|
|
135
135
|
propSchema: {
|
|
@@ -144,7 +144,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
144
144
|
values: readonly ["left", "center", "right", "justify"];
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
}, any, import("
|
|
147
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
148
148
|
};
|
|
149
149
|
checkListItem: {
|
|
150
150
|
config: {
|
|
@@ -166,7 +166,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
|
-
implementation: import("
|
|
169
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
170
170
|
type: "checkListItem";
|
|
171
171
|
content: "inline";
|
|
172
172
|
propSchema: {
|
|
@@ -184,7 +184,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
184
184
|
values: readonly ["left", "center", "right", "justify"];
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
}, any, import("
|
|
187
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
188
188
|
};
|
|
189
189
|
table: {
|
|
190
190
|
config: {
|
|
@@ -203,7 +203,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
-
implementation: import("
|
|
206
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
207
207
|
type: "table";
|
|
208
208
|
content: "table";
|
|
209
209
|
propSchema: {
|
|
@@ -218,7 +218,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
218
218
|
values: readonly ["left", "center", "right", "justify"];
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
|
-
}, any, import("
|
|
221
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
222
222
|
};
|
|
223
223
|
file: {
|
|
224
224
|
config: {
|
|
@@ -240,7 +240,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
240
240
|
content: "none";
|
|
241
241
|
isFileBlock: true;
|
|
242
242
|
};
|
|
243
|
-
implementation: import("
|
|
243
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
244
244
|
type: "file";
|
|
245
245
|
propSchema: {
|
|
246
246
|
backgroundColor: {
|
|
@@ -258,7 +258,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
258
258
|
};
|
|
259
259
|
content: "none";
|
|
260
260
|
isFileBlock: true;
|
|
261
|
-
}, any, import("
|
|
261
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
262
262
|
};
|
|
263
263
|
image: {
|
|
264
264
|
config: {
|
|
@@ -291,7 +291,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
291
291
|
isFileBlock: true;
|
|
292
292
|
fileBlockAccept: string[];
|
|
293
293
|
};
|
|
294
|
-
implementation: import("
|
|
294
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
295
295
|
type: "image";
|
|
296
296
|
propSchema: {
|
|
297
297
|
textAlignment: {
|
|
@@ -320,7 +320,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
320
320
|
content: "none";
|
|
321
321
|
isFileBlock: true;
|
|
322
322
|
fileBlockAccept: string[];
|
|
323
|
-
}, any, import("
|
|
323
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
324
324
|
};
|
|
325
325
|
video: {
|
|
326
326
|
config: {
|
|
@@ -353,7 +353,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
353
353
|
isFileBlock: true;
|
|
354
354
|
fileBlockAccept: string[];
|
|
355
355
|
};
|
|
356
|
-
implementation: import("
|
|
356
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
357
357
|
type: "video";
|
|
358
358
|
propSchema: {
|
|
359
359
|
textAlignment: {
|
|
@@ -382,7 +382,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
382
382
|
content: "none";
|
|
383
383
|
isFileBlock: true;
|
|
384
384
|
fileBlockAccept: string[];
|
|
385
|
-
}, any, import("
|
|
385
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
386
386
|
};
|
|
387
387
|
audio: {
|
|
388
388
|
config: {
|
|
@@ -408,7 +408,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
408
408
|
isFileBlock: true;
|
|
409
409
|
fileBlockAccept: string[];
|
|
410
410
|
};
|
|
411
|
-
implementation: import("
|
|
411
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
412
412
|
type: "audio";
|
|
413
413
|
propSchema: {
|
|
414
414
|
backgroundColor: {
|
|
@@ -430,10 +430,10 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
430
430
|
content: "none";
|
|
431
431
|
isFileBlock: true;
|
|
432
432
|
fileBlockAccept: string[];
|
|
433
|
-
}, any, import("
|
|
433
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
434
434
|
};
|
|
435
|
-
}>, import("
|
|
436
|
-
mention: import("
|
|
435
|
+
}>, import("../../../index.js").InlineContentSchemaFromSpecs<{
|
|
436
|
+
mention: import("../../../index.js").InlineContentSpec<{
|
|
437
437
|
type: "mention";
|
|
438
438
|
propSchema: {
|
|
439
439
|
user: {
|
|
@@ -442,7 +442,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
442
442
|
};
|
|
443
443
|
content: "none";
|
|
444
444
|
}>;
|
|
445
|
-
tag: import("
|
|
445
|
+
tag: import("../../../index.js").InlineContentSpec<{
|
|
446
446
|
type: "tag";
|
|
447
447
|
propSchema: {};
|
|
448
448
|
content: "styled";
|
|
@@ -455,55 +455,55 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
455
455
|
config: "link";
|
|
456
456
|
implementation: any;
|
|
457
457
|
};
|
|
458
|
-
}>, import("
|
|
458
|
+
}>, import("../../../index.js").StyleSchemaFromSpecs<{
|
|
459
459
|
bold: {
|
|
460
460
|
config: {
|
|
461
461
|
type: string;
|
|
462
462
|
propSchema: "boolean";
|
|
463
463
|
};
|
|
464
|
-
implementation: import("
|
|
464
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
465
465
|
};
|
|
466
466
|
italic: {
|
|
467
467
|
config: {
|
|
468
468
|
type: string;
|
|
469
469
|
propSchema: "boolean";
|
|
470
470
|
};
|
|
471
|
-
implementation: import("
|
|
471
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
472
472
|
};
|
|
473
473
|
underline: {
|
|
474
474
|
config: {
|
|
475
475
|
type: string;
|
|
476
476
|
propSchema: "boolean";
|
|
477
477
|
};
|
|
478
|
-
implementation: import("
|
|
478
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
479
479
|
};
|
|
480
480
|
strike: {
|
|
481
481
|
config: {
|
|
482
482
|
type: string;
|
|
483
483
|
propSchema: "boolean";
|
|
484
484
|
};
|
|
485
|
-
implementation: import("
|
|
485
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
486
486
|
};
|
|
487
487
|
code: {
|
|
488
488
|
config: {
|
|
489
489
|
type: string;
|
|
490
490
|
propSchema: "boolean";
|
|
491
491
|
};
|
|
492
|
-
implementation: import("
|
|
492
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
493
493
|
};
|
|
494
494
|
textColor: {
|
|
495
495
|
config: {
|
|
496
496
|
type: string;
|
|
497
497
|
propSchema: "string";
|
|
498
498
|
};
|
|
499
|
-
implementation: import("
|
|
499
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
500
500
|
};
|
|
501
501
|
backgroundColor: {
|
|
502
502
|
config: {
|
|
503
503
|
type: string;
|
|
504
504
|
propSchema: "string";
|
|
505
505
|
};
|
|
506
|
-
implementation: import("
|
|
506
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
507
507
|
};
|
|
508
508
|
}>>;
|
|
509
509
|
export declare const customInlineContentTestCases: EditorTestCases<DefaultBlockSchema, typeof schema.inlineContentSchema, DefaultStyleSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditorTestCases } from "../index";
|
|
2
|
-
import { DefaultBlockSchema, DefaultInlineContentSchema } from "../../../blocks/defaultBlocks";
|
|
3
|
-
import { BlockNoteSchema } from "../../../editor/BlockNoteSchema";
|
|
4
|
-
declare const schema: BlockNoteSchema<import("
|
|
1
|
+
import { EditorTestCases } from "../index.js";
|
|
2
|
+
import { DefaultBlockSchema, DefaultInlineContentSchema } from "../../../blocks/defaultBlocks.js";
|
|
3
|
+
import { BlockNoteSchema } from "../../../editor/BlockNoteSchema.js";
|
|
4
|
+
declare const schema: BlockNoteSchema<import("../../../index.js").BlockSchemaFromSpecs<{
|
|
5
5
|
paragraph: {
|
|
6
6
|
config: {
|
|
7
7
|
type: "paragraph";
|
|
@@ -19,7 +19,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
implementation: import("
|
|
22
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
23
23
|
type: "paragraph";
|
|
24
24
|
content: "inline";
|
|
25
25
|
propSchema: {
|
|
@@ -34,7 +34,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
34
34
|
values: readonly ["left", "center", "right", "justify"];
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
}, any, import("
|
|
37
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
38
38
|
};
|
|
39
39
|
heading: {
|
|
40
40
|
config: {
|
|
@@ -57,7 +57,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
implementation: import("
|
|
60
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
61
61
|
type: "heading";
|
|
62
62
|
content: "inline";
|
|
63
63
|
propSchema: {
|
|
@@ -76,7 +76,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
76
76
|
values: readonly ["left", "center", "right", "justify"];
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
-
}, any, import("
|
|
79
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
80
80
|
};
|
|
81
81
|
bulletListItem: {
|
|
82
82
|
config: {
|
|
@@ -95,7 +95,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
-
implementation: import("
|
|
98
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
99
99
|
type: "bulletListItem";
|
|
100
100
|
content: "inline";
|
|
101
101
|
propSchema: {
|
|
@@ -110,7 +110,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
110
110
|
values: readonly ["left", "center", "right", "justify"];
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
}, any, import("
|
|
113
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
114
114
|
};
|
|
115
115
|
numberedListItem: {
|
|
116
116
|
config: {
|
|
@@ -129,7 +129,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
implementation: import("
|
|
132
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
133
133
|
type: "numberedListItem";
|
|
134
134
|
content: "inline";
|
|
135
135
|
propSchema: {
|
|
@@ -144,7 +144,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
144
144
|
values: readonly ["left", "center", "right", "justify"];
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
|
-
}, any, import("
|
|
147
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
148
148
|
};
|
|
149
149
|
checkListItem: {
|
|
150
150
|
config: {
|
|
@@ -166,7 +166,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
|
-
implementation: import("
|
|
169
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
170
170
|
type: "checkListItem";
|
|
171
171
|
content: "inline";
|
|
172
172
|
propSchema: {
|
|
@@ -184,7 +184,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
184
184
|
values: readonly ["left", "center", "right", "justify"];
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
}, any, import("
|
|
187
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
188
188
|
};
|
|
189
189
|
table: {
|
|
190
190
|
config: {
|
|
@@ -203,7 +203,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
-
implementation: import("
|
|
206
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
207
207
|
type: "table";
|
|
208
208
|
content: "table";
|
|
209
209
|
propSchema: {
|
|
@@ -218,7 +218,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
218
218
|
values: readonly ["left", "center", "right", "justify"];
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
|
-
}, any, import("
|
|
221
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
222
222
|
};
|
|
223
223
|
file: {
|
|
224
224
|
config: {
|
|
@@ -240,7 +240,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
240
240
|
content: "none";
|
|
241
241
|
isFileBlock: true;
|
|
242
242
|
};
|
|
243
|
-
implementation: import("
|
|
243
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
244
244
|
type: "file";
|
|
245
245
|
propSchema: {
|
|
246
246
|
backgroundColor: {
|
|
@@ -258,7 +258,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
258
258
|
};
|
|
259
259
|
content: "none";
|
|
260
260
|
isFileBlock: true;
|
|
261
|
-
}, any, import("
|
|
261
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
262
262
|
};
|
|
263
263
|
image: {
|
|
264
264
|
config: {
|
|
@@ -291,7 +291,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
291
291
|
isFileBlock: true;
|
|
292
292
|
fileBlockAccept: string[];
|
|
293
293
|
};
|
|
294
|
-
implementation: import("
|
|
294
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
295
295
|
type: "image";
|
|
296
296
|
propSchema: {
|
|
297
297
|
textAlignment: {
|
|
@@ -320,7 +320,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
320
320
|
content: "none";
|
|
321
321
|
isFileBlock: true;
|
|
322
322
|
fileBlockAccept: string[];
|
|
323
|
-
}, any, import("
|
|
323
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
324
324
|
};
|
|
325
325
|
video: {
|
|
326
326
|
config: {
|
|
@@ -353,7 +353,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
353
353
|
isFileBlock: true;
|
|
354
354
|
fileBlockAccept: string[];
|
|
355
355
|
};
|
|
356
|
-
implementation: import("
|
|
356
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
357
357
|
type: "video";
|
|
358
358
|
propSchema: {
|
|
359
359
|
textAlignment: {
|
|
@@ -382,7 +382,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
382
382
|
content: "none";
|
|
383
383
|
isFileBlock: true;
|
|
384
384
|
fileBlockAccept: string[];
|
|
385
|
-
}, any, import("
|
|
385
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
386
386
|
};
|
|
387
387
|
audio: {
|
|
388
388
|
config: {
|
|
@@ -408,7 +408,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
408
408
|
isFileBlock: true;
|
|
409
409
|
fileBlockAccept: string[];
|
|
410
410
|
};
|
|
411
|
-
implementation: import("
|
|
411
|
+
implementation: import("../../../index.js").TiptapBlockImplementation<{
|
|
412
412
|
type: "audio";
|
|
413
413
|
propSchema: {
|
|
414
414
|
backgroundColor: {
|
|
@@ -430,9 +430,9 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
430
430
|
content: "none";
|
|
431
431
|
isFileBlock: true;
|
|
432
432
|
fileBlockAccept: string[];
|
|
433
|
-
}, any, import("
|
|
433
|
+
}, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
|
|
434
434
|
};
|
|
435
|
-
}>, import("
|
|
435
|
+
}>, import("../../../index.js").InlineContentSchemaFromSpecs<{
|
|
436
436
|
text: {
|
|
437
437
|
config: "text";
|
|
438
438
|
implementation: any;
|
|
@@ -441,12 +441,12 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
441
441
|
config: "link";
|
|
442
442
|
implementation: any;
|
|
443
443
|
};
|
|
444
|
-
}>, import("
|
|
445
|
-
small: import("
|
|
444
|
+
}>, import("../../../index.js").StyleSchemaFromSpecs<{
|
|
445
|
+
small: import("../../../index.js").StyleSpec<{
|
|
446
446
|
type: string;
|
|
447
447
|
propSchema: "boolean";
|
|
448
448
|
}>;
|
|
449
|
-
fontSize: import("
|
|
449
|
+
fontSize: import("../../../index.js").StyleSpec<{
|
|
450
450
|
type: string;
|
|
451
451
|
propSchema: "string";
|
|
452
452
|
}>;
|
|
@@ -455,49 +455,49 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
455
455
|
type: string;
|
|
456
456
|
propSchema: "boolean";
|
|
457
457
|
};
|
|
458
|
-
implementation: import("
|
|
458
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
459
459
|
};
|
|
460
460
|
italic: {
|
|
461
461
|
config: {
|
|
462
462
|
type: string;
|
|
463
463
|
propSchema: "boolean";
|
|
464
464
|
};
|
|
465
|
-
implementation: import("
|
|
465
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
466
466
|
};
|
|
467
467
|
underline: {
|
|
468
468
|
config: {
|
|
469
469
|
type: string;
|
|
470
470
|
propSchema: "boolean";
|
|
471
471
|
};
|
|
472
|
-
implementation: import("
|
|
472
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
473
473
|
};
|
|
474
474
|
strike: {
|
|
475
475
|
config: {
|
|
476
476
|
type: string;
|
|
477
477
|
propSchema: "boolean";
|
|
478
478
|
};
|
|
479
|
-
implementation: import("
|
|
479
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
480
480
|
};
|
|
481
481
|
code: {
|
|
482
482
|
config: {
|
|
483
483
|
type: string;
|
|
484
484
|
propSchema: "boolean";
|
|
485
485
|
};
|
|
486
|
-
implementation: import("
|
|
486
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
487
487
|
};
|
|
488
488
|
textColor: {
|
|
489
489
|
config: {
|
|
490
490
|
type: string;
|
|
491
491
|
propSchema: "string";
|
|
492
492
|
};
|
|
493
|
-
implementation: import("
|
|
493
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
494
494
|
};
|
|
495
495
|
backgroundColor: {
|
|
496
496
|
config: {
|
|
497
497
|
type: string;
|
|
498
498
|
propSchema: "string";
|
|
499
499
|
};
|
|
500
|
-
implementation: import("
|
|
500
|
+
implementation: import("../../../index.js").StyleImplementation;
|
|
501
501
|
};
|
|
502
502
|
}>>;
|
|
503
503
|
export declare const customStylesTestCases: EditorTestCases<DefaultBlockSchema, DefaultInlineContentSchema, typeof schema.styleSchema>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EditorTestCases } from "../index";
|
|
2
|
-
import { DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema } from "../../../blocks/defaultBlocks";
|
|
1
|
+
import { EditorTestCases } from "../index.js";
|
|
2
|
+
import { DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema } from "../../../blocks/defaultBlocks.js";
|
|
3
3
|
export declare const defaultSchemaTestCases: EditorTestCases<DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PartialBlock } from "../../blocks/defaultBlocks";
|
|
2
|
-
import { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
3
|
-
import { BlockSchema } from "../../schema/blocks/types";
|
|
4
|
-
import { InlineContentSchema } from "../../schema/inlineContent/types";
|
|
5
|
-
import { StyleSchema } from "../../schema/styles/types";
|
|
6
|
-
import { NoInfer } from "../../util/typescript";
|
|
1
|
+
import { PartialBlock } from "../../blocks/defaultBlocks.js";
|
|
2
|
+
import { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
3
|
+
import { BlockSchema } from "../../schema/blocks/types.js";
|
|
4
|
+
import { InlineContentSchema } from "../../schema/inlineContent/types.js";
|
|
5
|
+
import { StyleSchema } from "../../schema/styles/types.js";
|
|
6
|
+
import { NoInfer } from "../../util/typescript.js";
|
|
7
7
|
export type EditorTestCases<B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
8
8
|
name: string;
|
|
9
9
|
createEditor: () => BlockNoteEditor<B, I, S>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Block, PartialBlock } from "../../blocks/defaultBlocks";
|
|
2
|
-
import { BlockSchema } from "../../schema/blocks/types";
|
|
3
|
-
import { InlineContentSchema } from "../../schema/inlineContent/types";
|
|
4
|
-
import { StyleSchema } from "../../schema/styles/types";
|
|
1
|
+
import { Block, PartialBlock } from "../../blocks/defaultBlocks.js";
|
|
2
|
+
import { BlockSchema } from "../../schema/blocks/types.js";
|
|
3
|
+
import { InlineContentSchema } from "../../schema/inlineContent/types.js";
|
|
4
|
+
import { StyleSchema } from "../../schema/styles/types.js";
|
|
5
5
|
export declare function partialBlocksToBlocksForTesting<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(schema: BSchema, partialBlocks: Array<PartialBlock<BSchema, I, S>>): Array<Block<BSchema, I, S>>;
|
|
6
6
|
export declare function partialBlockToBlockForTesting<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(schema: BSchema, partialBlock: PartialBlock<BSchema, I, S>): Block<BSchema, I, S>;
|
|
7
7
|
export declare function addIdsToBlock(block: PartialBlock<any, any, any>): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
2
|
-
import { BlockFromConfig, Props } from "../../schema";
|
|
1
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
2
|
+
import { BlockFromConfig, Props } from "../../schema/index.js";
|
|
3
3
|
export declare const audioPropSchema: {
|
|
4
4
|
backgroundColor: {
|
|
5
5
|
default: "default";
|
|
@@ -75,7 +75,7 @@ export declare const AudioBlock: {
|
|
|
75
75
|
isFileBlock: true;
|
|
76
76
|
fileBlockAccept: string[];
|
|
77
77
|
};
|
|
78
|
-
implementation: import("../../schema").TiptapBlockImplementation<{
|
|
78
|
+
implementation: import("../../schema/index.js").TiptapBlockImplementation<{
|
|
79
79
|
type: "audio";
|
|
80
80
|
propSchema: {
|
|
81
81
|
backgroundColor: {
|
|
@@ -97,5 +97,5 @@ export declare const AudioBlock: {
|
|
|
97
97
|
content: "none";
|
|
98
98
|
isFileBlock: true;
|
|
99
99
|
fileBlockAccept: string[];
|
|
100
|
-
}, any, import("../../schema").InlineContentSchema, import("../../schema").StyleSchema>;
|
|
100
|
+
}, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
|
|
101
101
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
2
|
-
import { BlockFromConfig } from "../../schema";
|
|
1
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
2
|
+
import { BlockFromConfig } from "../../schema/index.js";
|
|
3
3
|
export declare const filePropSchema: {
|
|
4
4
|
backgroundColor: {
|
|
5
5
|
default: "default";
|
|
@@ -71,7 +71,7 @@ export declare const FileBlock: {
|
|
|
71
71
|
content: "none";
|
|
72
72
|
isFileBlock: true;
|
|
73
73
|
};
|
|
74
|
-
implementation: import("../../schema").TiptapBlockImplementation<{
|
|
74
|
+
implementation: import("../../schema/index.js").TiptapBlockImplementation<{
|
|
75
75
|
type: "file";
|
|
76
76
|
propSchema: {
|
|
77
77
|
backgroundColor: {
|
|
@@ -89,5 +89,5 @@ export declare const FileBlock: {
|
|
|
89
89
|
};
|
|
90
90
|
content: "none";
|
|
91
91
|
isFileBlock: true;
|
|
92
|
-
}, any, import("../../schema").InlineContentSchema, import("../../schema").StyleSchema>;
|
|
92
|
+
}, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
|
|
93
93
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
2
|
-
import { BlockFromConfig, BlockSchemaWithBlock, FileBlockConfig } from "../../schema";
|
|
1
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
2
|
+
import { BlockFromConfig, BlockSchemaWithBlock, FileBlockConfig } from "../../schema/index.js";
|
|
3
3
|
export declare const createFileBlockWrapper: (block: BlockFromConfig<FileBlockConfig, any, any>, editor: BlockNoteEditor<BlockSchemaWithBlock<FileBlockConfig["type"], FileBlockConfig>, any, any>, element: {
|
|
4
4
|
dom: HTMLElement;
|
|
5
5
|
destroy?: () => void;
|
|
@@ -35,7 +35,7 @@ export declare const Heading: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
implementation: import("../../schema").TiptapBlockImplementation<{
|
|
38
|
+
implementation: import("../../schema/index.js").TiptapBlockImplementation<{
|
|
39
39
|
type: "heading";
|
|
40
40
|
content: "inline";
|
|
41
41
|
propSchema: {
|
|
@@ -54,5 +54,5 @@ export declare const Heading: {
|
|
|
54
54
|
values: readonly ["left", "center", "right", "justify"];
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
}, any, import("../../schema").InlineContentSchema, import("../../schema").StyleSchema>;
|
|
57
|
+
}, any, import("../../schema/index.js").InlineContentSchema, import("../../schema/index.js").StyleSchema>;
|
|
58
58
|
};
|