@zegocloud/zego-uikit-prebuilt 2.14.0 → 2.14.1-beta

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/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  declare type ZegoCloudRTCCore = {};
2
3
  declare type ZegoExpressEngine = {};
3
4
  declare interface ZegoUser {
@@ -212,6 +213,28 @@ declare interface ZegoCloudRoomConfig {
212
213
  // 2.13.0
213
214
  // Custom view in the room, located above the video
214
215
  requireRoomForegroundView?: () => HTMLElement;
216
+ // 2.13.1
217
+ // Overall video screen configuration
218
+ videoScreenConfig?: {
219
+ objectFit?: "cover" | "contain" | "fill" // 视频画面显示模式,默认 "contain"
220
+ }
221
+ // Send Message Response
222
+ onSendMessageResult?: (response: { errCode: number, message: string, timestamp?: string }) => void
223
+ // Screen rotation Button
224
+ showRotatingScreenButton?: boolean;
225
+ // Screen rotation notification
226
+ onScreenRotation?: () => void
227
+ // User status updated
228
+ onUserStateUpdated?: (status: ZegoUserState) => void
229
+ // Member view config
230
+ memberViewConfig?: {
231
+ operationListCustomButton?: () => Element
232
+ }
233
+ }
234
+
235
+ export enum ZegoUserState {
236
+ Normal = "Normal",
237
+ Banned = "Banned"
215
238
  }
216
239
 
217
240
  export enum RightPanelExpandedType {
@@ -299,6 +322,8 @@ declare interface ZegoCallInvitationConfig {
299
322
  // Whether the whole call should end when the call originator leaves the call (causing other participants to leave together), The default value is false.
300
323
  // If it is set to false, the call can continue even if the initiator leaves.
301
324
  endCallWhenInitiatorLeave?: boolean;
325
+ // onTokenWillExpire 还未进房前需要监听
326
+ onTokenWillExpire?: () => void
302
327
  }
303
328
 
304
329
  declare interface ZegoSignalingPluginNotificationConfig {
@@ -323,10 +348,20 @@ declare enum MessagePriority {
323
348
  High = 3,
324
349
  }
325
350
 
326
- export enum ZegoUIKitLanguage {
351
+ declare enum ZegoUIKitLanguage {
327
352
  CHS = "zh-CN", // 中文
328
353
  ENGLISH = "en-US", // 英文
329
354
  }
355
+
356
+ declare interface ZegoUIKitCreateConfig {
357
+ cloudProxyConfig?: { proxyList: { hostName: string, port?: number }[] },
358
+ AiDenoiseConfig?: { mode: AiDenoiseMode }
359
+ }
360
+
361
+ declare enum AiDenoiseMode {
362
+ AI = 0,
363
+ AIBalanced = 1
364
+ }
330
365
  export declare class ZegoUIKitPrebuilt {
331
366
  static core: ZegoCloudRTCCore | undefined;
332
367
  static _instance: ZegoUIKitPrebuilt;
@@ -367,7 +402,7 @@ export declare class ZegoUIKitPrebuilt {
367
402
  userID: string,
368
403
  userName?: string
369
404
  ): string;
370
- static create(kitToken: string, cloudProxyConfig?: { proxyList: { hostName: string, port?: number }[] }): ZegoUIKitPrebuilt;
405
+ static create(kitToken: string, createConfig?: ZegoUIKitCreateConfig): ZegoUIKitPrebuilt;
371
406
  addPlugins(plugins?: { ZegoSuperBoardManager?: any; ZIM?: any }): void;
372
407
  joinRoom(roomConfig?: ZegoCloudRoomConfig): void;
373
408
  destroy(): void;
@@ -391,4 +426,8 @@ export declare class ZegoUIKitPrebuilt {
391
426
  getRoomID(): string;
392
427
  // 2.11.0
393
428
  updateCallingInvitationListConfig(config: CallingInvitationListConfig): void
429
+ // 2.13.0
430
+ rotateToLandscape(): void
431
+ rotateToPortrait(): void
432
+ renewToken(): boolean
394
433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zegocloud/zego-uikit-prebuilt",
3
- "version": "2.14.0",
3
+ "version": "2.14.1-beta",
4
4
  "description": "zegocloud prebuilt meeting webrtc sdk",
5
5
  "keywords": [
6
6
  "sdk",