@vunk/plus 1.4.1 → 1.4.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.
Files changed (105) hide show
  1. package/components/agent-chat-provider/index.d.ts +7 -0
  2. package/components/agent-chat-provider/src/api.d.ts +3 -0
  3. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  4. package/components/agent-chat-provider/src/const.d.ts +1 -0
  5. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  6. package/components/agent-chat-provider/src/types.d.ts +43 -0
  7. package/components/agent-chat-provider/src/use.d.ts +29 -0
  8. package/components/avatar/index.d.ts +4 -0
  9. package/components/avatar/src/ctx.d.ts +18 -0
  10. package/components/avatar/src/index.vue.d.ts +121 -0
  11. package/components/avatar/src/types.d.ts +1 -0
  12. package/components/broadcasting-markdown/index.d.ts +7 -0
  13. package/components/broadcasting-markdown/src/const.d.ts +13 -0
  14. package/components/broadcasting-markdown/src/ctx.d.ts +115 -0
  15. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +97 -0
  16. package/components/broadcasting-markdown/src/index.vue.d.ts +383 -0
  17. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
  18. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  19. package/components/broadcasting-markdown/src/types.d.ts +25 -0
  20. package/components/broadcasting-markdown/src/use.d.ts +21 -0
  21. package/components/bubble-list/index.d.ts +5 -0
  22. package/components/bubble-list/src/ctx.d.ts +30 -0
  23. package/components/bubble-list/src/index.vue.d.ts +867 -0
  24. package/components/bubble-list/src/types.d.ts +4 -0
  25. package/components/bubble-templates/index.d.ts +4 -0
  26. package/components/bubble-templates/src/index.vue.d.ts +539 -0
  27. package/components/bubble-templates/src/types.d.ts +40 -0
  28. package/components/chat-independent/index.d.ts +4 -0
  29. package/components/chat-independent/src/const.d.ts +13 -0
  30. package/components/chat-independent/src/ctx.d.ts +20 -0
  31. package/components/chat-independent/src/index.vue.d.ts +2343 -0
  32. package/components/chat-independent/src/types.d.ts +13 -0
  33. package/components/index.d.ts +0 -0
  34. package/components/lottie-animation/index.d.ts +4 -0
  35. package/components/lottie-animation/src/ctx.d.ts +10 -0
  36. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  37. package/components/lottie-animation/src/types.d.ts +4 -0
  38. package/components/monaco-editor/index.d.ts +5 -0
  39. package/components/monaco-editor/src/ctx.d.ts +23 -0
  40. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  41. package/components/monaco-editor/src/types.d.ts +1 -0
  42. package/components/monaco-environment/index.d.ts +4 -0
  43. package/components/monaco-environment/src/ctx.d.ts +8 -0
  44. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  45. package/components/monaco-environment/src/types.d.ts +1 -0
  46. package/components/pixi-frame/index.d.ts +8 -0
  47. package/components/pixi-frame/src/core.vue.d.ts +131 -0
  48. package/components/pixi-frame/src/ctx.d.ts +44 -0
  49. package/components/pixi-frame/src/index.vue.d.ts +230 -0
  50. package/components/pixi-frame/src/provider.vue.d.ts +2 -0
  51. package/components/pixi-frame/src/types.d.ts +1 -0
  52. package/components/pixi-frame/src/use.d.ts +16 -0
  53. package/components/pixi-frame/src/view.vue.d.ts +29 -0
  54. package/components/recorder-button/index.d.ts +4 -0
  55. package/components/recorder-button/src/ctx.d.ts +41 -0
  56. package/components/recorder-button/src/index.vue.d.ts +300 -0
  57. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  58. package/components/recorder-button/src/types.d.ts +7 -0
  59. package/components/routes-menu-content/index.d.ts +4 -0
  60. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  61. package/components/routes-menu-content/src/index.vue.d.ts +472 -0
  62. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  63. package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
  64. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  65. package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
  66. package/components/routes-menu-content/src/types.d.ts +1 -0
  67. package/components/sender/index.d.ts +4 -0
  68. package/components/sender/src/SenderHeader.vue.d.ts +256 -0
  69. package/components/sender/src/ctx.d.ts +62 -0
  70. package/components/sender/src/index.vue.d.ts +787 -0
  71. package/components/sender/src/types.d.ts +1 -0
  72. package/components/speech-button/index.d.ts +4 -0
  73. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  74. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  75. package/components/speech-button/src/ctx.d.ts +10 -0
  76. package/components/speech-button/src/index.vue.d.ts +22 -0
  77. package/components/speech-button/src/types.d.ts +1 -0
  78. package/components/table-columns/index.d.ts +5 -0
  79. package/components/table-columns/src/ctx.d.ts +66 -0
  80. package/components/table-columns/src/el-ctx.d.ts +63 -0
  81. package/components/table-columns/src/index.vue.d.ts +282 -0
  82. package/components/table-columns/src/types.d.ts +21 -0
  83. package/components/tables-v1/index.d.ts +5 -0
  84. package/components/tables-v1/index.mjs +18 -8
  85. package/components/tables-v1/src/ctx.d.ts +288 -0
  86. package/components/tables-v1/src/el-ctx.d.ts +269 -0
  87. package/components/tables-v1/src/index.vue.d.ts +3106 -0
  88. package/components/tables-v1/src/types.d.ts +3 -0
  89. package/components/tables-v1-checkbox/index.d.ts +5 -0
  90. package/components/tables-v1-checkbox/src/ctx.d.ts +325 -0
  91. package/components/tables-v1-checkbox/src/index.vue.d.ts +3898 -0
  92. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  93. package/components/typing-markdown/index.d.ts +4 -0
  94. package/components/typing-markdown/src/core.d.ts +2 -0
  95. package/components/typing-markdown/src/ctx.d.ts +33 -0
  96. package/components/typing-markdown/src/index.vue.d.ts +57 -0
  97. package/components/typing-markdown/src/types.d.ts +1 -0
  98. package/components/vditor/index.d.ts +5 -0
  99. package/components/vditor/src/ctx.d.ts +37 -0
  100. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  101. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  102. package/components/vditor/src/index.vue.d.ts +144 -0
  103. package/components/vditor/src/types.d.ts +9 -0
  104. package/components/vditor/src/use.d.ts +4 -0
  105. package/package.json +1 -1
@@ -0,0 +1,383 @@
1
+ import type { Paragraph } from './types';
2
+ import { ParagraphStatus } from './const';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ render: {
5
+ type: import("vue").PropType<(text: string) => string>;
6
+ default: typeof import("./const").defaultRender;
7
+ };
8
+ data: {
9
+ type: {
10
+ (arrayLength: number): Paragraph[];
11
+ (...items: Paragraph[]): Paragraph[];
12
+ new (arrayLength: number): Paragraph[];
13
+ new (...items: Paragraph[]): Paragraph[];
14
+ isArray(arg: any): arg is any[];
15
+ readonly prototype: any[];
16
+ from<T>(arrayLike: ArrayLike<T>): T[];
17
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
18
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
19
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
20
+ of<T_4>(...items: T_4[]): T_4[];
21
+ readonly [Symbol.species]: ArrayConstructor;
22
+ };
23
+ default: undefined;
24
+ };
25
+ source: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ delay: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ separators: {
34
+ type: {
35
+ (arrayLength: number): string[];
36
+ (...items: string[]): string[];
37
+ new (arrayLength: number): string[];
38
+ new (...items: string[]): string[];
39
+ isArray(arg: any): arg is any[];
40
+ readonly prototype: any[];
41
+ from<T>(arrayLike: ArrayLike<T>): T[];
42
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
43
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
44
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
45
+ of<T_4>(...items: T_4[]): T_4[];
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ default: () => string[];
49
+ };
50
+ keepRead: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ textToSpeech: {
55
+ type: import("vue").PropType<import("./types").TextToSpeech>;
56
+ default: undefined;
57
+ };
58
+ processing: {
59
+ type: import("vue").PropType<(paragraph: Paragraph) => void>;
60
+ default: import("@vunk/shared").AnyFunc;
61
+ };
62
+ }>, {
63
+ theData: import("vue").ComputedRef<Paragraph[]>;
64
+ ParagraphStatus: typeof ParagraphStatus;
65
+ fulfilledTextValue: import("vue").ComputedRef<string>;
66
+ isPrevParagraphFulfilled: (currentIndex: number) => boolean;
67
+ isParagraphEnabled: (currentIndex: number) => boolean;
68
+ processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
69
+ isInterrupted: import("vue").Ref<boolean, boolean>;
70
+ setData: (obj: any, e: import("@vunk/core").SetDataEvent) => void;
71
+ Broadcast: typeof import("@vunk/shared/enum").TickerStatus;
72
+ isPaused: import("vue").ComputedRef<boolean>;
73
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
+ setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
75
+ interrupt: null;
76
+ 'update:broadcasting': (_: boolean) => boolean;
77
+ 'update:completed': (_: boolean) => boolean;
78
+ 'update:error': (_: boolean) => boolean;
79
+ paragraphLoad: (_: import("./types").ParagraphLoadEvent) => boolean;
80
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
+ render: {
82
+ type: import("vue").PropType<(text: string) => string>;
83
+ default: typeof import("./const").defaultRender;
84
+ };
85
+ data: {
86
+ type: {
87
+ (arrayLength: number): Paragraph[];
88
+ (...items: Paragraph[]): Paragraph[];
89
+ new (arrayLength: number): Paragraph[];
90
+ new (...items: Paragraph[]): Paragraph[];
91
+ isArray(arg: any): arg is any[];
92
+ readonly prototype: any[];
93
+ from<T>(arrayLike: ArrayLike<T>): T[];
94
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
95
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
96
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
97
+ of<T_4>(...items: T_4[]): T_4[];
98
+ readonly [Symbol.species]: ArrayConstructor;
99
+ };
100
+ default: undefined;
101
+ };
102
+ source: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ delay: {
107
+ type: NumberConstructor;
108
+ default: number;
109
+ };
110
+ separators: {
111
+ type: {
112
+ (arrayLength: number): string[];
113
+ (...items: string[]): string[];
114
+ new (arrayLength: number): string[];
115
+ new (...items: string[]): string[];
116
+ isArray(arg: any): arg is any[];
117
+ readonly prototype: any[];
118
+ from<T>(arrayLike: ArrayLike<T>): T[];
119
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
120
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
121
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
122
+ of<T_4>(...items: T_4[]): T_4[];
123
+ readonly [Symbol.species]: ArrayConstructor;
124
+ };
125
+ default: () => string[];
126
+ };
127
+ keepRead: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ textToSpeech: {
132
+ type: import("vue").PropType<import("./types").TextToSpeech>;
133
+ default: undefined;
134
+ };
135
+ processing: {
136
+ type: import("vue").PropType<(paragraph: Paragraph) => void>;
137
+ default: import("@vunk/shared").AnyFunc;
138
+ };
139
+ }>> & Readonly<{
140
+ onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
141
+ onInterrupt?: ((...args: any[]) => any) | undefined;
142
+ "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
143
+ "onUpdate:completed"?: ((_: boolean) => any) | undefined;
144
+ "onUpdate:error"?: ((_: boolean) => any) | undefined;
145
+ onParagraphLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
146
+ }>, {
147
+ processing: (paragraph: Paragraph) => void;
148
+ source: string;
149
+ delay: number;
150
+ render: (text: string) => string;
151
+ data: Paragraph[];
152
+ separators: string[];
153
+ keepRead: boolean;
154
+ textToSpeech: import("./types").TextToSpeech;
155
+ }, {}, {
156
+ ParagraphView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
157
+ enable: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ status: {
162
+ type: import("vue").PropType<ParagraphStatus>;
163
+ default: ParagraphStatus;
164
+ };
165
+ processing: {
166
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
167
+ default: import("@vunk/shared").AnyFunc;
168
+ };
169
+ retryTimes: {
170
+ type: NumberConstructor;
171
+ default: number;
172
+ };
173
+ }>, {
174
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
175
+ enable: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ status: {
180
+ type: import("vue").PropType<ParagraphStatus>;
181
+ default: ParagraphStatus;
182
+ };
183
+ processing: {
184
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
185
+ default: import("@vunk/shared").AnyFunc;
186
+ };
187
+ retryTimes: {
188
+ type: NumberConstructor;
189
+ default: number;
190
+ };
191
+ }>> & Readonly<{
192
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
193
+ }> & {}>;
194
+ emit: (event: "update:status", ...args: any[]) => void;
195
+ theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
196
+ retryTimes: number;
197
+ processingDef: {
198
+ _ref: import("vue").ShallowRef<unknown, unknown>;
199
+ readonly value: unknown;
200
+ promise: Promise<unknown>;
201
+ resolve: import("@vunk/core").AnyFunc;
202
+ reject: (reason?: any) => void;
203
+ };
204
+ init: () => Promise<void>;
205
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
206
+ enable: {
207
+ type: BooleanConstructor;
208
+ default: boolean;
209
+ };
210
+ status: {
211
+ type: import("vue").PropType<ParagraphStatus>;
212
+ default: ParagraphStatus;
213
+ };
214
+ processing: {
215
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
216
+ default: import("@vunk/shared").AnyFunc;
217
+ };
218
+ retryTimes: {
219
+ type: NumberConstructor;
220
+ default: number;
221
+ };
222
+ }>> & Readonly<{
223
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
224
+ }>, {
225
+ processing: import("@vunk/shared").AnyFunc;
226
+ status: ParagraphStatus;
227
+ enable: boolean;
228
+ retryTimes: number;
229
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
230
+ VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
231
+ source: {
232
+ type: StringConstructor;
233
+ default: string;
234
+ };
235
+ delay: {
236
+ type: NumberConstructor;
237
+ default: number;
238
+ };
239
+ pause: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ disabled: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
247
+ markdownItSetup: {
248
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
249
+ default: null;
250
+ };
251
+ }>, {
252
+ htmlText: import("vue").Ref<string, string>;
253
+ isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
254
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
255
+ typing: null;
256
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
257
+ source: {
258
+ type: StringConstructor;
259
+ default: string;
260
+ };
261
+ delay: {
262
+ type: NumberConstructor;
263
+ default: number;
264
+ };
265
+ pause: {
266
+ type: BooleanConstructor;
267
+ default: boolean;
268
+ };
269
+ disabled: {
270
+ type: BooleanConstructor;
271
+ default: boolean;
272
+ };
273
+ markdownItSetup: {
274
+ type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
275
+ default: null;
276
+ };
277
+ }>> & Readonly<{
278
+ onTyping?: ((...args: any[]) => any) | undefined;
279
+ }>, {
280
+ source: string;
281
+ delay: number;
282
+ pause: boolean;
283
+ disabled: boolean;
284
+ markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
285
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
286
+ HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
287
+ data: {
288
+ type: import("vue").PropType<Paragraph>;
289
+ default: () => {};
290
+ };
291
+ deferred: {
292
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
293
+ required: true;
294
+ };
295
+ render: {
296
+ type: import("vue").PropType<(text: string) => string>;
297
+ default: typeof import("./const").defaultRender;
298
+ };
299
+ }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
300
+ setData: (e: import("@vunk/core").SetDataEvent<keyof Paragraph>) => import("@vunk/core").SetDataEvent<keyof Paragraph>;
301
+ load: (_: import("./types").ParagraphLoadEvent) => boolean;
302
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
303
+ data: {
304
+ type: import("vue").PropType<Paragraph>;
305
+ default: () => {};
306
+ };
307
+ deferred: {
308
+ type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
309
+ required: true;
310
+ };
311
+ render: {
312
+ type: import("vue").PropType<(text: string) => string>;
313
+ default: typeof import("./const").defaultRender;
314
+ };
315
+ }>> & Readonly<{
316
+ onSetData?: ((e: import("@vunk/core").SetDataEvent<keyof Paragraph>) => any) | undefined;
317
+ onLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
318
+ }>, {
319
+ render: (text: string) => string;
320
+ data: Paragraph;
321
+ }, {}, {
322
+ SpeechError: import("vue").DefineComponent<{}, {
323
+ 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>;
324
+ readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
325
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
326
+ readonly size: {
327
+ 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>>;
328
+ readonly required: false;
329
+ readonly validator: ((val: unknown) => boolean) | undefined;
330
+ __epPropKey: true;
331
+ };
332
+ readonly color: {
333
+ readonly type: import("vue").PropType<string>;
334
+ readonly required: false;
335
+ readonly validator: ((val: unknown) => boolean) | undefined;
336
+ __epPropKey: true;
337
+ };
338
+ }>>, {}, 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, {
339
+ P: {};
340
+ B: {};
341
+ D: {};
342
+ C: {};
343
+ M: {};
344
+ Defaults: {};
345
+ }, Readonly<import("vue").ExtractPropTypes<{
346
+ readonly size: {
347
+ 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>>;
348
+ readonly required: false;
349
+ readonly validator: ((val: unknown) => boolean) | undefined;
350
+ __epPropKey: true;
351
+ };
352
+ readonly color: {
353
+ readonly type: import("vue").PropType<string>;
354
+ readonly required: false;
355
+ readonly validator: ((val: unknown) => boolean) | undefined;
356
+ __epPropKey: true;
357
+ };
358
+ }>>, {}, {}, {}, {}, {}>;
359
+ __isFragment?: undefined;
360
+ __isTeleport?: undefined;
361
+ __isSuspense?: undefined;
362
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
363
+ readonly size: {
364
+ 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>>;
365
+ readonly required: false;
366
+ readonly validator: ((val: unknown) => boolean) | undefined;
367
+ __epPropKey: true;
368
+ };
369
+ readonly color: {
370
+ readonly type: import("vue").PropType<string>;
371
+ readonly required: false;
372
+ readonly validator: ((val: unknown) => boolean) | undefined;
373
+ __epPropKey: true;
374
+ };
375
+ }>>, {}, 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 () => {
376
+ $slots: {
377
+ default?(_: {}): any;
378
+ };
379
+ })>;
380
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
381
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
382
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
383
+ 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: 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
+ };
@@ -0,0 +1,5 @@
1
+ import VkBubbleList from './src/index.vue';
2
+ export * as __VkBubbleList from './src/types';
3
+ export { Role } from '@vunk/plus/components/agent-chat-provider';
4
+ export { VkBubbleList, };
5
+ export default VkBubbleList;
@@ -0,0 +1,30 @@
1
+ import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
2
+ import type { AnyFunc } from '@vunk/shared';
3
+ import type { PropType } from 'vue';
4
+ export declare const props: {
5
+ items: {
6
+ type: {
7
+ (arrayLength: number): any[];
8
+ (...items: any[]): any[];
9
+ new (arrayLength: number): any[];
10
+ new (...items: any[]): any[];
11
+ isArray(arg: any): arg is any[];
12
+ readonly prototype: any[];
13
+ from<T>(arrayLike: ArrayLike<T>): T[];
14
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
15
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
16
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
17
+ of<T_4>(...items: T_4[]): T_4[];
18
+ readonly [Symbol.species]: ArrayConstructor;
19
+ };
20
+ default: () => never[];
21
+ };
22
+ elRef: {
23
+ type: PropType<AnyFunc>;
24
+ default: AnyFunc;
25
+ };
26
+ textToSpeech: {
27
+ type: PropType<__VkBroadcastingMarkdown.TextToSpeech>;
28
+ };
29
+ };
30
+ export declare const emits: {};