@tiptap/extension-gapcursor 2.0.0-beta.20 → 2.0.0-beta.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packages/extension-gapcursor/src/gapcursor.d.ts +3 -2
- package/dist/tiptap-extension-gapcursor.cjs.js +2 -1
- package/dist/tiptap-extension-gapcursor.cjs.js.map +1 -1
- package/dist/tiptap-extension-gapcursor.esm.js +1 -0
- package/dist/tiptap-extension-gapcursor.esm.js.map +1 -1
- package/dist/tiptap-extension-gapcursor.umd.js +5 -4
- package/dist/tiptap-extension-gapcursor.umd.js.map +1 -1
- package/package.json +4 -6
- package/src/gapcursor.ts +4 -2
- package/LICENSE.md +0 -21
- package/dist/demos/setup/helper.d.ts +0 -2
- package/dist/demos/setup/react.d.ts +0 -3
- package/dist/demos/setup/vue.d.ts +0 -3
- package/dist/demos/src/Examples/Savvy/Vue/ColorHighlighter.d.ts +0 -2
- package/dist/demos/src/Examples/Savvy/Vue/SmilieReplacer.d.ts +0 -2
- package/dist/demos/src/Examples/Savvy/Vue/findColors.d.ts +0 -3
- package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationItem.d.ts +0 -10
- package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationPlugin.d.ts +0 -12
- package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationState.d.ts +0 -27
- package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.d.ts +0 -49
- package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/index.d.ts +0 -3
- package/dist/demos/src/Experiments/Details/Vue/details-summary.d.ts +0 -8
- package/dist/demos/src/Experiments/Details/Vue/details.d.ts +0 -26
- package/dist/demos/src/Experiments/Embeds/Vue/iframe.d.ts +0 -21
- package/dist/demos/src/Experiments/Figure/Vue/figure.d.ts +0 -29
- package/dist/demos/src/Experiments/GenericFigure/Vue/figcaption.d.ts +0 -4
- package/dist/demos/src/Experiments/GenericFigure/Vue/figure.d.ts +0 -4
- package/dist/demos/src/Experiments/Linter/Vue/extension/Linter.d.ts +0 -6
- package/dist/demos/src/Experiments/Linter/Vue/extension/LinterPlugin.d.ts +0 -15
- package/dist/demos/src/Experiments/Linter/Vue/extension/index.d.ts +0 -6
- package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/BadWords.d.ts +0 -5
- package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/HeadingLevel.d.ts +0 -6
- package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/Punctuation.d.ts +0 -7
- package/dist/demos/src/Experiments/TrailingNode/Vue/trailing-node.d.ts +0 -11
- package/dist/demos/vite.config.d.ts +0 -2
- package/dist/packages/core/src/CommandManager.d.ts +0 -13
- package/dist/packages/core/src/Editor.d.ts +0 -140
- package/dist/packages/core/src/EventEmitter.d.ts +0 -7
- package/dist/packages/core/src/Extension.d.ts +0 -193
- package/dist/packages/core/src/ExtensionManager.d.ts +0 -18
- package/dist/packages/core/src/Mark.d.ts +0 -269
- package/dist/packages/core/src/Node.d.ts +0 -339
- package/dist/packages/core/src/NodeView.d.ts +0 -27
- package/dist/packages/core/src/Tracker.d.ts +0 -11
- package/dist/packages/core/src/commands/blur.d.ts +0 -12
- package/dist/packages/core/src/commands/clearContent.d.ts +0 -12
- package/dist/packages/core/src/commands/clearNodes.d.ts +0 -12
- package/dist/packages/core/src/commands/command.d.ts +0 -12
- package/dist/packages/core/src/commands/createParagraphNear.d.ts +0 -12
- package/dist/packages/core/src/commands/deleteNode.d.ts +0 -13
- package/dist/packages/core/src/commands/deleteRange.d.ts +0 -12
- package/dist/packages/core/src/commands/deleteSelection.d.ts +0 -12
- package/dist/packages/core/src/commands/enter.d.ts +0 -12
- package/dist/packages/core/src/commands/exitCode.d.ts +0 -12
- package/dist/packages/core/src/commands/extendMarkRange.d.ts +0 -13
- package/dist/packages/core/src/commands/first.d.ts +0 -12
- package/dist/packages/core/src/commands/focus.d.ts +0 -12
- package/dist/packages/core/src/commands/forEach.d.ts +0 -14
- package/dist/packages/core/src/commands/insertContent.d.ts +0 -13
- package/dist/packages/core/src/commands/insertContentAt.d.ts +0 -13
- package/dist/packages/core/src/commands/joinBackward.d.ts +0 -12
- package/dist/packages/core/src/commands/joinForward.d.ts +0 -12
- package/dist/packages/core/src/commands/keyboardShortcut.d.ts +0 -12
- package/dist/packages/core/src/commands/lift.d.ts +0 -13
- package/dist/packages/core/src/commands/liftEmptyBlock.d.ts +0 -12
- package/dist/packages/core/src/commands/liftListItem.d.ts +0 -13
- package/dist/packages/core/src/commands/newlineInCode.d.ts +0 -12
- package/dist/packages/core/src/commands/resetAttributes.d.ts +0 -13
- package/dist/packages/core/src/commands/scrollIntoView.d.ts +0 -12
- package/dist/packages/core/src/commands/selectAll.d.ts +0 -12
- package/dist/packages/core/src/commands/selectNodeBackward.d.ts +0 -12
- package/dist/packages/core/src/commands/selectNodeForward.d.ts +0 -12
- package/dist/packages/core/src/commands/selectParentNode.d.ts +0 -12
- package/dist/packages/core/src/commands/setContent.d.ts +0 -13
- package/dist/packages/core/src/commands/setMark.d.ts +0 -13
- package/dist/packages/core/src/commands/setMeta.d.ts +0 -12
- package/dist/packages/core/src/commands/setNode.d.ts +0 -13
- package/dist/packages/core/src/commands/setNodeSelection.d.ts +0 -12
- package/dist/packages/core/src/commands/setTextSelection.d.ts +0 -12
- package/dist/packages/core/src/commands/sinkListItem.d.ts +0 -13
- package/dist/packages/core/src/commands/splitBlock.d.ts +0 -14
- package/dist/packages/core/src/commands/splitListItem.d.ts +0 -13
- package/dist/packages/core/src/commands/toggleList.d.ts +0 -13
- package/dist/packages/core/src/commands/toggleMark.d.ts +0 -18
- package/dist/packages/core/src/commands/toggleNode.d.ts +0 -13
- package/dist/packages/core/src/commands/toggleWrap.d.ts +0 -13
- package/dist/packages/core/src/commands/undoInputRule.d.ts +0 -12
- package/dist/packages/core/src/commands/unsetAllMarks.d.ts +0 -12
- package/dist/packages/core/src/commands/unsetMark.d.ts +0 -18
- package/dist/packages/core/src/commands/updateAttributes.d.ts +0 -13
- package/dist/packages/core/src/commands/wrapIn.d.ts +0 -13
- package/dist/packages/core/src/commands/wrapInList.d.ts +0 -13
- package/dist/packages/core/src/extensions/clipboardTextSerializer.d.ts +0 -2
- package/dist/packages/core/src/extensions/commands.d.ts +0 -98
- package/dist/packages/core/src/extensions/editable.d.ts +0 -2
- package/dist/packages/core/src/extensions/focusEvents.d.ts +0 -2
- package/dist/packages/core/src/extensions/index.d.ts +0 -5
- package/dist/packages/core/src/extensions/keymap.d.ts +0 -2
- package/dist/packages/core/src/helpers/createDocument.d.ts +0 -3
- package/dist/packages/core/src/helpers/createNodeFromContent.d.ts +0 -7
- package/dist/packages/core/src/helpers/findChildren.d.ts +0 -3
- package/dist/packages/core/src/helpers/findChildrenInRange.d.ts +0 -6
- package/dist/packages/core/src/helpers/findParentNode.d.ts +0 -9
- package/dist/packages/core/src/helpers/findParentNodeClosestToPos.d.ts +0 -8
- package/dist/packages/core/src/helpers/generateHTML.d.ts +0 -2
- package/dist/packages/core/src/helpers/generateJSON.d.ts +0 -2
- package/dist/packages/core/src/helpers/generateText.d.ts +0 -5
- package/dist/packages/core/src/helpers/getAttributes.d.ts +0 -3
- package/dist/packages/core/src/helpers/getAttributesFromExtensions.d.ts +0 -6
- package/dist/packages/core/src/helpers/getDebugJSON.d.ts +0 -8
- package/dist/packages/core/src/helpers/getExtensionField.d.ts +0 -2
- package/dist/packages/core/src/helpers/getHTMLFromFragment.d.ts +0 -2
- package/dist/packages/core/src/helpers/getMarkAttributes.d.ts +0 -3
- package/dist/packages/core/src/helpers/getMarkRange.d.ts +0 -3
- package/dist/packages/core/src/helpers/getMarkType.d.ts +0 -2
- package/dist/packages/core/src/helpers/getMarksBetween.d.ts +0 -3
- package/dist/packages/core/src/helpers/getNodeAttributes.d.ts +0 -3
- package/dist/packages/core/src/helpers/getNodeType.d.ts +0 -2
- package/dist/packages/core/src/helpers/getRenderedAttributes.d.ts +0 -3
- package/dist/packages/core/src/helpers/getSchema.d.ts +0 -3
- package/dist/packages/core/src/helpers/getSchemaByResolvedExtensions.d.ts +0 -3
- package/dist/packages/core/src/helpers/getSchemaTypeByName.d.ts +0 -2
- package/dist/packages/core/src/helpers/getSchemaTypeNameByName.d.ts +0 -2
- package/dist/packages/core/src/helpers/getSplittedAttributes.d.ts +0 -2
- package/dist/packages/core/src/helpers/getText.d.ts +0 -6
- package/dist/packages/core/src/helpers/getTextBetween.d.ts +0 -6
- package/dist/packages/core/src/helpers/getTextSeralizersFromSchema.d.ts +0 -3
- package/dist/packages/core/src/helpers/injectExtensionAttributesToParseRule.d.ts +0 -9
- package/dist/packages/core/src/helpers/isActive.d.ts +0 -2
- package/dist/packages/core/src/helpers/isList.d.ts +0 -2
- package/dist/packages/core/src/helpers/isMarkActive.d.ts +0 -3
- package/dist/packages/core/src/helpers/isNodeActive.d.ts +0 -3
- package/dist/packages/core/src/helpers/isNodeEmpty.d.ts +0 -2
- package/dist/packages/core/src/helpers/isNodeSelection.d.ts +0 -2
- package/dist/packages/core/src/helpers/isTextSelection.d.ts +0 -2
- package/dist/packages/core/src/helpers/posToDOMRect.d.ts +0 -2
- package/dist/packages/core/src/helpers/selectionToInsertionEnd.d.ts +0 -2
- package/dist/packages/core/src/helpers/splitExtensions.d.ts +0 -9
- package/dist/packages/core/src/index.d.ts +0 -50
- package/dist/packages/core/src/inputRules/markInputRule.d.ts +0 -3
- package/dist/packages/core/src/inputRules/nodeInputRule.d.ts +0 -3
- package/dist/packages/core/src/pasteRules/markPasteRule.d.ts +0 -3
- package/dist/packages/core/src/style.d.ts +0 -2
- package/dist/packages/core/src/types.d.ts +0 -194
- package/dist/packages/core/src/utilities/callOrReturn.d.ts +0 -9
- package/dist/packages/core/src/utilities/createStyleTag.d.ts +0 -1
- package/dist/packages/core/src/utilities/deleteProps.d.ts +0 -6
- package/dist/packages/core/src/utilities/elementFromString.d.ts +0 -1
- package/dist/packages/core/src/utilities/fromString.d.ts +0 -1
- package/dist/packages/core/src/utilities/isClass.d.ts +0 -1
- package/dist/packages/core/src/utilities/isEmptyObject.d.ts +0 -1
- package/dist/packages/core/src/utilities/isObject.d.ts +0 -1
- package/dist/packages/core/src/utilities/isPlainObject.d.ts +0 -1
- package/dist/packages/core/src/utilities/isRegExp.d.ts +0 -1
- package/dist/packages/core/src/utilities/isiOS.d.ts +0 -1
- package/dist/packages/core/src/utilities/mergeAttributes.d.ts +0 -1
- package/dist/packages/core/src/utilities/mergeDeep.d.ts +0 -1
- package/dist/packages/core/src/utilities/minMax.d.ts +0 -1
- package/dist/packages/core/src/utilities/objectIncludes.d.ts +0 -8
- package/dist/packages/core/src/utilities/removeElement.d.ts +0 -1
- package/dist/packages/extension-blockquote/src/blockquote.d.ts +0 -24
- package/dist/packages/extension-blockquote/src/index.d.ts +0 -3
- package/dist/packages/extension-bold/src/bold.d.ts +0 -27
- package/dist/packages/extension-bold/src/index.d.ts +0 -3
- package/dist/packages/extension-bubble-menu/src/bubble-menu-plugin.d.ts +0 -43
- package/dist/packages/extension-bubble-menu/src/bubble-menu.d.ts +0 -6
- package/dist/packages/extension-bubble-menu/src/index.d.ts +0 -4
- package/dist/packages/extension-bullet-list/src/bullet-list.d.ts +0 -16
- package/dist/packages/extension-bullet-list/src/index.d.ts +0 -3
- package/dist/packages/extension-character-count/src/character-count.d.ts +0 -7
- package/dist/packages/extension-character-count/src/index.d.ts +0 -3
- package/dist/packages/extension-code/src/code.d.ts +0 -25
- package/dist/packages/extension-code/src/index.d.ts +0 -3
- package/dist/packages/extension-code-block/src/code-block.d.ts +0 -26
- package/dist/packages/extension-code-block/src/index.d.ts +0 -3
- package/dist/packages/extension-code-block-lowlight/src/code-block-lowlight.d.ts +0 -5
- package/dist/packages/extension-code-block-lowlight/src/index.d.ts +0 -3
- package/dist/packages/extension-code-block-lowlight/src/lowlight-plugin.d.ts +0 -5
- package/dist/packages/extension-collaboration/src/collaboration.d.ts +0 -30
- package/dist/packages/extension-collaboration/src/index.d.ts +0 -3
- package/dist/packages/extension-collaboration-cursor/src/collaboration-cursor.d.ts +0 -21
- package/dist/packages/extension-collaboration-cursor/src/index.d.ts +0 -3
- package/dist/packages/extension-color/src/color.d.ts +0 -21
- package/dist/packages/extension-color/src/index.d.ts +0 -3
- package/dist/packages/extension-document/src/document.d.ts +0 -2
- package/dist/packages/extension-document/src/index.d.ts +0 -3
- package/dist/packages/extension-dropcursor/src/dropcursor.d.ts +0 -7
- package/dist/packages/extension-dropcursor/src/index.d.ts +0 -3
- package/dist/packages/extension-floating-menu/src/floating-menu-plugin.d.ts +0 -40
- package/dist/packages/extension-floating-menu/src/floating-menu.d.ts +0 -6
- package/dist/packages/extension-floating-menu/src/index.d.ts +0 -4
- package/dist/packages/extension-focus/src/focus.d.ts +0 -6
- package/dist/packages/extension-focus/src/index.d.ts +0 -3
- package/dist/packages/extension-font-family/src/font-family.d.ts +0 -21
- package/dist/packages/extension-font-family/src/index.d.ts +0 -3
- package/dist/packages/extension-hard-break/src/hard-break.d.ts +0 -15
- package/dist/packages/extension-hard-break/src/index.d.ts +0 -3
- package/dist/packages/extension-heading/src/heading.d.ts +0 -26
- package/dist/packages/extension-heading/src/index.d.ts +0 -3
- package/dist/packages/extension-highlight/src/highlight.d.ts +0 -30
- package/dist/packages/extension-highlight/src/index.d.ts +0 -3
- package/dist/packages/extension-history/src/history.d.ts +0 -20
- package/dist/packages/extension-history/src/index.d.ts +0 -3
- package/dist/packages/extension-horizontal-rule/src/horizontal-rule.d.ts +0 -15
- package/dist/packages/extension-horizontal-rule/src/index.d.ts +0 -3
- package/dist/packages/extension-image/src/image.d.ts +0 -21
- package/dist/packages/extension-image/src/index.d.ts +0 -3
- package/dist/packages/extension-italic/src/index.d.ts +0 -3
- package/dist/packages/extension-italic/src/italic.d.ts +0 -27
- package/dist/packages/extension-link/src/index.d.ts +0 -3
- package/dist/packages/extension-link/src/link.d.ts +0 -48
- package/dist/packages/extension-list-item/src/index.d.ts +0 -3
- package/dist/packages/extension-list-item/src/list-item.d.ts +0 -5
- package/dist/packages/extension-mention/src/index.d.ts +0 -3
- package/dist/packages/extension-mention/src/mention.d.ts +0 -14
- package/dist/packages/extension-ordered-list/src/index.d.ts +0 -3
- package/dist/packages/extension-ordered-list/src/ordered-list.d.ts +0 -16
- package/dist/packages/extension-paragraph/src/index.d.ts +0 -3
- package/dist/packages/extension-paragraph/src/paragraph.d.ts +0 -15
- package/dist/packages/extension-placeholder/src/index.d.ts +0 -3
- package/dist/packages/extension-placeholder/src/placeholder.d.ts +0 -14
- package/dist/packages/extension-strike/src/index.d.ts +0 -3
- package/dist/packages/extension-strike/src/strike.d.ts +0 -25
- package/dist/packages/extension-subscript/src/index.d.ts +0 -3
- package/dist/packages/extension-subscript/src/subscript.d.ts +0 -23
- package/dist/packages/extension-superscript/src/index.d.ts +0 -3
- package/dist/packages/extension-superscript/src/superscript.d.ts +0 -23
- package/dist/packages/extension-table/src/TableView.d.ts +0 -17
- package/dist/packages/extension-table/src/index.d.ts +0 -4
- package/dist/packages/extension-table/src/table.d.ts +0 -54
- package/dist/packages/extension-table/src/utilities/createCell.d.ts +0 -2
- package/dist/packages/extension-table/src/utilities/createTable.d.ts +0 -2
- package/dist/packages/extension-table/src/utilities/deleteTableWhenAllCellsSelected.d.ts +0 -2
- package/dist/packages/extension-table/src/utilities/getTableNodeTypes.d.ts +0 -4
- package/dist/packages/extension-table/src/utilities/isCellSelection.d.ts +0 -2
- package/dist/packages/extension-table-cell/src/index.d.ts +0 -3
- package/dist/packages/extension-table-cell/src/table-cell.d.ts +0 -5
- package/dist/packages/extension-table-header/src/index.d.ts +0 -3
- package/dist/packages/extension-table-header/src/table-header.d.ts +0 -5
- package/dist/packages/extension-table-row/src/index.d.ts +0 -3
- package/dist/packages/extension-table-row/src/table-row.d.ts +0 -5
- package/dist/packages/extension-task-item/src/index.d.ts +0 -3
- package/dist/packages/extension-task-item/src/task-item.d.ts +0 -7
- package/dist/packages/extension-task-list/src/index.d.ts +0 -3
- package/dist/packages/extension-task-list/src/task-list.d.ts +0 -15
- package/dist/packages/extension-text/src/index.d.ts +0 -3
- package/dist/packages/extension-text/src/text.d.ts +0 -2
- package/dist/packages/extension-text-align/src/index.d.ts +0 -3
- package/dist/packages/extension-text-align/src/text-align.d.ts +0 -21
- package/dist/packages/extension-text-style/src/index.d.ts +0 -3
- package/dist/packages/extension-text-style/src/text-style.d.ts +0 -15
- package/dist/packages/extension-typography/src/index.d.ts +0 -3
- package/dist/packages/extension-typography/src/typography.d.ts +0 -18
- package/dist/packages/extension-underline/src/index.d.ts +0 -3
- package/dist/packages/extension-underline/src/underline.d.ts +0 -23
- package/dist/packages/html/src/generateHTML.d.ts +0 -2
- package/dist/packages/html/src/generateJSON.d.ts +0 -2
- package/dist/packages/html/src/getHTMLFromFragment.d.ts +0 -2
- package/dist/packages/html/src/index.d.ts +0 -2
- package/dist/packages/react/src/BubbleMenu.d.ts +0 -8
- package/dist/packages/react/src/Editor.d.ts +0 -6
- package/dist/packages/react/src/EditorContent.d.ts +0 -19
- package/dist/packages/react/src/FloatingMenu.d.ts +0 -8
- package/dist/packages/react/src/NodeViewContent.d.ts +0 -6
- package/dist/packages/react/src/NodeViewWrapper.d.ts +0 -6
- package/dist/packages/react/src/ReactNodeViewRenderer.d.ts +0 -13
- package/dist/packages/react/src/ReactRenderer.d.ts +0 -25
- package/dist/packages/react/src/index.d.ts +0 -10
- package/dist/packages/react/src/useEditor.d.ts +0 -4
- package/dist/packages/react/src/useReactNodeView.d.ts +0 -7
- package/dist/packages/starter-kit/src/index.d.ts +0 -3
- package/dist/packages/starter-kit/src/starter-kit.d.ts +0 -37
- package/dist/packages/suggestion/src/findSuggestionMatch.d.ts +0 -15
- package/dist/packages/suggestion/src/index.d.ts +0 -4
- package/dist/packages/suggestion/src/suggestion.d.ts +0 -46
- package/dist/packages/vue-2/src/BubbleMenu.d.ts +0 -9
- package/dist/packages/vue-2/src/Editor.d.ts +0 -5
- package/dist/packages/vue-2/src/EditorContent.d.ts +0 -6
- package/dist/packages/vue-2/src/FloatingMenu.d.ts +0 -9
- package/dist/packages/vue-2/src/NodeViewContent.d.ts +0 -5
- package/dist/packages/vue-2/src/NodeViewWrapper.d.ts +0 -9
- package/dist/packages/vue-2/src/VueNodeViewRenderer.d.ts +0 -51
- package/dist/packages/vue-2/src/VueRenderer.d.ts +0 -9
- package/dist/packages/vue-2/src/index.d.ts +0 -9
- package/dist/packages/vue-3/src/BubbleMenu.d.ts +0 -56
- package/dist/packages/vue-3/src/Editor.d.ts +0 -22
- package/dist/packages/vue-3/src/EditorContent.d.ts +0 -16
- package/dist/packages/vue-3/src/FloatingMenu.d.ts +0 -50
- package/dist/packages/vue-3/src/NodeViewContent.d.ts +0 -12
- package/dist/packages/vue-3/src/NodeViewWrapper.d.ts +0 -12
- package/dist/packages/vue-3/src/VueNodeViewRenderer.d.ts +0 -50
- package/dist/packages/vue-3/src/VueRenderer.d.ts +0 -19
- package/dist/packages/vue-3/src/index.d.ts +0 -10
- package/dist/packages/vue-3/src/useEditor.d.ts +0 -3
- package/dist/tests/cypress/integration/core/can.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/editorProps.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/extendExtensions.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/extendMarkRange.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/extensionOptions.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/fromString.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/generateHTML.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/generateJSON.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/isActive.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/isClass.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/mergeAttributes.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/core/mergeDeep.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/extensions/bold.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/extensions/codeBlockLowlight.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/extensions/link.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/html/generateHTML.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/html/generateJSON.spec.d.ts +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Extension, ParentConfig } from '@tiptap/core';
|
|
2
2
|
declare module '@tiptap/core' {
|
|
3
|
-
interface NodeConfig<Options> {
|
|
3
|
+
interface NodeConfig<Options, Storage> {
|
|
4
4
|
/**
|
|
5
5
|
* Allow gap cursor
|
|
6
6
|
*/
|
|
7
7
|
allowGapCursor?: boolean | null | ((this: {
|
|
8
8
|
name: string;
|
|
9
9
|
options: Options;
|
|
10
|
+
storage: Storage;
|
|
10
11
|
parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'];
|
|
11
12
|
}) => boolean | null);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
export declare const Gapcursor: Extension<
|
|
15
|
+
export declare const Gapcursor: Extension<any, any>;
|
|
@@ -17,6 +17,7 @@ const Gapcursor = core.Extension.create({
|
|
|
17
17
|
const context = {
|
|
18
18
|
name: extension.name,
|
|
19
19
|
options: extension.options,
|
|
20
|
+
storage: extension.storage,
|
|
20
21
|
};
|
|
21
22
|
return {
|
|
22
23
|
allowGapCursor: (_a = core.callOrReturn(core.getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null,
|
|
@@ -25,5 +26,5 @@ const Gapcursor = core.Extension.create({
|
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
exports.Gapcursor = Gapcursor;
|
|
28
|
-
exports[
|
|
29
|
+
exports["default"] = Gapcursor;
|
|
29
30
|
//# sourceMappingURL=tiptap-extension-gapcursor.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-gapcursor.cjs.js","sources":["../src/gapcursor.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"tiptap-extension-gapcursor.cjs.js","sources":["../src/gapcursor.ts"],"sourcesContent":["import {\n callOrReturn,\n Extension,\n getExtensionField,\n ParentConfig,\n} from '@tiptap/core'\nimport { gapCursor } from 'prosemirror-gapcursor'\n\ndeclare module '@tiptap/core' {\n interface NodeConfig<Options, Storage> {\n /**\n * Allow gap cursor\n */\n allowGapCursor?:\n | boolean\n | null\n | ((this: {\n name: string,\n options: Options,\n storage: Storage,\n parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'],\n }) => boolean | null),\n }\n}\n\nexport const Gapcursor = Extension.create({\n name: 'gapCursor',\n\n addProseMirrorPlugins() {\n return [\n gapCursor(),\n ]\n },\n\n extendNodeSchema(extension) {\n const context = {\n name: extension.name,\n options: extension.options,\n storage: extension.storage,\n }\n\n return {\n allowGapCursor: callOrReturn(getExtensionField(extension, 'allowGapCursor', context)) ?? null,\n }\n },\n})\n"],"names":["Extension","gapCursor","callOrReturn","getExtensionField"],"mappings":";;;;;;;AAyBa,MAAA,SAAS,GAAGA,cAAS,CAAC,MAAM,CAAC;AACxC,IAAA,IAAI,EAAE,WAAW;IAEjB,qBAAqB,GAAA;QACnB,OAAO;AACL,YAAAC,8BAAS,EAAE;SACZ,CAAA;KACF;AAED,IAAA,gBAAgB,CAAC,SAAS,EAAA;;AACxB,QAAA,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;SAC3B,CAAA;QAED,OAAO;AACL,YAAA,cAAc,EAAE,CAAA,EAAA,GAAAC,iBAAY,CAACC,sBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC,mCAAI,IAAI;SAC9F,CAAA;KACF;AACF,CAAA;;;;;"}
|
|
@@ -13,6 +13,7 @@ const Gapcursor = Extension.create({
|
|
|
13
13
|
const context = {
|
|
14
14
|
name: extension.name,
|
|
15
15
|
options: extension.options,
|
|
16
|
+
storage: extension.storage,
|
|
16
17
|
};
|
|
17
18
|
return {
|
|
18
19
|
allowGapCursor: (_a = callOrReturn(getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-gapcursor.esm.js","sources":["../src/gapcursor.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"tiptap-extension-gapcursor.esm.js","sources":["../src/gapcursor.ts"],"sourcesContent":["import {\n callOrReturn,\n Extension,\n getExtensionField,\n ParentConfig,\n} from '@tiptap/core'\nimport { gapCursor } from 'prosemirror-gapcursor'\n\ndeclare module '@tiptap/core' {\n interface NodeConfig<Options, Storage> {\n /**\n * Allow gap cursor\n */\n allowGapCursor?:\n | boolean\n | null\n | ((this: {\n name: string,\n options: Options,\n storage: Storage,\n parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'],\n }) => boolean | null),\n }\n}\n\nexport const Gapcursor = Extension.create({\n name: 'gapCursor',\n\n addProseMirrorPlugins() {\n return [\n gapCursor(),\n ]\n },\n\n extendNodeSchema(extension) {\n const context = {\n name: extension.name,\n options: extension.options,\n storage: extension.storage,\n }\n\n return {\n allowGapCursor: callOrReturn(getExtensionField(extension, 'allowGapCursor', context)) ?? null,\n }\n },\n})\n"],"names":[],"mappings":";;;AAyBa,MAAA,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC;AACxC,IAAA,IAAI,EAAE,WAAW;IAEjB,qBAAqB,GAAA;QACnB,OAAO;AACL,YAAA,SAAS,EAAE;SACZ,CAAA;KACF;AAED,IAAA,gBAAgB,CAAC,SAAS,EAAA;;AACxB,QAAA,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;SAC3B,CAAA;QAED,OAAO;AACL,YAAA,cAAc,EAAE,CAAA,EAAA,GAAA,YAAY,CAAC,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC,mCAAI,IAAI;SAC9F,CAAA;KACF;AACF,CAAA;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core'), require('prosemirror-gapcursor')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core', 'prosemirror-gapcursor'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global[
|
|
5
|
-
}(this, (function (exports, core, prosemirrorGapcursor) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-gapcursor"] = {}, global.core, global.prosemirrorGapcursor));
|
|
5
|
+
})(this, (function (exports, core, prosemirrorGapcursor) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const Gapcursor = core.Extension.create({
|
|
8
8
|
name: 'gapCursor',
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
const context = {
|
|
17
17
|
name: extension.name,
|
|
18
18
|
options: extension.options,
|
|
19
|
+
storage: extension.storage,
|
|
19
20
|
};
|
|
20
21
|
return {
|
|
21
22
|
allowGapCursor: (_a = core.callOrReturn(core.getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null,
|
|
@@ -24,9 +25,9 @@
|
|
|
24
25
|
});
|
|
25
26
|
|
|
26
27
|
exports.Gapcursor = Gapcursor;
|
|
27
|
-
exports[
|
|
28
|
+
exports["default"] = Gapcursor;
|
|
28
29
|
|
|
29
30
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30
31
|
|
|
31
|
-
}))
|
|
32
|
+
}));
|
|
32
33
|
//# sourceMappingURL=tiptap-extension-gapcursor.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-gapcursor.umd.js","sources":["../src/gapcursor.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"tiptap-extension-gapcursor.umd.js","sources":["../src/gapcursor.ts"],"sourcesContent":["import {\n callOrReturn,\n Extension,\n getExtensionField,\n ParentConfig,\n} from '@tiptap/core'\nimport { gapCursor } from 'prosemirror-gapcursor'\n\ndeclare module '@tiptap/core' {\n interface NodeConfig<Options, Storage> {\n /**\n * Allow gap cursor\n */\n allowGapCursor?:\n | boolean\n | null\n | ((this: {\n name: string,\n options: Options,\n storage: Storage,\n parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'],\n }) => boolean | null),\n }\n}\n\nexport const Gapcursor = Extension.create({\n name: 'gapCursor',\n\n addProseMirrorPlugins() {\n return [\n gapCursor(),\n ]\n },\n\n extendNodeSchema(extension) {\n const context = {\n name: extension.name,\n options: extension.options,\n storage: extension.storage,\n }\n\n return {\n allowGapCursor: callOrReturn(getExtensionField(extension, 'allowGapCursor', context)) ?? null,\n }\n },\n})\n"],"names":["Extension","gapCursor","callOrReturn","getExtensionField"],"mappings":";;;;;;AAyBa,QAAA,SAAS,GAAGA,cAAS,CAAC,MAAM,CAAC;EACxC,IAAA,IAAI,EAAE,WAAW;MAEjB,qBAAqB,GAAA;UACnB,OAAO;EACL,YAAAC,8BAAS,EAAE;WACZ,CAAA;OACF;EAED,IAAA,gBAAgB,CAAC,SAAS,EAAA;;EACxB,QAAA,MAAM,OAAO,GAAG;cACd,IAAI,EAAE,SAAS,CAAC,IAAI;cACpB,OAAO,EAAE,SAAS,CAAC,OAAO;cAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;WAC3B,CAAA;UAED,OAAO;EACL,YAAA,cAAc,EAAE,CAAA,EAAA,GAAAC,iBAAY,CAACC,sBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC,mCAAI,IAAI;WAC9F,CAAA;OACF;EACF,CAAA;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-gapcursor",
|
|
3
3
|
"description": "gapcursor extension for tiptap",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.201",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -21,16 +21,14 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@tiptap/core": "^2.0.0-beta.
|
|
24
|
+
"@tiptap/core": "^2.0.0-beta.193"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"
|
|
28
|
-
"prosemirror-gapcursor": "^1.2.0"
|
|
27
|
+
"prosemirror-gapcursor": "^1.3.1"
|
|
29
28
|
},
|
|
30
29
|
"repository": {
|
|
31
30
|
"type": "git",
|
|
32
31
|
"url": "https://github.com/ueberdosis/tiptap",
|
|
33
32
|
"directory": "packages/extension-gapcursor"
|
|
34
|
-
}
|
|
35
|
-
"gitHead": "41dddb0fcded5c03b4d629c003f85d015da5c6ce"
|
|
33
|
+
}
|
|
36
34
|
}
|
package/src/gapcursor.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Extension,
|
|
3
2
|
callOrReturn,
|
|
3
|
+
Extension,
|
|
4
4
|
getExtensionField,
|
|
5
5
|
ParentConfig,
|
|
6
6
|
} from '@tiptap/core'
|
|
7
7
|
import { gapCursor } from 'prosemirror-gapcursor'
|
|
8
8
|
|
|
9
9
|
declare module '@tiptap/core' {
|
|
10
|
-
interface NodeConfig<Options> {
|
|
10
|
+
interface NodeConfig<Options, Storage> {
|
|
11
11
|
/**
|
|
12
12
|
* Allow gap cursor
|
|
13
13
|
*/
|
|
@@ -17,6 +17,7 @@ declare module '@tiptap/core' {
|
|
|
17
17
|
| ((this: {
|
|
18
18
|
name: string,
|
|
19
19
|
options: Options,
|
|
20
|
+
storage: Storage,
|
|
20
21
|
parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'],
|
|
21
22
|
}) => boolean | null),
|
|
22
23
|
}
|
|
@@ -35,6 +36,7 @@ export const Gapcursor = Extension.create({
|
|
|
35
36
|
const context = {
|
|
36
37
|
name: extension.name,
|
|
37
38
|
options: extension.options,
|
|
39
|
+
storage: extension.storage,
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
return {
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021, überdosis GbR
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationPlugin.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as Y from 'yjs';
|
|
2
|
-
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
3
|
-
export declare const AnnotationPluginKey: PluginKey<any, any>;
|
|
4
|
-
export interface AnnotationPluginOptions {
|
|
5
|
-
HTMLAttributes: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
onUpdate: (items: [any?]) => {};
|
|
9
|
-
map: Y.Map<any>;
|
|
10
|
-
instance: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const AnnotationPlugin: (options: AnnotationPluginOptions) => Plugin<any, any>;
|
package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationState.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as Y from 'yjs';
|
|
2
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
3
|
-
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
4
|
-
import { AddAnnotationAction, UpdateAnnotationAction } from './collaboration-annotation';
|
|
5
|
-
import { AnnotationItem } from './AnnotationItem';
|
|
6
|
-
export interface AnnotationStateOptions {
|
|
7
|
-
HTMLAttributes: {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
};
|
|
10
|
-
map: Y.Map<any>;
|
|
11
|
-
instance: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class AnnotationState {
|
|
14
|
-
options: AnnotationStateOptions;
|
|
15
|
-
decorations: DecorationSet<any>;
|
|
16
|
-
constructor(options: AnnotationStateOptions);
|
|
17
|
-
randomId(): string;
|
|
18
|
-
findAnnotation(id: string): Decoration<{
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
}> | undefined;
|
|
21
|
-
addAnnotation(action: AddAnnotationAction, state: EditorState): void;
|
|
22
|
-
updateAnnotation(action: UpdateAnnotationAction): void;
|
|
23
|
-
deleteAnnotation(id: string): void;
|
|
24
|
-
annotationsAt(position: number): AnnotationItem[];
|
|
25
|
-
createDecorations(state: EditorState): void;
|
|
26
|
-
apply(transaction: Transaction, state: EditorState): this;
|
|
27
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as Y from 'yjs';
|
|
2
|
-
import { Extension } from '@tiptap/core';
|
|
3
|
-
export interface AddAnnotationAction {
|
|
4
|
-
type: 'addAnnotation';
|
|
5
|
-
data: any;
|
|
6
|
-
from: number;
|
|
7
|
-
to: number;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateAnnotationAction {
|
|
10
|
-
type: 'updateAnnotation';
|
|
11
|
-
id: string;
|
|
12
|
-
data: any;
|
|
13
|
-
}
|
|
14
|
-
export interface DeleteAnnotationAction {
|
|
15
|
-
type: 'deleteAnnotation';
|
|
16
|
-
id: string;
|
|
17
|
-
}
|
|
18
|
-
export interface AnnotationOptions {
|
|
19
|
-
HTMLAttributes: {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* An event listener which receives annotations for the current selection.
|
|
24
|
-
*/
|
|
25
|
-
onUpdate: (items: [any?]) => {};
|
|
26
|
-
/**
|
|
27
|
-
* An initialized Y.js document.
|
|
28
|
-
*/
|
|
29
|
-
document: Y.Doc | null;
|
|
30
|
-
/**
|
|
31
|
-
* Name of a Y.js map, can be changed to sync multiple fields with one Y.js document.
|
|
32
|
-
*/
|
|
33
|
-
field: string;
|
|
34
|
-
/**
|
|
35
|
-
* A raw Y.js map, can be used instead of `document` and `field`.
|
|
36
|
-
*/
|
|
37
|
-
map: Y.Map<any> | null;
|
|
38
|
-
instance: string;
|
|
39
|
-
}
|
|
40
|
-
declare module '@tiptap/core' {
|
|
41
|
-
interface Commands<ReturnType> {
|
|
42
|
-
annotation: {
|
|
43
|
-
addAnnotation: (data: any) => ReturnType;
|
|
44
|
-
updateAnnotation: (id: string, data: any) => ReturnType;
|
|
45
|
-
deleteAnnotation: (id: string) => ReturnType;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export declare const CollaborationAnnotation: Extension<AnnotationOptions>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface DetailsOptions {
|
|
3
|
-
HTMLAttributes: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
declare module '@tiptap/core' {
|
|
8
|
-
interface Commands<ReturnType> {
|
|
9
|
-
details: {
|
|
10
|
-
/**
|
|
11
|
-
* Set a details node
|
|
12
|
-
*/
|
|
13
|
-
setDetails: () => ReturnType;
|
|
14
|
-
/**
|
|
15
|
-
* Toggle a details node
|
|
16
|
-
*/
|
|
17
|
-
toggleDetails: () => ReturnType;
|
|
18
|
-
/**
|
|
19
|
-
* Unset a details node
|
|
20
|
-
*/
|
|
21
|
-
unsetDetails: () => ReturnType;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
declare const _default: Node<DetailsOptions>;
|
|
26
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface IframeOptions {
|
|
3
|
-
allowFullscreen: boolean;
|
|
4
|
-
HTMLAttributes: {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
declare module '@tiptap/core' {
|
|
9
|
-
interface Commands<ReturnType> {
|
|
10
|
-
iframe: {
|
|
11
|
-
/**
|
|
12
|
-
* Add an iframe
|
|
13
|
-
*/
|
|
14
|
-
setIframe: (options: {
|
|
15
|
-
src: string;
|
|
16
|
-
}) => ReturnType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
declare const _default: Node<IframeOptions>;
|
|
21
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface FigureOptions {
|
|
3
|
-
HTMLAttributes: Record<string, any>;
|
|
4
|
-
}
|
|
5
|
-
declare module '@tiptap/core' {
|
|
6
|
-
interface Commands<ReturnType> {
|
|
7
|
-
figure: {
|
|
8
|
-
/**
|
|
9
|
-
* Add a figure element
|
|
10
|
-
*/
|
|
11
|
-
setFigure: (options: {
|
|
12
|
-
src: string;
|
|
13
|
-
alt?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
caption?: string;
|
|
16
|
-
}) => ReturnType;
|
|
17
|
-
/**
|
|
18
|
-
* Converts an image to a figure
|
|
19
|
-
*/
|
|
20
|
-
imageToFigure: () => ReturnType;
|
|
21
|
-
/**
|
|
22
|
-
* Converts a figure to an image
|
|
23
|
-
*/
|
|
24
|
-
figureToImage: () => ReturnType;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export declare const inputRegex: RegExp;
|
|
29
|
-
export declare const Figure: Node<FigureOptions>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
2
|
-
export interface Result {
|
|
3
|
-
message: string;
|
|
4
|
-
from: number;
|
|
5
|
-
to: number;
|
|
6
|
-
fix?: Function;
|
|
7
|
-
}
|
|
8
|
-
export default class LinterPlugin {
|
|
9
|
-
protected doc: ProsemirrorNode<any>;
|
|
10
|
-
private results;
|
|
11
|
-
constructor(doc: ProsemirrorNode);
|
|
12
|
-
record(message: string, from: number, to: number, fix?: Function): void;
|
|
13
|
-
scan(): this;
|
|
14
|
-
getResults(): Result[];
|
|
15
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
|
-
import LinterPlugin, { Result as Issue } from '../LinterPlugin';
|
|
3
|
-
export declare class HeadingLevel extends LinterPlugin {
|
|
4
|
-
fixHeader(level: number): ({ state, dispatch }: EditorView, issue: Issue) => void;
|
|
5
|
-
scan(): this;
|
|
6
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
|
-
import LinterPlugin, { Result as Issue } from '../LinterPlugin';
|
|
3
|
-
export declare class Punctuation extends LinterPlugin {
|
|
4
|
-
regex: RegExp;
|
|
5
|
-
fix(replacement: any): ({ state, dispatch }: EditorView, issue: Issue) => void;
|
|
6
|
-
scan(): this;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
/**
|
|
3
|
-
* Extension based on:
|
|
4
|
-
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
5
|
-
* - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
|
|
6
|
-
*/
|
|
7
|
-
export interface TrailingNodeOptions {
|
|
8
|
-
node: string;
|
|
9
|
-
notAfter: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare const TrailingNode: Extension<TrailingNodeOptions>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
|
-
import { Editor } from './Editor';
|
|
3
|
-
import { SingleCommands, ChainedCommands, CanCommands, AnyCommands, CommandProps } from './types';
|
|
4
|
-
export default class CommandManager {
|
|
5
|
-
editor: Editor;
|
|
6
|
-
commands: AnyCommands;
|
|
7
|
-
constructor(editor: Editor, commands: AnyCommands);
|
|
8
|
-
createCommands(): SingleCommands;
|
|
9
|
-
createChain(startTr?: Transaction, shouldDispatch?: boolean): ChainedCommands;
|
|
10
|
-
createCan(startTr?: Transaction): CanCommands;
|
|
11
|
-
buildProps(tr: Transaction, shouldDispatch?: boolean): CommandProps;
|
|
12
|
-
chainableState(tr: Transaction, state: EditorState): EditorState;
|
|
13
|
-
}
|