@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bold Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies bold formatting to text. Supports multiple HTML tags
|
|
5
|
+
* and CSS font-weight styles.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { Bold } from '@domternal/core';
|
|
10
|
+
*
|
|
11
|
+
* const editor = new Editor({
|
|
12
|
+
* extensions: [Document, Paragraph, Text, Bold],
|
|
13
|
+
* });
|
|
14
|
+
*
|
|
15
|
+
* // Toggle bold with keyboard shortcut: Mod-b
|
|
16
|
+
* // Or use input rule: **text**
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import { Mark } from '../Mark.js';
|
|
20
|
+
/**
|
|
21
|
+
* Options for the Bold mark
|
|
22
|
+
*/
|
|
23
|
+
export interface BoldOptions {
|
|
24
|
+
/**
|
|
25
|
+
* HTML attributes to add to the rendered element
|
|
26
|
+
*/
|
|
27
|
+
HTMLAttributes: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Bold mark for text formatting
|
|
31
|
+
*/
|
|
32
|
+
export declare const Bold: Mark<BoldOptions, unknown>;
|
|
33
|
+
declare module '../types/Commands.js' {
|
|
34
|
+
interface RawCommands {
|
|
35
|
+
setBold: CommandSpec;
|
|
36
|
+
unsetBold: CommandSpec;
|
|
37
|
+
toggleBold: CommandSpec;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Bold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bold.d.ts","sourceRoot":"","sources":["../../src/marks/Bold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,4BAgGf,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,OAAO,EAAE,WAAW,CAAC;QACrB,SAAS,EAAE,WAAW,CAAC;QACvB,UAAU,EAAE,WAAW,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bold.test.d.ts","sourceRoot":"","sources":["../../src/marks/Bold.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies inline code formatting to text. This mark is exclusive,
|
|
5
|
+
* meaning it cannot be combined with other marks like bold or italic.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { Code } from '@domternal/core';
|
|
10
|
+
*
|
|
11
|
+
* const editor = new Editor({
|
|
12
|
+
* extensions: [Document, Paragraph, Text, Code],
|
|
13
|
+
* });
|
|
14
|
+
*
|
|
15
|
+
* // Toggle code with keyboard shortcut: Mod-e
|
|
16
|
+
* // Or use input rule: `text`
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import { Mark } from '../Mark.js';
|
|
20
|
+
/**
|
|
21
|
+
* Options for the Code mark
|
|
22
|
+
*/
|
|
23
|
+
export interface CodeOptions {
|
|
24
|
+
/**
|
|
25
|
+
* HTML attributes to add to the rendered element
|
|
26
|
+
*/
|
|
27
|
+
HTMLAttributes: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Code mark for inline code formatting
|
|
31
|
+
*/
|
|
32
|
+
export declare const Code: Mark<CodeOptions, unknown>;
|
|
33
|
+
declare module '../types/Commands.js' {
|
|
34
|
+
interface RawCommands {
|
|
35
|
+
setCode: CommandSpec;
|
|
36
|
+
unsetCode: CommandSpec;
|
|
37
|
+
toggleCode: CommandSpec;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../src/marks/Code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,4BAwEf,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,OAAO,EAAE,WAAW,CAAC;QACrB,SAAS,EAAE,WAAW,CAAC;QACvB,UAAU,EAAE,WAAW,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Code.test.d.ts","sourceRoot":"","sources":["../../src/marks/Code.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Italic Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies italic formatting to text. Supports multiple HTML tags
|
|
5
|
+
* and CSS font-style styles.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { Italic } from '@domternal/core';
|
|
10
|
+
*
|
|
11
|
+
* const editor = new Editor({
|
|
12
|
+
* extensions: [Document, Paragraph, Text, Italic],
|
|
13
|
+
* });
|
|
14
|
+
*
|
|
15
|
+
* // Toggle italic with keyboard shortcut: Mod-i
|
|
16
|
+
* // Or use input rule: *text* or _text_
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import { Mark } from '../Mark.js';
|
|
20
|
+
/**
|
|
21
|
+
* Options for the Italic mark
|
|
22
|
+
*/
|
|
23
|
+
export interface ItalicOptions {
|
|
24
|
+
/**
|
|
25
|
+
* HTML attributes to add to the rendered element
|
|
26
|
+
*/
|
|
27
|
+
HTMLAttributes: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Italic mark for text formatting
|
|
31
|
+
*/
|
|
32
|
+
export declare const Italic: Mark<ItalicOptions, unknown>;
|
|
33
|
+
declare module '../types/Commands.js' {
|
|
34
|
+
interface RawCommands {
|
|
35
|
+
setItalic: CommandSpec;
|
|
36
|
+
unsetItalic: CommandSpec;
|
|
37
|
+
toggleItalic: CommandSpec;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Italic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Italic.d.ts","sourceRoot":"","sources":["../../src/marks/Italic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,8BA6FjB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,SAAS,EAAE,WAAW,CAAC;QACvB,WAAW,EAAE,WAAW,CAAC;QACzB,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Italic.test.d.ts","sourceRoot":"","sources":["../../src/marks/Italic.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Mark } from '../Mark.js';
|
|
2
|
+
/**
|
|
3
|
+
* Options for the Link mark
|
|
4
|
+
*/
|
|
5
|
+
export interface LinkOptions {
|
|
6
|
+
/**
|
|
7
|
+
* HTML attributes to add to the rendered element
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes: Record<string, unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* List of allowed URL protocols
|
|
12
|
+
* @default ['http:', 'https:', 'mailto:', 'tel:']
|
|
13
|
+
*/
|
|
14
|
+
protocols: string[];
|
|
15
|
+
/**
|
|
16
|
+
* When to open links on click
|
|
17
|
+
* - true: Open on click (when editable)
|
|
18
|
+
* - false: Never open
|
|
19
|
+
* - 'whenNotEditable': Only open when editor is read-only
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
openOnClick: boolean | 'whenNotEditable';
|
|
23
|
+
/**
|
|
24
|
+
* Whether to add rel="noopener noreferrer" to links
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
addRelNoopener: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Auto-convert typed URLs to links
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
autolink: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Convert pasted URLs to links (wraps selection or inserts as link)
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
linkOnPaste: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Default protocol for bare URLs (e.g., 'example.com' → 'https://example.com')
|
|
40
|
+
* @default 'https'
|
|
41
|
+
*/
|
|
42
|
+
defaultProtocol: string;
|
|
43
|
+
/**
|
|
44
|
+
* Custom validation for autolink
|
|
45
|
+
* Return false to prevent auto-linking specific URLs
|
|
46
|
+
*/
|
|
47
|
+
shouldAutoLink?: (url: string) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Select the full link text range when clicking a link
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
enableClickSelection: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Attributes for the Link mark
|
|
56
|
+
*/
|
|
57
|
+
export interface LinkAttributes {
|
|
58
|
+
href: string;
|
|
59
|
+
target?: string | null;
|
|
60
|
+
rel?: string | null;
|
|
61
|
+
title?: string | null;
|
|
62
|
+
class?: string | null;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Link mark for hyperlinks
|
|
66
|
+
*/
|
|
67
|
+
export declare const Link: Mark<LinkOptions, unknown>;
|
|
68
|
+
declare module '../types/Commands.js' {
|
|
69
|
+
interface RawCommands {
|
|
70
|
+
setLink: CommandSpec<[attributes: LinkAttributes]>;
|
|
71
|
+
unsetLink: CommandSpec;
|
|
72
|
+
toggleLink: CommandSpec<[attributes: LinkAttributes]>;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/marks/Link.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAUlC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC;;;OAGG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,GAAG,iBAAiB,CAAC;IACzC;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C;;;OAGG;IACH,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,4BA6Sf,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,OAAO,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;QACnD,SAAS,EAAE,WAAW,CAAC;QACvB,UAAU,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;KACvD;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.test.d.ts","sourceRoot":"","sources":["../../src/marks/Link.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strike Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies strikethrough formatting to text.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Strike } from '@domternal/core';
|
|
9
|
+
*
|
|
10
|
+
* const editor = new Editor({
|
|
11
|
+
* extensions: [Document, Paragraph, Text, Strike],
|
|
12
|
+
* });
|
|
13
|
+
*
|
|
14
|
+
* // Toggle strike with keyboard shortcut: Mod-Shift-s
|
|
15
|
+
* // Or use input rule: ~~text~~
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import { Mark } from '../Mark.js';
|
|
19
|
+
/**
|
|
20
|
+
* Options for the Strike mark
|
|
21
|
+
*/
|
|
22
|
+
export interface StrikeOptions {
|
|
23
|
+
/**
|
|
24
|
+
* HTML attributes to add to the rendered element
|
|
25
|
+
*/
|
|
26
|
+
HTMLAttributes: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Strike mark for text formatting
|
|
30
|
+
*/
|
|
31
|
+
export declare const Strike: Mark<StrikeOptions, unknown>;
|
|
32
|
+
declare module '../types/Commands.js' {
|
|
33
|
+
interface RawCommands {
|
|
34
|
+
setStrike: CommandSpec;
|
|
35
|
+
unsetStrike: CommandSpec;
|
|
36
|
+
toggleStrike: CommandSpec;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=Strike.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Strike.d.ts","sourceRoot":"","sources":["../../src/marks/Strike.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,8BA4EjB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,SAAS,EAAE,WAAW,CAAC;QACvB,WAAW,EAAE,WAAW,CAAC;QACzB,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Strike.test.d.ts","sourceRoot":"","sources":["../../src/marks/Strike.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscript Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies subscript formatting to text (e.g., H₂O).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Subscript } from '@domternal/core';
|
|
9
|
+
*
|
|
10
|
+
* const editor = new Editor({
|
|
11
|
+
* extensions: [Document, Paragraph, Text, Subscript],
|
|
12
|
+
* });
|
|
13
|
+
*
|
|
14
|
+
* // Toggle subscript with keyboard shortcut: Mod-,
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import { Mark } from '../Mark.js';
|
|
18
|
+
/**
|
|
19
|
+
* Options for the Subscript mark
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptOptions {
|
|
22
|
+
/**
|
|
23
|
+
* HTML attributes to add to the rendered element
|
|
24
|
+
*/
|
|
25
|
+
HTMLAttributes: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Subscript mark for text formatting
|
|
29
|
+
*/
|
|
30
|
+
export declare const Subscript: Mark<SubscriptOptions, unknown>;
|
|
31
|
+
declare module '../types/Commands.js' {
|
|
32
|
+
interface RawCommands {
|
|
33
|
+
setSubscript: CommandSpec;
|
|
34
|
+
unsetSubscript: CommandSpec;
|
|
35
|
+
toggleSubscript: CommandSpec;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=Subscript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscript.d.ts","sourceRoot":"","sources":["../../src/marks/Subscript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,iCAsEpB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC;QAC1B,cAAc,EAAE,WAAW,CAAC;QAC5B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscript.test.d.ts","sourceRoot":"","sources":["../../src/marks/Subscript.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Superscript Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies superscript formatting to text (e.g., x²).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Superscript } from '@domternal/core';
|
|
9
|
+
*
|
|
10
|
+
* const editor = new Editor({
|
|
11
|
+
* extensions: [Document, Paragraph, Text, Superscript],
|
|
12
|
+
* });
|
|
13
|
+
*
|
|
14
|
+
* // Toggle superscript with keyboard shortcut: Mod-.
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import { Mark } from '../Mark.js';
|
|
18
|
+
/**
|
|
19
|
+
* Options for the Superscript mark
|
|
20
|
+
*/
|
|
21
|
+
export interface SuperscriptOptions {
|
|
22
|
+
/**
|
|
23
|
+
* HTML attributes to add to the rendered element
|
|
24
|
+
*/
|
|
25
|
+
HTMLAttributes: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Superscript mark for text formatting
|
|
29
|
+
*/
|
|
30
|
+
export declare const Superscript: Mark<SuperscriptOptions, unknown>;
|
|
31
|
+
declare module '../types/Commands.js' {
|
|
32
|
+
interface RawCommands {
|
|
33
|
+
setSuperscript: CommandSpec;
|
|
34
|
+
unsetSuperscript: CommandSpec;
|
|
35
|
+
toggleSuperscript: CommandSpec;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=Superscript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Superscript.d.ts","sourceRoot":"","sources":["../../src/marks/Superscript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,mCAsEtB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,cAAc,EAAE,WAAW,CAAC;QAC5B,gBAAgB,EAAE,WAAW,CAAC;QAC9B,iBAAiB,EAAE,WAAW,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Superscript.test.d.ts","sourceRoot":"","sources":["../../src/marks/Superscript.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TextStyle Mark
|
|
3
|
+
*
|
|
4
|
+
* A "carrier mark" for inline text styling. This mark itself has no attributes,
|
|
5
|
+
* but other extensions (TextColor, FontFamily, FontSize) can inject attributes
|
|
6
|
+
* into it via addGlobalAttributes.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { TextStyle, TextColor, FontFamily } from '@domternal/core';
|
|
11
|
+
*
|
|
12
|
+
* const editor = new Editor({
|
|
13
|
+
* extensions: [
|
|
14
|
+
* // ... other extensions
|
|
15
|
+
* TextStyle,
|
|
16
|
+
* TextColor,
|
|
17
|
+
* FontFamily.configure({ fontFamilies: ['Arial', 'Times New Roman'] }),
|
|
18
|
+
* ],
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* editor.commands.setTextColor('#ff0000');
|
|
22
|
+
* editor.commands.setFontFamily('Arial');
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
import { Mark } from '../Mark.js';
|
|
26
|
+
export interface TextStyleOptions {
|
|
27
|
+
/**
|
|
28
|
+
* HTML attributes to add to the rendered element.
|
|
29
|
+
* @default {}
|
|
30
|
+
*/
|
|
31
|
+
HTMLAttributes: Record<string, unknown>;
|
|
32
|
+
}
|
|
33
|
+
export declare const TextStyle: Mark<TextStyleOptions, unknown>;
|
|
34
|
+
declare module '../types/Commands.js' {
|
|
35
|
+
interface RawCommands {
|
|
36
|
+
setTextStyle: CommandSpec<[attributes: Record<string, unknown>]>;
|
|
37
|
+
removeTextStyle: CommandSpec;
|
|
38
|
+
removeEmptyTextStyle: CommandSpec;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=TextStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyle.d.ts","sourceRoot":"","sources":["../../src/marks/TextStyle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,iCAuHpB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QACjE,eAAe,EAAE,WAAW,CAAC;QAC7B,oBAAoB,EAAE,WAAW,CAAC;KACnC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyle.test.d.ts","sourceRoot":"","sources":["../../src/marks/TextStyle.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Underline Mark
|
|
3
|
+
*
|
|
4
|
+
* Applies underline formatting to text.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Underline } from '@domternal/core';
|
|
9
|
+
*
|
|
10
|
+
* const editor = new Editor({
|
|
11
|
+
* extensions: [Document, Paragraph, Text, Underline],
|
|
12
|
+
* });
|
|
13
|
+
*
|
|
14
|
+
* // Toggle underline with keyboard shortcut: Mod-u
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import { Mark } from '../Mark.js';
|
|
18
|
+
/**
|
|
19
|
+
* Options for the Underline mark
|
|
20
|
+
*/
|
|
21
|
+
export interface UnderlineOptions {
|
|
22
|
+
/**
|
|
23
|
+
* HTML attributes to add to the rendered element
|
|
24
|
+
*/
|
|
25
|
+
HTMLAttributes: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Underline mark for text formatting
|
|
29
|
+
*/
|
|
30
|
+
export declare const Underline: Mark<UnderlineOptions, unknown>;
|
|
31
|
+
declare module '../types/Commands.js' {
|
|
32
|
+
interface RawCommands {
|
|
33
|
+
setUnderline: CommandSpec;
|
|
34
|
+
unsetUnderline: CommandSpec;
|
|
35
|
+
toggleUnderline: CommandSpec;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=Underline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Underline.d.ts","sourceRoot":"","sources":["../../src/marks/Underline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,iCA8DpB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC;QAC1B,cAAc,EAAE,WAAW,CAAC;QAC5B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Underline.test.d.ts","sourceRoot":"","sources":["../../src/marks/Underline.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autolink Plugin
|
|
3
|
+
*
|
|
4
|
+
* Automatically converts typed URLs into clickable links.
|
|
5
|
+
* Triggers when user types a space, punctuation, or presses Enter after a URL.
|
|
6
|
+
* Uses linkifyjs for robust URL detection.
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, PluginKey } from '@domternal/pm/state';
|
|
9
|
+
import type { MarkType } from '@domternal/pm/model';
|
|
10
|
+
/**
|
|
11
|
+
* Options for the autolink plugin
|
|
12
|
+
*/
|
|
13
|
+
export interface AutolinkPluginOptions {
|
|
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
|
+
* Default protocol to add to bare URLs (e.g., 'example.com' → 'https://example.com')
|
|
25
|
+
* @default 'https'
|
|
26
|
+
*/
|
|
27
|
+
defaultProtocol?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom validation function
|
|
30
|
+
* Return false to prevent auto-linking specific URLs
|
|
31
|
+
*/
|
|
32
|
+
shouldAutoLink?: (url: string) => boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Plugin key for autolink plugin
|
|
36
|
+
*/
|
|
37
|
+
export declare const autolinkPluginKey: PluginKey<any>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a plugin that auto-converts typed URLs to links.
|
|
40
|
+
*
|
|
41
|
+
* When user types a URL followed by space/punctuation, the URL
|
|
42
|
+
* is automatically wrapped in a link mark.
|
|
43
|
+
*
|
|
44
|
+
* @param options - Plugin options
|
|
45
|
+
* @returns ProseMirror Plugin
|
|
46
|
+
*/
|
|
47
|
+
export declare function autolinkPlugin(options: AutolinkPluginOptions): Plugin;
|
|
48
|
+
//# sourceMappingURL=autolinkPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autolinkPlugin.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/autolinkPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CAC3C;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,gBAA4B,CAAC;AAO3D;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAwFrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autolinkPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/autolinkPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link Mark Helpers
|
|
3
|
+
*
|
|
4
|
+
* Plugins and utilities for enhanced Link mark functionality.
|
|
5
|
+
*/
|
|
6
|
+
export { linkClickPlugin, linkClickPluginKey, type LinkClickPluginOptions, } from './linkClickPlugin.js';
|
|
7
|
+
export { linkPastePlugin, linkPastePluginKey, type LinkPastePluginOptions, } from './linkPastePlugin.js';
|
|
8
|
+
export { autolinkPlugin, autolinkPluginKey, type AutolinkPluginOptions, } from './autolinkPlugin.js';
|
|
9
|
+
export { linkExitPlugin, linkExitPluginKey, type LinkExitPluginOptions, } from './linkExitPlugin.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link Click Plugin
|
|
3
|
+
*
|
|
4
|
+
* Handles click on links to open them.
|
|
5
|
+
* When editable: opens on click.
|
|
6
|
+
* When read-only: browser handles link clicks natively.
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, PluginKey } from '@domternal/pm/state';
|
|
9
|
+
import type { MarkType } from '@domternal/pm/model';
|
|
10
|
+
/**
|
|
11
|
+
* Options for the link click plugin
|
|
12
|
+
*/
|
|
13
|
+
export interface LinkClickPluginOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The link mark type
|
|
16
|
+
*/
|
|
17
|
+
type: MarkType;
|
|
18
|
+
/**
|
|
19
|
+
* When to open links on click
|
|
20
|
+
* - true: Open on click
|
|
21
|
+
* - false: Never open
|
|
22
|
+
* - 'whenNotEditable': Only open when editor is read-only (browser handles natively)
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
openOnClick?: boolean | 'whenNotEditable';
|
|
26
|
+
/**
|
|
27
|
+
* Select the full link text range when clicking a link
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
enableClickSelection?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Plugin key for link click plugin
|
|
34
|
+
*/
|
|
35
|
+
export declare const linkClickPluginKey: PluginKey<any>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a plugin that handles clicking on links to open them.
|
|
38
|
+
*
|
|
39
|
+
* @param options - Plugin options
|
|
40
|
+
* @returns ProseMirror Plugin
|
|
41
|
+
*/
|
|
42
|
+
export declare function linkClickPlugin(options: LinkClickPluginOptions): Plugin;
|
|
43
|
+
//# sourceMappingURL=linkClickPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkClickPlugin.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/linkClickPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAiB,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAC;IAE1C;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,gBAA6B,CAAC;AAE7D;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAsFvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkClickPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/marks/helpers/linkClickPlugin.test.ts"],"names":[],"mappings":""}
|