@whereby.com/browser-sdk 3.13.11 → 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.
- package/dist/cdn/v3-react.js +1 -1
- package/dist/react/index.cjs +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.esm.js +2 -2
- package/package.json +3 -3
package/dist/react/index.cjs
CHANGED
|
@@ -159,7 +159,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
|
|
|
159
159
|
});
|
|
160
160
|
VideoView.displayName = "VideoView";
|
|
161
161
|
|
|
162
|
-
const browserSdkVersion = "3.
|
|
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]);
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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: () =>
|
|
65
|
+
joinRoom: () => Promise<RoomJoinedSuccess>;
|
|
66
66
|
leaveRoom: () => void;
|
|
67
67
|
lockRoom: (locked: boolean) => void;
|
|
68
68
|
muteParticipants: (clientIds: string[]) => void;
|
package/dist/react/index.esm.js
CHANGED
|
@@ -137,7 +137,7 @@ const VideoView = React.forwardRef((_a, ref) => {
|
|
|
137
137
|
});
|
|
138
138
|
VideoView.displayName = "VideoView";
|
|
139
139
|
|
|
140
|
-
const browserSdkVersion = "3.
|
|
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.
|
|
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",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@radix-ui/react-popover": "^1.0.7",
|
|
76
|
-
"@whereby.com/media": "2.
|
|
77
|
-
"@whereby.com/core": "1.
|
|
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"
|