@tiptap/vue-2 2.0.0-beta.57 → 2.0.0-beta.60
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/core/src/CommandManager.d.ts +11 -4
- package/dist/packages/core/src/Extension.d.ts +3 -2
- package/dist/packages/core/src/InputRule.d.ts +42 -0
- package/dist/packages/core/src/Mark.d.ts +11 -2
- package/dist/packages/core/src/Node.d.ts +3 -2
- package/dist/packages/core/src/PasteRule.d.ts +42 -0
- package/dist/packages/core/src/commands/insertContent.d.ts +5 -2
- package/dist/packages/core/src/commands/insertContentAt.d.ts +5 -2
- package/dist/packages/core/src/helpers/createChainableState.d.ts +5 -0
- package/dist/packages/core/src/index.d.ts +7 -0
- package/dist/packages/core/src/inputRules/markInputRule.d.ts +11 -2
- package/dist/packages/core/src/inputRules/nodeInputRule.d.ts +11 -2
- package/dist/packages/core/src/inputRules/textInputRule.d.ts +9 -0
- package/dist/packages/core/src/inputRules/textblockTypeInputRule.d.ts +14 -0
- package/dist/packages/core/src/inputRules/wrappingInputRule.d.ts +23 -0
- package/dist/packages/core/src/pasteRules/markPasteRule.d.ts +11 -2
- package/dist/packages/core/src/pasteRules/textPasteRule.d.ts +9 -0
- package/dist/packages/core/src/types.d.ts +3 -0
- package/dist/packages/core/src/utilities/isClass.d.ts +1 -1
- package/dist/packages/core/src/utilities/isEmptyObject.d.ts +1 -1
- package/dist/packages/core/src/utilities/isFunction.d.ts +1 -0
- package/dist/packages/core/src/utilities/isObject.d.ts +1 -1
- package/dist/packages/core/src/utilities/isPlainObject.d.ts +1 -1
- package/dist/packages/core/src/utilities/isRegExp.d.ts +1 -1
- package/dist/packages/core/src/utilities/isString.d.ts +1 -0
- package/dist/packages/extension-collaboration/src/helpers/isChangeOrigin.d.ts +2 -0
- package/dist/packages/extension-collaboration/src/index.d.ts +1 -0
- package/dist/packages/extension-link/src/link.d.ts +0 -8
- package/dist/packages/extension-placeholder/src/placeholder.d.ts +1 -0
- package/dist/packages/extension-typography/src/typography.d.ts +21 -16
- package/dist/packages/react/src/ReactRenderer.d.ts +8 -7
- package/dist/tests/cypress/integration/{extensions/link.spec.d.ts → core/pluginOrder.spec.d.ts} +0 -0
- package/package.json +5 -5
|
@@ -3,11 +3,18 @@ import { Editor } from './Editor';
|
|
|
3
3
|
import { SingleCommands, ChainedCommands, CanCommands, AnyCommands, CommandProps } from './types';
|
|
4
4
|
export default class CommandManager {
|
|
5
5
|
editor: Editor;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
rawCommands: AnyCommands;
|
|
7
|
+
customState?: EditorState;
|
|
8
|
+
constructor(props: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
state?: EditorState;
|
|
11
|
+
});
|
|
12
|
+
get hasCustomState(): boolean;
|
|
13
|
+
get state(): EditorState;
|
|
14
|
+
get commands(): SingleCommands;
|
|
15
|
+
get chain(): () => ChainedCommands;
|
|
16
|
+
get can(): () => CanCommands;
|
|
9
17
|
createChain(startTr?: Transaction, shouldDispatch?: boolean): ChainedCommands;
|
|
10
18
|
createCan(startTr?: Transaction): CanCommands;
|
|
11
19
|
buildProps(tr: Transaction, shouldDispatch?: boolean): CommandProps;
|
|
12
|
-
chainableState(tr: Transaction, state: EditorState): EditorState;
|
|
13
20
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Plugin, Transaction } from 'prosemirror-state';
|
|
2
|
-
import { InputRule } from '
|
|
2
|
+
import { InputRule } from './InputRule';
|
|
3
|
+
import { PasteRule } from './PasteRule';
|
|
3
4
|
import { Editor } from './Editor';
|
|
4
5
|
import { Node } from './Node';
|
|
5
6
|
import { Mark } from './Mark';
|
|
@@ -65,7 +66,7 @@ declare module '@tiptap/core' {
|
|
|
65
66
|
options: Options;
|
|
66
67
|
editor: Editor;
|
|
67
68
|
parent: ParentConfig<ExtensionConfig<Options>>['addPasteRules'];
|
|
68
|
-
}) =>
|
|
69
|
+
}) => PasteRule[];
|
|
69
70
|
/**
|
|
70
71
|
* ProseMirror plugins
|
|
71
72
|
*/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EditorState, Plugin } from 'prosemirror-state';
|
|
2
|
+
import { Editor } from './Editor';
|
|
3
|
+
import { Range, ExtendedRegExpMatchArray, SingleCommands, ChainedCommands, CanCommands } from './types';
|
|
4
|
+
export declare type InputRuleMatch = {
|
|
5
|
+
index: number;
|
|
6
|
+
text: string;
|
|
7
|
+
replaceWith?: string;
|
|
8
|
+
match?: RegExpMatchArray;
|
|
9
|
+
data?: Record<string, any>;
|
|
10
|
+
};
|
|
11
|
+
export declare type InputRuleFinder = RegExp | ((text: string) => InputRuleMatch | null);
|
|
12
|
+
export declare class InputRule {
|
|
13
|
+
find: InputRuleFinder;
|
|
14
|
+
handler: (props: {
|
|
15
|
+
state: EditorState;
|
|
16
|
+
range: Range;
|
|
17
|
+
match: ExtendedRegExpMatchArray;
|
|
18
|
+
commands: SingleCommands;
|
|
19
|
+
chain: () => ChainedCommands;
|
|
20
|
+
can: () => CanCommands;
|
|
21
|
+
}) => void;
|
|
22
|
+
constructor(config: {
|
|
23
|
+
find: InputRuleFinder;
|
|
24
|
+
handler: (props: {
|
|
25
|
+
state: EditorState;
|
|
26
|
+
range: Range;
|
|
27
|
+
match: ExtendedRegExpMatchArray;
|
|
28
|
+
commands: SingleCommands;
|
|
29
|
+
chain: () => ChainedCommands;
|
|
30
|
+
can: () => CanCommands;
|
|
31
|
+
}) => void;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create an input rules plugin. When enabled, it will cause text
|
|
36
|
+
* input that matches any of the given rules to trigger the rule’s
|
|
37
|
+
* action.
|
|
38
|
+
*/
|
|
39
|
+
export declare function inputRulesPlugin(props: {
|
|
40
|
+
editor: Editor;
|
|
41
|
+
rules: InputRule[];
|
|
42
|
+
}): Plugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DOMOutputSpec, MarkSpec, Mark as ProseMirrorMark, MarkType } from 'prosemirror-model';
|
|
2
2
|
import { Plugin, Transaction } from 'prosemirror-state';
|
|
3
|
-
import { InputRule } from '
|
|
3
|
+
import { InputRule } from './InputRule';
|
|
4
|
+
import { PasteRule } from './PasteRule';
|
|
4
5
|
import { Extensions, Attributes, RawCommands, GlobalAttributes, ParentConfig, KeyboardShortcutCommand } from './types';
|
|
5
6
|
import { Node } from './Node';
|
|
6
7
|
import { MarkConfig } from '.';
|
|
@@ -69,7 +70,7 @@ declare module '@tiptap/core' {
|
|
|
69
70
|
editor: Editor;
|
|
70
71
|
type: MarkType;
|
|
71
72
|
parent: ParentConfig<MarkConfig<Options>>['addPasteRules'];
|
|
72
|
-
}) =>
|
|
73
|
+
}) => PasteRule[];
|
|
73
74
|
/**
|
|
74
75
|
* ProseMirror plugins
|
|
75
76
|
*/
|
|
@@ -226,6 +227,14 @@ declare module '@tiptap/core' {
|
|
|
226
227
|
options: Options;
|
|
227
228
|
parent: ParentConfig<MarkConfig<Options>>['spanning'];
|
|
228
229
|
}) => MarkSpec['spanning']);
|
|
230
|
+
/**
|
|
231
|
+
* Code
|
|
232
|
+
*/
|
|
233
|
+
code?: boolean | ((this: {
|
|
234
|
+
name: string;
|
|
235
|
+
options: Options;
|
|
236
|
+
parent: ParentConfig<MarkConfig<Options>>['code'];
|
|
237
|
+
}) => boolean);
|
|
229
238
|
/**
|
|
230
239
|
* Parse HTML
|
|
231
240
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DOMOutputSpec, NodeSpec, Node as ProseMirrorNode, NodeType } from 'prosemirror-model';
|
|
2
2
|
import { Plugin, Transaction } from 'prosemirror-state';
|
|
3
|
-
import { InputRule } from '
|
|
3
|
+
import { InputRule } from './InputRule';
|
|
4
|
+
import { PasteRule } from './PasteRule';
|
|
4
5
|
import { Extensions, Attributes, NodeViewRenderer, GlobalAttributes, RawCommands, ParentConfig, KeyboardShortcutCommand } from './types';
|
|
5
6
|
import { NodeConfig } from '.';
|
|
6
7
|
import { Editor } from './Editor';
|
|
@@ -68,7 +69,7 @@ declare module '@tiptap/core' {
|
|
|
68
69
|
editor: Editor;
|
|
69
70
|
type: NodeType;
|
|
70
71
|
parent: ParentConfig<NodeConfig<Options>>['addPasteRules'];
|
|
71
|
-
}) =>
|
|
72
|
+
}) => PasteRule[];
|
|
72
73
|
/**
|
|
73
74
|
* ProseMirror plugins
|
|
74
75
|
*/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EditorState, Plugin } from 'prosemirror-state';
|
|
2
|
+
import { Editor } from './Editor';
|
|
3
|
+
import { Range, ExtendedRegExpMatchArray, SingleCommands, ChainedCommands, CanCommands } from './types';
|
|
4
|
+
export declare type PasteRuleMatch = {
|
|
5
|
+
index: number;
|
|
6
|
+
text: string;
|
|
7
|
+
replaceWith?: string;
|
|
8
|
+
match?: RegExpMatchArray;
|
|
9
|
+
data?: Record<string, any>;
|
|
10
|
+
};
|
|
11
|
+
export declare type PasteRuleFinder = RegExp | ((text: string) => PasteRuleMatch[] | null | undefined);
|
|
12
|
+
export declare class PasteRule {
|
|
13
|
+
find: PasteRuleFinder;
|
|
14
|
+
handler: (props: {
|
|
15
|
+
state: EditorState;
|
|
16
|
+
range: Range;
|
|
17
|
+
match: ExtendedRegExpMatchArray;
|
|
18
|
+
commands: SingleCommands;
|
|
19
|
+
chain: () => ChainedCommands;
|
|
20
|
+
can: () => CanCommands;
|
|
21
|
+
}) => void;
|
|
22
|
+
constructor(config: {
|
|
23
|
+
find: PasteRuleFinder;
|
|
24
|
+
handler: (props: {
|
|
25
|
+
state: EditorState;
|
|
26
|
+
range: Range;
|
|
27
|
+
match: ExtendedRegExpMatchArray;
|
|
28
|
+
commands: SingleCommands;
|
|
29
|
+
chain: () => ChainedCommands;
|
|
30
|
+
can: () => CanCommands;
|
|
31
|
+
}) => void;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create an paste rules plugin. When enabled, it will cause pasted
|
|
36
|
+
* text that matches any of the given rules to trigger the rule’s
|
|
37
|
+
* action.
|
|
38
|
+
*/
|
|
39
|
+
export declare function pasteRulesPlugin(props: {
|
|
40
|
+
editor: Editor;
|
|
41
|
+
rules: PasteRule[];
|
|
42
|
+
}): Plugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ParseOptions } from 'prosemirror-model';
|
|
2
2
|
import { RawCommands, Content } from '../types';
|
|
3
3
|
declare module '@tiptap/core' {
|
|
4
4
|
interface Commands<ReturnType> {
|
|
@@ -6,7 +6,10 @@ declare module '@tiptap/core' {
|
|
|
6
6
|
/**
|
|
7
7
|
* Insert a node or string of HTML at the current position.
|
|
8
8
|
*/
|
|
9
|
-
insertContent: (value: Content, options?:
|
|
9
|
+
insertContent: (value: Content, options?: {
|
|
10
|
+
parseOptions?: ParseOptions;
|
|
11
|
+
updateSelection?: boolean;
|
|
12
|
+
}) => ReturnType;
|
|
10
13
|
};
|
|
11
14
|
}
|
|
12
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ParseOptions } from 'prosemirror-model';
|
|
2
2
|
import { RawCommands, Content, Range } from '../types';
|
|
3
3
|
declare module '@tiptap/core' {
|
|
4
4
|
interface Commands<ReturnType> {
|
|
@@ -6,7 +6,10 @@ declare module '@tiptap/core' {
|
|
|
6
6
|
/**
|
|
7
7
|
* Insert a node or string of HTML at a specific position.
|
|
8
8
|
*/
|
|
9
|
-
insertContentAt: (position: number | Range, value: Content, options?:
|
|
9
|
+
insertContentAt: (position: number | Range, value: Content, options?: {
|
|
10
|
+
parseOptions?: ParseOptions;
|
|
11
|
+
updateSelection?: boolean;
|
|
12
|
+
}) => ReturnType;
|
|
10
13
|
};
|
|
11
14
|
}
|
|
12
15
|
}
|
|
@@ -6,10 +6,17 @@ export * from './Node';
|
|
|
6
6
|
export * from './Mark';
|
|
7
7
|
export * from './NodeView';
|
|
8
8
|
export * from './Tracker';
|
|
9
|
+
export * from './InputRule';
|
|
10
|
+
export * from './PasteRule';
|
|
11
|
+
export * from './CommandManager';
|
|
9
12
|
export * from './types';
|
|
10
13
|
export { default as nodeInputRule } from './inputRules/nodeInputRule';
|
|
11
14
|
export { default as markInputRule } from './inputRules/markInputRule';
|
|
15
|
+
export { default as textblockTypeInputRule } from './inputRules/textblockTypeInputRule';
|
|
16
|
+
export { default as textInputRule } from './inputRules/textInputRule';
|
|
17
|
+
export { default as wrappingInputRule } from './inputRules/wrappingInputRule';
|
|
12
18
|
export { default as markPasteRule } from './pasteRules/markPasteRule';
|
|
19
|
+
export { default as textPasteRule } from './pasteRules/textPasteRule';
|
|
13
20
|
export { default as callOrReturn } from './utilities/callOrReturn';
|
|
14
21
|
export { default as mergeAttributes } from './utilities/mergeAttributes';
|
|
15
22
|
export { default as getExtensionField } from './helpers/getExtensionField';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { InputRule } from '
|
|
1
|
+
import { InputRule, InputRuleFinder } from '../InputRule';
|
|
2
2
|
import { MarkType } from 'prosemirror-model';
|
|
3
|
-
|
|
3
|
+
import { ExtendedRegExpMatchArray } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Build an input rule that adds a mark when the
|
|
6
|
+
* matched text is typed into it.
|
|
7
|
+
*/
|
|
8
|
+
export default function markInputRule(config: {
|
|
9
|
+
find: InputRuleFinder;
|
|
10
|
+
type: MarkType;
|
|
11
|
+
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
|
|
12
|
+
}): InputRule;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { InputRule } from 'prosemirror-inputrules';
|
|
2
1
|
import { NodeType } from 'prosemirror-model';
|
|
3
|
-
|
|
2
|
+
import { InputRule, InputRuleFinder } from '../InputRule';
|
|
3
|
+
import { ExtendedRegExpMatchArray } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Build an input rule that adds a node when the
|
|
6
|
+
* matched text is typed into it.
|
|
7
|
+
*/
|
|
8
|
+
export default function nodeInputRule(config: {
|
|
9
|
+
find: InputRuleFinder;
|
|
10
|
+
type: NodeType;
|
|
11
|
+
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
|
|
12
|
+
}): InputRule;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputRule, InputRuleFinder } from '../InputRule';
|
|
2
|
+
/**
|
|
3
|
+
* Build an input rule that replaces text when the
|
|
4
|
+
* matched text is typed into it.
|
|
5
|
+
*/
|
|
6
|
+
export default function textInputRule(config: {
|
|
7
|
+
find: InputRuleFinder;
|
|
8
|
+
replace: string;
|
|
9
|
+
}): InputRule;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputRule, InputRuleFinder } from '../InputRule';
|
|
2
|
+
import { NodeType } from 'prosemirror-model';
|
|
3
|
+
import { ExtendedRegExpMatchArray } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Build an input rule that changes the type of a textblock when the
|
|
6
|
+
* matched text is typed into it. When using a regular expresion you’ll
|
|
7
|
+
* probably want the regexp to start with `^`, so that the pattern can
|
|
8
|
+
* only occur at the start of a textblock.
|
|
9
|
+
*/
|
|
10
|
+
export default function textblockTypeInputRule(config: {
|
|
11
|
+
find: InputRuleFinder;
|
|
12
|
+
type: NodeType;
|
|
13
|
+
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
|
|
14
|
+
}): InputRule;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InputRule, InputRuleFinder } from '../InputRule';
|
|
2
|
+
import { NodeType, Node as ProseMirrorNode } from 'prosemirror-model';
|
|
3
|
+
import { ExtendedRegExpMatchArray } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Build an input rule for automatically wrapping a textblock when a
|
|
6
|
+
* given string is typed. When using a regular expresion you’ll
|
|
7
|
+
* probably want the regexp to start with `^`, so that the pattern can
|
|
8
|
+
* only occur at the start of a textblock.
|
|
9
|
+
*
|
|
10
|
+
* `type` is the type of node to wrap in.
|
|
11
|
+
*
|
|
12
|
+
* By default, if there’s a node with the same type above the newly
|
|
13
|
+
* wrapped node, the rule will try to join those
|
|
14
|
+
* two nodes. You can pass a join predicate, which takes a regular
|
|
15
|
+
* expression match and the node before the wrapped node, and can
|
|
16
|
+
* return a boolean to indicate whether a join should happen.
|
|
17
|
+
*/
|
|
18
|
+
export default function wrappingInputRule(config: {
|
|
19
|
+
find: InputRuleFinder;
|
|
20
|
+
type: NodeType;
|
|
21
|
+
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
|
|
22
|
+
joinPredicate?: (match: ExtendedRegExpMatchArray, node: ProseMirrorNode) => boolean;
|
|
23
|
+
}): InputRule;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PasteRule, PasteRuleFinder } from '../PasteRule';
|
|
2
2
|
import { MarkType } from 'prosemirror-model';
|
|
3
|
-
|
|
3
|
+
import { ExtendedRegExpMatchArray } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Build an paste rule that adds a mark when the
|
|
6
|
+
* matched text is pasted into it.
|
|
7
|
+
*/
|
|
8
|
+
export default function markPasteRule(config: {
|
|
9
|
+
find: PasteRuleFinder;
|
|
10
|
+
type: MarkType;
|
|
11
|
+
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
|
|
12
|
+
}): PasteRule;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PasteRule, PasteRuleFinder } from '../PasteRule';
|
|
2
|
+
/**
|
|
3
|
+
* Build an paste rule that replaces text when the
|
|
4
|
+
* matched text is pasted into it.
|
|
5
|
+
*/
|
|
6
|
+
export default function textPasteRule(config: {
|
|
7
|
+
find: PasteRuleFinder;
|
|
8
|
+
replace: string;
|
|
9
|
+
}): PasteRule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isClass(
|
|
1
|
+
export default function isClass(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isEmptyObject(
|
|
1
|
+
export default function isEmptyObject(value?: {}): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isObject(value: any): value is Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isObject(
|
|
1
|
+
export default function isObject(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isPlainObject(
|
|
1
|
+
export default function isPlainObject(value: any): value is Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isRegExp(value: any):
|
|
1
|
+
export default function isRegExp(value: any): value is RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isString(value: any): value is string;
|
|
@@ -37,12 +37,4 @@ declare module '@tiptap/core' {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
/**
|
|
41
|
-
* A regex that matches any string that contains a link
|
|
42
|
-
*/
|
|
43
|
-
export declare const pasteRegex: RegExp;
|
|
44
|
-
/**
|
|
45
|
-
* A regex that matches an url
|
|
46
|
-
*/
|
|
47
|
-
export declare const pasteRegexExact: RegExp;
|
|
48
40
|
export declare const Link: Mark<LinkOptions>;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { Extension } from '@tiptap/core';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
2
|
+
export declare const emDash: import("@tiptap/core").InputRule;
|
|
3
|
+
export declare const ellipsis: import("@tiptap/core").InputRule;
|
|
4
|
+
export declare const openDoubleQuote: import("@tiptap/core").InputRule;
|
|
5
|
+
export declare const closeDoubleQuote: import("@tiptap/core").InputRule;
|
|
6
|
+
export declare const openSingleQuote: import("@tiptap/core").InputRule;
|
|
7
|
+
export declare const closeSingleQuote: import("@tiptap/core").InputRule;
|
|
8
|
+
export declare const leftArrow: import("@tiptap/core").InputRule;
|
|
9
|
+
export declare const rightArrow: import("@tiptap/core").InputRule;
|
|
10
|
+
export declare const copyright: import("@tiptap/core").InputRule;
|
|
11
|
+
export declare const trademark: import("@tiptap/core").InputRule;
|
|
12
|
+
export declare const registeredTrademark: import("@tiptap/core").InputRule;
|
|
13
|
+
export declare const oneHalf: import("@tiptap/core").InputRule;
|
|
14
|
+
export declare const plusMinus: import("@tiptap/core").InputRule;
|
|
15
|
+
export declare const notEqual: import("@tiptap/core").InputRule;
|
|
16
|
+
export declare const laquo: import("@tiptap/core").InputRule;
|
|
17
|
+
export declare const raquo: import("@tiptap/core").InputRule;
|
|
18
|
+
export declare const multiplication: import("@tiptap/core").InputRule;
|
|
19
|
+
export declare const superscriptTwo: import("@tiptap/core").InputRule;
|
|
20
|
+
export declare const superscriptThree: import("@tiptap/core").InputRule;
|
|
21
|
+
export declare const oneQuarter: import("@tiptap/core").InputRule;
|
|
22
|
+
export declare const threeQuarters: import("@tiptap/core").InputRule;
|
|
18
23
|
export declare const Typography: Extension<unknown>;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Editor } from '
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
3
|
+
import { Editor as ExtendedEditor } from './Editor';
|
|
3
4
|
export interface ReactRendererOptions {
|
|
4
5
|
editor: Editor;
|
|
5
6
|
props?: Record<string, any>;
|
|
6
7
|
as?: string;
|
|
7
8
|
}
|
|
8
|
-
declare type ComponentType = React.ComponentClass | React.FunctionComponent | React.ForwardRefExoticComponent<{
|
|
9
|
+
declare type ComponentType<R> = React.ComponentClass | React.FunctionComponent | React.ForwardRefExoticComponent<{
|
|
9
10
|
items: any[];
|
|
10
11
|
command: any;
|
|
11
|
-
} & React.RefAttributes<
|
|
12
|
-
export declare class ReactRenderer {
|
|
12
|
+
} & React.RefAttributes<R>>;
|
|
13
|
+
export declare class ReactRenderer<R = unknown> {
|
|
13
14
|
id: string;
|
|
14
|
-
editor:
|
|
15
|
+
editor: ExtendedEditor;
|
|
15
16
|
component: any;
|
|
16
17
|
element: Element;
|
|
17
18
|
props: Record<string, any>;
|
|
18
19
|
reactElement: React.ReactNode;
|
|
19
|
-
ref:
|
|
20
|
-
constructor(component: ComponentType
|
|
20
|
+
ref: R | null;
|
|
21
|
+
constructor(component: ComponentType<R>, { editor, props, as }: ReactRendererOptions);
|
|
21
22
|
render(): void;
|
|
22
23
|
updateProps(props?: Record<string, any>): void;
|
|
23
24
|
destroy(): void;
|
package/dist/tests/cypress/integration/{extensions/link.spec.d.ts → core/pluginOrder.spec.d.ts}
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/vue-2",
|
|
3
3
|
"description": "Vue components for tiptap",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.60",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"vue": "^2.6.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tiptap/extension-bubble-menu": "^2.0.0-beta.
|
|
32
|
-
"@tiptap/extension-floating-menu": "^2.0.0-beta.
|
|
33
|
-
"prosemirror-view": "^1.20.
|
|
31
|
+
"@tiptap/extension-bubble-menu": "^2.0.0-beta.42",
|
|
32
|
+
"@tiptap/extension-floating-menu": "^2.0.0-beta.36",
|
|
33
|
+
"prosemirror-view": "^1.20.3"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "https://github.com/ueberdosis/tiptap",
|
|
38
38
|
"directory": "packages/vue-2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9948e2499a3aa6ca72b677ef2ca96de1db1cb6b5"
|
|
41
41
|
}
|