@polyv/live-watch-ai-ui 1.0.0-rc-20250814.5 → 1.0.0-rc-20250925.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.
@@ -50,6 +50,7 @@ default: number;
50
50
  };
51
51
  }, {
52
52
  getDigitalPreviewInstance: typeof getDigitalPreviewInstance;
53
+ getMsgListInstance: typeof getMsgListInstance;
53
54
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
54
55
  chatListProps: VueTypeValidableDef<Partial<Readonly<ExtractPropTypes< {
55
56
  msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
@@ -101,6 +102,9 @@ digitalEnabled: boolean;
101
102
  digitalSpeakMaxDelay: number;
102
103
  }>;
103
104
 
105
+ declare interface AIAssistantChatMsgListInstanceType extends ScrollListInstance {
106
+ }
107
+
104
108
  export declare const AiDigitalPreview: DefineComponent< {
105
109
  /** 视频源 */
106
110
  videoSource: VueTypeValidableDef< {
@@ -290,6 +294,8 @@ default: boolean;
290
294
  };
291
295
  }>>) | undefined;
292
296
 
297
+ declare function getMsgListInstance(): AIAssistantChatMsgListInstanceType | undefined;
298
+
293
299
  declare function getVideoIsAutoPlay(): boolean;
294
300
 
295
301
  declare interface GlobalInjectData {
@@ -331,6 +337,19 @@ default: boolean;
331
337
  showColor: boolean;
332
338
  }>;
333
339
 
340
+ declare interface ScrollListInstance {
341
+ /** 是否靠近底部 */
342
+ isNearBottom(): boolean;
343
+ /** 滚动到最底部 */
344
+ scrollToBottom(): void;
345
+ /** 检查当前滚动条是否靠近底部,靠近则滚到底部 */
346
+ checkScrollToBottom(): boolean;
347
+ /** 记录当前的第一个节点 */
348
+ recordFirstElem(): void;
349
+ /** 滚动到记录到首个节点 */
350
+ scrollToFirstRecord(): Promise<void>;
351
+ }
352
+
334
353
  export declare const useAIGlobalProvider: (provideData: GlobalInjectData) => void;
335
354
 
336
355
  export { }