@vunk/plus 0.0.1 → 0.0.3
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 +5 -0
- package/components/monaco-editor/index.mjs +12 -1
- package/components/monaco-editor/src/ctx.d.ts +23 -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 +5 -0
- package/components/vditor/index.mjs +14 -15596
- package/components/vditor/src/ctx.d.ts +37 -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,21 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
path: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}>, {
|
|
8
|
+
lottieNode: Ref<HTMLDivElement, HTMLDivElement>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
load: (e: import("./types").LoadEvent) => import("./types").LoadEvent;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
path: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{
|
|
17
|
+
onLoad?: (e: import("./types").LoadEvent) => any;
|
|
18
|
+
}>, {
|
|
19
|
+
path: string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
1
2
|
import { defineComponent, ref, onMounted, nextTick, watchEffect, openBlock, createElementBlock } from 'vue';
|
|
2
3
|
import { editor } from 'monaco-editor';
|
|
3
4
|
import { watchPausable } from '@vueuse/core';
|
|
@@ -17,9 +18,19 @@ const props = {
|
|
|
17
18
|
default: false
|
|
18
19
|
}
|
|
19
20
|
};
|
|
21
|
+
const createBindProps = bindPropsFactory(props);
|
|
20
22
|
const emits = {
|
|
21
23
|
"update:modelValue": null
|
|
22
24
|
};
|
|
25
|
+
const onEmits = onEmitsFactory(emits);
|
|
26
|
+
|
|
27
|
+
var ctx = /*#__PURE__*/Object.freeze({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
createBindProps: createBindProps,
|
|
30
|
+
emits: emits,
|
|
31
|
+
onEmits: onEmits,
|
|
32
|
+
props: props
|
|
33
|
+
});
|
|
23
34
|
|
|
24
35
|
var _sfc_main = defineComponent({
|
|
25
36
|
name: "VkMonacoEditor",
|
|
@@ -80,4 +91,4 @@ VkMonacoEditor.install = (app) => {
|
|
|
80
91
|
app.component(VkMonacoEditor.name || "VkMonacoEditor", VkMonacoEditor);
|
|
81
92
|
};
|
|
82
93
|
|
|
83
|
-
export { VkMonacoEditor, types as __VkMonacoEditor, VkMonacoEditor as default };
|
|
94
|
+
export { VkMonacoEditor, ctx as _VkMonacoEditorCtx, types as __VkMonacoEditor, VkMonacoEditor as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { editor } from 'monaco-editor';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
defaultOptions: {
|
|
9
|
+
type: PropType<editor.IStandaloneEditorConstructionOptions>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
readOnly: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"readOnly", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> | Exclude<Extract<"readOnly", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"readOnly", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"defaultOptions", keyof T2> | Extract<"readOnly", keyof T2>]: T2[k]; }[P]; }>;
|
|
18
|
+
export declare const emits: {
|
|
19
|
+
'update:modelValue': any;
|
|
20
|
+
};
|
|
21
|
+
export declare const onEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "update:modelValue"[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> : "update:modelValue"]: {
|
|
22
|
+
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
23
|
+
}[P]; };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { editor as mEditor } from 'monaco-editor';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
defaultOptions: {
|
|
9
|
+
type: import("vue").PropType<mEditor.IStandaloneEditorConstructionOptions>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
readOnly: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>, {
|
|
17
|
+
editorNode: Ref<HTMLDivElement, HTMLDivElement>;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
'update:modelValue': any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
defaultOptions: {
|
|
26
|
+
type: import("vue").PropType<mEditor.IStandaloneEditorConstructionOptions>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
readOnly: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
35
|
+
}>, {
|
|
36
|
+
modelValue: string;
|
|
37
|
+
defaultOptions: mEditor.IStandaloneEditorConstructionOptions;
|
|
38
|
+
readOnly: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
source: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
delay: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
pause: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 禁用typing
|
|
16
|
+
*/
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const emits: {
|
|
23
|
+
typing: any;
|
|
24
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
source: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
delay: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
pause: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
htmlText: import("vue").Ref<string, string>;
|
|
20
|
+
isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
typing: any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
source: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
delay: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
pause: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onTyping?: (...args: any[] | unknown[]) => any;
|
|
42
|
+
}>, {
|
|
43
|
+
source: string;
|
|
44
|
+
delay: number;
|
|
45
|
+
pause: boolean;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|