@whereby.com/browser-sdk 3.13.10 → 3.14.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.
@@ -159,7 +159,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
159
159
  });
160
160
  VideoView.displayName = "VideoView";
161
161
 
162
- const browserSdkVersion = "3.13.10";
162
+ const browserSdkVersion = "3.14.0";
163
163
 
164
164
  const initialState$1 = {
165
165
  chatMessages: [],
@@ -217,7 +217,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
217
217
  }, []);
218
218
  const joinRoom = React__namespace.useCallback(() => {
219
219
  client.initialize(roomConfig);
220
- client.joinRoom();
220
+ return client.joinRoom();
221
221
  }, [client]);
222
222
  const sendChatMessage = React__namespace.useCallback((text) => client.sendChatMessage(text), [client]);
223
223
  const knock = React__namespace.useCallback(() => client.knock(), [client]);
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { LocalMediaState, LocalMediaOptions, RoomConnectionState, NotificationsEventEmitter, ClientView } from '@whereby.com/core';
2
+ import { LocalMediaState, LocalMediaOptions, RoomJoinedSuccess, RoomConnectionState, NotificationsEventEmitter, ClientView } from '@whereby.com/core';
3
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';
4
4
  import * as _radix_ui_react_popover from '@radix-ui/react-popover';
5
5
  import { PopoverProps } from '@radix-ui/react-popover';
@@ -62,7 +62,7 @@ interface RoomConnectionActions {
62
62
  askToTurnOnCamera: (participantId: string) => void;
63
63
  acceptWaitingParticipant: (participantId: string) => void;
64
64
  knock: () => void;
65
- joinRoom: () => void;
65
+ joinRoom: () => Promise<RoomJoinedSuccess>;
66
66
  leaveRoom: () => void;
67
67
  lockRoom: (locked: boolean) => void;
68
68
  muteParticipants: (clientIds: string[]) => void;
@@ -137,7 +137,7 @@ const VideoView = React.forwardRef((_a, ref) => {
137
137
  });
138
138
  VideoView.displayName = "VideoView";
139
139
 
140
- const browserSdkVersion = "3.13.10";
140
+ const browserSdkVersion = "3.14.0";
141
141
 
142
142
  const initialState$1 = {
143
143
  chatMessages: [],
@@ -195,7 +195,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
195
195
  }, []);
196
196
  const joinRoom = React.useCallback(() => {
197
197
  client.initialize(roomConfig);
198
- client.joinRoom();
198
+ return client.joinRoom();
199
199
  }, [client]);
200
200
  const sendChatMessage = React.useCallback((text) => client.sendChatMessage(text), [client]);
201
201
  const knock = React.useCallback(() => client.knock(), [client]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.13.10",
3
+ "version": "3.14.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -51,8 +51,8 @@
51
51
  "dotenv": "^16.4.5",
52
52
  "dotenv-run-script": "^0.4.1",
53
53
  "lit-html": "^2.5.0",
54
- "react": "19.0.0",
55
- "react-dom": "19.0.0",
54
+ "react": "19.1.0",
55
+ "react-dom": "19.1.0",
56
56
  "react-hot-toast": "^2.4.1",
57
57
  "rimraf": "^5.0.5",
58
58
  "storybook": "^9.0.16",
@@ -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/tsconfig": "0.1.0",
72
- "@whereby.com/rollup-config": "0.1.0"
71
+ "@whereby.com/rollup-config": "0.1.0",
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": "2.1.5",
77
- "@whereby.com/core": "1.1.7",
76
+ "@whereby.com/media": "2.2.0",
77
+ "@whereby.com/core": "1.2.0",
78
78
  "clsx": "^2.1.1",
79
79
  "heresy": "^1.0.4",
80
80
  "runes": "^0.4.3"