@zegocloud/zego-uikit-prebuilt 1.3.10 → 1.3.12
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 +2 -1
- package/model/index.d.ts +2 -2
- package/modules/index.d.ts +3 -3
- package/package.json +1 -1
- package/view/pages/ZegoBrowserCheck/index.d.ts +6 -2
- package/view/pages/ZegoBrowserCheckMobile/index.d.ts +2 -2
- package/view/pages/ZegoRoomMobile/components/zegoUserVideo.d.ts +1 -0
- package/zego-uikit-prebuilt.js +45 -34
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Root } from "react-dom/client";
|
|
|
2
2
|
import { LiveRole, ScenarioModel, ZegoCloudRoomConfig } from "./model/index";
|
|
3
3
|
import { ZegoCloudRTCCore } from "./modules/index";
|
|
4
4
|
export declare class ZegoUIKitPrebuilt {
|
|
5
|
-
static core: ZegoCloudRTCCore;
|
|
5
|
+
static core: ZegoCloudRTCCore | undefined;
|
|
6
6
|
static _instance: ZegoUIKitPrebuilt;
|
|
7
7
|
static Host: LiveRole;
|
|
8
8
|
static Cohost: LiveRole;
|
|
@@ -11,6 +11,7 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
11
11
|
static GroupCall: ScenarioModel;
|
|
12
12
|
static LiveStreaming: ScenarioModel;
|
|
13
13
|
static VideoConference: ScenarioModel;
|
|
14
|
+
private hasJoinedRoom;
|
|
14
15
|
root: Root | undefined;
|
|
15
16
|
static create(token: string): ZegoUIKitPrebuilt;
|
|
16
17
|
joinRoom(roomConfig?: ZegoCloudRoomConfig): void;
|
package/model/index.d.ts
CHANGED
|
@@ -66,8 +66,8 @@ export interface ZegoCloudRoomConfig {
|
|
|
66
66
|
onUserJoin?: (user: ZegoUser[]) => void;
|
|
67
67
|
onUserLeave?: (user: ZegoUser[]) => void;
|
|
68
68
|
sharedLinks?: {
|
|
69
|
-
name
|
|
70
|
-
url
|
|
69
|
+
name?: string;
|
|
70
|
+
url?: string;
|
|
71
71
|
}[];
|
|
72
72
|
showScreenSharingButton?: boolean;
|
|
73
73
|
scenario?: {
|
package/modules/index.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ export declare class ZegoCloudRTCCore {
|
|
|
31
31
|
checkWebRTC(): Promise<boolean>;
|
|
32
32
|
_config: ZegoCloudRoomConfig;
|
|
33
33
|
setConfig(config: ZegoCloudRoomConfig): boolean;
|
|
34
|
-
setPin(userID?: string, pined?: boolean): void;
|
|
35
|
-
setMaxScreenNum(num: number): Promise<void>;
|
|
36
|
-
setSidebarLayOut(enable: boolean): Promise<void>;
|
|
34
|
+
setPin(userID?: string, pined?: boolean, stopUpdateUser?: boolean): void;
|
|
35
|
+
setMaxScreenNum(num: number, stopUpdateUser?: boolean): Promise<void>;
|
|
36
|
+
setSidebarLayOut(enable: boolean, stopUpdateUser?: boolean): Promise<void>;
|
|
37
37
|
setShowNonVideo(enable: boolean): Promise<void>;
|
|
38
38
|
_currentPage: "BrowserCheckPage" | "Room" | "RejoinRoom";
|
|
39
39
|
setCurrentPage(page: "BrowserCheckPage" | "Room" | "RejoinRoom"): void;
|
package/package.json
CHANGED
|
@@ -20,11 +20,12 @@ export declare class ZegoBrowserCheck extends React.Component<ZegoBrowserCheckPr
|
|
|
20
20
|
isJoining: boolean;
|
|
21
21
|
showNonVideo: boolean | undefined;
|
|
22
22
|
sharedLinks: {
|
|
23
|
-
name: string;
|
|
24
|
-
url: string;
|
|
23
|
+
name: string | undefined;
|
|
24
|
+
url: string | undefined;
|
|
25
25
|
copied: boolean;
|
|
26
26
|
}[] | undefined;
|
|
27
27
|
showZegoSettings: boolean;
|
|
28
|
+
isSmallSize: boolean;
|
|
28
29
|
};
|
|
29
30
|
videoRef: RefObject<HTMLVideoElement>;
|
|
30
31
|
inviteRef: RefObject<HTMLInputElement>;
|
|
@@ -32,6 +33,9 @@ export declare class ZegoBrowserCheck extends React.Component<ZegoBrowserCheckPr
|
|
|
32
33
|
videoRefuse: boolean;
|
|
33
34
|
constructor(props: ZegoBrowserCheckProp);
|
|
34
35
|
componentDidMount(): Promise<void>;
|
|
36
|
+
componentWillUnmount(): void;
|
|
37
|
+
onResize(): void;
|
|
38
|
+
throttleResize: () => void;
|
|
35
39
|
getDevices(): Promise<{
|
|
36
40
|
selectMic: string | undefined;
|
|
37
41
|
selectSpeaker: string | undefined;
|
|
@@ -12,8 +12,8 @@ export declare class ZegoBrowserCheckMobile extends React.Component<ZegoBrowserC
|
|
|
12
12
|
isVideoOpening: boolean;
|
|
13
13
|
isJoining: boolean;
|
|
14
14
|
sharedLinks: {
|
|
15
|
-
name: string;
|
|
16
|
-
url: string;
|
|
15
|
+
name: string | undefined;
|
|
16
|
+
url: string | undefined;
|
|
17
17
|
copied: boolean;
|
|
18
18
|
}[] | undefined;
|
|
19
19
|
};
|
|
@@ -12,6 +12,7 @@ export declare class ZegoUserVideo extends React.PureComponent<{
|
|
|
12
12
|
muted: boolean;
|
|
13
13
|
hiddenName?: boolean;
|
|
14
14
|
hiddenMore?: boolean;
|
|
15
|
+
bigVideo?: boolean;
|
|
15
16
|
}> {
|
|
16
17
|
static contextType?: React.Context<ShowManageType>;
|
|
17
18
|
context: React.ContextType<typeof ShowManageContext>;
|