@polyv/live-watch-ai-ui 1.0.0-rc-20250724.1 → 1.0.0-rc-20250814.4

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.
@@ -1,11 +1,187 @@
1
1
  import { ComponentOptionsMixin } from 'vue';
2
2
  import { DefineComponent } from 'vue';
3
3
  import { ExtractPropTypes } from 'vue';
4
+ import { LangType } from '@polyv/live-watch-ai-sdk';
4
5
  import { PlaybackOutlineData } from '@polyv/live-watch-ai-sdk';
6
+ import { PolyvAIAssistantChatMsgType } from '@polyv/live-watch-ai-sdk';
7
+ import { PolyvWatchAICore } from '@polyv/live-watch-ai-sdk';
5
8
  import { VueTypeValidableDef } from 'vue-types';
6
9
 
10
+ export declare const AI_UI_INJECT_KEY = "AIUIGlobalConfig";
11
+
12
+ export declare const AiAssistantChat: DefineComponent< {
13
+ chatListProps: VueTypeValidableDef<Partial<Readonly<ExtractPropTypes< {
14
+ msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
15
+ default: () => PolyvAIAssistantChatMsgType[];
16
+ } & {
17
+ required: true;
18
+ };
19
+ hideUserInfo: VueTypeValidableDef<boolean> & {
20
+ default: boolean;
21
+ };
22
+ }>>>> & {
23
+ default: () => Partial<Readonly<ExtractPropTypes< {
24
+ msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
25
+ default: () => PolyvAIAssistantChatMsgType[];
26
+ } & {
27
+ required: true;
28
+ };
29
+ hideUserInfo: VueTypeValidableDef<boolean> & {
30
+ default: boolean;
31
+ };
32
+ }>>>;
33
+ };
34
+ direction: VueTypeValidableDef<string> & {
35
+ default: string;
36
+ };
37
+ audioRecognizeEnabled: VueTypeValidableDef<boolean> & {
38
+ default: boolean;
39
+ };
40
+ digitalEnabled: VueTypeValidableDef<boolean> & {
41
+ default: boolean;
42
+ };
43
+ digitalSpeakMaxDelay: VueTypeValidableDef<number> & {
44
+ default: number;
45
+ };
46
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
47
+ chatListProps: VueTypeValidableDef<Partial<Readonly<ExtractPropTypes< {
48
+ msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
49
+ default: () => PolyvAIAssistantChatMsgType[];
50
+ } & {
51
+ required: true;
52
+ };
53
+ hideUserInfo: VueTypeValidableDef<boolean> & {
54
+ default: boolean;
55
+ };
56
+ }>>>> & {
57
+ default: () => Partial<Readonly<ExtractPropTypes< {
58
+ msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
59
+ default: () => PolyvAIAssistantChatMsgType[];
60
+ } & {
61
+ required: true;
62
+ };
63
+ hideUserInfo: VueTypeValidableDef<boolean> & {
64
+ default: boolean;
65
+ };
66
+ }>>>;
67
+ };
68
+ direction: VueTypeValidableDef<string> & {
69
+ default: string;
70
+ };
71
+ audioRecognizeEnabled: VueTypeValidableDef<boolean> & {
72
+ default: boolean;
73
+ };
74
+ digitalEnabled: VueTypeValidableDef<boolean> & {
75
+ default: boolean;
76
+ };
77
+ digitalSpeakMaxDelay: VueTypeValidableDef<number> & {
78
+ default: number;
79
+ };
80
+ }>>, {
81
+ direction: string;
82
+ audioRecognizeEnabled: boolean;
83
+ chatListProps: Partial<Readonly<ExtractPropTypes< {
84
+ msgList: VueTypeValidableDef<PolyvAIAssistantChatMsgType[]> & {
85
+ default: () => PolyvAIAssistantChatMsgType[];
86
+ } & {
87
+ required: true;
88
+ };
89
+ hideUserInfo: VueTypeValidableDef<boolean> & {
90
+ default: boolean;
91
+ };
92
+ }>>>;
93
+ digitalEnabled: boolean;
94
+ digitalSpeakMaxDelay: number;
95
+ }>;
96
+
97
+ export declare const AiDigitalPreview: DefineComponent< {
98
+ /** 视频源 */
99
+ videoSource: VueTypeValidableDef< {
100
+ speakUrl: string;
101
+ noSpeakUrl: string;
102
+ }> & {
103
+ default: () => {
104
+ speakUrl: string;
105
+ noSpeakUrl: string;
106
+ };
107
+ };
108
+ /** 数字人语音Id */
109
+ ttsVoiceId: VueTypeValidableDef<string> & {
110
+ default: string;
111
+ };
112
+ /** 预览方向,默认是 row*/
113
+ direction: VueTypeValidableDef<string> & {
114
+ default: string;
115
+ };
116
+ /** 视频 object-fit 值,默认是 cover */
117
+ forceFitMode: VueTypeValidableDef<string> & {
118
+ default: string;
119
+ };
120
+ /** 是否使用 loading. 默认 true */
121
+ enabledLoading: VueTypeValidableDef<boolean> & {
122
+ default: boolean;
123
+ };
124
+ }, {
125
+ startSpeaking: (text: string, opts?: {
126
+ /** 自动播放 */
127
+ autoPlay: boolean;
128
+ }) => void;
129
+ manualPlaySpeaking: () => void;
130
+ togglePlaySpeaking: () => void;
131
+ stopSpeaking: () => void;
132
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
133
+ "video-first-load": (...args: any[]) => void;
134
+ }, string, Readonly<ExtractPropTypes< {
135
+ /** 视频源 */
136
+ videoSource: VueTypeValidableDef< {
137
+ speakUrl: string;
138
+ noSpeakUrl: string;
139
+ }> & {
140
+ default: () => {
141
+ speakUrl: string;
142
+ noSpeakUrl: string;
143
+ };
144
+ };
145
+ /** 数字人语音Id */
146
+ ttsVoiceId: VueTypeValidableDef<string> & {
147
+ default: string;
148
+ };
149
+ /** 预览方向,默认是 row*/
150
+ direction: VueTypeValidableDef<string> & {
151
+ default: string;
152
+ };
153
+ /** 视频 object-fit 值,默认是 cover */
154
+ forceFitMode: VueTypeValidableDef<string> & {
155
+ default: string;
156
+ };
157
+ /** 是否使用 loading. 默认 true */
158
+ enabledLoading: VueTypeValidableDef<boolean> & {
159
+ default: boolean;
160
+ };
161
+ }>>, {
162
+ videoSource: {
163
+ speakUrl: string;
164
+ noSpeakUrl: string;
165
+ };
166
+ ttsVoiceId: string;
167
+ direction: string;
168
+ forceFitMode: string;
169
+ enabledLoading: boolean;
170
+ }>;
171
+
7
172
  declare function closeMindMap(): void;
8
173
 
174
+ declare interface GlobalInjectData {
175
+ /** 全局语言 */
176
+ globalLang: LangType | string;
177
+ /** 是否移动端 */
178
+ isMobile?: () => boolean;
179
+ /** 主题色 */
180
+ theme: 'dark' | 'light' | string;
181
+ /** 获取观看核心 */
182
+ getWatchAICore?: () => PolyvWatchAICore | undefined | null;
183
+ }
184
+
9
185
  declare function openMindMap(data: PlaybackOutlineData): void;
10
186
 
11
187
  export declare const OutlineMindMap: DefineComponent< {}, {
@@ -20,9 +196,6 @@ outlineData: VueTypeValidableDef<PlaybackOutlineData>;
20
196
  showColor: VueTypeValidableDef<boolean> & {
21
197
  default: boolean;
22
198
  };
23
- lang: VueTypeValidableDef<string> & {
24
- default: string;
25
- };
26
199
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
27
200
  "seek-video": (arg: number) => void;
28
201
  "open-mind-map": (arg: PlaybackOutlineData) => void;
@@ -33,12 +206,10 @@ outlineData: VueTypeValidableDef<PlaybackOutlineData>;
33
206
  showColor: VueTypeValidableDef<boolean> & {
34
207
  default: boolean;
35
208
  };
36
- lang: VueTypeValidableDef<string> & {
37
- default: string;
38
- };
39
209
  }>>, {
40
- lang: string;
41
210
  showColor: boolean;
42
211
  }>;
43
212
 
213
+ export declare const useAIGlobalProvider: (provideData: GlobalInjectData) => void;
214
+
44
215
  export { }