@whereby.com/browser-sdk 3.30.2 → 3.31.0

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.
@@ -172,7 +172,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
172
172
  });
173
173
  VideoView.displayName = "VideoView";
174
174
 
175
- const browserSdkVersion = "3.30.2";
175
+ const browserSdkVersion = "3.31.0";
176
176
 
177
177
  const initialState$1 = {
178
178
  chatMessages: [],
@@ -315,6 +315,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
315
315
  const disableAudioDenoiser = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
316
316
  yield client.disableAudioDenoiser();
317
317
  }), [client]);
318
+ const askToTurnOnScreenshare = React__namespace.useCallback((participantId) => client.askToTurnOnScreenshare(participantId), [client]);
319
+ const stopParticipantScreenshare = React__namespace.useCallback((participantId) => client.stopParticipantScreenshare(participantId), [client]);
318
320
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
319
321
  return {
320
322
  state,
@@ -373,6 +375,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
373
375
  clearCameraEffect,
374
376
  enableAudioDenoiser,
375
377
  disableAudioDenoiser,
378
+ askToTurnOnScreenshare,
379
+ stopParticipantScreenshare,
376
380
  },
377
381
  };
378
382
  }
@@ -114,6 +114,8 @@ interface RoomConnectionActions {
114
114
  clearCameraEffect: () => Promise<void>;
115
115
  enableAudioDenoiser: () => Promise<void>;
116
116
  disableAudioDenoiser: () => Promise<void>;
117
+ askToTurnOnScreenshare: (participantId: string) => void;
118
+ stopParticipantScreenshare: (participantId: string) => void;
117
119
  }
118
120
 
119
121
  type RoomConnectionRef = {
@@ -151,7 +151,7 @@ const VideoView = React.forwardRef((_a, ref) => {
151
151
  });
152
152
  VideoView.displayName = "VideoView";
153
153
 
154
- const browserSdkVersion = "3.30.2";
154
+ const browserSdkVersion = "3.31.0";
155
155
 
156
156
  const initialState$1 = {
157
157
  chatMessages: [],
@@ -294,6 +294,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
294
294
  const disableAudioDenoiser = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
295
295
  yield client.disableAudioDenoiser();
296
296
  }), [client]);
297
+ const askToTurnOnScreenshare = React.useCallback((participantId) => client.askToTurnOnScreenshare(participantId), [client]);
298
+ const stopParticipantScreenshare = React.useCallback((participantId) => client.stopParticipantScreenshare(participantId), [client]);
297
299
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
298
300
  return {
299
301
  state,
@@ -352,6 +354,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
352
354
  clearCameraEffect,
353
355
  enableAudioDenoiser,
354
356
  disableAudioDenoiser,
357
+ askToTurnOnScreenshare,
358
+ stopParticipantScreenshare,
355
359
  },
356
360
  };
357
361
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.30.2",
3
+ "version": "3.31.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -66,15 +66,15 @@
66
66
  "eslint-plugin-storybook": "9.0.16",
67
67
  "@storybook/addon-docs": "^9.0.16",
68
68
  "@whereby.com/eslint-config": "0.1.0",
69
- "@whereby.com/jest-config": "0.1.0",
70
69
  "@whereby.com/prettier-config": "0.1.0",
70
+ "@whereby.com/jest-config": "0.1.0",
71
71
  "@whereby.com/rollup-config": "0.1.1",
72
72
  "@whereby.com/tsconfig": "0.1.0"
73
73
  },
74
74
  "dependencies": {
75
75
  "@radix-ui/react-popover": "^1.0.7",
76
- "@whereby.com/media": "11.0.0",
77
- "@whereby.com/core": "1.20.2",
76
+ "@whereby.com/media": "11.1.1",
77
+ "@whereby.com/core": "1.21.0",
78
78
  "clsx": "^2.1.1",
79
79
  "heresy": "^1.0.4",
80
80
  "runes": "^0.4.3"