@vunk/plus 1.3.14 → 1.4.0

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 (114) hide show
  1. package/components/WebGLRenderer.mjs +0 -1
  2. package/components/WebGPURenderer.mjs +0 -1
  3. package/components/agent-chat-provider/index.mjs +1 -5
  4. package/components/broadcasting-markdown/index.mjs +574 -1
  5. package/components/browserAll.mjs +0 -1
  6. package/components/index2.mjs +38 -17
  7. package/components/pixi-frame/index.mjs +0 -1
  8. package/components/sender/index.mjs +1 -1
  9. package/components/webworkerAll.mjs +0 -1
  10. package/package.json +1 -1
  11. package/components/agent-chat-provider/index.d.ts +0 -7
  12. package/components/agent-chat-provider/src/api.d.ts +0 -3
  13. package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
  14. package/components/agent-chat-provider/src/const.d.ts +0 -1
  15. package/components/agent-chat-provider/src/index.vue.d.ts +0 -47
  16. package/components/agent-chat-provider/src/types.d.ts +0 -43
  17. package/components/agent-chat-provider/src/use.d.ts +0 -29
  18. package/components/avatar/index.d.ts +0 -4
  19. package/components/avatar/src/ctx.d.ts +0 -18
  20. package/components/avatar/src/index.vue.d.ts +0 -121
  21. package/components/avatar/src/types.d.ts +0 -1
  22. package/components/broadcasting-markdown/index.d.ts +0 -7
  23. package/components/broadcasting-markdown/src/const.d.ts +0 -13
  24. package/components/broadcasting-markdown/src/ctx.d.ts +0 -115
  25. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -97
  26. package/components/broadcasting-markdown/src/index.vue.d.ts +0 -383
  27. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
  28. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -60
  29. package/components/broadcasting-markdown/src/types.d.ts +0 -25
  30. package/components/broadcasting-markdown/src/use.d.ts +0 -21
  31. package/components/browser.mjs +0 -575
  32. package/components/bubble-list/index.d.ts +0 -5
  33. package/components/bubble-list/src/ctx.d.ts +0 -30
  34. package/components/bubble-list/src/index.vue.d.ts +0 -867
  35. package/components/bubble-list/src/types.d.ts +0 -4
  36. package/components/bubble-templates/index.d.ts +0 -4
  37. package/components/bubble-templates/src/index.vue.d.ts +0 -539
  38. package/components/bubble-templates/src/types.d.ts +0 -40
  39. package/components/chat-independent/index.d.ts +0 -4
  40. package/components/chat-independent/src/const.d.ts +0 -13
  41. package/components/chat-independent/src/ctx.d.ts +0 -20
  42. package/components/chat-independent/src/index.vue.d.ts +0 -2343
  43. package/components/chat-independent/src/types.d.ts +0 -13
  44. package/components/index.d.ts +0 -0
  45. package/components/lottie-animation/index.d.ts +0 -4
  46. package/components/lottie-animation/src/ctx.d.ts +0 -10
  47. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  48. package/components/lottie-animation/src/types.d.ts +0 -4
  49. package/components/monaco-editor/index.d.ts +0 -5
  50. package/components/monaco-editor/src/ctx.d.ts +0 -23
  51. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  52. package/components/monaco-editor/src/types.d.ts +0 -1
  53. package/components/monaco-environment/index.d.ts +0 -4
  54. package/components/monaco-environment/src/ctx.d.ts +0 -8
  55. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  56. package/components/monaco-environment/src/types.d.ts +0 -1
  57. package/components/pixi-frame/index.d.ts +0 -8
  58. package/components/pixi-frame/src/core.vue.d.ts +0 -127
  59. package/components/pixi-frame/src/ctx.d.ts +0 -41
  60. package/components/pixi-frame/src/index.vue.d.ts +0 -222
  61. package/components/pixi-frame/src/provider.vue.d.ts +0 -2
  62. package/components/pixi-frame/src/types.d.ts +0 -1
  63. package/components/pixi-frame/src/use.d.ts +0 -3
  64. package/components/pixi-frame/src/view.vue.d.ts +0 -25
  65. package/components/recorder-button/index.d.ts +0 -4
  66. package/components/recorder-button/src/ctx.d.ts +0 -41
  67. package/components/recorder-button/src/index.vue.d.ts +0 -300
  68. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  69. package/components/recorder-button/src/types.d.ts +0 -7
  70. package/components/routes-menu-content/index.d.ts +0 -4
  71. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  72. package/components/routes-menu-content/src/index.vue.d.ts +0 -472
  73. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  74. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -307
  75. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  76. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -438
  77. package/components/routes-menu-content/src/types.d.ts +0 -1
  78. package/components/sender/index.d.ts +0 -4
  79. package/components/sender/src/SenderHeader.vue.d.ts +0 -256
  80. package/components/sender/src/ctx.d.ts +0 -62
  81. package/components/sender/src/index.vue.d.ts +0 -787
  82. package/components/sender/src/types.d.ts +0 -1
  83. package/components/speech-button/index.d.ts +0 -4
  84. package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
  85. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  86. package/components/speech-button/src/ctx.d.ts +0 -10
  87. package/components/speech-button/src/index.vue.d.ts +0 -22
  88. package/components/speech-button/src/types.d.ts +0 -1
  89. package/components/table-columns/index.d.ts +0 -5
  90. package/components/table-columns/src/ctx.d.ts +0 -66
  91. package/components/table-columns/src/el-ctx.d.ts +0 -63
  92. package/components/table-columns/src/index.vue.d.ts +0 -282
  93. package/components/table-columns/src/types.d.ts +0 -21
  94. package/components/tables-v1/index.d.ts +0 -5
  95. package/components/tables-v1/src/ctx.d.ts +0 -281
  96. package/components/tables-v1/src/el-ctx.d.ts +0 -269
  97. package/components/tables-v1/src/index.vue.d.ts +0 -3014
  98. package/components/tables-v1/src/types.d.ts +0 -4
  99. package/components/tables-v1-checkbox/index.d.ts +0 -5
  100. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -321
  101. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3796
  102. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  103. package/components/typing-markdown/index.d.ts +0 -4
  104. package/components/typing-markdown/src/core.d.ts +0 -2
  105. package/components/typing-markdown/src/ctx.d.ts +0 -33
  106. package/components/typing-markdown/src/index.vue.d.ts +0 -57
  107. package/components/typing-markdown/src/types.d.ts +0 -1
  108. package/components/vditor/index.d.ts +0 -5
  109. package/components/vditor/src/ctx.d.ts +0 -37
  110. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  111. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  112. package/components/vditor/src/index.vue.d.ts +0 -144
  113. package/components/vditor/src/types.d.ts +0 -9
  114. package/components/vditor/src/use.d.ts +0 -4
@@ -1,4 +0,0 @@
1
- import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
2
- import type { __VkBubbleTemplates } from '@vunk/plus/components/bubble-templates';
3
- export type Item = __VkAgentChatProvider.BubbleItem;
4
- export type RenderData = __VkBubbleTemplates.RenderData;
@@ -1,4 +0,0 @@
1
- import VkBubbleTemplates from './src/index.vue';
2
- export * as __VkBubbleTemplates from './src/types';
3
- export { VkBubbleTemplates, };
4
- export default VkBubbleTemplates;
@@ -1,539 +0,0 @@
1
- import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
2
- import type { __VkBubbleList } from '@vunk/plus/components/bubble-list';
3
- import type { SetDataEvent } from '@vunk/core';
4
- import { type PropType } from 'vue';
5
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- textToSpeech: {
7
- type: PropType<__VkBroadcastingMarkdown.TextToSpeech>;
8
- };
9
- modules: {
10
- type: PropType<"Thinking"[]>;
11
- default: () => string[];
12
- };
13
- }>, {
14
- setRef: (emitSetData: (e: SetDataEvent) => void, props: __VkBubbleList.Item, el: any) => void;
15
- initRenderData: (emitSetData: (e: SetDataEvent) => void, props: __VkBubbleList.Item) => void;
16
- readonly VkBroadcastingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
17
- render: {
18
- type: PropType<(text: string) => string>;
19
- default: typeof import("@vunk/plus/components/broadcasting-markdown").defaultRender;
20
- };
21
- data: {
22
- type: {
23
- (arrayLength: number): __VkBroadcastingMarkdown.Paragraph[];
24
- (...items: __VkBroadcastingMarkdown.Paragraph[]): __VkBroadcastingMarkdown.Paragraph[];
25
- new (arrayLength: number): __VkBroadcastingMarkdown.Paragraph[];
26
- new (...items: __VkBroadcastingMarkdown.Paragraph[]): __VkBroadcastingMarkdown.Paragraph[];
27
- isArray(arg: any): arg is any[];
28
- readonly prototype: any[];
29
- from<T>(arrayLike: ArrayLike<T>): T[];
30
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
31
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
32
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
33
- of<T_4>(...items: T_4[]): T_4[];
34
- readonly [Symbol.species]: ArrayConstructor;
35
- };
36
- default: undefined;
37
- };
38
- source: {
39
- type: StringConstructor;
40
- default: string;
41
- };
42
- delay: {
43
- type: NumberConstructor;
44
- default: number;
45
- };
46
- separators: {
47
- type: {
48
- (arrayLength: number): string[];
49
- (...items: string[]): string[];
50
- new (arrayLength: number): string[];
51
- new (...items: string[]): string[];
52
- isArray(arg: any): arg is any[];
53
- readonly prototype: any[];
54
- from<T>(arrayLike: ArrayLike<T>): T[];
55
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
56
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
57
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
58
- of<T_4>(...items: T_4[]): T_4[];
59
- readonly [Symbol.species]: ArrayConstructor;
60
- };
61
- default: () => string[];
62
- };
63
- keepRead: {
64
- type: BooleanConstructor;
65
- default: boolean;
66
- };
67
- textToSpeech: {
68
- type: PropType<__VkBroadcastingMarkdown.TextToSpeech>;
69
- default: undefined;
70
- };
71
- processing: {
72
- type: PropType<(paragraph: __VkBroadcastingMarkdown.Paragraph) => void>;
73
- default: import("@vunk/shared").AnyFunc;
74
- };
75
- }>, {
76
- theData: import("vue").ComputedRef<__VkBroadcastingMarkdown.Paragraph[]>;
77
- ParagraphStatus: typeof import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
78
- fulfilledTextValue: import("vue").ComputedRef<string>;
79
- isPrevParagraphFulfilled: (currentIndex: number) => boolean;
80
- isParagraphEnabled: (currentIndex: number) => boolean;
81
- processingParagraph: (paragraph: __VkBroadcastingMarkdown.Paragraph) => Promise<void> | undefined;
82
- isInterrupted: import("vue").Ref<boolean, boolean>;
83
- setData: (obj: any, e: SetDataEvent) => void;
84
- Broadcast: typeof import("@vunk/shared/enum").TickerStatus;
85
- isPaused: import("vue").ComputedRef<boolean>;
86
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
87
- setData: (e: SetDataEvent) => SetDataEvent;
88
- interrupt: null;
89
- 'update:broadcasting': (_: boolean) => boolean;
90
- 'update:completed': (_: boolean) => boolean;
91
- 'update:error': (_: boolean) => boolean;
92
- paragraphLoad: (_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => boolean;
93
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
94
- render: {
95
- type: PropType<(text: string) => string>;
96
- default: typeof import("@vunk/plus/components/broadcasting-markdown").defaultRender;
97
- };
98
- data: {
99
- type: {
100
- (arrayLength: number): __VkBroadcastingMarkdown.Paragraph[];
101
- (...items: __VkBroadcastingMarkdown.Paragraph[]): __VkBroadcastingMarkdown.Paragraph[];
102
- new (arrayLength: number): __VkBroadcastingMarkdown.Paragraph[];
103
- new (...items: __VkBroadcastingMarkdown.Paragraph[]): __VkBroadcastingMarkdown.Paragraph[];
104
- isArray(arg: any): arg is any[];
105
- readonly prototype: any[];
106
- from<T>(arrayLike: ArrayLike<T>): T[];
107
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
108
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
109
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
110
- of<T_4>(...items: T_4[]): T_4[];
111
- readonly [Symbol.species]: ArrayConstructor;
112
- };
113
- default: undefined;
114
- };
115
- source: {
116
- type: StringConstructor;
117
- default: string;
118
- };
119
- delay: {
120
- type: NumberConstructor;
121
- default: number;
122
- };
123
- separators: {
124
- type: {
125
- (arrayLength: number): string[];
126
- (...items: string[]): string[];
127
- new (arrayLength: number): string[];
128
- new (...items: string[]): string[];
129
- isArray(arg: any): arg is any[];
130
- readonly prototype: any[];
131
- from<T>(arrayLike: ArrayLike<T>): T[];
132
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
133
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
134
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
135
- of<T_4>(...items: T_4[]): T_4[];
136
- readonly [Symbol.species]: ArrayConstructor;
137
- };
138
- default: () => string[];
139
- };
140
- keepRead: {
141
- type: BooleanConstructor;
142
- default: boolean;
143
- };
144
- textToSpeech: {
145
- type: PropType<__VkBroadcastingMarkdown.TextToSpeech>;
146
- default: undefined;
147
- };
148
- processing: {
149
- type: PropType<(paragraph: __VkBroadcastingMarkdown.Paragraph) => void>;
150
- default: import("@vunk/shared").AnyFunc;
151
- };
152
- }>> & Readonly<{
153
- onSetData?: ((e: SetDataEvent) => any) | undefined;
154
- onInterrupt?: ((...args: any[]) => any) | undefined;
155
- "onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
156
- "onUpdate:completed"?: ((_: boolean) => any) | undefined;
157
- "onUpdate:error"?: ((_: boolean) => any) | undefined;
158
- onParagraphLoad?: ((_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => any) | undefined;
159
- }>, {
160
- processing: (paragraph: __VkBroadcastingMarkdown.Paragraph) => void;
161
- source: string;
162
- delay: number;
163
- render: (text: string) => string;
164
- data: __VkBroadcastingMarkdown.Paragraph[];
165
- separators: string[];
166
- keepRead: boolean;
167
- textToSpeech: __VkBroadcastingMarkdown.TextToSpeech;
168
- }, {}, {
169
- ParagraphView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
170
- enable: {
171
- type: BooleanConstructor;
172
- default: boolean;
173
- };
174
- status: {
175
- type: PropType<import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus>;
176
- default: import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
177
- };
178
- processing: {
179
- type: PropType<import("@vunk/shared").AnyFunc>;
180
- default: import("@vunk/shared").AnyFunc;
181
- };
182
- retryTimes: {
183
- type: NumberConstructor;
184
- default: number;
185
- };
186
- }>, {
187
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
188
- enable: {
189
- type: BooleanConstructor;
190
- default: boolean;
191
- };
192
- status: {
193
- type: PropType<import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus>;
194
- default: import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
195
- };
196
- processing: {
197
- type: PropType<import("@vunk/shared").AnyFunc>;
198
- default: import("@vunk/shared").AnyFunc;
199
- };
200
- retryTimes: {
201
- type: NumberConstructor;
202
- default: number;
203
- };
204
- }>> & Readonly<{
205
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
206
- }> & {}>;
207
- emit: (event: "update:status", ...args: any[]) => void;
208
- theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
209
- retryTimes: number;
210
- processingDef: {
211
- _ref: import("vue").ShallowRef<unknown, unknown>;
212
- readonly value: unknown;
213
- promise: Promise<unknown>;
214
- resolve: import("@vunk/core").AnyFunc;
215
- reject: (reason?: any) => void;
216
- };
217
- init: () => Promise<void>;
218
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
219
- enable: {
220
- type: BooleanConstructor;
221
- default: boolean;
222
- };
223
- status: {
224
- type: PropType<import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus>;
225
- default: import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
226
- };
227
- processing: {
228
- type: PropType<import("@vunk/shared").AnyFunc>;
229
- default: import("@vunk/shared").AnyFunc;
230
- };
231
- retryTimes: {
232
- type: NumberConstructor;
233
- default: number;
234
- };
235
- }>> & Readonly<{
236
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
237
- }>, {
238
- processing: import("@vunk/shared").AnyFunc;
239
- status: import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
240
- enable: boolean;
241
- retryTimes: number;
242
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
243
- VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
244
- source: {
245
- type: StringConstructor;
246
- default: string;
247
- };
248
- delay: {
249
- type: NumberConstructor;
250
- default: number;
251
- };
252
- pause: {
253
- type: BooleanConstructor;
254
- default: boolean;
255
- };
256
- disabled: {
257
- type: BooleanConstructor;
258
- default: boolean;
259
- };
260
- markdownItSetup: {
261
- type: PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
262
- default: null;
263
- };
264
- }>, {
265
- htmlText: import("vue").Ref<string, string>;
266
- isDebouncedTyping: Readonly<import("vue").Ref<boolean, boolean>>;
267
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
268
- typing: null;
269
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
270
- source: {
271
- type: StringConstructor;
272
- default: string;
273
- };
274
- delay: {
275
- type: NumberConstructor;
276
- default: number;
277
- };
278
- pause: {
279
- type: BooleanConstructor;
280
- default: boolean;
281
- };
282
- disabled: {
283
- type: BooleanConstructor;
284
- default: boolean;
285
- };
286
- markdownItSetup: {
287
- type: PropType<(md: import("markdown-it-async").MarkdownItAsync) => void>;
288
- default: null;
289
- };
290
- }>> & Readonly<{
291
- onTyping?: ((...args: any[]) => any) | undefined;
292
- }>, {
293
- source: string;
294
- delay: number;
295
- pause: boolean;
296
- disabled: boolean;
297
- markdownItSetup: (md: import("markdown-it-async").MarkdownItAsync) => void;
298
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
299
- HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
300
- data: {
301
- type: PropType<__VkBroadcastingMarkdown.Paragraph>;
302
- default: () => {};
303
- };
304
- deferred: {
305
- type: PropType<import("@vunk/shared/promise").Deferred<any>>;
306
- required: true;
307
- };
308
- render: {
309
- type: PropType<(text: string) => string>;
310
- default: typeof import("@vunk/plus/components/broadcasting-markdown").defaultRender;
311
- };
312
- }>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
313
- setData: (e: SetDataEvent<keyof __VkBroadcastingMarkdown.Paragraph>) => SetDataEvent<keyof __VkBroadcastingMarkdown.Paragraph>;
314
- load: (_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => boolean;
315
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
316
- data: {
317
- type: PropType<__VkBroadcastingMarkdown.Paragraph>;
318
- default: () => {};
319
- };
320
- deferred: {
321
- type: PropType<import("@vunk/shared/promise").Deferred<any>>;
322
- required: true;
323
- };
324
- render: {
325
- type: PropType<(text: string) => string>;
326
- default: typeof import("@vunk/plus/components/broadcasting-markdown").defaultRender;
327
- };
328
- }>> & Readonly<{
329
- onSetData?: ((e: SetDataEvent<keyof __VkBroadcastingMarkdown.Paragraph>) => any) | undefined;
330
- onLoad?: ((_: __VkBroadcastingMarkdown.ParagraphLoadEvent) => any) | undefined;
331
- }>, {
332
- render: (text: string) => string;
333
- data: __VkBroadcastingMarkdown.Paragraph;
334
- }, {}, {
335
- SpeechError: import("vue").DefineComponent<{}, {
336
- 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>;
337
- readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
338
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
339
- readonly size: {
340
- readonly type: PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
341
- readonly required: false;
342
- readonly validator: ((val: unknown) => boolean) | undefined;
343
- __epPropKey: true;
344
- };
345
- readonly color: {
346
- readonly type: PropType<string>;
347
- readonly required: false;
348
- readonly validator: ((val: unknown) => boolean) | undefined;
349
- __epPropKey: true;
350
- };
351
- }>>, {}, 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, {
352
- P: {};
353
- B: {};
354
- D: {};
355
- C: {};
356
- M: {};
357
- Defaults: {};
358
- }, Readonly<import("vue").ExtractPropTypes<{
359
- readonly size: {
360
- readonly type: PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
361
- readonly required: false;
362
- readonly validator: ((val: unknown) => boolean) | undefined;
363
- __epPropKey: true;
364
- };
365
- readonly color: {
366
- readonly type: PropType<string>;
367
- readonly required: false;
368
- readonly validator: ((val: unknown) => boolean) | undefined;
369
- __epPropKey: true;
370
- };
371
- }>>, {}, {}, {}, {}, {}>;
372
- __isFragment?: undefined;
373
- __isTeleport?: undefined;
374
- __isSuspense?: undefined;
375
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
376
- readonly size: {
377
- readonly type: PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
378
- readonly required: false;
379
- readonly validator: ((val: unknown) => boolean) | undefined;
380
- __epPropKey: true;
381
- };
382
- readonly color: {
383
- readonly type: PropType<string>;
384
- readonly required: false;
385
- readonly validator: ((val: unknown) => boolean) | undefined;
386
- __epPropKey: true;
387
- };
388
- }>>, {}, 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 () => {
389
- $slots: {
390
- default?(_: {}): any;
391
- };
392
- })>;
393
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
394
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
395
- }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
396
- readonly VkRendererTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
397
- type: {
398
- type: StringConstructor;
399
- required: boolean;
400
- default: string;
401
- };
402
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
403
- type: {
404
- type: StringConstructor;
405
- required: boolean;
406
- default: string;
407
- };
408
- }>> & Readonly<{}>, {
409
- type: string;
410
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
411
- readonly Thinking: {
412
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue-element-plus-x/types/components/Thinking/types").ThinkingProps> & Readonly<{
413
- onChange?: ((value: {
414
- value: boolean;
415
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
416
- }) => any) | undefined;
417
- "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
418
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
419
- change: (value: {
420
- value: boolean;
421
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
422
- }) => any;
423
- "update:expanded": (value: boolean) => any;
424
- }, import("vue").PublicProps, {
425
- content: string;
426
- maxWidth: string;
427
- modelValue: boolean;
428
- disabled: boolean;
429
- color: string;
430
- backgroundColor: string;
431
- duration: string;
432
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
433
- autoCollapse: boolean;
434
- buttonWidth: string;
435
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, HTMLDivElement, import("vue").ComponentProvideOptions, {
436
- P: {};
437
- B: {};
438
- D: {};
439
- C: {};
440
- M: {};
441
- Defaults: {};
442
- }, Readonly<import("vue-element-plus-x/types/components/Thinking/types").ThinkingProps> & Readonly<{
443
- onChange?: ((value: {
444
- value: boolean;
445
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
446
- }) => any) | undefined;
447
- "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
448
- }>, {}, {}, {}, {}, {
449
- content: string;
450
- maxWidth: string;
451
- modelValue: boolean;
452
- disabled: boolean;
453
- color: string;
454
- backgroundColor: string;
455
- duration: string;
456
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
457
- autoCollapse: boolean;
458
- buttonWidth: string;
459
- }>;
460
- __isFragment?: undefined;
461
- __isTeleport?: undefined;
462
- __isSuspense?: undefined;
463
- } & import("vue").ComponentOptionsBase<Readonly<import("vue-element-plus-x/types/components/Thinking/types").ThinkingProps> & Readonly<{
464
- onChange?: ((value: {
465
- value: boolean;
466
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
467
- }) => any) | undefined;
468
- "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
469
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
470
- change: (value: {
471
- value: boolean;
472
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
473
- }) => any;
474
- "update:expanded": (value: boolean) => any;
475
- }, string, {
476
- content: string;
477
- maxWidth: string;
478
- modelValue: boolean;
479
- disabled: boolean;
480
- color: string;
481
- backgroundColor: string;
482
- duration: string;
483
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
484
- autoCollapse: boolean;
485
- buttonWidth: string;
486
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
487
- $slots: {
488
- 'status-icon'?(_: {
489
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
490
- }): any;
491
- label?(_: {
492
- status: import("vue-element-plus-x/types/components/Thinking/types").ThinkingStatus;
493
- }): any;
494
- arrow?(_: {}): any;
495
- content?(_: {
496
- content: string;
497
- }): any;
498
- error?(_: {
499
- errorContent: string;
500
- }): any;
501
- };
502
- });
503
- readonly Typewriter: import("vue").DefineComponent<import("vue-element-plus-x/types/components/Typewriter/types").TypewriterProps, {
504
- interrupt: () => void;
505
- continue: () => void;
506
- restart: () => void;
507
- destroy: () => void;
508
- renderedContent: import("vue").ComputedRef<string>;
509
- isTyping: Ref<boolean>;
510
- progress: import("vue").ComputedRef<number>;
511
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
512
- start: (instance: import("vue-element-plus-x/types/components/Typewriter/types").TypewriterInstance) => any;
513
- writing: (instance: import("vue-element-plus-x/types/components/Typewriter/types").TypewriterInstance) => any;
514
- finish: (instance: import("vue-element-plus-x/types/components/Typewriter/types").TypewriterInstance) => any;
515
- }, string, import("vue").PublicProps, Readonly<import("vue-element-plus-x/types/components/Typewriter/types").TypewriterProps> & Readonly<{
516
- onStart?: ((instance: import("vue-element-plus-x/types/components/Typewriter/types").TypewriterInstance) => any) | undefined;
517
- onWriting?: ((instance: import("vue-element-plus-x/types/components/Typewriter/types").TypewriterInstance) => any) | undefined;
518
- onFinish?: ((instance: import("vue-element-plus-x/types/components/Typewriter/types").TypewriterInstance) => any) | undefined;
519
- }>, {
520
- content: string;
521
- isMarkdown: boolean;
522
- typing: boolean | import("vue-element-plus-x/types/components/Typewriter/types").TypingConfig;
523
- isFog: boolean | import("vue-element-plus-x/types/components/Typewriter/types").TypingFogfig;
524
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
525
- typeWriterRef: HTMLDivElement;
526
- markdownContentRef: HTMLDivElement;
527
- }, HTMLDivElement>;
528
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
529
- textToSpeech: {
530
- type: PropType<__VkBroadcastingMarkdown.TextToSpeech>;
531
- };
532
- modules: {
533
- type: PropType<"Thinking"[]>;
534
- default: () => string[];
535
- };
536
- }>> & Readonly<{}>, {
537
- modules: "Thinking"[];
538
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
539
- export default _default;
@@ -1,40 +0,0 @@
1
- import type { VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
2
- import type { __VkRenderer } from '@vunk/core/components/renderer';
3
- import type { VueComponentPropsType } from '@vunk/shared';
4
- import type { TypewriterProps } from 'vue-element-plus-x/types/components/Typewriter/types';
5
- export interface TypewriterSource extends __VkRenderer.SourceItem, TypewriterProps {
6
- templateType: 'Typewriter';
7
- }
8
- export interface BroadcastingMarkdownSource extends __VkRenderer.SourceItem, VueComponentPropsType<typeof VkBroadcastingMarkdown> {
9
- templateType: 'VkBroadcastingMarkdown';
10
- }
11
- export type RenderItem = TypewriterSource | BroadcastingMarkdownSource;
12
- export type RenderData = Record<string, RenderDataRecord>;
13
- export interface RenderDataRecord {
14
- /**
15
- * @description 渲染的组件
16
- */
17
- templateType?: RenderItem['templateType'];
18
- /**
19
- * @description 组件暴露的元数据
20
- */
21
- meta?: any;
22
- /**
23
- * @description 已经完成的
24
- */
25
- completed?: boolean;
26
- /**
27
- * @description 发生错误的
28
- */
29
- error?: boolean;
30
- /**
31
- * @description 组件实例
32
- */
33
- elRef?: any;
34
- }
35
- export interface Interruptable {
36
- /**
37
- * @description 中断
38
- */
39
- interrupt?: () => void;
40
- }
@@ -1,4 +0,0 @@
1
- import VkChatIndependent from './src/index.vue';
2
- export * as __VkChatIndependent from './src/types';
3
- export { VkChatIndependent, };
4
- export default VkChatIndependent;
@@ -1,13 +0,0 @@
1
- /**
2
- * 输入的两种方式 语音和文本
3
- */
4
- export declare enum InputType {
5
- /**
6
- * 语音
7
- */
8
- Voice = "voice",
9
- /**
10
- * 文本
11
- */
12
- Text = "text"
13
- }
@@ -1,20 +0,0 @@
1
- import type { __VkBubbleList } from '@vunk/plus/components/bubble-list';
2
- import type { SetDataEvent } from '@vunk/core';
3
- import type { PropType } from 'vue';
4
- export declare const props: {
5
- /**
6
- * @description BubbleList渲染时数据, 受控于setData
7
- */
8
- data: {
9
- type: PropType<import("../../bubble-templates/src/types").RenderData>;
10
- };
11
- speechToText: {
12
- type: PropType<import("./types").SpeechToText>;
13
- };
14
- textToSpeech: {
15
- type: PropType<import("./types").TextToSpeech>;
16
- };
17
- };
18
- export declare const emits: {
19
- setData: (e: SetDataEvent) => SetDataEvent;
20
- };