@zegocloud/zego-uikit-prebuilt 2.2.0 → 2.3.0

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
@@ -106,7 +106,7 @@ declare interface ZegoCloudRoomConfig {
106
106
  frameRate?: number
107
107
  maxBitRate?: number
108
108
  // 2.2.0
109
- onError?: (errorCode: number) => string | undefined // custom screen sharing failure pop-up text or pop-up
109
+ onError?: (errorCode: number) => string | undefined // Screen sharing failure callback. If you need to customize the prompt text, you can return the corresponding string based on the error code. If you need to customize the UI, you can return an empty string.
110
110
  } // Screen sharing settings, resolution settings
111
111
 
112
112
  // 1.2 Prejoin view
@@ -346,4 +346,7 @@ export declare class ZegoUIKitPrebuilt {
346
346
  sendInRoomCustomCommand(command: object, priority?: MessagePriority): Promise<ZegoSignalingInRoomCommandMessage>;
347
347
  hangUp(): void;
348
348
  setLanguage(language: ZegoUIKitLanguage): void;
349
+ // 2.3.0
350
+ autoLeaveRoomWhenOnlySelfInRoom: boolean;
351
+ getRoomID(): string;
349
352
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zegocloud/zego-uikit-prebuilt",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "zegocloud prebuilt meeting webrtc sdk",
5
5
  "keywords": [
6
6
  "sdk",