@vunk/plus 0.0.1 → 0.0.2
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/components/lottie-animation/index.d.ts +4 -0
- package/components/lottie-animation/src/ctx.d.ts +10 -0
- package/components/lottie-animation/src/index.vue.d.ts +21 -0
- package/components/lottie-animation/src/types.d.ts +4 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +19 -0
- package/components/monaco-editor/src/index.vue.d.ts +40 -0
- package/components/monaco-editor/src/types.d.ts +1 -0
- package/components/monaco-environment/index.d.ts +4 -0
- package/components/monaco-environment/src/ctx.d.ts +8 -0
- package/components/monaco-environment/src/index.vue.d.ts +2 -0
- package/components/monaco-environment/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/src/core.d.ts +3 -0
- package/components/typing-markdown/src/ctx.d.ts +24 -0
- package/components/typing-markdown/src/index.vue.d.ts +48 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +4 -0
- package/components/vditor/index.mjs +2 -15595
- package/components/vditor/src/ctx.d.ts +30 -0
- package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
- package/components/vditor/src/handle-value.vue.d.ts +18 -0
- package/components/vditor/src/index.vue.d.ts +144 -0
- package/components/vditor/src/types.d.ts +9 -0
- package/components/vditor/src/use.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import Vditor from 'vditor';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
defaultOptions: {
|
|
9
|
+
type: PropType<IOptions>;
|
|
10
|
+
default: () => IOptions;
|
|
11
|
+
};
|
|
12
|
+
placeholder: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
toolbar: {
|
|
17
|
+
type: PropType<string[]>;
|
|
18
|
+
default: () => string[];
|
|
19
|
+
};
|
|
20
|
+
fullscreen: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const emits: {
|
|
26
|
+
load: (e: Vditor) => Vditor;
|
|
27
|
+
'update:modelValue': (e: string) => string;
|
|
28
|
+
ctrlEnter: (e: string) => string;
|
|
29
|
+
'update:fullscreen': (e: boolean) => boolean;
|
|
30
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
fullscreen: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
'update:fullscreen': any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
fullscreen: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
"onUpdate:fullscreen"?: (...args: any[] | unknown[]) => any;
|
|
15
|
+
}>, {
|
|
16
|
+
fullscreen: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
'update:modelValue': any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
15
|
+
}>, {
|
|
16
|
+
modelValue: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/// <reference types="./types" />
|
|
2
|
+
import Vditor from 'vditor';
|
|
3
|
+
import { Ref } from 'vue';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
defaultOptions: {
|
|
10
|
+
type: import("vue").PropType<IOptions>;
|
|
11
|
+
default: () => IOptions;
|
|
12
|
+
};
|
|
13
|
+
placeholder: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
toolbar: {
|
|
18
|
+
type: import("vue").PropType<string[]>;
|
|
19
|
+
default: () => string[];
|
|
20
|
+
};
|
|
21
|
+
fullscreen: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
vditorNode: Ref<HTMLDivElement, HTMLDivElement>;
|
|
27
|
+
isTextareaFocus: Ref<boolean, boolean>;
|
|
28
|
+
ready: Ref<boolean, boolean>;
|
|
29
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
load: (e: Vditor) => Vditor;
|
|
31
|
+
'update:modelValue': (e: string) => string;
|
|
32
|
+
ctrlEnter: (e: string) => string;
|
|
33
|
+
'update:fullscreen': (e: boolean) => boolean;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
modelValue: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
defaultOptions: {
|
|
40
|
+
type: import("vue").PropType<IOptions>;
|
|
41
|
+
default: () => IOptions;
|
|
42
|
+
};
|
|
43
|
+
placeholder: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
toolbar: {
|
|
48
|
+
type: import("vue").PropType<string[]>;
|
|
49
|
+
default: () => string[];
|
|
50
|
+
};
|
|
51
|
+
fullscreen: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onLoad?: (e: Vditor) => any;
|
|
57
|
+
"onUpdate:modelValue"?: (e: string) => any;
|
|
58
|
+
"onUpdate:fullscreen"?: (e: boolean) => any;
|
|
59
|
+
onCtrlEnter?: (e: string) => any;
|
|
60
|
+
}>, {
|
|
61
|
+
modelValue: string;
|
|
62
|
+
defaultOptions: IOptions;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
toolbar: string[];
|
|
65
|
+
fullscreen: boolean;
|
|
66
|
+
}, {}, {
|
|
67
|
+
HandleValue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
68
|
+
modelValue: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
+
'update:modelValue': any;
|
|
74
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
modelValue: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
}>> & Readonly<{
|
|
80
|
+
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
81
|
+
}>, {
|
|
82
|
+
modelValue: string;
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
HandleFullscreen: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
85
|
+
fullscreen: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
|
+
'update:fullscreen': any;
|
|
91
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
fullscreen: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{
|
|
97
|
+
"onUpdate:fullscreen"?: (...args: any[] | unknown[]) => any;
|
|
98
|
+
}>, {
|
|
99
|
+
fullscreen: boolean;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
VkAsyncTeleport: import("vue").DefineComponent<{
|
|
102
|
+
to: {
|
|
103
|
+
type: import("vue").PropType<string | import("vue").RendererElement>;
|
|
104
|
+
default: any;
|
|
105
|
+
};
|
|
106
|
+
sleep: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
await: {
|
|
111
|
+
type: PromiseConstructor;
|
|
112
|
+
default: any;
|
|
113
|
+
};
|
|
114
|
+
teleport: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
}, {
|
|
119
|
+
ready: Ref<boolean, boolean>;
|
|
120
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
121
|
+
to: {
|
|
122
|
+
type: import("vue").PropType<string | import("vue").RendererElement>;
|
|
123
|
+
default: any;
|
|
124
|
+
};
|
|
125
|
+
sleep: {
|
|
126
|
+
type: NumberConstructor;
|
|
127
|
+
default: number;
|
|
128
|
+
};
|
|
129
|
+
await: {
|
|
130
|
+
type: PromiseConstructor;
|
|
131
|
+
default: any;
|
|
132
|
+
};
|
|
133
|
+
teleport: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
}>>, {
|
|
138
|
+
to: any;
|
|
139
|
+
sleep: number;
|
|
140
|
+
await: Promise<unknown>;
|
|
141
|
+
teleport: boolean;
|
|
142
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
143
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
144
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NonVoidable } from '@vunk/core';
|
|
2
|
+
import Vditor from 'vditor';
|
|
3
|
+
import { Emitter } from 'mitt';
|
|
4
|
+
export type DefaultOptions = NonVoidable<ConstructorParameters<typeof Vditor>[1]>;
|
|
5
|
+
export type Toolbar = DefaultOptions['toolbar'];
|
|
6
|
+
export type Mitter = Emitter<{
|
|
7
|
+
input: string;
|
|
8
|
+
}>;
|
|
9
|
+
export {};
|