@tiptap/core 2.11.7 → 3.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +5 -1
- package/dist/index.cjs +5046 -5070
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3326 -0
- package/dist/index.d.ts +3326 -25
- package/dist/index.js +4930 -4976
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime/jsx-runtime.cjs +56 -0
- package/dist/jsx-runtime/jsx-runtime.cjs.map +1 -0
- package/dist/jsx-runtime/jsx-runtime.d.cts +22 -0
- package/dist/jsx-runtime/jsx-runtime.d.ts +22 -0
- package/dist/jsx-runtime/jsx-runtime.js +26 -0
- package/dist/jsx-runtime/jsx-runtime.js.map +1 -0
- package/jsx-runtime/index.cjs +1 -0
- package/jsx-runtime/index.d.cts +1 -0
- package/jsx-runtime/index.d.ts +1 -0
- package/jsx-runtime/index.js +1 -0
- package/package.json +28 -9
- package/src/CommandManager.ts +4 -11
- package/src/Editor.ts +219 -103
- package/src/EventEmitter.ts +7 -10
- package/src/Extendable.ts +484 -0
- package/src/Extension.ts +17 -492
- package/src/ExtensionManager.ts +88 -140
- package/src/InputRule.ts +40 -51
- package/src/Mark.ts +146 -623
- package/src/MarkView.ts +66 -0
- package/src/Node.ts +332 -825
- package/src/NodePos.ts +3 -5
- package/src/NodeView.ts +14 -26
- package/src/PasteRule.ts +46 -56
- package/src/Tracker.ts +8 -10
- package/src/commands/blur.ts +15 -13
- package/src/commands/clearContent.ts +13 -6
- package/src/commands/clearNodes.ts +33 -31
- package/src/commands/command.ts +2 -2
- package/src/commands/createParagraphNear.ts +6 -4
- package/src/commands/cut.ts +13 -11
- package/src/commands/deleteCurrentNode.ts +24 -22
- package/src/commands/deleteNode.ts +20 -18
- package/src/commands/deleteRange.ts +11 -9
- package/src/commands/deleteSelection.ts +6 -4
- package/src/commands/enter.ts +7 -5
- package/src/commands/exitCode.ts +6 -4
- package/src/commands/extendMarkRange.ts +16 -14
- package/src/commands/first.ts +3 -5
- package/src/commands/focus.ts +50 -53
- package/src/commands/forEach.ts +3 -3
- package/src/commands/insertContent.ts +14 -16
- package/src/commands/insertContentAt.ts +111 -95
- package/src/commands/join.ts +21 -13
- package/src/commands/joinItemBackward.ts +17 -19
- package/src/commands/joinItemForward.ts +17 -19
- package/src/commands/joinTextblockBackward.ts +6 -4
- package/src/commands/joinTextblockForward.ts +6 -4
- package/src/commands/keyboardShortcut.ts +30 -35
- package/src/commands/lift.ts +12 -10
- package/src/commands/liftEmptyBlock.ts +7 -5
- package/src/commands/liftListItem.ts +8 -6
- package/src/commands/newlineInCode.ts +6 -4
- package/src/commands/resetAttributes.ts +38 -43
- package/src/commands/scrollIntoView.ts +10 -8
- package/src/commands/selectAll.ts +11 -9
- package/src/commands/selectNodeBackward.ts +6 -4
- package/src/commands/selectNodeForward.ts +6 -4
- package/src/commands/selectParentNode.ts +6 -4
- package/src/commands/selectTextblockEnd.ts +6 -4
- package/src/commands/selectTextblockStart.ts +6 -4
- package/src/commands/setContent.ts +39 -38
- package/src/commands/setMark.ts +58 -60
- package/src/commands/setMeta.ts +8 -6
- package/src/commands/setNode.ts +34 -32
- package/src/commands/setNodeSelection.ts +12 -10
- package/src/commands/setTextSelection.ts +16 -14
- package/src/commands/sinkListItem.ts +8 -6
- package/src/commands/splitBlock.ts +70 -78
- package/src/commands/splitListItem.ts +95 -107
- package/src/commands/toggleList.ts +76 -74
- package/src/commands/toggleMark.ts +13 -11
- package/src/commands/toggleNode.ts +20 -18
- package/src/commands/toggleWrap.ts +12 -10
- package/src/commands/undoInputRule.ts +32 -30
- package/src/commands/unsetAllMarks.ts +17 -15
- package/src/commands/unsetMark.ts +29 -27
- package/src/commands/updateAttributes.ts +94 -102
- package/src/commands/wrapIn.ts +8 -6
- package/src/commands/wrapInList.ts +8 -6
- package/src/extensions/clipboardTextSerializer.ts +2 -4
- package/src/extensions/delete.ts +89 -0
- package/src/extensions/focusEvents.ts +2 -6
- package/src/extensions/index.ts +1 -0
- package/src/extensions/keymap.ts +54 -50
- package/src/extensions/paste.ts +0 -1
- package/src/extensions/tabindex.ts +1 -1
- package/src/helpers/combineTransactionSteps.ts +3 -6
- package/src/helpers/createChainableState.ts +2 -5
- package/src/helpers/createDocument.ts +2 -4
- package/src/helpers/createNodeFromContent.ts +7 -12
- package/src/helpers/defaultBlockAt.ts +1 -1
- package/src/helpers/findChildren.ts +2 -2
- package/src/helpers/findChildrenInRange.ts +3 -7
- package/src/helpers/findParentNode.ts +5 -3
- package/src/helpers/findParentNodeClosestToPos.ts +2 -2
- package/src/helpers/flattenExtensions.ts +30 -0
- package/src/helpers/generateHTML.ts +1 -1
- package/src/helpers/generateJSON.ts +1 -1
- package/src/helpers/generateText.ts +1 -1
- package/src/helpers/getAttributes.ts +3 -6
- package/src/helpers/getAttributesFromExtensions.ts +29 -38
- package/src/helpers/getChangedRanges.ts +15 -13
- package/src/helpers/getDebugJSON.ts +2 -2
- package/src/helpers/getExtensionField.ts +12 -12
- package/src/helpers/getHTMLFromFragment.ts +2 -1
- package/src/helpers/getMarkAttributes.ts +3 -6
- package/src/helpers/getMarkRange.ts +7 -17
- package/src/helpers/getMarkType.ts +2 -4
- package/src/helpers/getMarksBetween.ts +2 -2
- package/src/helpers/getNodeAtPosition.ts +2 -2
- package/src/helpers/getNodeAttributes.ts +3 -6
- package/src/helpers/getNodeType.ts +2 -4
- package/src/helpers/getRenderedAttributes.ts +3 -5
- package/src/helpers/getSchema.ts +5 -5
- package/src/helpers/getSchemaByResolvedExtensions.ts +47 -78
- package/src/helpers/getSchemaTypeByName.ts +1 -1
- package/src/helpers/getSchemaTypeNameByName.ts +1 -1
- package/src/helpers/getSplittedAttributes.ts +5 -5
- package/src/helpers/getText.ts +2 -2
- package/src/helpers/getTextBetween.ts +2 -2
- package/src/helpers/getTextContentFromNodes.ts +9 -12
- package/src/helpers/getTextSerializersFromSchema.ts +2 -2
- package/src/helpers/index.ts +3 -0
- package/src/helpers/injectExtensionAttributesToParseRule.ts +3 -3
- package/src/helpers/isActive.ts +2 -6
- package/src/helpers/isAtEndOfNode.ts +1 -1
- package/src/helpers/isAtStartOfNode.ts +1 -1
- package/src/helpers/isExtensionRulesEnabled.ts +2 -4
- package/src/helpers/isList.ts +2 -2
- package/src/helpers/isMarkActive.ts +3 -3
- package/src/helpers/isNodeActive.ts +3 -3
- package/src/helpers/isNodeEmpty.ts +3 -3
- package/src/helpers/posToDOMRect.ts +1 -1
- package/src/helpers/resolveExtensions.ts +25 -0
- package/src/helpers/resolveFocusPosition.ts +5 -16
- package/src/helpers/rewriteUnknownContent.ts +25 -24
- package/src/helpers/selectionToInsertionEnd.ts +2 -1
- package/src/helpers/sortExtensions.ts +26 -0
- package/src/helpers/splitExtensions.ts +4 -4
- package/src/index.ts +3 -7
- package/src/inputRules/markInputRule.ts +5 -8
- package/src/inputRules/nodeInputRule.ts +6 -12
- package/src/inputRules/textInputRule.ts +3 -5
- package/src/inputRules/textblockTypeInputRule.ts +6 -11
- package/src/inputRules/wrappingInputRule.ts +18 -23
- package/src/jsx-runtime.ts +64 -0
- package/src/pasteRules/markPasteRule.ts +5 -6
- package/src/pasteRules/nodePasteRule.ts +6 -11
- package/src/pasteRules/textPasteRule.ts +3 -5
- package/src/style.ts +0 -4
- package/src/types.ts +534 -179
- package/src/utilities/callOrReturn.ts +1 -1
- package/src/utilities/createStyleTag.ts +3 -1
- package/src/utilities/deleteProps.ts +7 -11
- package/src/utilities/elementFromString.ts +3 -0
- package/src/utilities/findDuplicates.ts +4 -1
- package/src/utilities/index.ts +1 -0
- package/src/utilities/isMacOS.ts +1 -3
- package/src/utilities/isiOS.ts +5 -10
- package/src/utilities/mergeAttributes.ts +16 -6
- package/src/utilities/removeDuplicates.ts +1 -3
- package/dist/CommandManager.d.ts +0 -21
- package/dist/CommandManager.d.ts.map +0 -1
- package/dist/Editor.d.ts +0 -166
- package/dist/Editor.d.ts.map +0 -1
- package/dist/EventEmitter.d.ts +0 -13
- package/dist/EventEmitter.d.ts.map +0 -1
- package/dist/Extension.d.ts +0 -345
- package/dist/Extension.d.ts.map +0 -1
- package/dist/ExtensionManager.d.ts +0 -57
- package/dist/ExtensionManager.d.ts.map +0 -1
- package/dist/InputRule.d.ts +0 -43
- package/dist/InputRule.d.ts.map +0 -1
- package/dist/Mark.d.ts +0 -453
- package/dist/Mark.d.ts.map +0 -1
- package/dist/Node.d.ts +0 -629
- package/dist/Node.d.ts.map +0 -1
- package/dist/NodePos.d.ts +0 -45
- package/dist/NodePos.d.ts.map +0 -1
- package/dist/NodeView.d.ts +0 -41
- package/dist/NodeView.d.ts.map +0 -1
- package/dist/PasteRule.d.ts +0 -51
- package/dist/PasteRule.d.ts.map +0 -1
- package/dist/Tracker.d.ts +0 -12
- package/dist/Tracker.d.ts.map +0 -1
- package/dist/commands/blur.d.ts +0 -14
- package/dist/commands/blur.d.ts.map +0 -1
- package/dist/commands/clearContent.d.ts +0 -15
- package/dist/commands/clearContent.d.ts.map +0 -1
- package/dist/commands/clearNodes.d.ts +0 -14
- package/dist/commands/clearNodes.d.ts.map +0 -1
- package/dist/commands/command.d.ts +0 -19
- package/dist/commands/command.d.ts.map +0 -1
- package/dist/commands/createParagraphNear.d.ts +0 -14
- package/dist/commands/createParagraphNear.d.ts.map +0 -1
- package/dist/commands/cut.d.ts +0 -21
- package/dist/commands/cut.d.ts.map +0 -1
- package/dist/commands/deleteCurrentNode.d.ts +0 -14
- package/dist/commands/deleteCurrentNode.d.ts.map +0 -1
- package/dist/commands/deleteNode.d.ts +0 -16
- package/dist/commands/deleteNode.d.ts.map +0 -1
- package/dist/commands/deleteRange.d.ts +0 -15
- package/dist/commands/deleteRange.d.ts.map +0 -1
- package/dist/commands/deleteSelection.d.ts +0 -14
- package/dist/commands/deleteSelection.d.ts.map +0 -1
- package/dist/commands/enter.d.ts +0 -14
- package/dist/commands/enter.d.ts.map +0 -1
- package/dist/commands/exitCode.d.ts +0 -14
- package/dist/commands/exitCode.d.ts.map +0 -1
- package/dist/commands/extendMarkRange.d.ts +0 -26
- package/dist/commands/extendMarkRange.d.ts.map +0 -1
- package/dist/commands/first.d.ts +0 -15
- package/dist/commands/first.d.ts.map +0 -1
- package/dist/commands/focus.d.ts +0 -28
- package/dist/commands/focus.d.ts.map +0 -1
- package/dist/commands/forEach.d.ts +0 -15
- package/dist/commands/forEach.d.ts.map +0 -1
- package/dist/commands/index.d.ts +0 -56
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/insertContent.d.ts +0 -35
- package/dist/commands/insertContent.d.ts.map +0 -1
- package/dist/commands/insertContentAt.d.ts +0 -48
- package/dist/commands/insertContentAt.d.ts.map +0 -1
- package/dist/commands/join.d.ts +0 -42
- package/dist/commands/join.d.ts.map +0 -1
- package/dist/commands/joinItemBackward.d.ts +0 -14
- package/dist/commands/joinItemBackward.d.ts.map +0 -1
- package/dist/commands/joinItemForward.d.ts +0 -14
- package/dist/commands/joinItemForward.d.ts.map +0 -1
- package/dist/commands/joinTextblockBackward.d.ts +0 -13
- package/dist/commands/joinTextblockBackward.d.ts.map +0 -1
- package/dist/commands/joinTextblockForward.d.ts +0 -13
- package/dist/commands/joinTextblockForward.d.ts.map +0 -1
- package/dist/commands/keyboardShortcut.d.ts +0 -15
- package/dist/commands/keyboardShortcut.d.ts.map +0 -1
- package/dist/commands/lift.d.ts +0 -18
- package/dist/commands/lift.d.ts.map +0 -1
- package/dist/commands/liftEmptyBlock.d.ts +0 -14
- package/dist/commands/liftEmptyBlock.d.ts.map +0 -1
- package/dist/commands/liftListItem.d.ts +0 -16
- package/dist/commands/liftListItem.d.ts.map +0 -1
- package/dist/commands/newlineInCode.d.ts +0 -14
- package/dist/commands/newlineInCode.d.ts.map +0 -1
- package/dist/commands/resetAttributes.d.ts +0 -17
- package/dist/commands/resetAttributes.d.ts.map +0 -1
- package/dist/commands/scrollIntoView.d.ts +0 -14
- package/dist/commands/scrollIntoView.d.ts.map +0 -1
- package/dist/commands/selectAll.d.ts +0 -14
- package/dist/commands/selectAll.d.ts.map +0 -1
- package/dist/commands/selectNodeBackward.d.ts +0 -14
- package/dist/commands/selectNodeBackward.d.ts.map +0 -1
- package/dist/commands/selectNodeForward.d.ts +0 -14
- package/dist/commands/selectNodeForward.d.ts.map +0 -1
- package/dist/commands/selectParentNode.d.ts +0 -14
- package/dist/commands/selectParentNode.d.ts.map +0 -1
- package/dist/commands/selectTextblockEnd.d.ts +0 -14
- package/dist/commands/selectTextblockEnd.d.ts.map +0 -1
- package/dist/commands/selectTextblockStart.d.ts +0 -14
- package/dist/commands/selectTextblockStart.d.ts.map +0 -1
- package/dist/commands/setContent.d.ts +0 -41
- package/dist/commands/setContent.d.ts.map +0 -1
- package/dist/commands/setMark.d.ts +0 -16
- package/dist/commands/setMark.d.ts.map +0 -1
- package/dist/commands/setMeta.d.ts +0 -17
- package/dist/commands/setMeta.d.ts.map +0 -1
- package/dist/commands/setNode.d.ts +0 -17
- package/dist/commands/setNode.d.ts.map +0 -1
- package/dist/commands/setNodeSelection.d.ts +0 -15
- package/dist/commands/setNodeSelection.d.ts.map +0 -1
- package/dist/commands/setTextSelection.d.ts +0 -15
- package/dist/commands/setTextSelection.d.ts.map +0 -1
- package/dist/commands/sinkListItem.d.ts +0 -16
- package/dist/commands/sinkListItem.d.ts.map +0 -1
- package/dist/commands/splitBlock.d.ts +0 -18
- package/dist/commands/splitBlock.d.ts.map +0 -1
- package/dist/commands/splitListItem.d.ts +0 -17
- package/dist/commands/splitListItem.d.ts.map +0 -1
- package/dist/commands/toggleList.d.ts +0 -19
- package/dist/commands/toggleList.d.ts.map +0 -1
- package/dist/commands/toggleMark.d.ts +0 -31
- package/dist/commands/toggleMark.d.ts.map +0 -1
- package/dist/commands/toggleNode.d.ts +0 -18
- package/dist/commands/toggleNode.d.ts.map +0 -1
- package/dist/commands/toggleWrap.d.ts +0 -17
- package/dist/commands/toggleWrap.d.ts.map +0 -1
- package/dist/commands/undoInputRule.d.ts +0 -14
- package/dist/commands/undoInputRule.d.ts.map +0 -1
- package/dist/commands/unsetAllMarks.d.ts +0 -14
- package/dist/commands/unsetAllMarks.d.ts.map +0 -1
- package/dist/commands/unsetMark.d.ts +0 -26
- package/dist/commands/unsetMark.d.ts.map +0 -1
- package/dist/commands/updateAttributes.d.ts +0 -25
- package/dist/commands/updateAttributes.d.ts.map +0 -1
- package/dist/commands/wrapIn.d.ts +0 -17
- package/dist/commands/wrapIn.d.ts.map +0 -1
- package/dist/commands/wrapInList.d.ts +0 -17
- package/dist/commands/wrapInList.d.ts.map +0 -1
- package/dist/extensions/clipboardTextSerializer.d.ts +0 -6
- package/dist/extensions/clipboardTextSerializer.d.ts.map +0 -1
- package/dist/extensions/commands.d.ts +0 -4
- package/dist/extensions/commands.d.ts.map +0 -1
- package/dist/extensions/drop.d.ts +0 -3
- package/dist/extensions/drop.d.ts.map +0 -1
- package/dist/extensions/editable.d.ts +0 -3
- package/dist/extensions/editable.d.ts.map +0 -1
- package/dist/extensions/focusEvents.d.ts +0 -5
- package/dist/extensions/focusEvents.d.ts.map +0 -1
- package/dist/extensions/index.d.ts +0 -9
- package/dist/extensions/index.d.ts.map +0 -1
- package/dist/extensions/keymap.d.ts +0 -3
- package/dist/extensions/keymap.d.ts.map +0 -1
- package/dist/extensions/paste.d.ts +0 -3
- package/dist/extensions/paste.d.ts.map +0 -1
- package/dist/extensions/tabindex.d.ts +0 -3
- package/dist/extensions/tabindex.d.ts.map +0 -1
- package/dist/helpers/combineTransactionSteps.d.ts +0 -11
- package/dist/helpers/combineTransactionSteps.d.ts.map +0 -1
- package/dist/helpers/createChainableState.d.ts +0 -11
- package/dist/helpers/createChainableState.d.ts.map +0 -1
- package/dist/helpers/createDocument.d.ts +0 -13
- package/dist/helpers/createDocument.d.ts.map +0 -1
- package/dist/helpers/createNodeFromContent.d.ts +0 -16
- package/dist/helpers/createNodeFromContent.d.ts.map +0 -1
- package/dist/helpers/defaultBlockAt.d.ts +0 -8
- package/dist/helpers/defaultBlockAt.d.ts.map +0 -1
- package/dist/helpers/findChildren.d.ts +0 -10
- package/dist/helpers/findChildren.d.ts.map +0 -1
- package/dist/helpers/findChildrenInRange.d.ts +0 -11
- package/dist/helpers/findChildrenInRange.d.ts.map +0 -1
- package/dist/helpers/findParentNode.d.ts +0 -17
- package/dist/helpers/findParentNode.d.ts.map +0 -1
- package/dist/helpers/findParentNodeClosestToPos.d.ts +0 -18
- package/dist/helpers/findParentNodeClosestToPos.d.ts.map +0 -1
- package/dist/helpers/generateHTML.d.ts +0 -9
- package/dist/helpers/generateHTML.d.ts.map +0 -1
- package/dist/helpers/generateJSON.d.ts +0 -9
- package/dist/helpers/generateJSON.d.ts.map +0 -1
- package/dist/helpers/generateText.d.ts +0 -13
- package/dist/helpers/generateText.d.ts.map +0 -1
- package/dist/helpers/getAttributes.d.ts +0 -10
- package/dist/helpers/getAttributes.d.ts.map +0 -1
- package/dist/helpers/getAttributesFromExtensions.d.ts +0 -7
- package/dist/helpers/getAttributesFromExtensions.d.ts.map +0 -1
- package/dist/helpers/getChangedRanges.d.ts +0 -12
- package/dist/helpers/getChangedRanges.d.ts.map +0 -1
- package/dist/helpers/getDebugJSON.d.ts +0 -9
- package/dist/helpers/getDebugJSON.d.ts.map +0 -1
- package/dist/helpers/getExtensionField.d.ts +0 -10
- package/dist/helpers/getExtensionField.d.ts.map +0 -1
- package/dist/helpers/getHTMLFromFragment.d.ts +0 -3
- package/dist/helpers/getHTMLFromFragment.d.ts.map +0 -1
- package/dist/helpers/getMarkAttributes.d.ts +0 -4
- package/dist/helpers/getMarkAttributes.d.ts.map +0 -1
- package/dist/helpers/getMarkRange.d.ts +0 -20
- package/dist/helpers/getMarkRange.d.ts.map +0 -1
- package/dist/helpers/getMarkType.d.ts +0 -3
- package/dist/helpers/getMarkType.d.ts.map +0 -1
- package/dist/helpers/getMarksBetween.d.ts +0 -4
- package/dist/helpers/getMarksBetween.d.ts.map +0 -1
- package/dist/helpers/getNodeAtPosition.d.ts +0 -12
- package/dist/helpers/getNodeAtPosition.d.ts.map +0 -1
- package/dist/helpers/getNodeAttributes.d.ts +0 -4
- package/dist/helpers/getNodeAttributes.d.ts.map +0 -1
- package/dist/helpers/getNodeType.d.ts +0 -3
- package/dist/helpers/getNodeType.d.ts.map +0 -1
- package/dist/helpers/getRenderedAttributes.d.ts +0 -4
- package/dist/helpers/getRenderedAttributes.d.ts.map +0 -1
- package/dist/helpers/getSchema.d.ts +0 -5
- package/dist/helpers/getSchema.d.ts.map +0 -1
- package/dist/helpers/getSchemaByResolvedExtensions.d.ts +0 -11
- package/dist/helpers/getSchemaByResolvedExtensions.d.ts.map +0 -1
- package/dist/helpers/getSchemaTypeByName.d.ts +0 -9
- package/dist/helpers/getSchemaTypeByName.d.ts.map +0 -1
- package/dist/helpers/getSchemaTypeNameByName.d.ts +0 -9
- package/dist/helpers/getSchemaTypeNameByName.d.ts.map +0 -1
- package/dist/helpers/getSplittedAttributes.d.ts +0 -10
- package/dist/helpers/getSplittedAttributes.d.ts.map +0 -1
- package/dist/helpers/getText.d.ts +0 -16
- package/dist/helpers/getText.d.ts.map +0 -1
- package/dist/helpers/getTextBetween.d.ts +0 -15
- package/dist/helpers/getTextBetween.d.ts.map +0 -1
- package/dist/helpers/getTextContentFromNodes.d.ts +0 -9
- package/dist/helpers/getTextContentFromNodes.d.ts.map +0 -1
- package/dist/helpers/getTextSerializersFromSchema.d.ts +0 -9
- package/dist/helpers/getTextSerializersFromSchema.d.ts.map +0 -1
- package/dist/helpers/index.d.ts +0 -52
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/injectExtensionAttributesToParseRule.d.ts +0 -10
- package/dist/helpers/injectExtensionAttributesToParseRule.d.ts.map +0 -1
- package/dist/helpers/isActive.d.ts +0 -3
- package/dist/helpers/isActive.d.ts.map +0 -1
- package/dist/helpers/isAtEndOfNode.d.ts +0 -3
- package/dist/helpers/isAtEndOfNode.d.ts.map +0 -1
- package/dist/helpers/isAtStartOfNode.d.ts +0 -3
- package/dist/helpers/isAtStartOfNode.d.ts.map +0 -1
- package/dist/helpers/isExtensionRulesEnabled.d.ts +0 -3
- package/dist/helpers/isExtensionRulesEnabled.d.ts.map +0 -1
- package/dist/helpers/isList.d.ts +0 -3
- package/dist/helpers/isList.d.ts.map +0 -1
- package/dist/helpers/isMarkActive.d.ts +0 -4
- package/dist/helpers/isMarkActive.d.ts.map +0 -1
- package/dist/helpers/isNodeActive.d.ts +0 -4
- package/dist/helpers/isNodeActive.d.ts.map +0 -1
- package/dist/helpers/isNodeEmpty.d.ts +0 -15
- package/dist/helpers/isNodeEmpty.d.ts.map +0 -1
- package/dist/helpers/isNodeSelection.d.ts +0 -3
- package/dist/helpers/isNodeSelection.d.ts.map +0 -1
- package/dist/helpers/isTextSelection.d.ts +0 -3
- package/dist/helpers/isTextSelection.d.ts.map +0 -1
- package/dist/helpers/posToDOMRect.d.ts +0 -3
- package/dist/helpers/posToDOMRect.d.ts.map +0 -1
- package/dist/helpers/resolveFocusPosition.d.ts +0 -5
- package/dist/helpers/resolveFocusPosition.d.ts.map +0 -1
- package/dist/helpers/rewriteUnknownContent.d.ts +0 -46
- package/dist/helpers/rewriteUnknownContent.d.ts.map +0 -1
- package/dist/helpers/selectionToInsertionEnd.d.ts +0 -3
- package/dist/helpers/selectionToInsertionEnd.d.ts.map +0 -1
- package/dist/helpers/splitExtensions.d.ts +0 -10
- package/dist/helpers/splitExtensions.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.umd.js +0 -5525
- package/dist/index.umd.js.map +0 -1
- package/dist/inputRules/index.d.ts +0 -6
- package/dist/inputRules/index.d.ts.map +0 -1
- package/dist/inputRules/markInputRule.d.ts +0 -14
- package/dist/inputRules/markInputRule.d.ts.map +0 -1
- package/dist/inputRules/nodeInputRule.d.ts +0 -24
- package/dist/inputRules/nodeInputRule.d.ts.map +0 -1
- package/dist/inputRules/textInputRule.d.ts +0 -11
- package/dist/inputRules/textInputRule.d.ts.map +0 -1
- package/dist/inputRules/textblockTypeInputRule.d.ts +0 -16
- package/dist/inputRules/textblockTypeInputRule.d.ts.map +0 -1
- package/dist/inputRules/wrappingInputRule.d.ts +0 -29
- package/dist/inputRules/wrappingInputRule.d.ts.map +0 -1
- package/dist/pasteRules/index.d.ts +0 -4
- package/dist/pasteRules/index.d.ts.map +0 -1
- package/dist/pasteRules/markPasteRule.d.ts +0 -14
- package/dist/pasteRules/markPasteRule.d.ts.map +0 -1
- package/dist/pasteRules/nodePasteRule.d.ts +0 -15
- package/dist/pasteRules/nodePasteRule.d.ts.map +0 -1
- package/dist/pasteRules/textPasteRule.d.ts +0 -11
- package/dist/pasteRules/textPasteRule.d.ts.map +0 -1
- package/dist/style.d.ts +0 -2
- package/dist/style.d.ts.map +0 -1
- package/dist/types.d.ts +0 -323
- package/dist/types.d.ts.map +0 -1
- package/dist/utilities/callOrReturn.d.ts +0 -10
- package/dist/utilities/callOrReturn.d.ts.map +0 -1
- package/dist/utilities/createStyleTag.d.ts +0 -2
- package/dist/utilities/createStyleTag.d.ts.map +0 -1
- package/dist/utilities/deleteProps.d.ts +0 -7
- package/dist/utilities/deleteProps.d.ts.map +0 -1
- package/dist/utilities/elementFromString.d.ts +0 -2
- package/dist/utilities/elementFromString.d.ts.map +0 -1
- package/dist/utilities/escapeForRegEx.d.ts +0 -2
- package/dist/utilities/escapeForRegEx.d.ts.map +0 -1
- package/dist/utilities/findDuplicates.d.ts +0 -2
- package/dist/utilities/findDuplicates.d.ts.map +0 -1
- package/dist/utilities/fromString.d.ts +0 -2
- package/dist/utilities/fromString.d.ts.map +0 -1
- package/dist/utilities/index.d.ts +0 -21
- package/dist/utilities/index.d.ts.map +0 -1
- package/dist/utilities/isAndroid.d.ts +0 -2
- package/dist/utilities/isAndroid.d.ts.map +0 -1
- package/dist/utilities/isEmptyObject.d.ts +0 -2
- package/dist/utilities/isEmptyObject.d.ts.map +0 -1
- package/dist/utilities/isFunction.d.ts +0 -2
- package/dist/utilities/isFunction.d.ts.map +0 -1
- package/dist/utilities/isMacOS.d.ts +0 -2
- package/dist/utilities/isMacOS.d.ts.map +0 -1
- package/dist/utilities/isNumber.d.ts +0 -2
- package/dist/utilities/isNumber.d.ts.map +0 -1
- package/dist/utilities/isPlainObject.d.ts +0 -2
- package/dist/utilities/isPlainObject.d.ts.map +0 -1
- package/dist/utilities/isRegExp.d.ts +0 -2
- package/dist/utilities/isRegExp.d.ts.map +0 -1
- package/dist/utilities/isString.d.ts +0 -2
- package/dist/utilities/isString.d.ts.map +0 -1
- package/dist/utilities/isiOS.d.ts +0 -2
- package/dist/utilities/isiOS.d.ts.map +0 -1
- package/dist/utilities/mergeAttributes.d.ts +0 -2
- package/dist/utilities/mergeAttributes.d.ts.map +0 -1
- package/dist/utilities/mergeDeep.d.ts +0 -2
- package/dist/utilities/mergeDeep.d.ts.map +0 -1
- package/dist/utilities/minMax.d.ts +0 -2
- package/dist/utilities/minMax.d.ts.map +0 -1
- package/dist/utilities/objectIncludes.d.ts +0 -9
- package/dist/utilities/objectIncludes.d.ts.map +0 -1
- package/dist/utilities/removeDuplicates.d.ts +0 -9
- package/dist/utilities/removeDuplicates.d.ts.map +0 -1
package/dist/Node.d.ts
DELETED
|
@@ -1,629 +0,0 @@
|
|
|
1
|
-
import { DOMOutputSpec, Node as ProseMirrorNode, NodeSpec, NodeType } from '@tiptap/pm/model';
|
|
2
|
-
import { Plugin, Transaction } from '@tiptap/pm/state';
|
|
3
|
-
import { Editor } from './Editor.js';
|
|
4
|
-
import { NodeConfig } from './index.js';
|
|
5
|
-
import { InputRule } from './InputRule.js';
|
|
6
|
-
import { Mark } from './Mark.js';
|
|
7
|
-
import { PasteRule } from './PasteRule.js';
|
|
8
|
-
import { Attributes, Extensions, GlobalAttributes, KeyboardShortcutCommand, NodeViewRenderer, ParentConfig, RawCommands } from './types.js';
|
|
9
|
-
declare module '@tiptap/core' {
|
|
10
|
-
interface NodeConfig<Options = any, Storage = any> {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
/**
|
|
13
|
-
* The extension name - this must be unique.
|
|
14
|
-
* It will be used to identify the extension.
|
|
15
|
-
*
|
|
16
|
-
* @example 'myExtension'
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
/**
|
|
20
|
-
* The priority of your extension. The higher, the earlier it will be called
|
|
21
|
-
* and will take precedence over other extensions with a lower priority.
|
|
22
|
-
* @default 100
|
|
23
|
-
* @example 101
|
|
24
|
-
*/
|
|
25
|
-
priority?: number;
|
|
26
|
-
/**
|
|
27
|
-
* The default options for this extension.
|
|
28
|
-
* @example
|
|
29
|
-
* defaultOptions: {
|
|
30
|
-
* myOption: 'foo',
|
|
31
|
-
* myOtherOption: 10,
|
|
32
|
-
* }
|
|
33
|
-
*/
|
|
34
|
-
defaultOptions?: Options;
|
|
35
|
-
/**
|
|
36
|
-
* This method will add options to this extension
|
|
37
|
-
* @see https://tiptap.dev/guide/custom-extensions#settings
|
|
38
|
-
* @example
|
|
39
|
-
* addOptions() {
|
|
40
|
-
* return {
|
|
41
|
-
* myOption: 'foo',
|
|
42
|
-
* myOtherOption: 10,
|
|
43
|
-
* }
|
|
44
|
-
*/
|
|
45
|
-
addOptions?: (this: {
|
|
46
|
-
name: string;
|
|
47
|
-
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addOptions'], undefined>;
|
|
48
|
-
}) => Options;
|
|
49
|
-
/**
|
|
50
|
-
* The default storage this extension can save data to.
|
|
51
|
-
* @see https://tiptap.dev/guide/custom-extensions#storage
|
|
52
|
-
* @example
|
|
53
|
-
* defaultStorage: {
|
|
54
|
-
* prefetchedUsers: [],
|
|
55
|
-
* loading: false,
|
|
56
|
-
* }
|
|
57
|
-
*/
|
|
58
|
-
addStorage?: (this: {
|
|
59
|
-
name: string;
|
|
60
|
-
options: Options;
|
|
61
|
-
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addStorage'], undefined>;
|
|
62
|
-
}) => Storage;
|
|
63
|
-
/**
|
|
64
|
-
* This function adds globalAttributes to specific nodes.
|
|
65
|
-
* @see https://tiptap.dev/guide/custom-extensions#global-attributes
|
|
66
|
-
* @example
|
|
67
|
-
* addGlobalAttributes() {
|
|
68
|
-
* return [
|
|
69
|
-
* {
|
|
70
|
-
// Extend the following extensions
|
|
71
|
-
* types: [
|
|
72
|
-
* 'heading',
|
|
73
|
-
* 'paragraph',
|
|
74
|
-
* ],
|
|
75
|
-
* // … with those attributes
|
|
76
|
-
* attributes: {
|
|
77
|
-
* textAlign: {
|
|
78
|
-
* default: 'left',
|
|
79
|
-
* renderHTML: attributes => ({
|
|
80
|
-
* style: `text-align: ${attributes.textAlign}`,
|
|
81
|
-
* }),
|
|
82
|
-
* parseHTML: element => element.style.textAlign || 'left',
|
|
83
|
-
* },
|
|
84
|
-
* },
|
|
85
|
-
* },
|
|
86
|
-
* ]
|
|
87
|
-
* }
|
|
88
|
-
*/
|
|
89
|
-
addGlobalAttributes?: (this: {
|
|
90
|
-
name: string;
|
|
91
|
-
options: Options;
|
|
92
|
-
storage: Storage;
|
|
93
|
-
extensions: (Node | Mark)[];
|
|
94
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addGlobalAttributes'];
|
|
95
|
-
}) => GlobalAttributes;
|
|
96
|
-
/**
|
|
97
|
-
* This function adds commands to the editor
|
|
98
|
-
* @see https://tiptap.dev/guide/custom-extensions#keyboard-shortcuts
|
|
99
|
-
* @example
|
|
100
|
-
* addCommands() {
|
|
101
|
-
* return {
|
|
102
|
-
* myCommand: () => ({ chain }) => chain().setMark('type', 'foo').run(),
|
|
103
|
-
* }
|
|
104
|
-
* }
|
|
105
|
-
*/
|
|
106
|
-
addCommands?: (this: {
|
|
107
|
-
name: string;
|
|
108
|
-
options: Options;
|
|
109
|
-
storage: Storage;
|
|
110
|
-
editor: Editor;
|
|
111
|
-
type: NodeType;
|
|
112
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addCommands'];
|
|
113
|
-
}) => Partial<RawCommands>;
|
|
114
|
-
/**
|
|
115
|
-
* This function registers keyboard shortcuts.
|
|
116
|
-
* @see https://tiptap.dev/guide/custom-extensions#keyboard-shortcuts
|
|
117
|
-
* @example
|
|
118
|
-
* addKeyboardShortcuts() {
|
|
119
|
-
* return {
|
|
120
|
-
* 'Mod-l': () => this.editor.commands.toggleBulletList(),
|
|
121
|
-
* }
|
|
122
|
-
* },
|
|
123
|
-
*/
|
|
124
|
-
addKeyboardShortcuts?: (this: {
|
|
125
|
-
name: string;
|
|
126
|
-
options: Options;
|
|
127
|
-
storage: Storage;
|
|
128
|
-
editor: Editor;
|
|
129
|
-
type: NodeType;
|
|
130
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addKeyboardShortcuts'];
|
|
131
|
-
}) => {
|
|
132
|
-
[key: string]: KeyboardShortcutCommand;
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* This function adds input rules to the editor.
|
|
136
|
-
* @see https://tiptap.dev/guide/custom-extensions#input-rules
|
|
137
|
-
* @example
|
|
138
|
-
* addInputRules() {
|
|
139
|
-
* return [
|
|
140
|
-
* markInputRule({
|
|
141
|
-
* find: inputRegex,
|
|
142
|
-
* type: this.type,
|
|
143
|
-
* }),
|
|
144
|
-
* ]
|
|
145
|
-
* },
|
|
146
|
-
*/
|
|
147
|
-
addInputRules?: (this: {
|
|
148
|
-
name: string;
|
|
149
|
-
options: Options;
|
|
150
|
-
storage: Storage;
|
|
151
|
-
editor: Editor;
|
|
152
|
-
type: NodeType;
|
|
153
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addInputRules'];
|
|
154
|
-
}) => InputRule[];
|
|
155
|
-
/**
|
|
156
|
-
* This function adds paste rules to the editor.
|
|
157
|
-
* @see https://tiptap.dev/guide/custom-extensions#paste-rules
|
|
158
|
-
* @example
|
|
159
|
-
* addPasteRules() {
|
|
160
|
-
* return [
|
|
161
|
-
* markPasteRule({
|
|
162
|
-
* find: pasteRegex,
|
|
163
|
-
* type: this.type,
|
|
164
|
-
* }),
|
|
165
|
-
* ]
|
|
166
|
-
* },
|
|
167
|
-
*/
|
|
168
|
-
addPasteRules?: (this: {
|
|
169
|
-
name: string;
|
|
170
|
-
options: Options;
|
|
171
|
-
storage: Storage;
|
|
172
|
-
editor: Editor;
|
|
173
|
-
type: NodeType;
|
|
174
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addPasteRules'];
|
|
175
|
-
}) => PasteRule[];
|
|
176
|
-
/**
|
|
177
|
-
* This function adds Prosemirror plugins to the editor
|
|
178
|
-
* @see https://tiptap.dev/guide/custom-extensions#prosemirror-plugins
|
|
179
|
-
* @example
|
|
180
|
-
* addProseMirrorPlugins() {
|
|
181
|
-
* return [
|
|
182
|
-
* customPlugin(),
|
|
183
|
-
* ]
|
|
184
|
-
* }
|
|
185
|
-
*/
|
|
186
|
-
addProseMirrorPlugins?: (this: {
|
|
187
|
-
name: string;
|
|
188
|
-
options: Options;
|
|
189
|
-
storage: Storage;
|
|
190
|
-
editor: Editor;
|
|
191
|
-
type: NodeType;
|
|
192
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addProseMirrorPlugins'];
|
|
193
|
-
}) => Plugin[];
|
|
194
|
-
/**
|
|
195
|
-
* This function adds additional extensions to the editor. This is useful for
|
|
196
|
-
* building extension kits.
|
|
197
|
-
* @example
|
|
198
|
-
* addExtensions() {
|
|
199
|
-
* return [
|
|
200
|
-
* BulletList,
|
|
201
|
-
* OrderedList,
|
|
202
|
-
* ListItem
|
|
203
|
-
* ]
|
|
204
|
-
* }
|
|
205
|
-
*/
|
|
206
|
-
addExtensions?: (this: {
|
|
207
|
-
name: string;
|
|
208
|
-
options: Options;
|
|
209
|
-
storage: Storage;
|
|
210
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addExtensions'];
|
|
211
|
-
}) => Extensions;
|
|
212
|
-
/**
|
|
213
|
-
* This function extends the schema of the node.
|
|
214
|
-
* @example
|
|
215
|
-
* extendNodeSchema() {
|
|
216
|
-
* return {
|
|
217
|
-
* group: 'inline',
|
|
218
|
-
* selectable: false,
|
|
219
|
-
* }
|
|
220
|
-
* }
|
|
221
|
-
*/
|
|
222
|
-
extendNodeSchema?: ((this: {
|
|
223
|
-
name: string;
|
|
224
|
-
options: Options;
|
|
225
|
-
storage: Storage;
|
|
226
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['extendNodeSchema'];
|
|
227
|
-
}, extension: Node) => Record<string, any>) | null;
|
|
228
|
-
/**
|
|
229
|
-
* This function extends the schema of the mark.
|
|
230
|
-
* @example
|
|
231
|
-
* extendMarkSchema() {
|
|
232
|
-
* return {
|
|
233
|
-
* group: 'inline',
|
|
234
|
-
* selectable: false,
|
|
235
|
-
* }
|
|
236
|
-
* }
|
|
237
|
-
*/
|
|
238
|
-
extendMarkSchema?: ((this: {
|
|
239
|
-
name: string;
|
|
240
|
-
options: Options;
|
|
241
|
-
storage: Storage;
|
|
242
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['extendMarkSchema'];
|
|
243
|
-
editor?: Editor;
|
|
244
|
-
}, extension: Node) => Record<string, any>) | null;
|
|
245
|
-
/**
|
|
246
|
-
* The editor is not ready yet.
|
|
247
|
-
*/
|
|
248
|
-
onBeforeCreate?: ((this: {
|
|
249
|
-
name: string;
|
|
250
|
-
options: Options;
|
|
251
|
-
storage: Storage;
|
|
252
|
-
editor: Editor;
|
|
253
|
-
type: NodeType;
|
|
254
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onBeforeCreate'];
|
|
255
|
-
}) => void) | null;
|
|
256
|
-
/**
|
|
257
|
-
* The editor is ready.
|
|
258
|
-
*/
|
|
259
|
-
onCreate?: ((this: {
|
|
260
|
-
name: string;
|
|
261
|
-
options: Options;
|
|
262
|
-
storage: Storage;
|
|
263
|
-
editor: Editor;
|
|
264
|
-
type: NodeType;
|
|
265
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onCreate'];
|
|
266
|
-
}) => void) | null;
|
|
267
|
-
/**
|
|
268
|
-
* The content has changed.
|
|
269
|
-
*/
|
|
270
|
-
onUpdate?: ((this: {
|
|
271
|
-
name: string;
|
|
272
|
-
options: Options;
|
|
273
|
-
storage: Storage;
|
|
274
|
-
editor: Editor;
|
|
275
|
-
type: NodeType;
|
|
276
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onUpdate'];
|
|
277
|
-
}) => void) | null;
|
|
278
|
-
/**
|
|
279
|
-
* The selection has changed.
|
|
280
|
-
*/
|
|
281
|
-
onSelectionUpdate?: ((this: {
|
|
282
|
-
name: string;
|
|
283
|
-
options: Options;
|
|
284
|
-
storage: Storage;
|
|
285
|
-
editor: Editor;
|
|
286
|
-
type: NodeType;
|
|
287
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onSelectionUpdate'];
|
|
288
|
-
}) => void) | null;
|
|
289
|
-
/**
|
|
290
|
-
* The editor state has changed.
|
|
291
|
-
*/
|
|
292
|
-
onTransaction?: ((this: {
|
|
293
|
-
name: string;
|
|
294
|
-
options: Options;
|
|
295
|
-
storage: Storage;
|
|
296
|
-
editor: Editor;
|
|
297
|
-
type: NodeType;
|
|
298
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onTransaction'];
|
|
299
|
-
}, props: {
|
|
300
|
-
editor: Editor;
|
|
301
|
-
transaction: Transaction;
|
|
302
|
-
}) => void) | null;
|
|
303
|
-
/**
|
|
304
|
-
* The editor is focused.
|
|
305
|
-
*/
|
|
306
|
-
onFocus?: ((this: {
|
|
307
|
-
name: string;
|
|
308
|
-
options: Options;
|
|
309
|
-
storage: Storage;
|
|
310
|
-
editor: Editor;
|
|
311
|
-
type: NodeType;
|
|
312
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onFocus'];
|
|
313
|
-
}, props: {
|
|
314
|
-
event: FocusEvent;
|
|
315
|
-
}) => void) | null;
|
|
316
|
-
/**
|
|
317
|
-
* The editor isn’t focused anymore.
|
|
318
|
-
*/
|
|
319
|
-
onBlur?: ((this: {
|
|
320
|
-
name: string;
|
|
321
|
-
options: Options;
|
|
322
|
-
storage: Storage;
|
|
323
|
-
editor: Editor;
|
|
324
|
-
type: NodeType;
|
|
325
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onBlur'];
|
|
326
|
-
}, props: {
|
|
327
|
-
event: FocusEvent;
|
|
328
|
-
}) => void) | null;
|
|
329
|
-
/**
|
|
330
|
-
* The editor is destroyed.
|
|
331
|
-
*/
|
|
332
|
-
onDestroy?: ((this: {
|
|
333
|
-
name: string;
|
|
334
|
-
options: Options;
|
|
335
|
-
storage: Storage;
|
|
336
|
-
editor: Editor;
|
|
337
|
-
type: NodeType;
|
|
338
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['onDestroy'];
|
|
339
|
-
}) => void) | null;
|
|
340
|
-
/**
|
|
341
|
-
* Node View
|
|
342
|
-
*/
|
|
343
|
-
addNodeView?: ((this: {
|
|
344
|
-
name: string;
|
|
345
|
-
options: Options;
|
|
346
|
-
storage: Storage;
|
|
347
|
-
editor: Editor;
|
|
348
|
-
type: NodeType;
|
|
349
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addNodeView'];
|
|
350
|
-
}) => NodeViewRenderer) | null;
|
|
351
|
-
/**
|
|
352
|
-
* Defines if this node should be a top level node (doc)
|
|
353
|
-
* @default false
|
|
354
|
-
* @example true
|
|
355
|
-
*/
|
|
356
|
-
topNode?: boolean;
|
|
357
|
-
/**
|
|
358
|
-
* The content expression for this node, as described in the [schema
|
|
359
|
-
* guide](/docs/guide/#schema.content_expressions). When not given,
|
|
360
|
-
* the node does not allow any content.
|
|
361
|
-
*
|
|
362
|
-
* You can read more about it on the Prosemirror documentation here
|
|
363
|
-
* @see https://prosemirror.net/docs/guide/#schema.content_expressions
|
|
364
|
-
* @default undefined
|
|
365
|
-
* @example content: 'block+'
|
|
366
|
-
* @example content: 'headline paragraph block*'
|
|
367
|
-
*/
|
|
368
|
-
content?: NodeSpec['content'] | ((this: {
|
|
369
|
-
name: string;
|
|
370
|
-
options: Options;
|
|
371
|
-
storage: Storage;
|
|
372
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['content'];
|
|
373
|
-
editor?: Editor;
|
|
374
|
-
}) => NodeSpec['content']);
|
|
375
|
-
/**
|
|
376
|
-
* The marks that are allowed inside of this node. May be a
|
|
377
|
-
* space-separated string referring to mark names or groups, `"_"`
|
|
378
|
-
* to explicitly allow all marks, or `""` to disallow marks. When
|
|
379
|
-
* not given, nodes with inline content default to allowing all
|
|
380
|
-
* marks, other nodes default to not allowing marks.
|
|
381
|
-
*
|
|
382
|
-
* @example marks: 'strong em'
|
|
383
|
-
*/
|
|
384
|
-
marks?: NodeSpec['marks'] | ((this: {
|
|
385
|
-
name: string;
|
|
386
|
-
options: Options;
|
|
387
|
-
storage: Storage;
|
|
388
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['marks'];
|
|
389
|
-
editor?: Editor;
|
|
390
|
-
}) => NodeSpec['marks']);
|
|
391
|
-
/**
|
|
392
|
-
* The group or space-separated groups to which this node belongs,
|
|
393
|
-
* which can be referred to in the content expressions for the
|
|
394
|
-
* schema.
|
|
395
|
-
*
|
|
396
|
-
* By default Tiptap uses the groups 'block' and 'inline' for nodes. You
|
|
397
|
-
* can also use custom groups if you want to group specific nodes together
|
|
398
|
-
* and handle them in your schema.
|
|
399
|
-
* @example group: 'block'
|
|
400
|
-
* @example group: 'inline'
|
|
401
|
-
* @example group: 'customBlock' // this uses a custom group
|
|
402
|
-
*/
|
|
403
|
-
group?: NodeSpec['group'] | ((this: {
|
|
404
|
-
name: string;
|
|
405
|
-
options: Options;
|
|
406
|
-
storage: Storage;
|
|
407
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['group'];
|
|
408
|
-
editor?: Editor;
|
|
409
|
-
}) => NodeSpec['group']);
|
|
410
|
-
/**
|
|
411
|
-
* Should be set to true for inline nodes. (Implied for text nodes.)
|
|
412
|
-
*/
|
|
413
|
-
inline?: NodeSpec['inline'] | ((this: {
|
|
414
|
-
name: string;
|
|
415
|
-
options: Options;
|
|
416
|
-
storage: Storage;
|
|
417
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['inline'];
|
|
418
|
-
editor?: Editor;
|
|
419
|
-
}) => NodeSpec['inline']);
|
|
420
|
-
/**
|
|
421
|
-
* Can be set to true to indicate that, though this isn't a [leaf
|
|
422
|
-
* node](https://prosemirror.net/docs/ref/#model.NodeType.isLeaf), it doesn't have directly editable
|
|
423
|
-
* content and should be treated as a single unit in the view.
|
|
424
|
-
*
|
|
425
|
-
* @example atom: true
|
|
426
|
-
*/
|
|
427
|
-
atom?: NodeSpec['atom'] | ((this: {
|
|
428
|
-
name: string;
|
|
429
|
-
options: Options;
|
|
430
|
-
storage: Storage;
|
|
431
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['atom'];
|
|
432
|
-
editor?: Editor;
|
|
433
|
-
}) => NodeSpec['atom']);
|
|
434
|
-
/**
|
|
435
|
-
* Controls whether nodes of this type can be selected as a [node
|
|
436
|
-
* selection](https://prosemirror.net/docs/ref/#state.NodeSelection). Defaults to true for non-text
|
|
437
|
-
* nodes.
|
|
438
|
-
*
|
|
439
|
-
* @default true
|
|
440
|
-
* @example selectable: false
|
|
441
|
-
*/
|
|
442
|
-
selectable?: NodeSpec['selectable'] | ((this: {
|
|
443
|
-
name: string;
|
|
444
|
-
options: Options;
|
|
445
|
-
storage: Storage;
|
|
446
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['selectable'];
|
|
447
|
-
editor?: Editor;
|
|
448
|
-
}) => NodeSpec['selectable']);
|
|
449
|
-
/**
|
|
450
|
-
* Determines whether nodes of this type can be dragged without
|
|
451
|
-
* being selected. Defaults to false.
|
|
452
|
-
*
|
|
453
|
-
* @default: false
|
|
454
|
-
* @example: draggable: true
|
|
455
|
-
*/
|
|
456
|
-
draggable?: NodeSpec['draggable'] | ((this: {
|
|
457
|
-
name: string;
|
|
458
|
-
options: Options;
|
|
459
|
-
storage: Storage;
|
|
460
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['draggable'];
|
|
461
|
-
editor?: Editor;
|
|
462
|
-
}) => NodeSpec['draggable']);
|
|
463
|
-
/**
|
|
464
|
-
* Can be used to indicate that this node contains code, which
|
|
465
|
-
* causes some commands to behave differently.
|
|
466
|
-
*/
|
|
467
|
-
code?: NodeSpec['code'] | ((this: {
|
|
468
|
-
name: string;
|
|
469
|
-
options: Options;
|
|
470
|
-
storage: Storage;
|
|
471
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['code'];
|
|
472
|
-
editor?: Editor;
|
|
473
|
-
}) => NodeSpec['code']);
|
|
474
|
-
/**
|
|
475
|
-
* Controls way whitespace in this a node is parsed. The default is
|
|
476
|
-
* `"normal"`, which causes the [DOM parser](https://prosemirror.net/docs/ref/#model.DOMParser) to
|
|
477
|
-
* collapse whitespace in normal mode, and normalize it (replacing
|
|
478
|
-
* newlines and such with spaces) otherwise. `"pre"` causes the
|
|
479
|
-
* parser to preserve spaces inside the node. When this option isn't
|
|
480
|
-
* given, but [`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) is true, `whitespace`
|
|
481
|
-
* will default to `"pre"`. Note that this option doesn't influence
|
|
482
|
-
* the way the node is rendered—that should be handled by `toDOM`
|
|
483
|
-
* and/or styling.
|
|
484
|
-
*/
|
|
485
|
-
whitespace?: NodeSpec['whitespace'] | ((this: {
|
|
486
|
-
name: string;
|
|
487
|
-
options: Options;
|
|
488
|
-
storage: Storage;
|
|
489
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['whitespace'];
|
|
490
|
-
editor?: Editor;
|
|
491
|
-
}) => NodeSpec['whitespace']);
|
|
492
|
-
/**
|
|
493
|
-
* Allows a **single** node to be set as linebreak equivalent (e.g. hardBreak).
|
|
494
|
-
* When converting between block types that have whitespace set to "pre"
|
|
495
|
-
* and don't support the linebreak node (e.g. codeBlock) and other block types
|
|
496
|
-
* that do support the linebreak node (e.g. paragraphs) - this node will be used
|
|
497
|
-
* as the linebreak instead of stripping the newline.
|
|
498
|
-
*
|
|
499
|
-
* See [linebreakReplacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement).
|
|
500
|
-
*/
|
|
501
|
-
linebreakReplacement?: NodeSpec['linebreakReplacement'] | ((this: {
|
|
502
|
-
name: string;
|
|
503
|
-
options: Options;
|
|
504
|
-
storage: Storage;
|
|
505
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['linebreakReplacement'];
|
|
506
|
-
editor?: Editor;
|
|
507
|
-
}) => NodeSpec['linebreakReplacement']);
|
|
508
|
-
/**
|
|
509
|
-
* When enabled, enables both
|
|
510
|
-
* [`definingAsContext`](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext) and
|
|
511
|
-
* [`definingForContent`](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
|
|
512
|
-
*
|
|
513
|
-
* @default false
|
|
514
|
-
* @example isolating: true
|
|
515
|
-
*/
|
|
516
|
-
defining?: NodeSpec['defining'] | ((this: {
|
|
517
|
-
name: string;
|
|
518
|
-
options: Options;
|
|
519
|
-
storage: Storage;
|
|
520
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['defining'];
|
|
521
|
-
editor?: Editor;
|
|
522
|
-
}) => NodeSpec['defining']);
|
|
523
|
-
/**
|
|
524
|
-
* When enabled (default is false), the sides of nodes of this type
|
|
525
|
-
* count as boundaries that regular editing operations, like
|
|
526
|
-
* backspacing or lifting, won't cross. An example of a node that
|
|
527
|
-
* should probably have this enabled is a table cell.
|
|
528
|
-
*/
|
|
529
|
-
isolating?: NodeSpec['isolating'] | ((this: {
|
|
530
|
-
name: string;
|
|
531
|
-
options: Options;
|
|
532
|
-
storage: Storage;
|
|
533
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['isolating'];
|
|
534
|
-
editor?: Editor;
|
|
535
|
-
}) => NodeSpec['isolating']);
|
|
536
|
-
/**
|
|
537
|
-
* Associates DOM parser information with this node, which can be
|
|
538
|
-
* used by [`DOMParser.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMParser^fromSchema) to
|
|
539
|
-
* automatically derive a parser. The `node` field in the rules is
|
|
540
|
-
* implied (the name of this node will be filled in automatically).
|
|
541
|
-
* If you supply your own parser, you do not need to also specify
|
|
542
|
-
* parsing rules in your schema.
|
|
543
|
-
*
|
|
544
|
-
* @example parseHTML: [{ tag: 'div', attrs: { 'data-id': 'my-block' } }]
|
|
545
|
-
*/
|
|
546
|
-
parseHTML?: (this: {
|
|
547
|
-
name: string;
|
|
548
|
-
options: Options;
|
|
549
|
-
storage: Storage;
|
|
550
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['parseHTML'];
|
|
551
|
-
editor?: Editor;
|
|
552
|
-
}) => NodeSpec['parseDOM'];
|
|
553
|
-
/**
|
|
554
|
-
* A description of a DOM structure. Can be either a string, which is
|
|
555
|
-
* interpreted as a text node, a DOM node, which is interpreted as
|
|
556
|
-
* itself, a `{dom, contentDOM}` object, or an array.
|
|
557
|
-
*
|
|
558
|
-
* An array describes a DOM element. The first value in the array
|
|
559
|
-
* should be a string—the name of the DOM element, optionally prefixed
|
|
560
|
-
* by a namespace URL and a space. If the second element is plain
|
|
561
|
-
* object, it is interpreted as a set of attributes for the element.
|
|
562
|
-
* Any elements after that (including the 2nd if it's not an attribute
|
|
563
|
-
* object) are interpreted as children of the DOM elements, and must
|
|
564
|
-
* either be valid `DOMOutputSpec` values, or the number zero.
|
|
565
|
-
*
|
|
566
|
-
* The number zero (pronounced “hole”) is used to indicate the place
|
|
567
|
-
* where a node's child nodes should be inserted. If it occurs in an
|
|
568
|
-
* output spec, it should be the only child element in its parent
|
|
569
|
-
* node.
|
|
570
|
-
*
|
|
571
|
-
* @example toDOM: ['div[data-id="my-block"]', { class: 'my-block' }, 0]
|
|
572
|
-
*/
|
|
573
|
-
renderHTML?: ((this: {
|
|
574
|
-
name: string;
|
|
575
|
-
options: Options;
|
|
576
|
-
storage: Storage;
|
|
577
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['renderHTML'];
|
|
578
|
-
editor?: Editor;
|
|
579
|
-
}, props: {
|
|
580
|
-
node: ProseMirrorNode;
|
|
581
|
-
HTMLAttributes: Record<string, any>;
|
|
582
|
-
}) => DOMOutputSpec) | null;
|
|
583
|
-
/**
|
|
584
|
-
* renders the node as text
|
|
585
|
-
* @example renderText: () => 'foo
|
|
586
|
-
*/
|
|
587
|
-
renderText?: ((this: {
|
|
588
|
-
name: string;
|
|
589
|
-
options: Options;
|
|
590
|
-
storage: Storage;
|
|
591
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['renderText'];
|
|
592
|
-
editor?: Editor;
|
|
593
|
-
}, props: {
|
|
594
|
-
node: ProseMirrorNode;
|
|
595
|
-
pos: number;
|
|
596
|
-
parent: ProseMirrorNode;
|
|
597
|
-
index: number;
|
|
598
|
-
}) => string) | null;
|
|
599
|
-
/**
|
|
600
|
-
* Add attributes to the node
|
|
601
|
-
* @example addAttributes: () => ({ class: 'foo' })
|
|
602
|
-
*/
|
|
603
|
-
addAttributes?: (this: {
|
|
604
|
-
name: string;
|
|
605
|
-
options: Options;
|
|
606
|
-
storage: Storage;
|
|
607
|
-
parent: ParentConfig<NodeConfig<Options, Storage>>['addAttributes'];
|
|
608
|
-
editor?: Editor;
|
|
609
|
-
}) => Attributes | {};
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* The Node class is used to create custom node extensions.
|
|
614
|
-
* @see https://tiptap.dev/api/extensions#create-a-new-extension
|
|
615
|
-
*/
|
|
616
|
-
export declare class Node<Options = any, Storage = any> {
|
|
617
|
-
type: string;
|
|
618
|
-
name: string;
|
|
619
|
-
parent: Node | null;
|
|
620
|
-
child: Node | null;
|
|
621
|
-
options: Options;
|
|
622
|
-
storage: Storage;
|
|
623
|
-
config: NodeConfig;
|
|
624
|
-
constructor(config?: Partial<NodeConfig<Options, Storage>>);
|
|
625
|
-
static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>>): Node<O, S>;
|
|
626
|
-
configure(options?: Partial<Options>): Node<Options, Storage>;
|
|
627
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node<ExtendedOptions, ExtendedStorage>;
|
|
628
|
-
}
|
|
629
|
-
//# sourceMappingURL=Node.d.ts.map
|
package/dist/Node.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAAE,IAAI,IAAI,eAAe,EAAE,QAAQ,EAAE,QAAQ,EAC3D,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAEL,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,YAAY,CAAA;AAInB,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG;QAE/C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;QAElB;;;;;WAKG;QACH,IAAI,EAAE,MAAM,CAAA;QAEZ;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAA;QAEjB;;;;;;;WAOG;QACH,cAAc,CAAC,EAAE,OAAO,CAAA;QAExB;;;;;;;;;WASG;QACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE;YAClB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