@zegocloud/zego-uikit-prebuilt 1.10.2 → 1.10.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.
package/index.d.ts CHANGED
@@ -72,10 +72,12 @@ declare enum ConsoleLevel {
72
72
  None = "None",
73
73
  }
74
74
  declare interface InRoomMessageInfo {
75
- fromUser: ZegoUser;
76
- message: string;
77
- sendTime: number;
78
- messageID: number;
75
+ fromUser: ZegoUser
76
+ message: string
77
+ sendTime: number
78
+ messageID: number
79
+ attrs?: any
80
+ status?: "SENDING" | "SENDED" | "FAILED"
79
81
  }
80
82
  declare enum ScreenSharingResolution {
81
83
  _360P = "360p",
@@ -90,85 +92,87 @@ declare enum ScreenSharingResolution {
90
92
  declare interface ZegoCloudRoomConfig {
91
93
  // 1 UI controls
92
94
  // 1.1 Global
93
- container?: HTMLElement | undefined | null; // Component container.
94
- maxUsers?: number; // In-call participants range from [2 - 20]. The default value is unlimited.
95
+ container?: HTMLElement | undefined | null // Component container.
96
+ maxUsers?: number // In-call participants range from [2 - 20]. The default value is unlimited.
95
97
  scenario?: {
96
- mode?: ScenarioModel; // Scenario selection.
97
- config?: ScenarioConfig[ScenarioModel]; // Specific configurations in the corresponding scenario.
98
- };
99
- console?: ConsoleLevel; // Used to problem localization, not a regular setup. While setting this can decide what severity of logs you want to print.
98
+ mode?: ScenarioModel // Scenario selection.
99
+ config?: ScenarioConfig[ScenarioModel] // Specific configurations in the corresponding scenario.
100
+ }
101
+ console?: ConsoleLevel // Used to problem localization, not a regular setup. While setting this can decide what severity of logs you want to print.
100
102
  screenSharingConfig?: {
101
- resolution?: ScreenSharingResolution;
102
- width?: number;
103
- height?: number;
104
- frameRate?: number;
105
- maxBitRate?: number;
106
- }; // Screen sharing settings, resolution settings
103
+ resolution?: ScreenSharingResolution
104
+ width?: number
105
+ height?: number
106
+ frameRate?: number
107
+ maxBitRate?: number
108
+ } // Screen sharing settings, resolution settings
107
109
 
108
110
  // 1.2 Prejoin view
109
- showPreJoinView?: boolean; // Whether to display the prejoin view. Displayed by default.
111
+ showPreJoinView?: boolean // Whether to display the prejoin view. Displayed by default.
110
112
  preJoinViewConfig?: {
111
- title?: string; // The title of the prejoin view. Uses "enter Room" by default.
112
- };
113
- turnOnMicrophoneWhenJoining?: boolean; // Whether to enable the microphone when joining the call. Enabled by default.
114
- turnOnCameraWhenJoining?: boolean; // Whether to enable the camera when joining the call. Enabled by default.
115
- useFrontFacingCamera?: boolean; // Whether to use the front-facing camera when joining the room. Uses a front-facing camera by default.
116
- videoResolutionDefault?: VideoResolution; // The default video resolution.
117
- enableStereo?: boolean; // Whether to enable stereo, disenabled by default.
113
+ title?: string // The title of the prejoin view. Uses "enter Room" by default.
114
+ }
115
+ turnOnMicrophoneWhenJoining?: boolean // Whether to enable the microphone when joining the call. Enabled by default.
116
+ turnOnCameraWhenJoining?: boolean // Whether to enable the camera when joining the call. Enabled by default.
117
+ useFrontFacingCamera?: boolean // Whether to use the front-facing camera when joining the room. Uses a front-facing camera by default.
118
+ videoResolutionDefault?: VideoResolution // The default video resolution.
119
+ enableStereo?: boolean // Whether to enable stereo, disenabled by default.
118
120
 
119
121
  // 1.3 Room view
120
- showRoomDetailsButton?: boolean; // Whether to display room details. Displayed by default
121
- showRoomTimer?: boolean; // Whether to display the timer. Not displayed by default.
122
- showMyCameraToggleButton?: boolean; // Whether to display the button for toggling my camera. Displayed by default.
123
- showMyMicrophoneToggleButton?: boolean; // Whether to display the button for toggling my microphone. Displayed by default.
124
- showAudioVideoSettingsButton?: boolean; // Whether to display the button for audio and video settings. Displayed by default.
125
- showTurnOffRemoteCameraButton?: boolean; /// Whether to display the button for turning off the remote camera. Not displayed by default.
126
- showTurnOffRemoteMicrophoneButton?: boolean; // Whether to display the button for turning off the remote microphone. Not displayed by default.
127
- showTextChat?: boolean; // Whether to display the text chat interface on the right side. Displayed by default.
128
- showUserList?: boolean; // Whether to display the participant list. Displayed by default.
129
- showRemoveUserButton?: boolean; // Whether to display the button for removing participants. Not displayed by default.
122
+ showRoomDetailsButton?: boolean // Whether to display room details. Displayed by default
123
+ showRoomTimer?: boolean // Whether to display the timer. Not displayed by default.
124
+ showMyCameraToggleButton?: boolean // Whether to display the button for toggling my camera. Displayed by default.
125
+ showMyMicrophoneToggleButton?: boolean // Whether to display the button for toggling my microphone. Displayed by default.
126
+ showAudioVideoSettingsButton?: boolean // Whether to display the button for audio and video settings. Displayed by default.
127
+ showTurnOffRemoteCameraButton?: boolean /// Whether to display the button for turning off the remote camera. Not displayed by default.
128
+ showTurnOffRemoteMicrophoneButton?: boolean // Whether to display the button for turning off the remote microphone. Not displayed by default.
129
+ showTextChat?: boolean // Whether to display the text chat interface on the right side. Displayed by default.
130
+ showUserList?: boolean // Whether to display the participant list. Displayed by default.
131
+ showRemoveUserButton?: boolean // Whether to display the button for removing participants. Not displayed by default.
130
132
  lowerLeftNotification?: {
131
- showUserJoinAndLeave?: boolean; // Whether to display notifications on the lower left area when participants join and leave the room. Displayed by default.
132
- showTextChat?: boolean; // Whether to display the latest messages on the lower left area. Displayed by default.
133
- };
133
+ showUserJoinAndLeave?: boolean // Whether to display notifications on the lower left area when participants join and leave the room. Displayed by default.
134
+ showTextChat?: boolean // Whether to display the latest messages on the lower left area. Displayed by default.
135
+ }
134
136
  branding?: {
135
- logoURL?: string; // The branding LOGO URL.
136
- };
137
- layout?: "Sidebar" | "Grid" | "Auto"; // The layout modes. Uses the Auto mode by default.
138
- showLayoutButton?: boolean; // Whether to display the button for switching layouts. Displayed by default.
139
- showNonVideoUser?: boolean; // Whether to display the non-video participants. Displayed by default.
140
- showOnlyAudioUser?: boolean; // Whether to display audio-only participants. Displayed by default.
141
- sharedLinks?: { name?: string; url?: string }[]; // Description of the generated shared links.
142
- showScreenSharingButton?: boolean; // Whether to display the Screen Sharing button. Displayed by default.
143
- showPinButton?: boolean; // Whether to display the Pin button. Displayed by default.
137
+ logoURL?: string // The branding LOGO URL.
138
+ }
139
+ layout?: "Sidebar" | "Grid" | "Auto" // The layout modes. Uses the Auto mode by default.
140
+ showLayoutButton?: boolean // Whether to display the button for switching layouts. Displayed by default.
141
+ showNonVideoUser?: boolean // Whether to display the non-video participants. Displayed by default.
142
+ showOnlyAudioUser?: boolean // Whether to display audio-only participants. Displayed by default.
143
+ sharedLinks?: { name?: string; url?: string }[] // Description of the generated shared links.
144
+ showScreenSharingButton?: boolean // Whether to display the Screen Sharing button. Displayed by default.
145
+ showPinButton?: boolean // Whether to display the Pin button. Displayed by default.
144
146
  whiteboardConfig?: {
145
- showAddImageButton?: boolean; // It's set to false by default. To use this feature, activate the File Sharing feature, and then import the plugin. Otherwise, this prompt will occur: "Failed to add image, this feature is not supported."
146
- showCreateAndCloseButton?: boolean; // Whether to display the button that is used to create/turn off the whiteboard. Displayed by default.
147
- };
148
- showInviteToCohostButton?: boolean; // Whether to show the button that is used to invite the audience to co-host on the host end.
149
- showRemoveCohostButton?: boolean; // Whether to show the button that is used to remove the audience on the host end.
150
- showRequestToCohostButton?: boolean; // Whether to show the button that is used to request to co-host on the audience end.
151
- rightPanelExpandedType?: RightPanelExpandedType; // Controls the type of the information displayed on the right panel, display "None" by default.
152
- autoHideFooter?: boolean; // Whether to enable the footer auto-hide feature, enabled by default.
153
- enableUserSearch?: boolean; // Whether to enable the user search feature, false by default.
147
+ showAddImageButton?: boolean // It's set to false by default. To use this feature, activate the File Sharing feature, and then import the plugin. Otherwise, this prompt will occur: "Failed to add image, this feature is not supported."
148
+ showCreateAndCloseButton?: boolean // Whether to display the button that is used to create/turn off the whiteboard. Displayed by default.
149
+ }
150
+ showInviteToCohostButton?: boolean // Whether to show the button that is used to invite the audience to co-host on the host end.
151
+ showRemoveCohostButton?: boolean // Whether to show the button that is used to remove the audience on the host end.
152
+ showRequestToCohostButton?: boolean // Whether to show the button that is used to request to co-host on the audience end.
153
+ rightPanelExpandedType?: RightPanelExpandedType // Controls the type of the information displayed on the right panel, display "None" by default.
154
+ autoHideFooter?: boolean // Whether to enable the footer auto-hide feature, enabled by default.
155
+ enableUserSearch?: boolean // Whether to enable the user search feature, false by default.
154
156
  // 1.4 Leaving view
155
- showLeavingView?: boolean; // Whether to display the leaving view. Displayed by default.
156
- showLeaveRoomConfirmDialog?: boolean; // When leaving the room, whether to display a confirmation pop-up window, the default is true
157
+ showLeavingView?: boolean // Whether to display the leaving view. Displayed by default.
158
+ showLeaveRoomConfirmDialog?: boolean // When leaving the room, whether to display a confirmation pop-up window, the default is true
157
159
 
158
160
  // 2 Related event callbacks
159
- onJoinRoom?: () => void; // Callback for participants join the room.
160
- onLeaveRoom?: () => void; // Callback for participants exits the room.
161
- onUserJoin?: (users: ZegoUser[]) => void; // Callback for other participants join the call.
162
- onUserLeave?: (users: ZegoUser[]) => void; // Callback for other participants leave the call.
163
- onUserAvatarSetter?: (user: ZegoUser[]) => void; // Callback for the user avatar can be set.
164
- onLiveStart?: (user: ZegoUser) => void; // Callback for livestream starts.
165
- onLiveEnd?: (user: ZegoUser) => void; // Callback for livestream ends.
166
- onYouRemovedFromRoom?: () => void; // Callback for me removed from the room.
167
- onInRoomMessageReceived?: (messageInfo: InRoomMessageInfo) => void; // Callback for room chat message
168
- onInRoomCommandReceived?: (fromUser: ZegoUser, command: string) => void; // Callback for room command message
169
- onInRoomTextMessageReceived?: (messages: ZegoSignalingInRoomTextMessage[]) => void; // Callback for room signaling text message
170
- onInRoomCustomCommandReceived?: (command: ZegoSignalingInRoomCommandMessage[]) => void; // Callback for room custom command message
171
- onReturnToHomeScreenClicked?: () => void; // Callback for click return to home screen button.
161
+ onJoinRoom?: () => void // Callback for participants join the room.
162
+ onLeaveRoom?: () => void // Callback for participants exits the room.
163
+ onUserJoin?: (users: ZegoUser[]) => void // Callback for other participants join the call.
164
+ onUserLeave?: (users: ZegoUser[]) => void // Callback for other participants leave the call.
165
+ onUserAvatarSetter?: (user: ZegoUser[]) => void // Callback for the user avatar can be set.
166
+ onLiveStart?: (user: ZegoUser) => void // Callback for livestream starts.
167
+ onLiveEnd?: (user: ZegoUser) => void // Callback for livestream ends.
168
+ onYouRemovedFromRoom?: () => void // Callback for me removed from the room.
169
+ onInRoomMessageReceived?: (messageInfo: InRoomMessageInfo) => void // Callback for room chat message
170
+ onInRoomCommandReceived?: (fromUser: ZegoUser, command: string) => void // Callback for room command message
171
+ onInRoomTextMessageReceived?: (messages: ZegoSignalingInRoomTextMessage[]) => void // Callback for room signaling text message
172
+ onInRoomCustomCommandReceived?: (command: ZegoSignalingInRoomCommandMessage[]) => void // Callback for room custom command message
173
+ onReturnToHomeScreenClicked?: () => void // Callback for click return to home screen button.
174
+ addInRoomMessageMessageAttributes?: () => any // add in room message message attribute. return custom message attribute.
175
+ customMessageUI?: (msg: InRoomMessageInfo) => Element // Custom message UI. need return Element.
172
176
  }
173
177
 
174
178
  export enum RightPanelExpandedType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zegocloud/zego-uikit-prebuilt",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "description": "zegocloud prebuilt meeting webrtc sdk",
5
5
  "keywords": [
6
6
  "sdk",