@blocknote/core 0.21.0 → 0.22.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 +1023 -999
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +7 -7
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraph.html +96 -0
- package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraphText.html +96 -0
- package/src/api/clipboard/__snapshots__/external/pasteImage.html +111 -0
- package/src/api/clipboard/__snapshots__/external/pasteParagraphInCustomBlock.html +96 -0
- package/src/api/clipboard/__snapshots__/external/pasteTable.html +149 -0
- package/src/api/clipboard/__snapshots__/external/pasteTableInExistingTable.html +124 -0
- package/src/api/clipboard/__snapshots__/internal/paragraphInCustomBlock.html +1 -0
- package/src/api/clipboard/clipboardExternal.test.ts +161 -0
- package/src/api/clipboard/{clipboard.test.ts → clipboardInternal.test.ts} +60 -38
- package/src/api/clipboard/testUtil.ts +27 -0
- package/src/api/clipboard/toClipboard/copyExtension.ts +1 -0
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +7 -1
- package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +3 -1
- package/src/api/nodeConversions/nodeToBlock.ts +4 -1
- package/src/api/parsers/markdown/__snapshots__/pasted/styled.json +2 -2
- package/src/api/testUtil/partialBlockTestUtil.ts +4 -1
- package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +3 -19
- package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +3 -15
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +11 -3
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +25 -5
- package/src/editor/Block.css +3 -3
- package/src/editor/BlockNoteEditor.test.ts +21 -1
- package/src/editor/editor.css +6 -6
- package/src/editor/transformPasted.ts +57 -4
- package/src/schema/blocks/createSpec.ts +1 -1
- package/src/schema/blocks/internal.ts +16 -6
- package/src/schema/inlineContent/internal.ts +4 -1
- package/src/schema/propTypes.ts +41 -18
- package/types/src/api/blockManipulation/setupTestEnv.d.ts +8 -0
- package/types/src/api/clipboard/clipboardInternal.test.d.ts +1 -0
- package/types/src/api/clipboard/testUtil.d.ts +509 -0
- package/types/src/api/testUtil/cases/customBlocks.d.ts +8 -0
- package/types/src/api/testUtil/cases/customInlineContent.d.ts +8 -0
- package/types/src/api/testUtil/cases/customStyles.d.ts +8 -0
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +12 -0
- package/types/src/blocks/defaultBlocks.d.ts +16 -0
- package/types/src/editor/transformPasted.d.ts +8 -4
- package/types/src/schema/propTypes.d.ts +20 -2
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.js +0 -30
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.js +0 -99
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.js +0 -97
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.js +0 -88
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.js +0 -219
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.js +0 -175
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/nestBlock/nestBlock.js +0 -57
- package/dist/src/api/blockManipulation/commands/nestBlock/nestBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.js +0 -5
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.js +0 -31
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.js +0 -71
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.js +0 -157
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.js +0 -27
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.test.js +0 -67
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.js +0 -148
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.test.js +0 -252
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.test.js.map +0 -1
- package/dist/src/api/blockManipulation/getBlock/getBlock.js +0 -56
- package/dist/src/api/blockManipulation/getBlock/getBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/insertContentAt.js +0 -64
- package/dist/src/api/blockManipulation/insertContentAt.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/selection.js +0 -149
- package/dist/src/api/blockManipulation/selections/selection.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/selection.test.js +0 -39
- package/dist/src/api/blockManipulation/selections/selection.test.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.js +0 -79
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.js +0 -33
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.js.map +0 -1
- package/dist/src/api/blockManipulation/setupTestEnv.js +0 -172
- package/dist/src/api/blockManipulation/setupTestEnv.js.map +0 -1
- package/dist/src/api/clipboard/clipboard.test.js +0 -249
- package/dist/src/api/clipboard/clipboard.test.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/acceptedMIMETypes.js +0 -8
- package/dist/src/api/clipboard/fromClipboard/acceptedMIMETypes.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/fileDropExtension.js +0 -38
- package/dist/src/api/clipboard/fromClipboard/fileDropExtension.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/handleFileInsertion.js +0 -111
- package/dist/src/api/clipboard/fromClipboard/handleFileInsertion.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/handleVSCodePaste.js +0 -25
- package/dist/src/api/clipboard/fromClipboard/handleVSCodePaste.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/pasteExtension.js +0 -57
- package/dist/src/api/clipboard/fromClipboard/pasteExtension.js.map +0 -1
- package/dist/src/api/clipboard/toClipboard/copyExtension.js +0 -134
- package/dist/src/api/clipboard/toClipboard/copyExtension.js.map +0 -1
- package/dist/src/api/exporters/html/externalHTMLExporter.js +0 -35
- package/dist/src/api/exporters/html/externalHTMLExporter.js.map +0 -1
- package/dist/src/api/exporters/html/htmlConversion.test.js +0 -72
- package/dist/src/api/exporters/html/htmlConversion.test.js.map +0 -1
- package/dist/src/api/exporters/html/internalHTMLSerializer.js +0 -21
- package/dist/src/api/exporters/html/internalHTMLSerializer.js.map +0 -1
- package/dist/src/api/exporters/html/util/serializeBlocksExternalHTML.js +0 -141
- package/dist/src/api/exporters/html/util/serializeBlocksExternalHTML.js.map +0 -1
- package/dist/src/api/exporters/html/util/serializeBlocksInternalHTML.js +0 -96
- package/dist/src/api/exporters/html/util/serializeBlocksInternalHTML.js.map +0 -1
- package/dist/src/api/exporters/markdown/markdownExporter.js +0 -31
- package/dist/src/api/exporters/markdown/markdownExporter.js.map +0 -1
- package/dist/src/api/exporters/markdown/markdownExporter.test.js +0 -57
- package/dist/src/api/exporters/markdown/markdownExporter.test.js.map +0 -1
- package/dist/src/api/exporters/markdown/removeUnderlinesRehypePlugin.js +0 -33
- package/dist/src/api/exporters/markdown/removeUnderlinesRehypePlugin.js.map +0 -1
- package/dist/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.js +0 -37
- package/dist/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.js.map +0 -1
- package/dist/src/api/getBlockInfoFromPos.js +0 -165
- package/dist/src/api/getBlockInfoFromPos.js.map +0 -1
- package/dist/src/api/nodeConversions/blockToNode.js +0 -197
- package/dist/src/api/nodeConversions/blockToNode.js.map +0 -1
- package/dist/src/api/nodeConversions/fragmentToBlocks.js +0 -50
- package/dist/src/api/nodeConversions/fragmentToBlocks.js.map +0 -1
- package/dist/src/api/nodeConversions/nodeConversions.test.js +0 -54
- package/dist/src/api/nodeConversions/nodeConversions.test.js.map +0 -1
- package/dist/src/api/nodeConversions/nodeToBlock.js +0 -316
- package/dist/src/api/nodeConversions/nodeToBlock.js.map +0 -1
- package/dist/src/api/nodeUtil.js +0 -28
- package/dist/src/api/nodeUtil.js.map +0 -1
- package/dist/src/api/parsers/html/parseHTML.js +0 -19
- package/dist/src/api/parsers/html/parseHTML.js.map +0 -1
- package/dist/src/api/parsers/html/parseHTML.test.js +0 -470
- package/dist/src/api/parsers/html/parseHTML.test.js.map +0 -1
- package/dist/src/api/parsers/html/util/nestedLists.js +0 -106
- package/dist/src/api/parsers/html/util/nestedLists.js.map +0 -1
- package/dist/src/api/parsers/html/util/nestedLists.test.js +0 -166
- package/dist/src/api/parsers/html/util/nestedLists.test.js.map +0 -1
- package/dist/src/api/parsers/markdown/parseMarkdown.js +0 -52
- package/dist/src/api/parsers/markdown/parseMarkdown.js.map +0 -1
- package/dist/src/api/parsers/markdown/parseMarkdown.test.js +0 -112
- package/dist/src/api/parsers/markdown/parseMarkdown.test.js.map +0 -1
- package/dist/src/api/testUtil/cases/customBlocks.js +0 -313
- package/dist/src/api/testUtil/cases/customBlocks.js.map +0 -1
- package/dist/src/api/testUtil/cases/customInlineContent.js +0 -91
- package/dist/src/api/testUtil/cases/customInlineContent.js.map +0 -1
- package/dist/src/api/testUtil/cases/customStyles.js +0 -83
- package/dist/src/api/testUtil/cases/customStyles.js.map +0 -1
- package/dist/src/api/testUtil/cases/defaultSchema.js +0 -673
- package/dist/src/api/testUtil/cases/defaultSchema.js.map +0 -1
- package/dist/src/api/testUtil/index.js +0 -2
- package/dist/src/api/testUtil/index.js.map +0 -1
- package/dist/src/api/testUtil/partialBlockTestUtil.js +0 -114
- package/dist/src/api/testUtil/partialBlockTestUtil.js.map +0 -1
- package/dist/src/api/testUtil/paste.js +0 -29
- package/dist/src/api/testUtil/paste.js.map +0 -1
- package/dist/src/blocks/AudioBlockContent/AudioBlockContent.js +0 -104
- package/dist/src/blocks/AudioBlockContent/AudioBlockContent.js.map +0 -1
- package/dist/src/blocks/AudioBlockContent/parseAudioElement.js +0 -5
- package/dist/src/blocks/AudioBlockContent/parseAudioElement.js.map +0 -1
- package/dist/src/blocks/CodeBlockContent/CodeBlockContent.js +0 -281
- package/dist/src/blocks/CodeBlockContent/CodeBlockContent.js.map +0 -1
- package/dist/src/blocks/CodeBlockContent/defaultSupportedLanguages.js +0 -110
- package/dist/src/blocks/CodeBlockContent/defaultSupportedLanguages.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/FileBlockContent.js +0 -71
- package/dist/src/blocks/FileBlockContent/FileBlockContent.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.js +0 -5
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseFigureElement.js +0 -10
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseFigureElement.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createAddFileButton.js +0 -39
- package/dist/src/blocks/FileBlockContent/helpers/render/createAddFileButton.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.js +0 -51
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.js +0 -17
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.js +0 -147
- package/dist/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.js +0 -9
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.js +0 -11
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.js +0 -15
- package/dist/src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.js.map +0 -1
- package/dist/src/blocks/HeadingBlockContent/HeadingBlockContent.js +0 -145
- package/dist/src/blocks/HeadingBlockContent/HeadingBlockContent.js.map +0 -1
- package/dist/src/blocks/ImageBlockContent/ImageBlockContent.js +0 -114
- package/dist/src/blocks/ImageBlockContent/ImageBlockContent.js.map +0 -1
- package/dist/src/blocks/ImageBlockContent/parseImageElement.js +0 -6
- package/dist/src/blocks/ImageBlockContent/parseImageElement.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.js +0 -113
- package/dist/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.js +0 -224
- package/dist/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.js +0 -45
- package/dist/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.js +0 -58
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.js +0 -130
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.js.map +0 -1
- package/dist/src/blocks/ParagraphBlockContent/ParagraphBlockContent.js +0 -52
- package/dist/src/blocks/ParagraphBlockContent/ParagraphBlockContent.js.map +0 -1
- package/dist/src/blocks/TableBlockContent/TableBlockContent.js +0 -129
- package/dist/src/blocks/TableBlockContent/TableBlockContent.js.map +0 -1
- package/dist/src/blocks/TableBlockContent/TableExtension.js +0 -64
- package/dist/src/blocks/TableBlockContent/TableExtension.js.map +0 -1
- package/dist/src/blocks/VideoBlockContent/VideoBlockContent.js +0 -114
- package/dist/src/blocks/VideoBlockContent/VideoBlockContent.js.map +0 -1
- package/dist/src/blocks/VideoBlockContent/parseVideoElement.js +0 -6
- package/dist/src/blocks/VideoBlockContent/parseVideoElement.js.map +0 -1
- package/dist/src/blocks/defaultBlockHelpers.js +0 -50
- package/dist/src/blocks/defaultBlockHelpers.js.map +0 -1
- package/dist/src/blocks/defaultBlockTypeGuards.js +0 -40
- package/dist/src/blocks/defaultBlockTypeGuards.js.map +0 -1
- package/dist/src/blocks/defaultBlocks.js +0 -50
- package/dist/src/blocks/defaultBlocks.js.map +0 -1
- package/dist/src/blocks/defaultProps.js +0 -19
- package/dist/src/blocks/defaultProps.js.map +0 -1
- package/dist/src/editor/BlockNoteEditor.js +0 -751
- package/dist/src/editor/BlockNoteEditor.js.map +0 -1
- package/dist/src/editor/BlockNoteEditor.test.js +0 -65
- package/dist/src/editor/BlockNoteEditor.test.js.map +0 -1
- package/dist/src/editor/BlockNoteExtensions.js +0 -192
- package/dist/src/editor/BlockNoteExtensions.js.map +0 -1
- package/dist/src/editor/BlockNoteSchema.js +0 -38
- package/dist/src/editor/BlockNoteSchema.js.map +0 -1
- package/dist/src/editor/BlockNoteTipTapEditor.js +0 -169
- package/dist/src/editor/BlockNoteTipTapEditor.js.map +0 -1
- package/dist/src/editor/cursorPositionTypes.js +0 -2
- package/dist/src/editor/cursorPositionTypes.js.map +0 -1
- package/dist/src/editor/defaultColors.js +0 -77
- package/dist/src/editor/defaultColors.js.map +0 -1
- package/dist/src/editor/selectionTypes.js +0 -2
- package/dist/src/editor/selectionTypes.js.map +0 -1
- package/dist/src/editor/transformPasted.js +0 -79
- package/dist/src/editor/transformPasted.js.map +0 -1
- package/dist/src/exporter/Exporter.js +0 -36
- package/dist/src/exporter/Exporter.js.map +0 -1
- package/dist/src/exporter/index.js +0 -3
- package/dist/src/exporter/index.js.map +0 -1
- package/dist/src/exporter/mapping.js +0 -12
- package/dist/src/exporter/mapping.js.map +0 -1
- package/dist/src/extensions/BackgroundColor/BackgroundColorExtension.js +0 -30
- package/dist/src/extensions/BackgroundColor/BackgroundColorExtension.js.map +0 -1
- package/dist/src/extensions/BackgroundColor/BackgroundColorMark.js +0 -39
- package/dist/src/extensions/BackgroundColor/BackgroundColorMark.js.map +0 -1
- package/dist/src/extensions/FilePanel/FilePanelPlugin.js +0 -131
- package/dist/src/extensions/FilePanel/FilePanelPlugin.js.map +0 -1
- package/dist/src/extensions/FormattingToolbar/FormattingToolbarPlugin.js +0 -197
- package/dist/src/extensions/FormattingToolbar/FormattingToolbarPlugin.js.map +0 -1
- package/dist/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.js +0 -341
- package/dist/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.js.map +0 -1
- package/dist/src/extensions/LinkToolbar/LinkToolbarPlugin.js +0 -251
- package/dist/src/extensions/LinkToolbar/LinkToolbarPlugin.js.map +0 -1
- package/dist/src/extensions/LinkToolbar/protocols.js +0 -14
- package/dist/src/extensions/LinkToolbar/protocols.js.map +0 -1
- package/dist/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.js +0 -54
- package/dist/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.js.map +0 -1
- package/dist/src/extensions/Placeholder/PlaceholderPlugin.js +0 -90
- package/dist/src/extensions/Placeholder/PlaceholderPlugin.js.map +0 -1
- package/dist/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.js +0 -187
- package/dist/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.js.map +0 -1
- package/dist/src/extensions/SideMenu/MultipleNodeSelection.js +0 -68
- package/dist/src/extensions/SideMenu/MultipleNodeSelection.js.map +0 -1
- package/dist/src/extensions/SideMenu/SideMenuPlugin.js +0 -347
- package/dist/src/extensions/SideMenu/SideMenuPlugin.js.map +0 -1
- package/dist/src/extensions/SideMenu/dragging.js +0 -135
- package/dist/src/extensions/SideMenu/dragging.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/DefaultGridSuggestionItem.js +0 -2
- package/dist/src/extensions/SuggestionMenu/DefaultGridSuggestionItem.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/DefaultSuggestionItem.js +0 -2
- package/dist/src/extensions/SuggestionMenu/DefaultSuggestionItem.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/SuggestionPlugin.js +0 -245
- package/dist/src/extensions/SuggestionMenu/SuggestionPlugin.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.js +0 -26
- package/dist/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.js +0 -241
- package/dist/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.js.map +0 -1
- package/dist/src/extensions/TableHandles/TableHandlesPlugin.js +0 -579
- package/dist/src/extensions/TableHandles/TableHandlesPlugin.js.map +0 -1
- package/dist/src/extensions/TextAlignment/TextAlignmentExtension.js +0 -36
- package/dist/src/extensions/TextAlignment/TextAlignmentExtension.js.map +0 -1
- package/dist/src/extensions/TextColor/TextColorExtension.js +0 -29
- package/dist/src/extensions/TextColor/TextColorExtension.js.map +0 -1
- package/dist/src/extensions/TextColor/TextColorMark.js +0 -37
- package/dist/src/extensions/TextColor/TextColorMark.js.map +0 -1
- package/dist/src/extensions/TrailingNode/TrailingNodeExtension.js +0 -58
- package/dist/src/extensions/TrailingNode/TrailingNodeExtension.js.map +0 -1
- package/dist/src/extensions/UniqueID/UniqueID.js +0 -283
- package/dist/src/extensions/UniqueID/UniqueID.js.map +0 -1
- package/dist/src/extensions/getDraggableBlockFromElement.js +0 -13
- package/dist/src/extensions/getDraggableBlockFromElement.js.map +0 -1
- package/dist/src/extensions-shared/UiElementPosition.js +0 -2
- package/dist/src/extensions-shared/UiElementPosition.js.map +0 -1
- package/dist/src/i18n/dictionary.js +0 -4
- package/dist/src/i18n/dictionary.js.map +0 -1
- package/dist/src/i18n/locales/ar.js +0 -298
- package/dist/src/i18n/locales/ar.js.map +0 -1
- package/dist/src/i18n/locales/de.js +0 -313
- package/dist/src/i18n/locales/de.js.map +0 -1
- package/dist/src/i18n/locales/en.js +0 -314
- package/dist/src/i18n/locales/en.js.map +0 -1
- package/dist/src/i18n/locales/es.js +0 -312
- package/dist/src/i18n/locales/es.js.map +0 -1
- package/dist/src/i18n/locales/fr.js +0 -313
- package/dist/src/i18n/locales/fr.js.map +0 -1
- package/dist/src/i18n/locales/hr.js +0 -308
- package/dist/src/i18n/locales/hr.js.map +0 -1
- package/dist/src/i18n/locales/index.js +0 -16
- package/dist/src/i18n/locales/index.js.map +0 -1
- package/dist/src/i18n/locales/is.js +0 -305
- package/dist/src/i18n/locales/is.js.map +0 -1
- package/dist/src/i18n/locales/ja.js +0 -333
- package/dist/src/i18n/locales/ja.js.map +0 -1
- package/dist/src/i18n/locales/ko.js +0 -326
- package/dist/src/i18n/locales/ko.js.map +0 -1
- package/dist/src/i18n/locales/nl.js +0 -313
- package/dist/src/i18n/locales/nl.js.map +0 -1
- package/dist/src/i18n/locales/pl.js +0 -297
- package/dist/src/i18n/locales/pl.js.map +0 -1
- package/dist/src/i18n/locales/pt.js +0 -305
- package/dist/src/i18n/locales/pt.js.map +0 -1
- package/dist/src/i18n/locales/ru.js +0 -340
- package/dist/src/i18n/locales/ru.js.map +0 -1
- package/dist/src/i18n/locales/vi.js +0 -312
- package/dist/src/i18n/locales/vi.js.map +0 -1
- package/dist/src/i18n/locales/zh.js +0 -346
- package/dist/src/i18n/locales/zh.js.map +0 -1
- package/dist/src/index.js +0 -63
- package/dist/src/index.js.map +0 -1
- package/dist/src/pm-nodes/BlockContainer.js +0 -72
- package/dist/src/pm-nodes/BlockContainer.js.map +0 -1
- package/dist/src/pm-nodes/BlockGroup.js +0 -43
- package/dist/src/pm-nodes/BlockGroup.js.map +0 -1
- package/dist/src/pm-nodes/Doc.js +0 -7
- package/dist/src/pm-nodes/Doc.js.map +0 -1
- package/dist/src/pm-nodes/index.js +0 -4
- package/dist/src/pm-nodes/index.js.map +0 -1
- package/dist/src/schema/blocks/createSpec.js +0 -126
- package/dist/src/schema/blocks/createSpec.js.map +0 -1
- package/dist/src/schema/blocks/internal.js +0 -147
- package/dist/src/schema/blocks/internal.js.map +0 -1
- package/dist/src/schema/blocks/types.js +0 -2
- package/dist/src/schema/blocks/types.js.map +0 -1
- package/dist/src/schema/index.js +0 -11
- package/dist/src/schema/index.js.map +0 -1
- package/dist/src/schema/inlineContent/createSpec.js +0 -64
- package/dist/src/schema/inlineContent/createSpec.js.map +0 -1
- package/dist/src/schema/inlineContent/internal.js +0 -52
- package/dist/src/schema/inlineContent/internal.js.map +0 -1
- package/dist/src/schema/inlineContent/types.js +0 -10
- package/dist/src/schema/inlineContent/types.js.map +0 -1
- package/dist/src/schema/propTypes.js +0 -2
- package/dist/src/schema/propTypes.js.map +0 -1
- package/dist/src/schema/styles/createSpec.js +0 -48
- package/dist/src/schema/styles/createSpec.js.map +0 -1
- package/dist/src/schema/styles/internal.js +0 -53
- package/dist/src/schema/styles/internal.js.map +0 -1
- package/dist/src/schema/styles/types.js +0 -2
- package/dist/src/schema/styles/types.js.map +0 -1
- package/dist/src/util/EventEmitter.js +0 -33
- package/dist/src/util/EventEmitter.js.map +0 -1
- package/dist/src/util/browser.js +0 -17
- package/dist/src/util/browser.js.map +0 -1
- package/dist/src/util/combineByGroup.js +0 -20
- package/dist/src/util/combineByGroup.js.map +0 -1
- package/dist/src/util/esmDependencies.js +0 -35
- package/dist/src/util/esmDependencies.js.map +0 -1
- package/dist/src/util/string.js +0 -14
- package/dist/src/util/string.js.map +0 -1
- package/dist/src/util/typescript.js +0 -12
- package/dist/src/util/typescript.js.map +0 -1
- /package/src/api/clipboard/__snapshots__/{childToParent.html → internal/childToParent.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{childrenToNextParent.html → internal/childrenToNextParent.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{childrenToNextParentsChildren.html → internal/childrenToNextParentsChildren.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{image.html → internal/image.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{multipleChildren.html → internal/multipleChildren.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{multipleStyledText.html → internal/multipleStyledText.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{nestedImage.html → internal/nestedImage.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{partialChildToParent.html → internal/partialChildToParent.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{styledText.html → internal/styledText.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableAllCells.html → internal/tableAllCells.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableCell.html → internal/tableCell.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableCellText.html → internal/tableCellText.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableRow.html → internal/tableRow.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{unstyledText.html → internal/unstyledText.html} +0 -0
- /package/types/src/api/clipboard/{clipboard.test.d.ts → clipboardExternal.test.d.ts} +0 -0
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import UniqueID from "../../extensions/UniqueID/UniqueID.js";
|
|
2
|
-
import { getBlockInfoWithManualOffset } from "../getBlockInfoFromPos.js";
|
|
3
|
-
import { isLinkInlineContent, isStyledTextInlineContent, } from "../../schema/inlineContent/types.js";
|
|
4
|
-
import { UnreachableCaseError } from "../../util/typescript.js";
|
|
5
|
-
/**
|
|
6
|
-
* Converts an internal (prosemirror) table node contentto a BlockNote Tablecontent
|
|
7
|
-
*/
|
|
8
|
-
export function contentNodeToTableContent(contentNode, inlineContentSchema, styleSchema) {
|
|
9
|
-
const ret = {
|
|
10
|
-
type: "tableContent",
|
|
11
|
-
columnWidths: [],
|
|
12
|
-
rows: [],
|
|
13
|
-
};
|
|
14
|
-
contentNode.content.forEach((rowNode, _offset, index) => {
|
|
15
|
-
const row = {
|
|
16
|
-
cells: [],
|
|
17
|
-
};
|
|
18
|
-
if (index === 0) {
|
|
19
|
-
rowNode.content.forEach((cellNode) => {
|
|
20
|
-
// The colwidth array should have multiple values when the colspan of a
|
|
21
|
-
// cell is greater than 1. However, this is not yet implemented so we
|
|
22
|
-
// can always assume a length of 1.
|
|
23
|
-
ret.columnWidths.push(cellNode.attrs.colwidth?.[0] || undefined);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
rowNode.content.forEach((cellNode) => {
|
|
27
|
-
row.cells.push(contentNodeToInlineContent(cellNode.firstChild, inlineContentSchema, styleSchema));
|
|
28
|
-
});
|
|
29
|
-
ret.rows.push(row);
|
|
30
|
-
});
|
|
31
|
-
return ret;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Converts an internal (prosemirror) content node to a BlockNote InlineContent array.
|
|
35
|
-
*/
|
|
36
|
-
export function contentNodeToInlineContent(contentNode, inlineContentSchema, styleSchema) {
|
|
37
|
-
const content = [];
|
|
38
|
-
let currentContent = undefined;
|
|
39
|
-
// Most of the logic below is for handling links because in ProseMirror links are marks
|
|
40
|
-
// while in BlockNote links are a type of inline content
|
|
41
|
-
contentNode.content.forEach((node) => {
|
|
42
|
-
// hardBreak nodes do not have an InlineContent equivalent, instead we
|
|
43
|
-
// add a newline to the previous node.
|
|
44
|
-
if (node.type.name === "hardBreak") {
|
|
45
|
-
if (currentContent) {
|
|
46
|
-
// Current content exists.
|
|
47
|
-
if (isStyledTextInlineContent(currentContent)) {
|
|
48
|
-
// Current content is text.
|
|
49
|
-
currentContent.text += "\n";
|
|
50
|
-
}
|
|
51
|
-
else if (isLinkInlineContent(currentContent)) {
|
|
52
|
-
// Current content is a link.
|
|
53
|
-
currentContent.content[currentContent.content.length - 1].text +=
|
|
54
|
-
"\n";
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
throw new Error("unexpected");
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
// Current content does not exist.
|
|
62
|
-
currentContent = {
|
|
63
|
-
type: "text",
|
|
64
|
-
text: "\n",
|
|
65
|
-
styles: {},
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if (node.type.name !== "link" &&
|
|
71
|
-
node.type.name !== "text" &&
|
|
72
|
-
inlineContentSchema[node.type.name]) {
|
|
73
|
-
if (currentContent) {
|
|
74
|
-
content.push(currentContent);
|
|
75
|
-
currentContent = undefined;
|
|
76
|
-
}
|
|
77
|
-
content.push(nodeToCustomInlineContent(node, inlineContentSchema, styleSchema));
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const styles = {};
|
|
81
|
-
let linkMark;
|
|
82
|
-
for (const mark of node.marks) {
|
|
83
|
-
if (mark.type.name === "link") {
|
|
84
|
-
linkMark = mark;
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
const config = styleSchema[mark.type.name];
|
|
88
|
-
if (!config) {
|
|
89
|
-
throw new Error(`style ${mark.type.name} not found in styleSchema`);
|
|
90
|
-
}
|
|
91
|
-
if (config.propSchema === "boolean") {
|
|
92
|
-
styles[config.type] = true;
|
|
93
|
-
}
|
|
94
|
-
else if (config.propSchema === "string") {
|
|
95
|
-
styles[config.type] = mark.attrs.stringValue;
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
throw new UnreachableCaseError(config.propSchema);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
// Parsing links and text.
|
|
103
|
-
// Current content exists.
|
|
104
|
-
if (currentContent) {
|
|
105
|
-
// Current content is text.
|
|
106
|
-
if (isStyledTextInlineContent(currentContent)) {
|
|
107
|
-
if (!linkMark) {
|
|
108
|
-
// Node is text (same type as current content).
|
|
109
|
-
if (JSON.stringify(currentContent.styles) === JSON.stringify(styles)) {
|
|
110
|
-
// Styles are the same.
|
|
111
|
-
currentContent.text += node.textContent;
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
// Styles are different.
|
|
115
|
-
content.push(currentContent);
|
|
116
|
-
currentContent = {
|
|
117
|
-
type: "text",
|
|
118
|
-
text: node.textContent,
|
|
119
|
-
styles,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
// Node is a link (different type to current content).
|
|
125
|
-
content.push(currentContent);
|
|
126
|
-
currentContent = {
|
|
127
|
-
type: "link",
|
|
128
|
-
href: linkMark.attrs.href,
|
|
129
|
-
content: [
|
|
130
|
-
{
|
|
131
|
-
type: "text",
|
|
132
|
-
text: node.textContent,
|
|
133
|
-
styles,
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
else if (isLinkInlineContent(currentContent)) {
|
|
140
|
-
// Current content is a link.
|
|
141
|
-
if (linkMark) {
|
|
142
|
-
// Node is a link (same type as current content).
|
|
143
|
-
// Link URLs are the same.
|
|
144
|
-
if (currentContent.href === linkMark.attrs.href) {
|
|
145
|
-
// Styles are the same.
|
|
146
|
-
if (JSON.stringify(currentContent.content[currentContent.content.length - 1].styles) === JSON.stringify(styles)) {
|
|
147
|
-
currentContent.content[currentContent.content.length - 1].text +=
|
|
148
|
-
node.textContent;
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
// Styles are different.
|
|
152
|
-
currentContent.content.push({
|
|
153
|
-
type: "text",
|
|
154
|
-
text: node.textContent,
|
|
155
|
-
styles,
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
// Link URLs are different.
|
|
161
|
-
content.push(currentContent);
|
|
162
|
-
currentContent = {
|
|
163
|
-
type: "link",
|
|
164
|
-
href: linkMark.attrs.href,
|
|
165
|
-
content: [
|
|
166
|
-
{
|
|
167
|
-
type: "text",
|
|
168
|
-
text: node.textContent,
|
|
169
|
-
styles,
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
// Node is text (different type to current content).
|
|
177
|
-
content.push(currentContent);
|
|
178
|
-
currentContent = {
|
|
179
|
-
type: "text",
|
|
180
|
-
text: node.textContent,
|
|
181
|
-
styles,
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
// TODO
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
// Current content does not exist.
|
|
190
|
-
else {
|
|
191
|
-
// Node is text.
|
|
192
|
-
if (!linkMark) {
|
|
193
|
-
currentContent = {
|
|
194
|
-
type: "text",
|
|
195
|
-
text: node.textContent,
|
|
196
|
-
styles,
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
// Node is a link.
|
|
200
|
-
else {
|
|
201
|
-
currentContent = {
|
|
202
|
-
type: "link",
|
|
203
|
-
href: linkMark.attrs.href,
|
|
204
|
-
content: [
|
|
205
|
-
{
|
|
206
|
-
type: "text",
|
|
207
|
-
text: node.textContent,
|
|
208
|
-
styles,
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
if (currentContent) {
|
|
216
|
-
content.push(currentContent);
|
|
217
|
-
}
|
|
218
|
-
return content;
|
|
219
|
-
}
|
|
220
|
-
export function nodeToCustomInlineContent(node, inlineContentSchema, styleSchema) {
|
|
221
|
-
if (node.type.name === "text" || node.type.name === "link") {
|
|
222
|
-
throw new Error("unexpected");
|
|
223
|
-
}
|
|
224
|
-
const props = {};
|
|
225
|
-
const icConfig = inlineContentSchema[node.type.name];
|
|
226
|
-
for (const [attr, value] of Object.entries(node.attrs)) {
|
|
227
|
-
if (!icConfig) {
|
|
228
|
-
throw Error("ic node is of an unrecognized type: " + node.type.name);
|
|
229
|
-
}
|
|
230
|
-
const propSchema = icConfig.propSchema;
|
|
231
|
-
if (attr in propSchema) {
|
|
232
|
-
props[attr] = value;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
let content;
|
|
236
|
-
if (icConfig.content === "styled") {
|
|
237
|
-
content = contentNodeToInlineContent(node, inlineContentSchema, styleSchema); // TODO: is this safe? could we have Links here that are undesired?
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
content = undefined;
|
|
241
|
-
}
|
|
242
|
-
const ic = {
|
|
243
|
-
type: node.type.name,
|
|
244
|
-
props,
|
|
245
|
-
content,
|
|
246
|
-
};
|
|
247
|
-
return ic;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Convert a Prosemirror node to a BlockNote block.
|
|
251
|
-
*
|
|
252
|
-
* TODO: test changes
|
|
253
|
-
*/
|
|
254
|
-
export function nodeToBlock(node, blockSchema, inlineContentSchema, styleSchema, blockCache) {
|
|
255
|
-
if (!node.type.isInGroup("bnBlock")) {
|
|
256
|
-
throw Error("Node must be in bnBlock group, but is of type" + node.type.name);
|
|
257
|
-
}
|
|
258
|
-
const cachedBlock = blockCache?.get(node);
|
|
259
|
-
if (cachedBlock) {
|
|
260
|
-
return cachedBlock;
|
|
261
|
-
}
|
|
262
|
-
const blockInfo = getBlockInfoWithManualOffset(node, 0);
|
|
263
|
-
let id = blockInfo.bnBlock.node.attrs.id;
|
|
264
|
-
// Only used for blocks converted from other formats.
|
|
265
|
-
if (id === null) {
|
|
266
|
-
id = UniqueID.options.generateID();
|
|
267
|
-
}
|
|
268
|
-
const blockSpec = blockSchema[blockInfo.blockNoteType];
|
|
269
|
-
if (!blockSpec) {
|
|
270
|
-
throw Error("Block is of an unrecognized type: " + blockInfo.blockNoteType);
|
|
271
|
-
}
|
|
272
|
-
const props = {};
|
|
273
|
-
for (const [attr, value] of Object.entries({
|
|
274
|
-
...node.attrs,
|
|
275
|
-
...(blockInfo.isBlockContainer ? blockInfo.blockContent.node.attrs : {}),
|
|
276
|
-
})) {
|
|
277
|
-
const propSchema = blockSpec.propSchema;
|
|
278
|
-
if (attr in propSchema) {
|
|
279
|
-
props[attr] = value;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
const blockConfig = blockSchema[blockInfo.blockNoteType];
|
|
283
|
-
const children = [];
|
|
284
|
-
blockInfo.childContainer?.node.forEach((child) => {
|
|
285
|
-
children.push(nodeToBlock(child, blockSchema, inlineContentSchema, styleSchema, blockCache));
|
|
286
|
-
});
|
|
287
|
-
let content;
|
|
288
|
-
if (blockConfig.content === "inline") {
|
|
289
|
-
if (!blockInfo.isBlockContainer) {
|
|
290
|
-
throw new Error("impossible");
|
|
291
|
-
}
|
|
292
|
-
content = contentNodeToInlineContent(blockInfo.blockContent.node, inlineContentSchema, styleSchema);
|
|
293
|
-
}
|
|
294
|
-
else if (blockConfig.content === "table") {
|
|
295
|
-
if (!blockInfo.isBlockContainer) {
|
|
296
|
-
throw new Error("impossible");
|
|
297
|
-
}
|
|
298
|
-
content = contentNodeToTableContent(blockInfo.blockContent.node, inlineContentSchema, styleSchema);
|
|
299
|
-
}
|
|
300
|
-
else if (blockConfig.content === "none") {
|
|
301
|
-
content = undefined;
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
throw new UnreachableCaseError(blockConfig.content);
|
|
305
|
-
}
|
|
306
|
-
const block = {
|
|
307
|
-
id,
|
|
308
|
-
type: blockConfig.type,
|
|
309
|
-
props,
|
|
310
|
-
content,
|
|
311
|
-
children,
|
|
312
|
-
};
|
|
313
|
-
blockCache?.set(node, block);
|
|
314
|
-
return block;
|
|
315
|
-
}
|
|
316
|
-
//# sourceMappingURL=nodeToBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeToBlock.js","sourceRoot":"","sources":["../../../../src/api/nodeConversions/nodeToBlock.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,uCAAuC,CAAC;AAY7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGzE,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAGvC,WAAiB,EAAE,mBAAsB,EAAE,WAAc;IACzD,MAAM,GAAG,GAAuB;QAC9B,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,WAAW,CAAC,OAAO,C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AC;IAEH,IAAI,OAAwC,CAAC;IAE7C,IAAI,WAAW,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,GAAG,0BAA0B,CAClC,SAAS,CAAC,YAAY,CAAC,IAAI,EAC3B,mBAAmB,EACnB,WAAW,CACZ,CAAC;IACJ,CAAC;SAAM,IAAI,WAAW,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;QAC3C,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,GAAG,yBAAyB,CACjC,SAAS,CAAC,YAAY,CAAC,IAAI,EAC3B,mBAAmB,EACnB,WAAW,CACZ,CAAC;IACJ,CAAC;SAAM,IAAI,WAAW,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QAC1C,OAAO,GAAG,SAAS,CAAC;IACtB,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,oBAAoB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,KAAK,GAAG;QACZ,EAAE;QACF,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,KAAK;QACL,OAAO;QACP,QAAQ;KACe,CAAC;IAE1B,UAAU,EAAE,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAE7B,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/src/api/nodeUtil.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get a TipTap node by id
|
|
3
|
-
*/
|
|
4
|
-
export function getNodeById(id, doc) {
|
|
5
|
-
let targetNode = undefined;
|
|
6
|
-
let posBeforeNode = undefined;
|
|
7
|
-
doc.firstChild.descendants((node, pos) => {
|
|
8
|
-
// Skips traversing nodes after node with target ID has been found.
|
|
9
|
-
if (targetNode) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
// Keeps traversing nodes if block with target ID has not been found.
|
|
13
|
-
if (!node.type.isInGroup("bnBlock") || node.attrs.id !== id) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
targetNode = node;
|
|
17
|
-
posBeforeNode = pos + 1;
|
|
18
|
-
return false;
|
|
19
|
-
});
|
|
20
|
-
if (targetNode === undefined || posBeforeNode === undefined) {
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
node: targetNode,
|
|
25
|
-
posBeforeNode: posBeforeNode,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=nodeUtil.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeUtil.js","sourceRoot":"","sources":["../../../src/api/nodeUtil.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,WAAW,CACzB,EAAU,EACV,GAAS;IAET,IAAI,UAAU,GAAqB,SAAS,CAAC;IAC7C,IAAI,aAAa,GAAuB,SAAS,CAAC;IAElD,GAAG,CAAC,UAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QACxC,mEAAmE;QACnE,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,KAAK,CAAC;QACf,CAAC;QAED,qEAAqE;QACrE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;YAC5D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,UAAU,GAAG,IAAI,CAAC;QAClB,aAAa,GAAG,GAAG,GAAG,CAAC,CAAC;QAExB,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,IAAI,UAAU,KAAK,SAAS,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAC5D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,aAAa;KAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DOMParser } from "prosemirror-model";
|
|
2
|
-
import { nodeToBlock } from "../../nodeConversions/nodeToBlock.js";
|
|
3
|
-
import { nestedListsToBlockNoteStructure } from "./util/nestedLists.js";
|
|
4
|
-
export async function HTMLToBlocks(html, blockSchema, icSchema, styleSchema, pmSchema) {
|
|
5
|
-
const htmlNode = nestedListsToBlockNoteStructure(html);
|
|
6
|
-
const parser = DOMParser.fromSchema(pmSchema);
|
|
7
|
-
// Other approach might be to use
|
|
8
|
-
// const doc = pmSchema.nodes["doc"].createAndFill()!;
|
|
9
|
-
// and context: doc.resolve(3),
|
|
10
|
-
const parentNode = parser.parse(htmlNode, {
|
|
11
|
-
topNode: pmSchema.nodes["blockGroup"].create(),
|
|
12
|
-
});
|
|
13
|
-
const blocks = [];
|
|
14
|
-
for (let i = 0; i < parentNode.childCount; i++) {
|
|
15
|
-
blocks.push(nodeToBlock(parentNode.child(i), blockSchema, icSchema, styleSchema));
|
|
16
|
-
}
|
|
17
|
-
return blocks;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=parseHTML.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseHTML.js","sourceRoot":"","sources":["../../../../../src/api/parsers/html/parseHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,mBAAmB,CAAC;AAQtD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,MAAM,CAAC,KAAK,UAAU,YAAY,CAKhC,IAAY,EACZ,WAAoB,EACpB,QAAW,EACX,WAAc,EACd,QAAgB;IAEhB,MAAM,QAAQ,GAAG,+BAA+B,CAAC,IAAI,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE9C,iCAAiC;IACjC,sDAAsD;IACtD,+BAA+B;IAE/B,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE;QACxC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;KAC/C,CAAC,CAAC;IAEH,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/C,MAAM,CAAC,IAAI,CACT,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,CACrE,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|