@whereby.com/browser-sdk 3.29.5 → 3.29.7

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.29.5";
175
+ const browserSdkVersion = "3.29.7";
176
176
 
177
177
  const initialState$1 = {
178
178
  chatMessages: [],
@@ -254,7 +254,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
254
254
  }, [client]);
255
255
  const sendChatMessage = React__namespace.useCallback((text, parentId, isBroadcast) => client.sendChatMessage(text, parentId, isBroadcast), [client]);
256
256
  const removeChatMessage = React__namespace.useCallback((id, sig) => client.removeChatMessage(id, sig), [client]);
257
- const sendFiles = React__namespace.useCallback((files) => client.sendFiles(files), [client]);
257
+ const sendFiles = React__namespace.useCallback((files, options) => client.sendFiles(files, options), [client]);
258
258
  const downloadFile = React__namespace.useCallback((file) => client.downloadFile(file), [client]);
259
259
  const knock = React__namespace.useCallback(() => client.knock(), [client]);
260
260
  const cancelKnock = React__namespace.useCallback(() => client.cancelKnock(), [client]);
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { LocalMediaState, LocalMediaOptions, RoomJoinedSuccess, ChatFileShare, StartBreakoutSessionOptions, UpdateBreakoutSessionOptions, RoomConnectionState, NotificationsEventEmitter, ClientView } from '@whereby.com/core';
3
- export { ACCEPTED_FILE_TYPES, BreakoutState as Breakout, ChatFileShare, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, FileShareError, FileUpload, KnockResponse, 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';
2
+ import { LocalMediaState, LocalMediaOptions, RoomJoinedSuccess, SendFilesOptions, ChatFileShare, StartBreakoutSessionOptions, UpdateBreakoutSessionOptions, RoomConnectionState, NotificationsEventEmitter, ClientView } from '@whereby.com/core';
3
+ export { ACCEPTED_FILE_TYPES, BreakoutState as Breakout, ChatFileShare, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, FileShareError, FileUpload, KnockResponse, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, RemoteParticipantState as RemoteParticipant, RoomConnectionState as RoomConnection, ScreenshareState as Screenshare, SendFilesOptions, 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
 
@@ -74,7 +74,7 @@ interface RoomConnectionActions {
74
74
  rejectWaitingParticipant: (participantId: string, response?: string) => void;
75
75
  sendChatMessage: (text: string, parentId?: string, isBroadcast?: boolean) => void;
76
76
  removeChatMessage: (id: string, sig?: string | null) => void;
77
- sendFiles: (files: File[]) => void;
77
+ sendFiles: (files: File[], options?: SendFilesOptions) => void;
78
78
  downloadFile: (file: ChatFileShare) => Promise<Blob>;
79
79
  setDisplayName: (displayName: string) => void;
80
80
  startCloudRecording: () => void;
@@ -151,7 +151,7 @@ const VideoView = React.forwardRef((_a, ref) => {
151
151
  });
152
152
  VideoView.displayName = "VideoView";
153
153
 
154
- const browserSdkVersion = "3.29.5";
154
+ const browserSdkVersion = "3.29.7";
155
155
 
156
156
  const initialState$1 = {
157
157
  chatMessages: [],
@@ -233,7 +233,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
233
233
  }, [client]);
234
234
  const sendChatMessage = React.useCallback((text, parentId, isBroadcast) => client.sendChatMessage(text, parentId, isBroadcast), [client]);
235
235
  const removeChatMessage = React.useCallback((id, sig) => client.removeChatMessage(id, sig), [client]);
236
- const sendFiles = React.useCallback((files) => client.sendFiles(files), [client]);
236
+ const sendFiles = React.useCallback((files, options) => client.sendFiles(files, options), [client]);
237
237
  const downloadFile = React.useCallback((file) => client.downloadFile(file), [client]);
238
238
  const knock = React.useCallback(() => client.knock(), [client]);
239
239
  const cancelKnock = React.useCallback(() => client.cancelKnock(), [client]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.29.5",
3
+ "version": "3.29.7",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -68,13 +68,13 @@
68
68
  "@whereby.com/eslint-config": "0.1.0",
69
69
  "@whereby.com/jest-config": "0.1.0",
70
70
  "@whereby.com/prettier-config": "0.1.0",
71
- "@whereby.com/rollup-config": "0.1.1",
72
- "@whereby.com/tsconfig": "0.1.0"
71
+ "@whereby.com/tsconfig": "0.1.0",
72
+ "@whereby.com/rollup-config": "0.1.1"
73
73
  },
74
74
  "dependencies": {
75
75
  "@radix-ui/react-popover": "^1.0.7",
76
- "@whereby.com/media": "9.7.3",
77
- "@whereby.com/core": "1.18.5",
76
+ "@whereby.com/media": "9.7.4",
77
+ "@whereby.com/core": "1.18.7",
78
78
  "clsx": "^2.1.1",
79
79
  "heresy": "^1.0.4",
80
80
  "runes": "^0.4.3"