@witchcraft/editor 0.0.3 → 0.0.5
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/module.d.cts +2 -0
- package/dist/module.d.mts +2 -15
- package/dist/module.json +1 -1
- package/dist/module.mjs +13 -72
- package/dist/types.d.mts +12 -2
- package/package.json +228 -237
- package/src/module.ts +1 -2
- package/src/runtime/assets/handle-border-circles.svg +0 -0
- package/src/runtime/components/Editor.vue +0 -0
- package/src/runtime/pm/features/Blocks/components/ItemNodeView.vue +1 -1
- package/src/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue +0 -2
- package/src/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue +1 -3
- package/src/runtime/pm/features/Iframe/components/IframeNodeView.vue +0 -3
- package/src/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue +0 -1
- package/src/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue +1 -4
- package/src/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue +0 -3
- package/src/runtime/pm/features/Menus/components/MarkMenuManager.vue +0 -1
- package/src/runtime/pm/schema.ts +0 -0
- package/src/runtime/pm/utils/createDropIndicator.ts +9 -3
- package/src/runtime/pm/utils/getElPropertyAsInt.ts +3 -0
- package/src/runtime/pm/utils/internal/debugSel.ts +0 -0
- package/src/runtime/pm/utils/internal/recurse.ts +0 -0
- package/dist/runtime/assets/base.css +0 -1
- package/dist/runtime/assets/handle-arrow.svg +0 -16
- package/dist/runtime/assets/handle-border-circles-single.svg +0 -44
- package/dist/runtime/assets/handle-border-circles.svg +0 -27
- package/dist/runtime/assets/handle-temp.svg +0 -1
- package/dist/runtime/assets/utils.css +0 -1
- package/dist/runtime/components/CodeBlockThemePicker.d.vue.ts +0 -12
- package/dist/runtime/components/CodeBlockThemePicker.vue +0 -123
- package/dist/runtime/components/CodeBlockThemePicker.vue.d.ts +0 -12
- package/dist/runtime/components/Commands.d.vue.ts +0 -10
- package/dist/runtime/components/Commands.vue +0 -60
- package/dist/runtime/components/Commands.vue.d.ts +0 -10
- package/dist/runtime/components/Editor.d.vue.ts +0 -40
- package/dist/runtime/components/Editor.vue +0 -208
- package/dist/runtime/components/Editor.vue.d.ts +0 -40
- package/dist/runtime/components/EditorDemoApp.d.vue.ts +0 -2
- package/dist/runtime/components/EditorDemoApp.vue +0 -104
- package/dist/runtime/components/EditorDemoApp.vue.d.ts +0 -2
- package/dist/runtime/components/EditorDemoControls.d.vue.ts +0 -12
- package/dist/runtime/components/EditorDemoControls.vue +0 -36
- package/dist/runtime/components/EditorDemoControls.vue.d.ts +0 -12
- package/dist/runtime/components/TestWrapper.d.vue.ts +0 -11
- package/dist/runtime/components/TestWrapper.vue +0 -63
- package/dist/runtime/components/TestWrapper.vue.d.ts +0 -11
- package/dist/runtime/composables/useEditor.d.ts +0 -9
- package/dist/runtime/composables/useEditor.js +0 -21
- package/dist/runtime/composables/useWindowDebugging.d.ts +0 -3
- package/dist/runtime/composables/useWindowDebugging.js +0 -16
- package/dist/runtime/demo/App.d.vue.ts +0 -2
- package/dist/runtime/demo/App.vue +0 -101
- package/dist/runtime/demo/App.vue.d.ts +0 -2
- package/dist/runtime/demo/README.md +0 -1
- package/dist/runtime/demo/main.d.ts +0 -1
- package/dist/runtime/demo/main.js +0 -4
- package/dist/runtime/demo/tailwind.css +0 -1
- package/dist/runtime/env.d.ts +0 -2
- package/dist/runtime/injectionKeys.d.ts +0 -6
- package/dist/runtime/injectionKeys.js +0 -3
- package/dist/runtime/main.lib.d.ts +0 -2
- package/dist/runtime/main.lib.js +0 -2
- package/dist/runtime/pm/commands/backspace.d.ts +0 -12
- package/dist/runtime/pm/commands/backspace.js +0 -26
- package/dist/runtime/pm/commands/changeAttrs.d.ts +0 -9
- package/dist/runtime/pm/commands/changeAttrs.js +0 -15
- package/dist/runtime/pm/commands/deleteSelection.d.ts +0 -9
- package/dist/runtime/pm/commands/deleteSelection.js +0 -8
- package/dist/runtime/pm/commands/enter.d.ts +0 -14
- package/dist/runtime/pm/commands/enter.js +0 -9
- package/dist/runtime/pm/commands/insertBreak.d.ts +0 -9
- package/dist/runtime/pm/commands/insertBreak.js +0 -22
- package/dist/runtime/pm/features/Base/Base.d.ts +0 -4
- package/dist/runtime/pm/features/Base/Base.js +0 -32
- package/dist/runtime/pm/features/Base/commands/deleteNodes.d.ts +0 -10
- package/dist/runtime/pm/features/Base/commands/deleteNodes.js +0 -29
- package/dist/runtime/pm/features/Base/commands/setCursorVisible.d.ts +0 -12
- package/dist/runtime/pm/features/Base/commands/setCursorVisible.js +0 -7
- package/dist/runtime/pm/features/Base/plugins/debugSelectionPlugin.d.ts +0 -9
- package/dist/runtime/pm/features/Base/plugins/debugSelectionPlugin.js +0 -48
- package/dist/runtime/pm/features/Base/plugins/isCursorVisiblePlugin.d.ts +0 -3
- package/dist/runtime/pm/features/Base/plugins/isCursorVisiblePlugin.js +0 -26
- package/dist/runtime/pm/features/Base/plugins/isUsingTouchPlugin.d.ts +0 -3
- package/dist/runtime/pm/features/Base/plugins/isUsingTouchPlugin.js +0 -38
- package/dist/runtime/pm/features/Base/plugins/selectingIndicator.d.ts +0 -5
- package/dist/runtime/pm/features/Base/plugins/selectingIndicator.js +0 -35
- package/dist/runtime/pm/features/Base/plugins/unfocusedSelectionIndicatorPlugin.d.ts +0 -33
- package/dist/runtime/pm/features/Base/plugins/unfocusedSelectionIndicatorPlugin.js +0 -66
- package/dist/runtime/pm/features/Base/types.d.ts +0 -3
- package/dist/runtime/pm/features/Base/types.js +0 -0
- package/dist/runtime/pm/features/BaseShortcuts/BaseShortcuts.d.ts +0 -3
- package/dist/runtime/pm/features/BaseShortcuts/BaseShortcuts.js +0 -34
- package/dist/runtime/pm/features/Blockquote/Blockquote.d.ts +0 -5
- package/dist/runtime/pm/features/Blockquote/Blockquote.js +0 -65
- package/dist/runtime/pm/features/Blockquote/commands/blockquoteEnter.d.ts +0 -11
- package/dist/runtime/pm/features/Blockquote/commands/blockquoteEnter.js +0 -31
- package/dist/runtime/pm/features/Blockquote/commands/blockquoteShiftEnter.d.ts +0 -11
- package/dist/runtime/pm/features/Blockquote/commands/blockquoteShiftEnter.js +0 -12
- package/dist/runtime/pm/features/Blocks/Blocks.d.ts +0 -2
- package/dist/runtime/pm/features/Blocks/Blocks.js +0 -2
- package/dist/runtime/pm/features/Blocks/Item.d.ts +0 -11
- package/dist/runtime/pm/features/Blocks/Item.js +0 -157
- package/dist/runtime/pm/features/Blocks/List.d.ts +0 -4
- package/dist/runtime/pm/features/Blocks/List.js +0 -59
- package/dist/runtime/pm/features/Blocks/commands/changeItemType.d.ts +0 -20
- package/dist/runtime/pm/features/Blocks/commands/changeItemType.js +0 -40
- package/dist/runtime/pm/features/Blocks/commands/changeTypeAttr.d.ts +0 -14
- package/dist/runtime/pm/features/Blocks/commands/changeTypeAttr.js +0 -28
- package/dist/runtime/pm/features/Blocks/commands/copyOrMoveItem.d.ts +0 -23
- package/dist/runtime/pm/features/Blocks/commands/copyOrMoveItem.js +0 -124
- package/dist/runtime/pm/features/Blocks/commands/deleteItem.d.ts +0 -12
- package/dist/runtime/pm/features/Blocks/commands/deleteItem.js +0 -8
- package/dist/runtime/pm/features/Blocks/commands/indentItem.d.ts +0 -12
- package/dist/runtime/pm/features/Blocks/commands/indentItem.js +0 -58
- package/dist/runtime/pm/features/Blocks/commands/itemMenuCommands.d.ts +0 -18
- package/dist/runtime/pm/features/Blocks/commands/itemMenuCommands.js +0 -40
- package/dist/runtime/pm/features/Blocks/commands/moveItem.d.ts +0 -12
- package/dist/runtime/pm/features/Blocks/commands/moveItem.js +0 -80
- package/dist/runtime/pm/features/Blocks/commands/setNode.d.ts +0 -20
- package/dist/runtime/pm/features/Blocks/commands/setNode.js +0 -87
- package/dist/runtime/pm/features/Blocks/commands/splitItem.d.ts +0 -17
- package/dist/runtime/pm/features/Blocks/commands/splitItem.js +0 -87
- package/dist/runtime/pm/features/Blocks/commands/unindentItem.d.ts +0 -12
- package/dist/runtime/pm/features/Blocks/commands/unindentItem.js +0 -42
- package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.d.vue.ts +0 -0
- package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.vue +0 -122
- package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.vue.d.ts +0 -0
- package/dist/runtime/pm/features/Blocks/components/ItemMenu.d.vue.ts +0 -6
- package/dist/runtime/pm/features/Blocks/components/ItemMenu.vue +0 -78
- package/dist/runtime/pm/features/Blocks/components/ItemMenu.vue.d.ts +0 -6
- package/dist/runtime/pm/features/Blocks/components/ItemNodeView.d.vue.ts +0 -92
- package/dist/runtime/pm/features/Blocks/components/ItemNodeView.vue +0 -350
- package/dist/runtime/pm/features/Blocks/components/ItemNodeView.vue.d.ts +0 -92
- package/dist/runtime/pm/features/Blocks/components/defaultItemMenu.d.ts +0 -5
- package/dist/runtime/pm/features/Blocks/components/defaultItemMenu.js +0 -42
- package/dist/runtime/pm/features/Blocks/composables/useDragWithThreshold.d.ts +0 -1
- package/dist/runtime/pm/features/Blocks/composables/useDragWithThreshold.js +0 -0
- package/dist/runtime/pm/features/Blocks/composables/useHandleHeight.d.ts +0 -5
- package/dist/runtime/pm/features/Blocks/composables/useHandleHeight.js +0 -22
- package/dist/runtime/pm/features/Blocks/composables/useHasChildren.d.ts +0 -5
- package/dist/runtime/pm/features/Blocks/composables/useHasChildren.js +0 -10
- package/dist/runtime/pm/features/Blocks/composables/useNodeStates.d.ts +0 -7
- package/dist/runtime/pm/features/Blocks/composables/useNodeStates.js +0 -20
- package/dist/runtime/pm/features/Blocks/itemMenuMenuItems.d.ts +0 -20
- package/dist/runtime/pm/features/Blocks/itemMenuMenuItems.js +0 -138
- package/dist/runtime/pm/features/Blocks/plugins/ensureLastItemIsContentPlugin.d.ts +0 -11
- package/dist/runtime/pm/features/Blocks/plugins/ensureLastItemIsContentPlugin.js +0 -36
- package/dist/runtime/pm/features/Blocks/plugins/itemBlockIdPlugin.d.ts +0 -8
- package/dist/runtime/pm/features/Blocks/plugins/itemBlockIdPlugin.js +0 -30
- package/dist/runtime/pm/features/Blocks/plugins/itemHasSingularSelectionPlugin.d.ts +0 -3
- package/dist/runtime/pm/features/Blocks/plugins/itemHasSingularSelectionPlugin.js +0 -30
- package/dist/runtime/pm/features/Blocks/plugins/itemMenuPlugin.d.ts +0 -4
- package/dist/runtime/pm/features/Blocks/plugins/itemMenuPlugin.js +0 -17
- package/dist/runtime/pm/features/Blocks/states/stateful.d.ts +0 -2
- package/dist/runtime/pm/features/Blocks/states/stateful.js +0 -37
- package/dist/runtime/pm/features/Blocks/states/task/cancelled.svg +0 -32
- package/dist/runtime/pm/features/Blocks/states/task/checked.svg +0 -27
- package/dist/runtime/pm/features/Blocks/states/task/checked2.svg +0 -24
- package/dist/runtime/pm/features/Blocks/states/task/partial.svg +0 -24
- package/dist/runtime/pm/features/Blocks/states/task/partial2.svg +0 -31
- package/dist/runtime/pm/features/Blocks/states/task/unchecked.svg +0 -20
- package/dist/runtime/pm/features/Blocks/types.d.ts +0 -43
- package/dist/runtime/pm/features/Blocks/types.js +0 -2
- package/dist/runtime/pm/features/Blocks/utils/createItemMenuCommandExecuter.d.ts +0 -3
- package/dist/runtime/pm/features/Blocks/utils/createItemMenuCommandExecuter.js +0 -24
- package/dist/runtime/pm/features/Blocks/utils/fixBlockIds.d.ts +0 -4
- package/dist/runtime/pm/features/Blocks/utils/fixBlockIds.js +0 -23
- package/dist/runtime/pm/features/Blocks/utils/isValidId.d.ts +0 -2
- package/dist/runtime/pm/features/Blocks/utils/isValidId.js +0 -7
- package/dist/runtime/pm/features/CodeBlock/CodeBlock.d.ts +0 -16
- package/dist/runtime/pm/features/CodeBlock/CodeBlock.js +0 -91
- package/dist/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.d.ts +0 -1
- package/dist/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.js +0 -63
- package/dist/runtime/pm/features/CodeBlock/commands/codeBlockEnterOrSplit.d.ts +0 -9
- package/dist/runtime/pm/features/CodeBlock/commands/codeBlockEnterOrSplit.js +0 -28
- package/dist/runtime/pm/features/CodeBlock/commands/codeBlockIndent.d.ts +0 -9
- package/dist/runtime/pm/features/CodeBlock/commands/codeBlockIndent.js +0 -39
- package/dist/runtime/pm/features/CodeBlock/commands/codeBlockUnindent.d.ts +0 -9
- package/dist/runtime/pm/features/CodeBlock/commands/codeBlockUnindent.js +0 -50
- package/dist/runtime/pm/features/CodeBlock/commands/focusCodeBlockLanguage.d.ts +0 -9
- package/dist/runtime/pm/features/CodeBlock/commands/focusCodeBlockLanguage.js +0 -27
- package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.d.vue.ts +0 -92
- package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.vue +0 -112
- package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.vue.d.ts +0 -92
- package/dist/runtime/pm/features/CodeBlock/composables/useAsyncCodeBlockHighlighting.d.ts +0 -28
- package/dist/runtime/pm/features/CodeBlock/composables/useAsyncCodeBlockHighlighting.js +0 -137
- package/dist/runtime/pm/features/CodeBlock/composables/useHighlightJsTheme.d.ts +0 -37
- package/dist/runtime/pm/features/CodeBlock/composables/useHighlightJsTheme.js +0 -101
- package/dist/runtime/pm/features/CodeBlock/highlightJsInfo.d.ts +0 -17
- package/dist/runtime/pm/features/CodeBlock/highlightJsInfo.js +0 -711
- package/dist/runtime/pm/features/CodeBlock/types.d.ts +0 -4
- package/dist/runtime/pm/features/CodeBlock/types.js +0 -2
- package/dist/runtime/pm/features/Collaboration/Collaboration.d.ts +0 -66
- package/dist/runtime/pm/features/Collaboration/Collaboration.js +0 -169
- package/dist/runtime/pm/features/CommandsMenus/CommandBar.d.ts +0 -19
- package/dist/runtime/pm/features/CommandsMenus/CommandBar.js +0 -97
- package/dist/runtime/pm/features/CommandsMenus/commandBarMenuItems.d.ts +0 -20
- package/dist/runtime/pm/features/CommandsMenus/commandBarMenuItems.js +0 -188
- package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.d.vue.ts +0 -8
- package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.vue +0 -58
- package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.vue.d.ts +0 -8
- package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.d.vue.ts +0 -12
- package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.vue +0 -42
- package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.vue.d.ts +0 -12
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.d.vue.ts +0 -10
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.vue +0 -55
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.vue.d.ts +0 -10
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.d.vue.ts +0 -11
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.vue +0 -58
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.vue.d.ts +0 -11
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.d.vue.ts +0 -11
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.vue +0 -54
- package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.vue.d.ts +0 -11
- package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.d.vue.ts +0 -5
- package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.vue +0 -13
- package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.vue.d.ts +0 -5
- package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.d.vue.ts +0 -8
- package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.vue +0 -45
- package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.vue.d.ts +0 -8
- package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.d.vue.ts +0 -2
- package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.vue +0 -5
- package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.vue.d.ts +0 -2
- package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.d.vue.ts +0 -2
- package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.vue +0 -5
- package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.vue.d.ts +0 -2
- package/dist/runtime/pm/features/CommandsMenus/types.d.ts +0 -61
- package/dist/runtime/pm/features/CommandsMenus/types.js +0 -5
- package/dist/runtime/pm/features/CommandsMenus/utils/defaultCommandExecutor.d.ts +0 -3
- package/dist/runtime/pm/features/CommandsMenus/utils/defaultCommandExecutor.js +0 -11
- package/dist/runtime/pm/features/CommandsMenus/utils/findCommand.d.ts +0 -10
- package/dist/runtime/pm/features/CommandsMenus/utils/findCommand.js +0 -16
- package/dist/runtime/pm/features/CommandsMenus/utils/popupPositionModifier.d.ts +0 -5
- package/dist/runtime/pm/features/CommandsMenus/utils/popupPositionModifier.js +0 -9
- package/dist/runtime/pm/features/CommandsMenus/utils/popupVerticalPositioner.d.ts +0 -5
- package/dist/runtime/pm/features/CommandsMenus/utils/popupVerticalPositioner.js +0 -11
- package/dist/runtime/pm/features/Document/Document.d.ts +0 -3
- package/dist/runtime/pm/features/Document/Document.js +0 -6
- package/dist/runtime/pm/features/DocumentApi/DocumentApi.d.ts +0 -86
- package/dist/runtime/pm/features/DocumentApi/DocumentApi.js +0 -170
- package/dist/runtime/pm/features/DocumentApi/composables/useEditorContent.d.ts +0 -13
- package/dist/runtime/pm/features/DocumentApi/composables/useEditorContent.js +0 -76
- package/dist/runtime/pm/features/DocumentApi/composables/useTestDocumentApi.d.ts +0 -23
- package/dist/runtime/pm/features/DocumentApi/composables/useTestDocumentApi.js +0 -70
- package/dist/runtime/pm/features/DocumentApi/types.d.ts +0 -133
- package/dist/runtime/pm/features/DocumentApi/types.js +0 -1
- package/dist/runtime/pm/features/DocumentApi/utils/convertFullTransactionForPartialState.d.ts +0 -3
- package/dist/runtime/pm/features/DocumentApi/utils/convertFullTransactionForPartialState.js +0 -37
- package/dist/runtime/pm/features/DocumentApi/utils/convertTrForInstance.d.ts +0 -4
- package/dist/runtime/pm/features/DocumentApi/utils/convertTrForInstance.js +0 -13
- package/dist/runtime/pm/features/DocumentApi/utils/convertTransactionForFullState.d.ts +0 -2
- package/dist/runtime/pm/features/DocumentApi/utils/convertTransactionForFullState.js +0 -22
- package/dist/runtime/pm/features/DocumentApi/utils/copyMeta.d.ts +0 -2
- package/dist/runtime/pm/features/DocumentApi/utils/copyMeta.js +0 -6
- package/dist/runtime/pm/features/DocumentApi/utils/getEmbedJson.d.ts +0 -1
- package/dist/runtime/pm/features/DocumentApi/utils/getEmbedJson.js +0 -14
- package/dist/runtime/pm/features/DocumentApi/utils/getEmbedNodeFromDoc.d.ts +0 -1
- package/dist/runtime/pm/features/DocumentApi/utils/getEmbedNodeFromDoc.js +0 -14
- package/dist/runtime/pm/features/DocumentApi/utils/getStateEmbedRange.d.ts +0 -9
- package/dist/runtime/pm/features/DocumentApi/utils/getStateEmbedRange.js +0 -19
- package/dist/runtime/pm/features/DocumentApi/utils/isEmbedId.d.ts +0 -2
- package/dist/runtime/pm/features/DocumentApi/utils/isEmbedId.js +0 -3
- package/dist/runtime/pm/features/EmbeddedDocument/Embedded.d.ts +0 -24
- package/dist/runtime/pm/features/EmbeddedDocument/Embedded.js +0 -73
- package/dist/runtime/pm/features/EmbeddedDocument/EmbeddedDocument.d.ts +0 -23
- package/dist/runtime/pm/features/EmbeddedDocument/EmbeddedDocument.js +0 -70
- package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.d.vue.ts +0 -14
- package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue +0 -171
- package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue.d.ts +0 -14
- package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.d.vue.ts +0 -92
- package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue +0 -172
- package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue.d.ts +0 -92
- package/dist/runtime/pm/features/EmbeddedDocument/composables/useEmbeddedEditor.d.ts +0 -31
- package/dist/runtime/pm/features/EmbeddedDocument/composables/useEmbeddedEditor.js +0 -199
- package/dist/runtime/pm/features/EmbeddedDocument/types.d.ts +0 -49
- package/dist/runtime/pm/features/EmbeddedDocument/types.js +0 -6
- package/dist/runtime/pm/features/EmbeddedDocument/utils/isEmbeddedBlock.d.ts +0 -9
- package/dist/runtime/pm/features/EmbeddedDocument/utils/isEmbeddedBlock.js +0 -3
- package/dist/runtime/pm/features/EmbeddedDocument/utils/redirectFromEmbedded.d.ts +0 -28
- package/dist/runtime/pm/features/EmbeddedDocument/utils/redirectFromEmbedded.js +0 -17
- package/dist/runtime/pm/features/FileLoader/FileLoader.d.ts +0 -16
- package/dist/runtime/pm/features/FileLoader/FileLoader.js +0 -99
- package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/FileLoaderHandler.d.ts +0 -28
- package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/FileLoaderHandler.js +0 -69
- package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/TestFileLoaderHandler.d.ts +0 -11
- package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/TestFileLoaderHandler.js +0 -49
- package/dist/runtime/pm/features/FileLoader/commands/insertFile.d.ts +0 -17
- package/dist/runtime/pm/features/FileLoader/commands/insertFile.js +0 -39
- package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.d.vue.ts +0 -92
- package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.vue +0 -38
- package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.vue.d.ts +0 -92
- package/dist/runtime/pm/features/FileLoader/plugins/fileLoaderPlugin.d.ts +0 -5
- package/dist/runtime/pm/features/FileLoader/plugins/fileLoaderPlugin.js +0 -61
- package/dist/runtime/pm/features/FileLoader/types.d.ts +0 -73
- package/dist/runtime/pm/features/FileLoader/types.js +0 -0
- package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNode.d.ts +0 -4
- package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNode.js +0 -27
- package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNodes.d.ts +0 -9
- package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNodes.js +0 -22
- package/dist/runtime/pm/features/FileLoader/utils/findLoadingNodePos.d.ts +0 -2
- package/dist/runtime/pm/features/FileLoader/utils/findLoadingNodePos.js +0 -11
- package/dist/runtime/pm/features/FileLoader/utils/optionsCheck.d.ts +0 -3
- package/dist/runtime/pm/features/FileLoader/utils/optionsCheck.js +0 -8
- package/dist/runtime/pm/features/FileLoader/utils/readAsDataUrl.d.ts +0 -1
- package/dist/runtime/pm/features/FileLoader/utils/readAsDataUrl.js +0 -12
- package/dist/runtime/pm/features/HardBreak/HardBreak.d.ts +0 -5
- package/dist/runtime/pm/features/HardBreak/HardBreak.js +0 -14
- package/dist/runtime/pm/features/Heading/Heading.d.ts +0 -24
- package/dist/runtime/pm/features/Heading/Heading.js +0 -85
- package/dist/runtime/pm/features/Heading/commands/changeLevelAttr.d.ts +0 -16
- package/dist/runtime/pm/features/Heading/commands/changeLevelAttr.js +0 -33
- package/dist/runtime/pm/features/Heading/types.d.ts +0 -14
- package/dist/runtime/pm/features/Heading/types.js +0 -0
- package/dist/runtime/pm/features/Highlight/Highlight.d.ts +0 -72
- package/dist/runtime/pm/features/Highlight/Highlight.js +0 -163
- package/dist/runtime/pm/features/Highlight/retyped/tiptapHighlight.d.ts +0 -3
- package/dist/runtime/pm/features/Highlight/retyped/tiptapHighlight.js +0 -5
- package/dist/runtime/pm/features/Highlight/types.d.ts +0 -27
- package/dist/runtime/pm/features/Highlight/types.js +0 -2
- package/dist/runtime/pm/features/History/History.d.ts +0 -35
- package/dist/runtime/pm/features/History/History.js +0 -63
- package/dist/runtime/pm/features/Iframe/Iframe.d.ts +0 -21
- package/dist/runtime/pm/features/Iframe/Iframe.js +0 -127
- package/dist/runtime/pm/features/Iframe/IframeParsers.d.ts +0 -37
- package/dist/runtime/pm/features/Iframe/IframeParsers.js +0 -88
- package/dist/runtime/pm/features/Iframe/components/IframeNodeView.d.vue.ts +0 -92
- package/dist/runtime/pm/features/Iframe/components/IframeNodeView.vue +0 -82
- package/dist/runtime/pm/features/Iframe/components/IframeNodeView.vue.d.ts +0 -92
- package/dist/runtime/pm/features/Iframe/types.d.ts +0 -5
- package/dist/runtime/pm/features/Iframe/types.js +0 -0
- package/dist/runtime/pm/features/Image/Image.d.ts +0 -2
- package/dist/runtime/pm/features/Image/Image.js +0 -13
- package/dist/runtime/pm/features/Link/Link.d.ts +0 -38
- package/dist/runtime/pm/features/Link/Link.js +0 -241
- package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.d.vue.ts +0 -28
- package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue +0 -114
- package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue.d.ts +0 -28
- package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.d.vue.ts +0 -29
- package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue +0 -107
- package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue.d.ts +0 -29
- package/dist/runtime/pm/features/Link/components/BubbleMenuLink.d.vue.ts +0 -11
- package/dist/runtime/pm/features/Link/components/BubbleMenuLink.vue +0 -126
- package/dist/runtime/pm/features/Link/components/BubbleMenuLink.vue.d.ts +0 -11
- package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.d.vue.ts +0 -18
- package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue +0 -57
- package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue.d.ts +0 -18
- package/dist/runtime/pm/features/Link/types.d.ts +0 -44
- package/dist/runtime/pm/features/Link/types.js +0 -3
- package/dist/runtime/pm/features/Menus/Menus.d.ts +0 -45
- package/dist/runtime/pm/features/Menus/Menus.js +0 -142
- package/dist/runtime/pm/features/Menus/components/MarkMenuManager.d.vue.ts +0 -6
- package/dist/runtime/pm/features/Menus/components/MarkMenuManager.vue +0 -166
- package/dist/runtime/pm/features/Menus/components/MarkMenuManager.vue.d.ts +0 -6
- package/dist/runtime/pm/features/Menus/types.d.ts +0 -51
- package/dist/runtime/pm/features/Menus/types.js +0 -3
- package/dist/runtime/pm/features/Menus/utils/isMarkMenu.d.ts +0 -2
- package/dist/runtime/pm/features/Menus/utils/isMarkMenu.js +0 -3
- package/dist/runtime/pm/features/Tables/commands/tableEnter.d.ts +0 -15
- package/dist/runtime/pm/features/Tables/commands/tableEnter.js +0 -19
- package/dist/runtime/pm/features/Tables/index.d.ts +0 -9
- package/dist/runtime/pm/features/Tables/index.js +0 -44
- package/dist/runtime/pm/schema.d.ts +0 -4
- package/dist/runtime/pm/schema.js +0 -80
- package/dist/runtime/pm/testSchema.d.ts +0 -5
- package/dist/runtime/pm/testSchema.js +0 -30
- package/dist/runtime/pm/utils/createDropIndicator.d.ts +0 -23
- package/dist/runtime/pm/utils/createDropIndicator.js +0 -32
- package/dist/runtime/pm/utils/createStateOnlyPluginApply.d.ts +0 -2
- package/dist/runtime/pm/utils/createStateOnlyPluginApply.js +0 -9
- package/dist/runtime/pm/utils/createStateOnlyPluginObjApply.d.ts +0 -2
- package/dist/runtime/pm/utils/createStateOnlyPluginObjApply.js +0 -14
- package/dist/runtime/pm/utils/dropPointInfo.d.ts +0 -56
- package/dist/runtime/pm/utils/dropPointInfo.js +0 -28
- package/dist/runtime/pm/utils/findUpwards.d.ts +0 -20
- package/dist/runtime/pm/utils/findUpwards.js +0 -18
- package/dist/runtime/pm/utils/getChildChunks.d.ts +0 -3
- package/dist/runtime/pm/utils/getChildChunks.js +0 -15
- package/dist/runtime/pm/utils/getDiffReplacementRange.d.ts +0 -20
- package/dist/runtime/pm/utils/getDiffReplacementRange.js +0 -9
- package/dist/runtime/pm/utils/getElMaxVisualSize.d.ts +0 -9
- package/dist/runtime/pm/utils/getElMaxVisualSize.js +0 -7
- package/dist/runtime/pm/utils/getElPropertyAsInt.d.ts +0 -1
- package/dist/runtime/pm/utils/getElPropertyAsInt.js +0 -8
- package/dist/runtime/pm/utils/getGroupNodeNames.d.ts +0 -2
- package/dist/runtime/pm/utils/getGroupNodeNames.js +0 -7
- package/dist/runtime/pm/utils/getMarkPosition.d.ts +0 -11
- package/dist/runtime/pm/utils/getMarkPosition.js +0 -34
- package/dist/runtime/pm/utils/getMarksInSelection.d.ts +0 -3
- package/dist/runtime/pm/utils/getMarksInSelection.js +0 -16
- package/dist/runtime/pm/utils/getTypeByName.d.ts +0 -2
- package/dist/runtime/pm/utils/getTypeByName.js +0 -5
- package/dist/runtime/pm/utils/index.d.ts +0 -15
- package/dist/runtime/pm/utils/index.js +0 -15
- package/dist/runtime/pm/utils/internal/createNodeTypesList.d.ts +0 -2
- package/dist/runtime/pm/utils/internal/createNodeTypesList.js +0 -17
- package/dist/runtime/pm/utils/internal/debugMap.d.ts +0 -7
- package/dist/runtime/pm/utils/internal/debugMap.js +0 -24
- package/dist/runtime/pm/utils/internal/debugNode.d.ts +0 -2
- package/dist/runtime/pm/utils/internal/debugNode.js +0 -18
- package/dist/runtime/pm/utils/internal/debugSel.d.ts +0 -5
- package/dist/runtime/pm/utils/internal/debugSel.js +0 -8
- package/dist/runtime/pm/utils/internal/recurse.d.ts +0 -2
- package/dist/runtime/pm/utils/internal/recurse.js +0 -39
- package/dist/runtime/pm/utils/internal/stripBlockId.d.ts +0 -2
- package/dist/runtime/pm/utils/internal/stripBlockId.js +0 -9
- package/dist/runtime/pm/utils/mapSelection.d.ts +0 -8
- package/dist/runtime/pm/utils/mapSelection.js +0 -12
- package/dist/runtime/pm/utils/nodesBetween.d.ts +0 -21
- package/dist/runtime/pm/utils/nodesBetween.js +0 -21
- package/dist/runtime/pm/utils/pointToPmPoint.d.ts +0 -2
- package/dist/runtime/pm/utils/pointToPmPoint.js +0 -3
- package/dist/runtime/pm/utils/splitIntoChunks.d.ts +0 -32
- package/dist/runtime/pm/utils/splitIntoChunks.js +0 -31
- package/dist/runtime/testDocuments.d.ts +0 -53
- package/dist/runtime/testDocuments.js +0 -122
- package/dist/runtime/types/index.d.ts +0 -53
- package/dist/runtime/types/index.js +0 -9
package/dist/module.d.mts
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare module "@nuxt/schema" {
|
|
4
|
-
interface PublicRuntimeConfig {
|
|
5
|
-
witchcraftEditor: {};
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
interface ModuleOptions {
|
|
9
|
-
/** @internal */
|
|
10
|
-
_playgroundWorkaround?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
13
|
-
|
|
14
|
-
export { _default as default };
|
|
15
|
-
export type { ModuleOptions };
|
|
1
|
+
export * from "/home/runner/work/editor/editor/src/module.js";
|
|
2
|
+
export { default } from "/home/runner/work/editor/editor/src/module.js";
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,77 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createResolver, defineNuxtModule, addComponentsDir, addImportsDir, addTemplate } from '@nuxt/kit';
|
|
3
|
-
import { defu } from 'defu';
|
|
4
|
-
import fs from 'node:fs/promises';
|
|
1
|
+
import { createJiti } from "file:///home/runner/work/editor/editor/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs";
|
|
5
2
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const { resolve } = createResolver(import.meta.url);
|
|
12
|
-
const module = defineNuxtModule({
|
|
13
|
-
meta: {
|
|
14
|
-
name: "witchcraftEditor",
|
|
15
|
-
configKey: "witchcraftEditor"
|
|
16
|
-
},
|
|
17
|
-
defaults: {
|
|
18
|
-
_playgroundWorkaround: false
|
|
3
|
+
const jiti = createJiti(import.meta.url, {
|
|
4
|
+
"interopDefault": true,
|
|
5
|
+
"alias": {
|
|
6
|
+
"@witchcraft/editor": "/home/runner/work/editor/editor"
|
|
19
7
|
},
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
8
|
+
"transformOptions": {
|
|
9
|
+
"babel": {
|
|
10
|
+
"plugins": []
|
|
23
11
|
}
|
|
24
|
-
},
|
|
25
|
-
async setup(options, nuxt) {
|
|
26
|
-
nuxt.options.runtimeConfig.public.witchcraftEditor = defu(
|
|
27
|
-
nuxt.options.runtimeConfig.public.witchcraftEditor,
|
|
28
|
-
{}
|
|
29
|
-
);
|
|
30
|
-
addComponentsDir({ path: resolve("./runtime/components") });
|
|
31
|
-
const pmFeatures = await fs.readdir(resolve("./runtime/pm/features"));
|
|
32
|
-
for (const feature of pmFeatures) {
|
|
33
|
-
nuxt.options.build.transpile.push(resolve(`./runtime/pm/features/${feature}/${feature}`));
|
|
34
|
-
if (await fs.stat(resolve(`./runtime/pm/features/${feature}/components`)).then((_) => true).catch(() => false)) {
|
|
35
|
-
addComponentsDir({ path: resolve(`./runtime/pm/features/${feature}/components`) });
|
|
36
|
-
}
|
|
37
|
-
if (await fs.stat(resolve(`./runtime/pm/features/${feature}/composables`)).then((_) => true).catch(() => false)) {
|
|
38
|
-
addImportsDir(resolve(`./runtime/pm/features/${feature}/composables`));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
addTemplate({
|
|
42
|
-
filename: "witchcraft-editor.css",
|
|
43
|
-
write: true,
|
|
44
|
-
getContents: () => options._playgroundWorkaround ? crop`
|
|
45
|
-
@import "${resolve("./runtime/assets/base.css")}";
|
|
46
|
-
@import "${resolve("./runtime/assets/utils.css")}";
|
|
47
|
-
@source "${resolve("./runtime/components")}";
|
|
48
|
-
@source "${resolve("./runtime/pm")}";
|
|
49
|
-
` : crop`
|
|
50
|
-
@import "@witchcraft/editor/base.css";
|
|
51
|
-
@import "@witchcraft/editor/utils.css";
|
|
52
|
-
@source "${resolve("./runtime/components")}";
|
|
53
|
-
@source "${resolve("./runtime/pm")}";
|
|
54
|
-
`
|
|
55
|
-
});
|
|
56
|
-
addImportsDir(resolve("./runtime/composables"));
|
|
57
|
-
nuxt.options.typescript = nuxt.options.typescript || {};
|
|
58
|
-
nuxt.options.typescript.hoist = nuxt.options.typescript.hoist || [];
|
|
59
|
-
nuxt.options.alias["#witchcraft-editor"] = resolve("./runtime");
|
|
60
|
-
nuxt.options.alias["#witchcraft-pm"] = resolve("./runtime/pm");
|
|
61
|
-
nuxt.options.build.transpile.push("@tiptap/vue-3");
|
|
62
|
-
nuxt.options.build.transpile.push("@tiptap/pm");
|
|
63
|
-
nuxt.hook("vite:extendConfig", (config) => {
|
|
64
|
-
config.optimizeDeps ??= {};
|
|
65
|
-
config.optimizeDeps.exclude ??= [];
|
|
66
|
-
config.optimizeDeps.exclude.push("@witchcraft/editor/pm/features/CodeBlock/composables/useHighlightJsTheme");
|
|
67
|
-
config.optimizeDeps.exclude.push("@witchcraft/editor/pm/features/CodeBlock/composables/useAsyncCodeBlockHighlight");
|
|
68
|
-
config.optimizeDeps.exclude.push("@tiptap/vue-3");
|
|
69
|
-
config.optimizeDeps.exclude.push("@tiptap/pm");
|
|
70
|
-
config.optimizeDeps.include ??= [];
|
|
71
|
-
config.optimizeDeps.include.push("highlight.js/lib/core");
|
|
72
|
-
config.optimizeDeps.include.push("@witchcraft/editor > highlight.js/lib/core");
|
|
73
|
-
});
|
|
74
12
|
}
|
|
75
|
-
})
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
/** @type {import("/home/runner/work/editor/editor/src/module.js")} */
|
|
16
|
+
const _module = await jiti.import("/home/runner/work/editor/editor/src/module.ts");
|
|
76
17
|
|
|
77
|
-
export
|
|
18
|
+
export default _module?.default ?? _module;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ModuleHooks, ModuleRuntimeHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module.mjs'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare module '#app' {
|
|
4
|
+
interface RuntimeNuxtHooks extends ModuleRuntimeHooks {}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare module '@nuxt/schema' {
|
|
8
|
+
interface NuxtHooks extends ModuleHooks {}
|
|
9
|
+
interface RuntimeConfig extends ModuleRuntimeConfig {}
|
|
10
|
+
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export * from "./module.mjs"
|
package/package.json
CHANGED
|
@@ -1,238 +1,229 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"node": ">=20.0.0"
|
|
231
|
-
},
|
|
232
|
-
"@comments": {
|
|
233
|
-
"vue-tsc": "Do not upgrade to 3.0, #awaiting https://github.com/vuejs/language-tools/issues/5644"
|
|
234
|
-
},
|
|
235
|
-
"publishConfig": {
|
|
236
|
-
"access": "public"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
2
|
+
"name": "@witchcraft/editor",
|
|
3
|
+
"description": "Block base prosemirror editor with partial/full editable document embeds, infinite embeds, and document uploads.",
|
|
4
|
+
"version": "0.0.5",
|
|
5
|
+
"main": "./dist/runtime/main.lib.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/runtime/main.lib.d.ts",
|
|
11
|
+
"import": "./dist/runtime/main.lib.js"
|
|
12
|
+
},
|
|
13
|
+
"./*": {
|
|
14
|
+
"types": "./dist/runtime/*.d.ts",
|
|
15
|
+
"import": "./dist/runtime/*.js"
|
|
16
|
+
},
|
|
17
|
+
"./assets/*": {
|
|
18
|
+
"import": "./dist/runtime/assets/*"
|
|
19
|
+
},
|
|
20
|
+
"./components/*": {
|
|
21
|
+
"types": "./dist/runtime/components/*/*.vue.d.ts",
|
|
22
|
+
"import": "./dist/runtime/components/*/*.vue"
|
|
23
|
+
},
|
|
24
|
+
"./composables/*": {
|
|
25
|
+
"types": "./dist/runtime/composables/*.d.ts",
|
|
26
|
+
"import": "./dist/runtime/composables/*.js"
|
|
27
|
+
},
|
|
28
|
+
"./pm/features/Blocks/components/*": {
|
|
29
|
+
"types": "./dist/runtime/pm/features/Blocks/components/*.vue.d.ts",
|
|
30
|
+
"import": "./dist/runtime/pm/features/Blocks/components/*.vue"
|
|
31
|
+
},
|
|
32
|
+
"./pm/features/CodeBlock/components/*": {
|
|
33
|
+
"types": "./dist/runtime/pm/features/CodeBlock/components/*.vue.d.ts",
|
|
34
|
+
"import": "./dist/runtime/pm/features/CodeBlock/components/*.vue"
|
|
35
|
+
},
|
|
36
|
+
"./pm/features/EmbeddedDocument/components/*": {
|
|
37
|
+
"types": "./dist/runtime/pm/features/EmbeddedDocument/components/*.vue.d.ts",
|
|
38
|
+
"import": "./dist/runtime/pm/features/EmbeddedDocument/components/*.vue"
|
|
39
|
+
},
|
|
40
|
+
"./pm/features/FileLoader/components/*": {
|
|
41
|
+
"types": "./dist/runtime/pm/features/FileLoader/components/*.vue.d.ts",
|
|
42
|
+
"import": "./dist/runtime/pm/features/FileLoader/components/*.vue"
|
|
43
|
+
},
|
|
44
|
+
"./pm/features/Iframe/components/*": {
|
|
45
|
+
"types": "./dist/runtime/pm/features/Iframe/components/*.vue.d.ts",
|
|
46
|
+
"import": "./dist/runtime/pm/features/Iframe/components/*.vue"
|
|
47
|
+
},
|
|
48
|
+
"./pm/features/Menus/components/*": {
|
|
49
|
+
"types": "./dist/runtime/pm/features/Menus/components/*.vue.d.ts",
|
|
50
|
+
"import": "./dist/runtime/pm/features/Menus/components/*.vue"
|
|
51
|
+
},
|
|
52
|
+
"./pm/*": {
|
|
53
|
+
"types": "./dist/runtime/pm/*.d.ts",
|
|
54
|
+
"import": "./dist/runtime/pm/*.js"
|
|
55
|
+
},
|
|
56
|
+
"./nuxt": {
|
|
57
|
+
"import": "./dist/module.mjs"
|
|
58
|
+
},
|
|
59
|
+
"./base.css": "./src/runtime/assets/base.css",
|
|
60
|
+
"./utils.css": "./src/runtime/assets/utils.css",
|
|
61
|
+
"./@types/*": "./@types/*"
|
|
62
|
+
},
|
|
63
|
+
"unbuild": {
|
|
64
|
+
"failOnWarn": false
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@tiptap/core": "^3.4.2",
|
|
68
|
+
"@tiptap/extension-blockquote": "^3.4.2",
|
|
69
|
+
"@tiptap/extension-bold": "^3.4.2",
|
|
70
|
+
"@tiptap/extension-code": "^3.4.2",
|
|
71
|
+
"@tiptap/extension-code-block": "^3.4.2",
|
|
72
|
+
"@tiptap/extension-code-block-lowlight": "^3.4.2",
|
|
73
|
+
"@tiptap/extension-dropcursor": "^3.4.2",
|
|
74
|
+
"@tiptap/extension-gapcursor": "^3.4.2",
|
|
75
|
+
"@tiptap/extension-hard-break": "^3.4.2",
|
|
76
|
+
"@tiptap/extension-heading": "^3.4.2",
|
|
77
|
+
"@tiptap/extension-highlight": "^3.4.2",
|
|
78
|
+
"@tiptap/extension-history": "^3.4.2",
|
|
79
|
+
"@tiptap/extension-image": "^3.4.2",
|
|
80
|
+
"@tiptap/extension-italic": "^3.4.2",
|
|
81
|
+
"@tiptap/extension-link": "^3.4.2",
|
|
82
|
+
"@tiptap/extension-paragraph": "^3.4.2",
|
|
83
|
+
"@tiptap/extension-strike": "^3.4.2",
|
|
84
|
+
"@tiptap/extension-subscript": "^3.4.2",
|
|
85
|
+
"@tiptap/extension-superscript": "^3.4.2",
|
|
86
|
+
"@tiptap/extension-table": "^3.4.2",
|
|
87
|
+
"@tiptap/extension-table-cell": "^3.4.2",
|
|
88
|
+
"@tiptap/extension-table-header": "^3.4.2",
|
|
89
|
+
"@tiptap/extension-table-row": "^3.4.2",
|
|
90
|
+
"@tiptap/extension-text": "^3.4.2",
|
|
91
|
+
"@tiptap/extension-underline": "^3.4.2",
|
|
92
|
+
"@tiptap/pm": "^3.4.2",
|
|
93
|
+
"@tiptap/vue-3": "^3.4.2",
|
|
94
|
+
"@witchcraft/ui": "^0.3.2",
|
|
95
|
+
"tailwindcss": "^4.1.13",
|
|
96
|
+
"vue": "^3.5.21"
|
|
97
|
+
},
|
|
98
|
+
"peerDependenciesMeta": {
|
|
99
|
+
"@witchcraft/ui": {
|
|
100
|
+
"optional": false
|
|
101
|
+
},
|
|
102
|
+
"tailwindcss": {
|
|
103
|
+
"optional": false
|
|
104
|
+
},
|
|
105
|
+
"vue": {
|
|
106
|
+
"optional": false
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"@alanscodelog/eslint-config": "^6.3.1",
|
|
111
|
+
"@alanscodelog/utils": "^6.0.2",
|
|
112
|
+
"@commitlint/cli": "^19.8.1",
|
|
113
|
+
"@fortawesome/fontawesome-svg-core": "^7.0.1",
|
|
114
|
+
"@fortawesome/free-brands-svg-icons": "^7.0.1",
|
|
115
|
+
"@fortawesome/free-regular-svg-icons": "^7.0.1",
|
|
116
|
+
"@fortawesome/free-solid-svg-icons": "^7.0.1",
|
|
117
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
118
|
+
"@witchcraft/nuxt-utils": "^0.3.2",
|
|
119
|
+
"@witchcraft/ui": "^0.3.2",
|
|
120
|
+
"colord": "^2.9.3",
|
|
121
|
+
"defu": "^6.1.4",
|
|
122
|
+
"highlight.js": "^11.11.1",
|
|
123
|
+
"lowlight": "^3.3.0",
|
|
124
|
+
"metamorphosis": "^0.6.1",
|
|
125
|
+
"mime": "^4.1.0",
|
|
126
|
+
"nanoid": "^5.1.5",
|
|
127
|
+
"reka-ui": "^2.5.0",
|
|
128
|
+
"tailwind-merge": "^3.3.1",
|
|
129
|
+
"unplugin-vue-components": "^29.1.0",
|
|
130
|
+
"uuid": "^13.0.0",
|
|
131
|
+
"y-prosemirror": "^1.3.7",
|
|
132
|
+
"yjs": "^13.6.27"
|
|
133
|
+
},
|
|
134
|
+
"devDependencies": {
|
|
135
|
+
"@alanscodelog/commitlint-config": "^3.1.2",
|
|
136
|
+
"@alanscodelog/semantic-release-config": "^6.0.0",
|
|
137
|
+
"@alanscodelog/tsconfigs": "^6.2.0",
|
|
138
|
+
"@alanscodelog/vite-config": "^0.0.6",
|
|
139
|
+
"@iconify/json": "^2.2.385",
|
|
140
|
+
"@nuxt/kit": "^4.1.2",
|
|
141
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
142
|
+
"@nuxt/schema": "^4.1.2",
|
|
143
|
+
"@nuxt/types": "^2.18.1",
|
|
144
|
+
"@playwright/test": "^1.54.0",
|
|
145
|
+
"@rollup/plugin-dynamic-import-vars": "^2.1.5",
|
|
146
|
+
"@tailwindcss/cli": "^4.1.13",
|
|
147
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
148
|
+
"@testing-library/vue": "^8.1.0",
|
|
149
|
+
"@types/node": "^24.5.1",
|
|
150
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
151
|
+
"@vitest/browser": "^3.2.4",
|
|
152
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
153
|
+
"@witchcraft/ui": "^0.3.2",
|
|
154
|
+
"concurrently": "^9.2.1",
|
|
155
|
+
"cross-env": "^10.0.0",
|
|
156
|
+
"eslint": "^9.35.0",
|
|
157
|
+
"fast-glob": "^3.3.3",
|
|
158
|
+
"http-server": "^14.1.1",
|
|
159
|
+
"husky": "^9.1.7",
|
|
160
|
+
"madge": "^8.0.0",
|
|
161
|
+
"nuxt": "^4.1.2",
|
|
162
|
+
"onchange": "^7.1.0",
|
|
163
|
+
"playwright": "^1.54.0",
|
|
164
|
+
"playwright-core": "^1.54.0",
|
|
165
|
+
"prosemirror-test-builder": "^1.1.1",
|
|
166
|
+
"radix-vue": "^1.9.17",
|
|
167
|
+
"semantic-release": "^24.2.8",
|
|
168
|
+
"tailwindcss": "^4.1.13",
|
|
169
|
+
"typedoc": "^0.28.13",
|
|
170
|
+
"typescript": "~5.9.2",
|
|
171
|
+
"unplugin-icons": "^22.3.0",
|
|
172
|
+
"vite": "^7.1.5",
|
|
173
|
+
"vitest": "^3.2.4",
|
|
174
|
+
"vue": "^3.5.21",
|
|
175
|
+
"vue-component-type-helpers": "^3.0.7",
|
|
176
|
+
"vue-tsc": "^2.2.12"
|
|
177
|
+
},
|
|
178
|
+
"author": "Alan <alanscodelog@gmail.com>",
|
|
179
|
+
"repository": "https://github.com/witchcraftjs/editor",
|
|
180
|
+
"license": "MIT",
|
|
181
|
+
"files": [
|
|
182
|
+
"src",
|
|
183
|
+
"dist",
|
|
184
|
+
"@types"
|
|
185
|
+
],
|
|
186
|
+
"release": {
|
|
187
|
+
"extends": [
|
|
188
|
+
"@alanscodelog/semantic-release-config"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"commitlint": {
|
|
192
|
+
"extends": [
|
|
193
|
+
"@alanscodelog"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"browserslist": "defaults and supports es6-module,maintained node versions",
|
|
197
|
+
"engines": {
|
|
198
|
+
"node": ">=20.0.0"
|
|
199
|
+
},
|
|
200
|
+
"@comments": {
|
|
201
|
+
"vue-tsc": "Do not upgrade to 3.0, #awaiting https://github.com/vuejs/language-tools/issues/5644"
|
|
202
|
+
},
|
|
203
|
+
"publishConfig": {
|
|
204
|
+
"access": "public"
|
|
205
|
+
},
|
|
206
|
+
"scripts": {
|
|
207
|
+
"build:only": "nuxt-module-build build",
|
|
208
|
+
"build": "pnpm gen:highlightJsLangInfo && nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
|
|
209
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
210
|
+
"dev": "nuxi dev playground",
|
|
211
|
+
"//dev:vite": "The module needs to be build, not stubbed, for vite's dev to work.",
|
|
212
|
+
"dev:vite": "concurrently \"pnpm build\" \"vite --mode development --config vite.config.ts\"",
|
|
213
|
+
"lint:eslint": "eslint \"{src,tests,playground/app}/**/*.{cjs,js,ts,vue}\" \"*.{cjs,js,ts}\" --max-warnings=0 --report-unused-disable-directives",
|
|
214
|
+
"lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
|
|
215
|
+
"lint:imports": "echo not working madge --circular --extensions ts ./src",
|
|
216
|
+
"lint": "pnpm lint:eslint && pnpm lint:types && pnpm lint:commits && pnpm lint:imports",
|
|
217
|
+
"lint:types": "vue-tsc --noEmit",
|
|
218
|
+
"test": "vitest",
|
|
219
|
+
"test:watch": "vitest --watch",
|
|
220
|
+
"doc": "typedoc",
|
|
221
|
+
"doc:watch": "onchange -i \"src/**/*.ts\" \"typedoc.config.js\" -- pnpm doc",
|
|
222
|
+
"doc:serve": "http-server docs --port=5001",
|
|
223
|
+
"doc:dev": "concurrently \"pnpm doc:watch\" \"pnpm doc:serve\"",
|
|
224
|
+
"doc:check-invalid": "typedoc --listInvalidSymbolLinks",
|
|
225
|
+
"//actions:debug": "echo For debugging github build action locally with nektos/act. Requires act and docker. Note: Cache will never work locally because of https://github.com/nektos/act/issues/285",
|
|
226
|
+
"actions:debug": "act -r -v -j release",
|
|
227
|
+
"gen:highlightJsLangInfo": "node src/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.js"
|
|
228
|
+
}
|
|
229
|
+
}
|