@zegocloud/zego-uikit-prebuilt 2.14.0 → 2.14.1
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 +31 -1
- package/package.json +1 -1
- package/zego-uikit-prebuilt.js +1 -1
- package/zego-uikit-prebuilt.js.LICENSE.txt +1 -330
package/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ZegoUIKitCreateConfig } from "../src/sdk/model";
|
|
2
|
+
|
|
1
3
|
declare type ZegoCloudRTCCore = {};
|
|
2
4
|
declare type ZegoExpressEngine = {};
|
|
3
5
|
declare interface ZegoUser {
|
|
@@ -212,6 +214,28 @@ declare interface ZegoCloudRoomConfig {
|
|
|
212
214
|
// 2.13.0
|
|
213
215
|
// Custom view in the room, located above the video
|
|
214
216
|
requireRoomForegroundView?: () => HTMLElement;
|
|
217
|
+
// 2.13.1
|
|
218
|
+
// Overall video screen configuration
|
|
219
|
+
videoScreenConfig?: {
|
|
220
|
+
objectFit?: "cover" | "contain" | "fill" // 视频画面显示模式,默认 "contain"
|
|
221
|
+
}
|
|
222
|
+
// Send Message Response
|
|
223
|
+
onSendMessageResult?: (response: { errCode: number, message: string, timestamp?: string }) => void
|
|
224
|
+
// Screen rotation Button
|
|
225
|
+
showRotatingScreenButton?: boolean;
|
|
226
|
+
// Screen rotation notification
|
|
227
|
+
onScreenRotation?: () => void
|
|
228
|
+
// User status updated
|
|
229
|
+
onUserStateUpdated?: (status: ZegoUserState) => void
|
|
230
|
+
// Member view config
|
|
231
|
+
memberViewConfig?: {
|
|
232
|
+
operationListCustomButton?: () => Element
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export enum ZegoUserState {
|
|
237
|
+
Normal = "Normal",
|
|
238
|
+
Banned = "Banned"
|
|
215
239
|
}
|
|
216
240
|
|
|
217
241
|
export enum RightPanelExpandedType {
|
|
@@ -299,6 +323,8 @@ declare interface ZegoCallInvitationConfig {
|
|
|
299
323
|
// 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
324
|
// If it is set to false, the call can continue even if the initiator leaves.
|
|
301
325
|
endCallWhenInitiatorLeave?: boolean;
|
|
326
|
+
// onTokenWillExpire 还未进房前需要监听
|
|
327
|
+
onTokenWillExpire?: () => void
|
|
302
328
|
}
|
|
303
329
|
|
|
304
330
|
declare interface ZegoSignalingPluginNotificationConfig {
|
|
@@ -367,7 +393,7 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
367
393
|
userID: string,
|
|
368
394
|
userName?: string
|
|
369
395
|
): string;
|
|
370
|
-
static create(kitToken: string,
|
|
396
|
+
static create(kitToken: string, createConfig?: ZegoUIKitCreateConfig): ZegoUIKitPrebuilt;
|
|
371
397
|
addPlugins(plugins?: { ZegoSuperBoardManager?: any; ZIM?: any }): void;
|
|
372
398
|
joinRoom(roomConfig?: ZegoCloudRoomConfig): void;
|
|
373
399
|
destroy(): void;
|
|
@@ -391,4 +417,8 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
391
417
|
getRoomID(): string;
|
|
392
418
|
// 2.11.0
|
|
393
419
|
updateCallingInvitationListConfig(config: CallingInvitationListConfig): void
|
|
420
|
+
// 2.13.0
|
|
421
|
+
rotateToLandscape(): void
|
|
422
|
+
rotateToPortrait(): void
|
|
423
|
+
renewToken(): boolean
|
|
394
424
|
}
|