@vunk/plus 1.3.10 → 1.3.12
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/SharedSystems.mjs +3195 -0
- package/components/WebGLRenderer.mjs +3617 -0
- package/components/WebGPURenderer.mjs +2103 -0
- package/components/_commonjsHelpers.mjs +7 -0
- package/components/agent-chat-provider/index.d.ts +7 -0
- package/components/agent-chat-provider/src/api.d.ts +3 -0
- package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
- package/components/agent-chat-provider/src/const.d.ts +1 -0
- package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
- package/components/agent-chat-provider/src/types.d.ts +43 -0
- package/components/agent-chat-provider/src/use.d.ts +29 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/src/ctx.d.ts +18 -0
- package/components/avatar/src/index.vue.d.ts +121 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +7 -0
- package/components/broadcasting-markdown/index.mjs +238 -306
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +115 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +97 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +383 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
- package/components/broadcasting-markdown/src/types.d.ts +25 -0
- package/components/broadcasting-markdown/src/use.d.ts +21 -0
- package/components/browserAll.mjs +3187 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/index.mjs +2 -1
- package/components/bubble-list/src/ctx.d.ts +30 -0
- package/components/bubble-list/src/index.vue.d.ts +867 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/src/index.vue.d.ts +539 -0
- package/components/bubble-templates/src/types.d.ts +40 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/index.mjs +3 -0
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +20 -0
- package/components/chat-independent/src/index.vue.d.ts +2343 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/colorToUniform.mjs +266 -0
- package/components/index.d.ts +0 -0
- package/components/index2.mjs +21227 -0
- package/components/init.mjs +3779 -0
- 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/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/pixi-frame/index.css +4 -0
- package/components/pixi-frame/index.d.ts +7 -0
- package/components/pixi-frame/index.mjs +6 -0
- package/components/pixi-frame/src/app.vue.d.ts +29 -0
- package/components/pixi-frame/src/core.vue.d.ts +122 -0
- package/components/pixi-frame/src/ctx.d.ts +40 -0
- package/components/pixi-frame/src/index.vue.d.ts +218 -0
- package/components/pixi-frame/src/types.d.ts +1 -0
- package/components/pixi-frame/src/use.d.ts +3 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/src/ctx.d.ts +41 -0
- package/components/recorder-button/src/index.vue.d.ts +300 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +7 -0
- package/components/routes-menu-content/index.d.ts +4 -0
- package/components/routes-menu-content/src/ctx.d.ts +17 -0
- package/components/routes-menu-content/src/index.vue.d.ts +472 -0
- package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/sender/index.d.ts +4 -0
- package/components/sender/src/SenderHeader.vue.d.ts +256 -0
- package/components/sender/src/ctx.d.ts +62 -0
- package/components/sender/src/index.vue.d.ts +787 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/index.d.ts +5 -0
- package/components/table-columns/src/ctx.d.ts +66 -0
- package/components/table-columns/src/el-ctx.d.ts +63 -0
- package/components/table-columns/src/index.vue.d.ts +282 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/src/ctx.d.ts +281 -0
- package/components/tables-v1/src/el-ctx.d.ts +269 -0
- package/components/tables-v1/src/index.vue.d.ts +3014 -0
- package/components/tables-v1/src/types.d.ts +4 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/src/ctx.d.ts +321 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3796 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/src/core.d.ts +2 -0
- package/components/typing-markdown/src/ctx.d.ts +33 -0
- package/components/typing-markdown/src/index.vue.d.ts +57 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +5 -0
- 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/components/webworkerAll.mjs +8 -0
- package/index.css +5 -4
- package/package.json +8 -4
- package/components/broadcasting-markdown/index.css +0 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { AnyFunc } from '@vunk/shared';
|
|
2
|
+
import { Deferred } from '@vunk/shared/promise';
|
|
3
|
+
import { type PropType } from 'vue';
|
|
4
|
+
import { ParagraphStatus } from './const';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
enable: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
status: {
|
|
11
|
+
type: PropType<ParagraphStatus>;
|
|
12
|
+
default: ParagraphStatus;
|
|
13
|
+
};
|
|
14
|
+
processing: {
|
|
15
|
+
type: PropType<AnyFunc>;
|
|
16
|
+
default: AnyFunc;
|
|
17
|
+
};
|
|
18
|
+
retryTimes: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
}>, {
|
|
23
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
enable: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
status: {
|
|
29
|
+
type: PropType<ParagraphStatus>;
|
|
30
|
+
default: ParagraphStatus;
|
|
31
|
+
};
|
|
32
|
+
processing: {
|
|
33
|
+
type: PropType<AnyFunc>;
|
|
34
|
+
default: AnyFunc;
|
|
35
|
+
};
|
|
36
|
+
retryTimes: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}> & {}>;
|
|
43
|
+
emit: (event: "update:status", ...args: any[]) => void;
|
|
44
|
+
theDef: import("vue").ShallowRef<Deferred<any> | undefined, Deferred<any> | undefined>;
|
|
45
|
+
retryTimes: number;
|
|
46
|
+
processingDef: {
|
|
47
|
+
_ref: import("vue").ShallowRef<unknown, unknown>;
|
|
48
|
+
readonly value: unknown;
|
|
49
|
+
promise: Promise<unknown>;
|
|
50
|
+
resolve: import("@vunk/core").AnyFunc;
|
|
51
|
+
reject: (reason?: any) => void;
|
|
52
|
+
};
|
|
53
|
+
init: () => Promise<void>;
|
|
54
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
enable: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
status: {
|
|
60
|
+
type: PropType<ParagraphStatus>;
|
|
61
|
+
default: ParagraphStatus;
|
|
62
|
+
};
|
|
63
|
+
processing: {
|
|
64
|
+
type: PropType<AnyFunc>;
|
|
65
|
+
default: AnyFunc;
|
|
66
|
+
};
|
|
67
|
+
retryTimes: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{
|
|
72
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
processing: AnyFunc;
|
|
75
|
+
status: ParagraphStatus;
|
|
76
|
+
enable: boolean;
|
|
77
|
+
retryTimes: number;
|
|
78
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
readonly size: {
|
|
6
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
7
|
+
readonly required: false;
|
|
8
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9
|
+
__epPropKey: true;
|
|
10
|
+
};
|
|
11
|
+
readonly color: {
|
|
12
|
+
readonly type: import("vue").PropType<string>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
};
|
|
17
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
readonly size: {
|
|
26
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
27
|
+
readonly required: false;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
+
__epPropKey: true;
|
|
30
|
+
};
|
|
31
|
+
readonly color: {
|
|
32
|
+
readonly type: import("vue").PropType<string>;
|
|
33
|
+
readonly required: false;
|
|
34
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
+
__epPropKey: true;
|
|
36
|
+
};
|
|
37
|
+
}>>, {}, {}, {}, {}, {}>;
|
|
38
|
+
__isFragment?: undefined;
|
|
39
|
+
__isTeleport?: undefined;
|
|
40
|
+
__isSuspense?: undefined;
|
|
41
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
readonly size: {
|
|
43
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
};
|
|
48
|
+
readonly color: {
|
|
49
|
+
readonly type: import("vue").PropType<string>;
|
|
50
|
+
readonly required: false;
|
|
51
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
+
__epPropKey: true;
|
|
53
|
+
};
|
|
54
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
55
|
+
$slots: {
|
|
56
|
+
default?(_: {}): any;
|
|
57
|
+
};
|
|
58
|
+
})>;
|
|
59
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReturnVoid } from '@vunk/shared';
|
|
2
|
+
import type { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
+
import type { Deferred } from '@vunk/shared/promise';
|
|
4
|
+
import type { ParagraphStatus } from './const';
|
|
5
|
+
export interface Paragraph {
|
|
6
|
+
value: string;
|
|
7
|
+
status: ParagraphStatus;
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
10
|
+
separator: string;
|
|
11
|
+
broadcast: TickerStatus;
|
|
12
|
+
/**
|
|
13
|
+
* @description 语音合成的 url
|
|
14
|
+
*/
|
|
15
|
+
url?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @returns Audio URL
|
|
19
|
+
*/
|
|
20
|
+
export type TextToSpeech = (text: string) => Promise<string>;
|
|
21
|
+
export interface ParagraphLoadEvent {
|
|
22
|
+
data: Paragraph;
|
|
23
|
+
deferred: Deferred<any>;
|
|
24
|
+
}
|
|
25
|
+
export type ParagraphOnLoad = (event: ParagraphLoadEvent) => ReturnVoid;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SetDataEvent } from '@vunk/core';
|
|
2
|
+
import type { Deferred } from '@vunk/shared/promise';
|
|
3
|
+
import type { Paragraph } from './types';
|
|
4
|
+
import { Howl } from 'howler';
|
|
5
|
+
/**
|
|
6
|
+
* @description 使用 Howler.js 播放段落
|
|
7
|
+
*/
|
|
8
|
+
export declare function useHowlerParagraph(props: {
|
|
9
|
+
data: Paragraph;
|
|
10
|
+
deferred: Deferred<any>;
|
|
11
|
+
}, emit: (e: 'setData', data: SetDataEvent<keyof Paragraph>) => void): {
|
|
12
|
+
url: import("vue").ComputedRef<string | undefined>;
|
|
13
|
+
broadcast: import("vue").ComputedRef<import("@vunk/shared/enum").TickerStatus>;
|
|
14
|
+
sound: import("vue").ShallowRef<Howl | null, Howl | null>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @description 获取浏览器语音列表
|
|
18
|
+
*/
|
|
19
|
+
export declare function useVoices(): {
|
|
20
|
+
voices: import("vue").ShallowRef<SpeechSynthesisVoice[], SpeechSynthesisVoice[]>;
|
|
21
|
+
};
|