@polyv/chat-ui 2.7.0-rc-20260312.1 → 2.9.0-rc-20260625.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 (7) hide show
  1. package/index.d.ts +275 -134
  2. package/index.es.js +41775 -33150
  3. package/index.umd.js +675 -226
  4. package/package.json +1 -1
  5. package/special.d.ts +210 -85
  6. package/special.es.js +38691 -30059
  7. package/special.umd.js +674 -225
package/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { AskMsgType } from '@polyv/chat';
2
2
  import { ChatMessageUser } from '@polyv/chat';
3
3
  import { ChatMsgRewardType } from '@polyv/chat';
4
4
  import { ChatMsgSource } from '@polyv/chat';
5
+ import { ChatMsgSpeakType } from '@polyv/chat';
5
6
  import { ChatMsgType } from '@polyv/chat';
6
7
  import { ComponentCustomProperties } from 'vue';
7
8
  import { ComponentOptions } from 'vue';
@@ -22,6 +23,7 @@ import { SendEmotionImageMsgOptions } from '@polyv/chat';
22
23
  import { SendImageMsgOptions } from '@polyv/chat';
23
24
  import { SendSpeakMsgOptions } from '@polyv/chat';
24
25
  import { ShallowUnwrapRef } from 'vue';
26
+ import { SkinColorMode } from '@polyv/vue-components';
25
27
  import { SystemMsgType } from '@polyv/chat';
26
28
  import { ValidatorFunction } from 'vue-types/dist/types';
27
29
  import { Vue3Instance } from 'vue/types/v3-component-public-instance';
@@ -37,7 +39,16 @@ declare const __VLS_component_2: DefineComponent< {
37
39
  * 是否显示发送图片图标
38
40
  * @default false
39
41
  */
40
- showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
42
+ showSendImage: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
43
+ default: boolean;
44
+ } & {
45
+ default: boolean;
46
+ };
47
+ /**
48
+ * 是否显示提问入口
49
+ * @default false
50
+ */
51
+ showAskEntry: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
41
52
  default: boolean;
42
53
  } & {
43
54
  default: boolean;
@@ -47,35 +58,45 @@ default: boolean;
47
58
  * 是否显示发送图片图标
48
59
  * @default false
49
60
  */
50
- showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
61
+ showSendImage: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
62
+ default: boolean;
63
+ } & {
64
+ default: boolean;
65
+ };
66
+ /**
67
+ * 是否显示提问入口
68
+ * @default false
69
+ */
70
+ showAskEntry: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
51
71
  default: boolean;
52
72
  } & {
53
73
  default: boolean;
54
74
  };
55
75
  }>>, {
56
76
  showSendImage: boolean;
77
+ showAskEntry: boolean;
57
78
  }>;
58
79
 
59
80
  declare const __VLS_component_3: DefineComponent< {
60
- defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
81
+ defaultHeight: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
61
82
  default: number;
62
83
  } & {
63
84
  default: number;
64
85
  };
65
86
  /** 是否显示更多 */
66
- showMore: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
87
+ showMore: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
67
88
  default: boolean;
68
89
  } & {
69
90
  default: boolean;
70
91
  };
71
92
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
72
- defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
93
+ defaultHeight: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
73
94
  default: number;
74
95
  } & {
75
96
  default: number;
76
97
  };
77
98
  /** 是否显示更多 */
78
- showMore: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
99
+ showMore: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
79
100
  default: boolean;
80
101
  } & {
81
102
  default: boolean;
@@ -85,6 +106,73 @@ defaultHeight: number;
85
106
  showMore: boolean;
86
107
  }>;
87
108
 
109
+ declare const __VLS_component_4: DefineComponent< {
110
+ /**
111
+ * 图标
112
+ */
113
+ icon: VueTypeValidableDef_2<IconComponentOption, ValidatorFunction<IconComponentOption>>;
114
+ /**
115
+ * 文案
116
+ */
117
+ label: VueTypeValidableDef_2<string, ValidatorFunction<string>> & {
118
+ default: string;
119
+ };
120
+ /**
121
+ * 显示开关
122
+ * @default false
123
+ */
124
+ showSwitch: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
125
+ default: boolean;
126
+ } & {
127
+ default: boolean;
128
+ };
129
+ /**
130
+ * 开关值
131
+ * @default false
132
+ */
133
+ switchValue: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
134
+ default: boolean;
135
+ } & {
136
+ default: boolean;
137
+ };
138
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
139
+ click: (arg?: void | undefined) => void;
140
+ "switch-change": (arg: boolean) => void;
141
+ }, string, Readonly<ExtractPropTypes< {
142
+ /**
143
+ * 图标
144
+ */
145
+ icon: VueTypeValidableDef_2<IconComponentOption, ValidatorFunction<IconComponentOption>>;
146
+ /**
147
+ * 文案
148
+ */
149
+ label: VueTypeValidableDef_2<string, ValidatorFunction<string>> & {
150
+ default: string;
151
+ };
152
+ /**
153
+ * 显示开关
154
+ * @default false
155
+ */
156
+ showSwitch: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
157
+ default: boolean;
158
+ } & {
159
+ default: boolean;
160
+ };
161
+ /**
162
+ * 开关值
163
+ * @default false
164
+ */
165
+ switchValue: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
166
+ default: boolean;
167
+ } & {
168
+ default: boolean;
169
+ };
170
+ }>>, {
171
+ label: string;
172
+ showSwitch: boolean;
173
+ switchValue: boolean;
174
+ }>;
175
+
88
176
  declare function __VLS_template(): {
89
177
  attrs: Partial<{}>;
90
178
  slots: {
@@ -110,96 +198,105 @@ declare function __VLS_template_3(): {
110
198
  slots: {
111
199
  'more-panel'?(_: {}): any;
112
200
  'icon-left-suffix'?(_: {}): any;
113
- 'icon-right-suffix'?(_: {}): any;
114
201
  'bottom-suffix'?(_: {}): any;
115
202
  };
116
203
  refs: {
117
204
  msgInputBaseRef: (Vue3Instance< {}, Readonly<ExtractPropTypes< {
118
- resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
119
- defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
205
+ resizeStorageKey: VueTypeValidableDef_2<string, ValidatorFunction<string>>;
206
+ defaultHeight: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
120
207
  default: number;
121
208
  } & {
122
209
  default: number;
123
210
  };
124
- showBottom: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
211
+ showBottom: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
125
212
  default: boolean;
126
213
  } & {
127
214
  default: boolean;
128
215
  };
129
- showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
216
+ showMore: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
130
217
  default: boolean;
131
218
  } & {
132
219
  default: boolean;
133
220
  };
134
- placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
221
+ placeholder: VueTypeValidableDef_2<string, ValidatorFunction<string>> & {
135
222
  default: string;
136
223
  };
137
- disabledInput: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
224
+ disabledInput: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
138
225
  default: boolean;
139
226
  } & {
140
227
  default: boolean;
141
228
  };
142
- disabledSubmitBtn: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
229
+ disabledSubmitBtn: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
143
230
  default: boolean;
144
231
  } & {
145
232
  default: boolean;
146
233
  };
147
- maxInputTextLength: VueTypeValidableDef<number, ValidatorFunction<number>> & {
234
+ maxInputTextLength: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
148
235
  default: number;
149
236
  } & {
150
237
  default: number;
151
238
  };
152
- showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
239
+ showFaceEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
153
240
  default: boolean;
154
241
  } & {
155
242
  default: boolean;
156
243
  };
157
- showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
244
+ showImageEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
245
+ default: boolean;
246
+ } & {
247
+ default: boolean;
248
+ };
249
+ showSendImage: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
158
250
  default: boolean;
159
251
  } & {
160
252
  default: boolean;
161
253
  };
162
254
  }>>, Readonly<ExtractPropTypes< {
163
- resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
164
- defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
255
+ resizeStorageKey: VueTypeValidableDef_2<string, ValidatorFunction<string>>;
256
+ defaultHeight: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
165
257
  default: number;
166
258
  } & {
167
259
  default: number;
168
260
  };
169
- showBottom: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
261
+ showBottom: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
170
262
  default: boolean;
171
263
  } & {
172
264
  default: boolean;
173
265
  };
174
- showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
266
+ showMore: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
175
267
  default: boolean;
176
268
  } & {
177
269
  default: boolean;
178
270
  };
179
- placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
271
+ placeholder: VueTypeValidableDef_2<string, ValidatorFunction<string>> & {
180
272
  default: string;
181
273
  };
182
- disabledInput: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
274
+ disabledInput: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
183
275
  default: boolean;
184
276
  } & {
185
277
  default: boolean;
186
278
  };
187
- disabledSubmitBtn: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
279
+ disabledSubmitBtn: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
188
280
  default: boolean;
189
281
  } & {
190
282
  default: boolean;
191
283
  };
192
- maxInputTextLength: VueTypeValidableDef<number, ValidatorFunction<number>> & {
284
+ maxInputTextLength: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
193
285
  default: number;
194
286
  } & {
195
287
  default: number;
196
288
  };
197
- showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
289
+ showFaceEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
290
+ default: boolean;
291
+ } & {
292
+ default: boolean;
293
+ };
294
+ showImageEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
198
295
  default: boolean;
199
296
  } & {
200
297
  default: boolean;
201
298
  };
202
- showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
299
+ showSendImage: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
203
300
  default: boolean;
204
301
  } & {
205
302
  default: boolean;
@@ -220,50 +317,56 @@ declare function __VLS_template_3(): {
220
317
  placeholder: string;
221
318
  disabledSubmitBtn: boolean;
222
319
  maxInputTextLength: number;
320
+ showSendImage: boolean;
223
321
  defaultHeight: number;
224
322
  showBottom: boolean;
225
- showSendImage: boolean;
323
+ showMore: boolean;
226
324
  }, true, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<ExtractPropTypes< {
227
- resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
228
- defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
325
+ resizeStorageKey: VueTypeValidableDef_2<string, ValidatorFunction<string>>;
326
+ defaultHeight: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
229
327
  default: number;
230
328
  } & {
231
329
  default: number;
232
330
  };
233
- showBottom: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
331
+ showBottom: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
234
332
  default: boolean;
235
333
  } & {
236
334
  default: boolean;
237
335
  };
238
- showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
336
+ showMore: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
239
337
  default: boolean;
240
338
  } & {
241
339
  default: boolean;
242
340
  };
243
- placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
341
+ placeholder: VueTypeValidableDef_2<string, ValidatorFunction<string>> & {
244
342
  default: string;
245
343
  };
246
- disabledInput: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
344
+ disabledInput: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
247
345
  default: boolean;
248
346
  } & {
249
347
  default: boolean;
250
348
  };
251
- disabledSubmitBtn: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
349
+ disabledSubmitBtn: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
252
350
  default: boolean;
253
351
  } & {
254
352
  default: boolean;
255
353
  };
256
- maxInputTextLength: VueTypeValidableDef<number, ValidatorFunction<number>> & {
354
+ maxInputTextLength: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
257
355
  default: number;
258
356
  } & {
259
357
  default: number;
260
358
  };
261
- showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
359
+ showFaceEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
262
360
  default: boolean;
263
361
  } & {
264
362
  default: boolean;
265
363
  };
266
- showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
364
+ showImageEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
365
+ default: boolean;
366
+ } & {
367
+ default: boolean;
368
+ };
369
+ showSendImage: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
267
370
  default: boolean;
268
371
  } & {
269
372
  default: boolean;
@@ -272,71 +375,84 @@ declare function __VLS_template_3(): {
272
375
  focusInput: () => void;
273
376
  setInputContent: (content: string) => void;
274
377
  }> & ExtractComputedReturns< {}> & ComponentCustomProperties & Readonly<ExtractPropTypes< {
275
- resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
276
- defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
378
+ resizeStorageKey: VueTypeValidableDef_2<string, ValidatorFunction<string>>;
379
+ defaultHeight: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
277
380
  default: number;
278
381
  } & {
279
382
  default: number;
280
383
  };
281
- showBottom: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
384
+ showBottom: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
282
385
  default: boolean;
283
386
  } & {
284
387
  default: boolean;
285
388
  };
286
- showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
389
+ showMore: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
287
390
  default: boolean;
288
391
  } & {
289
392
  default: boolean;
290
393
  };
291
- placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
394
+ placeholder: VueTypeValidableDef_2<string, ValidatorFunction<string>> & {
292
395
  default: string;
293
396
  };
294
- disabledInput: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
397
+ disabledInput: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
295
398
  default: boolean;
296
399
  } & {
297
400
  default: boolean;
298
401
  };
299
- disabledSubmitBtn: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
402
+ disabledSubmitBtn: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
300
403
  default: boolean;
301
404
  } & {
302
405
  default: boolean;
303
406
  };
304
- maxInputTextLength: VueTypeValidableDef<number, ValidatorFunction<number>> & {
407
+ maxInputTextLength: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
305
408
  default: number;
306
409
  } & {
307
410
  default: number;
308
411
  };
309
- showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
412
+ showFaceEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
310
413
  default: boolean;
311
414
  } & {
312
415
  default: boolean;
313
416
  };
314
- showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
417
+ showImageEmotion: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
418
+ default: boolean;
419
+ } & {
420
+ default: boolean;
421
+ };
422
+ showSendImage: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
315
423
  default: boolean;
316
424
  } & {
317
425
  default: boolean;
318
426
  };
319
427
  }>> & {
320
428
  $scopedSlots: {
429
+ 'more-panel-content'?(_: {}): any;
321
430
  'panel-suffix'?(_: {}): any;
322
- 'icon-left'?(_: {}): any;
323
- 'icon-left-suffix'?(_: {}): any;
324
- 'icon-right-suffix'?(_: {}): any;
325
431
  input?(_: {}): any;
326
- 'bottom-suffix'?(_: {}): any;
432
+ 'icon-left-suffix'?(_: {}): any;
327
433
  };
328
434
  }) | null;
329
- morePanelRef: HTMLDivElement;
330
435
  };
331
436
  rootEl: HTMLDivElement;
332
437
  };
333
438
 
439
+ declare function __VLS_template_4(): {
440
+ attrs: Partial<{}>;
441
+ slots: {
442
+ icon?(_: {}): any;
443
+ };
444
+ refs: {};
445
+ rootEl: HTMLDivElement;
446
+ };
447
+
334
448
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
335
449
 
336
450
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
337
451
 
338
452
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
339
453
 
454
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
455
+
340
456
  declare type __VLS_WithTemplateSlots<T, S> = T & {
341
457
  new (): {
342
458
  $scopedSlots: S;
@@ -355,6 +471,12 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
355
471
  };
356
472
  };
357
473
 
474
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
475
+ new (): {
476
+ $scopedSlots: S;
477
+ };
478
+ };
479
+
358
480
  /**
359
481
  * 动画来源
360
482
  */
@@ -364,6 +486,16 @@ declare type AnimationSource = 'donate-animation' | 'chat-like' | 'special-effec
364
486
  * 提问配置
365
487
  */
366
488
  declare interface AskConfig {
489
+ /**
490
+ * 提问是否可用
491
+ * @default false
492
+ */
493
+ askEnabled?: boolean;
494
+ /**
495
+ * 提问入口地址
496
+ * @description 内置:1、2、3,自定义:传图片地址
497
+ */
498
+ askEntryUrl?: string;
367
499
  /**
368
500
  * 提问欢迎语
369
501
  * @default ''
@@ -378,8 +510,33 @@ declare interface AskConfig {
378
510
  * 提问新消息回调
379
511
  */
380
512
  onNewAskMessage?: (askMsg: AskMsgType) => void;
513
+ /**
514
+ * 获取当前是否显示了提问
515
+ * @description 如果不传,收到消息时提问入口不会显示新消息提醒
516
+ */
517
+ getAskVisibleStatus?: 'unknown' | (() => boolean);
518
+ /**
519
+ * 触发显示提问
520
+ */
521
+ toShowAsk?: () => unknown;
381
522
  }
382
523
 
524
+ export declare const AskEntryIcon: DefineComponent< {
525
+ size: VueTypeValidableDef<number, ValidatorFunction<number>> & {
526
+ default: number;
527
+ } & {
528
+ default: number;
529
+ };
530
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
531
+ size: VueTypeValidableDef<number, ValidatorFunction<number>> & {
532
+ default: number;
533
+ } & {
534
+ default: number;
535
+ };
536
+ }>>, {
537
+ size: number;
538
+ }>;
539
+
383
540
  export declare const AskManager: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
384
541
  "open-ask": (arg?: void | undefined) => void;
385
542
  }, string, Readonly<ExtractPropTypes< {}>>, {}>;
@@ -418,6 +575,10 @@ export declare interface BaseConfig {
418
575
  hideNickname?: boolean;
419
576
  }
420
577
 
578
+ export declare const ChatCompleteMsgPopup: DefineComponent< {}, {
579
+ openCompleteMsgPopup: typeof openCompleteMsgPopup;
580
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
581
+
421
582
  export declare interface ChatGlobalInject {
422
583
  /**
423
584
  * 获取聊天室实例对象
@@ -471,6 +632,10 @@ export declare interface ChatGlobalInject {
471
632
  * 获取提问配置
472
633
  */
473
634
  getAskConfig?: () => AskConfig;
635
+ /**
636
+ * 获取样式配置
637
+ */
638
+ getStyleConfig?: () => StyleConfig;
474
639
  /**
475
640
  * 拦截处理,返回 true 表示终止后续的业务逻辑执行
476
641
  */
@@ -481,117 +646,63 @@ export declare const ChatLike: DefineComponent< {}, {}, {}, {}, {}, Component
481
646
 
482
647
  export declare const ChatMessageInputControl: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
483
648
 
484
- export declare const ChatMessageInputPopup: DefineComponent< {}, {
485
- showInputPopup: typeof showInputPopup_2;
486
- closeInputPopup: typeof closeInputPopup_2;
487
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
488
- "visible-change": (arg: boolean) => void;
489
- }, string, Readonly<ExtractPropTypes< {}>>, {}>;
490
-
491
- export declare const ChatMessageInputSecionMoreItem: DefineComponent< {
492
- /**
493
- * 图标
494
- */
495
- icon: VueTypeValidableDef<IconComponentOption, ValidatorFunction<IconComponentOption>>;
496
- /**
497
- * 文案
498
- */
499
- label: VueTypeValidableDef<string, ValidatorFunction<string>> & {
500
- default: string;
501
- };
502
- /**
503
- * 显示开关
504
- * @default false
505
- */
506
- showSwitch: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
507
- default: boolean;
508
- } & {
509
- default: boolean;
510
- };
511
- /**
512
- * 开关值
513
- * @default false
514
- */
515
- switchValue: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
516
- default: boolean;
517
- } & {
518
- default: boolean;
519
- };
649
+ export declare const ChatMessageInputPopup: DefineComponent< {
520
650
  /**
521
- * 显示箭头
651
+ * 是否显示提问入口
522
652
  * @default false
523
653
  */
524
- showArrow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
654
+ showAskEntry: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
525
655
  default: boolean;
526
656
  } & {
527
657
  default: boolean;
528
658
  };
529
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
530
- click: (arg?: void | undefined) => void;
531
- "switch-change": (arg: boolean) => void;
659
+ }, {
660
+ showInputPopup: typeof showInputPopup_2;
661
+ closeInputPopup: typeof closeInputPopup_2;
662
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
663
+ "visible-change": (arg: boolean) => void;
532
664
  }, string, Readonly<ExtractPropTypes< {
533
665
  /**
534
- * 图标
535
- */
536
- icon: VueTypeValidableDef<IconComponentOption, ValidatorFunction<IconComponentOption>>;
537
- /**
538
- * 文案
539
- */
540
- label: VueTypeValidableDef<string, ValidatorFunction<string>> & {
541
- default: string;
542
- };
543
- /**
544
- * 显示开关
666
+ * 是否显示提问入口
545
667
  * @default false
546
668
  */
547
- showSwitch: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
548
- default: boolean;
549
- } & {
550
- default: boolean;
551
- };
552
- /**
553
- * 开关值
554
- * @default false
555
- */
556
- switchValue: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
557
- default: boolean;
558
- } & {
559
- default: boolean;
560
- };
561
- /**
562
- * 显示箭头
563
- * @default false
564
- */
565
- showArrow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
669
+ showAskEntry: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
566
670
  default: boolean;
567
671
  } & {
568
672
  default: boolean;
569
673
  };
570
674
  }>>, {
571
- label: string;
572
- showSwitch: boolean;
573
- switchValue: boolean;
574
- showArrow: boolean;
675
+ showAskEntry: boolean;
575
676
  }>;
576
677
 
678
+ export declare const ChatMessageInputSecionMoreItem: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
679
+
577
680
  export declare const ChatMessageInputSection: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
578
681
 
579
682
  export declare const ChatMessageList: DefineComponent< {}, {
580
683
  setIsOnlySpecialMsg: (value: boolean) => void;
581
684
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
582
685
 
686
+ export declare type ChatUIStyleConfigByMode<T = string> = ChatUIStyleConfigByModeRecord<T> | 'default';
687
+
688
+ export declare type ChatUIStyleConfigByModeKeys = {
689
+ [Key in keyof StyleConfig]-?: [NarrowChatUIStyleConfigByMode<NonNullable<StyleConfig[Key]>>] extends [never] ? never : Key;
690
+ }[keyof StyleConfig];
691
+
692
+ declare type ChatUIStyleConfigByModeRecord<T = unknown> = Record<SkinColorMode, T>;
693
+
583
694
  declare function closeInputPopup(): void;
584
695
 
585
696
  declare function closeInputPopup_2(): void;
586
697
 
587
698
  export declare const DonateAnimation: DefineComponent< {
588
- trackCount: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
699
+ trackCount: VueTypeValidableDef<number, ValidatorFunction<number>> & {
589
700
  default: number;
590
701
  } & {
591
702
  default: number;
592
703
  };
593
704
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
594
- trackCount: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
705
+ trackCount: VueTypeValidableDef<number, ValidatorFunction<number>> & {
595
706
  default: number;
596
707
  } & {
597
708
  default: number;
@@ -621,6 +732,8 @@ type: VueTypeDef<PolyvChatSdk.EmotionalFeedbackType>;
621
732
  type: VueTypeDef<PolyvChatSdk.EmotionalFeedbackType>;
622
733
  }>>, {}>;
623
734
 
735
+ declare type ExtractChatUIStyleConfigByModeRecord<T> = Extract<NonNullable<T>, ChatUIStyleConfigByModeRecord>;
736
+
624
737
  export declare const GlobalVariable = "PolyvChatUI";
625
738
 
626
739
  export declare interface HistoryConfig {
@@ -1014,6 +1127,13 @@ export declare interface MessageConfig {
1014
1127
  * @default false
1015
1128
  */
1016
1129
  quickReplyEnabled?: boolean;
1130
+ /**
1131
+ * 拦截查看完整消息
1132
+ */
1133
+ interceptCompleteMsg?: ((data: {
1134
+ fullContent: string;
1135
+ chatMsg: ChatMsgSpeakType;
1136
+ }) => void) | '';
1017
1137
  }
1018
1138
 
1019
1139
  /**
@@ -1125,6 +1245,8 @@ export declare type MessageLayout = 'compact' | 'loose';
1125
1245
  */
1126
1246
  declare type MsgControlInteraction = 'context-menu' | 'hover' | 'bubble' | 'action-sheet';
1127
1247
 
1248
+ declare type NarrowChatUIStyleConfigByMode<T> = [ExtractChatUIStyleConfigByModeRecord<T>] extends [never] ? never : string extends keyof ExtractChatUIStyleConfigByModeRecord<T> ? never : T;
1249
+
1128
1250
  export declare interface OnlineConfig {
1129
1251
  /**
1130
1252
  * 请求获取的在线列表数量
@@ -1153,16 +1275,24 @@ export declare interface OnlineConfig {
1153
1275
  onlineCountCallback?: (count: number) => void;
1154
1276
  }
1155
1277
 
1278
+ /**
1279
+ * 打开弹层
1280
+ */
1281
+ declare function openCompleteMsgPopup(data: {
1282
+ fullContent: string;
1283
+ chatMsg: ChatMsgSpeakType;
1284
+ }): Promise<void>;
1285
+
1156
1286
  declare function openRulePopup(): void;
1157
1287
 
1158
1288
  export declare const RunwayEffect: DefineComponent< {
1159
- left: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
1289
+ left: VueTypeValidableDef<number, ValidatorFunction<number>> & {
1160
1290
  default: number;
1161
1291
  } & {
1162
1292
  default: number;
1163
1293
  };
1164
1294
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
1165
- left: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
1295
+ left: VueTypeValidableDef<number, ValidatorFunction<number>> & {
1166
1296
  default: number;
1167
1297
  } & {
1168
1298
  default: number;
@@ -1198,8 +1328,19 @@ export declare interface SpecialEffectConfig {
1198
1328
  visibleChangeCallback?: (visible: boolean) => void;
1199
1329
  }
1200
1330
 
1331
+ export declare interface StyleConfig {
1332
+ /**
1333
+ * input-section 组件主体背景
1334
+ */
1335
+ messageInputSectionBodyBg?: ChatUIStyleConfigByMode<string>;
1336
+ /**
1337
+ * 获取 MessageInputControl 组件样式
1338
+ */
1339
+ messageInputControlStyle?: Record<string, any> | void;
1340
+ }
1341
+
1201
1342
  export declare const SwiperSection: DefineComponent< {
1202
- swiperList: VueTypeValidableDef_2<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
1343
+ swiperList: VueTypeValidableDef<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
1203
1344
  default: () => ("ask" | "chat")[];
1204
1345
  } & {
1205
1346
  default: () => ("ask" | "chat")[];
@@ -1208,7 +1349,7 @@ default: () => ("ask" | "chat")[];
1208
1349
  "slide-reach-end": (arg?: void | undefined) => void;
1209
1350
  "slide-reach-beginning": (arg?: void | undefined) => void;
1210
1351
  }, string, Readonly<ExtractPropTypes< {
1211
- swiperList: VueTypeValidableDef_2<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
1352
+ swiperList: VueTypeValidableDef<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
1212
1353
  default: () => ("ask" | "chat")[];
1213
1354
  } & {
1214
1355
  default: () => ("ask" | "chat")[];