@tiptap/vue-3 2.5.0-beta.5 → 2.5.0-beta.6
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/utilities/removeDuplicates.d.ts +2 -2
- package/dist/packages/vue-3/src/BubbleMenu.d.ts +14 -27
- package/dist/packages/vue-3/src/EditorContent.d.ts +2 -2
- package/dist/packages/vue-3/src/FloatingMenu.d.ts +10 -19
- package/dist/packages/vue-3/src/NodeViewContent.d.ts +2 -2
- package/dist/packages/vue-3/src/NodeViewWrapper.d.ts +2 -2
- package/dist/packages/vue-3/src/VueNodeViewRenderer.d.ts +9 -9
- package/package.json +5 -5
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Supports numbers, strings and objects.
|
|
4
4
|
*/
|
|
5
5
|
export declare function removeDuplicates<T>(array: T[], by?: {
|
|
6
|
-
(value: any, replacer?: (
|
|
7
|
-
(value: any, replacer?: (
|
|
6
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
7
|
+
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
8
8
|
}): T[];
|
|
@@ -1,60 +1,47 @@
|
|
|
1
|
+
import { BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu';
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
export declare const BubbleMenu: import("vue").DefineComponent<{
|
|
3
4
|
pluginKey: {
|
|
4
|
-
type: PropType<
|
|
5
|
+
type: PropType<BubbleMenuPluginProps["pluginKey"]>;
|
|
5
6
|
default: string;
|
|
6
7
|
};
|
|
7
8
|
editor: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<BubbleMenuPluginProps["editor"]>;
|
|
9
10
|
required: true;
|
|
10
11
|
};
|
|
11
12
|
updateDelay: {
|
|
12
|
-
type: PropType<
|
|
13
|
+
type: PropType<BubbleMenuPluginProps["updateDelay"]>;
|
|
13
14
|
default: undefined;
|
|
14
15
|
};
|
|
15
16
|
tippyOptions: {
|
|
16
|
-
type: PropType<
|
|
17
|
+
type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
|
|
17
18
|
default: () => {};
|
|
18
19
|
};
|
|
19
20
|
shouldShow: {
|
|
20
|
-
type: PropType<
|
|
21
|
-
editor: import("@tiptap/core").Editor;
|
|
22
|
-
view: import("prosemirror-view").EditorView;
|
|
23
|
-
state: import("prosemirror-state").EditorState;
|
|
24
|
-
oldState?: import("prosemirror-state").EditorState | undefined;
|
|
25
|
-
from: number;
|
|
26
|
-
to: number;
|
|
27
|
-
}) => boolean>;
|
|
21
|
+
type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
|
|
28
22
|
default: null;
|
|
29
23
|
};
|
|
30
24
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
25
|
[key: string]: any;
|
|
32
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
26
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
27
|
pluginKey: {
|
|
34
|
-
type: PropType<
|
|
28
|
+
type: PropType<BubbleMenuPluginProps["pluginKey"]>;
|
|
35
29
|
default: string;
|
|
36
30
|
};
|
|
37
31
|
editor: {
|
|
38
|
-
type: PropType<
|
|
32
|
+
type: PropType<BubbleMenuPluginProps["editor"]>;
|
|
39
33
|
required: true;
|
|
40
34
|
};
|
|
41
35
|
updateDelay: {
|
|
42
|
-
type: PropType<
|
|
36
|
+
type: PropType<BubbleMenuPluginProps["updateDelay"]>;
|
|
43
37
|
default: undefined;
|
|
44
38
|
};
|
|
45
39
|
tippyOptions: {
|
|
46
|
-
type: PropType<
|
|
40
|
+
type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
|
|
47
41
|
default: () => {};
|
|
48
42
|
};
|
|
49
43
|
shouldShow: {
|
|
50
|
-
type: PropType<
|
|
51
|
-
editor: import("@tiptap/core").Editor;
|
|
52
|
-
view: import("prosemirror-view").EditorView;
|
|
53
|
-
state: import("prosemirror-state").EditorState;
|
|
54
|
-
oldState?: import("prosemirror-state").EditorState | undefined;
|
|
55
|
-
from: number;
|
|
56
|
-
to: number;
|
|
57
|
-
}) => boolean>;
|
|
44
|
+
type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
|
|
58
45
|
default: null;
|
|
59
46
|
};
|
|
60
47
|
}>>, {
|
|
@@ -65,8 +52,8 @@ export declare const BubbleMenu: import("vue").DefineComponent<{
|
|
|
65
52
|
editor: import("@tiptap/core").Editor;
|
|
66
53
|
view: import("prosemirror-view").EditorView;
|
|
67
54
|
state: import("prosemirror-state").EditorState;
|
|
68
|
-
oldState?: import("prosemirror-state").EditorState
|
|
55
|
+
oldState?: import("prosemirror-state").EditorState;
|
|
69
56
|
from: number;
|
|
70
57
|
to: number;
|
|
71
58
|
}) => boolean;
|
|
72
|
-
}>;
|
|
59
|
+
}, {}>;
|
|
@@ -7,11 +7,11 @@ export declare const EditorContent: import("vue").DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
}, {
|
|
9
9
|
rootEl: Ref<Element | undefined>;
|
|
10
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
editor: {
|
|
12
12
|
default: null;
|
|
13
13
|
type: PropType<Editor>;
|
|
14
14
|
};
|
|
15
15
|
}>>, {
|
|
16
16
|
editor: Editor;
|
|
17
|
-
}>;
|
|
17
|
+
}, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FloatingMenuPluginProps } from '@tiptap/extension-floating-menu';
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
export declare const FloatingMenu: import("vue").DefineComponent<{
|
|
3
4
|
pluginKey: {
|
|
@@ -5,44 +6,34 @@ export declare const FloatingMenu: import("vue").DefineComponent<{
|
|
|
5
6
|
default: string;
|
|
6
7
|
};
|
|
7
8
|
editor: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<FloatingMenuPluginProps["editor"]>;
|
|
9
10
|
required: true;
|
|
10
11
|
};
|
|
11
12
|
tippyOptions: {
|
|
12
|
-
type: PropType<
|
|
13
|
+
type: PropType<FloatingMenuPluginProps["tippyOptions"]>;
|
|
13
14
|
default: () => {};
|
|
14
15
|
};
|
|
15
16
|
shouldShow: {
|
|
16
|
-
type: PropType<
|
|
17
|
-
editor: import("@tiptap/core").Editor;
|
|
18
|
-
view: import("prosemirror-view").EditorView;
|
|
19
|
-
state: import("prosemirror-state").EditorState;
|
|
20
|
-
oldState?: import("prosemirror-state").EditorState | undefined;
|
|
21
|
-
}) => boolean>;
|
|
17
|
+
type: PropType<Exclude<Required<FloatingMenuPluginProps>["shouldShow"], null>>;
|
|
22
18
|
default: null;
|
|
23
19
|
};
|
|
24
20
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
21
|
[key: string]: any;
|
|
26
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
22
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
23
|
pluginKey: {
|
|
28
24
|
type: null;
|
|
29
25
|
default: string;
|
|
30
26
|
};
|
|
31
27
|
editor: {
|
|
32
|
-
type: PropType<
|
|
28
|
+
type: PropType<FloatingMenuPluginProps["editor"]>;
|
|
33
29
|
required: true;
|
|
34
30
|
};
|
|
35
31
|
tippyOptions: {
|
|
36
|
-
type: PropType<
|
|
32
|
+
type: PropType<FloatingMenuPluginProps["tippyOptions"]>;
|
|
37
33
|
default: () => {};
|
|
38
34
|
};
|
|
39
35
|
shouldShow: {
|
|
40
|
-
type: PropType<
|
|
41
|
-
editor: import("@tiptap/core").Editor;
|
|
42
|
-
view: import("prosemirror-view").EditorView;
|
|
43
|
-
state: import("prosemirror-state").EditorState;
|
|
44
|
-
oldState?: import("prosemirror-state").EditorState | undefined;
|
|
45
|
-
}) => boolean>;
|
|
36
|
+
type: PropType<Exclude<Required<FloatingMenuPluginProps>["shouldShow"], null>>;
|
|
46
37
|
default: null;
|
|
47
38
|
};
|
|
48
39
|
}>>, {
|
|
@@ -51,7 +42,7 @@ export declare const FloatingMenu: import("vue").DefineComponent<{
|
|
|
51
42
|
editor: import("@tiptap/core").Editor;
|
|
52
43
|
view: import("prosemirror-view").EditorView;
|
|
53
44
|
state: import("prosemirror-state").EditorState;
|
|
54
|
-
oldState?: import("prosemirror-state").EditorState
|
|
45
|
+
oldState?: import("prosemirror-state").EditorState;
|
|
55
46
|
}) => boolean;
|
|
56
47
|
pluginKey: any;
|
|
57
|
-
}>;
|
|
48
|
+
}, {}>;
|
|
@@ -3,11 +3,11 @@ export declare const NodeViewContent: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
6
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
as: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
}>>, {
|
|
12
12
|
as: string;
|
|
13
|
-
}>;
|
|
13
|
+
}, {}>;
|
|
@@ -3,11 +3,11 @@ export declare const NodeViewWrapper: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
6
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
as: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
}>>, {
|
|
12
12
|
as: string;
|
|
13
|
-
}>;
|
|
13
|
+
}, {}>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeViewProps, NodeViewRenderer, NodeViewRendererOptions } from '@tiptap/core';
|
|
2
2
|
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
3
|
import { Decoration } from '@tiptap/pm/view';
|
|
4
4
|
import { Component, PropType } from 'vue';
|
|
5
5
|
export declare const nodeViewProps: {
|
|
6
6
|
editor: {
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<NodeViewProps["editor"]>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
node: {
|
|
11
|
-
type: PropType<
|
|
11
|
+
type: PropType<NodeViewProps["node"]>;
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
14
|
decorations: {
|
|
15
|
-
type: PropType<
|
|
15
|
+
type: PropType<NodeViewProps["decorations"]>;
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
selected: {
|
|
19
|
-
type: PropType<
|
|
19
|
+
type: PropType<NodeViewProps["selected"]>;
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
22
|
extension: {
|
|
23
|
-
type: PropType<
|
|
23
|
+
type: PropType<NodeViewProps["extension"]>;
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
26
26
|
getPos: {
|
|
27
|
-
type: PropType<
|
|
27
|
+
type: PropType<NodeViewProps["getPos"]>;
|
|
28
28
|
required: true;
|
|
29
29
|
};
|
|
30
30
|
updateAttributes: {
|
|
31
|
-
type: PropType<
|
|
31
|
+
type: PropType<NodeViewProps["updateAttributes"]>;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
34
|
deleteNode: {
|
|
35
|
-
type: PropType<
|
|
35
|
+
type: PropType<NodeViewProps["deleteNode"]>;
|
|
36
36
|
required: true;
|
|
37
37
|
};
|
|
38
38
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/vue-3",
|
|
3
3
|
"description": "Vue components for tiptap",
|
|
4
|
-
"version": "2.5.0-beta.
|
|
4
|
+
"version": "2.5.0-beta.6",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tiptap/extension-bubble-menu": "^2.5.0-beta.
|
|
33
|
-
"@tiptap/extension-floating-menu": "^2.5.0-beta.
|
|
32
|
+
"@tiptap/extension-bubble-menu": "^2.5.0-beta.6",
|
|
33
|
+
"@tiptap/extension-floating-menu": "^2.5.0-beta.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tiptap/core": "^2.5.0-beta.
|
|
37
|
-
"@tiptap/pm": "^2.5.0-beta.
|
|
36
|
+
"@tiptap/core": "^2.5.0-beta.6",
|
|
37
|
+
"@tiptap/pm": "^2.5.0-beta.6",
|
|
38
38
|
"vue": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|