@vunk/plus 1.8.0 → 1.8.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/{SendOutlined.mjs → LinkOutlined.mjs} +36 -54
- package/components/agent-chat-provider/index.d.ts +8 -0
- package/components/agent-chat-provider/src/MessageView.d.ts +29 -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 +22 -0
- package/components/agent-chat-provider/src/types.d.ts +56 -0
- package/components/agent-chat-provider/src/use.d.ts +6 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/src/ctx.d.ts +6 -0
- package/components/avatar/src/index.vue.d.ts +261 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +7 -0
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +126 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +58 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +373 -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 +26 -0
- package/components/broadcasting-markdown/src/use.d.ts +19 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/src/ctx.d.ts +28 -0
- package/components/bubble-list/src/index.vue.d.ts +484 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +5 -0
- package/components/bubble-templates/src/core.d.ts +69 -0
- package/components/bubble-templates/src/index.vue.d.ts +242 -0
- package/components/bubble-templates/src/legacy.vue.d.ts +153 -0
- package/components/bubble-templates/src/types.d.ts +45 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +21 -0
- package/components/chat-independent/src/index.vue.d.ts +2291 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/index.d.ts +0 -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/metahuman-broadcasting/index.d.ts +5 -0
- package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
- package/components/metahuman-broadcasting/src/index.vue.d.ts +826 -0
- package/components/metahuman-broadcasting/src/types.d.ts +1 -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.d.ts +11 -0
- package/components/pixi-frame/src/apng.vue.d.ts +161 -0
- package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
- package/components/pixi-frame/src/core.vue.d.ts +173 -0
- package/components/pixi-frame/src/ctx.d.ts +55 -0
- package/components/pixi-frame/src/index.vue.d.ts +591 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +17 -0
- package/components/pixi-frame/src/use.d.ts +16 -0
- package/components/pixi-frame/src/useSprite.d.ts +12 -0
- package/components/pixi-frame/src/video.vue.d.ts +159 -0
- package/components/pixi-frame/src/view.vue.d.ts +29 -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 +489 -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 +573 -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 +408 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +539 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/scrollbar/index.d.ts +4 -0
- package/components/scrollbar/src/bar.d.ts +15 -0
- package/components/scrollbar/src/bar.vue.d.ts +138 -0
- package/components/scrollbar/src/index.vue.d.ts +552 -0
- package/components/scrollbar/src/thumb.d.ts +15 -0
- package/components/scrollbar/src/thumb.vue.d.ts +97 -0
- package/components/scrollbar/src/types.d.ts +1 -0
- package/components/scrollbar/src/util.d.ts +3 -0
- package/components/sender/index.d.ts +5 -0
- package/components/sender/index.mjs +96 -42
- package/components/sender/src/SenderHeader.vue.d.ts +256 -0
- package/components/sender/src/ctx.d.ts +107 -0
- package/components/sender/src/index.vue.d.ts +649 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +1 -1
- 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 +59 -0
- package/components/table-columns/src/el-ctx.d.ts +57 -0
- package/components/table-columns/src/index.vue.d.ts +132 -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 +337 -0
- package/components/tables-v1/src/el-ctx.d.ts +262 -0
- package/components/tables-v1/src/index.vue.d.ts +3085 -0
- package/components/tables-v1/src/types.d.ts +3 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/src/ctx.d.ts +370 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3972 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/text/index.d.ts +4 -0
- package/components/text/src/ctx.d.ts +356 -0
- package/components/text/src/index.vue.d.ts +2335 -0
- package/components/text/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 +41 -0
- package/components/typing-markdown/src/index.vue.d.ts +75 -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 +38 -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 +143 -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,373 @@
|
|
|
1
|
+
import type { Paragraph } from './types';
|
|
2
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
+
import { ParagraphStatus } from './const';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
render: {
|
|
6
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
7
|
+
default: typeof import("./const").defaultRender;
|
|
8
|
+
};
|
|
9
|
+
data: {
|
|
10
|
+
type: {
|
|
11
|
+
(arrayLength: number): Paragraph[];
|
|
12
|
+
(...items: Paragraph[]): Paragraph[];
|
|
13
|
+
new (arrayLength: number): Paragraph[];
|
|
14
|
+
new (...items: Paragraph[]): Paragraph[];
|
|
15
|
+
isArray(arg: any): arg is any[];
|
|
16
|
+
readonly prototype: any[];
|
|
17
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
18
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
19
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
20
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
21
|
+
of<T>(...items: T[]): T[];
|
|
22
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
23
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
24
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
25
|
+
};
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
source: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
delay: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
separators: {
|
|
37
|
+
type: {
|
|
38
|
+
(arrayLength: number): string[];
|
|
39
|
+
(...items: string[]): string[];
|
|
40
|
+
new (arrayLength: number): string[];
|
|
41
|
+
new (...items: string[]): string[];
|
|
42
|
+
isArray(arg: any): arg is any[];
|
|
43
|
+
readonly prototype: any[];
|
|
44
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
45
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
46
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
47
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
48
|
+
of<T>(...items: T[]): T[];
|
|
49
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
50
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
51
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
52
|
+
};
|
|
53
|
+
default: () => string[];
|
|
54
|
+
};
|
|
55
|
+
keepRead: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
textToSpeech: {
|
|
60
|
+
type: import("vue").PropType<import("./types").TextToSpeech>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
processing: {
|
|
64
|
+
type: import("vue").PropType<(paragraph: Paragraph) => void>;
|
|
65
|
+
default: import("@vunk/shared").AnyFunc;
|
|
66
|
+
};
|
|
67
|
+
status: {
|
|
68
|
+
type: import("vue").PropType<TickerStatus>;
|
|
69
|
+
default: TickerStatus;
|
|
70
|
+
};
|
|
71
|
+
paragraphMinlength: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
}>, {
|
|
76
|
+
theData: import("vue").ComputedRef<Paragraph[]>;
|
|
77
|
+
ParagraphStatus: typeof ParagraphStatus;
|
|
78
|
+
fulfilledTextValue: import("vue").ComputedRef<string>;
|
|
79
|
+
processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
|
|
80
|
+
setData: (obj: any, e: import("@vunk/core").SetDataEvent) => void;
|
|
81
|
+
Broadcast: typeof TickerStatus;
|
|
82
|
+
isParagraphEnabled: (currentIndex: number) => boolean;
|
|
83
|
+
TickerStatus: typeof TickerStatus;
|
|
84
|
+
handleParagraphStatus: (para: Paragraph, v: TickerStatus) => void;
|
|
85
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
87
|
+
'update:status': (_: TickerStatus) => boolean;
|
|
88
|
+
paragraphLoad: (_: import("./types").ParagraphLoadEvent) => boolean;
|
|
89
|
+
complete: () => boolean;
|
|
90
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
render: {
|
|
92
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
93
|
+
default: typeof import("./const").defaultRender;
|
|
94
|
+
};
|
|
95
|
+
data: {
|
|
96
|
+
type: {
|
|
97
|
+
(arrayLength: number): Paragraph[];
|
|
98
|
+
(...items: Paragraph[]): Paragraph[];
|
|
99
|
+
new (arrayLength: number): Paragraph[];
|
|
100
|
+
new (...items: Paragraph[]): Paragraph[];
|
|
101
|
+
isArray(arg: any): arg is any[];
|
|
102
|
+
readonly prototype: any[];
|
|
103
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
104
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
105
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
106
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
107
|
+
of<T>(...items: T[]): T[];
|
|
108
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
109
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
110
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
111
|
+
};
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
source: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
delay: {
|
|
119
|
+
type: NumberConstructor;
|
|
120
|
+
default: number;
|
|
121
|
+
};
|
|
122
|
+
separators: {
|
|
123
|
+
type: {
|
|
124
|
+
(arrayLength: number): string[];
|
|
125
|
+
(...items: string[]): string[];
|
|
126
|
+
new (arrayLength: number): string[];
|
|
127
|
+
new (...items: string[]): string[];
|
|
128
|
+
isArray(arg: any): arg is any[];
|
|
129
|
+
readonly prototype: any[];
|
|
130
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
131
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
132
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
133
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
134
|
+
of<T>(...items: T[]): T[];
|
|
135
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
136
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
137
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
138
|
+
};
|
|
139
|
+
default: () => string[];
|
|
140
|
+
};
|
|
141
|
+
keepRead: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
textToSpeech: {
|
|
146
|
+
type: import("vue").PropType<import("./types").TextToSpeech>;
|
|
147
|
+
default: undefined;
|
|
148
|
+
};
|
|
149
|
+
processing: {
|
|
150
|
+
type: import("vue").PropType<(paragraph: Paragraph) => void>;
|
|
151
|
+
default: import("@vunk/shared").AnyFunc;
|
|
152
|
+
};
|
|
153
|
+
status: {
|
|
154
|
+
type: import("vue").PropType<TickerStatus>;
|
|
155
|
+
default: TickerStatus;
|
|
156
|
+
};
|
|
157
|
+
paragraphMinlength: {
|
|
158
|
+
type: NumberConstructor;
|
|
159
|
+
default: number;
|
|
160
|
+
};
|
|
161
|
+
}>> & Readonly<{
|
|
162
|
+
"onUpdate:status"?: ((_: TickerStatus) => any) | undefined;
|
|
163
|
+
onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
|
|
164
|
+
onParagraphLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
|
|
165
|
+
onComplete?: (() => any) | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
data: Paragraph[];
|
|
168
|
+
source: string;
|
|
169
|
+
processing: (paragraph: Paragraph) => void;
|
|
170
|
+
delay: number;
|
|
171
|
+
render: (text: string) => string;
|
|
172
|
+
status: TickerStatus;
|
|
173
|
+
separators: string[];
|
|
174
|
+
keepRead: boolean;
|
|
175
|
+
textToSpeech: import("./types").TextToSpeech;
|
|
176
|
+
paragraphMinlength: number;
|
|
177
|
+
}, {}, {
|
|
178
|
+
ParagraphView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
179
|
+
enable: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
183
|
+
status: {
|
|
184
|
+
type: import("vue").PropType<ParagraphStatus>;
|
|
185
|
+
default: ParagraphStatus;
|
|
186
|
+
};
|
|
187
|
+
processing: {
|
|
188
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
189
|
+
default: import("@vunk/shared").AnyFunc;
|
|
190
|
+
};
|
|
191
|
+
retryTimes: {
|
|
192
|
+
type: NumberConstructor;
|
|
193
|
+
default: number;
|
|
194
|
+
};
|
|
195
|
+
}>, {
|
|
196
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
197
|
+
enable: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
status: {
|
|
202
|
+
type: import("vue").PropType<ParagraphStatus>;
|
|
203
|
+
default: ParagraphStatus;
|
|
204
|
+
};
|
|
205
|
+
processing: {
|
|
206
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
207
|
+
default: import("@vunk/shared").AnyFunc;
|
|
208
|
+
};
|
|
209
|
+
retryTimes: {
|
|
210
|
+
type: NumberConstructor;
|
|
211
|
+
default: number;
|
|
212
|
+
};
|
|
213
|
+
}>> & Readonly<{
|
|
214
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
215
|
+
}> & {}>;
|
|
216
|
+
emit: (event: "update:status", ...args: any[]) => void;
|
|
217
|
+
theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
|
|
218
|
+
retryTimes: number;
|
|
219
|
+
processingDef: {
|
|
220
|
+
_ref: import("vue").ShallowRef<unknown, unknown>;
|
|
221
|
+
readonly value: unknown;
|
|
222
|
+
promise: Promise<unknown>;
|
|
223
|
+
resolve: import("@vunk/core").AnyFunc;
|
|
224
|
+
reject: (reason?: any) => void;
|
|
225
|
+
};
|
|
226
|
+
init: () => Promise<void>;
|
|
227
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
228
|
+
enable: {
|
|
229
|
+
type: BooleanConstructor;
|
|
230
|
+
default: boolean;
|
|
231
|
+
};
|
|
232
|
+
status: {
|
|
233
|
+
type: import("vue").PropType<ParagraphStatus>;
|
|
234
|
+
default: ParagraphStatus;
|
|
235
|
+
};
|
|
236
|
+
processing: {
|
|
237
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
238
|
+
default: import("@vunk/shared").AnyFunc;
|
|
239
|
+
};
|
|
240
|
+
retryTimes: {
|
|
241
|
+
type: NumberConstructor;
|
|
242
|
+
default: number;
|
|
243
|
+
};
|
|
244
|
+
}>> & Readonly<{
|
|
245
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
246
|
+
}>, {
|
|
247
|
+
processing: import("@vunk/shared").AnyFunc;
|
|
248
|
+
status: ParagraphStatus;
|
|
249
|
+
enable: boolean;
|
|
250
|
+
retryTimes: number;
|
|
251
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
252
|
+
VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
253
|
+
source: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
default: string;
|
|
256
|
+
};
|
|
257
|
+
delay: {
|
|
258
|
+
type: NumberConstructor;
|
|
259
|
+
default: number;
|
|
260
|
+
};
|
|
261
|
+
pause: {
|
|
262
|
+
type: BooleanConstructor;
|
|
263
|
+
default: boolean;
|
|
264
|
+
};
|
|
265
|
+
disabled: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: boolean;
|
|
268
|
+
};
|
|
269
|
+
markdownItSetup: {
|
|
270
|
+
type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
|
|
271
|
+
default: null;
|
|
272
|
+
};
|
|
273
|
+
finished: {
|
|
274
|
+
type: BooleanConstructor;
|
|
275
|
+
};
|
|
276
|
+
loading: {
|
|
277
|
+
type: BooleanConstructor;
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
280
|
+
}>, {
|
|
281
|
+
htmlText: import("vue").Ref<string, string>;
|
|
282
|
+
isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
283
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
284
|
+
typing: null;
|
|
285
|
+
'update:finished': null;
|
|
286
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
287
|
+
source: {
|
|
288
|
+
type: StringConstructor;
|
|
289
|
+
default: string;
|
|
290
|
+
};
|
|
291
|
+
delay: {
|
|
292
|
+
type: NumberConstructor;
|
|
293
|
+
default: number;
|
|
294
|
+
};
|
|
295
|
+
pause: {
|
|
296
|
+
type: BooleanConstructor;
|
|
297
|
+
default: boolean;
|
|
298
|
+
};
|
|
299
|
+
disabled: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: boolean;
|
|
302
|
+
};
|
|
303
|
+
markdownItSetup: {
|
|
304
|
+
type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
|
|
305
|
+
default: null;
|
|
306
|
+
};
|
|
307
|
+
finished: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
};
|
|
310
|
+
loading: {
|
|
311
|
+
type: BooleanConstructor;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
314
|
+
}>> & Readonly<{
|
|
315
|
+
onTyping?: ((...args: any[]) => any) | undefined;
|
|
316
|
+
"onUpdate:finished"?: ((...args: any[]) => any) | undefined;
|
|
317
|
+
}>, {
|
|
318
|
+
source: string;
|
|
319
|
+
delay: number;
|
|
320
|
+
pause: boolean;
|
|
321
|
+
disabled: boolean;
|
|
322
|
+
markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
|
|
323
|
+
finished: boolean;
|
|
324
|
+
loading: boolean;
|
|
325
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
326
|
+
HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
327
|
+
source: {
|
|
328
|
+
type: StringConstructor;
|
|
329
|
+
default: string;
|
|
330
|
+
};
|
|
331
|
+
status: {
|
|
332
|
+
type: import("vue").PropType<TickerStatus>;
|
|
333
|
+
default: TickerStatus;
|
|
334
|
+
};
|
|
335
|
+
}>, {
|
|
336
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
337
|
+
source: {
|
|
338
|
+
type: StringConstructor;
|
|
339
|
+
default: string;
|
|
340
|
+
};
|
|
341
|
+
status: {
|
|
342
|
+
type: import("vue").PropType<TickerStatus>;
|
|
343
|
+
default: TickerStatus;
|
|
344
|
+
};
|
|
345
|
+
}>> & Readonly<{
|
|
346
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
347
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
348
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
349
|
+
}> & {}>;
|
|
350
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void);
|
|
351
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
352
|
+
'update:status': null;
|
|
353
|
+
load: null;
|
|
354
|
+
error: null;
|
|
355
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
356
|
+
source: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
default: string;
|
|
359
|
+
};
|
|
360
|
+
status: {
|
|
361
|
+
type: import("vue").PropType<TickerStatus>;
|
|
362
|
+
default: TickerStatus;
|
|
363
|
+
};
|
|
364
|
+
}>> & Readonly<{
|
|
365
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
366
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
367
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
368
|
+
}>, {
|
|
369
|
+
source: string;
|
|
370
|
+
status: TickerStatus;
|
|
371
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
372
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
373
|
+
export default _default;
|
|
@@ -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: {
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
readonly size: {
|
|
6
|
+
readonly type: import("vue").PropType<string | number>;
|
|
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<string | number>;
|
|
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?: never;
|
|
39
|
+
__isTeleport?: never;
|
|
40
|
+
__isSuspense?: never;
|
|
41
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
readonly size: {
|
|
43
|
+
readonly type: import("vue").PropType<string | number>;
|
|
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
|
+
}) & import("vue").Plugin;
|
|
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,26 @@
|
|
|
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
|
+
blob?: Blob;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @returns Audio URL
|
|
20
|
+
*/
|
|
21
|
+
export type TextToSpeech = (text: string) => Promise<string | Blob>;
|
|
22
|
+
export interface ParagraphLoadEvent {
|
|
23
|
+
data: Paragraph;
|
|
24
|
+
deferred: Deferred<any>;
|
|
25
|
+
}
|
|
26
|
+
export type ParagraphOnLoad = (event: ParagraphLoadEvent) => ReturnVoid;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
2
|
+
import { Howl } from 'howler';
|
|
3
|
+
/**
|
|
4
|
+
* @description 使用 Howler.js 播放段落
|
|
5
|
+
*/
|
|
6
|
+
export declare function useHowlerParagraph(props: {
|
|
7
|
+
source: string;
|
|
8
|
+
status: TickerStatus;
|
|
9
|
+
}, emit: ((e: 'update:status', status: TickerStatus) => void) & ((e: 'error', ev: any) => void)): {
|
|
10
|
+
url: import("vue").ComputedRef<string>;
|
|
11
|
+
broadcast: import("vue").WritableComputedRef<TickerStatus, TickerStatus>;
|
|
12
|
+
sound: import("vue").ShallowRef<Howl | null, Howl | null>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description 获取浏览器语音列表
|
|
16
|
+
*/
|
|
17
|
+
export declare function useVoices(): {
|
|
18
|
+
voices: import("vue").ShallowRef<SpeechSynthesisVoice[], SpeechSynthesisVoice[]>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AnyFunc } from '@vunk/shared';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
items: {
|
|
5
|
+
type: {
|
|
6
|
+
(arrayLength: number): any[];
|
|
7
|
+
(...items: any[]): any[];
|
|
8
|
+
new (arrayLength: number): any[];
|
|
9
|
+
new (...items: any[]): any[];
|
|
10
|
+
isArray(arg: any): arg is any[];
|
|
11
|
+
readonly prototype: any[];
|
|
12
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
13
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
14
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
15
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
16
|
+
of<T>(...items: T[]): T[];
|
|
17
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
18
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
19
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
+
};
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
elRef: {
|
|
24
|
+
type: PropType<AnyFunc>;
|
|
25
|
+
default: AnyFunc;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const emits: {};
|