@domternal/core 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/CanChecker.d.ts +79 -0
- package/dist/CanChecker.d.ts.map +1 -0
- package/dist/CanChecker.test.d.ts +2 -0
- package/dist/CanChecker.test.d.ts.map +1 -0
- package/dist/ChainBuilder.d.ts +119 -0
- package/dist/ChainBuilder.d.ts.map +1 -0
- package/dist/ChainBuilder.test.d.ts +2 -0
- package/dist/ChainBuilder.test.d.ts.map +1 -0
- package/dist/CommandManager.d.ts +86 -0
- package/dist/CommandManager.d.ts.map +1 -0
- package/dist/CommandManager.test.d.ts +2 -0
- package/dist/CommandManager.test.d.ts.map +1 -0
- package/dist/Editor.d.ts +262 -0
- package/dist/Editor.d.ts.map +1 -0
- package/dist/Editor.test.d.ts +2 -0
- package/dist/Editor.test.d.ts.map +1 -0
- package/dist/EventEmitter.d.ts +57 -0
- package/dist/EventEmitter.d.ts.map +1 -0
- package/dist/EventEmitter.test.d.ts +2 -0
- package/dist/EventEmitter.test.d.ts.map +1 -0
- package/dist/Extension.d.ts +171 -0
- package/dist/Extension.d.ts.map +1 -0
- package/dist/Extension.test.d.ts +2 -0
- package/dist/Extension.test.d.ts.map +1 -0
- package/dist/ExtensionManager.d.ts +283 -0
- package/dist/ExtensionManager.d.ts.map +1 -0
- package/dist/ExtensionManager.test.d.ts +2 -0
- package/dist/ExtensionManager.test.d.ts.map +1 -0
- package/dist/Mark.d.ts +164 -0
- package/dist/Mark.d.ts.map +1 -0
- package/dist/Mark.test.d.ts +5 -0
- package/dist/Mark.test.d.ts.map +1 -0
- package/dist/Node.d.ts +153 -0
- package/dist/Node.d.ts.map +1 -0
- package/dist/Node.test.d.ts +2 -0
- package/dist/Node.test.d.ts.map +1 -0
- package/dist/ToolbarController.d.ts +169 -0
- package/dist/ToolbarController.d.ts.map +1 -0
- package/dist/ToolbarController.test.d.ts +2 -0
- package/dist/ToolbarController.test.d.ts.map +1 -0
- package/dist/commandPropsBuilder.d.ts +70 -0
- package/dist/commandPropsBuilder.d.ts.map +1 -0
- package/dist/commandPropsBuilder.test.d.ts +2 -0
- package/dist/commandPropsBuilder.test.d.ts.map +1 -0
- package/dist/commands/attributeCommands.d.ts +24 -0
- package/dist/commands/attributeCommands.d.ts.map +1 -0
- package/dist/commands/attributeCommands.test.d.ts +2 -0
- package/dist/commands/attributeCommands.test.d.ts.map +1 -0
- package/dist/commands/builtIn.test.d.ts +2 -0
- package/dist/commands/builtIn.test.d.ts.map +1 -0
- package/dist/commands/contentCommands.d.ts +52 -0
- package/dist/commands/contentCommands.d.ts.map +1 -0
- package/dist/commands/contentCommands.test.d.ts +2 -0
- package/dist/commands/contentCommands.test.d.ts.map +1 -0
- package/dist/commands/index.d.ts +43 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/listCommands.d.ts +15 -0
- package/dist/commands/listCommands.d.ts.map +1 -0
- package/dist/commands/listCommands.test.d.ts +2 -0
- package/dist/commands/listCommands.test.d.ts.map +1 -0
- package/dist/commands/markCommands.d.ts +40 -0
- package/dist/commands/markCommands.d.ts.map +1 -0
- package/dist/commands/markCommands.test.d.ts +2 -0
- package/dist/commands/markCommands.test.d.ts.map +1 -0
- package/dist/commands/nodeCommands.d.ts +53 -0
- package/dist/commands/nodeCommands.d.ts.map +1 -0
- package/dist/commands/nodeCommands.test.d.ts +2 -0
- package/dist/commands/nodeCommands.test.d.ts.map +1 -0
- package/dist/commands/selectionCommands.d.ts +37 -0
- package/dist/commands/selectionCommands.d.ts.map +1 -0
- package/dist/commands/selectionCommands.test.d.ts +2 -0
- package/dist/commands/selectionCommands.test.d.ts.map +1 -0
- package/dist/extensions/BaseKeymap.d.ts +36 -0
- package/dist/extensions/BaseKeymap.d.ts.map +1 -0
- package/dist/extensions/BaseKeymap.test.d.ts +2 -0
- package/dist/extensions/BaseKeymap.test.d.ts.map +1 -0
- package/dist/extensions/BubbleMenu.d.ts +85 -0
- package/dist/extensions/BubbleMenu.d.ts.map +1 -0
- package/dist/extensions/BubbleMenu.test.d.ts +2 -0
- package/dist/extensions/BubbleMenu.test.d.ts.map +1 -0
- package/dist/extensions/CharacterCount.d.ts +60 -0
- package/dist/extensions/CharacterCount.d.ts.map +1 -0
- package/dist/extensions/CharacterCount.test.d.ts +2 -0
- package/dist/extensions/CharacterCount.test.d.ts.map +1 -0
- package/dist/extensions/ClearFormatting.d.ts +25 -0
- package/dist/extensions/ClearFormatting.d.ts.map +1 -0
- package/dist/extensions/ClearFormatting.test.d.ts +2 -0
- package/dist/extensions/ClearFormatting.test.d.ts.map +1 -0
- package/dist/extensions/Dropcursor.d.ts +20 -0
- package/dist/extensions/Dropcursor.d.ts.map +1 -0
- package/dist/extensions/Dropcursor.test.d.ts +2 -0
- package/dist/extensions/Dropcursor.test.d.ts.map +1 -0
- package/dist/extensions/FloatingMenu.d.ts +74 -0
- package/dist/extensions/FloatingMenu.d.ts.map +1 -0
- package/dist/extensions/FloatingMenu.test.d.ts +2 -0
- package/dist/extensions/FloatingMenu.test.d.ts.map +1 -0
- package/dist/extensions/Focus.d.ts +26 -0
- package/dist/extensions/Focus.d.ts.map +1 -0
- package/dist/extensions/Focus.test.d.ts +2 -0
- package/dist/extensions/Focus.test.d.ts.map +1 -0
- package/dist/extensions/FontFamily.d.ts +41 -0
- package/dist/extensions/FontFamily.d.ts.map +1 -0
- package/dist/extensions/FontFamily.test.d.ts +2 -0
- package/dist/extensions/FontFamily.test.d.ts.map +1 -0
- package/dist/extensions/FontSize.d.ts +46 -0
- package/dist/extensions/FontSize.d.ts.map +1 -0
- package/dist/extensions/FontSize.test.d.ts +2 -0
- package/dist/extensions/FontSize.test.d.ts.map +1 -0
- package/dist/extensions/Gapcursor.d.ts +3 -0
- package/dist/extensions/Gapcursor.d.ts.map +1 -0
- package/dist/extensions/Gapcursor.test.d.ts +2 -0
- package/dist/extensions/Gapcursor.test.d.ts.map +1 -0
- package/dist/extensions/Highlight.d.ts +61 -0
- package/dist/extensions/Highlight.d.ts.map +1 -0
- package/dist/extensions/Highlight.test.d.ts +2 -0
- package/dist/extensions/Highlight.test.d.ts.map +1 -0
- package/dist/extensions/History.d.ts +22 -0
- package/dist/extensions/History.d.ts.map +1 -0
- package/dist/extensions/History.test.d.ts +2 -0
- package/dist/extensions/History.test.d.ts.map +1 -0
- package/dist/extensions/InvisibleChars.d.ts +86 -0
- package/dist/extensions/InvisibleChars.d.ts.map +1 -0
- package/dist/extensions/InvisibleChars.test.d.ts +2 -0
- package/dist/extensions/InvisibleChars.test.d.ts.map +1 -0
- package/dist/extensions/LineHeight.d.ts +50 -0
- package/dist/extensions/LineHeight.d.ts.map +1 -0
- package/dist/extensions/LineHeight.test.d.ts +2 -0
- package/dist/extensions/LineHeight.test.d.ts.map +1 -0
- package/dist/extensions/LinkPopover.d.ts +10 -0
- package/dist/extensions/LinkPopover.d.ts.map +1 -0
- package/dist/extensions/ListKeymap.d.ts +10 -0
- package/dist/extensions/ListKeymap.d.ts.map +1 -0
- package/dist/extensions/ListKeymap.test.d.ts +2 -0
- package/dist/extensions/ListKeymap.test.d.ts.map +1 -0
- package/dist/extensions/Placeholder.d.ts +47 -0
- package/dist/extensions/Placeholder.d.ts.map +1 -0
- package/dist/extensions/Placeholder.test.d.ts +2 -0
- package/dist/extensions/Placeholder.test.d.ts.map +1 -0
- package/dist/extensions/Selection.d.ts +71 -0
- package/dist/extensions/Selection.d.ts.map +1 -0
- package/dist/extensions/Selection.test.d.ts +2 -0
- package/dist/extensions/Selection.test.d.ts.map +1 -0
- package/dist/extensions/SelectionDecoration.d.ts +18 -0
- package/dist/extensions/SelectionDecoration.d.ts.map +1 -0
- package/dist/extensions/SelectionDecoration.test.d.ts +2 -0
- package/dist/extensions/SelectionDecoration.test.d.ts.map +1 -0
- package/dist/extensions/StarterKit.d.ts +144 -0
- package/dist/extensions/StarterKit.d.ts.map +1 -0
- package/dist/extensions/StarterKit.test.d.ts +2 -0
- package/dist/extensions/StarterKit.test.d.ts.map +1 -0
- package/dist/extensions/TextAlign.d.ts +32 -0
- package/dist/extensions/TextAlign.d.ts.map +1 -0
- package/dist/extensions/TextAlign.test.d.ts +2 -0
- package/dist/extensions/TextAlign.test.d.ts.map +1 -0
- package/dist/extensions/TextColor.d.ts +55 -0
- package/dist/extensions/TextColor.d.ts.map +1 -0
- package/dist/extensions/TextColor.test.d.ts +2 -0
- package/dist/extensions/TextColor.test.d.ts.map +1 -0
- package/dist/extensions/TrailingNode.d.ts +16 -0
- package/dist/extensions/TrailingNode.d.ts.map +1 -0
- package/dist/extensions/TrailingNode.test.d.ts +2 -0
- package/dist/extensions/TrailingNode.test.d.ts.map +1 -0
- package/dist/extensions/Typography.d.ts +65 -0
- package/dist/extensions/Typography.d.ts.map +1 -0
- package/dist/extensions/Typography.test.d.ts +2 -0
- package/dist/extensions/Typography.test.d.ts.map +1 -0
- package/dist/extensions/UniqueID.d.ts +48 -0
- package/dist/extensions/UniqueID.d.ts.map +1 -0
- package/dist/extensions/UniqueID.test.d.ts +2 -0
- package/dist/extensions/UniqueID.test.d.ts.map +1 -0
- package/dist/extensions/index.d.ts +29 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/isActive-markExclusion.test.d.ts +2 -0
- package/dist/extensions/isActive-markExclusion.test.d.ts.map +1 -0
- package/dist/helpers/callOrReturn.d.ts +30 -0
- package/dist/helpers/callOrReturn.d.ts.map +1 -0
- package/dist/helpers/callOrReturn.test.d.ts +2 -0
- package/dist/helpers/callOrReturn.test.d.ts.map +1 -0
- package/dist/helpers/createDocument.d.ts +48 -0
- package/dist/helpers/createDocument.d.ts.map +1 -0
- package/dist/helpers/createDocument.test.d.ts +2 -0
- package/dist/helpers/createDocument.test.d.ts.map +1 -0
- package/dist/helpers/defaultBlockAt.d.ts +15 -0
- package/dist/helpers/defaultBlockAt.d.ts.map +1 -0
- package/dist/helpers/defaultBlockAt.test.d.ts +2 -0
- package/dist/helpers/defaultBlockAt.test.d.ts.map +1 -0
- package/dist/helpers/findChildren.d.ts +13 -0
- package/dist/helpers/findChildren.d.ts.map +1 -0
- package/dist/helpers/findChildren.test.d.ts +2 -0
- package/dist/helpers/findChildren.test.d.ts.map +1 -0
- package/dist/helpers/findParentNode.d.ts +21 -0
- package/dist/helpers/findParentNode.d.ts.map +1 -0
- package/dist/helpers/findParentNode.test.d.ts +2 -0
- package/dist/helpers/findParentNode.test.d.ts.map +1 -0
- package/dist/helpers/getMarkRange.d.ts +17 -0
- package/dist/helpers/getMarkRange.d.ts.map +1 -0
- package/dist/helpers/getMarkRange.test.d.ts +2 -0
- package/dist/helpers/getMarkRange.test.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +18 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/inputRulesPlugin.d.ts +26 -0
- package/dist/helpers/inputRulesPlugin.d.ts.map +1 -0
- package/dist/helpers/isNodeEmpty.d.ts +52 -0
- package/dist/helpers/isNodeEmpty.d.ts.map +1 -0
- package/dist/helpers/isNodeEmpty.test.d.ts +2 -0
- package/dist/helpers/isNodeEmpty.test.d.ts.map +1 -0
- package/dist/helpers/isValidUrl.d.ts +31 -0
- package/dist/helpers/isValidUrl.d.ts.map +1 -0
- package/dist/helpers/isValidUrl.test.d.ts +2 -0
- package/dist/helpers/isValidUrl.test.d.ts.map +1 -0
- package/dist/helpers/markInputRule.d.ts +88 -0
- package/dist/helpers/markInputRule.d.ts.map +1 -0
- package/dist/helpers/markInputRule.test.d.ts +2 -0
- package/dist/helpers/markInputRule.test.d.ts.map +1 -0
- package/dist/helpers/nodeInputRule.d.ts +41 -0
- package/dist/helpers/nodeInputRule.d.ts.map +1 -0
- package/dist/helpers/normalizeColor.d.ts +7 -0
- package/dist/helpers/normalizeColor.d.ts.map +1 -0
- package/dist/helpers/normalizeColor.test.d.ts +2 -0
- package/dist/helpers/normalizeColor.test.d.ts.map +1 -0
- package/dist/helpers/specBuilder.d.ts +28 -0
- package/dist/helpers/specBuilder.d.ts.map +1 -0
- package/dist/helpers/specBuilder.test.d.ts +2 -0
- package/dist/helpers/specBuilder.test.d.ts.map +1 -0
- package/dist/helpers/ssr.d.ts +80 -0
- package/dist/helpers/ssr.d.ts.map +1 -0
- package/dist/helpers/ssr.test.d.ts +2 -0
- package/dist/helpers/ssr.test.d.ts.map +1 -0
- package/dist/helpers/textInputRule.d.ts +34 -0
- package/dist/helpers/textInputRule.d.ts.map +1 -0
- package/dist/helpers/textblockTypeInputRule.d.ts +41 -0
- package/dist/helpers/textblockTypeInputRule.d.ts.map +1 -0
- package/dist/helpers/wrappingInputRule.d.ts +66 -0
- package/dist/helpers/wrappingInputRule.d.ts.map +1 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/phosphor.d.ts +3 -0
- package/dist/icons/phosphor.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +23 -5844
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/marks/Bold.d.ts +40 -0
- package/dist/marks/Bold.d.ts.map +1 -0
- package/dist/marks/Bold.test.d.ts +2 -0
- package/dist/marks/Bold.test.d.ts.map +1 -0
- package/dist/marks/Code.d.ts +40 -0
- package/dist/marks/Code.d.ts.map +1 -0
- package/dist/marks/Code.test.d.ts +2 -0
- package/dist/marks/Code.test.d.ts.map +1 -0
- package/dist/marks/Italic.d.ts +40 -0
- package/dist/marks/Italic.d.ts.map +1 -0
- package/dist/marks/Italic.test.d.ts +2 -0
- package/dist/marks/Italic.test.d.ts.map +1 -0
- package/dist/marks/Link.d.ts +75 -0
- package/dist/marks/Link.d.ts.map +1 -0
- package/dist/marks/Link.test.d.ts +2 -0
- package/dist/marks/Link.test.d.ts.map +1 -0
- package/dist/marks/Strike.d.ts +39 -0
- package/dist/marks/Strike.d.ts.map +1 -0
- package/dist/marks/Strike.test.d.ts +2 -0
- package/dist/marks/Strike.test.d.ts.map +1 -0
- package/dist/marks/Subscript.d.ts +38 -0
- package/dist/marks/Subscript.d.ts.map +1 -0
- package/dist/marks/Subscript.test.d.ts +2 -0
- package/dist/marks/Subscript.test.d.ts.map +1 -0
- package/dist/marks/Superscript.d.ts +38 -0
- package/dist/marks/Superscript.d.ts.map +1 -0
- package/dist/marks/Superscript.test.d.ts +2 -0
- package/dist/marks/Superscript.test.d.ts.map +1 -0
- package/dist/marks/TextStyle.d.ts +41 -0
- package/dist/marks/TextStyle.d.ts.map +1 -0
- package/dist/marks/TextStyle.test.d.ts +2 -0
- package/dist/marks/TextStyle.test.d.ts.map +1 -0
- package/dist/marks/Underline.d.ts +38 -0
- package/dist/marks/Underline.d.ts.map +1 -0
- package/dist/marks/Underline.test.d.ts +2 -0
- package/dist/marks/Underline.test.d.ts.map +1 -0
- package/dist/marks/helpers/autolinkPlugin.d.ts +48 -0
- package/dist/marks/helpers/autolinkPlugin.d.ts.map +1 -0
- package/dist/marks/helpers/autolinkPlugin.test.d.ts +2 -0
- package/dist/marks/helpers/autolinkPlugin.test.d.ts.map +1 -0
- package/dist/marks/helpers/index.d.ts +10 -0
- package/dist/marks/helpers/index.d.ts.map +1 -0
- package/dist/marks/helpers/linkClickPlugin.d.ts +43 -0
- package/dist/marks/helpers/linkClickPlugin.d.ts.map +1 -0
- package/dist/marks/helpers/linkClickPlugin.test.d.ts +2 -0
- package/dist/marks/helpers/linkClickPlugin.test.d.ts.map +1 -0
- package/dist/marks/helpers/linkExitPlugin.d.ts +37 -0
- package/dist/marks/helpers/linkExitPlugin.d.ts.map +1 -0
- package/dist/marks/helpers/linkExitPlugin.test.d.ts +2 -0
- package/dist/marks/helpers/linkExitPlugin.test.d.ts.map +1 -0
- package/dist/marks/helpers/linkPastePlugin.d.ts +44 -0
- package/dist/marks/helpers/linkPastePlugin.d.ts.map +1 -0
- package/dist/marks/helpers/linkPastePlugin.test.d.ts +2 -0
- package/dist/marks/helpers/linkPastePlugin.test.d.ts.map +1 -0
- package/dist/marks/index.d.ts +16 -0
- package/dist/marks/index.d.ts.map +1 -0
- package/dist/nodes/Blockquote.d.ts +19 -0
- package/dist/nodes/Blockquote.d.ts.map +1 -0
- package/dist/nodes/Blockquote.test.d.ts +2 -0
- package/dist/nodes/Blockquote.test.d.ts.map +1 -0
- package/dist/nodes/BulletList.d.ts +18 -0
- package/dist/nodes/BulletList.d.ts.map +1 -0
- package/dist/nodes/BulletList.test.d.ts +2 -0
- package/dist/nodes/BulletList.test.d.ts.map +1 -0
- package/dist/nodes/CodeBlock.d.ts +29 -0
- package/dist/nodes/CodeBlock.d.ts.map +1 -0
- package/dist/nodes/CodeBlock.test.d.ts +2 -0
- package/dist/nodes/CodeBlock.test.d.ts.map +1 -0
- package/dist/nodes/Document.d.ts +9 -0
- package/dist/nodes/Document.d.ts.map +1 -0
- package/dist/nodes/Document.test.d.ts +2 -0
- package/dist/nodes/Document.test.d.ts.map +1 -0
- package/dist/nodes/HardBreak.d.ts +18 -0
- package/dist/nodes/HardBreak.d.ts.map +1 -0
- package/dist/nodes/HardBreak.test.d.ts +2 -0
- package/dist/nodes/HardBreak.test.d.ts.map +1 -0
- package/dist/nodes/Heading.d.ts +23 -0
- package/dist/nodes/Heading.d.ts.map +1 -0
- package/dist/nodes/Heading.test.d.ts +2 -0
- package/dist/nodes/Heading.test.d.ts.map +1 -0
- package/dist/nodes/HorizontalRule.d.ts +17 -0
- package/dist/nodes/HorizontalRule.d.ts.map +1 -0
- package/dist/nodes/HorizontalRule.test.d.ts +2 -0
- package/dist/nodes/HorizontalRule.test.d.ts.map +1 -0
- package/dist/nodes/ListItem.d.ts +16 -0
- package/dist/nodes/ListItem.d.ts.map +1 -0
- package/dist/nodes/ListItem.test.d.ts +2 -0
- package/dist/nodes/ListItem.test.d.ts.map +1 -0
- package/dist/nodes/OrderedList.d.ts +18 -0
- package/dist/nodes/OrderedList.d.ts.map +1 -0
- package/dist/nodes/OrderedList.test.d.ts +2 -0
- package/dist/nodes/OrderedList.test.d.ts.map +1 -0
- package/dist/nodes/Paragraph.d.ts +17 -0
- package/dist/nodes/Paragraph.d.ts.map +1 -0
- package/dist/nodes/Paragraph.test.d.ts +2 -0
- package/dist/nodes/Paragraph.test.d.ts.map +1 -0
- package/dist/nodes/TaskItem.d.ts +24 -0
- package/dist/nodes/TaskItem.d.ts.map +1 -0
- package/dist/nodes/TaskItem.test.d.ts +2 -0
- package/dist/nodes/TaskItem.test.d.ts.map +1 -0
- package/dist/nodes/TaskList.d.ts +18 -0
- package/dist/nodes/TaskList.d.ts.map +1 -0
- package/dist/nodes/TaskList.test.d.ts +2 -0
- package/dist/nodes/TaskList.test.d.ts.map +1 -0
- package/dist/nodes/Text.d.ts +9 -0
- package/dist/nodes/Text.d.ts.map +1 -0
- package/dist/nodes/Text.test.d.ts +2 -0
- package/dist/nodes/Text.test.d.ts.map +1 -0
- package/dist/nodes/index.d.ts +19 -0
- package/dist/nodes/index.d.ts.map +1 -0
- package/dist/nodes/integration.test.d.ts +7 -0
- package/dist/nodes/integration.test.d.ts.map +1 -0
- package/dist/types/AttributeSpec.d.ts +78 -0
- package/dist/types/AttributeSpec.d.ts.map +1 -0
- package/dist/types/Commands.d.ts +125 -0
- package/dist/types/Commands.d.ts.map +1 -0
- package/dist/types/Content.d.ts +40 -0
- package/dist/types/Content.d.ts.map +1 -0
- package/dist/types/EditorEvents.d.ts +131 -0
- package/dist/types/EditorEvents.d.ts.map +1 -0
- package/dist/types/EditorOptions.d.ts +139 -0
- package/dist/types/EditorOptions.d.ts.map +1 -0
- package/dist/types/ExtensionConfig.d.ts +271 -0
- package/dist/types/ExtensionConfig.d.ts.map +1 -0
- package/dist/types/MarkConfig.d.ts +206 -0
- package/dist/types/MarkConfig.d.ts.map +1 -0
- package/dist/types/NodeConfig.d.ts +263 -0
- package/dist/types/NodeConfig.d.ts.map +1 -0
- package/dist/types/Toolbar.d.ts +172 -0
- package/dist/types/Toolbar.d.ts.map +1 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/inlineStyles.d.ts +83 -0
- package/dist/utils/inlineStyles.d.ts.map +1 -0
- package/dist/utils/inlineStyles.test.d.ts +2 -0
- package/dist/utils/inlineStyles.test.d.ts.map +1 -0
- package/dist/utils/positionFloating.d.ts +74 -0
- package/dist/utils/positionFloating.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link Exit Plugin
|
|
3
|
+
*
|
|
4
|
+
* Allows users to "exit" a link mark by pressing ArrowRight at the
|
|
5
|
+
* end of the link. After exiting, newly typed text will not have
|
|
6
|
+
* the link mark applied.
|
|
7
|
+
*
|
|
8
|
+
* Enabled when the Link mark has `exitable: true` configured.
|
|
9
|
+
*/
|
|
10
|
+
import { Plugin, PluginKey } from '@domternal/pm/state';
|
|
11
|
+
import type { MarkType } from '@domternal/pm/model';
|
|
12
|
+
/**
|
|
13
|
+
* Options for the link exit plugin
|
|
14
|
+
*/
|
|
15
|
+
export interface LinkExitPluginOptions {
|
|
16
|
+
/**
|
|
17
|
+
* The link mark type
|
|
18
|
+
*/
|
|
19
|
+
type: MarkType;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Plugin key for link exit plugin
|
|
23
|
+
*/
|
|
24
|
+
export declare const linkExitPluginKey: PluginKey<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a plugin that allows exiting a link mark with ArrowRight.
|
|
27
|
+
*
|
|
28
|
+
* When the cursor is at the end boundary of a link mark (the next
|
|
29
|
+
* character has no link mark, or there is no next character), pressing
|
|
30
|
+
* ArrowRight will set storedMarks to exclude the link mark. This means
|
|
31
|
+
* any text typed after will not be linked.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Plugin options
|
|
34
|
+
* @returns ProseMirror Plugin
|
|
35
|
+
*/
|
|
36
|
+
export declare function linkExitPlugin(options: LinkExitPluginOptions): Plugin;
|
|
37
|
+
//# sourceMappingURL=linkExitPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkExitPlugin.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/linkExitPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAiB,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,gBAA4B,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAkDrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkExitPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/linkExitPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link Paste Plugin
|
|
3
|
+
*
|
|
4
|
+
* Handles pasting URLs:
|
|
5
|
+
* - If text is selected: wraps selection in a link
|
|
6
|
+
* - If no selection: inserts URL as clickable link text
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, PluginKey } from '@domternal/pm/state';
|
|
9
|
+
import type { MarkType } from '@domternal/pm/model';
|
|
10
|
+
/**
|
|
11
|
+
* Options for the link paste plugin
|
|
12
|
+
*/
|
|
13
|
+
export interface LinkPastePluginOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The link mark type
|
|
16
|
+
*/
|
|
17
|
+
type: MarkType;
|
|
18
|
+
/**
|
|
19
|
+
* Allowed URL protocols
|
|
20
|
+
* @default ['http:', 'https:']
|
|
21
|
+
*/
|
|
22
|
+
protocols?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Custom URL validation function
|
|
25
|
+
* Return false to prevent linking specific URLs
|
|
26
|
+
*/
|
|
27
|
+
validate?: (url: string) => boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Plugin key for link paste plugin
|
|
31
|
+
*/
|
|
32
|
+
export declare const linkPastePluginKey: PluginKey<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a plugin that handles pasting URLs.
|
|
35
|
+
*
|
|
36
|
+
* Behavior:
|
|
37
|
+
* - Text selected + paste URL = wrap selection in link
|
|
38
|
+
* - No selection + paste URL = insert URL as link
|
|
39
|
+
*
|
|
40
|
+
* @param options - Plugin options
|
|
41
|
+
* @returns ProseMirror Plugin
|
|
42
|
+
*/
|
|
43
|
+
export declare function linkPastePlugin(options: LinkPastePluginOptions): Plugin;
|
|
44
|
+
//# sourceMappingURL=linkPastePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkPastePlugin.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/linkPastePlugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,gBAA6B,CAAC;AAE7D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAgDvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkPastePlugin.test.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/linkPastePlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mark extensions for @domternal/core
|
|
3
|
+
*
|
|
4
|
+
* Marks define inline formatting that can be applied to text.
|
|
5
|
+
*/
|
|
6
|
+
export { Bold, type BoldOptions } from './Bold.js';
|
|
7
|
+
export { Italic, type ItalicOptions } from './Italic.js';
|
|
8
|
+
export { Underline, type UnderlineOptions } from './Underline.js';
|
|
9
|
+
export { Strike, type StrikeOptions } from './Strike.js';
|
|
10
|
+
export { Code, type CodeOptions } from './Code.js';
|
|
11
|
+
export { Link, type LinkOptions, type LinkAttributes } from './Link.js';
|
|
12
|
+
export { Subscript, type SubscriptOptions } from './Subscript.js';
|
|
13
|
+
export { Superscript, type SuperscriptOptions } from './Superscript.js';
|
|
14
|
+
export { TextStyle, type TextStyleOptions } from './TextStyle.js';
|
|
15
|
+
export { linkClickPlugin, linkClickPluginKey, type LinkClickPluginOptions, linkPastePlugin, linkPastePluginKey, type LinkPastePluginOptions, autolinkPlugin, autolinkPluginKey, type AutolinkPluginOptions, linkExitPlugin, linkExitPluginKey, type LinkExitPluginOptions, } from './helpers/index.js';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/marks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlE,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,eAAe,EACf,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,cAAc,EACd,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,cAAc,EACd,iBAAiB,EACjB,KAAK,qBAAqB,GAC3B,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blockquote Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level quote container that can hold other blocks.
|
|
5
|
+
* Supports nested blockquotes and markdown-style input rule.
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
setBlockquote: CommandSpec;
|
|
11
|
+
toggleBlockquote: CommandSpec;
|
|
12
|
+
unsetBlockquote: CommandSpec;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export interface BlockquoteOptions {
|
|
16
|
+
HTMLAttributes: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
export declare const Blockquote: Node<BlockquoteOptions, unknown>;
|
|
19
|
+
//# sourceMappingURL=Blockquote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockquote.d.ts","sourceRoot":"","sources":["../../src/nodes/Blockquote.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,aAAa,EAAE,WAAW,CAAC;QAC3B,gBAAgB,EAAE,WAAW,CAAC;QAC9B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,UAAU,kCA6ErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockquote.test.d.ts","sourceRoot":"","sources":["../../src/nodes/Blockquote.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BulletList Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level unordered list container.
|
|
5
|
+
* Supports markdown-style input rules and keyboard shortcuts.
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
toggleBulletList: CommandSpec;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface BulletListOptions {
|
|
14
|
+
HTMLAttributes: Record<string, unknown>;
|
|
15
|
+
itemTypeName: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const BulletList: Node<BulletListOptions, unknown>;
|
|
18
|
+
//# sourceMappingURL=BulletList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulletList.d.ts","sourceRoot":"","sources":["../../src/nodes/BulletList.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,gBAAgB,EAAE,WAAW,CAAC;KAC/B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,kCA4ErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulletList.test.d.ts","sourceRoot":"","sources":["../../src/nodes/BulletList.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeBlock Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level code container with syntax highlighting support.
|
|
5
|
+
* Preserves whitespace and disallows marks.
|
|
6
|
+
*
|
|
7
|
+
* Keyboard shortcuts:
|
|
8
|
+
* - Mod-Alt-C: Toggle code block
|
|
9
|
+
* - Enter (triple): Exit code block when last 2 lines are empty
|
|
10
|
+
* - ArrowDown: Exit code block when cursor is at the end and it's the last block
|
|
11
|
+
*/
|
|
12
|
+
import { Node } from '../Node.js';
|
|
13
|
+
declare module '../types/Commands.js' {
|
|
14
|
+
interface RawCommands {
|
|
15
|
+
setCodeBlock: CommandSpec<[attributes?: {
|
|
16
|
+
language?: string;
|
|
17
|
+
}]>;
|
|
18
|
+
toggleCodeBlock: CommandSpec<[attributes?: {
|
|
19
|
+
language?: string;
|
|
20
|
+
}]>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export interface CodeBlockOptions {
|
|
24
|
+
languageClassPrefix: string;
|
|
25
|
+
HTMLAttributes: Record<string, unknown>;
|
|
26
|
+
exitOnTripleEnter: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const CodeBlock: Node<CodeBlockOptions, unknown>;
|
|
29
|
+
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../src/nodes/CodeBlock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,UAAU,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC,CAAC;QAChE,eAAe,EAAE,WAAW,CAAC,CAAC,UAAU,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC,CAAC;KACpE;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,iCAgKpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.test.d.ts","sourceRoot":"","sources":["../../src/nodes/CodeBlock.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../src/nodes/Document.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAO,MAAM,QAAQ,wBAInB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Document.test.d.ts","sourceRoot":"","sources":["../../src/nodes/Document.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HardBreak Node
|
|
3
|
+
*
|
|
4
|
+
* Inline line break element (br).
|
|
5
|
+
* Keyboard shortcuts: Mod-Enter, Shift-Enter
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
setHardBreak: CommandSpec;
|
|
11
|
+
insertNbsp: CommandSpec;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface HardBreakOptions {
|
|
15
|
+
HTMLAttributes: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export declare const HardBreak: Node<HardBreakOptions, unknown>;
|
|
18
|
+
//# sourceMappingURL=HardBreak.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HardBreak.d.ts","sourceRoot":"","sources":["../../src/nodes/HardBreak.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC;QAC1B,UAAU,EAAE,WAAW,CAAC;KACzB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,iCAqEpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HardBreak.test.d.ts","sourceRoot":"","sources":["../../src/nodes/HardBreak.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Heading Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level heading elements (h1-h6).
|
|
5
|
+
* Supports configurable levels and markdown-style input rules.
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
setHeading: CommandSpec<[attributes?: {
|
|
11
|
+
level?: number;
|
|
12
|
+
}]>;
|
|
13
|
+
toggleHeading: CommandSpec<[attributes?: {
|
|
14
|
+
level?: number;
|
|
15
|
+
}]>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface HeadingOptions {
|
|
19
|
+
levels: number[];
|
|
20
|
+
HTMLAttributes: Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export declare const Heading: Node<HeadingOptions, unknown>;
|
|
23
|
+
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/nodes/Heading.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAQlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,UAAU,EAAE,WAAW,CAAC,CAAC,UAAU,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC,CAAC;QAC3D,aAAa,EAAE,WAAW,CAAC,CAAC,UAAU,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC,CAAC;KAC/D;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,OAAO,+BAkNlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.test.d.ts","sourceRoot":"","sources":["../../src/nodes/Heading.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HorizontalRule Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level thematic break element (hr).
|
|
5
|
+
* Supports markdown-style input rules: ---, ***, ___
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
setHorizontalRule: CommandSpec;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface HorizontalRuleOptions {
|
|
14
|
+
HTMLAttributes: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export declare const HorizontalRule: Node<HorizontalRuleOptions, unknown>;
|
|
17
|
+
//# sourceMappingURL=HorizontalRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalRule.d.ts","sourceRoot":"","sources":["../../src/nodes/HorizontalRule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAOlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,iBAAiB,EAAE,WAAW,CAAC;KAChC;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,sCAuHzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalRule.test.d.ts","sourceRoot":"","sources":["../../src/nodes/HorizontalRule.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListItem Node
|
|
3
|
+
*
|
|
4
|
+
* Individual list item that can contain paragraphs and nested blocks.
|
|
5
|
+
* Used by BulletList and OrderedList.
|
|
6
|
+
*
|
|
7
|
+
* Keyboard shortcuts:
|
|
8
|
+
* - Enter: Split list item at cursor, or lift out of list if item is empty
|
|
9
|
+
* - Tab/Shift-Tab: Handled by ListKeymap extension (included via addExtensions)
|
|
10
|
+
*/
|
|
11
|
+
import { Node } from '../Node.js';
|
|
12
|
+
export interface ListItemOptions {
|
|
13
|
+
HTMLAttributes: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export declare const ListItem: Node<ListItemOptions, unknown>;
|
|
16
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../src/nodes/ListItem.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,QAAQ,gCA4DnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.test.d.ts","sourceRoot":"","sources":["../../src/nodes/ListItem.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrderedList Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level ordered (numbered) list container.
|
|
5
|
+
* Supports start attribute and markdown-style input rules.
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
toggleOrderedList: CommandSpec;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface OrderedListOptions {
|
|
14
|
+
HTMLAttributes: Record<string, unknown>;
|
|
15
|
+
itemTypeName: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const OrderedList: Node<OrderedListOptions, unknown>;
|
|
18
|
+
//# sourceMappingURL=OrderedList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderedList.d.ts","sourceRoot":"","sources":["../../src/nodes/OrderedList.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,iBAAiB,EAAE,WAAW,CAAC;KAChC;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,mCAmGtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderedList.test.d.ts","sourceRoot":"","sources":["../../src/nodes/OrderedList.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paragraph Node
|
|
3
|
+
*
|
|
4
|
+
* The default block-level text container.
|
|
5
|
+
* Contains inline content (text and inline nodes).
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
setParagraph: CommandSpec;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface ParagraphOptions {
|
|
14
|
+
HTMLAttributes: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export declare const Paragraph: Node<ParagraphOptions, unknown>;
|
|
17
|
+
//# sourceMappingURL=Paragraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../src/nodes/Paragraph.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,iCAuCpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.test.d.ts","sourceRoot":"","sources":["../../src/nodes/Paragraph.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TaskItem Node
|
|
3
|
+
*
|
|
4
|
+
* Individual task/checkbox item that can contain paragraphs and nested blocks.
|
|
5
|
+
* Used by TaskList.
|
|
6
|
+
*
|
|
7
|
+
* Keyboard shortcuts:
|
|
8
|
+
* - Enter: Split task item at cursor
|
|
9
|
+
* - Tab: Sink (indent) task item
|
|
10
|
+
* - Shift-Tab: Lift (outdent) task item
|
|
11
|
+
* - Mod-Enter: Toggle task checked state
|
|
12
|
+
*/
|
|
13
|
+
import { Node } from '../Node.js';
|
|
14
|
+
declare module '../types/Commands.js' {
|
|
15
|
+
interface RawCommands {
|
|
16
|
+
toggleTask: CommandSpec;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export interface TaskItemOptions {
|
|
20
|
+
HTMLAttributes: Record<string, unknown>;
|
|
21
|
+
nested: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const TaskItem: Node<TaskItemOptions, unknown>;
|
|
24
|
+
//# sourceMappingURL=TaskItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskItem.d.ts","sourceRoot":"","sources":["../../src/nodes/TaskItem.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,UAAU,EAAE,WAAW,CAAC;KACzB;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,gCAuLnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskItem.test.d.ts","sourceRoot":"","sources":["../../src/nodes/TaskItem.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TaskList Node
|
|
3
|
+
*
|
|
4
|
+
* Block-level task/checkbox list container.
|
|
5
|
+
* Supports markdown-style input rules with `[ ]` and `[x]`.
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
declare module '../types/Commands.js' {
|
|
9
|
+
interface RawCommands {
|
|
10
|
+
toggleTaskList: CommandSpec;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface TaskListOptions {
|
|
14
|
+
HTMLAttributes: Record<string, unknown>;
|
|
15
|
+
itemTypeName: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const TaskList: Node<TaskListOptions, unknown>;
|
|
18
|
+
//# sourceMappingURL=TaskList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskList.d.ts","sourceRoot":"","sources":["../../src/nodes/TaskList.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMlC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,gCAuFnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskList.test.d.ts","sourceRoot":"","sources":["../../src/nodes/TaskList.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text Node
|
|
3
|
+
*
|
|
4
|
+
* Inline text content. Can hold marks (bold, italic, etc.).
|
|
5
|
+
* This is the leaf node that contains actual text content.
|
|
6
|
+
*/
|
|
7
|
+
import { Node } from '../Node.js';
|
|
8
|
+
export declare const Text: Node<unknown, unknown>;
|
|
9
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/nodes/Text.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAO,MAAM,IAAI,wBAGf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.test.d.ts","sourceRoot":"","sources":["../../src/nodes/Text.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node Extensions
|
|
3
|
+
*
|
|
4
|
+
* Pre-built node types for common document structures.
|
|
5
|
+
*/
|
|
6
|
+
export { Document } from './Document.js';
|
|
7
|
+
export { Text } from './Text.js';
|
|
8
|
+
export { Paragraph, type ParagraphOptions } from './Paragraph.js';
|
|
9
|
+
export { Heading, type HeadingOptions } from './Heading.js';
|
|
10
|
+
export { Blockquote, type BlockquoteOptions } from './Blockquote.js';
|
|
11
|
+
export { CodeBlock, type CodeBlockOptions } from './CodeBlock.js';
|
|
12
|
+
export { BulletList, type BulletListOptions } from './BulletList.js';
|
|
13
|
+
export { OrderedList, type OrderedListOptions } from './OrderedList.js';
|
|
14
|
+
export { ListItem, type ListItemOptions } from './ListItem.js';
|
|
15
|
+
export { HorizontalRule, type HorizontalRuleOptions } from './HorizontalRule.js';
|
|
16
|
+
export { HardBreak, type HardBreakOptions } from './HardBreak.js';
|
|
17
|
+
export { TaskList, type TaskListOptions } from './TaskList.js';
|
|
18
|
+
export { TaskItem, type TaskItemOptions } from './TaskItem.js';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nodes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.test.d.ts","sourceRoot":"","sources":["../../src/nodes/integration.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|