@whereby.com/browser-sdk 3.17.0 → 3.18.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.
@@ -169,7 +169,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
169
169
  });
170
170
  VideoView.displayName = "VideoView";
171
171
 
172
- const browserSdkVersion = "3.17.0";
172
+ const browserSdkVersion = "3.18.1";
173
173
 
174
174
  const initialState$1 = {
175
175
  chatMessages: [],
@@ -231,6 +231,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
231
231
  }, [client]);
232
232
  const sendChatMessage = React__namespace.useCallback((text) => client.sendChatMessage(text), [client]);
233
233
  const knock = React__namespace.useCallback(() => client.knock(), [client]);
234
+ const cancelKnock = React__namespace.useCallback(() => client.cancelKnock(), [client]);
234
235
  const setDisplayName = React__namespace.useCallback((displayName) => client.setDisplayName(displayName), [client]);
235
236
  const toggleCamera = React__namespace.useCallback((enabled) => client.toggleCamera(enabled), [client]);
236
237
  const toggleMicrophone = React__namespace.useCallback((enabled) => client.toggleMicrophone(enabled), [client]);
@@ -274,6 +275,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
274
275
  askToTurnOnCamera,
275
276
  acceptWaitingParticipant,
276
277
  knock,
278
+ cancelKnock,
277
279
  joinRoom,
278
280
  leaveRoom,
279
281
  lockRoom,
@@ -62,6 +62,7 @@ interface RoomConnectionActions {
62
62
  askToTurnOnCamera: (participantId: string) => void;
63
63
  acceptWaitingParticipant: (participantId: string) => void;
64
64
  knock: () => void;
65
+ cancelKnock: () => void;
65
66
  joinRoom: () => Promise<RoomJoinedSuccess>;
66
67
  leaveRoom: () => void;
67
68
  lockRoom: (locked: boolean) => void;
@@ -147,7 +147,7 @@ const VideoView = React.forwardRef((_a, ref) => {
147
147
  });
148
148
  VideoView.displayName = "VideoView";
149
149
 
150
- const browserSdkVersion = "3.17.0";
150
+ const browserSdkVersion = "3.18.1";
151
151
 
152
152
  const initialState$1 = {
153
153
  chatMessages: [],
@@ -209,6 +209,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
209
209
  }, [client]);
210
210
  const sendChatMessage = React.useCallback((text) => client.sendChatMessage(text), [client]);
211
211
  const knock = React.useCallback(() => client.knock(), [client]);
212
+ const cancelKnock = React.useCallback(() => client.cancelKnock(), [client]);
212
213
  const setDisplayName = React.useCallback((displayName) => client.setDisplayName(displayName), [client]);
213
214
  const toggleCamera = React.useCallback((enabled) => client.toggleCamera(enabled), [client]);
214
215
  const toggleMicrophone = React.useCallback((enabled) => client.toggleMicrophone(enabled), [client]);
@@ -252,6 +253,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
252
253
  askToTurnOnCamera,
253
254
  acceptWaitingParticipant,
254
255
  knock,
256
+ cancelKnock,
255
257
  joinRoom,
256
258
  leaveRoom,
257
259
  lockRoom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.17.0",
3
+ "version": "3.18.1",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@radix-ui/react-popover": "^1.0.7",
77
- "@whereby.com/media": "2.6.0",
78
- "@whereby.com/core": "1.4.1",
77
+ "@whereby.com/media": "2.6.2",
78
+ "@whereby.com/core": "1.5.1",
79
79
  "clsx": "^2.1.1",
80
80
  "heresy": "^1.0.4",
81
81
  "runes": "^0.4.3"