@whereby.com/browser-sdk 3.23.0 → 3.25.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,10 +172,11 @@ 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.25.0";
176
176
 
177
177
  const initialState$1 = {
178
178
  chatMessages: [],
179
+ fileUploads: [],
179
180
  cloudRecording: undefined,
180
181
  breakout: {
181
182
  isActive: false,
@@ -237,6 +238,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
237
238
  }, [client]);
238
239
  const sendChatMessage = React__namespace.useCallback((text, parentId) => client.sendChatMessage(text, parentId), [client]);
239
240
  const removeChatMessage = React__namespace.useCallback((id, sig) => client.removeChatMessage(id, sig), [client]);
241
+ const sendFiles = React__namespace.useCallback((files) => client.sendFiles(files), [client]);
242
+ const downloadFile = React__namespace.useCallback((file) => client.downloadFile(file), [client]);
240
243
  const knock = React__namespace.useCallback(() => client.knock(), [client]);
241
244
  const cancelKnock = React__namespace.useCallback(() => client.cancelKnock(), [client]);
242
245
  const setDisplayName = React__namespace.useCallback((displayName) => client.setDisplayName(displayName), [client]);
@@ -275,6 +278,12 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
275
278
  const clearCameraEffect = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
276
279
  yield client.clearCameraEffect();
277
280
  }), [client]);
281
+ const enableAudioDenoiser = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
282
+ yield client.enableAudioDenoiser();
283
+ }), [client]);
284
+ const disableAudioDenoiser = React__namespace.useCallback(() => __awaiter(this, void 0, void 0, function* () {
285
+ yield client.disableAudioDenoiser();
286
+ }), [client]);
278
287
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
279
288
  return {
280
289
  state,
@@ -295,6 +304,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
295
304
  rejectWaitingParticipant,
296
305
  sendChatMessage,
297
306
  removeChatMessage,
307
+ sendFiles,
308
+ downloadFile,
298
309
  setDisplayName,
299
310
  startCloudRecording,
300
311
  startLiveTranscription,
@@ -315,6 +326,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
315
326
  switchCameraEffect,
316
327
  switchCameraEffectCustom,
317
328
  clearCameraEffect,
329
+ enableAudioDenoiser,
330
+ disableAudioDenoiser,
318
331
  },
319
332
  };
320
333
  }
@@ -2318,6 +2331,26 @@ function Grid({ renderParticipant, renderFloatingParticipant, stageParticipantLi
2318
2331
  React__namespace.createElement(VideoStageLayout, { containerFrame: containerFrame, floatingContent: floatingContent, layoutVideoStage: videoStage, presentationGridContent: presentationGridContent, gridContent: gridContent, subgridContent: subgridContent }))));
2319
2332
  }
2320
2333
 
2334
+ Object.defineProperty(exports, "ACCEPTED_FILE_TYPES", {
2335
+ enumerable: true,
2336
+ get: function () { return core.ACCEPTED_FILE_TYPES; }
2337
+ });
2338
+ Object.defineProperty(exports, "MAX_FILES_PER_UPLOAD", {
2339
+ enumerable: true,
2340
+ get: function () { return core.MAX_FILES_PER_UPLOAD; }
2341
+ });
2342
+ Object.defineProperty(exports, "MAX_FILE_SIZE", {
2343
+ enumerable: true,
2344
+ get: function () { return core.MAX_FILE_SIZE; }
2345
+ });
2346
+ Object.defineProperty(exports, "getUsableCameraEffectPresets", {
2347
+ enumerable: true,
2348
+ get: function () { return core.getUsableCameraEffectPresets; }
2349
+ });
2350
+ Object.defineProperty(exports, "isAudioDenoiserSupported", {
2351
+ enumerable: true,
2352
+ get: function () { return core.isAudioDenoiserSupported; }
2353
+ });
2321
2354
  exports.GridCell = GridCell;
2322
2355
  exports.GridVideoView = GridVideoView;
2323
2356
  exports.ParticipantMenu = ParticipantMenu;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
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';
2
+ import { LocalMediaState, LocalMediaOptions, RoomJoinedSuccess, ChatFileShare, RoomConnectionState, NotificationsEventEmitter, ClientView } from '@whereby.com/core';
3
+ export { ACCEPTED_FILE_TYPES, BreakoutState as Breakout, ChatFileShare, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, FileShareError, FileUpload, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, 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
 
@@ -73,6 +73,8 @@ interface RoomConnectionActions {
73
73
  rejectWaitingParticipant: (participantId: string) => void;
74
74
  sendChatMessage: (text: string, parentId?: string) => void;
75
75
  removeChatMessage: (id: string, sig?: string | null) => void;
76
+ sendFiles: (files: File[]) => void;
77
+ downloadFile: (file: ChatFileShare) => Promise<Blob>;
76
78
  setDisplayName: (displayName: string) => void;
77
79
  startCloudRecording: () => void;
78
80
  startLiveTranscription: () => void;
@@ -93,6 +95,8 @@ interface RoomConnectionActions {
93
95
  switchCameraEffect: (effectId: string) => Promise<void>;
94
96
  switchCameraEffectCustom: (imageUrl: string) => Promise<void>;
95
97
  clearCameraEffect: () => Promise<void>;
98
+ enableAudioDenoiser: () => Promise<void>;
99
+ disableAudioDenoiser: () => Promise<void>;
96
100
  }
97
101
 
98
102
  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 { ACCEPTED_FILE_TYPES, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, 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,10 +151,11 @@ 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.25.0";
154
155
 
155
156
  const initialState$1 = {
156
157
  chatMessages: [],
158
+ fileUploads: [],
157
159
  cloudRecording: undefined,
158
160
  breakout: {
159
161
  isActive: false,
@@ -215,6 +217,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
215
217
  }, [client]);
216
218
  const sendChatMessage = React.useCallback((text, parentId) => client.sendChatMessage(text, parentId), [client]);
217
219
  const removeChatMessage = React.useCallback((id, sig) => client.removeChatMessage(id, sig), [client]);
220
+ const sendFiles = React.useCallback((files) => client.sendFiles(files), [client]);
221
+ const downloadFile = React.useCallback((file) => client.downloadFile(file), [client]);
218
222
  const knock = React.useCallback(() => client.knock(), [client]);
219
223
  const cancelKnock = React.useCallback(() => client.cancelKnock(), [client]);
220
224
  const setDisplayName = React.useCallback((displayName) => client.setDisplayName(displayName), [client]);
@@ -253,6 +257,12 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
253
257
  const clearCameraEffect = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
254
258
  yield client.clearCameraEffect();
255
259
  }), [client]);
260
+ const enableAudioDenoiser = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
261
+ yield client.enableAudioDenoiser();
262
+ }), [client]);
263
+ const disableAudioDenoiser = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
264
+ yield client.disableAudioDenoiser();
265
+ }), [client]);
256
266
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
257
267
  return {
258
268
  state,
@@ -273,6 +283,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
273
283
  rejectWaitingParticipant,
274
284
  sendChatMessage,
275
285
  removeChatMessage,
286
+ sendFiles,
287
+ downloadFile,
276
288
  setDisplayName,
277
289
  startCloudRecording,
278
290
  startLiveTranscription,
@@ -293,6 +305,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
293
305
  switchCameraEffect,
294
306
  switchCameraEffectCustom,
295
307
  clearCameraEffect,
308
+ enableAudioDenoiser,
309
+ disableAudioDenoiser,
296
310
  },
297
311
  };
298
312
  }
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.25.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",
@@ -74,8 +73,8 @@
74
73
  },
75
74
  "dependencies": {
76
75
  "@radix-ui/react-popover": "^1.0.7",
77
- "@whereby.com/media": "9.2.4",
78
- "@whereby.com/core": "1.12.1",
76
+ "@whereby.com/media": "9.2.5",
77
+ "@whereby.com/core": "1.14.0",
79
78
  "clsx": "^2.1.1",
80
79
  "heresy": "^1.0.4",
81
80
  "runes": "^0.4.3"