@domternal/core 0.5.1 → 0.6.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 +5 -4
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +5845 -23
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/CanChecker.d.ts +0 -79
- package/dist/CanChecker.d.ts.map +0 -1
- package/dist/CanChecker.test.d.ts +0 -2
- package/dist/CanChecker.test.d.ts.map +0 -1
- package/dist/ChainBuilder.d.ts +0 -119
- package/dist/ChainBuilder.d.ts.map +0 -1
- package/dist/ChainBuilder.test.d.ts +0 -2
- package/dist/ChainBuilder.test.d.ts.map +0 -1
- package/dist/CommandManager.d.ts +0 -86
- package/dist/CommandManager.d.ts.map +0 -1
- package/dist/CommandManager.test.d.ts +0 -2
- package/dist/CommandManager.test.d.ts.map +0 -1
- package/dist/Editor.d.ts +0 -262
- package/dist/Editor.d.ts.map +0 -1
- package/dist/Editor.test.d.ts +0 -2
- package/dist/Editor.test.d.ts.map +0 -1
- package/dist/EventEmitter.d.ts +0 -57
- package/dist/EventEmitter.d.ts.map +0 -1
- package/dist/EventEmitter.test.d.ts +0 -2
- package/dist/EventEmitter.test.d.ts.map +0 -1
- package/dist/Extension.d.ts +0 -171
- package/dist/Extension.d.ts.map +0 -1
- package/dist/Extension.test.d.ts +0 -2
- package/dist/Extension.test.d.ts.map +0 -1
- package/dist/ExtensionManager.d.ts +0 -283
- package/dist/ExtensionManager.d.ts.map +0 -1
- package/dist/ExtensionManager.test.d.ts +0 -2
- package/dist/ExtensionManager.test.d.ts.map +0 -1
- package/dist/Mark.d.ts +0 -164
- package/dist/Mark.d.ts.map +0 -1
- package/dist/Mark.test.d.ts +0 -5
- package/dist/Mark.test.d.ts.map +0 -1
- package/dist/Node.d.ts +0 -153
- package/dist/Node.d.ts.map +0 -1
- package/dist/Node.test.d.ts +0 -2
- package/dist/Node.test.d.ts.map +0 -1
- package/dist/ToolbarController.d.ts +0 -169
- package/dist/ToolbarController.d.ts.map +0 -1
- package/dist/ToolbarController.test.d.ts +0 -2
- package/dist/ToolbarController.test.d.ts.map +0 -1
- package/dist/commandPropsBuilder.d.ts +0 -70
- package/dist/commandPropsBuilder.d.ts.map +0 -1
- package/dist/commandPropsBuilder.test.d.ts +0 -2
- package/dist/commandPropsBuilder.test.d.ts.map +0 -1
- package/dist/commands/attributeCommands.d.ts +0 -24
- package/dist/commands/attributeCommands.d.ts.map +0 -1
- package/dist/commands/attributeCommands.test.d.ts +0 -2
- package/dist/commands/attributeCommands.test.d.ts.map +0 -1
- package/dist/commands/builtIn.test.d.ts +0 -2
- package/dist/commands/builtIn.test.d.ts.map +0 -1
- package/dist/commands/contentCommands.d.ts +0 -52
- package/dist/commands/contentCommands.d.ts.map +0 -1
- package/dist/commands/contentCommands.test.d.ts +0 -2
- package/dist/commands/contentCommands.test.d.ts.map +0 -1
- package/dist/commands/index.d.ts +0 -43
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/listCommands.d.ts +0 -15
- package/dist/commands/listCommands.d.ts.map +0 -1
- package/dist/commands/listCommands.test.d.ts +0 -2
- package/dist/commands/listCommands.test.d.ts.map +0 -1
- package/dist/commands/markCommands.d.ts +0 -40
- package/dist/commands/markCommands.d.ts.map +0 -1
- package/dist/commands/markCommands.test.d.ts +0 -2
- package/dist/commands/markCommands.test.d.ts.map +0 -1
- package/dist/commands/nodeCommands.d.ts +0 -53
- package/dist/commands/nodeCommands.d.ts.map +0 -1
- package/dist/commands/nodeCommands.test.d.ts +0 -2
- package/dist/commands/nodeCommands.test.d.ts.map +0 -1
- package/dist/commands/selectionCommands.d.ts +0 -37
- package/dist/commands/selectionCommands.d.ts.map +0 -1
- package/dist/commands/selectionCommands.test.d.ts +0 -2
- package/dist/commands/selectionCommands.test.d.ts.map +0 -1
- package/dist/extensions/BaseKeymap.d.ts +0 -36
- package/dist/extensions/BaseKeymap.d.ts.map +0 -1
- package/dist/extensions/BaseKeymap.test.d.ts +0 -2
- package/dist/extensions/BaseKeymap.test.d.ts.map +0 -1
- package/dist/extensions/BubbleMenu.d.ts +0 -85
- package/dist/extensions/BubbleMenu.d.ts.map +0 -1
- package/dist/extensions/BubbleMenu.test.d.ts +0 -2
- package/dist/extensions/BubbleMenu.test.d.ts.map +0 -1
- package/dist/extensions/CharacterCount.d.ts +0 -60
- package/dist/extensions/CharacterCount.d.ts.map +0 -1
- package/dist/extensions/CharacterCount.test.d.ts +0 -2
- package/dist/extensions/CharacterCount.test.d.ts.map +0 -1
- package/dist/extensions/ClearFormatting.d.ts +0 -25
- package/dist/extensions/ClearFormatting.d.ts.map +0 -1
- package/dist/extensions/ClearFormatting.test.d.ts +0 -2
- package/dist/extensions/ClearFormatting.test.d.ts.map +0 -1
- package/dist/extensions/Dropcursor.d.ts +0 -20
- package/dist/extensions/Dropcursor.d.ts.map +0 -1
- package/dist/extensions/Dropcursor.test.d.ts +0 -2
- package/dist/extensions/Dropcursor.test.d.ts.map +0 -1
- package/dist/extensions/FloatingMenu.d.ts +0 -74
- package/dist/extensions/FloatingMenu.d.ts.map +0 -1
- package/dist/extensions/FloatingMenu.test.d.ts +0 -2
- package/dist/extensions/FloatingMenu.test.d.ts.map +0 -1
- package/dist/extensions/Focus.d.ts +0 -26
- package/dist/extensions/Focus.d.ts.map +0 -1
- package/dist/extensions/Focus.test.d.ts +0 -2
- package/dist/extensions/Focus.test.d.ts.map +0 -1
- package/dist/extensions/FontFamily.d.ts +0 -41
- package/dist/extensions/FontFamily.d.ts.map +0 -1
- package/dist/extensions/FontFamily.test.d.ts +0 -2
- package/dist/extensions/FontFamily.test.d.ts.map +0 -1
- package/dist/extensions/FontSize.d.ts +0 -46
- package/dist/extensions/FontSize.d.ts.map +0 -1
- package/dist/extensions/FontSize.test.d.ts +0 -2
- package/dist/extensions/FontSize.test.d.ts.map +0 -1
- package/dist/extensions/Gapcursor.d.ts +0 -3
- package/dist/extensions/Gapcursor.d.ts.map +0 -1
- package/dist/extensions/Gapcursor.test.d.ts +0 -2
- package/dist/extensions/Gapcursor.test.d.ts.map +0 -1
- package/dist/extensions/Highlight.d.ts +0 -61
- package/dist/extensions/Highlight.d.ts.map +0 -1
- package/dist/extensions/Highlight.test.d.ts +0 -2
- package/dist/extensions/Highlight.test.d.ts.map +0 -1
- package/dist/extensions/History.d.ts +0 -22
- package/dist/extensions/History.d.ts.map +0 -1
- package/dist/extensions/History.test.d.ts +0 -2
- package/dist/extensions/History.test.d.ts.map +0 -1
- package/dist/extensions/InvisibleChars.d.ts +0 -86
- package/dist/extensions/InvisibleChars.d.ts.map +0 -1
- package/dist/extensions/InvisibleChars.test.d.ts +0 -2
- package/dist/extensions/InvisibleChars.test.d.ts.map +0 -1
- package/dist/extensions/LineHeight.d.ts +0 -50
- package/dist/extensions/LineHeight.d.ts.map +0 -1
- package/dist/extensions/LineHeight.test.d.ts +0 -2
- package/dist/extensions/LineHeight.test.d.ts.map +0 -1
- package/dist/extensions/LinkPopover.d.ts +0 -10
- package/dist/extensions/LinkPopover.d.ts.map +0 -1
- package/dist/extensions/ListKeymap.d.ts +0 -10
- package/dist/extensions/ListKeymap.d.ts.map +0 -1
- package/dist/extensions/ListKeymap.test.d.ts +0 -2
- package/dist/extensions/ListKeymap.test.d.ts.map +0 -1
- package/dist/extensions/Placeholder.d.ts +0 -47
- package/dist/extensions/Placeholder.d.ts.map +0 -1
- package/dist/extensions/Placeholder.test.d.ts +0 -2
- package/dist/extensions/Placeholder.test.d.ts.map +0 -1
- package/dist/extensions/Selection.d.ts +0 -71
- package/dist/extensions/Selection.d.ts.map +0 -1
- package/dist/extensions/Selection.test.d.ts +0 -2
- package/dist/extensions/Selection.test.d.ts.map +0 -1
- package/dist/extensions/SelectionDecoration.d.ts +0 -18
- package/dist/extensions/SelectionDecoration.d.ts.map +0 -1
- package/dist/extensions/SelectionDecoration.test.d.ts +0 -2
- package/dist/extensions/SelectionDecoration.test.d.ts.map +0 -1
- package/dist/extensions/StarterKit.d.ts +0 -144
- package/dist/extensions/StarterKit.d.ts.map +0 -1
- package/dist/extensions/StarterKit.test.d.ts +0 -2
- package/dist/extensions/StarterKit.test.d.ts.map +0 -1
- package/dist/extensions/TextAlign.d.ts +0 -32
- package/dist/extensions/TextAlign.d.ts.map +0 -1
- package/dist/extensions/TextAlign.test.d.ts +0 -2
- package/dist/extensions/TextAlign.test.d.ts.map +0 -1
- package/dist/extensions/TextColor.d.ts +0 -55
- package/dist/extensions/TextColor.d.ts.map +0 -1
- package/dist/extensions/TextColor.test.d.ts +0 -2
- package/dist/extensions/TextColor.test.d.ts.map +0 -1
- package/dist/extensions/TrailingNode.d.ts +0 -16
- package/dist/extensions/TrailingNode.d.ts.map +0 -1
- package/dist/extensions/TrailingNode.test.d.ts +0 -2
- package/dist/extensions/TrailingNode.test.d.ts.map +0 -1
- package/dist/extensions/Typography.d.ts +0 -65
- package/dist/extensions/Typography.d.ts.map +0 -1
- package/dist/extensions/Typography.test.d.ts +0 -2
- package/dist/extensions/Typography.test.d.ts.map +0 -1
- package/dist/extensions/UniqueID.d.ts +0 -48
- package/dist/extensions/UniqueID.d.ts.map +0 -1
- package/dist/extensions/UniqueID.test.d.ts +0 -2
- package/dist/extensions/UniqueID.test.d.ts.map +0 -1
- package/dist/extensions/index.d.ts +0 -29
- package/dist/extensions/index.d.ts.map +0 -1
- package/dist/extensions/isActive-markExclusion.test.d.ts +0 -2
- package/dist/extensions/isActive-markExclusion.test.d.ts.map +0 -1
- package/dist/helpers/callOrReturn.d.ts +0 -30
- package/dist/helpers/callOrReturn.d.ts.map +0 -1
- package/dist/helpers/callOrReturn.test.d.ts +0 -2
- package/dist/helpers/callOrReturn.test.d.ts.map +0 -1
- package/dist/helpers/createDocument.d.ts +0 -48
- package/dist/helpers/createDocument.d.ts.map +0 -1
- package/dist/helpers/createDocument.test.d.ts +0 -2
- package/dist/helpers/createDocument.test.d.ts.map +0 -1
- package/dist/helpers/defaultBlockAt.d.ts +0 -15
- package/dist/helpers/defaultBlockAt.d.ts.map +0 -1
- package/dist/helpers/defaultBlockAt.test.d.ts +0 -2
- package/dist/helpers/defaultBlockAt.test.d.ts.map +0 -1
- package/dist/helpers/findChildren.d.ts +0 -13
- package/dist/helpers/findChildren.d.ts.map +0 -1
- package/dist/helpers/findChildren.test.d.ts +0 -2
- package/dist/helpers/findChildren.test.d.ts.map +0 -1
- package/dist/helpers/findParentNode.d.ts +0 -21
- package/dist/helpers/findParentNode.d.ts.map +0 -1
- package/dist/helpers/findParentNode.test.d.ts +0 -2
- package/dist/helpers/findParentNode.test.d.ts.map +0 -1
- package/dist/helpers/getMarkRange.d.ts +0 -17
- package/dist/helpers/getMarkRange.d.ts.map +0 -1
- package/dist/helpers/getMarkRange.test.d.ts +0 -2
- package/dist/helpers/getMarkRange.test.d.ts.map +0 -1
- package/dist/helpers/index.d.ts +0 -18
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/inputRulesPlugin.d.ts +0 -26
- package/dist/helpers/inputRulesPlugin.d.ts.map +0 -1
- package/dist/helpers/isNodeEmpty.d.ts +0 -52
- package/dist/helpers/isNodeEmpty.d.ts.map +0 -1
- package/dist/helpers/isNodeEmpty.test.d.ts +0 -2
- package/dist/helpers/isNodeEmpty.test.d.ts.map +0 -1
- package/dist/helpers/isValidUrl.d.ts +0 -31
- package/dist/helpers/isValidUrl.d.ts.map +0 -1
- package/dist/helpers/isValidUrl.test.d.ts +0 -2
- package/dist/helpers/isValidUrl.test.d.ts.map +0 -1
- package/dist/helpers/markInputRule.d.ts +0 -88
- package/dist/helpers/markInputRule.d.ts.map +0 -1
- package/dist/helpers/markInputRule.test.d.ts +0 -2
- package/dist/helpers/markInputRule.test.d.ts.map +0 -1
- package/dist/helpers/nodeInputRule.d.ts +0 -41
- package/dist/helpers/nodeInputRule.d.ts.map +0 -1
- package/dist/helpers/normalizeColor.d.ts +0 -7
- package/dist/helpers/normalizeColor.d.ts.map +0 -1
- package/dist/helpers/normalizeColor.test.d.ts +0 -2
- package/dist/helpers/normalizeColor.test.d.ts.map +0 -1
- package/dist/helpers/specBuilder.d.ts +0 -28
- package/dist/helpers/specBuilder.d.ts.map +0 -1
- package/dist/helpers/specBuilder.test.d.ts +0 -2
- package/dist/helpers/specBuilder.test.d.ts.map +0 -1
- package/dist/helpers/ssr.d.ts +0 -80
- package/dist/helpers/ssr.d.ts.map +0 -1
- package/dist/helpers/ssr.test.d.ts +0 -2
- package/dist/helpers/ssr.test.d.ts.map +0 -1
- package/dist/helpers/textInputRule.d.ts +0 -34
- package/dist/helpers/textInputRule.d.ts.map +0 -1
- package/dist/helpers/textblockTypeInputRule.d.ts +0 -41
- package/dist/helpers/textblockTypeInputRule.d.ts.map +0 -1
- package/dist/helpers/wrappingInputRule.d.ts +0 -66
- package/dist/helpers/wrappingInputRule.d.ts.map +0 -1
- package/dist/icons/index.d.ts +0 -2
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/icons/phosphor.d.ts +0 -3
- package/dist/icons/phosphor.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/marks/Bold.d.ts +0 -40
- package/dist/marks/Bold.d.ts.map +0 -1
- package/dist/marks/Bold.test.d.ts +0 -2
- package/dist/marks/Bold.test.d.ts.map +0 -1
- package/dist/marks/Code.d.ts +0 -40
- package/dist/marks/Code.d.ts.map +0 -1
- package/dist/marks/Code.test.d.ts +0 -2
- package/dist/marks/Code.test.d.ts.map +0 -1
- package/dist/marks/Italic.d.ts +0 -40
- package/dist/marks/Italic.d.ts.map +0 -1
- package/dist/marks/Italic.test.d.ts +0 -2
- package/dist/marks/Italic.test.d.ts.map +0 -1
- package/dist/marks/Link.d.ts +0 -75
- package/dist/marks/Link.d.ts.map +0 -1
- package/dist/marks/Link.test.d.ts +0 -2
- package/dist/marks/Link.test.d.ts.map +0 -1
- package/dist/marks/Strike.d.ts +0 -39
- package/dist/marks/Strike.d.ts.map +0 -1
- package/dist/marks/Strike.test.d.ts +0 -2
- package/dist/marks/Strike.test.d.ts.map +0 -1
- package/dist/marks/Subscript.d.ts +0 -38
- package/dist/marks/Subscript.d.ts.map +0 -1
- package/dist/marks/Subscript.test.d.ts +0 -2
- package/dist/marks/Subscript.test.d.ts.map +0 -1
- package/dist/marks/Superscript.d.ts +0 -38
- package/dist/marks/Superscript.d.ts.map +0 -1
- package/dist/marks/Superscript.test.d.ts +0 -2
- package/dist/marks/Superscript.test.d.ts.map +0 -1
- package/dist/marks/TextStyle.d.ts +0 -41
- package/dist/marks/TextStyle.d.ts.map +0 -1
- package/dist/marks/TextStyle.test.d.ts +0 -2
- package/dist/marks/TextStyle.test.d.ts.map +0 -1
- package/dist/marks/Underline.d.ts +0 -38
- package/dist/marks/Underline.d.ts.map +0 -1
- package/dist/marks/Underline.test.d.ts +0 -2
- package/dist/marks/Underline.test.d.ts.map +0 -1
- package/dist/marks/helpers/autolinkPlugin.d.ts +0 -48
- package/dist/marks/helpers/autolinkPlugin.d.ts.map +0 -1
- package/dist/marks/helpers/autolinkPlugin.test.d.ts +0 -2
- package/dist/marks/helpers/autolinkPlugin.test.d.ts.map +0 -1
- package/dist/marks/helpers/index.d.ts +0 -10
- package/dist/marks/helpers/index.d.ts.map +0 -1
- package/dist/marks/helpers/linkClickPlugin.d.ts +0 -43
- package/dist/marks/helpers/linkClickPlugin.d.ts.map +0 -1
- package/dist/marks/helpers/linkClickPlugin.test.d.ts +0 -2
- package/dist/marks/helpers/linkClickPlugin.test.d.ts.map +0 -1
- package/dist/marks/helpers/linkExitPlugin.d.ts +0 -37
- package/dist/marks/helpers/linkExitPlugin.d.ts.map +0 -1
- package/dist/marks/helpers/linkExitPlugin.test.d.ts +0 -2
- package/dist/marks/helpers/linkExitPlugin.test.d.ts.map +0 -1
- package/dist/marks/helpers/linkPastePlugin.d.ts +0 -44
- package/dist/marks/helpers/linkPastePlugin.d.ts.map +0 -1
- package/dist/marks/helpers/linkPastePlugin.test.d.ts +0 -2
- package/dist/marks/helpers/linkPastePlugin.test.d.ts.map +0 -1
- package/dist/marks/index.d.ts +0 -16
- package/dist/marks/index.d.ts.map +0 -1
- package/dist/nodes/Blockquote.d.ts +0 -19
- package/dist/nodes/Blockquote.d.ts.map +0 -1
- package/dist/nodes/Blockquote.test.d.ts +0 -2
- package/dist/nodes/Blockquote.test.d.ts.map +0 -1
- package/dist/nodes/BulletList.d.ts +0 -18
- package/dist/nodes/BulletList.d.ts.map +0 -1
- package/dist/nodes/BulletList.test.d.ts +0 -2
- package/dist/nodes/BulletList.test.d.ts.map +0 -1
- package/dist/nodes/CodeBlock.d.ts +0 -29
- package/dist/nodes/CodeBlock.d.ts.map +0 -1
- package/dist/nodes/CodeBlock.test.d.ts +0 -2
- package/dist/nodes/CodeBlock.test.d.ts.map +0 -1
- package/dist/nodes/Document.d.ts +0 -9
- package/dist/nodes/Document.d.ts.map +0 -1
- package/dist/nodes/Document.test.d.ts +0 -2
- package/dist/nodes/Document.test.d.ts.map +0 -1
- package/dist/nodes/HardBreak.d.ts +0 -18
- package/dist/nodes/HardBreak.d.ts.map +0 -1
- package/dist/nodes/HardBreak.test.d.ts +0 -2
- package/dist/nodes/HardBreak.test.d.ts.map +0 -1
- package/dist/nodes/Heading.d.ts +0 -23
- package/dist/nodes/Heading.d.ts.map +0 -1
- package/dist/nodes/Heading.test.d.ts +0 -2
- package/dist/nodes/Heading.test.d.ts.map +0 -1
- package/dist/nodes/HorizontalRule.d.ts +0 -17
- package/dist/nodes/HorizontalRule.d.ts.map +0 -1
- package/dist/nodes/HorizontalRule.test.d.ts +0 -2
- package/dist/nodes/HorizontalRule.test.d.ts.map +0 -1
- package/dist/nodes/ListItem.d.ts +0 -16
- package/dist/nodes/ListItem.d.ts.map +0 -1
- package/dist/nodes/ListItem.test.d.ts +0 -2
- package/dist/nodes/ListItem.test.d.ts.map +0 -1
- package/dist/nodes/OrderedList.d.ts +0 -18
- package/dist/nodes/OrderedList.d.ts.map +0 -1
- package/dist/nodes/OrderedList.test.d.ts +0 -2
- package/dist/nodes/OrderedList.test.d.ts.map +0 -1
- package/dist/nodes/Paragraph.d.ts +0 -17
- package/dist/nodes/Paragraph.d.ts.map +0 -1
- package/dist/nodes/Paragraph.test.d.ts +0 -2
- package/dist/nodes/Paragraph.test.d.ts.map +0 -1
- package/dist/nodes/TaskItem.d.ts +0 -24
- package/dist/nodes/TaskItem.d.ts.map +0 -1
- package/dist/nodes/TaskItem.test.d.ts +0 -2
- package/dist/nodes/TaskItem.test.d.ts.map +0 -1
- package/dist/nodes/TaskList.d.ts +0 -18
- package/dist/nodes/TaskList.d.ts.map +0 -1
- package/dist/nodes/TaskList.test.d.ts +0 -2
- package/dist/nodes/TaskList.test.d.ts.map +0 -1
- package/dist/nodes/Text.d.ts +0 -9
- package/dist/nodes/Text.d.ts.map +0 -1
- package/dist/nodes/Text.test.d.ts +0 -2
- package/dist/nodes/Text.test.d.ts.map +0 -1
- package/dist/nodes/index.d.ts +0 -19
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/integration.test.d.ts +0 -7
- package/dist/nodes/integration.test.d.ts.map +0 -1
- package/dist/types/AttributeSpec.d.ts +0 -78
- package/dist/types/AttributeSpec.d.ts.map +0 -1
- package/dist/types/Commands.d.ts +0 -125
- package/dist/types/Commands.d.ts.map +0 -1
- package/dist/types/Content.d.ts +0 -40
- package/dist/types/Content.d.ts.map +0 -1
- package/dist/types/EditorEvents.d.ts +0 -131
- package/dist/types/EditorEvents.d.ts.map +0 -1
- package/dist/types/EditorOptions.d.ts +0 -139
- package/dist/types/EditorOptions.d.ts.map +0 -1
- package/dist/types/ExtensionConfig.d.ts +0 -271
- package/dist/types/ExtensionConfig.d.ts.map +0 -1
- package/dist/types/MarkConfig.d.ts +0 -206
- package/dist/types/MarkConfig.d.ts.map +0 -1
- package/dist/types/NodeConfig.d.ts +0 -263
- package/dist/types/NodeConfig.d.ts.map +0 -1
- package/dist/types/Toolbar.d.ts +0 -172
- package/dist/types/Toolbar.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -13
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/inlineStyles.d.ts +0 -83
- package/dist/utils/inlineStyles.d.ts.map +0 -1
- package/dist/utils/inlineStyles.test.d.ts +0 -2
- package/dist/utils/inlineStyles.test.d.ts.map +0 -1
- package/dist/utils/positionFloating.d.ts +0 -74
- package/dist/utils/positionFloating.d.ts.map +0 -1
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StarterKit Extension
|
|
3
|
-
*
|
|
4
|
-
* A convenient bundle of commonly-used extensions for quick setup.
|
|
5
|
-
* All included extensions can be configured or disabled individually.
|
|
6
|
-
*/
|
|
7
|
-
import { Extension } from '../Extension.js';
|
|
8
|
-
import { type ParagraphOptions } from '../nodes/Paragraph.js';
|
|
9
|
-
import { type HeadingOptions } from '../nodes/Heading.js';
|
|
10
|
-
import { type BlockquoteOptions } from '../nodes/Blockquote.js';
|
|
11
|
-
import { type CodeBlockOptions } from '../nodes/CodeBlock.js';
|
|
12
|
-
import { type BulletListOptions } from '../nodes/BulletList.js';
|
|
13
|
-
import { type OrderedListOptions } from '../nodes/OrderedList.js';
|
|
14
|
-
import { type ListItemOptions } from '../nodes/ListItem.js';
|
|
15
|
-
import { type HorizontalRuleOptions } from '../nodes/HorizontalRule.js';
|
|
16
|
-
import { type HardBreakOptions } from '../nodes/HardBreak.js';
|
|
17
|
-
import { type TaskListOptions } from '../nodes/TaskList.js';
|
|
18
|
-
import { type TaskItemOptions } from '../nodes/TaskItem.js';
|
|
19
|
-
import { type BoldOptions } from '../marks/Bold.js';
|
|
20
|
-
import { type ItalicOptions } from '../marks/Italic.js';
|
|
21
|
-
import { type UnderlineOptions } from '../marks/Underline.js';
|
|
22
|
-
import { type StrikeOptions } from '../marks/Strike.js';
|
|
23
|
-
import { type CodeOptions } from '../marks/Code.js';
|
|
24
|
-
import { type LinkOptions } from '../marks/Link.js';
|
|
25
|
-
import { type BaseKeymapOptions } from './BaseKeymap.js';
|
|
26
|
-
import { type HistoryOptions } from './History.js';
|
|
27
|
-
import { type DropcursorOptions } from './Dropcursor.js';
|
|
28
|
-
import { type TrailingNodeOptions } from './TrailingNode.js';
|
|
29
|
-
import { type ListKeymapOptions } from './ListKeymap.js';
|
|
30
|
-
import { type LinkPopoverOptions } from './LinkPopover.js';
|
|
31
|
-
export interface StarterKitOptions {
|
|
32
|
-
/**
|
|
33
|
-
* Set to false to disable the Document node.
|
|
34
|
-
*/
|
|
35
|
-
document?: false;
|
|
36
|
-
/**
|
|
37
|
-
* Set to false to disable the Text node.
|
|
38
|
-
*/
|
|
39
|
-
text?: false;
|
|
40
|
-
/**
|
|
41
|
-
* Set to false to disable the Paragraph node, or pass options to configure it.
|
|
42
|
-
*/
|
|
43
|
-
paragraph?: false | Partial<ParagraphOptions>;
|
|
44
|
-
/**
|
|
45
|
-
* Set to false to disable the Heading node, or pass options to configure it.
|
|
46
|
-
*/
|
|
47
|
-
heading?: false | Partial<HeadingOptions>;
|
|
48
|
-
/**
|
|
49
|
-
* Set to false to disable the Blockquote node, or pass options to configure it.
|
|
50
|
-
*/
|
|
51
|
-
blockquote?: false | Partial<BlockquoteOptions>;
|
|
52
|
-
/**
|
|
53
|
-
* Set to false to disable the CodeBlock node, or pass options to configure it.
|
|
54
|
-
*/
|
|
55
|
-
codeBlock?: false | Partial<CodeBlockOptions>;
|
|
56
|
-
/**
|
|
57
|
-
* Set to false to disable the BulletList node, or pass options to configure it.
|
|
58
|
-
*/
|
|
59
|
-
bulletList?: false | Partial<BulletListOptions>;
|
|
60
|
-
/**
|
|
61
|
-
* Set to false to disable the OrderedList node, or pass options to configure it.
|
|
62
|
-
*/
|
|
63
|
-
orderedList?: false | Partial<OrderedListOptions>;
|
|
64
|
-
/**
|
|
65
|
-
* Set to false to disable the ListItem node, or pass options to configure it.
|
|
66
|
-
*/
|
|
67
|
-
listItem?: false | Partial<ListItemOptions>;
|
|
68
|
-
/**
|
|
69
|
-
* Set to false to disable the HorizontalRule node, or pass options to configure it.
|
|
70
|
-
*/
|
|
71
|
-
horizontalRule?: false | Partial<HorizontalRuleOptions>;
|
|
72
|
-
/**
|
|
73
|
-
* Set to false to disable the HardBreak node, or pass options to configure it.
|
|
74
|
-
*/
|
|
75
|
-
hardBreak?: false | Partial<HardBreakOptions>;
|
|
76
|
-
/**
|
|
77
|
-
* Set to false to disable the TaskList node, or pass options to configure it.
|
|
78
|
-
*/
|
|
79
|
-
taskList?: false | Partial<TaskListOptions>;
|
|
80
|
-
/**
|
|
81
|
-
* Set to false to disable the TaskItem node, or pass options to configure it.
|
|
82
|
-
*/
|
|
83
|
-
taskItem?: false | Partial<TaskItemOptions>;
|
|
84
|
-
/**
|
|
85
|
-
* Set to false to disable the Bold mark, or pass options to configure it.
|
|
86
|
-
*/
|
|
87
|
-
bold?: false | Partial<BoldOptions>;
|
|
88
|
-
/**
|
|
89
|
-
* Set to false to disable the Italic mark, or pass options to configure it.
|
|
90
|
-
*/
|
|
91
|
-
italic?: false | Partial<ItalicOptions>;
|
|
92
|
-
/**
|
|
93
|
-
* Set to false to disable the Underline mark, or pass options to configure it.
|
|
94
|
-
*/
|
|
95
|
-
underline?: false | Partial<UnderlineOptions>;
|
|
96
|
-
/**
|
|
97
|
-
* Set to false to disable the Strike mark, or pass options to configure it.
|
|
98
|
-
*/
|
|
99
|
-
strike?: false | Partial<StrikeOptions>;
|
|
100
|
-
/**
|
|
101
|
-
* Set to false to disable the Code mark, or pass options to configure it.
|
|
102
|
-
*/
|
|
103
|
-
code?: false | Partial<CodeOptions>;
|
|
104
|
-
/**
|
|
105
|
-
* Set to false to disable the Link mark, or pass options to configure it.
|
|
106
|
-
*/
|
|
107
|
-
link?: false | Partial<LinkOptions>;
|
|
108
|
-
/**
|
|
109
|
-
* Set to false to disable the BaseKeymap extension, or pass options to configure it.
|
|
110
|
-
*/
|
|
111
|
-
baseKeymap?: false | Partial<BaseKeymapOptions>;
|
|
112
|
-
/**
|
|
113
|
-
* Set to false to disable the History extension, or pass options to configure it.
|
|
114
|
-
*/
|
|
115
|
-
history?: false | Partial<HistoryOptions>;
|
|
116
|
-
/**
|
|
117
|
-
* Set to false to disable the Dropcursor extension, or pass options to configure it.
|
|
118
|
-
*/
|
|
119
|
-
dropcursor?: false | Partial<DropcursorOptions>;
|
|
120
|
-
/**
|
|
121
|
-
* Set to false to disable the Gapcursor extension.
|
|
122
|
-
*/
|
|
123
|
-
gapcursor?: false;
|
|
124
|
-
/**
|
|
125
|
-
* Set to false to disable the TrailingNode extension, or pass options to configure it.
|
|
126
|
-
*/
|
|
127
|
-
trailingNode?: false | Partial<TrailingNodeOptions>;
|
|
128
|
-
/**
|
|
129
|
-
* Set to false to disable the ListKeymap extension, or pass options to configure it.
|
|
130
|
-
*/
|
|
131
|
-
listKeymap?: false | Partial<ListKeymapOptions>;
|
|
132
|
-
/**
|
|
133
|
-
* Set to false to disable the LinkPopover extension, or pass options to configure it.
|
|
134
|
-
*/
|
|
135
|
-
linkPopover?: false | Partial<LinkPopoverOptions>;
|
|
136
|
-
/**
|
|
137
|
-
* Set to false to disable the SelectionDecoration extension.
|
|
138
|
-
* When enabled, the editor collapses range selections on blur to prevent
|
|
139
|
-
* ghost selections from lingering after clicking outside the editor.
|
|
140
|
-
*/
|
|
141
|
-
selectionDecoration?: false;
|
|
142
|
-
}
|
|
143
|
-
export declare const StarterKit: Extension<StarterKitOptions, unknown>;
|
|
144
|
-
//# sourceMappingURL=StarterKit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StarterKit.d.ts","sourceRoot":"","sources":["../../src/extensions/StarterKit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGtE,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGxE,MAAM,WAAW,iBAAiB;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAG5C;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAGpC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpD;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAClD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,uCA0DrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StarterKit.test.d.ts","sourceRoot":"","sources":["../../src/extensions/StarterKit.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TextAlign Extension
|
|
3
|
-
*
|
|
4
|
-
* Adds text alignment capabilities to specified node types.
|
|
5
|
-
* Uses addGlobalAttributes to inject textAlign attribute into nodes.
|
|
6
|
-
*/
|
|
7
|
-
import { Extension } from '../Extension.js';
|
|
8
|
-
declare module '../types/Commands.js' {
|
|
9
|
-
interface RawCommands {
|
|
10
|
-
setTextAlign: CommandSpec<[alignment: string]>;
|
|
11
|
-
unsetTextAlign: CommandSpec;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export interface TextAlignOptions {
|
|
15
|
-
/**
|
|
16
|
-
* Node types that can have text alignment.
|
|
17
|
-
* @default ['heading', 'paragraph']
|
|
18
|
-
*/
|
|
19
|
-
types: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Allowed alignment values.
|
|
22
|
-
* @default ['left', 'center', 'right', 'justify']
|
|
23
|
-
*/
|
|
24
|
-
alignments: string[];
|
|
25
|
-
/**
|
|
26
|
-
* Default alignment value.
|
|
27
|
-
* @default 'left'
|
|
28
|
-
*/
|
|
29
|
-
defaultAlignment: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const TextAlign: Extension<TextAlignOptions, unknown>;
|
|
32
|
-
//# sourceMappingURL=TextAlign.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextAlign.d.ts","sourceRoot":"","sources":["../../src/extensions/TextAlign.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAC/C,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,sCAiIpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextAlign.test.d.ts","sourceRoot":"","sources":["../../src/extensions/TextAlign.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TextColor Extension
|
|
3
|
-
*
|
|
4
|
-
* Adds text color styling via the TextStyle mark.
|
|
5
|
-
* Requires TextStyle mark to be enabled.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { TextStyle, TextColor } from '@domternal/core';
|
|
10
|
-
*
|
|
11
|
-
* const editor = new Editor({
|
|
12
|
-
* extensions: [
|
|
13
|
-
* // ... other extensions
|
|
14
|
-
* TextStyle,
|
|
15
|
-
* TextColor, // uses the default 25-color palette
|
|
16
|
-
* ],
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* editor.commands.setTextColor('#ff0000');
|
|
20
|
-
* editor.commands.unsetTextColor();
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
import { Extension } from '../Extension.js';
|
|
24
|
-
declare module '../types/Commands.js' {
|
|
25
|
-
interface RawCommands {
|
|
26
|
-
setTextColor: CommandSpec<[color: string]>;
|
|
27
|
-
unsetTextColor: CommandSpec;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Default 25-color palette (5 columns x 5 rows).
|
|
32
|
-
* Row 1: neutrals (black → white)
|
|
33
|
-
* Row 2: pastel tints
|
|
34
|
-
* Row 3: vivid / saturated
|
|
35
|
-
* Row 4: medium shades
|
|
36
|
-
* Row 5: dark shades
|
|
37
|
-
*
|
|
38
|
-
* Columns: Red, Orange/Yellow, Green, Blue, Purple
|
|
39
|
-
*/
|
|
40
|
-
export declare const DEFAULT_TEXT_COLORS: string[];
|
|
41
|
-
export interface TextColorOptions {
|
|
42
|
-
/**
|
|
43
|
-
* List of color values for the palette.
|
|
44
|
-
* Defaults to a 25-color grid (5 cols x 5 rows).
|
|
45
|
-
* Pass a custom array to restrict to specific colors.
|
|
46
|
-
*/
|
|
47
|
-
colors: string[];
|
|
48
|
-
/**
|
|
49
|
-
* Number of columns in the palette grid.
|
|
50
|
-
* @default 5
|
|
51
|
-
*/
|
|
52
|
-
columns: number;
|
|
53
|
-
}
|
|
54
|
-
export declare const TextColor: Extension<TextColorOptions, unknown>;
|
|
55
|
-
//# sourceMappingURL=TextColor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextColor.d.ts","sourceRoot":"","sources":["../../src/extensions/TextColor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAC3C,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAWvC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,sCA8FpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextColor.test.d.ts","sourceRoot":"","sources":["../../src/extensions/TextColor.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Extension } from '../Extension.js';
|
|
2
|
-
export interface TrailingNodeOptions {
|
|
3
|
-
/**
|
|
4
|
-
* The node type name to insert as trailing node.
|
|
5
|
-
* @default 'paragraph'
|
|
6
|
-
*/
|
|
7
|
-
node: string;
|
|
8
|
-
/**
|
|
9
|
-
* Node types after which a trailing node should NOT be added.
|
|
10
|
-
* Typically includes the trailing node type itself.
|
|
11
|
-
* @default ['paragraph']
|
|
12
|
-
*/
|
|
13
|
-
notAfter: string[];
|
|
14
|
-
}
|
|
15
|
-
export declare const TrailingNode: Extension<TrailingNodeOptions, unknown>;
|
|
16
|
-
//# sourceMappingURL=TrailingNode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrailingNode.d.ts","sourceRoot":"","sources":["../../src/extensions/TrailingNode.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAID,eAAO,MAAM,YAAY,yCA4CvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrailingNode.test.d.ts","sourceRoot":"","sources":["../../src/extensions/TrailingNode.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Extension } from '../Extension.js';
|
|
2
|
-
export interface TypographyOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Enable em-dash replacement (-- → —)
|
|
5
|
-
* @default true
|
|
6
|
-
*/
|
|
7
|
-
emDash: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Enable ellipsis replacement (... → …)
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
ellipsis: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Enable arrow replacements (<- → ←, -> → →)
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
arrows: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Enable fraction replacements (1/2 → ½, 1/4 → ¼, 3/4 → ¾)
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
fractions: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Enable symbol replacements ((c) → ©, (r) → ®, (tm) → ™)
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
symbols: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Enable math replacements (+/- → ±, != → ≠)
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
math: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Enable guillemet replacements (<< → «, >> → »)
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
guillemets: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Enable smart quote replacements ("text" → "text", 'text' → 'text')
|
|
40
|
-
* @default true
|
|
41
|
-
*/
|
|
42
|
-
smartQuotes: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Opening double quote character.
|
|
45
|
-
* @default '"'
|
|
46
|
-
*/
|
|
47
|
-
openDoubleQuote: string;
|
|
48
|
-
/**
|
|
49
|
-
* Closing double quote character.
|
|
50
|
-
* @default '"'
|
|
51
|
-
*/
|
|
52
|
-
closeDoubleQuote: string;
|
|
53
|
-
/**
|
|
54
|
-
* Opening single quote character.
|
|
55
|
-
* @default '''
|
|
56
|
-
*/
|
|
57
|
-
openSingleQuote: string;
|
|
58
|
-
/**
|
|
59
|
-
* Closing single quote character.
|
|
60
|
-
* @default '''
|
|
61
|
-
*/
|
|
62
|
-
closeSingleQuote: string;
|
|
63
|
-
}
|
|
64
|
-
export declare const Typography: Extension<TypographyOptions, unknown>;
|
|
65
|
-
//# sourceMappingURL=Typography.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/extensions/Typography.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,UAAU,uCAuGrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.test.d.ts","sourceRoot":"","sources":["../../src/extensions/Typography.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UniqueID Extension
|
|
3
|
-
*
|
|
4
|
-
* Automatically assigns unique IDs to specified node types.
|
|
5
|
-
* Useful for collaborative editing, linking, and history tracking.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { UniqueID } from '@domternal/core';
|
|
10
|
-
*
|
|
11
|
-
* const editor = new Editor({
|
|
12
|
-
* extensions: [
|
|
13
|
-
* // ... other extensions
|
|
14
|
-
* UniqueID.configure({
|
|
15
|
-
* types: ['paragraph', 'heading'],
|
|
16
|
-
* attributeName: 'id',
|
|
17
|
-
* }),
|
|
18
|
-
* ],
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
import { Extension } from '../Extension.js';
|
|
23
|
-
import { PluginKey } from '@domternal/pm/state';
|
|
24
|
-
export declare const uniqueIDPluginKey: PluginKey<any>;
|
|
25
|
-
export interface UniqueIDOptions {
|
|
26
|
-
/**
|
|
27
|
-
* Node types that should receive unique IDs.
|
|
28
|
-
* @default ['paragraph', 'heading', 'blockquote', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'listItem', 'taskItem', 'image', 'horizontalRule']
|
|
29
|
-
*/
|
|
30
|
-
types: string[];
|
|
31
|
-
/**
|
|
32
|
-
* Attribute name to store the unique ID.
|
|
33
|
-
* @default 'id'
|
|
34
|
-
*/
|
|
35
|
-
attributeName: string;
|
|
36
|
-
/**
|
|
37
|
-
* Function to generate unique IDs.
|
|
38
|
-
* @default generateUUID
|
|
39
|
-
*/
|
|
40
|
-
generateID: () => string;
|
|
41
|
-
/**
|
|
42
|
-
* Whether to filter duplicates when pasting content.
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
filterDuplicates: boolean;
|
|
46
|
-
}
|
|
47
|
-
export declare const UniqueID: Extension<UniqueIDOptions, unknown>;
|
|
48
|
-
//# sourceMappingURL=UniqueID.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UniqueID.d.ts","sourceRoot":"","sources":["../../src/extensions/UniqueID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAU,SAAS,EAAoB,MAAM,qBAAqB,CAAC;AAgB1E,eAAO,MAAM,iBAAiB,gBAA4B,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,MAAM,MAAM,CAAC;IAEzB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ,qCAuJnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UniqueID.test.d.ts","sourceRoot":"","sources":["../../src/extensions/UniqueID.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Functionality Extensions for @domternal/core
|
|
3
|
-
*/
|
|
4
|
-
export { BaseKeymap, type BaseKeymapOptions } from './BaseKeymap.js';
|
|
5
|
-
export { History, type HistoryOptions } from './History.js';
|
|
6
|
-
export { Dropcursor, type DropcursorOptions } from './Dropcursor.js';
|
|
7
|
-
export { Gapcursor } from './Gapcursor.js';
|
|
8
|
-
export { TrailingNode, type TrailingNodeOptions } from './TrailingNode.js';
|
|
9
|
-
export { Placeholder, placeholderPluginKey, type PlaceholderOptions, } from './Placeholder.js';
|
|
10
|
-
export { ListKeymap, type ListKeymapOptions } from './ListKeymap.js';
|
|
11
|
-
export { CharacterCount, characterCountPluginKey, type CharacterCountOptions, type CharacterCountStorage, } from './CharacterCount.js';
|
|
12
|
-
export { Typography, type TypographyOptions } from './Typography.js';
|
|
13
|
-
export { TextAlign, type TextAlignOptions } from './TextAlign.js';
|
|
14
|
-
export { Focus, focusPluginKey, type FocusOptions } from './Focus.js';
|
|
15
|
-
export { LineHeight, type LineHeightOptions } from './LineHeight.js';
|
|
16
|
-
export { UniqueID, uniqueIDPluginKey, type UniqueIDOptions, } from './UniqueID.js';
|
|
17
|
-
export { Selection, type SelectionOptions, type SelectionStorage, } from './Selection.js';
|
|
18
|
-
export { SelectionDecoration, selectionDecorationPluginKey, type SelectionDecorationOptions, } from './SelectionDecoration.js';
|
|
19
|
-
export { InvisibleChars, invisibleCharsPluginKey, type InvisibleCharsOptions, type InvisibleCharsStorage, } from './InvisibleChars.js';
|
|
20
|
-
export { TextColor, DEFAULT_TEXT_COLORS, type TextColorOptions } from './TextColor.js';
|
|
21
|
-
export { Highlight, DEFAULT_HIGHLIGHT_COLORS, type HighlightOptions } from './Highlight.js';
|
|
22
|
-
export { FontFamily, type FontFamilyOptions } from './FontFamily.js';
|
|
23
|
-
export { FontSize, type FontSizeOptions } from './FontSize.js';
|
|
24
|
-
export { ClearFormatting } from './ClearFormatting.js';
|
|
25
|
-
export { LinkPopover, type LinkPopoverOptions } from './LinkPopover.js';
|
|
26
|
-
export { BubbleMenu, createBubbleMenuPlugin, bubbleMenuPluginKey, type BubbleMenuOptions, type CreateBubbleMenuPluginOptions, } from './BubbleMenu.js';
|
|
27
|
-
export { FloatingMenu, createFloatingMenuPlugin, floatingMenuPluginKey, type FloatingMenuOptions, type CreateFloatingMenuPluginOptions, } from './FloatingMenu.js';
|
|
28
|
-
export { StarterKit, type StarterKitOptions } from './StarterKit.js';
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,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,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,KAAK,kBAAkB,GACxB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGrE,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,KAAK,eAAe,GACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,KAAK,0BAA0B,GAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,GACrC,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isActive-markExclusion.test.d.ts","sourceRoot":"","sources":["../../src/extensions/isActive-markExclusion.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* callOrReturn - Helper for context binding in extension config
|
|
3
|
-
*
|
|
4
|
-
* Used to call config functions with proper `this` context,
|
|
5
|
-
* or return the value directly if it's not a function.
|
|
6
|
-
*
|
|
7
|
-
* This enables patterns like:
|
|
8
|
-
* ```typescript
|
|
9
|
-
* const Bold = Mark.create({
|
|
10
|
-
* name: 'bold',
|
|
11
|
-
* addCommands() {
|
|
12
|
-
* return {
|
|
13
|
-
* toggleBold: () => ({ commands }) => {
|
|
14
|
-
* return commands.toggleMark(this.name); // this.name = 'bold'
|
|
15
|
-
* },
|
|
16
|
-
* };
|
|
17
|
-
* },
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Calls a function with the given context, or returns the value if not a function
|
|
23
|
-
*
|
|
24
|
-
* @param value - Function to call or value to return
|
|
25
|
-
* @param context - The `this` context to bind when calling the function
|
|
26
|
-
* @param args - Additional arguments to pass to the function
|
|
27
|
-
* @returns The function result or the value itself
|
|
28
|
-
*/
|
|
29
|
-
export declare function callOrReturn<T>(value: T | ((...args: unknown[]) => T), context: unknown, ...args: unknown[]): T;
|
|
30
|
-
//# sourceMappingURL=callOrReturn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"callOrReturn.d.ts","sourceRoot":"","sources":["../../src/helpers/callOrReturn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,EACtC,OAAO,EAAE,OAAO,EAChB,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,CAAC,CAKH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"callOrReturn.test.d.ts","sourceRoot":"","sources":["../../src/helpers/callOrReturn.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a ProseMirror document from content
|
|
3
|
-
*
|
|
4
|
-
* Supports JSON and HTML content formats (AD-11).
|
|
5
|
-
* Plain text is NOT supported - use HTML or JSON explicitly.
|
|
6
|
-
*/
|
|
7
|
-
import type { Schema } from '@domternal/pm/model';
|
|
8
|
-
import { Node as PMNode, DOMParser } from '@domternal/pm/model';
|
|
9
|
-
import type { Content } from '../types/index.js';
|
|
10
|
-
/**
|
|
11
|
-
* Options for createDocument
|
|
12
|
-
*/
|
|
13
|
-
export interface CreateDocumentOptions {
|
|
14
|
-
/**
|
|
15
|
-
* Parse options passed to DOMParser
|
|
16
|
-
*/
|
|
17
|
-
parseOptions?: Parameters<DOMParser['parse']>[1];
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Creates a ProseMirror document from content
|
|
21
|
-
*
|
|
22
|
-
* **Security:** Content is NOT sanitized. If accepting user-provided HTML,
|
|
23
|
-
* sanitize it first (e.g., using DOMPurify) to prevent XSS attacks.
|
|
24
|
-
*
|
|
25
|
-
* @param content - JSON content object, HTML string, or null/undefined
|
|
26
|
-
* @param schema - ProseMirror schema to use
|
|
27
|
-
* @param options - Optional parse options
|
|
28
|
-
* @returns ProseMirror Node (document)
|
|
29
|
-
*
|
|
30
|
-
* @throws Error if content format is invalid (plain text without HTML tags)
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* // JSON content
|
|
35
|
-
* const doc = createDocument(
|
|
36
|
-
* { type: 'doc', content: [{ type: 'paragraph' }] },
|
|
37
|
-
* schema
|
|
38
|
-
* );
|
|
39
|
-
*
|
|
40
|
-
* // HTML content
|
|
41
|
-
* const doc = createDocument('<p>Hello world</p>', schema);
|
|
42
|
-
*
|
|
43
|
-
* // Empty document
|
|
44
|
-
* const doc = createDocument(null, schema);
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function createDocument(content: Content | null | undefined, schema: Schema, options?: CreateDocumentOptions): PMNode;
|
|
48
|
-
//# sourceMappingURL=createDocument.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDocument.d.ts","sourceRoot":"","sources":["../../src/helpers/createDocument.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,MAAM,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,mBAAmB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAClD;AA+DD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EACnC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,qBAAqB,GAC9B,MAAM,CA6BR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDocument.test.d.ts","sourceRoot":"","sources":["../../src/helpers/createDocument.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the default block type at a given content match position
|
|
3
|
-
*
|
|
4
|
-
* Finds the first textblock type that can be created without required attributes.
|
|
5
|
-
* Useful for creating new empty blocks (e.g., paragraph after details).
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* const type = defaultBlockAt(parent.contentMatchAt(index));
|
|
9
|
-
* if (type) {
|
|
10
|
-
* const node = type.createAndFill();
|
|
11
|
-
* }
|
|
12
|
-
*/
|
|
13
|
-
import type { ContentMatch, NodeType } from '@domternal/pm/model';
|
|
14
|
-
export declare const defaultBlockAt: (match: ContentMatch) => NodeType | null;
|
|
15
|
-
//# sourceMappingURL=defaultBlockAt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultBlockAt.d.ts","sourceRoot":"","sources":["../../src/helpers/defaultBlockAt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAElE,eAAO,MAAM,cAAc,GAAI,OAAO,YAAY,KAAG,QAAQ,GAAG,IAU/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultBlockAt.test.d.ts","sourceRoot":"","sources":["../../src/helpers/defaultBlockAt.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Find all children of a node matching a predicate
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* const summaries = findChildren(detailsNode, node => node.type.name === 'detailsSummary');
|
|
6
|
-
*/
|
|
7
|
-
import type { Node as PMNode } from '@domternal/pm/model';
|
|
8
|
-
export interface FindChildResult {
|
|
9
|
-
node: PMNode;
|
|
10
|
-
pos: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const findChildren: (node: PMNode, predicate: (node: PMNode) => boolean) => FindChildResult[];
|
|
13
|
-
//# sourceMappingURL=findChildren.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findChildren.d.ts","sourceRoot":"","sources":["../../src/helpers/findChildren.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,WAAW,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,KACnC,eAAe,EAUjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findChildren.test.d.ts","sourceRoot":"","sources":["../../src/helpers/findChildren.test.ts"],"names":[],"mappings":""}
|