@vunk/plus 1.12.2 → 1.13.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 (173) hide show
  1. package/components/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  2. package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  3. package/components/agent-chat-provider/index.cjs +1 -0
  4. package/components/agent-chat-provider/index.mjs +113 -187
  5. package/components/agent-chat-provider/src/index.vue.d.ts +3 -2
  6. package/components/avatar/index.cjs +1 -0
  7. package/components/avatar/index.mjs +25 -31
  8. package/components/avatar/src/index.vue.d.ts +40 -39
  9. package/components/broadcasting-markdown/__tests__/const.test.d.ts +1 -0
  10. package/components/broadcasting-markdown/__tests__/utils.test.d.ts +1 -0
  11. package/components/broadcasting-markdown/index.cjs +5 -0
  12. package/components/broadcasting-markdown/index.mjs +346 -4376
  13. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +18 -24
  14. package/components/broadcasting-markdown/src/index.vue.d.ts +101 -51
  15. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +17 -29
  16. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +2 -59
  17. package/components/bubble-list/index.cjs +1 -0
  18. package/components/bubble-list/index.mjs +220 -302
  19. package/components/bubble-list/src/core/index.vue.d.ts +40 -885
  20. package/components/bubble-list/src/core/loading.vue.d.ts +3 -0
  21. package/components/bubble-list/src/index.vue.d.ts +29 -1321
  22. package/components/bubble-templates/index.cjs +1 -0
  23. package/components/bubble-templates/index.mjs +34 -49
  24. package/components/bubble-templates/src/index.vue.d.ts +3 -224
  25. package/components/chat-independent/index.cjs +1 -0
  26. package/components/chat-independent/index.mjs +105 -212
  27. package/components/chat-independent/src/index.vue.d.ts +20 -2712
  28. package/components/components.css +1 -0
  29. package/components/drawer/index.cjs +1 -0
  30. package/components/drawer/index.mjs +53 -94
  31. package/components/drawer/src/ctx.d.ts +22 -22
  32. package/components/drawer/src/index.vue.d.ts +84 -557
  33. package/components/index.cjs +1 -0
  34. package/components/index.d.ts +1 -0
  35. package/components/lottie-animation/index.cjs +1 -0
  36. package/components/lottie-animation/index.mjs +36 -55
  37. package/components/lottie-animation/src/index.vue.d.ts +3 -2
  38. package/components/metahuman-broadcasting/index.cjs +1 -0
  39. package/components/metahuman-broadcasting/index.mjs +89 -140
  40. package/components/metahuman-broadcasting/src/index.vue.d.ts +16 -718
  41. package/components/monaco-editor/index.cjs +1 -0
  42. package/components/monaco-editor/index.mjs +68 -95
  43. package/components/monaco-editor/src/index.vue.d.ts +3 -2
  44. package/components/monaco-environment/index.cjs +1 -0
  45. package/components/monaco-environment/index.mjs +23 -38
  46. package/components/monaco-environment/src/index.vue.d.ts +2 -1
  47. package/components/pixi-frame/index.cjs +1 -0
  48. package/components/pixi-frame/index.mjs +941 -1969
  49. package/components/pixi-frame/src/apng.vue.d.ts +17 -73
  50. package/components/pixi-frame/src/bitmap-generator.vue.d.ts +24 -66
  51. package/components/pixi-frame/src/bitmap.vue.d.ts +28 -80
  52. package/components/pixi-frame/src/buffer-image.vue.d.ts +29 -97
  53. package/components/pixi-frame/src/core.vue.d.ts +20 -75
  54. package/components/pixi-frame/src/index.vue.d.ts +302 -237
  55. package/components/pixi-frame/src/provider.vue.d.ts +12 -1
  56. package/components/pixi-frame/src/video.vue.d.ts +17 -71
  57. package/components/pixi-frame/src/view.vue.d.ts +4 -16
  58. package/components/recorder-button/index.cjs +1 -0
  59. package/components/recorder-button/index.mjs +140 -269
  60. package/components/recorder-button/src/index.vue.d.ts +67 -66
  61. package/components/routes-menu-content/index.cjs +1 -0
  62. package/components/routes-menu-content/index.mjs +150 -229
  63. package/components/routes-menu-content/src/index.vue.d.ts +27 -26
  64. package/components/routes-menu-content/src/item/core/index.vue.d.ts +27 -26
  65. package/components/routes-menu-content/src/item/index.vue.d.ts +27 -26
  66. package/components/scrollbar/index.cjs +1 -0
  67. package/components/scrollbar/index.mjs +288 -567
  68. package/components/scrollbar/src/bar.vue.d.ts +6 -133
  69. package/components/scrollbar/src/index.vue.d.ts +66 -337
  70. package/components/scrollbar/src/thumb.vue.d.ts +3 -80
  71. package/components/sender/index.cjs +1 -0
  72. package/components/sender/index.mjs +156 -285
  73. package/components/sender/src/SenderHeader.vue.d.ts +14 -221
  74. package/components/sender/src/index.vue.d.ts +16 -505
  75. package/components/speech-button/index.cjs +1 -0
  76. package/components/speech-button/index.mjs +98 -144
  77. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -1
  78. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -1
  79. package/components/speech-button/src/index.vue.d.ts +6 -5
  80. package/components/table-columns/index.cjs +1 -0
  81. package/components/table-columns/index.mjs +48 -78
  82. package/components/table-columns/src/ctx.d.ts +10 -10
  83. package/components/table-columns/src/el-ctx.d.ts +1 -1
  84. package/components/table-columns/src/index.vue.d.ts +24 -23
  85. package/components/tables-v1/index.cjs +1 -0
  86. package/components/tables-v1/index.mjs +99 -160
  87. package/components/tables-v1/src/ctx.d.ts +28 -28
  88. package/components/tables-v1/src/el-ctx.d.ts +2 -2
  89. package/components/tables-v1/src/index.vue.d.ts +88 -2243
  90. package/components/tables-v1-checkbox/index.cjs +98 -0
  91. package/components/tables-v1-checkbox/index.mjs +1594 -3735
  92. package/components/tables-v1-checkbox/src/ctx.d.ts +26 -26
  93. package/components/tables-v1-checkbox/src/index.vue.d.ts +176 -2330
  94. package/components/text/index.cjs +1 -0
  95. package/components/text/index.mjs +70 -108
  96. package/components/text/src/ctx.d.ts +31 -31
  97. package/components/text/src/index.vue.d.ts +92 -1819
  98. package/components/thinking/index.cjs +1 -0
  99. package/components/thinking/index.mjs +127 -227
  100. package/components/thinking/src/index.vue.d.ts +22 -2044
  101. package/components/typing-markdown/index.cjs +1 -0
  102. package/components/typing-markdown/index.mjs +61 -201
  103. package/components/typing-markdown/src/index.vue.d.ts +3 -2
  104. package/components/vditor/index.cjs +1 -0
  105. package/components/vditor/index.mjs +121 -195
  106. package/components/vditor/src/ctx.d.ts +2 -2
  107. package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -2
  108. package/components/vditor/src/handle-value.vue.d.ts +3 -2
  109. package/components/vditor/src/index.vue.d.ts +5 -4
  110. package/components/xgplayer/index.cjs +1 -0
  111. package/components/xgplayer/index.mjs +49 -90
  112. package/components/xgplayer/src/core.vue.d.ts +13 -18
  113. package/components/xgplayer/src/index.vue.d.ts +13 -67
  114. package/composables/el-breakpoints/index.cjs +1 -0
  115. package/composables/el-breakpoints/index.d.ts +10 -10
  116. package/composables/el-breakpoints/index.mjs +10 -12
  117. package/composables/index.cjs +1 -0
  118. package/composables/index.d.ts +1 -0
  119. package/composables/recorder/index.cjs +1 -0
  120. package/composables/recorder/index.mjs +9172 -14803
  121. package/element/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  122. package/element/bubble/index.cjs +3 -0
  123. package/element/bubble/index.d.ts +1 -1
  124. package/element/bubble/index.mjs +1 -1
  125. package/element/bubble/src/index.vue.d.ts +22 -22
  126. package/element/index.css +1 -1
  127. package/element/thinking/index.cjs +1 -0
  128. package/element/thinking/index.d.ts +1 -1
  129. package/element/thinking/index.mjs +1 -1
  130. package/element/thinking/src/index.vue.d.ts +26 -26
  131. package/element/thinking/src/types.d.ts +10 -0
  132. package/icons/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  133. package/icons/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  134. package/icons/end/index.cjs +1 -0
  135. package/icons/end/index.mjs +21 -26
  136. package/icons/end/src/index.vue.d.ts +3 -0
  137. package/icons/keyboard/index.cjs +1 -0
  138. package/icons/keyboard/index.mjs +21 -26
  139. package/icons/keyboard/src/index.vue.d.ts +3 -0
  140. package/icons/start/index.cjs +1 -0
  141. package/icons/start/index.mjs +21 -26
  142. package/icons/start/src/index.vue.d.ts +3 -0
  143. package/icons/voice/index.cjs +1 -0
  144. package/icons/voice/index.mjs +26 -44
  145. package/icons/voice/src/index.vue.d.ts +2 -3
  146. package/index.css +2 -558
  147. package/index.d.ts +1 -0
  148. package/package.json +78 -87
  149. package/shared/data/index.cjs +1 -0
  150. package/shared/data/index.mjs +16 -22
  151. package/shared/types/index.cjs +1 -0
  152. package/shared/types/index.d.ts +1 -0
  153. package/components/LinkOutlined.mjs +0 -1321
  154. package/components/_commonjsHelpers.mjs +0 -7
  155. package/components/_plugin-vue_export-helper.mjs +0 -9
  156. package/components/bubble-list/index.css +0 -70
  157. package/components/bubble-templates/index.css +0 -4
  158. package/components/chat-independent/index.css +0 -47
  159. package/components/drawer/index.css +0 -124
  160. package/components/index2.mjs +0 -78
  161. package/components/lottie-animation/index.css +0 -4
  162. package/components/monaco-editor/index.css +0 -4
  163. package/components/pixi-frame/index.css +0 -4
  164. package/components/recorder-button/index.css +0 -69
  165. package/components/sender/index.css +0 -22
  166. package/components/speech-button/index.css +0 -10
  167. package/components/tables-v1/index.css +0 -7
  168. package/components/tables-v1-checkbox/index.css +0 -8
  169. package/components/thinking/index.css +0 -125
  170. package/components/typing-markdown/index.css +0 -31
  171. package/components/vditor/index.css +0 -12
  172. package/components/xgplayer/index.css +0 -1
  173. package/icons/_plugin-vue_export-helper.mjs +0 -9
@@ -1,6 +1,12 @@
1
1
  import type { PropType } from 'vue';
2
2
  import { TickerStatus } from '@vunk/shared/enum';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare var __VLS_1: {
4
+ status: TickerStatus;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
10
  /**
5
11
  * 语音资源
6
12
  */
@@ -12,29 +18,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
12
18
  type: PropType<TickerStatus>;
13
19
  default: TickerStatus;
14
20
  };
15
- }>, {
16
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
- /**
18
- * 语音资源
19
- */
20
- source: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- status: {
25
- type: PropType<TickerStatus>;
26
- default: TickerStatus;
27
- };
28
- }>> & Readonly<{
29
- onError?: ((...args: any[]) => any) | undefined;
30
- onLoad?: ((...args: any[]) => any) | undefined;
31
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
32
- }> & {}>;
33
- emit: ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void);
34
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
- 'update:status': null;
36
- load: null;
37
- error: null;
21
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ error: (...args: any[]) => void;
23
+ load: (...args: any[]) => void;
24
+ "update:status": (...args: any[]) => void;
38
25
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
26
  /**
40
27
  * 语音资源
@@ -55,4 +42,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
55
42
  source: string;
56
43
  status: TickerStatus;
57
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
58
47
  export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -1,7 +1,9 @@
1
1
  import type { Paragraph } from './types';
2
2
  import { TickerStatus } from '@vunk/shared/enum';
3
3
  import { ParagraphStatus } from './const';
4
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
7
  render: {
6
8
  type: import("vue").PropType<(text: string) => string>;
7
9
  default: typeof import("./const").defaultRender;
@@ -174,8 +176,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
174
176
  }>, {
175
177
  data: Paragraph[];
176
178
  source: string;
177
- render: (text: string) => string;
178
179
  disabled: boolean;
180
+ render: (text: string) => string;
179
181
  processing: (paragraph: Paragraph) => void;
180
182
  delay: number;
181
183
  status: TickerStatus;
@@ -184,21 +186,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
184
186
  keepRead: boolean;
185
187
  textToSpeech: import("./types").TextToSpeech;
186
188
  }, {}, {
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
- }>, {
201
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
189
+ ParagraphView: {
190
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
202
191
  enable: {
203
192
  type: BooleanConstructor;
204
193
  default: boolean;
@@ -213,18 +202,43 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
213
202
  };
214
203
  }>> & Readonly<{
215
204
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
216
- }> & {}>;
217
- emit: (event: "update:status", ...args: any[]) => void;
218
- theDef: import("vue").ShallowRef<import("@vunk/shared/promise").Deferred<any> | undefined, import("@vunk/shared/promise").Deferred<any> | undefined>;
219
- processingDef: {
220
- _ref: import("vue").ShallowRef<unknown, unknown>;
221
- readonly value: unknown;
222
- promise: Promise<unknown>;
223
- resolve: import("@vunk/core").AnyFunc;
224
- reject: (reason?: any) => void;
225
- };
226
- init: () => Promise<void>;
227
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
205
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
206
+ "update:status": (...args: any[]) => void;
207
+ }, import("vue").PublicProps, {
208
+ processing: import("@vunk/shared").AnyFunc;
209
+ status: ParagraphStatus;
210
+ enable: boolean;
211
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
212
+ P: {};
213
+ B: {};
214
+ D: {};
215
+ C: {};
216
+ M: {};
217
+ Defaults: {};
218
+ }, Readonly<import("vue").ExtractPropTypes<{
219
+ enable: {
220
+ type: BooleanConstructor;
221
+ default: boolean;
222
+ };
223
+ status: {
224
+ type: import("vue").PropType<ParagraphStatus>;
225
+ default: ParagraphStatus;
226
+ };
227
+ processing: {
228
+ type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
229
+ default: import("@vunk/shared").AnyFunc;
230
+ };
231
+ }>> & Readonly<{
232
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
233
+ }>, {}, {}, {}, {}, {
234
+ processing: import("@vunk/shared").AnyFunc;
235
+ status: ParagraphStatus;
236
+ enable: boolean;
237
+ }>;
238
+ __isFragment?: never;
239
+ __isTeleport?: never;
240
+ __isSuspense?: never;
241
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
228
242
  enable: {
229
243
  type: BooleanConstructor;
230
244
  default: boolean;
@@ -239,22 +253,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
239
253
  };
240
254
  }>> & Readonly<{
241
255
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
242
- }>, {
256
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
257
+ "update:status": (...args: any[]) => void;
258
+ }, string, {
243
259
  processing: import("@vunk/shared").AnyFunc;
244
260
  status: ParagraphStatus;
245
261
  enable: boolean;
246
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
247
- HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
248
- source: {
249
- type: StringConstructor;
250
- default: string;
262
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
263
+ $slots: {
264
+ default?: (props: {
265
+ deferred: import("@vunk/shared/promise").Deferred<any>;
266
+ }) => any;
251
267
  };
252
- status: {
253
- type: import("vue").PropType<TickerStatus>;
254
- default: TickerStatus;
255
- };
256
- }>, {
257
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
268
+ });
269
+ HowlerSpeechView: {
270
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
258
271
  source: {
259
272
  type: StringConstructor;
260
273
  default: string;
@@ -267,13 +280,41 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
267
280
  onError?: ((...args: any[]) => any) | undefined;
268
281
  onLoad?: ((...args: any[]) => any) | undefined;
269
282
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
270
- }> & {}>;
271
- emit: ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void);
272
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
273
- 'update:status': null;
274
- load: null;
275
- error: null;
276
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
283
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
284
+ error: (...args: any[]) => void;
285
+ load: (...args: any[]) => void;
286
+ "update:status": (...args: any[]) => void;
287
+ }, import("vue").PublicProps, {
288
+ source: string;
289
+ status: TickerStatus;
290
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
291
+ P: {};
292
+ B: {};
293
+ D: {};
294
+ C: {};
295
+ M: {};
296
+ Defaults: {};
297
+ }, Readonly<import("vue").ExtractPropTypes<{
298
+ source: {
299
+ type: StringConstructor;
300
+ default: string;
301
+ };
302
+ status: {
303
+ type: import("vue").PropType<TickerStatus>;
304
+ default: TickerStatus;
305
+ };
306
+ }>> & Readonly<{
307
+ onError?: ((...args: any[]) => any) | undefined;
308
+ onLoad?: ((...args: any[]) => any) | undefined;
309
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
310
+ }>, {}, {}, {}, {}, {
311
+ source: string;
312
+ status: TickerStatus;
313
+ }>;
314
+ __isFragment?: never;
315
+ __isTeleport?: never;
316
+ __isSuspense?: never;
317
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
277
318
  source: {
278
319
  type: StringConstructor;
279
320
  default: string;
@@ -286,10 +327,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
286
327
  onError?: ((...args: any[]) => any) | undefined;
287
328
  onLoad?: ((...args: any[]) => any) | undefined;
288
329
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
289
- }>, {
330
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
331
+ error: (...args: any[]) => void;
332
+ load: (...args: any[]) => void;
333
+ "update:status": (...args: any[]) => void;
334
+ }, string, {
290
335
  source: string;
291
336
  status: TickerStatus;
292
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
337
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
338
+ $slots: {
339
+ default?: (props: {
340
+ status: TickerStatus;
341
+ }) => any;
342
+ };
343
+ });
293
344
  VkTypingMarkdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
294
345
  source: {
295
346
  type: StringConstructor;
@@ -365,4 +416,3 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
365
416
  finished: boolean;
366
417
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
367
418
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
368
- export default _default;
@@ -2,7 +2,13 @@ import type { AnyFunc } from '@vunk/shared';
2
2
  import type { PropType } from 'vue';
3
3
  import { Deferred } from '@vunk/shared/promise';
4
4
  import { ParagraphStatus } from './const';
5
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ declare var __VLS_1: {
6
+ deferred: Deferred<any>;
7
+ };
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
12
  enable: {
7
13
  type: BooleanConstructor;
8
14
  default: boolean;
@@ -15,34 +21,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
15
21
  type: PropType<AnyFunc>;
16
22
  default: AnyFunc;
17
23
  };
18
- }>, {
19
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
20
- enable: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- status: {
25
- type: PropType<ParagraphStatus>;
26
- default: ParagraphStatus;
27
- };
28
- processing: {
29
- type: PropType<AnyFunc>;
30
- default: AnyFunc;
31
- };
32
- }>> & Readonly<{
33
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
34
- }> & {}>;
35
- emit: (event: "update:status", ...args: any[]) => void;
36
- theDef: import("vue").ShallowRef<Deferred<any> | undefined, Deferred<any> | undefined>;
37
- processingDef: {
38
- _ref: import("vue").ShallowRef<unknown, unknown>;
39
- readonly value: unknown;
40
- promise: Promise<unknown>;
41
- resolve: import("@vunk/core").AnyFunc;
42
- reject: (reason?: any) => void;
43
- };
44
- init: () => Promise<void>;
45
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:status"[], "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:status": (...args: any[]) => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
27
  enable: {
47
28
  type: BooleanConstructor;
48
29
  default: boolean;
@@ -62,4 +43,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
62
43
  status: ParagraphStatus;
63
44
  enable: boolean;
64
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
+ declare const _default: typeof __VLS_export;
65
48
  export default _default;
49
+ type __VLS_WithSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -1,60 +1,3 @@
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/es/utils").EpPropMergeType<(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/es/utils").EpPropMergeType<(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?: never;
39
- __isTeleport?: never;
40
- __isSuspense?: never;
41
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
42
- readonly size: {
43
- 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>>;
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>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
60
3
  export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@vunk/plus/components/bubble-templates"),B=require("element-plus"),w=require("@element-plus/icons-vue"),S=require("@vueuse/core"),C=require("@vunk/plus/components/scrollbar"),T=require("@vunk/plus/element/bubble"),$=require("../_plugin-vue_export-helper-BHFhmbuH.js"),x=require("@vunk/shared/function"),R=require("@vunk/plus/components/agent-chat-provider"),_={},V={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",width:"704",height:"704",viewBox:"0 0 704 704"};function P(s,l){return e.openBlock(),e.createElementBlock("svg",V,l[0]||(l[0]=[e.createStaticVNode('<defs><filter id="master_svg0_62_10054" filterUnits="objectBoundingBox" color-interpolation-filters="sRGB" x="-0.030120481927710843" y="-0.030120481927710843" width="1.0602409638554218" height="1.0602409638554218"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="5" result="effect1_foregroundBlur"></feGaussianBlur></filter><linearGradient id="master_svg1_62_10082" x1="0.5" y1="-0.13192443549633026" x2="0.42319029569625854" y2="1.368432641029358"><stop offset="9.145302325487137%" stop-color="currentColor" stop-opacity="1"></stop><stop offset="13.636428117752075%" stop-color="currentColor" stop-opacity="0.07539999485015869"></stop><stop offset="16.968481242656708%" stop-color="currentColor" stop-opacity="0"></stop></linearGradient></defs><g transform="matrix(0,1,-1,0,704,-664)" filter="url(#master_svg0_62_10054)"><path d="M1016,684C1199.359,684,1348,535.359,1348,352C1348,168.641,1199.359,20,1016,20C832.641,20,684,168.641,684,352C684,535.359,832.641,684,1016,684ZM1016,32C1192.731,32,1336,175.269,1336,352C1336,528.731,1192.731,672,1016,672C839.269,672,696,528.731,696,352C696,175.269,839.269,32,1016,32Z" fill-rule="evenodd" fill="url(#master_svg1_62_10082)" fill-opacity="1"></path></g>',2)]))}const z=$._export_sfc(_,[["render",P]]),N={class:"vk-bubble-list-wrapper"},q=e.defineComponent({__name:"index",props:{list:{type:Array,default:()=>[]},autoScroll:{type:Boolean,default:!0},autoScrollThreshold:{type:Number,default:200},maxHeight:{type:String,default:""},alwaysShowScrollbar:{type:Boolean,default:!1},backButtonThreshold:{type:Number,default:80},showBackButton:{type:Boolean,default:!0},backButtonPosition:{type:Object,default:()=>({bottom:"20px",left:"calc(50% - 19px)"})},btnLoading:{type:Boolean,default:!0},btnColor:{type:String,default:"#409EFF"},btnIconSize:{type:Number,default:24},scrollbarAppendTo:{type:null,default:void 0}},emits:{complete:null},setup(s,{expose:l}){const a=s,i=e.ref();function r(){document.documentElement.style.setProperty("--el-bubble-list-max-height",a.maxHeight||"100%"),document.documentElement.style.setProperty("--el-bubble-list-btn-size",`${a.btnIconSize}px`)}e.onMounted(()=>{r()}),e.watch(()=>[a.maxHeight,a.btnIconSize],()=>{r()});const u=e.ref(),v=e.computed(()=>i.value?.wrapRef?.firstElementChild),m=e.computed(()=>a.showBackButton&&u.value!==void 0&&u.value>a.backButtonThreshold);e.onMounted(()=>{setTimeout(p)});function p(){const o=i.value?.$el,n=i.value?.wrapRef;if(!(!o||!n))return u.value=n.scrollHeight-n.scrollTop-n.clientHeight,u.value}function b(...o){i.value?.scrollToBottom(...o)}function g(...o){i.value?.scrollToTop(...o)}a.autoScroll&&S.useResizeObserver(v,()=>{const o=p();o!==void 0&&o>a.autoScrollThreshold||b()});function y(o){const n=i.value?.wrapRef;if(!n)return;const d=n.querySelectorAll(".el-bubble");if(o>=d.length)return;const t=d[o],f=n.getBoundingClientRect(),k=t.getBoundingClientRect().top-f.top+n.scrollTop;n.scrollTo({top:k,behavior:"smooth"})}return l({scrollToTop:g,scrollToBottom:b,scrollToBubble:y}),(o,n)=>{const d=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(e.unref(C.VkScrollbar),{ref_key:"scrollbarRef",ref:i,class:"vk-bubble-list","append-to":s.scrollbarAppendTo,always:s.alwaysShowScrollbar,"hide-after":800,onScroll:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(t,f)=>(e.openBlock(),e.createBlock(e.unref(T.Bubble),{key:t.key||f,content:t.content,placement:t.placement,loading:t.loading,shape:t.shape,variant:t.variant,"is-markdown":t.isMarkdown,"is-fog":t.isFog,typing:t.typing,"max-width":t.maxWidth,avatar:t.avatar,"avatar-size":t.avatarSize,"avatar-gap":t.avatarGap,"avatar-shape":t.avatarShape,"avatar-src-set":t.avatarSrcSet,"avatar-alt":t.avatarAlt,"avatar-fit":t.avatarFit,"no-style":t.noStyle,class:e.normalizeClass({[`is-${t.role}`]:!0})},e.createSlots({_:2},[o.$slots.avatar?{name:"avatar",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"avatar",{item:t})]),key:"0"}:void 0,o.$slots.header?{name:"header",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{item:t})]),key:"1"}:void 0,o.$slots.content?{name:"content",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"content",{item:t})]),key:"2"}:void 0,o.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer",{item:t})]),key:"3"}:void 0,o.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"loading",{item:t})]),key:"4"}:void 0]),1032,["content","placement","loading","shape","variant","is-markdown","is-fog","typing","max-width","avatar","avatar-size","avatar-gap","avatar-shape","avatar-src-set","avatar-alt","avatar-fit","no-style","class"]))),128))]),_:3},8,["append-to","always"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["vk-bubble-list-default-back-button",{"vk-bubble-list-back-to-bottom-solt":o.$slots.backToBottom}]),style:e.normalizeStyle({bottom:s.backButtonPosition.bottom,left:s.backButtonPosition.left}),onClick:b},[e.renderSlot(o.$slots,"backToBottom",{},()=>[e.createVNode(d,{class:"vk-bubble-list-back-to-bottom-icon",style:e.normalizeStyle({color:a.btnColor})},{default:e.withCtx(()=>[e.createVNode(e.unref(w.ArrowDownBold)),a.btnLoading?(e.openBlock(),e.createBlock(z,{key:0,class:"back-to-bottom-loading-svg-bg"})):e.createCommentVNode("",!0)]),_:1},8,["style"])])],6),[[e.vShow,m.value]])])}}}),A={items:{type:Array,default:()=>[]},elRef:{type:Function,default:x.noop},scrollbarAppendTo:null,autoScrollThreshold:{type:Number,default:200}},c=e.defineComponent({name:"VkBubbleList",inheritAttrs:!1,__name:"index",props:A,setup(s){return(l,a)=>(e.openBlock(),e.createBlock(e.unref(h.VkBubbleRenderTemplates),null,{placeholder:e.withCtx(()=>[e.createVNode(e.unref(h.VkBubbleTemplates))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"renderer"),e.createVNode(e.unref(B.ElAutoResizer),null,{default:e.withCtx(({height:i})=>[e.createVNode(q,e.mergeProps({ref:l.elRef,"btn-icon-size":18,"max-height":`${i}px`,"scrollbar-append-to":l.scrollbarAppendTo,"auto-scroll-threshold":l.autoScrollThreshold,style:{"--el-bubble-list-max-height":`${i}px`},list:l.items},l.$attrs),e.createSlots({content:e.withCtx(({item:r})=>[e.createVNode(e.unref(h.VkBubbleRenderer),{source:[r]},null,8,["source"])]),_:2},[l.$slots.avatar?{name:"avatar",fn:e.withCtx(r=>[e.renderSlot(l.$slots,"avatar",e.normalizeProps(e.guardReactiveProps(r)))]),key:"0"}:void 0,l.$slots.header?{name:"header",fn:e.withCtx(r=>[e.renderSlot(l.$slots,"header",e.normalizeProps(e.guardReactiveProps(r)))]),key:"1"}:void 0,l.$slots.loading?{name:"loading",fn:e.withCtx(r=>[e.renderSlot(l.$slots,"loading",e.normalizeProps(e.guardReactiveProps(r)))]),key:"2"}:void 0,l.$slots.footer?{name:"footer",fn:e.withCtx(r=>[e.renderSlot(l.$slots,"footer",e.normalizeProps(e.guardReactiveProps(r)))]),key:"3"}:void 0]),1040,["max-height","scrollbar-append-to","auto-scroll-threshold","style","list"])]),_:3})]),_:3}))}}),E=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));c.install=s=>{s.component(c.name||"VkBubbleList",c)};Object.defineProperty(exports,"Role",{enumerable:!0,get:()=>R.Role});exports.VkBubbleList=c;exports.__VkBubbleList=E;exports.default=c;