@polyv/chat-ui 2.1.0-rc-20251023.2 → 2.3.0-rc-20251204.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 +403 -42
  2. package/index.es.js +24066 -16389
  3. package/index.umd.js +446 -152
  4. package/package.json +1 -1
  5. package/special.d.ts +329 -41
  6. package/special.es.js +22579 -15673
  7. package/special.umd.js +443 -152
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { AskMsgType } from '@polyv/chat';
1
2
  import { ChatMessageUser } from '@polyv/chat';
2
3
  import { ChatMsgRewardType } from '@polyv/chat';
3
4
  import { ChatMsgSource } from '@polyv/chat';
@@ -6,11 +7,14 @@ import { ComponentCustomProperties } from 'vue';
6
7
  import { ComponentOptions } from 'vue';
7
8
  import { ComponentOptionsBase } from 'vue';
8
9
  import { ComponentOptionsMixin } from 'vue';
10
+ import { ComputedRef } from 'vue';
9
11
  import { DefineComponent } from 'vue';
10
12
  import { ExtractComputedReturns } from 'vue/types/v3-component-options';
11
13
  import { ExtractPropTypes } from 'vue';
14
+ import { GlobalStoreDefinition } from '@polyv/vue-components';
12
15
  import { PickChatMsgType } from '@polyv/chat';
13
16
  import { PolyvChat } from '@polyv/chat';
17
+ import { Ref } from 'vue';
14
18
  import { SendEmotionImageMsgOptions } from '@polyv/chat';
15
19
  import { SendImageMsgOptions } from '@polyv/chat';
16
20
  import { SendSpeakMsgOptions } from '@polyv/chat';
@@ -19,8 +23,36 @@ import { SystemMsgType } from '@polyv/chat';
19
23
  import { ValidatorFunction } from 'vue-types/dist/types';
20
24
  import { Vue3Instance } from 'vue/types/v3-component-public-instance';
21
25
  import { VueTypeValidableDef } from 'vue-types';
26
+ import { VueTypeValidableDef as VueTypeValidableDef_2 } from 'vue-types';
27
+ import { VueTypeValidableDef as VueTypeValidableDef_3 } from 'vue-types';
22
28
 
23
- declare const __VLS_component: DefineComponent< {
29
+ declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
30
+
31
+ declare const __VLS_component_2: DefineComponent< {
32
+ /**
33
+ * 是否显示发送图片图标
34
+ * @default false
35
+ */
36
+ showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
37
+ default: boolean;
38
+ } & {
39
+ default: boolean;
40
+ };
41
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
42
+ /**
43
+ * 是否显示发送图片图标
44
+ * @default false
45
+ */
46
+ showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
47
+ default: boolean;
48
+ } & {
49
+ default: boolean;
50
+ };
51
+ }>>, {
52
+ showSendImage: boolean;
53
+ }>;
54
+
55
+ declare const __VLS_component_3: DefineComponent< {
24
56
  defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
25
57
  default: number;
26
58
  } & {
@@ -49,9 +81,27 @@ defaultHeight: number;
49
81
  showMore: boolean;
50
82
  }>;
51
83
 
52
- declare const __VLS_component_2: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
53
-
54
84
  declare function __VLS_template(): {
85
+ attrs: Partial<{}>;
86
+ slots: {
87
+ 'body-suffix'?(_: {}): any;
88
+ suffix?(_: {}): any;
89
+ };
90
+ refs: {};
91
+ rootEl: HTMLDivElement;
92
+ };
93
+
94
+ declare function __VLS_template_2(): {
95
+ attrs: Partial<{}>;
96
+ slots: {
97
+ 'body-suffix'?(_: {}): any;
98
+ suffix?(_: {}): any;
99
+ };
100
+ refs: {};
101
+ rootEl: HTMLDivElement;
102
+ };
103
+
104
+ declare function __VLS_template_3(): {
55
105
  attrs: Partial<{}>;
56
106
  slots: {
57
107
  'more-panel'?(_: {}): any;
@@ -61,6 +111,7 @@ declare function __VLS_template(): {
61
111
  };
62
112
  refs: {
63
113
  msgInputBaseRef: (Vue3Instance< {}, Readonly<ExtractPropTypes< {
114
+ resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
64
115
  defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
65
116
  default: number;
66
117
  } & {
@@ -71,6 +122,11 @@ declare function __VLS_template(): {
71
122
  } & {
72
123
  default: boolean;
73
124
  };
125
+ showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
126
+ default: boolean;
127
+ } & {
128
+ default: boolean;
129
+ };
74
130
  placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
75
131
  default: string;
76
132
  };
@@ -89,7 +145,18 @@ declare function __VLS_template(): {
89
145
  } & {
90
146
  default: number;
91
147
  };
148
+ showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
149
+ default: boolean;
150
+ } & {
151
+ default: boolean;
152
+ };
153
+ showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
154
+ default: boolean;
155
+ } & {
156
+ default: boolean;
157
+ };
92
158
  }>>, Readonly<ExtractPropTypes< {
159
+ resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
93
160
  defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
94
161
  default: number;
95
162
  } & {
@@ -100,6 +167,11 @@ declare function __VLS_template(): {
100
167
  } & {
101
168
  default: boolean;
102
169
  };
170
+ showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
171
+ default: boolean;
172
+ } & {
173
+ default: boolean;
174
+ };
103
175
  placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
104
176
  default: string;
105
177
  };
@@ -118,6 +190,16 @@ declare function __VLS_template(): {
118
190
  } & {
119
191
  default: number;
120
192
  };
193
+ showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
194
+ default: boolean;
195
+ } & {
196
+ default: boolean;
197
+ };
198
+ showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
199
+ default: boolean;
200
+ } & {
201
+ default: boolean;
202
+ };
121
203
  }>>, {
122
204
  submit: (arg: {
123
205
  contentList: InputContent[];
@@ -129,12 +211,16 @@ declare function __VLS_template(): {
129
211
  "click-send-image": (arg?: void | undefined) => void;
130
212
  }, {
131
213
  disabledInput: boolean;
214
+ showFaceEmotion: boolean;
215
+ showImageEmotion: boolean;
132
216
  placeholder: string;
133
217
  disabledSubmitBtn: boolean;
134
218
  maxInputTextLength: number;
135
219
  defaultHeight: number;
136
220
  showBottom: boolean;
221
+ showSendImage: boolean;
137
222
  }, true, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<ExtractPropTypes< {
223
+ resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
138
224
  defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
139
225
  default: number;
140
226
  } & {
@@ -145,6 +231,11 @@ declare function __VLS_template(): {
145
231
  } & {
146
232
  default: boolean;
147
233
  };
234
+ showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
235
+ default: boolean;
236
+ } & {
237
+ default: boolean;
238
+ };
148
239
  placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
149
240
  default: string;
150
241
  };
@@ -163,9 +254,20 @@ declare function __VLS_template(): {
163
254
  } & {
164
255
  default: number;
165
256
  };
257
+ showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
258
+ default: boolean;
259
+ } & {
260
+ default: boolean;
261
+ };
262
+ showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
263
+ default: boolean;
264
+ } & {
265
+ default: boolean;
266
+ };
166
267
  }>>> & ShallowUnwrapRef< {
167
268
  focusInput: () => void;
168
269
  }> & ExtractComputedReturns< {}> & ComponentCustomProperties & Readonly<ExtractPropTypes< {
270
+ resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
169
271
  defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
170
272
  default: number;
171
273
  } & {
@@ -176,6 +278,11 @@ declare function __VLS_template(): {
176
278
  } & {
177
279
  default: boolean;
178
280
  };
281
+ showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
282
+ default: boolean;
283
+ } & {
284
+ default: boolean;
285
+ };
179
286
  placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
180
287
  default: string;
181
288
  };
@@ -194,6 +301,16 @@ declare function __VLS_template(): {
194
301
  } & {
195
302
  default: number;
196
303
  };
304
+ showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
305
+ default: boolean;
306
+ } & {
307
+ default: boolean;
308
+ };
309
+ showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
310
+ default: boolean;
311
+ } & {
312
+ default: boolean;
313
+ };
197
314
  }>> & {
198
315
  $scopedSlots: {
199
316
  'panel-suffix'?(_: {}): any;
@@ -204,24 +321,17 @@ declare function __VLS_template(): {
204
321
  'bottom-suffix'?(_: {}): any;
205
322
  };
206
323
  }) | null;
324
+ morePanelRef: HTMLDivElement;
207
325
  };
208
326
  rootEl: HTMLDivElement;
209
327
  };
210
328
 
211
- declare function __VLS_template_2(): {
212
- attrs: Partial<{}>;
213
- slots: {
214
- 'body-suffix'?(_: {}): any;
215
- suffix?(_: {}): any;
216
- };
217
- refs: {};
218
- rootEl: HTMLDivElement;
219
- };
220
-
221
329
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
222
330
 
223
331
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
224
332
 
333
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
334
+
225
335
  declare type __VLS_WithTemplateSlots<T, S> = T & {
226
336
  new (): {
227
337
  $scopedSlots: S;
@@ -234,21 +344,84 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
234
344
  };
235
345
  };
236
346
 
347
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
348
+ new (): {
349
+ $scopedSlots: S;
350
+ };
351
+ };
352
+
237
353
  /**
238
354
  * 动画来源
239
355
  */
240
- declare type AnimationSource = 'donate-svga-animation' | 'donate-animation';
356
+ declare type AnimationSource = 'donate-animation' | 'chat-like' | 'special-effect-animation';
357
+
358
+ /**
359
+ * 提问配置
360
+ */
361
+ declare interface AskConfig {
362
+ /**
363
+ * 提问欢迎语
364
+ * @default ''
365
+ */
366
+ askWelcomeText?: string;
367
+ /**
368
+ * 显示在线状态
369
+ * @default false
370
+ */
371
+ showOnlineStatus?: boolean;
372
+ /**
373
+ * 提问新消息回调
374
+ */
375
+ onNewAskMessage?: (askMsg: AskMsgType) => void;
376
+ }
377
+
378
+ export declare const AskManager: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
379
+ "open-ask": (arg?: void | undefined) => void;
380
+ }, string, Readonly<ExtractPropTypes< {}>>, {}>;
381
+
382
+ export declare const AskMessageInputControl: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
383
+
384
+ export declare const AskMessageInputPopup: DefineComponent< {}, {
385
+ showInputPopup: typeof showInputPopup;
386
+ closeInputPopup: typeof closeInputPopup;
387
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
388
+ "visible-change": (arg: boolean) => void;
389
+ }, string, Readonly<ExtractPropTypes< {}>>, {}>;
390
+
391
+ export declare const AskMessageInputSection: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
392
+
393
+ export declare const AskMessageList: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
394
+
395
+ export declare const AskUserList: DefineComponent< {}, {
396
+ addAskUser: (data: {
397
+ targetUserId: string;
398
+ user: ChatMessageUser;
399
+ setActive?: boolean;
400
+ }) => void;
401
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
241
402
 
242
403
  export declare const BanList: DefineComponent< {}, {
243
404
  openBanList: () => void;
244
405
  closeBanList: () => void;
245
406
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
246
407
 
408
+ export declare interface BaseConfig {
409
+ /**
410
+ * 是否隐藏昵称
411
+ * @default false
412
+ */
413
+ hideNickname?: boolean;
414
+ }
415
+
247
416
  export declare interface ChatGlobalInject {
248
417
  /**
249
418
  * 获取聊天室实例对象
250
419
  */
251
420
  getChatTarget: () => PolyvChat;
421
+ /**
422
+ * 获取基础配置
423
+ */
424
+ getBaseConfig?: () => BaseConfig;
252
425
  /**
253
426
  * 获取消息配置
254
427
  */
@@ -273,6 +446,14 @@ export declare interface ChatGlobalInject {
273
446
  * 获取打赏配置
274
447
  */
275
448
  getDonateConfig?: () => DonateConfig;
449
+ /**
450
+ * 获取点赞配置
451
+ */
452
+ getLikeConfig?: () => LikeConfig;
453
+ /**
454
+ * 获取特效配置
455
+ */
456
+ getSpecialEffectConfig?: () => SpecialEffectConfig;
276
457
  /**
277
458
  * 获取直播状态
278
459
  */
@@ -281,18 +462,28 @@ export declare interface ChatGlobalInject {
281
462
  * 获取是否显示动画
282
463
  */
283
464
  getAnimationVisible?: (animationSource: AnimationSource) => boolean;
465
+ /**
466
+ * 获取提问配置
467
+ */
468
+ getAskConfig?: () => AskConfig;
284
469
  /**
285
470
  * 拦截处理,返回 true 表示终止后续的业务逻辑执行
286
471
  */
287
472
  interceptClick?: (triggerSource: InterceptTriggerSource) => boolean | Promise<boolean>;
288
473
  }
289
474
 
475
+ export declare const ChatLike: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
476
+
477
+ export declare const ChatMessageInputControl: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
478
+
290
479
  export declare const ChatMessageInputPopup: DefineComponent< {}, {
291
- showInputPopup: typeof showInputPopup;
292
- closeInputPopup: typeof closeInputPopup;
293
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
480
+ showInputPopup: typeof showInputPopup_2;
481
+ closeInputPopup: typeof closeInputPopup_2;
482
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
483
+ "visible-change": (arg: boolean) => void;
484
+ }, string, Readonly<ExtractPropTypes< {}>>, {}>;
294
485
 
295
- export declare const ChatMessageInputSection: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
486
+ export declare const ChatMessageInputSection: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
296
487
 
297
488
  export declare const ChatMessageList: DefineComponent< {}, {
298
489
  setIsOnlySpecialMsg: (value: boolean) => void;
@@ -300,14 +491,16 @@ setIsOnlySpecialMsg: (value: boolean) => void;
300
491
 
301
492
  declare function closeInputPopup(): void;
302
493
 
494
+ declare function closeInputPopup_2(): void;
495
+
303
496
  export declare const DonateAnimation: DefineComponent< {
304
- trackCount: VueTypeValidableDef<number, ValidatorFunction<number>> & {
497
+ trackCount: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
305
498
  default: number;
306
499
  } & {
307
500
  default: number;
308
501
  };
309
502
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
310
- trackCount: VueTypeValidableDef<number, ValidatorFunction<number>> & {
503
+ trackCount: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
311
504
  default: number;
312
505
  } & {
313
506
  default: number;
@@ -326,8 +519,6 @@ declare interface DonateConfig {
326
519
  getSvgaUrl?: (chatMsg: ChatMsgRewardType) => Promise<string | undefined> | string | undefined;
327
520
  }
328
521
 
329
- export declare const DonateSvgaAnimation: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
330
-
331
522
  /**
332
523
  * 文字类型,normal-普通文字,nickname-用户昵称,productName-商品名称
333
524
  */
@@ -341,14 +532,14 @@ export declare interface HistoryConfig {
341
532
  * @default false
342
533
  */
343
534
  workWechatMyCustomerHistory?: boolean;
535
+ /**
536
+ * 是否获取聊天历史消息
537
+ * @default true
538
+ */
539
+ getChatHistory?: boolean;
344
540
  }
345
541
 
346
542
  export declare interface InputConfig {
347
- /**
348
- * 聊天室输入框占位符
349
- * @default ''
350
- */
351
- inputPlaceholder?: string;
352
543
  /**
353
544
  * 黄脸表情开关
354
545
  * @default true
@@ -365,15 +556,29 @@ export declare interface InputConfig {
365
556
  */
366
557
  disabledInput?: boolean;
367
558
  /**
368
- * 发送图片开关
559
+ * 输入框遮罩文案
560
+ * @default ''
561
+ */
562
+ inputMaskPlaceholder?: string;
563
+ /**
564
+ * 聊天室输入框占位符
565
+ * @default ''
566
+ */
567
+ chatInputPlaceholder?: string;
568
+ /**
569
+ * 聊天区发送图片开关
369
570
  * @default true
370
571
  */
371
- sendImageEnabled?: boolean;
572
+ sendChatImageEnabled?: boolean;
372
573
  /**
373
- * 输入框遮罩文案
574
+ * 提问区输入框占位符
374
575
  * @default ''
375
576
  */
376
- inputMaskPlaceholder?: string;
577
+ askInputPlaceholder?: string;
578
+ /**
579
+ * 提问区发送图片开关
580
+ */
581
+ sendAskImageEnabled?: boolean;
377
582
  }
378
583
 
379
584
  export declare type InputContent = InputContentText | InputContentImage;
@@ -398,14 +603,41 @@ export declare interface InputContentText {
398
603
  * click-message-input: 消息输入框
399
604
  * focus-message-input: 聚焦输入框
400
605
  * click-submit: 点击提交按钮
606
+ * chat-like: 点赞
401
607
  */
402
- export declare type InterceptTriggerSource = 'send-image' | 'emotion-picker' | 'chat-quote' | 'more-panel' | 'click-message-input' | 'focus-message-input' | 'click-submit';
608
+ export declare type InterceptTriggerSource = 'send-image' | 'emotion-picker' | 'chat-quote' | 'more-panel' | 'click-message-input' | 'focus-message-input' | 'click-submit' | 'chat-like';
403
609
 
404
610
  export declare const KickList: DefineComponent< {}, {
405
611
  openKickList: () => void;
406
612
  closeKickList: () => void;
407
613
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
408
614
 
615
+ /**
616
+ * 点赞配置
617
+ */
618
+ declare interface LikeConfig {
619
+ /**
620
+ * 点击开关
621
+ * @default true
622
+ */
623
+ clickEnabled?: boolean;
624
+ /**
625
+ * 按住开关
626
+ * @default true
627
+ */
628
+ holdEnabled?: boolean;
629
+ /**
630
+ * 数量位置
631
+ * @default 'bottom'
632
+ */
633
+ countPosition?: 'top' | 'bottom';
634
+ /**
635
+ * 触发节点大小
636
+ * @default 40
637
+ */
638
+ triggerSize?: number;
639
+ }
640
+
409
641
  /**
410
642
  * 管理配置
411
643
  */
@@ -450,10 +682,6 @@ export declare interface ManageConfig {
450
682
  * @default false
451
683
  */
452
684
  askUserEnabled?: boolean;
453
- /**
454
- * 私聊用户回调
455
- */
456
- askUserCallback?: boolean | ((user: ChatMessageUser) => void);
457
685
  /**
458
686
  * 聊天室全体禁言开关
459
687
  * @default false
@@ -478,9 +706,23 @@ export declare interface ManageConfig {
478
706
  downloadOnlineListEnabled?: boolean;
479
707
  }
480
708
 
481
- export declare const ManagerInputControl: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
482
-
483
- export declare const MemberList: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
709
+ export declare const MemberList: DefineComponent< {
710
+ showTop: VueTypeValidableDef_3<boolean, ValidatorFunction<boolean>> & {
711
+ default: boolean;
712
+ } & {
713
+ default: boolean;
714
+ };
715
+ }, {
716
+ openRulePopup: typeof openRulePopup;
717
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
718
+ showTop: VueTypeValidableDef_3<boolean, ValidatorFunction<boolean>> & {
719
+ default: boolean;
720
+ } & {
721
+ default: boolean;
722
+ };
723
+ }>>, {
724
+ showTop: boolean;
725
+ }>;
484
726
 
485
727
  export declare interface MessageConfig {
486
728
  /**
@@ -488,6 +730,11 @@ export declare interface MessageConfig {
488
730
  * @default ''
489
731
  */
490
732
  introductionText?: string;
733
+ /**
734
+ * 聊天区系统消息
735
+ * @default ''
736
+ */
737
+ systemText?: string;
491
738
  /**
492
739
  * 是否显示聊天室空数据提示
493
740
  * @default false
@@ -499,7 +746,7 @@ export declare interface MessageConfig {
499
746
  */
500
747
  hideSources?: ChatMsgSource[];
501
748
  /**
502
- * 隐藏消息处理
749
+ * 隐藏消息处理,返回 true 时消息隐藏
503
750
  * @default {}
504
751
  */
505
752
  hideMessage?: {
@@ -556,6 +803,16 @@ export declare interface MessageConfig {
556
803
  top: number;
557
804
  bottom: number;
558
805
  };
806
+ /**
807
+ * 消息容器边界阴影配置
808
+ * @default { topHeight: 0 }
809
+ */
810
+ messageContainerBoundaryShadow?: {
811
+ /**
812
+ * 顶部阴影高度
813
+ */
814
+ topHeight?: number;
815
+ };
559
816
  /**
560
817
  * 鼠标悬停高亮
561
818
  * @default false
@@ -610,6 +867,12 @@ export declare interface MessageConfig {
610
867
  * @default false
611
868
  */
612
869
  autoTranslateEnabled?: boolean;
870
+ /**
871
+ * 是否隐藏滚动条
872
+ * @description 滚动条消失,但滚动仍然可用
873
+ * @default false
874
+ */
875
+ hideScrollbar?: boolean;
613
876
  }
614
877
 
615
878
  /**
@@ -653,6 +916,10 @@ export declare interface MessageEffectData {
653
916
  * 字符串模板
654
917
  */
655
918
  strTemplate: string;
919
+ /**
920
+ * 背景色
921
+ */
922
+ bgColor?: string;
656
923
  }
657
924
 
658
925
  /**
@@ -719,6 +986,21 @@ export declare interface OnlineConfig {
719
986
  * @default 200
720
987
  */
721
988
  requestCount?: number;
989
+ /**
990
+ * 搜索在线列表开关
991
+ * @default true
992
+ */
993
+ searchEnabled?: boolean;
994
+ /**
995
+ * 规则开关
996
+ * @default false
997
+ */
998
+ ruleEnabled?: boolean;
999
+ /**
1000
+ * 轮训间隔,单位:毫秒
1001
+ * @default 10000
1002
+ */
1003
+ pollingTime?: number;
722
1004
  /**
723
1005
  * 在线人数更新回调
724
1006
  * @param count 在线人数
@@ -726,13 +1008,83 @@ export declare interface OnlineConfig {
726
1008
  onlineCountCallback?: (count: number) => void;
727
1009
  }
728
1010
 
1011
+ declare function openRulePopup(): void;
1012
+
1013
+ export declare const RunwayEffect: DefineComponent< {
1014
+ left: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
1015
+ default: number;
1016
+ } & {
1017
+ default: number;
1018
+ };
1019
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
1020
+ left: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
1021
+ default: number;
1022
+ } & {
1023
+ default: number;
1024
+ };
1025
+ }>>, {
1026
+ left: number;
1027
+ }>;
1028
+
729
1029
  declare function showInputPopup(): void;
730
1030
 
1031
+ declare function showInputPopup_2(): void;
1032
+
1033
+ export declare const SpecialEffectAnimation: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
1034
+
1035
+ /**
1036
+ * 特效配置
1037
+ */
1038
+ export declare interface SpecialEffectConfig {
1039
+ /**
1040
+ * 屏蔽特效开关
1041
+ * @default false
1042
+ */
1043
+ switchEnabled?: boolean;
1044
+ /**
1045
+ * 默认是否显示
1046
+ * @default true
1047
+ */
1048
+ defaultVisible?: boolean;
1049
+ /**
1050
+ * 特效显示切换回调
1051
+ */
1052
+ visibleChangeCallback?: (visible: boolean) => void;
1053
+ }
1054
+
1055
+ export declare const SwiperSection: DefineComponent< {
1056
+ swiperList: VueTypeValidableDef_2<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
1057
+ default: () => ("ask" | "chat")[];
1058
+ } & {
1059
+ default: () => ("ask" | "chat")[];
1060
+ };
1061
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1062
+ "slide-reach-end": (arg?: void | undefined) => void;
1063
+ "slide-reach-beginning": (arg?: void | undefined) => void;
1064
+ }, string, Readonly<ExtractPropTypes< {
1065
+ swiperList: VueTypeValidableDef_2<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
1066
+ default: () => ("ask" | "chat")[];
1067
+ } & {
1068
+ default: () => ("ask" | "chat")[];
1069
+ };
1070
+ }>>, {
1071
+ swiperList: ("ask" | "chat")[];
1072
+ }>;
1073
+
1074
+ export declare const SwiperSectionControl: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
1075
+
731
1076
  export declare const TopingMsgList: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
732
1077
 
733
1078
  export declare const useChatGlobalProvide: (injectData: ChatGlobalInject) => void;
734
1079
 
735
- export declare const useSendMsg: () => {
1080
+ export declare const useOnlySpecialStore: GlobalStoreDefinition<"only-special", {
1081
+ canOnlySpecialMsg: ComputedRef<boolean>;
1082
+ isOnlySpecialMsg: Ref<boolean>;
1083
+ setIsOnlySpecialMsg: (value: boolean) => void;
1084
+ toggleOnlySpecialMsg: () => void;
1085
+ }>;
1086
+
1087
+ export declare const useSendChatMsg: () => {
736
1088
  sendSpeakMsg: (options: SendSpeakMsgOptions) => Promise<void>;
737
1089
  sendImageMsg: (options: SendImageMsgOptions) => Promise<void>;
738
1090
  sendEmotionImageMsg: (options: SendEmotionImageMsgOptions) => Promise<void>;
@@ -741,6 +1093,15 @@ export declare const useSendMsg: () => {
741
1093
  sendContentList: (contentList: InputContent[], quoteMsg?: ChatMsgType) => Promise<void>;
742
1094
  };
743
1095
 
744
- export declare const ViewerInputControl: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1096
+ export declare const useSpecialEffectStore: GlobalStoreDefinition<"special-effect", {
1097
+ /** 特效显隐 */
1098
+ specialEffectVisible: Ref<boolean>;
1099
+ /** 切换特效显隐 */
1100
+ toggleSpecialEffect: () => void;
1101
+ /** 显示特效 */
1102
+ showSpecialEffect: () => void;
1103
+ /** 隐藏特效 */
1104
+ hideSpecialEffect: () => void;
1105
+ }>;
745
1106
 
746
1107
  export { }