@polyv/live-watch-ai-ui 1.0.0-rc-20251023.1 → 1.0.0-rc-20251225.2
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.
- package/live-watch-ai-ui.cjs.js +32 -7
- package/live-watch-ai-ui.es.d.ts +161 -0
- package/live-watch-ai-ui.es.js +48280 -14931
- package/live-watch-ai-ui.umd.js +32 -7
- package/package.json +1 -1
package/live-watch-ai-ui.es.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AISubtitleParsedItem } from '@polyv/live-watch-ai-sdk';
|
|
1
2
|
import { ComponentCustomProperties } from 'vue';
|
|
2
3
|
import { ComponentOptionsBase } from 'vue';
|
|
3
4
|
import { ComponentOptionsMixin } from 'vue';
|
|
@@ -6,14 +7,98 @@ import { ExtractComputedReturns } from 'vue/types/v3-component-options';
|
|
|
6
7
|
import { ExtractPropTypes } from 'vue';
|
|
7
8
|
import { LangType } from '@polyv/live-watch-ai-sdk';
|
|
8
9
|
import { PlaybackOutlineData } from '@polyv/live-watch-ai-sdk';
|
|
10
|
+
import { PlaybackQuestionData } from '@polyv/live-watch-ai-sdk';
|
|
9
11
|
import { PolyvAIAssistantChatMsgType } from '@polyv/live-watch-ai-sdk';
|
|
10
12
|
import { PolyvWatchAICore } from '@polyv/live-watch-ai-sdk';
|
|
11
13
|
import { ShallowUnwrapRef } from 'vue';
|
|
12
14
|
import { Vue3Instance } from 'vue/types/v3-component-public-instance';
|
|
13
15
|
import { VueTypeValidableDef } from 'vue-types';
|
|
14
16
|
|
|
17
|
+
declare interface AggregateTabEnableSetting {
|
|
18
|
+
outlineEnabled?: boolean;
|
|
19
|
+
subtitleEnabled?: boolean;
|
|
20
|
+
questionEnabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
export declare const AI_UI_INJECT_KEY = "AIUIGlobalConfig";
|
|
16
24
|
|
|
25
|
+
export declare const AiAggregateFeaturePanel: DefineComponent< {
|
|
26
|
+
showColor: VueTypeValidableDef<boolean> & {
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
tabEnabledSetting: VueTypeValidableDef<AggregateTabEnableSetting> & {
|
|
30
|
+
default: () => AggregateTabEnableSetting;
|
|
31
|
+
};
|
|
32
|
+
currentTime: VueTypeValidableDef<number> & {
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
outlineUrl: VueTypeValidableDef<string> & {
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
outlineData: VueTypeValidableDef<PlaybackOutlineData> & {
|
|
39
|
+
default: () => PlaybackOutlineData;
|
|
40
|
+
};
|
|
41
|
+
srtAutoScroll: VueTypeValidableDef<boolean> & {
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
srtUrl: VueTypeValidableDef<string> & {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
srtData: VueTypeValidableDef<AISubtitleParsedItem[]> & {
|
|
48
|
+
default: () => AISubtitleParsedItem[];
|
|
49
|
+
};
|
|
50
|
+
questionUrl: VueTypeValidableDef<string> & {
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
questionData: VueTypeValidableDef<PlaybackQuestionData> & {
|
|
54
|
+
default: () => PlaybackQuestionData;
|
|
55
|
+
};
|
|
56
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
57
|
+
seek: (arg: number) => void;
|
|
58
|
+
}, string, Readonly<ExtractPropTypes< {
|
|
59
|
+
showColor: VueTypeValidableDef<boolean> & {
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
tabEnabledSetting: VueTypeValidableDef<AggregateTabEnableSetting> & {
|
|
63
|
+
default: () => AggregateTabEnableSetting;
|
|
64
|
+
};
|
|
65
|
+
currentTime: VueTypeValidableDef<number> & {
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
outlineUrl: VueTypeValidableDef<string> & {
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
outlineData: VueTypeValidableDef<PlaybackOutlineData> & {
|
|
72
|
+
default: () => PlaybackOutlineData;
|
|
73
|
+
};
|
|
74
|
+
srtAutoScroll: VueTypeValidableDef<boolean> & {
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
srtUrl: VueTypeValidableDef<string> & {
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
srtData: VueTypeValidableDef<AISubtitleParsedItem[]> & {
|
|
81
|
+
default: () => AISubtitleParsedItem[];
|
|
82
|
+
};
|
|
83
|
+
questionUrl: VueTypeValidableDef<string> & {
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
questionData: VueTypeValidableDef<PlaybackQuestionData> & {
|
|
87
|
+
default: () => PlaybackQuestionData;
|
|
88
|
+
};
|
|
89
|
+
}>>, {
|
|
90
|
+
outlineData: PlaybackOutlineData;
|
|
91
|
+
showColor: boolean;
|
|
92
|
+
questionData: PlaybackQuestionData;
|
|
93
|
+
currentTime: number;
|
|
94
|
+
tabEnabledSetting: AggregateTabEnableSetting;
|
|
95
|
+
outlineUrl: string;
|
|
96
|
+
srtAutoScroll: boolean;
|
|
97
|
+
srtUrl: string;
|
|
98
|
+
srtData: AISubtitleParsedItem[];
|
|
99
|
+
questionUrl: string;
|
|
100
|
+
}>;
|
|
101
|
+
|
|
17
102
|
export declare const AiAssistantChat: DefineComponent< {
|
|
18
103
|
chatListProps: VueTypeValidableDef<Partial<Readonly<ExtractPropTypes< {
|
|
19
104
|
msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
|
|
@@ -182,6 +267,45 @@ forceFitMode: string;
|
|
|
182
267
|
enabledLoading: boolean;
|
|
183
268
|
}>;
|
|
184
269
|
|
|
270
|
+
export declare const AiSubtitleList: DefineComponent< {
|
|
271
|
+
currentTime: VueTypeValidableDef<number> & {
|
|
272
|
+
default: number;
|
|
273
|
+
};
|
|
274
|
+
list: VueTypeValidableDef<AISubtitleParsedItem[]> & {
|
|
275
|
+
default: () => AISubtitleParsedItem[];
|
|
276
|
+
};
|
|
277
|
+
autoScroll: VueTypeValidableDef<boolean> & {
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
280
|
+
highlightClass: VueTypeValidableDef<string> & {
|
|
281
|
+
default: string;
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
scrollToItemByIndex: (index: string) => void;
|
|
285
|
+
refresh: () => Promise<void>;
|
|
286
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
287
|
+
"item-click": (arg: AISubtitleParsedItem) => void;
|
|
288
|
+
"highlight-change": (arg: AISubtitleParsedItem | null) => void;
|
|
289
|
+
}, string, Readonly<ExtractPropTypes< {
|
|
290
|
+
currentTime: VueTypeValidableDef<number> & {
|
|
291
|
+
default: number;
|
|
292
|
+
};
|
|
293
|
+
list: VueTypeValidableDef<AISubtitleParsedItem[]> & {
|
|
294
|
+
default: () => AISubtitleParsedItem[];
|
|
295
|
+
};
|
|
296
|
+
autoScroll: VueTypeValidableDef<boolean> & {
|
|
297
|
+
default: boolean;
|
|
298
|
+
};
|
|
299
|
+
highlightClass: VueTypeValidableDef<string> & {
|
|
300
|
+
default: string;
|
|
301
|
+
};
|
|
302
|
+
}>>, {
|
|
303
|
+
currentTime: number;
|
|
304
|
+
highlightClass: string;
|
|
305
|
+
list: AISubtitleParsedItem[];
|
|
306
|
+
autoScroll: boolean;
|
|
307
|
+
}>;
|
|
308
|
+
|
|
185
309
|
declare function closeMindMap(): void;
|
|
186
310
|
|
|
187
311
|
declare function getDigitalPreviewInstance(): (Vue3Instance< {}, Readonly<ExtractPropTypes< {
|
|
@@ -323,6 +447,10 @@ outlineData: VueTypeValidableDef<PlaybackOutlineData>;
|
|
|
323
447
|
showColor: VueTypeValidableDef<boolean> & {
|
|
324
448
|
default: boolean;
|
|
325
449
|
};
|
|
450
|
+
/** 显示内容区域底部 */
|
|
451
|
+
showContentFooter: VueTypeValidableDef<boolean> & {
|
|
452
|
+
default: boolean;
|
|
453
|
+
};
|
|
326
454
|
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
327
455
|
"seek-video": (arg: number) => void;
|
|
328
456
|
"open-mind-map": (arg: PlaybackOutlineData) => void;
|
|
@@ -333,8 +461,41 @@ outlineData: VueTypeValidableDef<PlaybackOutlineData>;
|
|
|
333
461
|
showColor: VueTypeValidableDef<boolean> & {
|
|
334
462
|
default: boolean;
|
|
335
463
|
};
|
|
464
|
+
/** 显示内容区域底部 */
|
|
465
|
+
showContentFooter: VueTypeValidableDef<boolean> & {
|
|
466
|
+
default: boolean;
|
|
467
|
+
};
|
|
336
468
|
}>>, {
|
|
337
469
|
showColor: boolean;
|
|
470
|
+
showContentFooter: boolean;
|
|
471
|
+
}>;
|
|
472
|
+
|
|
473
|
+
export declare const PlaybackQuestion: DefineComponent< {
|
|
474
|
+
questionData: VueTypeValidableDef<PlaybackQuestionData>;
|
|
475
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
476
|
+
"seek-video": (arg: number) => void;
|
|
477
|
+
}, string, Readonly<ExtractPropTypes< {
|
|
478
|
+
questionData: VueTypeValidableDef<PlaybackQuestionData>;
|
|
479
|
+
}>>, {}>;
|
|
480
|
+
|
|
481
|
+
export declare const PlaybackQuestionCard: DefineComponent< {
|
|
482
|
+
/** 问题数据 */
|
|
483
|
+
questionData: VueTypeValidableDef<PlaybackQuestionData>;
|
|
484
|
+
/** 当前播放时间 */
|
|
485
|
+
currentTime: VueTypeValidableDef<number> & {
|
|
486
|
+
default: number;
|
|
487
|
+
};
|
|
488
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
489
|
+
"seek-video": (arg: number) => void;
|
|
490
|
+
}, string, Readonly<ExtractPropTypes< {
|
|
491
|
+
/** 问题数据 */
|
|
492
|
+
questionData: VueTypeValidableDef<PlaybackQuestionData>;
|
|
493
|
+
/** 当前播放时间 */
|
|
494
|
+
currentTime: VueTypeValidableDef<number> & {
|
|
495
|
+
default: number;
|
|
496
|
+
};
|
|
497
|
+
}>>, {
|
|
498
|
+
currentTime: number;
|
|
338
499
|
}>;
|
|
339
500
|
|
|
340
501
|
declare interface ScrollListInstance {
|