@whereby.com/browser-sdk 3.23.0 → 3.24.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.23.0";
175
+ const browserSdkVersion = "3.24.0";
176
176
 
177
177
  const initialState$1 = {
178
178
  chatMessages: [],
@@ -275,6 +275,12 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
275
275
  const clearCameraEffect = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
276
276
  yield client.clearCameraEffect();
277
277
  }), [client]);
278
+ const enableAudioDenoiser = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
279
+ yield client.enableAudioDenoiser();
280
+ }), [client]);
281
+ const disableAudioDenoiser = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
282
+ yield client.disableAudioDenoiser();
283
+ }), [client]);
278
284
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
279
285
  return {
280
286
  state,
@@ -315,6 +321,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
315
321
  switchCameraEffect,
316
322
  switchCameraEffectCustom,
317
323
  clearCameraEffect,
324
+ enableAudioDenoiser,
325
+ disableAudioDenoiser,
318
326
  },
319
327
  };
320
328
  }
@@ -2318,6 +2326,14 @@ function Grid({ renderParticipant, renderFloatingParticipant, stageParticipantLi
2318
2326
  React__namespace.createElement(VideoStageLayout, { containerFrame: containerFrame, floatingContent: floatingContent, layoutVideoStage: videoStage, presentationGridContent: presentationGridContent, gridContent: gridContent, subgridContent: subgridContent }))));
2319
2327
  }
2320
2328
 
2329
+ Object.defineProperty(exports, "getUsableCameraEffectPresets", {
2330
+ enumerable: true,
2331
+ get: function () { return core.getUsableCameraEffectPresets; }
2332
+ });
2333
+ Object.defineProperty(exports, "isAudioDenoiserSupported", {
2334
+ enumerable: true,
2335
+ get: function () { return core.isAudioDenoiserSupported; }
2336
+ });
2321
2337
  exports.GridCell = GridCell;
2322
2338
  exports.GridVideoView = GridVideoView;
2323
2339
  exports.ParticipantMenu = ParticipantMenu;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { LocalMediaState, LocalMediaOptions, RoomJoinedSuccess, RoomConnectionState, NotificationsEventEmitter, ClientView } from '@whereby.com/core';
3
- export { BreakoutState as Breakout, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, RemoteParticipantState as RemoteParticipant, RoomConnectionState as RoomConnection, ScreenshareState as Screenshare, WaitingParticipantState as WaitingParticipant } from '@whereby.com/core';
3
+ export { BreakoutState as Breakout, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, RemoteParticipantState as RemoteParticipant, RoomConnectionState as RoomConnection, ScreenshareState as Screenshare, WaitingParticipantState as WaitingParticipant, getUsableCameraEffectPresets, isAudioDenoiserSupported } from '@whereby.com/core';
4
4
  import * as _radix_ui_react_popover from '@radix-ui/react-popover';
5
5
  import { PopoverProps } from '@radix-ui/react-popover';
6
6
 
@@ -93,6 +93,8 @@ interface RoomConnectionActions {
93
93
  switchCameraEffect: (effectId: string) => Promise<void>;
94
94
  switchCameraEffectCustom: (imageUrl: string) => Promise<void>;
95
95
  clearCameraEffect: () => Promise<void>;
96
+ enableAudioDenoiser: () => Promise<void>;
97
+ disableAudioDenoiser: () => Promise<void>;
96
98
  }
97
99
 
98
100
  type RoomConnectionRef = {
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { WherebyClient, CURRENT_SPEAKER_CHANGED, debounce } from '@whereby.com/core';
3
+ export { getUsableCameraEffectPresets, isAudioDenoiserSupported } from '@whereby.com/core';
3
4
  import runes from 'runes';
4
5
  import * as PopoverPrimitive from '@radix-ui/react-popover';
5
6
 
@@ -150,7 +151,7 @@ const VideoView = React.forwardRef((_a, ref) => {
150
151
  });
151
152
  VideoView.displayName = "VideoView";
152
153
 
153
- const browserSdkVersion = "3.23.0";
154
+ const browserSdkVersion = "3.24.0";
154
155
 
155
156
  const initialState$1 = {
156
157
  chatMessages: [],
@@ -253,6 +254,12 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
253
254
  const clearCameraEffect = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
254
255
  yield client.clearCameraEffect();
255
256
  }), [client]);
257
+ const enableAudioDenoiser = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
258
+ yield client.enableAudioDenoiser();
259
+ }), [client]);
260
+ const disableAudioDenoiser = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
261
+ yield client.disableAudioDenoiser();
262
+ }), [client]);
256
263
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
257
264
  return {
258
265
  state,
@@ -293,6 +300,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
293
300
  switchCameraEffect,
294
301
  switchCameraEffectCustom,
295
302
  clearCameraEffect,
303
+ enableAudioDenoiser,
304
+ disableAudioDenoiser,
296
305
  },
297
306
  };
298
307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.23.0",
3
+ "version": "3.24.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -65,7 +65,6 @@
65
65
  "typescript": "^5.8.3",
66
66
  "eslint-plugin-storybook": "9.0.16",
67
67
  "@storybook/addon-docs": "^9.0.16",
68
- "@whereby.com/camera-effects": "1.1.1",
69
68
  "@whereby.com/eslint-config": "0.1.0",
70
69
  "@whereby.com/jest-config": "0.1.0",
71
70
  "@whereby.com/prettier-config": "0.1.0",
@@ -75,7 +74,7 @@
75
74
  "dependencies": {
76
75
  "@radix-ui/react-popover": "^1.0.7",
77
76
  "@whereby.com/media": "9.2.4",
78
- "@whereby.com/core": "1.12.1",
77
+ "@whereby.com/core": "1.13.0",
79
78
  "clsx": "^2.1.1",
80
79
  "heresy": "^1.0.4",
81
80
  "runes": "^0.4.3"