@blocknote/core 0.16.0 → 0.17.0
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 +3287 -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 +333 -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,9 +1,9 @@
|
|
|
1
1
|
import { EditorState, Plugin, PluginKey, PluginView } from "prosemirror-state";
|
|
2
2
|
import { EditorView } from "prosemirror-view";
|
|
3
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
4
|
-
import { UiElementPosition } from "../../extensions-shared/UiElementPosition";
|
|
5
|
-
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
6
|
-
import { EventEmitter } from "../../util/EventEmitter";
|
|
3
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
4
|
+
import { UiElementPosition } from "../../extensions-shared/UiElementPosition.js";
|
|
5
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
6
|
+
import { EventEmitter } from "../../util/EventEmitter.js";
|
|
7
7
|
export type FormattingToolbarState = UiElementPosition;
|
|
8
8
|
export declare class FormattingToolbarView implements PluginView {
|
|
9
9
|
private readonly editor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, PluginKey } from "prosemirror-state";
|
|
2
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
3
|
-
import { UiElementPosition } from "../../extensions-shared/UiElementPosition";
|
|
4
|
-
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
5
|
-
import { EventEmitter } from "../../util/EventEmitter";
|
|
2
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
3
|
+
import { UiElementPosition } from "../../extensions-shared/UiElementPosition.js";
|
|
4
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
5
|
+
import { EventEmitter } from "../../util/EventEmitter.js";
|
|
6
6
|
export type LinkToolbarState = UiElementPosition & {
|
|
7
7
|
url: string;
|
|
8
8
|
text: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Plugin } from "prosemirror-state";
|
|
2
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
2
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
3
3
|
export declare const PlaceholderPlugin: (editor: BlockNoteEditor<any, any, any>, placeholders: Record<string | "default", string>) => Plugin<any>;
|
|
@@ -1,36 +1,28 @@
|
|
|
1
1
|
import { PluginView } from "@tiptap/pm/state";
|
|
2
|
-
import { Plugin, PluginKey } from "prosemirror-state";
|
|
2
|
+
import { EditorState, Plugin, PluginKey } from "prosemirror-state";
|
|
3
3
|
import { EditorView } from "prosemirror-view";
|
|
4
|
-
import { Block } from "../../blocks/defaultBlocks";
|
|
5
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
6
|
-
import { UiElementPosition } from "../../extensions-shared/UiElementPosition";
|
|
7
|
-
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
8
|
-
import { EventEmitter } from "../../util/EventEmitter";
|
|
4
|
+
import { Block } from "../../blocks/defaultBlocks.js";
|
|
5
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
6
|
+
import { UiElementPosition } from "../../extensions-shared/UiElementPosition.js";
|
|
7
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
8
|
+
import { EventEmitter } from "../../util/EventEmitter.js";
|
|
9
9
|
export type SideMenuState<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = UiElementPosition & {
|
|
10
10
|
block: Block<BSchema, I, S>;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* With the sidemenu plugin we can position a menu next to a hovered block.
|
|
14
|
+
*/
|
|
16
15
|
export declare class SideMenuView<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> implements PluginView {
|
|
17
16
|
private readonly editor;
|
|
18
17
|
private readonly pmView;
|
|
19
18
|
state?: SideMenuState<BSchema, I, S>;
|
|
20
19
|
readonly emitUpdate: (state: SideMenuState<BSchema, I, S>) => void;
|
|
21
|
-
private needUpdate;
|
|
22
20
|
private mousePos;
|
|
23
|
-
private horizontalPosAnchoredAtRoot;
|
|
24
|
-
private horizontalPosAnchor;
|
|
25
21
|
private hoveredBlock;
|
|
26
|
-
isDragging: boolean;
|
|
27
22
|
menuFrozen: boolean;
|
|
28
23
|
constructor(editor: BlockNoteEditor<BSchema, I, S>, pmView: EditorView, emitUpdate: (state: SideMenuState<BSchema, I, S>) => void);
|
|
29
|
-
updateState: () => void;
|
|
30
|
-
|
|
31
|
-
* Sets isDragging when dragging text.
|
|
32
|
-
*/
|
|
33
|
-
onDragStart: () => void;
|
|
24
|
+
updateState: (state: SideMenuState<BSchema, I, S>) => void;
|
|
25
|
+
updateStateFromMousePos: () => void;
|
|
34
26
|
/**
|
|
35
27
|
* If the event is outside the editor contents,
|
|
36
28
|
* we dispatch a fake event, so that we can still drop the content
|
|
@@ -44,12 +36,9 @@ export declare class SideMenuView<BSchema extends BlockSchema, I extends InlineC
|
|
|
44
36
|
*/
|
|
45
37
|
onDragOver: (event: DragEvent) => void;
|
|
46
38
|
onKeyDown: (_event: KeyboardEvent) => void;
|
|
47
|
-
onMouseDown: () => void;
|
|
48
39
|
onMouseMove: (event: MouseEvent) => void;
|
|
49
|
-
|
|
50
|
-
update(): void;
|
|
40
|
+
update(_view: EditorView, prevState: EditorState): void;
|
|
51
41
|
destroy(): void;
|
|
52
|
-
addBlock(): void;
|
|
53
42
|
}
|
|
54
43
|
export declare const sideMenuPluginKey: PluginKey<any>;
|
|
55
44
|
export declare class SideMenuProsemirrorPlugin<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> extends EventEmitter<any> {
|
|
@@ -58,11 +47,6 @@ export declare class SideMenuProsemirrorPlugin<BSchema extends BlockSchema, I ex
|
|
|
58
47
|
readonly plugin: Plugin;
|
|
59
48
|
constructor(editor: BlockNoteEditor<BSchema, I, S>);
|
|
60
49
|
onUpdate(callback: (state: SideMenuState<BSchema, I, S>) => void): () => void;
|
|
61
|
-
/**
|
|
62
|
-
* If the block is empty, opens the slash menu. If the block has content,
|
|
63
|
-
* creates a new block below and opens the slash menu in it.
|
|
64
|
-
*/
|
|
65
|
-
addBlock: () => void;
|
|
66
50
|
/**
|
|
67
51
|
* Handles drag & drop events for blocks.
|
|
68
52
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EditorView } from "prosemirror-view";
|
|
2
|
+
import { Block } from "../../blocks/defaultBlocks.js";
|
|
3
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
4
|
+
import { UiElementPosition } from "../../extensions-shared/UiElementPosition.js";
|
|
5
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
6
|
+
export type SideMenuState<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = UiElementPosition & {
|
|
7
|
+
block: Block<BSchema, I, S>;
|
|
8
|
+
};
|
|
9
|
+
export declare function getDraggableBlockFromElement(element: Element, view: EditorView): {
|
|
10
|
+
node: HTMLElement;
|
|
11
|
+
id: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
export declare function unsetDragImage(rootEl: Document | ShadowRoot): void;
|
|
14
|
+
export declare function dragStart<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(e: {
|
|
15
|
+
dataTransfer: DataTransfer | null;
|
|
16
|
+
clientY: number;
|
|
17
|
+
}, editor: BlockNoteEditor<BSchema, I, S>): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin } from "prosemirror-state";
|
|
2
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
3
|
-
import { UiElementPosition } from "../../extensions-shared/UiElementPosition";
|
|
4
|
-
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
5
|
-
import { EventEmitter } from "../../util/EventEmitter";
|
|
2
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
3
|
+
import { UiElementPosition } from "../../extensions-shared/UiElementPosition.js";
|
|
4
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
5
|
+
import { EventEmitter } from "../../util/EventEmitter.js";
|
|
6
6
|
export type SuggestionMenuState = UiElementPosition & {
|
|
7
7
|
query: string;
|
|
8
8
|
ignoreQueryLength?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
2
|
-
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
3
|
-
import { DefaultGridSuggestionItem } from "./DefaultGridSuggestionItem";
|
|
1
|
+
import { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
2
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
3
|
+
import { DefaultGridSuggestionItem } from "./DefaultGridSuggestionItem.js";
|
|
4
4
|
export declare function getDefaultEmojiPickerItems<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(editor: BlockNoteEditor<BSchema, I, S>, query: string): Promise<DefaultGridSuggestionItem[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Block, PartialBlock } from "../../blocks/defaultBlocks";
|
|
2
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
3
|
-
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema";
|
|
4
|
-
import { DefaultSuggestionItem } from "./DefaultSuggestionItem";
|
|
1
|
+
import { Block, PartialBlock } from "../../blocks/defaultBlocks.js";
|
|
2
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
3
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
4
|
+
import { DefaultSuggestionItem } from "./DefaultSuggestionItem.js";
|
|
5
5
|
export declare function insertOrUpdateBlock<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(editor: BlockNoteEditor<BSchema, I, S>, block: PartialBlock<BSchema, I, S>): Block<BSchema, I, S>;
|
|
6
6
|
export declare function getDefaultSlashMenuItems<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(editor: BlockNoteEditor<BSchema, I, S>): DefaultSuggestionItem[];
|
|
7
7
|
export declare function filterSuggestionItems<T extends {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Plugin, PluginKey, PluginView } from "prosemirror-state";
|
|
2
2
|
import { EditorView } from "prosemirror-view";
|
|
3
|
-
import { DefaultBlockSchema } from "../../blocks/defaultBlocks";
|
|
4
|
-
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor";
|
|
5
|
-
import { BlockFromConfigNoChildren, BlockSchemaWithBlock, InlineContentSchema, StyleSchema } from "../../schema";
|
|
6
|
-
import { EventEmitter } from "../../util/EventEmitter";
|
|
3
|
+
import { DefaultBlockSchema } from "../../blocks/defaultBlocks.js";
|
|
4
|
+
import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
5
|
+
import { BlockFromConfigNoChildren, BlockSchemaWithBlock, InlineContentSchema, StyleSchema } from "../../schema/index.js";
|
|
6
|
+
import { EventEmitter } from "../../util/EventEmitter.js";
|
|
7
7
|
export type TableHandlesState<I extends InlineContentSchema, S extends StyleSchema> = {
|
|
8
8
|
show: boolean;
|
|
9
9
|
referencePosCell: DOMRect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { en } from "./locales";
|
|
1
|
+
import type { en } from "./locales/index.js";
|
|
2
2
|
export type Dictionary = typeof en;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const ar: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dictionary } from "../dictionary";
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const fr: Dictionary;
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export declare const hr: {
|
|
2
|
+
slash_menu: {
|
|
3
|
+
heading: {
|
|
4
|
+
title: string;
|
|
5
|
+
subtext: string;
|
|
6
|
+
aliases: string[];
|
|
7
|
+
group: string;
|
|
8
|
+
};
|
|
9
|
+
heading_2: {
|
|
10
|
+
title: string;
|
|
11
|
+
subtext: string;
|
|
12
|
+
aliases: string[];
|
|
13
|
+
group: string;
|
|
14
|
+
};
|
|
15
|
+
heading_3: {
|
|
16
|
+
title: string;
|
|
17
|
+
subtext: string;
|
|
18
|
+
aliases: string[];
|
|
19
|
+
group: string;
|
|
20
|
+
};
|
|
21
|
+
numbered_list: {
|
|
22
|
+
title: string;
|
|
23
|
+
subtext: string;
|
|
24
|
+
aliases: string[];
|
|
25
|
+
group: string;
|
|
26
|
+
};
|
|
27
|
+
bullet_list: {
|
|
28
|
+
title: string;
|
|
29
|
+
subtext: string;
|
|
30
|
+
aliases: string[];
|
|
31
|
+
group: string;
|
|
32
|
+
};
|
|
33
|
+
check_list: {
|
|
34
|
+
title: string;
|
|
35
|
+
subtext: string;
|
|
36
|
+
aliases: string[];
|
|
37
|
+
group: string;
|
|
38
|
+
};
|
|
39
|
+
paragraph: {
|
|
40
|
+
title: string;
|
|
41
|
+
subtext: string;
|
|
42
|
+
aliases: string[];
|
|
43
|
+
group: string;
|
|
44
|
+
};
|
|
45
|
+
table: {
|
|
46
|
+
title: string;
|
|
47
|
+
subtext: string;
|
|
48
|
+
aliases: string[];
|
|
49
|
+
group: string;
|
|
50
|
+
};
|
|
51
|
+
image: {
|
|
52
|
+
title: string;
|
|
53
|
+
subtext: string;
|
|
54
|
+
aliases: string[];
|
|
55
|
+
group: string;
|
|
56
|
+
};
|
|
57
|
+
video: {
|
|
58
|
+
title: string;
|
|
59
|
+
subtext: string;
|
|
60
|
+
aliases: string[];
|
|
61
|
+
group: string;
|
|
62
|
+
};
|
|
63
|
+
audio: {
|
|
64
|
+
title: string;
|
|
65
|
+
subtext: string;
|
|
66
|
+
aliases: string[];
|
|
67
|
+
group: string;
|
|
68
|
+
};
|
|
69
|
+
file: {
|
|
70
|
+
title: string;
|
|
71
|
+
subtext: string;
|
|
72
|
+
aliases: string[];
|
|
73
|
+
group: string;
|
|
74
|
+
};
|
|
75
|
+
emoji: {
|
|
76
|
+
title: string;
|
|
77
|
+
subtext: string;
|
|
78
|
+
aliases: string[];
|
|
79
|
+
group: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
placeholders: {
|
|
83
|
+
default: string;
|
|
84
|
+
heading: string;
|
|
85
|
+
bulletListItem: string;
|
|
86
|
+
numberedListItem: string;
|
|
87
|
+
checkListItem: string;
|
|
88
|
+
};
|
|
89
|
+
file_blocks: {
|
|
90
|
+
image: {
|
|
91
|
+
add_button_text: string;
|
|
92
|
+
};
|
|
93
|
+
video: {
|
|
94
|
+
add_button_text: string;
|
|
95
|
+
};
|
|
96
|
+
audio: {
|
|
97
|
+
add_button_text: string;
|
|
98
|
+
};
|
|
99
|
+
file: {
|
|
100
|
+
add_button_text: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
side_menu: {
|
|
104
|
+
add_block_label: string;
|
|
105
|
+
drag_handle_label: string;
|
|
106
|
+
};
|
|
107
|
+
drag_handle: {
|
|
108
|
+
delete_menuitem: string;
|
|
109
|
+
colors_menuitem: string;
|
|
110
|
+
};
|
|
111
|
+
table_handle: {
|
|
112
|
+
delete_column_menuitem: string;
|
|
113
|
+
delete_row_menuitem: string;
|
|
114
|
+
add_left_menuitem: string;
|
|
115
|
+
add_right_menuitem: string;
|
|
116
|
+
add_above_menuitem: string;
|
|
117
|
+
add_below_menuitem: string;
|
|
118
|
+
};
|
|
119
|
+
suggestion_menu: {
|
|
120
|
+
no_items_title: string;
|
|
121
|
+
loading: string;
|
|
122
|
+
};
|
|
123
|
+
color_picker: {
|
|
124
|
+
text_title: string;
|
|
125
|
+
background_title: string;
|
|
126
|
+
colors: {
|
|
127
|
+
default: string;
|
|
128
|
+
gray: string;
|
|
129
|
+
brown: string;
|
|
130
|
+
red: string;
|
|
131
|
+
orange: string;
|
|
132
|
+
yellow: string;
|
|
133
|
+
green: string;
|
|
134
|
+
blue: string;
|
|
135
|
+
purple: string;
|
|
136
|
+
pink: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
formatting_toolbar: {
|
|
140
|
+
bold: {
|
|
141
|
+
tooltip: string;
|
|
142
|
+
secondary_tooltip: string;
|
|
143
|
+
};
|
|
144
|
+
italic: {
|
|
145
|
+
tooltip: string;
|
|
146
|
+
secondary_tooltip: string;
|
|
147
|
+
};
|
|
148
|
+
underline: {
|
|
149
|
+
tooltip: string;
|
|
150
|
+
secondary_tooltip: string;
|
|
151
|
+
};
|
|
152
|
+
strike: {
|
|
153
|
+
tooltip: string;
|
|
154
|
+
secondary_tooltip: string;
|
|
155
|
+
};
|
|
156
|
+
code: {
|
|
157
|
+
tooltip: string;
|
|
158
|
+
secondary_tooltip: string;
|
|
159
|
+
};
|
|
160
|
+
colors: {
|
|
161
|
+
tooltip: string;
|
|
162
|
+
};
|
|
163
|
+
link: {
|
|
164
|
+
tooltip: string;
|
|
165
|
+
secondary_tooltip: string;
|
|
166
|
+
};
|
|
167
|
+
file_caption: {
|
|
168
|
+
tooltip: string;
|
|
169
|
+
input_placeholder: string;
|
|
170
|
+
};
|
|
171
|
+
file_replace: {
|
|
172
|
+
tooltip: Record<string, string>;
|
|
173
|
+
};
|
|
174
|
+
file_rename: {
|
|
175
|
+
tooltip: Record<string, string>;
|
|
176
|
+
input_placeholder: Record<string, string>;
|
|
177
|
+
};
|
|
178
|
+
file_download: {
|
|
179
|
+
tooltip: Record<string, string>;
|
|
180
|
+
};
|
|
181
|
+
file_delete: {
|
|
182
|
+
tooltip: Record<string, string>;
|
|
183
|
+
};
|
|
184
|
+
file_preview_toggle: {
|
|
185
|
+
tooltip: string;
|
|
186
|
+
};
|
|
187
|
+
nest: {
|
|
188
|
+
tooltip: string;
|
|
189
|
+
secondary_tooltip: string;
|
|
190
|
+
};
|
|
191
|
+
unnest: {
|
|
192
|
+
tooltip: string;
|
|
193
|
+
secondary_tooltip: string;
|
|
194
|
+
};
|
|
195
|
+
align_left: {
|
|
196
|
+
tooltip: string;
|
|
197
|
+
};
|
|
198
|
+
align_center: {
|
|
199
|
+
tooltip: string;
|
|
200
|
+
};
|
|
201
|
+
align_right: {
|
|
202
|
+
tooltip: string;
|
|
203
|
+
};
|
|
204
|
+
align_justify: {
|
|
205
|
+
tooltip: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
file_panel: {
|
|
209
|
+
upload: {
|
|
210
|
+
title: string;
|
|
211
|
+
file_placeholder: Record<string, string>;
|
|
212
|
+
upload_error: string;
|
|
213
|
+
};
|
|
214
|
+
embed: {
|
|
215
|
+
title: string;
|
|
216
|
+
embed_button: Record<string, string>;
|
|
217
|
+
url_placeholder: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
link_toolbar: {
|
|
221
|
+
delete: {
|
|
222
|
+
tooltip: string;
|
|
223
|
+
};
|
|
224
|
+
edit: {
|
|
225
|
+
text: string;
|
|
226
|
+
tooltip: string;
|
|
227
|
+
};
|
|
228
|
+
open: {
|
|
229
|
+
tooltip: string;
|
|
230
|
+
};
|
|
231
|
+
form: {
|
|
232
|
+
title_placeholder: string;
|
|
233
|
+
url_placeholder: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
generic: {
|
|
237
|
+
ctrl_shortcut: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export * from "./ar";
|
|
2
|
-
export * from "./de";
|
|
3
|
-
export * from "./en";
|
|
4
|
-
export * from "./es";
|
|
5
|
-
export * from "./fr";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
1
|
+
export * from "./ar.js";
|
|
2
|
+
export * from "./de.js";
|
|
3
|
+
export * from "./en.js";
|
|
4
|
+
export * from "./es.js";
|
|
5
|
+
export * from "./fr.js";
|
|
6
|
+
export * from "./hr.js";
|
|
7
|
+
export * from "./is.js";
|
|
8
|
+
export * from "./ja.js";
|
|
9
|
+
export * from "./ko.js";
|
|
10
|
+
export * from "./nl.js";
|
|
11
|
+
export * from "./pl.js";
|
|
12
|
+
export * from "./pt.js";
|
|
13
|
+
export * from "./ru.js";
|
|
14
|
+
export * from "./vi.js";
|
|
15
|
+
export * from "./zh.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const is: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dictionary } from "../dictionary";
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const ja: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dictionary } from "../dictionary";
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const ko: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const nl: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const pl: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const pt: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dictionary } from "../dictionary";
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const ru: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const vi: Dictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Dictionary } from "../dictionary";
|
|
1
|
+
import type { Dictionary } from "../dictionary.js";
|
|
2
2
|
export declare const zh: Dictionary;
|
package/types/src/index.d.ts
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import * as locales from "./i18n/locales";
|
|
2
|
-
export * from "./api/exporters/html/externalHTMLExporter";
|
|
3
|
-
export * from "./api/exporters/html/internalHTMLSerializer";
|
|
4
|
-
export * from "./api/
|
|
5
|
-
export * from "./api/testUtil";
|
|
6
|
-
export * from "./blocks/AudioBlockContent/AudioBlockContent";
|
|
7
|
-
export * from "./blocks/FileBlockContent/FileBlockContent";
|
|
8
|
-
export * from "./blocks/FileBlockContent/fileBlockHelpers";
|
|
9
|
-
export * from "./blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY";
|
|
10
|
-
export * from "./blocks/ImageBlockContent/ImageBlockContent";
|
|
11
|
-
export { parseImageElement } from "./blocks/ImageBlockContent/imageBlockHelpers";
|
|
12
|
-
export * from "./blocks/VideoBlockContent/VideoBlockContent";
|
|
13
|
-
export * from "./blocks/defaultBlockHelpers";
|
|
14
|
-
export * from "./blocks/defaultBlockTypeGuards";
|
|
15
|
-
export * from "./blocks/defaultBlocks";
|
|
16
|
-
export * from "./blocks/defaultProps";
|
|
17
|
-
export * from "./editor/BlockNoteEditor";
|
|
18
|
-
export * from "./editor/BlockNoteExtensions";
|
|
19
|
-
export * from "./editor/BlockNoteSchema";
|
|
20
|
-
export * from "./editor/selectionTypes";
|
|
21
|
-
export * from "./extensions-shared/UiElementPosition";
|
|
22
|
-
export * from "./extensions/FilePanel/FilePanelPlugin";
|
|
23
|
-
export * from "./extensions/FormattingToolbar/FormattingToolbarPlugin";
|
|
24
|
-
export * from "./extensions/LinkToolbar/LinkToolbarPlugin";
|
|
25
|
-
export * from "./extensions/SideMenu/SideMenuPlugin";
|
|
26
|
-
export * from "./extensions/SuggestionMenu/DefaultGridSuggestionItem";
|
|
27
|
-
export * from "./extensions/SuggestionMenu/DefaultSuggestionItem";
|
|
28
|
-
export * from "./extensions/SuggestionMenu/SuggestionPlugin";
|
|
29
|
-
export * from "./extensions/SuggestionMenu/getDefaultEmojiPickerItems";
|
|
30
|
-
export * from "./extensions/SuggestionMenu/getDefaultSlashMenuItems";
|
|
31
|
-
export * from "./extensions/TableHandles/TableHandlesPlugin";
|
|
32
|
-
export * from "./i18n/dictionary";
|
|
33
|
-
export * from "./schema";
|
|
34
|
-
export * from "./util/browser";
|
|
35
|
-
export * from "./util/esmDependencies";
|
|
36
|
-
export * from "./util/string";
|
|
37
|
-
export * from "./util/typescript";
|
|
38
|
-
export { UnreachableCaseError, assertEmpty } from "./util/typescript";
|
|
1
|
+
import * as locales from "./i18n/locales/index.js";
|
|
2
|
+
export * from "./api/exporters/html/externalHTMLExporter.js";
|
|
3
|
+
export * from "./api/exporters/html/internalHTMLSerializer.js";
|
|
4
|
+
export * from "./api/getBlockInfoFromPos.js";
|
|
5
|
+
export * from "./api/testUtil/index.js";
|
|
6
|
+
export * from "./blocks/AudioBlockContent/AudioBlockContent.js";
|
|
7
|
+
export * from "./blocks/FileBlockContent/FileBlockContent.js";
|
|
8
|
+
export * from "./blocks/FileBlockContent/fileBlockHelpers.js";
|
|
9
|
+
export * from "./blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.js";
|
|
10
|
+
export * from "./blocks/ImageBlockContent/ImageBlockContent.js";
|
|
11
|
+
export { parseImageElement } from "./blocks/ImageBlockContent/imageBlockHelpers.js";
|
|
12
|
+
export * from "./blocks/VideoBlockContent/VideoBlockContent.js";
|
|
13
|
+
export * from "./blocks/defaultBlockHelpers.js";
|
|
14
|
+
export * from "./blocks/defaultBlockTypeGuards.js";
|
|
15
|
+
export * from "./blocks/defaultBlocks.js";
|
|
16
|
+
export * from "./blocks/defaultProps.js";
|
|
17
|
+
export * from "./editor/BlockNoteEditor.js";
|
|
18
|
+
export * from "./editor/BlockNoteExtensions.js";
|
|
19
|
+
export * from "./editor/BlockNoteSchema.js";
|
|
20
|
+
export * from "./editor/selectionTypes.js";
|
|
21
|
+
export * from "./extensions-shared/UiElementPosition.js";
|
|
22
|
+
export * from "./extensions/FilePanel/FilePanelPlugin.js";
|
|
23
|
+
export * from "./extensions/FormattingToolbar/FormattingToolbarPlugin.js";
|
|
24
|
+
export * from "./extensions/LinkToolbar/LinkToolbarPlugin.js";
|
|
25
|
+
export * from "./extensions/SideMenu/SideMenuPlugin.js";
|
|
26
|
+
export * from "./extensions/SuggestionMenu/DefaultGridSuggestionItem.js";
|
|
27
|
+
export * from "./extensions/SuggestionMenu/DefaultSuggestionItem.js";
|
|
28
|
+
export * from "./extensions/SuggestionMenu/SuggestionPlugin.js";
|
|
29
|
+
export * from "./extensions/SuggestionMenu/getDefaultEmojiPickerItems.js";
|
|
30
|
+
export * from "./extensions/SuggestionMenu/getDefaultSlashMenuItems.js";
|
|
31
|
+
export * from "./extensions/TableHandles/TableHandlesPlugin.js";
|
|
32
|
+
export * from "./i18n/dictionary.js";
|
|
33
|
+
export * from "./schema/index.js";
|
|
34
|
+
export * from "./util/browser.js";
|
|
35
|
+
export * from "./util/esmDependencies.js";
|
|
36
|
+
export * from "./util/string.js";
|
|
37
|
+
export * from "./util/typescript.js";
|
|
38
|
+
export { UnreachableCaseError, assertEmpty } from "./util/typescript.js";
|
|
39
39
|
export { locales };
|
|
40
|
-
export * from "./api/nodeConversions/
|
|
41
|
-
export * from "./api/
|
|
42
|
-
export * from "./
|
|
43
|
-
export * from "./
|
|
44
|
-
export * from "./api/
|
|
45
|
-
export * from "./api/parsers/
|
|
40
|
+
export * from "./api/nodeConversions/blockToNode.js";
|
|
41
|
+
export * from "./api/nodeConversions/nodeToBlock.js";
|
|
42
|
+
export * from "./api/testUtil/partialBlockTestUtil.js";
|
|
43
|
+
export * from "./extensions/UniqueID/UniqueID.js";
|
|
44
|
+
export * from "./api/exporters/markdown/markdownExporter.js";
|
|
45
|
+
export * from "./api/parsers/html/parseHTML.js";
|
|
46
|
+
export * from "./api/parsers/markdown/parseMarkdown.js";
|