@yiitap/vue 0.5.0 → 0.6.0
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/index.cjs +90 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +90 -87
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49650 -29070
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +47 -43
- package/types/components/YiiEditor.vue.d.ts +24 -18
- package/types/components/buttons/ODetailsBtn.vue.d.ts +12 -0
- package/types/components/buttons/OHighlightDropdown.vue.d.ts +10 -0
- package/types/components/common/OBlockMenu.vue.d.ts +67 -21
- package/types/components/common/OColorBoard.vue.d.ts +9 -0
- package/types/components/common/o-side-menu/AddNode.vue.d.ts +69 -13
- package/types/components/common/o-side-menu/AddNodeView.vue.d.ts +58 -12
- package/types/components/common/o-side-menu/DragNode.vue.d.ts +58 -14
- package/types/components/common/o-side-menu/DragNodeView.vue.d.ts +58 -12
- package/types/components/menus/OSideMenu.vue.d.ts +9 -0
- package/types/constants/empty-block.d.ts +13 -0
- package/types/extensions/blockquote/index.d.ts +4 -1
- package/types/extensions/char-command/colon/suggestion.d.ts +14 -0
- package/types/extensions/char-command/colon/view.vue.d.ts +72 -0
- package/types/extensions/char-command/emoji/suggestion.d.ts +7 -8
- package/types/extensions/char-command/emoji/view.vue.d.ts +12 -46
- package/types/extensions/details/index.d.ts +6 -0
- package/types/extensions/details/view.vue.d.ts +92 -0
- package/types/extensions/dynamic.d.ts +1 -0
- package/types/extensions/index.d.ts +10 -8
- package/types/i18n/messages/en.d.ts +3 -0
- package/types/i18n/messages/zh-hans.d.ts +3 -0
- package/types/i18n/messages/zh-hant.d.ts +9 -0
- package/types/utils/convert.d.ts +13 -1
- /package/types/components/buttons/{OBackColorDropdown.vue.d.ts → OBackgroundColorDropdown.vue.d.ts} +0 -0
- /package/types/components/buttons/{OForeColorDropdown.vue.d.ts → OColorDropdown.vue.d.ts} +0 -0
|
@@ -1,54 +1,98 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import type { NodeViewProps } from '@tiptap/core';
|
|
3
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
2
|
editor: {
|
|
5
|
-
type: PropType<NodeViewProps["editor"]>;
|
|
3
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
6
4
|
required: true;
|
|
7
5
|
};
|
|
8
6
|
node: {
|
|
9
|
-
type: PropType<NodeViewProps["node"]>;
|
|
7
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
10
20
|
required: true;
|
|
11
21
|
};
|
|
12
22
|
getPos: {
|
|
13
|
-
type: PropType<NodeViewProps["getPos"]>;
|
|
23
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
14
24
|
required: true;
|
|
15
25
|
};
|
|
16
26
|
updateAttributes: {
|
|
17
|
-
type: PropType<NodeViewProps["updateAttributes"]>;
|
|
27
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
18
28
|
required: true;
|
|
19
29
|
};
|
|
20
30
|
deleteNode: {
|
|
21
|
-
type: PropType<NodeViewProps["deleteNode"]>;
|
|
31
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
22
44
|
required: true;
|
|
23
45
|
};
|
|
24
46
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
47
|
dragend: (...args: any[]) => void;
|
|
26
48
|
dragstart: (...args: any[]) => void;
|
|
27
|
-
action: (...args: any[]) => void;
|
|
28
49
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
50
|
editor: {
|
|
30
|
-
type: PropType<NodeViewProps["editor"]>;
|
|
51
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
31
52
|
required: true;
|
|
32
53
|
};
|
|
33
54
|
node: {
|
|
34
|
-
type: PropType<NodeViewProps["node"]>;
|
|
55
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
decorations: {
|
|
59
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
selected: {
|
|
63
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
extension: {
|
|
67
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
35
68
|
required: true;
|
|
36
69
|
};
|
|
37
70
|
getPos: {
|
|
38
|
-
type: PropType<NodeViewProps["getPos"]>;
|
|
71
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
39
72
|
required: true;
|
|
40
73
|
};
|
|
41
74
|
updateAttributes: {
|
|
42
|
-
type: PropType<NodeViewProps["updateAttributes"]>;
|
|
75
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
43
76
|
required: true;
|
|
44
77
|
};
|
|
45
78
|
deleteNode: {
|
|
46
|
-
type: PropType<NodeViewProps["deleteNode"]>;
|
|
79
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
view: {
|
|
83
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
84
|
+
required: true;
|
|
85
|
+
};
|
|
86
|
+
innerDecorations: {
|
|
87
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
90
|
+
HTMLAttributes: {
|
|
91
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
47
92
|
required: true;
|
|
48
93
|
};
|
|
49
94
|
}>> & Readonly<{
|
|
50
95
|
onDragend?: (...args: any[]) => any;
|
|
51
96
|
onDragstart?: (...args: any[]) => any;
|
|
52
|
-
onAction?: (...args: any[]) => any;
|
|
53
97
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
98
|
export default _default;
|
|
@@ -1,47 +1,93 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import type { NodeViewProps } from '@tiptap/core';
|
|
3
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
2
|
editor: {
|
|
5
|
-
type: PropType<NodeViewProps["editor"]>;
|
|
3
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
6
4
|
required: true;
|
|
7
5
|
};
|
|
8
6
|
node: {
|
|
9
|
-
type: PropType<NodeViewProps["node"]>;
|
|
7
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
10
20
|
required: true;
|
|
11
21
|
};
|
|
12
22
|
getPos: {
|
|
13
|
-
type: PropType<NodeViewProps["getPos"]>;
|
|
23
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
14
24
|
required: true;
|
|
15
25
|
};
|
|
16
26
|
updateAttributes: {
|
|
17
|
-
type: PropType<NodeViewProps["updateAttributes"]>;
|
|
27
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
18
28
|
required: true;
|
|
19
29
|
};
|
|
20
30
|
deleteNode: {
|
|
21
|
-
type: PropType<NodeViewProps["deleteNode"]>;
|
|
31
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
22
44
|
required: true;
|
|
23
45
|
};
|
|
24
46
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
47
|
action: (...args: any[]) => void;
|
|
26
48
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
49
|
editor: {
|
|
28
|
-
type: PropType<NodeViewProps["editor"]>;
|
|
50
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
29
51
|
required: true;
|
|
30
52
|
};
|
|
31
53
|
node: {
|
|
32
|
-
type: PropType<NodeViewProps["node"]>;
|
|
54
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
decorations: {
|
|
58
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
selected: {
|
|
62
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
extension: {
|
|
66
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
33
67
|
required: true;
|
|
34
68
|
};
|
|
35
69
|
getPos: {
|
|
36
|
-
type: PropType<NodeViewProps["getPos"]>;
|
|
70
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
37
71
|
required: true;
|
|
38
72
|
};
|
|
39
73
|
updateAttributes: {
|
|
40
|
-
type: PropType<NodeViewProps["updateAttributes"]>;
|
|
74
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
41
75
|
required: true;
|
|
42
76
|
};
|
|
43
77
|
deleteNode: {
|
|
44
|
-
type: PropType<NodeViewProps["deleteNode"]>;
|
|
78
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
view: {
|
|
82
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
innerDecorations: {
|
|
86
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
HTMLAttributes: {
|
|
90
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
45
91
|
required: true;
|
|
46
92
|
};
|
|
47
93
|
}>> & Readonly<{
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
+
add: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
11
15
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
16
|
editor: {
|
|
13
17
|
type: typeof Editor;
|
|
@@ -17,7 +21,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
21
|
type: StringConstructor;
|
|
18
22
|
default: string;
|
|
19
23
|
};
|
|
24
|
+
add: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
20
28
|
}>> & Readonly<{}>, {
|
|
29
|
+
add: string;
|
|
21
30
|
menuClass: string;
|
|
22
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
32
|
export default _default;
|
|
@@ -19,3 +19,16 @@ export declare const EmptyTaskItem: {
|
|
|
19
19
|
content: any[];
|
|
20
20
|
}[];
|
|
21
21
|
}[];
|
|
22
|
+
export declare const EmptyDetails: {
|
|
23
|
+
type: string;
|
|
24
|
+
attrs: {
|
|
25
|
+
open: boolean;
|
|
26
|
+
};
|
|
27
|
+
content: {
|
|
28
|
+
type: string;
|
|
29
|
+
content: {
|
|
30
|
+
type: string;
|
|
31
|
+
content: any[];
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
}[];
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
2
|
-
|
|
2
|
+
interface OBlockquoteOptions extends BlockquoteOptions {
|
|
3
|
+
triggerCharacters: string[];
|
|
4
|
+
}
|
|
5
|
+
declare const OBlockquote: import("@tiptap/core").Node<OBlockquoteOptions, any>;
|
|
3
6
|
export default OBlockquote;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type SuggestionProps, type SuggestionKeyDownProps } from '@tiptap/suggestion';
|
|
2
|
+
import { type MentionNodeAttrs } from '@tiptap/extension-mention';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
items: ({ query }: {
|
|
5
|
+
query: string;
|
|
6
|
+
}) => never[];
|
|
7
|
+
render: () => {
|
|
8
|
+
onStart: (props: SuggestionProps<any, MentionNodeAttrs>) => void;
|
|
9
|
+
onUpdate(props: SuggestionProps): void;
|
|
10
|
+
onKeyDown(props: SuggestionKeyDownProps): any;
|
|
11
|
+
onExit(): void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
items: {
|
|
4
|
+
type: () => Indexable[];
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
command: {
|
|
8
|
+
type: FunctionConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
editor: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
};
|
|
14
|
+
range: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
locale: {
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
tr: (key: string) => any;
|
|
22
|
+
run: (editor: Editor, command: string, options?: Indexable) => void;
|
|
23
|
+
}, {
|
|
24
|
+
view: string;
|
|
25
|
+
}, {}, {
|
|
26
|
+
onSelect(options: Indexable): void;
|
|
27
|
+
onKeyDown({ event }: {
|
|
28
|
+
event: any;
|
|
29
|
+
}): false;
|
|
30
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
items: {
|
|
32
|
+
type: () => Indexable[];
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
command: {
|
|
36
|
+
type: FunctionConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
editor: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
};
|
|
42
|
+
range: {
|
|
43
|
+
type: ObjectConstructor;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {}, {}, {
|
|
46
|
+
OEmojiSelect: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
47
|
+
items: {
|
|
48
|
+
type: () => Indexable[];
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
enableSearch: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
select: (...args: any[]) => void;
|
|
57
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
items: {
|
|
59
|
+
type: () => Indexable[];
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
enableSearch: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{
|
|
67
|
+
onSelect?: (...args: any[]) => any;
|
|
68
|
+
}>, {
|
|
69
|
+
enableSearch: boolean;
|
|
70
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { type SuggestionProps, type SuggestionKeyDownProps } from '@tiptap/suggestion';
|
|
2
|
-
import { type MentionNodeAttrs } from '@tiptap/extension-mention';
|
|
3
1
|
declare const _default: {
|
|
4
|
-
items: ({ query }: {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
items: ({ editor, query }: {
|
|
3
|
+
editor: any;
|
|
4
|
+
query: any;
|
|
5
|
+
}) => any;
|
|
7
6
|
render: () => {
|
|
8
|
-
onStart: (props:
|
|
9
|
-
onUpdate(props:
|
|
10
|
-
onKeyDown(props:
|
|
7
|
+
onStart: (props: any) => void;
|
|
8
|
+
onUpdate(props: any): void;
|
|
9
|
+
onKeyDown(props: any): any;
|
|
11
10
|
onExit(): void;
|
|
12
11
|
};
|
|
13
12
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
2
|
items: {
|
|
4
|
-
type:
|
|
3
|
+
type: ArrayConstructor;
|
|
5
4
|
required: true;
|
|
6
5
|
};
|
|
7
6
|
command: {
|
|
@@ -10,26 +9,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
9
|
};
|
|
11
10
|
editor: {
|
|
12
11
|
type: ObjectConstructor;
|
|
12
|
+
required: true;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
}>, {
|
|
18
|
-
locale: {
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
tr: (key: string) => any;
|
|
22
|
-
run: (editor: Editor, command: string, options?: Indexable) => void;
|
|
23
|
-
}, {
|
|
24
|
-
view: string;
|
|
14
|
+
}>, {}, {
|
|
15
|
+
selectedIndex: number;
|
|
25
16
|
}, {}, {
|
|
26
|
-
onSelect(options: Indexable): void;
|
|
27
17
|
onKeyDown({ event }: {
|
|
28
18
|
event: any;
|
|
29
|
-
}):
|
|
19
|
+
}): boolean;
|
|
20
|
+
upHandler(): void;
|
|
21
|
+
downHandler(): void;
|
|
22
|
+
enterHandler(): void;
|
|
23
|
+
selectItem(index: any): void;
|
|
30
24
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
25
|
items: {
|
|
32
|
-
type:
|
|
26
|
+
type: ArrayConstructor;
|
|
33
27
|
required: true;
|
|
34
28
|
};
|
|
35
29
|
command: {
|
|
@@ -38,35 +32,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
32
|
};
|
|
39
33
|
editor: {
|
|
40
34
|
type: ObjectConstructor;
|
|
35
|
+
required: true;
|
|
41
36
|
};
|
|
42
|
-
|
|
43
|
-
type: ObjectConstructor;
|
|
44
|
-
};
|
|
45
|
-
}>> & Readonly<{}>, {}, {}, {
|
|
46
|
-
OEmojiSelect: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
47
|
-
items: {
|
|
48
|
-
type: () => Indexable[];
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
enableSearch: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
-
select: (...args: any[]) => void;
|
|
57
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
-
items: {
|
|
59
|
-
type: () => Indexable[];
|
|
60
|
-
required: true;
|
|
61
|
-
};
|
|
62
|
-
enableSearch: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
}>> & Readonly<{
|
|
67
|
-
onSelect?: (...args: any[]) => any;
|
|
68
|
-
}>, {
|
|
69
|
-
enableSearch: boolean;
|
|
70
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
-
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
38
|
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
editor: {
|
|
48
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
node: {
|
|
52
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
decorations: {
|
|
56
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
selected: {
|
|
60
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
extension: {
|
|
64
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
getPos: {
|
|
68
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
updateAttributes: {
|
|
72
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
deleteNode: {
|
|
76
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
view: {
|
|
80
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
innerDecorations: {
|
|
84
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
HTMLAttributes: {
|
|
88
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default _default;
|
|
@@ -3,5 +3,6 @@ declare class DynamicClass {
|
|
|
3
3
|
}
|
|
4
4
|
export default DynamicClass;
|
|
5
5
|
export declare const getDynamicExtension: (name: string) => DynamicClass;
|
|
6
|
+
export declare const DetailsExtensions: import("@tiptap/core").Node<import("@tiptap/extension-details").DetailsContentOptions, any>[];
|
|
6
7
|
export declare const TableExtensions: import("@tiptap/core").Node<any, any>[];
|
|
7
8
|
export declare const DefaultTableExtensions: import("@tiptap/core").Node<import("@tiptap/extension-table").TableCellOptions, any>[];
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { Focus } from '@tiptap/extensions';
|
|
2
|
+
import { Details, DetailsContent, DetailsSummary } from '@tiptap/extension-details';
|
|
2
3
|
import { Table, TableRow, TableCell, TableHeader } from '@tiptap/extension-table';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { BackgroundColor, Color, FontFamily, TextStyle } from '@tiptap/extension-text-style';
|
|
5
|
+
import { TaskItem, TaskList } from '@tiptap/extension-list';
|
|
6
|
+
import Highlight from '@tiptap/extension-highlight';
|
|
7
|
+
import Emoji from '@tiptap/extension-emoji';
|
|
7
8
|
import Image from '@tiptap/extension-image';
|
|
8
9
|
import Link from '@tiptap/extension-link';
|
|
9
10
|
import Mention from '@tiptap/extension-mention';
|
|
10
|
-
import
|
|
11
|
+
import Subscript from '@tiptap/extension-subscript';
|
|
12
|
+
import Superscript from '@tiptap/extension-superscript';
|
|
11
13
|
import TextAlign from '@tiptap/extension-text-align';
|
|
12
14
|
import Typography from '@tiptap/extension-typography';
|
|
13
15
|
import Underline from '@tiptap/extension-underline';
|
|
14
|
-
import Text from '@tiptap/extension-text';
|
|
15
16
|
import OColorHighlighter from '@yiitap/extension-color-highlighter';
|
|
16
17
|
import OFocus from '@yiitap/extension-focus';
|
|
17
18
|
import OPlaceholder from '@yiitap/extension-placeholder';
|
|
18
19
|
import OSelectionDecoration from '@yiitap/extension-selection-decoration';
|
|
20
|
+
import OShortcut from '@yiitap/extension-shortcut';
|
|
19
21
|
import OTable from '@yiitap/extension-table';
|
|
20
22
|
import OTrailingNode from '@yiitap/extension-trailing-node';
|
|
21
23
|
import OUniqueID from '@yiitap/extension-unique-id';
|
|
@@ -25,6 +27,7 @@ import OAiBlock from './ai-block';
|
|
|
25
27
|
import OBlockquote from './blockquote';
|
|
26
28
|
import OCallout from './callout';
|
|
27
29
|
import OCodeBlock from './code-block';
|
|
30
|
+
import ODetails from './details';
|
|
28
31
|
import OHeading from './heading';
|
|
29
32
|
import OHorizontalRule from './horizontal-rule';
|
|
30
33
|
import OImage from './image';
|
|
@@ -41,5 +44,4 @@ export declare const DefaultExtensionNames: string[];
|
|
|
41
44
|
export declare const TiptapExtensionNames: string[];
|
|
42
45
|
export declare const YiitapExtensionNames: string[];
|
|
43
46
|
export declare const BuiltinExtensionNames: string[];
|
|
44
|
-
export
|
|
45
|
-
export { Document, BackColor, Focus, FontFamily, ForeColor, Image, Link, Mention, TaskItem, TaskList, TextAlign, Typography, Underline, Table, TableHeader, TableCell, TableRow, Text, OAiBlock, OBlockquote, OCallout, OCharCommand, OCodeBlock, OColonCommand, OColorHighlighter, OFocus, OSelectionDecoration, OSlashCommand, OSlashZhCommand, OHeading, OHorizontalRule, OImage, OLink, OParagraph, OPlaceholder, OTable, OTableCell, OTableHeader, OTableWrapper, OTrailingNode, OUniqueID, OVideo, };
|
|
47
|
+
export { BackgroundColor, Color, Details, DetailsContent, DetailsSummary, Emoji, Focus, FontFamily, Highlight, Image, Link, Mention, Subscript, Superscript, Table, TableHeader, TableCell, TableRow, TaskItem, TaskList, TextAlign, TextStyle, Typography, Underline, OAiBlock, OBlockquote, OCallout, OCharCommand, OCodeBlock, OColonCommand, OColorHighlighter, ODetails, OFocus, OSelectionDecoration, OShortcut, OSlashCommand, OSlashZhCommand, OHeading, OHorizontalRule, OImage, OLink, OParagraph, OPlaceholder, OTable, OTableCell, OTableHeader, OTableWrapper, OTrailingNode, OUniqueID, OVideo, };
|
|
@@ -65,6 +65,7 @@ declare const _default: {
|
|
|
65
65
|
size7: string;
|
|
66
66
|
viewSource: string;
|
|
67
67
|
textColor: string;
|
|
68
|
+
backgroundColor: string;
|
|
68
69
|
highlightColor: string;
|
|
69
70
|
default: string;
|
|
70
71
|
lineHeight: string;
|
|
@@ -84,6 +85,7 @@ declare const _default: {
|
|
|
84
85
|
delete: string;
|
|
85
86
|
duplicate: string;
|
|
86
87
|
aiBlock: string;
|
|
88
|
+
toggleList: string;
|
|
87
89
|
};
|
|
88
90
|
label: {
|
|
89
91
|
ai: string;
|
|
@@ -127,6 +129,7 @@ declare const _default: {
|
|
|
127
129
|
generate: string;
|
|
128
130
|
generatedBy: string;
|
|
129
131
|
update: string;
|
|
132
|
+
turnInto: string;
|
|
130
133
|
};
|
|
131
134
|
table: {
|
|
132
135
|
cellBackground: string;
|
|
@@ -65,6 +65,7 @@ declare const _default: {
|
|
|
65
65
|
size7: string;
|
|
66
66
|
viewSource: string;
|
|
67
67
|
textColor: string;
|
|
68
|
+
backgroundColor: string;
|
|
68
69
|
highlightColor: string;
|
|
69
70
|
default: string;
|
|
70
71
|
lineHeight: string;
|
|
@@ -84,6 +85,7 @@ declare const _default: {
|
|
|
84
85
|
delete: string;
|
|
85
86
|
duplicate: string;
|
|
86
87
|
aiBlock: string;
|
|
88
|
+
toggleList: string;
|
|
87
89
|
};
|
|
88
90
|
label: {
|
|
89
91
|
ai: string;
|
|
@@ -125,6 +127,7 @@ declare const _default: {
|
|
|
125
127
|
generate: string;
|
|
126
128
|
generatedBy: string;
|
|
127
129
|
update: string;
|
|
130
|
+
turnInto: string;
|
|
128
131
|
};
|
|
129
132
|
table: {
|
|
130
133
|
cellBackground: string;
|