@tiptap/vue-2
Advanced tools
Comparing version 2.0.0-beta.57 to 2.0.0-beta.58
@@ -1,2 +0,2 @@ | ||
import { EditorState, Transaction } from 'prosemirror-state'; | ||
import { Transaction } from 'prosemirror-state'; | ||
import { Editor } from './Editor'; | ||
@@ -12,3 +12,2 @@ import { SingleCommands, ChainedCommands, CanCommands, AnyCommands, CommandProps } from './types'; | ||
buildProps(tr: Transaction, shouldDispatch?: boolean): CommandProps; | ||
chainableState(tr: Transaction, state: EditorState): EditorState; | ||
} |
import { Plugin, Transaction } from 'prosemirror-state'; | ||
import { InputRule } from 'prosemirror-inputrules'; | ||
import { InputRule } from './InputRule'; | ||
import { PasteRule } from './PasteRule'; | ||
import { Editor } from './Editor'; | ||
@@ -68,3 +69,3 @@ import { Node } from './Node'; | ||
parent: ParentConfig<ExtensionConfig<Options>>['addPasteRules']; | ||
}) => Plugin[]; | ||
}) => PasteRule[]; | ||
/** | ||
@@ -71,0 +72,0 @@ * ProseMirror plugins |
@@ -9,6 +9,12 @@ import * as extensions from './extensions'; | ||
export * from './Tracker'; | ||
export * from './InputRule'; | ||
export * from './PasteRule'; | ||
export * from './types'; | ||
export { default as nodeInputRule } from './inputRules/nodeInputRule'; | ||
export { default as markInputRule } from './inputRules/markInputRule'; | ||
export { default as textblockTypeInputRule } from './inputRules/textblockTypeInputRule'; | ||
export { default as textInputRule } from './inputRules/textInputRule'; | ||
export { default as wrappingInputRule } from './inputRules/wrappingInputRule'; | ||
export { default as markPasteRule } from './pasteRules/markPasteRule'; | ||
export { default as textPasteRule } from './pasteRules/textPasteRule'; | ||
export { default as callOrReturn } from './utilities/callOrReturn'; | ||
@@ -15,0 +21,0 @@ export { default as mergeAttributes } from './utilities/mergeAttributes'; |
@@ -1,3 +0,12 @@ | ||
import { InputRule } from 'prosemirror-inputrules'; | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { MarkType } from 'prosemirror-model'; | ||
export default function (regexp: RegExp, markType: MarkType, getAttributes?: Function): InputRule; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
/** | ||
* Build an input rule that adds a mark when the | ||
* matched text is typed into it. | ||
*/ | ||
export default function markInputRule(config: { | ||
find: InputRuleFinder; | ||
type: MarkType; | ||
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null; | ||
}): InputRule; |
@@ -1,3 +0,12 @@ | ||
import { InputRule } from 'prosemirror-inputrules'; | ||
import { NodeType } from 'prosemirror-model'; | ||
export default function (regexp: RegExp, type: NodeType, getAttributes?: (match: any) => any): InputRule; | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
/** | ||
* Build an input rule that adds a node when the | ||
* matched text is typed into it. | ||
*/ | ||
export default function nodeInputRule(config: { | ||
find: InputRuleFinder; | ||
type: NodeType; | ||
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null; | ||
}): InputRule; |
import { DOMOutputSpec, MarkSpec, Mark as ProseMirrorMark, MarkType } from 'prosemirror-model'; | ||
import { Plugin, Transaction } from 'prosemirror-state'; | ||
import { InputRule } from 'prosemirror-inputrules'; | ||
import { InputRule } from './InputRule'; | ||
import { PasteRule } from './PasteRule'; | ||
import { Extensions, Attributes, RawCommands, GlobalAttributes, ParentConfig, KeyboardShortcutCommand } from './types'; | ||
@@ -72,3 +73,3 @@ import { Node } from './Node'; | ||
parent: ParentConfig<MarkConfig<Options>>['addPasteRules']; | ||
}) => Plugin[]; | ||
}) => PasteRule[]; | ||
/** | ||
@@ -231,2 +232,10 @@ * ProseMirror plugins | ||
/** | ||
* Code | ||
*/ | ||
code?: boolean | ((this: { | ||
name: string; | ||
options: Options; | ||
parent: ParentConfig<MarkConfig<Options>>['code']; | ||
}) => boolean); | ||
/** | ||
* Parse HTML | ||
@@ -233,0 +242,0 @@ */ |
import { DOMOutputSpec, NodeSpec, Node as ProseMirrorNode, NodeType } from 'prosemirror-model'; | ||
import { Plugin, Transaction } from 'prosemirror-state'; | ||
import { InputRule } from 'prosemirror-inputrules'; | ||
import { InputRule } from './InputRule'; | ||
import { PasteRule } from './PasteRule'; | ||
import { Extensions, Attributes, NodeViewRenderer, GlobalAttributes, RawCommands, ParentConfig, KeyboardShortcutCommand } from './types'; | ||
@@ -71,3 +72,3 @@ import { NodeConfig } from '.'; | ||
parent: ParentConfig<NodeConfig<Options>>['addPasteRules']; | ||
}) => Plugin[]; | ||
}) => PasteRule[]; | ||
/** | ||
@@ -74,0 +75,0 @@ * ProseMirror plugins |
@@ -1,3 +0,12 @@ | ||
import { Plugin } from 'prosemirror-state'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule'; | ||
import { MarkType } from 'prosemirror-model'; | ||
export default function (regexp: RegExp, type: MarkType, getAttributes?: Record<string, any> | ((match: RegExpExecArray) => Record<string, any>) | false | null): Plugin; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
/** | ||
* Build an paste rule that adds a mark when the | ||
* matched text is pasted into it. | ||
*/ | ||
export default function markPasteRule(config: { | ||
find: PasteRuleFinder; | ||
type: MarkType; | ||
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null; | ||
}): PasteRule; |
@@ -205,1 +205,4 @@ import { Node as ProseMirrorNode, Mark as ProseMirrorMark, ParseOptions } from 'prosemirror-model'; | ||
}) => string; | ||
export declare type ExtendedRegExpMatchArray = RegExpMatchArray & { | ||
data?: Record<string, any>; | ||
}; |
@@ -1,1 +0,1 @@ | ||
export default function isClass(item: any): boolean; | ||
export default function isClass(value: any): boolean; |
@@ -1,1 +0,1 @@ | ||
export default function isEmptyObject(object?: {}): boolean; | ||
export default function isEmptyObject(value?: {}): boolean; |
@@ -1,1 +0,1 @@ | ||
export default function isObject(item: any): boolean; | ||
export default function isObject(value: any): boolean; |
@@ -1,1 +0,1 @@ | ||
export default function isPlainObject(payload: any): payload is Record<string, any>; | ||
export default function isPlainObject(value: any): value is Record<string, any>; |
@@ -1,1 +0,1 @@ | ||
export default function isRegExp(value: any): boolean; | ||
export default function isRegExp(value: any): value is RegExp; |
import { Collaboration } from './collaboration'; | ||
export * from './collaboration'; | ||
export * from './helpers/isChangeOrigin'; | ||
export default Collaboration; |
@@ -40,10 +40,2 @@ import { Mark } from '@tiptap/core'; | ||
} | ||
/** | ||
* A regex that matches any string that contains a link | ||
*/ | ||
export declare const pasteRegex: RegExp; | ||
/** | ||
* A regex that matches an url | ||
*/ | ||
export declare const pasteRegexExact: RegExp; | ||
export declare const Link: Mark<LinkOptions>; |
import { Extension } from '@tiptap/core'; | ||
import { InputRule } from 'prosemirror-inputrules'; | ||
export declare const leftArrow: InputRule<any>; | ||
export declare const rightArrow: InputRule<any>; | ||
export declare const copyright: InputRule<any>; | ||
export declare const trademark: InputRule<any>; | ||
export declare const registeredTrademark: InputRule<any>; | ||
export declare const oneHalf: InputRule<any>; | ||
export declare const plusMinus: InputRule<any>; | ||
export declare const notEqual: InputRule<any>; | ||
export declare const laquo: InputRule<any>; | ||
export declare const raquo: InputRule<any>; | ||
export declare const multiplication: InputRule<any>; | ||
export declare const superscriptTwo: InputRule<any>; | ||
export declare const superscriptThree: InputRule<any>; | ||
export declare const oneQuarter: InputRule<any>; | ||
export declare const threeQuarters: InputRule<any>; | ||
export declare const emDash: import("@tiptap/core").InputRule; | ||
export declare const ellipsis: import("@tiptap/core").InputRule; | ||
export declare const openDoubleQuote: import("@tiptap/core").InputRule; | ||
export declare const closeDoubleQuote: import("@tiptap/core").InputRule; | ||
export declare const openSingleQuote: import("@tiptap/core").InputRule; | ||
export declare const closeSingleQuote: import("@tiptap/core").InputRule; | ||
export declare const leftArrow: import("@tiptap/core").InputRule; | ||
export declare const rightArrow: import("@tiptap/core").InputRule; | ||
export declare const copyright: import("@tiptap/core").InputRule; | ||
export declare const trademark: import("@tiptap/core").InputRule; | ||
export declare const registeredTrademark: import("@tiptap/core").InputRule; | ||
export declare const oneHalf: import("@tiptap/core").InputRule; | ||
export declare const plusMinus: import("@tiptap/core").InputRule; | ||
export declare const notEqual: import("@tiptap/core").InputRule; | ||
export declare const laquo: import("@tiptap/core").InputRule; | ||
export declare const raquo: import("@tiptap/core").InputRule; | ||
export declare const multiplication: import("@tiptap/core").InputRule; | ||
export declare const superscriptTwo: import("@tiptap/core").InputRule; | ||
export declare const superscriptThree: import("@tiptap/core").InputRule; | ||
export declare const oneQuarter: import("@tiptap/core").InputRule; | ||
export declare const threeQuarters: import("@tiptap/core").InputRule; | ||
export declare const Typography: Extension<unknown>; |
{ | ||
"name": "@tiptap/vue-2", | ||
"description": "Vue components for tiptap", | ||
"version": "2.0.0-beta.57", | ||
"version": "2.0.0-beta.58", | ||
"homepage": "https://tiptap.dev", | ||
@@ -31,5 +31,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@tiptap/extension-bubble-menu": "^2.0.0-beta.39", | ||
"@tiptap/extension-floating-menu": "^2.0.0-beta.33", | ||
"prosemirror-view": "^1.20.1" | ||
"@tiptap/extension-bubble-menu": "^2.0.0-beta.40", | ||
"@tiptap/extension-floating-menu": "^2.0.0-beta.34", | ||
"prosemirror-view": "^1.20.2" | ||
}, | ||
@@ -41,3 +41,3 @@ "repository": { | ||
}, | ||
"gitHead": "dc868b3d2a034abbd308da63057a6ae52c194b8d" | ||
"gitHead": "ed00dbbe56d7a31dbfcf02594c4ce5f54c7bc27a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246224
297
5314