@tiptap/react 2.0.0-beta.104 → 2.0.0-beta.108
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/package.json +7 -6
- package/dist/packages/core/src/CommandManager.d.ts +0 -20
- package/dist/packages/core/src/Editor.d.ts +0 -147
- package/dist/packages/core/src/EventEmitter.d.ts +0 -11
- package/dist/packages/core/src/Extension.d.ts +0 -227
- package/dist/packages/core/src/ExtensionManager.d.ts +0 -18
- package/dist/packages/core/src/InputRule.d.ts +0 -42
- package/dist/packages/core/src/Mark.d.ts +0 -319
- package/dist/packages/core/src/Node.d.ts +0 -397
- package/dist/packages/core/src/NodeView.d.ts +0 -27
- package/dist/packages/core/src/PasteRule.d.ts +0 -42
- 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 -14
- package/dist/packages/core/src/commands/forEach.d.ts +0 -14
- package/dist/packages/core/src/commands/insertContent.d.ts +0 -16
- package/dist/packages/core/src/commands/insertContentAt.d.ts +0 -16
- 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 -6
- package/dist/packages/core/src/extensions/keymap.d.ts +0 -2
- package/dist/packages/core/src/extensions/tabindex.d.ts +0 -2
- package/dist/packages/core/src/helpers/combineTransactionSteps.d.ts +0 -7
- package/dist/packages/core/src/helpers/createChainableState.d.ts +0 -5
- 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/defaultBlockAt.d.ts +0 -2
- 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/getChangedRanges.d.ts +0 -11
- 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/isExtensionRulesEnabled.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/resolveFocusPosition.d.ts +0 -4
- 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 -60
- package/dist/packages/core/src/inputRules/markInputRule.d.ts +0 -12
- package/dist/packages/core/src/inputRules/nodeInputRule.d.ts +0 -12
- package/dist/packages/core/src/inputRules/textInputRule.d.ts +0 -9
- package/dist/packages/core/src/inputRules/textblockTypeInputRule.d.ts +0 -14
- package/dist/packages/core/src/inputRules/wrappingInputRule.d.ts +0 -23
- package/dist/packages/core/src/pasteRules/markPasteRule.d.ts +0 -12
- package/dist/packages/core/src/pasteRules/textPasteRule.d.ts +0 -9
- package/dist/packages/core/src/style.d.ts +0 -1
- package/dist/packages/core/src/types.d.ts +0 -210
- 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/findDuplicates.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/isFunction.d.ts +0 -1
- package/dist/packages/core/src/utilities/isNumber.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/isString.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/removeDuplicates.d.ts +0 -8
- 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 -17
- package/dist/packages/extension-bullet-list/src/index.d.ts +0 -3
- package/dist/packages/extension-character-count/src/character-count.d.ts +0 -28
- 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 -6
- 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 -6
- package/dist/packages/extension-collaboration/src/collaboration.d.ts +0 -30
- package/dist/packages/extension-collaboration/src/helpers/isChangeOrigin.d.ts +0 -2
- package/dist/packages/extension-collaboration/src/index.d.ts +0 -4
- package/dist/packages/extension-collaboration-cursor/src/collaboration-cursor.d.ts +0 -37
- package/dist/packages/extension-collaboration-cursor/src/index.d.ts +0 -3
- package/dist/packages/extension-color/src/color.d.ts +0 -20
- 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 -20
- package/dist/packages/extension-font-family/src/index.d.ts +0 -3
- package/dist/packages/extension-gapcursor/src/gapcursor.d.ts +0 -15
- package/dist/packages/extension-gapcursor/src/index.d.ts +0 -3
- package/dist/packages/extension-hard-break/src/hard-break.d.ts +0 -16
- 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/helpers/autolink.d.ts +0 -7
- package/dist/packages/extension-link/src/helpers/clickHandler.d.ts +0 -7
- package/dist/packages/extension-link/src/helpers/pasteHandler.d.ts +0 -9
- package/dist/packages/extension-link/src/index.d.ts +0 -3
- package/dist/packages/extension-link/src/link.d.ts +0 -44
- 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 -17
- 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 -15
- 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 -55
- 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 -16
- 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 -23
- 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/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 -49
- 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/core/pluginOrder.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/html/generateHTML.spec.d.ts +0 -1
- package/dist/tests/cypress/integration/html/generateJSON.spec.d.ts +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MaybeReturnType } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Optionally calls `value` as a function.
|
|
4
|
-
* Otherwise it is returned directly.
|
|
5
|
-
* @param value Function or any value.
|
|
6
|
-
* @param context Optional context to bind to function.
|
|
7
|
-
* @param props Optional props to pass to function.
|
|
8
|
-
*/
|
|
9
|
-
export declare function callOrReturn<T>(value: T, context?: any, ...props: any[]): MaybeReturnType<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createStyleTag(style: string): HTMLStyleElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function elementFromString(value: string): HTMLElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function findDuplicates(items: any[]): any[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function fromString(value: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isClass(value: any): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isEmptyObject(value?: {}): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isFunction(value: any): value is Function;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNumber(value: any): value is number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isObject(value: any): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isPlainObject(value: any): value is Record<string, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isRegExp(value: any): value is RegExp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isString(value: any): value is string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isiOS(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mergeAttributes(...objects: Record<string, any>[]): Record<string, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mergeDeep(target: Record<string, any>, source: Record<string, any>): Record<string, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function minMax(value?: number, min?: number, max?: number): number;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Removes duplicated values within an array.
|
|
3
|
-
* Supports numbers, strings and objects.
|
|
4
|
-
*/
|
|
5
|
-
export declare function removeDuplicates<T>(array: T[], by?: {
|
|
6
|
-
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
7
|
-
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
8
|
-
}): T[];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface BlockquoteOptions {
|
|
3
|
-
HTMLAttributes: Record<string, any>;
|
|
4
|
-
}
|
|
5
|
-
declare module '@tiptap/core' {
|
|
6
|
-
interface Commands<ReturnType> {
|
|
7
|
-
blockQuote: {
|
|
8
|
-
/**
|
|
9
|
-
* Set a blockquote node
|
|
10
|
-
*/
|
|
11
|
-
setBlockquote: () => ReturnType;
|
|
12
|
-
/**
|
|
13
|
-
* Toggle a blockquote node
|
|
14
|
-
*/
|
|
15
|
-
toggleBlockquote: () => ReturnType;
|
|
16
|
-
/**
|
|
17
|
-
* Unset a blockquote node
|
|
18
|
-
*/
|
|
19
|
-
unsetBlockquote: () => ReturnType;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export declare const inputRegex: RegExp;
|
|
24
|
-
export declare const Blockquote: Node<BlockquoteOptions, unknown>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Mark } from '@tiptap/core';
|
|
2
|
-
export interface BoldOptions {
|
|
3
|
-
HTMLAttributes: Record<string, any>;
|
|
4
|
-
}
|
|
5
|
-
declare module '@tiptap/core' {
|
|
6
|
-
interface Commands<ReturnType> {
|
|
7
|
-
bold: {
|
|
8
|
-
/**
|
|
9
|
-
* Set a bold mark
|
|
10
|
-
*/
|
|
11
|
-
setBold: () => ReturnType;
|
|
12
|
-
/**
|
|
13
|
-
* Toggle a bold mark
|
|
14
|
-
*/
|
|
15
|
-
toggleBold: () => ReturnType;
|
|
16
|
-
/**
|
|
17
|
-
* Unset a bold mark
|
|
18
|
-
*/
|
|
19
|
-
unsetBold: () => ReturnType;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export declare const starInputRegex: RegExp;
|
|
24
|
-
export declare const starPasteRegex: RegExp;
|
|
25
|
-
export declare const underscoreInputRegex: RegExp;
|
|
26
|
-
export declare const underscorePasteRegex: RegExp;
|
|
27
|
-
export declare const Bold: Mark<BoldOptions, unknown>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { EditorState, Plugin, PluginKey } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { Instance, Props } from 'tippy.js';
|
|
5
|
-
export interface BubbleMenuPluginProps {
|
|
6
|
-
pluginKey: PluginKey | string;
|
|
7
|
-
editor: Editor;
|
|
8
|
-
element: HTMLElement;
|
|
9
|
-
tippyOptions?: Partial<Props>;
|
|
10
|
-
shouldShow?: ((props: {
|
|
11
|
-
editor: Editor;
|
|
12
|
-
view: EditorView;
|
|
13
|
-
state: EditorState;
|
|
14
|
-
oldState?: EditorState;
|
|
15
|
-
from: number;
|
|
16
|
-
to: number;
|
|
17
|
-
}) => boolean) | null;
|
|
18
|
-
}
|
|
19
|
-
export declare type BubbleMenuViewProps = BubbleMenuPluginProps & {
|
|
20
|
-
view: EditorView;
|
|
21
|
-
};
|
|
22
|
-
export declare class BubbleMenuView {
|
|
23
|
-
editor: Editor;
|
|
24
|
-
element: HTMLElement;
|
|
25
|
-
view: EditorView;
|
|
26
|
-
preventHide: boolean;
|
|
27
|
-
tippy: Instance | undefined;
|
|
28
|
-
tippyOptions?: Partial<Props>;
|
|
29
|
-
shouldShow: Exclude<BubbleMenuPluginProps['shouldShow'], null>;
|
|
30
|
-
constructor({ editor, element, view, tippyOptions, shouldShow, }: BubbleMenuViewProps);
|
|
31
|
-
mousedownHandler: () => void;
|
|
32
|
-
dragstartHandler: () => void;
|
|
33
|
-
focusHandler: () => void;
|
|
34
|
-
blurHandler: ({ event }: {
|
|
35
|
-
event: FocusEvent;
|
|
36
|
-
}) => void;
|
|
37
|
-
createTooltip(): void;
|
|
38
|
-
update(view: EditorView, oldState?: EditorState): void;
|
|
39
|
-
show(): void;
|
|
40
|
-
hide(): void;
|
|
41
|
-
destroy(): void;
|
|
42
|
-
}
|
|
43
|
-
export declare const BubbleMenuPlugin: (options: BubbleMenuPluginProps) => Plugin<any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { BubbleMenuPluginProps } from './bubble-menu-plugin';
|
|
3
|
-
export declare type BubbleMenuOptions = Omit<BubbleMenuPluginProps, 'editor' | 'element'> & {
|
|
4
|
-
element: HTMLElement | null;
|
|
5
|
-
};
|
|
6
|
-
export declare const BubbleMenu: Extension<BubbleMenuOptions, any>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface BulletListOptions {
|
|
3
|
-
itemTypeName: string;
|
|
4
|
-
HTMLAttributes: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
bulletList: {
|
|
9
|
-
/**
|
|
10
|
-
* Toggle a bullet list
|
|
11
|
-
*/
|
|
12
|
-
toggleBulletList: () => ReturnType;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export declare const inputRegex: RegExp;
|
|
17
|
-
export declare const BulletList: Node<BulletListOptions, unknown>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
|
3
|
-
export interface CharacterCountOptions {
|
|
4
|
-
/**
|
|
5
|
-
* The maximum number of characters that should be allowed. Defaults to `0`.
|
|
6
|
-
*/
|
|
7
|
-
limit: number | null | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* The mode by which the size is calculated. Defaults to 'textSize'.
|
|
10
|
-
*/
|
|
11
|
-
mode: 'textSize' | 'nodeSize';
|
|
12
|
-
}
|
|
13
|
-
export interface CharacterCountStorage {
|
|
14
|
-
/**
|
|
15
|
-
* Get the number of characters for the current document.
|
|
16
|
-
*/
|
|
17
|
-
characters: (options?: {
|
|
18
|
-
node?: ProseMirrorNode;
|
|
19
|
-
mode?: 'textSize' | 'nodeSize';
|
|
20
|
-
}) => number;
|
|
21
|
-
/**
|
|
22
|
-
* Get the number of words for the current document.
|
|
23
|
-
*/
|
|
24
|
-
words: (options?: {
|
|
25
|
-
node?: ProseMirrorNode;
|
|
26
|
-
}) => number;
|
|
27
|
-
}
|
|
28
|
-
export declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Mark } from '@tiptap/core';
|
|
2
|
-
export interface CodeOptions {
|
|
3
|
-
HTMLAttributes: Record<string, any>;
|
|
4
|
-
}
|
|
5
|
-
declare module '@tiptap/core' {
|
|
6
|
-
interface Commands<ReturnType> {
|
|
7
|
-
code: {
|
|
8
|
-
/**
|
|
9
|
-
* Set a code mark
|
|
10
|
-
*/
|
|
11
|
-
setCode: () => ReturnType;
|
|
12
|
-
/**
|
|
13
|
-
* Toggle inline code
|
|
14
|
-
*/
|
|
15
|
-
toggleCode: () => ReturnType;
|
|
16
|
-
/**
|
|
17
|
-
* Unset a code mark
|
|
18
|
-
*/
|
|
19
|
-
unsetCode: () => ReturnType;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export declare const inputRegex: RegExp;
|
|
24
|
-
export declare const pasteRegex: RegExp;
|
|
25
|
-
export declare const Code: Mark<CodeOptions, unknown>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface CodeBlockOptions {
|
|
3
|
-
languageClassPrefix: string;
|
|
4
|
-
HTMLAttributes: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
codeBlock: {
|
|
9
|
-
/**
|
|
10
|
-
* Set a code block
|
|
11
|
-
*/
|
|
12
|
-
setCodeBlock: (attributes?: {
|
|
13
|
-
language: string;
|
|
14
|
-
}) => ReturnType;
|
|
15
|
-
/**
|
|
16
|
-
* Toggle a code block
|
|
17
|
-
*/
|
|
18
|
-
toggleCodeBlock: (attributes?: {
|
|
19
|
-
language: string;
|
|
20
|
-
}) => ReturnType;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export declare const backtickInputRegex: RegExp;
|
|
25
|
-
export declare const tildeInputRegex: RegExp;
|
|
26
|
-
export declare const CodeBlock: Node<CodeBlockOptions, unknown>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CodeBlockOptions } from '@tiptap/extension-code-block';
|
|
2
|
-
export interface CodeBlockLowlightOptions extends CodeBlockOptions {
|
|
3
|
-
lowlight: any;
|
|
4
|
-
defaultLanguage: string | null | undefined;
|
|
5
|
-
}
|
|
6
|
-
export declare const CodeBlockLowlight: import("@tiptap/core").Node<CodeBlockLowlightOptions, unknown>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
declare module '@tiptap/core' {
|
|
3
|
-
interface Commands<ReturnType> {
|
|
4
|
-
collaboration: {
|
|
5
|
-
/**
|
|
6
|
-
* Undo recent changes
|
|
7
|
-
*/
|
|
8
|
-
undo: () => ReturnType;
|
|
9
|
-
/**
|
|
10
|
-
* Reapply reverted changes
|
|
11
|
-
*/
|
|
12
|
-
redo: () => ReturnType;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export interface CollaborationOptions {
|
|
17
|
-
/**
|
|
18
|
-
* An initialized Y.js document.
|
|
19
|
-
*/
|
|
20
|
-
document: any;
|
|
21
|
-
/**
|
|
22
|
-
* Name of a Y.js fragment, can be changed to sync multiple fields with one Y.js document.
|
|
23
|
-
*/
|
|
24
|
-
field: string;
|
|
25
|
-
/**
|
|
26
|
-
* A raw Y.js fragment, can be used instead of `document` and `field`.
|
|
27
|
-
*/
|
|
28
|
-
fragment: any;
|
|
29
|
-
}
|
|
30
|
-
export declare const Collaboration: Extension<CollaborationOptions, any>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
declare type CollaborationCursorStorage = {
|
|
3
|
-
users: {
|
|
4
|
-
clientId: number;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}[];
|
|
7
|
-
};
|
|
8
|
-
export interface CollaborationCursorOptions {
|
|
9
|
-
provider: any;
|
|
10
|
-
user: Record<string, any>;
|
|
11
|
-
render(user: Record<string, any>): HTMLElement;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated The "onUpdate" option is deprecated. Please use `editor.storage.collaborationCursor.users` instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor
|
|
14
|
-
*/
|
|
15
|
-
onUpdate: (users: {
|
|
16
|
-
clientId: number;
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}[]) => null;
|
|
19
|
-
}
|
|
20
|
-
declare module '@tiptap/core' {
|
|
21
|
-
interface Commands<ReturnType> {
|
|
22
|
-
collaborationCursor: {
|
|
23
|
-
/**
|
|
24
|
-
* Update details of the current user
|
|
25
|
-
*/
|
|
26
|
-
updateUser: (attributes: Record<string, any>) => ReturnType;
|
|
27
|
-
/**
|
|
28
|
-
* Update details of the current user
|
|
29
|
-
*
|
|
30
|
-
* @deprecated The "user" command is deprecated. Please use "updateUser" instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor
|
|
31
|
-
*/
|
|
32
|
-
user: (attributes: Record<string, any>) => ReturnType;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export declare const CollaborationCursor: Extension<CollaborationCursorOptions, CollaborationCursorStorage>;
|
|
37
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import '@tiptap/extension-text-style';
|
|
3
|
-
export declare type ColorOptions = {
|
|
4
|
-
types: string[];
|
|
5
|
-
};
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
color: {
|
|
9
|
-
/**
|
|
10
|
-
* Set the text color
|
|
11
|
-
*/
|
|
12
|
-
setColor: (color: string) => ReturnType;
|
|
13
|
-
/**
|
|
14
|
-
* Unset the text color
|
|
15
|
-
*/
|
|
16
|
-
unsetColor: () => ReturnType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export declare const Color: Extension<ColorOptions, any>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { EditorState, Plugin, PluginKey } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { Instance, Props } from 'tippy.js';
|
|
5
|
-
export interface FloatingMenuPluginProps {
|
|
6
|
-
pluginKey: PluginKey | string;
|
|
7
|
-
editor: Editor;
|
|
8
|
-
element: HTMLElement;
|
|
9
|
-
tippyOptions?: Partial<Props>;
|
|
10
|
-
shouldShow?: ((props: {
|
|
11
|
-
editor: Editor;
|
|
12
|
-
view: EditorView;
|
|
13
|
-
state: EditorState;
|
|
14
|
-
oldState?: EditorState;
|
|
15
|
-
}) => boolean) | null;
|
|
16
|
-
}
|
|
17
|
-
export declare type FloatingMenuViewProps = FloatingMenuPluginProps & {
|
|
18
|
-
view: EditorView;
|
|
19
|
-
};
|
|
20
|
-
export declare class FloatingMenuView {
|
|
21
|
-
editor: Editor;
|
|
22
|
-
element: HTMLElement;
|
|
23
|
-
view: EditorView;
|
|
24
|
-
preventHide: boolean;
|
|
25
|
-
tippy: Instance | undefined;
|
|
26
|
-
tippyOptions?: Partial<Props>;
|
|
27
|
-
shouldShow: Exclude<FloatingMenuPluginProps['shouldShow'], null>;
|
|
28
|
-
constructor({ editor, element, view, tippyOptions, shouldShow, }: FloatingMenuViewProps);
|
|
29
|
-
mousedownHandler: () => void;
|
|
30
|
-
focusHandler: () => void;
|
|
31
|
-
blurHandler: ({ event }: {
|
|
32
|
-
event: FocusEvent;
|
|
33
|
-
}) => void;
|
|
34
|
-
createTooltip(): void;
|
|
35
|
-
update(view: EditorView, oldState?: EditorState): void;
|
|
36
|
-
show(): void;
|
|
37
|
-
hide(): void;
|
|
38
|
-
destroy(): void;
|
|
39
|
-
}
|
|
40
|
-
export declare const FloatingMenuPlugin: (options: FloatingMenuPluginProps) => Plugin<any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { FloatingMenuPluginProps } from './floating-menu-plugin';
|
|
3
|
-
export declare type FloatingMenuOptions = Omit<FloatingMenuPluginProps, 'editor' | 'element'> & {
|
|
4
|
-
element: HTMLElement | null;
|
|
5
|
-
};
|
|
6
|
-
export declare const FloatingMenu: Extension<FloatingMenuOptions, any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import '@tiptap/extension-text-style';
|
|
3
|
-
export declare type FontFamilyOptions = {
|
|
4
|
-
types: string[];
|
|
5
|
-
};
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
fontFamily: {
|
|
9
|
-
/**
|
|
10
|
-
* Set the font family
|
|
11
|
-
*/
|
|
12
|
-
setFontFamily: (fontFamily: string) => ReturnType;
|
|
13
|
-
/**
|
|
14
|
-
* Unset the font family
|
|
15
|
-
*/
|
|
16
|
-
unsetFontFamily: () => ReturnType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export declare const FontFamily: Extension<FontFamilyOptions, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Extension, ParentConfig } from '@tiptap/core';
|
|
2
|
-
declare module '@tiptap/core' {
|
|
3
|
-
interface NodeConfig<Options, Storage> {
|
|
4
|
-
/**
|
|
5
|
-
* Allow gap cursor
|
|
6
|
-
*/
|
|
7
|
-
allowGapCursor?: boolean | null | ((this: {
|
|
8
|
-
name: string;
|
|
9
|
-
options: Options;
|
|
10
|
-
storage: Storage;
|
|
11
|
-
parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'];
|
|
12
|
-
}) => boolean | null);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export declare const Gapcursor: Extension<any, any>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
export interface HardBreakOptions {
|
|
3
|
-
keepMarks: boolean;
|
|
4
|
-
HTMLAttributes: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
hardBreak: {
|
|
9
|
-
/**
|
|
10
|
-
* Add a hard break
|
|
11
|
-
*/
|
|
12
|
-
setHardBreak: () => ReturnType;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export declare const HardBreak: Node<HardBreakOptions, any>;
|