@whereby.com/browser-sdk 3.24.0 → 3.25.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.
@@ -172,10 +172,11 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
172
172
  });
173
173
  VideoView.displayName = "VideoView";
174
174
 
175
- const browserSdkVersion = "3.24.0";
175
+ const browserSdkVersion = "3.25.1";
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]);
@@ -301,6 +304,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
301
304
  rejectWaitingParticipant,
302
305
  sendChatMessage,
303
306
  removeChatMessage,
307
+ sendFiles,
308
+ downloadFile,
304
309
  setDisplayName,
305
310
  startCloudRecording,
306
311
  startLiveTranscription,
@@ -2326,6 +2331,18 @@ function Grid({ renderParticipant, renderFloatingParticipant, stageParticipantLi
2326
2331
  React__namespace.createElement(VideoStageLayout, { containerFrame: containerFrame, floatingContent: floatingContent, layoutVideoStage: videoStage, presentationGridContent: presentationGridContent, gridContent: gridContent, subgridContent: subgridContent }))));
2327
2332
  }
2328
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
+ });
2329
2346
  Object.defineProperty(exports, "getUsableCameraEffectPresets", {
2330
2347
  enumerable: true,
2331
2348
  get: function () { return core.getUsableCameraEffectPresets; }
@@ -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, getUsableCameraEffectPresets, isAudioDenoiserSupported } 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;
@@ -1,6 +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
+ export { ACCEPTED_FILE_TYPES, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, getUsableCameraEffectPresets, isAudioDenoiserSupported } from '@whereby.com/core';
4
4
  import runes from 'runes';
5
5
  import * as PopoverPrimitive from '@radix-ui/react-popover';
6
6
 
@@ -151,10 +151,11 @@ const VideoView = React.forwardRef((_a, ref) => {
151
151
  });
152
152
  VideoView.displayName = "VideoView";
153
153
 
154
- const browserSdkVersion = "3.24.0";
154
+ const browserSdkVersion = "3.25.1";
155
155
 
156
156
  const initialState$1 = {
157
157
  chatMessages: [],
158
+ fileUploads: [],
158
159
  cloudRecording: undefined,
159
160
  breakout: {
160
161
  isActive: false,
@@ -216,6 +217,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
216
217
  }, [client]);
217
218
  const sendChatMessage = React.useCallback((text, parentId) => client.sendChatMessage(text, parentId), [client]);
218
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]);
219
222
  const knock = React.useCallback(() => client.knock(), [client]);
220
223
  const cancelKnock = React.useCallback(() => client.cancelKnock(), [client]);
221
224
  const setDisplayName = React.useCallback((displayName) => client.setDisplayName(displayName), [client]);
@@ -280,6 +283,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
280
283
  rejectWaitingParticipant,
281
284
  sendChatMessage,
282
285
  removeChatMessage,
286
+ sendFiles,
287
+ downloadFile,
283
288
  setDisplayName,
284
289
  startCloudRecording,
285
290
  startLiveTranscription,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.24.0",
3
+ "version": "3.25.1",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@radix-ui/react-popover": "^1.0.7",
76
- "@whereby.com/media": "9.2.4",
77
- "@whereby.com/core": "1.13.0",
76
+ "@whereby.com/media": "9.2.5",
77
+ "@whereby.com/core": "1.14.1",
78
78
  "clsx": "^2.1.1",
79
79
  "heresy": "^1.0.4",
80
80
  "runes": "^0.4.3"