@vunk/plus 1.7.0 → 1.7.1

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 (120) hide show
  1. package/components/index3.mjs +3 -1
  2. package/package.json +1 -1
  3. package/components/agent-chat-provider/index.d.ts +0 -8
  4. package/components/agent-chat-provider/src/MessageView.d.ts +0 -29
  5. package/components/agent-chat-provider/src/api.d.ts +0 -3
  6. package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
  7. package/components/agent-chat-provider/src/const.d.ts +0 -1
  8. package/components/agent-chat-provider/src/index.vue.d.ts +0 -22
  9. package/components/agent-chat-provider/src/types.d.ts +0 -56
  10. package/components/agent-chat-provider/src/use.d.ts +0 -6
  11. package/components/avatar/index.d.ts +0 -4
  12. package/components/avatar/src/ctx.d.ts +0 -6
  13. package/components/avatar/src/index.vue.d.ts +0 -180
  14. package/components/avatar/src/types.d.ts +0 -1
  15. package/components/broadcasting-markdown/index.d.ts +0 -7
  16. package/components/broadcasting-markdown/src/const.d.ts +0 -13
  17. package/components/broadcasting-markdown/src/ctx.d.ts +0 -129
  18. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -104
  19. package/components/broadcasting-markdown/src/index.vue.d.ts +0 -439
  20. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
  21. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -67
  22. package/components/broadcasting-markdown/src/types.d.ts +0 -26
  23. package/components/broadcasting-markdown/src/use.d.ts +0 -21
  24. package/components/bubble-list/index.d.ts +0 -5
  25. package/components/bubble-list/src/ctx.d.ts +0 -28
  26. package/components/bubble-list/src/index.vue.d.ts +0 -454
  27. package/components/bubble-list/src/types.d.ts +0 -4
  28. package/components/bubble-templates/index.d.ts +0 -5
  29. package/components/bubble-templates/src/core.d.ts +0 -69
  30. package/components/bubble-templates/src/index.vue.d.ts +0 -242
  31. package/components/bubble-templates/src/legacy.vue.d.ts +0 -153
  32. package/components/bubble-templates/src/types.d.ts +0 -45
  33. package/components/chat-independent/index.d.ts +0 -4
  34. package/components/chat-independent/src/const.d.ts +0 -13
  35. package/components/chat-independent/src/ctx.d.ts +0 -21
  36. package/components/chat-independent/src/index.vue.d.ts +0 -2073
  37. package/components/chat-independent/src/types.d.ts +0 -13
  38. package/components/index.d.ts +0 -0
  39. package/components/lottie-animation/index.d.ts +0 -4
  40. package/components/lottie-animation/src/ctx.d.ts +0 -10
  41. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  42. package/components/lottie-animation/src/types.d.ts +0 -4
  43. package/components/metahuman-broadcasting/index.d.ts +0 -5
  44. package/components/metahuman-broadcasting/src/ctx.d.ts +0 -57
  45. package/components/metahuman-broadcasting/src/index.vue.d.ts +0 -885
  46. package/components/metahuman-broadcasting/src/types.d.ts +0 -1
  47. package/components/monaco-editor/index.d.ts +0 -5
  48. package/components/monaco-editor/src/ctx.d.ts +0 -23
  49. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  50. package/components/monaco-editor/src/types.d.ts +0 -1
  51. package/components/monaco-environment/index.d.ts +0 -4
  52. package/components/monaco-environment/src/ctx.d.ts +0 -8
  53. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  54. package/components/monaco-environment/src/types.d.ts +0 -1
  55. package/components/pixi-frame/index.d.ts +0 -11
  56. package/components/pixi-frame/src/apng.vue.d.ts +0 -161
  57. package/components/pixi-frame/src/bitmap.vue.d.ts +0 -158
  58. package/components/pixi-frame/src/core.vue.d.ts +0 -173
  59. package/components/pixi-frame/src/ctx.d.ts +0 -55
  60. package/components/pixi-frame/src/index.vue.d.ts +0 -591
  61. package/components/pixi-frame/src/provider.vue.d.ts +0 -2
  62. package/components/pixi-frame/src/types.d.ts +0 -17
  63. package/components/pixi-frame/src/use.d.ts +0 -16
  64. package/components/pixi-frame/src/useSprite.d.ts +0 -12
  65. package/components/pixi-frame/src/video.vue.d.ts +0 -159
  66. package/components/pixi-frame/src/view.vue.d.ts +0 -29
  67. package/components/recorder-button/index.d.ts +0 -4
  68. package/components/recorder-button/src/ctx.d.ts +0 -41
  69. package/components/recorder-button/src/index.vue.d.ts +0 -333
  70. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  71. package/components/recorder-button/src/types.d.ts +0 -7
  72. package/components/routes-menu-content/index.d.ts +0 -4
  73. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  74. package/components/routes-menu-content/src/index.vue.d.ts +0 -350
  75. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  76. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -185
  77. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  78. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -316
  79. package/components/routes-menu-content/src/types.d.ts +0 -1
  80. package/components/sender/index.d.ts +0 -4
  81. package/components/sender/src/SenderHeader.vue.d.ts +0 -270
  82. package/components/sender/src/ctx.d.ts +0 -64
  83. package/components/sender/src/index.vue.d.ts +0 -779
  84. package/components/sender/src/types.d.ts +0 -1
  85. package/components/speech-button/index.d.ts +0 -4
  86. package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
  87. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  88. package/components/speech-button/src/ctx.d.ts +0 -10
  89. package/components/speech-button/src/index.vue.d.ts +0 -22
  90. package/components/speech-button/src/types.d.ts +0 -1
  91. package/components/table-columns/index.d.ts +0 -5
  92. package/components/table-columns/src/ctx.d.ts +0 -59
  93. package/components/table-columns/src/el-ctx.d.ts +0 -57
  94. package/components/table-columns/src/index.vue.d.ts +0 -266
  95. package/components/table-columns/src/types.d.ts +0 -21
  96. package/components/tables-v1/index.d.ts +0 -5
  97. package/components/tables-v1/src/ctx.d.ts +0 -280
  98. package/components/tables-v1/src/el-ctx.d.ts +0 -262
  99. package/components/tables-v1/src/index.vue.d.ts +0 -3054
  100. package/components/tables-v1/src/types.d.ts +0 -3
  101. package/components/tables-v1-checkbox/index.d.ts +0 -5
  102. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -313
  103. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3831
  104. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  105. package/components/text/index.d.ts +0 -4
  106. package/components/text/src/ctx.d.ts +0 -341
  107. package/components/text/src/index.vue.d.ts +0 -4593
  108. package/components/text/src/types.d.ts +0 -1
  109. package/components/typing-markdown/index.d.ts +0 -4
  110. package/components/typing-markdown/src/core.d.ts +0 -2
  111. package/components/typing-markdown/src/ctx.d.ts +0 -41
  112. package/components/typing-markdown/src/index.vue.d.ts +0 -75
  113. package/components/typing-markdown/src/types.d.ts +0 -1
  114. package/components/vditor/index.d.ts +0 -5
  115. package/components/vditor/src/ctx.d.ts +0 -38
  116. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  117. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  118. package/components/vditor/src/index.vue.d.ts +0 -143
  119. package/components/vditor/src/types.d.ts +0 -9
  120. package/components/vditor/src/use.d.ts +0 -4
@@ -1,439 +0,0 @@
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
- isPrevParagraphFulfilled: (currentIndex: number) => boolean;
80
- isParagraphEnabled: (currentIndex: number) => boolean;
81
- processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
82
- isInterrupted: import("vue").Ref<boolean, boolean>;
83
- setData: (obj: any, e: import("@vunk/core").SetDataEvent) => void;
84
- Broadcast: typeof TickerStatus;
85
- isPaused: import("vue").ComputedRef<boolean>;
86
- isTypingFinished: import("vue").Ref<boolean, boolean>;
87
- currentParagraph: import("vue").ComputedRef<Paragraph | undefined>;
88
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
89
- setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
90
- interrupt: null;
91
- 'update:broadcasting': (_: boolean) => boolean;
92
- 'update:completed': (_: boolean) => boolean;
93
- 'update:error': (_: boolean) => boolean;
94
- 'update:status': (_: TickerStatus) => boolean;
95
- paragraphLoad: (_: import("./types").ParagraphLoadEvent) => boolean;
96
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
97
- render: {
98
- type: import("vue").PropType<(text: string) => string>;
99
- default: typeof import("./const").defaultRender;
100
- };
101
- data: {
102
- type: {
103
- (arrayLength: number): Paragraph[];
104
- (...items: Paragraph[]): Paragraph[];
105
- new (arrayLength: number): Paragraph[];
106
- new (...items: Paragraph[]): Paragraph[];
107
- isArray(arg: any): arg is any[];
108
- readonly prototype: any[];
109
- from<T>(arrayLike: ArrayLike<T>): T[];
110
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
111
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
112
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
113
- of<T>(...items: T[]): T[];
114
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
115
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
116
- readonly [Symbol.species]: ArrayConstructor;
117
- };
118
- default: undefined;
119
- };
120
- source: {
121
- type: StringConstructor;
122
- default: string;
123
- };
124
- delay: {
125
- type: NumberConstructor;
126
- default: number;
127
- };
128
- separators: {
129
- type: {
130
- (arrayLength: number): string[];
131
- (...items: string[]): string[];
132
- new (arrayLength: number): string[];
133
- new (...items: string[]): string[];
134
- isArray(arg: any): arg is any[];
135
- readonly prototype: any[];
136
- from<T>(arrayLike: ArrayLike<T>): T[];
137
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
138
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
139
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
140
- of<T>(...items: T[]): T[];
141
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
142
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
143
- readonly [Symbol.species]: ArrayConstructor;
144
- };
145
- default: () => string[];
146
- };
147
- keepRead: {
148
- type: BooleanConstructor;
149
- default: boolean;
150
- };
151
- textToSpeech: {
152
- type: import("vue").PropType<import("./types").TextToSpeech>;
153
- default: undefined;
154
- };
155
- processing: {
156
- type: import("vue").PropType<(paragraph: Paragraph) => void>;
157
- default: import("@vunk/shared").AnyFunc;
158
- };
159
- status: {
160
- type: import("vue").PropType<TickerStatus>;
161
- default: TickerStatus;
162
- };
163
- paragraphMinlength: {
164
- type: NumberConstructor;
165
- default: number;
166
- };
167
- }>> & Readonly<{
168
- onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
169
- "onUpdate:status"?: ((_: TickerStatus) => any) | undefined;
170
- onInterrupt?: ((...args: any[]) => any) | undefined;
171
- "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
172
- "onUpdate:completed"?: ((_: boolean) => any) | undefined;
173
- "onUpdate:error"?: ((_: boolean) => any) | undefined;
174
- onParagraphLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
175
- }>, {
176
- data: Paragraph[];
177
- source: string;
178
- processing: (paragraph: Paragraph) => void;
179
- delay: number;
180
- render: (text: string) => string;
181
- status: TickerStatus;
182
- separators: string[];
183
- keepRead: boolean;
184
- textToSpeech: import("./types").TextToSpeech;
185
- paragraphMinlength: number;
186
- }, {}, {
187
- ParagraphView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
188
- enable: {
189
- type: BooleanConstructor;
190
- default: boolean;
191
- };
192
- status: {
193
- type: import("vue").PropType<ParagraphStatus>;
194
- default: ParagraphStatus;
195
- };
196
- processing: {
197
- type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
198
- default: import("@vunk/shared").AnyFunc;
199
- };
200
- retryTimes: {
201
- type: NumberConstructor;
202
- default: number;
203
- };
204
- }>, {
205
- props: import("@vue/shared").LooseRequired<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
- emit: (event: "update:status", ...args: any[]) => void;
226
- theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
227
- retryTimes: number;
228
- processingDef: {
229
- _ref: import("vue").ShallowRef<unknown, unknown>;
230
- readonly value: unknown;
231
- promise: Promise<unknown>;
232
- resolve: import("@vunk/core").AnyFunc;
233
- reject: (reason?: any) => void;
234
- };
235
- init: () => Promise<void>;
236
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
237
- enable: {
238
- type: BooleanConstructor;
239
- default: boolean;
240
- };
241
- status: {
242
- type: import("vue").PropType<ParagraphStatus>;
243
- default: ParagraphStatus;
244
- };
245
- processing: {
246
- type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
247
- default: import("@vunk/shared").AnyFunc;
248
- };
249
- retryTimes: {
250
- type: NumberConstructor;
251
- default: number;
252
- };
253
- }>> & Readonly<{
254
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
255
- }>, {
256
- processing: import("@vunk/shared").AnyFunc;
257
- status: ParagraphStatus;
258
- enable: boolean;
259
- retryTimes: number;
260
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
261
- VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
262
- source: {
263
- type: StringConstructor;
264
- default: string;
265
- };
266
- delay: {
267
- type: NumberConstructor;
268
- default: number;
269
- };
270
- pause: {
271
- type: BooleanConstructor;
272
- default: boolean;
273
- };
274
- disabled: {
275
- type: BooleanConstructor;
276
- default: boolean;
277
- };
278
- markdownItSetup: {
279
- type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
280
- default: null;
281
- };
282
- finished: {
283
- type: BooleanConstructor;
284
- };
285
- loading: {
286
- type: BooleanConstructor;
287
- default: boolean;
288
- };
289
- }>, {
290
- htmlText: import("vue").Ref<string, string>;
291
- isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
292
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
293
- typing: null;
294
- 'update:finished': null;
295
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
296
- source: {
297
- type: StringConstructor;
298
- default: string;
299
- };
300
- delay: {
301
- type: NumberConstructor;
302
- default: number;
303
- };
304
- pause: {
305
- type: BooleanConstructor;
306
- default: boolean;
307
- };
308
- disabled: {
309
- type: BooleanConstructor;
310
- default: boolean;
311
- };
312
- markdownItSetup: {
313
- type: import("vue").PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
314
- default: null;
315
- };
316
- finished: {
317
- type: BooleanConstructor;
318
- };
319
- loading: {
320
- type: BooleanConstructor;
321
- default: boolean;
322
- };
323
- }>> & Readonly<{
324
- onTyping?: ((...args: any[]) => any) | undefined;
325
- "onUpdate:finished"?: ((...args: any[]) => any) | undefined;
326
- }>, {
327
- source: string;
328
- delay: number;
329
- pause: boolean;
330
- disabled: boolean;
331
- markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
332
- finished: boolean;
333
- loading: boolean;
334
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
335
- HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
336
- data: {
337
- type: import("vue").PropType<Paragraph>;
338
- default: () => {};
339
- };
340
- deferred: {
341
- type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
342
- required: true;
343
- };
344
- render: {
345
- type: import("vue").PropType<(text: string) => string>;
346
- default: typeof import("./const").defaultRender;
347
- };
348
- }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
349
- setData: (e: import("@vunk/core").SetDataEvent<keyof Paragraph>) => import("@vunk/core").SetDataEvent<keyof Paragraph>;
350
- load: (_: import("./types").ParagraphLoadEvent) => boolean;
351
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
352
- data: {
353
- type: import("vue").PropType<Paragraph>;
354
- default: () => {};
355
- };
356
- deferred: {
357
- type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
358
- required: true;
359
- };
360
- render: {
361
- type: import("vue").PropType<(text: string) => string>;
362
- default: typeof import("./const").defaultRender;
363
- };
364
- }>> & Readonly<{
365
- onSetData?: ((e: import("@vunk/core").SetDataEvent<keyof Paragraph>) => any) | undefined;
366
- onLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
367
- }>, {
368
- data: Paragraph;
369
- render: (text: string) => string;
370
- }, {}, {
371
- SpeechError: import("vue").DefineComponent<{}, {
372
- 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>;
373
- readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
374
- readonly size: {
375
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
376
- readonly required: false;
377
- readonly validator: ((val: unknown) => boolean) | undefined;
378
- __epPropKey: true;
379
- };
380
- readonly color: {
381
- readonly type: import("vue").PropType<string>;
382
- readonly required: false;
383
- readonly validator: ((val: unknown) => boolean) | undefined;
384
- __epPropKey: true;
385
- };
386
- }, {
387
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
388
- readonly size: {
389
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
390
- readonly required: false;
391
- readonly validator: ((val: unknown) => boolean) | undefined;
392
- __epPropKey: true;
393
- };
394
- readonly color: {
395
- readonly type: import("vue").PropType<string>;
396
- readonly required: false;
397
- readonly validator: ((val: unknown) => boolean) | undefined;
398
- __epPropKey: true;
399
- };
400
- }>> & {
401
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
402
- }>>;
403
- ns: {
404
- namespace: import("vue").ComputedRef<string>;
405
- b: (blockSuffix?: string) => string;
406
- e: (element?: string | undefined) => string;
407
- m: (modifier?: string | undefined) => string;
408
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
409
- em: (element?: string | undefined, modifier?: string | undefined) => string;
410
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
411
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
412
- is: {
413
- (name: string, state: boolean | undefined): string;
414
- (name: string): string;
415
- };
416
- cssVar: (object: Record<string, string>) => Record<string, string>;
417
- cssVarName: (name: string) => string;
418
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
419
- cssVarBlockName: (name: string) => string;
420
- };
421
- style: import("vue").ComputedRef<import("vue").CSSProperties>;
422
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
423
- readonly size: {
424
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
425
- readonly required: false;
426
- readonly validator: ((val: unknown) => boolean) | undefined;
427
- __epPropKey: true;
428
- };
429
- readonly color: {
430
- readonly type: import("vue").PropType<string>;
431
- readonly required: false;
432
- readonly validator: ((val: unknown) => boolean) | undefined;
433
- __epPropKey: true;
434
- };
435
- }>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
436
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
437
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
438
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
439
- export default _default;
@@ -1,79 +0,0 @@
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;
@@ -1,67 +0,0 @@
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<import("vue").DefineComponent<{
4
- readonly size: {
5
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
6
- readonly required: false;
7
- readonly validator: ((val: unknown) => boolean) | undefined;
8
- __epPropKey: true;
9
- };
10
- readonly color: {
11
- readonly type: import("vue").PropType<string>;
12
- readonly required: false;
13
- readonly validator: ((val: unknown) => boolean) | undefined;
14
- __epPropKey: true;
15
- };
16
- }, {
17
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
18
- readonly size: {
19
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
20
- readonly required: false;
21
- readonly validator: ((val: unknown) => boolean) | undefined;
22
- __epPropKey: true;
23
- };
24
- readonly color: {
25
- readonly type: import("vue").PropType<string>;
26
- readonly required: false;
27
- readonly validator: ((val: unknown) => boolean) | undefined;
28
- __epPropKey: true;
29
- };
30
- }>> & {
31
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
32
- }>>;
33
- ns: {
34
- namespace: import("vue").ComputedRef<string>;
35
- b: (blockSuffix?: string) => string;
36
- e: (element?: string | undefined) => string;
37
- m: (modifier?: string | undefined) => string;
38
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
39
- em: (element?: string | undefined, modifier?: string | undefined) => string;
40
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
41
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
42
- is: {
43
- (name: string, state: boolean | undefined): string;
44
- (name: string): string;
45
- };
46
- cssVar: (object: Record<string, string>) => Record<string, string>;
47
- cssVarName: (name: string) => string;
48
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
49
- cssVarBlockName: (name: string) => string;
50
- };
51
- style: import("vue").ComputedRef<import("vue").CSSProperties>;
52
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
- readonly size: {
54
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
55
- readonly required: false;
56
- readonly validator: ((val: unknown) => boolean) | undefined;
57
- __epPropKey: true;
58
- };
59
- readonly color: {
60
- readonly type: import("vue").PropType<string>;
61
- readonly required: false;
62
- readonly validator: ((val: unknown) => boolean) | undefined;
63
- __epPropKey: true;
64
- };
65
- }>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
66
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
67
- export default _default;
@@ -1,26 +0,0 @@
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;
@@ -1,21 +0,0 @@
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
- };
@@ -1,5 +0,0 @@
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;
@@ -1,28 +0,0 @@
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: {};