@whereby.com/browser-sdk 3.7.5 → 3.8.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/dist/cdn/v3-embed.js +1 -1
- package/dist/cdn/v3-react.js +1 -1
- package/dist/react/index.d.ts +22 -22
- package/dist/react/index.esm.js +2 -2
- package/package.json +2 -2
package/dist/react/index.d.ts
CHANGED
|
@@ -111,28 +111,28 @@ interface UseRoomConnectionOptions extends Omit<RoomConnectionOptions, "localMed
|
|
|
111
111
|
localMedia?: UseLocalMediaResult;
|
|
112
112
|
}
|
|
113
113
|
interface RoomConnectionActions {
|
|
114
|
-
toggleLowDataMode(enabled?: boolean)
|
|
115
|
-
toggleRaiseHand(enabled?: boolean)
|
|
116
|
-
askToSpeak(participantId: string)
|
|
117
|
-
acceptWaitingParticipant(participantId: string)
|
|
118
|
-
knock()
|
|
119
|
-
joinRoom()
|
|
120
|
-
leaveRoom()
|
|
121
|
-
lockRoom(locked: boolean)
|
|
122
|
-
muteParticipants(clientIds: string[])
|
|
123
|
-
kickParticipant(clientId: string)
|
|
124
|
-
endMeeting(stayBehind?: boolean)
|
|
125
|
-
rejectWaitingParticipant(participantId: string)
|
|
126
|
-
sendChatMessage(text: string)
|
|
127
|
-
setDisplayName(displayName: string)
|
|
128
|
-
startCloudRecording()
|
|
129
|
-
startScreenshare()
|
|
130
|
-
stopCloudRecording()
|
|
131
|
-
stopScreenshare()
|
|
132
|
-
toggleCamera(enabled?: boolean)
|
|
133
|
-
toggleMicrophone(enabled?: boolean)
|
|
134
|
-
spotlightParticipant(clientId: string)
|
|
135
|
-
removeSpotlight(clientId: string)
|
|
114
|
+
toggleLowDataMode: (enabled?: boolean) => void;
|
|
115
|
+
toggleRaiseHand: (enabled?: boolean) => void;
|
|
116
|
+
askToSpeak: (participantId: string) => void;
|
|
117
|
+
acceptWaitingParticipant: (participantId: string) => void;
|
|
118
|
+
knock: () => void;
|
|
119
|
+
joinRoom: () => void;
|
|
120
|
+
leaveRoom: () => void;
|
|
121
|
+
lockRoom: (locked: boolean) => void;
|
|
122
|
+
muteParticipants: (clientIds: string[]) => void;
|
|
123
|
+
kickParticipant: (clientId: string) => void;
|
|
124
|
+
endMeeting: (stayBehind?: boolean) => void;
|
|
125
|
+
rejectWaitingParticipant: (participantId: string) => void;
|
|
126
|
+
sendChatMessage: (text: string) => void;
|
|
127
|
+
setDisplayName: (displayName: string) => void;
|
|
128
|
+
startCloudRecording: () => void;
|
|
129
|
+
startScreenshare: () => void;
|
|
130
|
+
stopCloudRecording: () => void;
|
|
131
|
+
stopScreenshare: () => void;
|
|
132
|
+
toggleCamera: (enabled?: boolean) => void;
|
|
133
|
+
toggleMicrophone: (enabled?: boolean) => void;
|
|
134
|
+
spotlightParticipant: (clientId: string) => void;
|
|
135
|
+
removeSpotlight: (clientId: string) => void;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
type RoomConnectionRef = {
|
package/dist/react/index.esm.js
CHANGED
|
@@ -146,7 +146,7 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
|
|
|
146
146
|
return state;
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
const browserSdkVersion = "3.
|
|
149
|
+
const browserSdkVersion = "3.8.1";
|
|
150
150
|
|
|
151
151
|
const defaultRoomConnectionOptions = {
|
|
152
152
|
localMediaOptions: {
|
|
@@ -198,7 +198,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
198
198
|
const stopCloudRecording = React.useCallback(() => whenConnectedToRoom(() => doStopCloudRecording()), [whenConnectedToRoom]);
|
|
199
199
|
const stopScreenshare = React.useCallback(() => whenConnectedToRoom(() => doStopScreenshare()), [whenConnectedToRoom]);
|
|
200
200
|
const joinRoom = React.useCallback(() => dispatch(doAppStart(roomConfig)), [dispatch]);
|
|
201
|
-
const leaveRoom = React.useCallback(() =>
|
|
201
|
+
const leaveRoom = React.useCallback(() => dispatch(doAppStop()), [dispatch]);
|
|
202
202
|
const lockRoom = React.useCallback((locked) => whenConnectedToRoom(() => doLockRoom({ locked })), [whenConnectedToRoom]);
|
|
203
203
|
const muteParticipants = React.useCallback((participantIds) => whenConnectedToRoom(() => doRequestAudioEnable({ clientIds: participantIds, enable: false })), [whenConnectedToRoom]);
|
|
204
204
|
const spotlightParticipant = React.useCallback((participantId) => whenConnectedToRoom(() => doSpotlightParticipant({ id: participantId })), [whenConnectedToRoom]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/browser-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Modules for integration Whereby video in web apps",
|
|
5
5
|
"author": "Whereby AS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@radix-ui/react-popover": "^1.0.7",
|
|
81
81
|
"@reduxjs/toolkit": "^2.2.3",
|
|
82
|
-
"@whereby.com/core": "0.25.
|
|
82
|
+
"@whereby.com/core": "0.25.1",
|
|
83
83
|
"clsx": "^2.1.1",
|
|
84
84
|
"heresy": "^1.0.4",
|
|
85
85
|
"react-redux": "^9.1.1",
|