@whereby.com/browser-sdk 3.39.2 → 3.40.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 +10 -10
- package/dist/react/index.cjs +5 -2
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.esm.js +5 -2
- package/package.json +7 -8
package/dist/react/index.cjs
CHANGED
|
@@ -206,7 +206,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
|
|
|
206
206
|
});
|
|
207
207
|
VideoView.displayName = "VideoView";
|
|
208
208
|
|
|
209
|
-
const browserSdkVersion = "3.
|
|
209
|
+
const browserSdkVersion = "3.40.0";
|
|
210
210
|
|
|
211
211
|
const initialState$1 = {
|
|
212
212
|
chatMessages: [],
|
|
@@ -252,6 +252,7 @@ const initialState$1 = {
|
|
|
252
252
|
screenshares: [],
|
|
253
253
|
connectionStatus: "ready",
|
|
254
254
|
connectionError: null,
|
|
255
|
+
joinStage: null,
|
|
255
256
|
knockResponse: null,
|
|
256
257
|
waitingParticipants: [],
|
|
257
258
|
spotlightedParticipants: [],
|
|
@@ -295,8 +296,10 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
295
296
|
client.leaveRoom();
|
|
296
297
|
};
|
|
297
298
|
}, []);
|
|
299
|
+
const roomConfigRef = React__namespace.useRef(roomConfig);
|
|
300
|
+
roomConfigRef.current = roomConfig;
|
|
298
301
|
const joinRoom = React__namespace.useCallback(() => {
|
|
299
|
-
client.initialize(
|
|
302
|
+
client.initialize(roomConfigRef.current);
|
|
300
303
|
return client.joinRoom();
|
|
301
304
|
}, [client]);
|
|
302
305
|
const sendChatMessage = React__namespace.useCallback((text, parentId, isBroadcast) => client.sendChatMessage(text, parentId, isBroadcast), [client]);
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as _whereby_com_core from '@whereby.com/core';
|
|
3
3
|
import { WherebyClient, LocalMediaState, LocalMediaOptions, InitialMuteStates, RoomJoinedSuccess, SendFilesOptions, ChatFileShare, ToggleAudioOnlyModeOptions, RoomIntegrationProps, StartBreakoutSessionOptions, UpdateBreakoutSessionOptions, RoomConnectionState, NotificationsEventEmitter, ClientView, RoomIntegrationSessionView, RoomIntegration, RoomIntegrationPickerResult } from '@whereby.com/core';
|
|
4
|
-
export { ACCEPTED_FILE_TYPES, BreakoutState as Breakout, CPUQualityLevel, CallQualityLevel, ChatFileShare, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, DeviceCredentials, FileShareError, FileUpload, KnockResponse, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, LocalParticipantQualityReport, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, RemoteParticipantState as RemoteParticipant, RemoteParticipantQualityReport, RoomConnectionState as RoomConnection, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationProps, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState as RoomIntegrations, ScreenshareState as Screenshare, SendFilesOptions, ToggleAudioOnlyModeOptions, WaitingParticipantState as WaitingParticipant, WherebyClient, YouTubeContentMetadata, getUsableCameraEffectPresets, isAudioDenoiserSupported, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl } from '@whereby.com/core';
|
|
4
|
+
export { ACCEPTED_FILE_TYPES, BreakoutState as Breakout, CPUQualityLevel, CallQualityLevel, ChatFileShare, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, DeviceCredentials, FileShareError, FileUpload, JoinRoomErrorNames, JoinRoomStage, KnockResponse, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, LocalParticipantQualityReport, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, RemoteParticipantState as RemoteParticipant, RemoteParticipantQualityReport, RoomConnectionState as RoomConnection, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationProps, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState as RoomIntegrations, ScreenshareState as Screenshare, SendFilesOptions, ToggleAudioOnlyModeOptions, WaitingParticipantState as WaitingParticipant, WherebyClient, YouTubeContentMetadata, getUsableCameraEffectPresets, isAudioDenoiserSupported, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl } from '@whereby.com/core';
|
|
5
5
|
import * as _radix_ui_react_popover from '@radix-ui/react-popover';
|
|
6
6
|
import { PopoverProps } from '@radix-ui/react-popover';
|
|
7
7
|
|
package/dist/react/index.esm.js
CHANGED
|
@@ -185,7 +185,7 @@ const VideoView = React.forwardRef((_a, ref) => {
|
|
|
185
185
|
});
|
|
186
186
|
VideoView.displayName = "VideoView";
|
|
187
187
|
|
|
188
|
-
const browserSdkVersion = "3.
|
|
188
|
+
const browserSdkVersion = "3.40.0";
|
|
189
189
|
|
|
190
190
|
const initialState$1 = {
|
|
191
191
|
chatMessages: [],
|
|
@@ -231,6 +231,7 @@ const initialState$1 = {
|
|
|
231
231
|
screenshares: [],
|
|
232
232
|
connectionStatus: "ready",
|
|
233
233
|
connectionError: null,
|
|
234
|
+
joinStage: null,
|
|
234
235
|
knockResponse: null,
|
|
235
236
|
waitingParticipants: [],
|
|
236
237
|
spotlightedParticipants: [],
|
|
@@ -274,8 +275,10 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
274
275
|
client.leaveRoom();
|
|
275
276
|
};
|
|
276
277
|
}, []);
|
|
278
|
+
const roomConfigRef = React.useRef(roomConfig);
|
|
279
|
+
roomConfigRef.current = roomConfig;
|
|
277
280
|
const joinRoom = React.useCallback(() => {
|
|
278
|
-
client.initialize(
|
|
281
|
+
client.initialize(roomConfigRef.current);
|
|
279
282
|
return client.joinRoom();
|
|
280
283
|
}, [client]);
|
|
281
284
|
const sendChatMessage = React.useCallback((text, parentId, isBroadcast) => client.sendChatMessage(text, parentId, isBroadcast), [client]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/browser-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.0",
|
|
4
4
|
"description": "Modules for integration Whereby video in web apps",
|
|
5
5
|
"author": "Whereby AS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,9 +41,8 @@
|
|
|
41
41
|
"dist/**/*.cjs"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@storybook/addon-links": "^
|
|
45
|
-
"@storybook/
|
|
46
|
-
"@storybook/react-vite": "^9.0.16",
|
|
44
|
+
"@storybook/addon-links": "^10.6.7",
|
|
45
|
+
"@storybook/react-vite": "^10.6.7",
|
|
47
46
|
"@testing-library/react": "^14.0.0",
|
|
48
47
|
"@types/runes": "^0.4.3",
|
|
49
48
|
"@vitejs/plugin-react": "^4.2.1",
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"react-dom": "19.1.0",
|
|
56
55
|
"react-hot-toast": "^2.4.1",
|
|
57
56
|
"rimraf": "^5.0.5",
|
|
58
|
-
"storybook": "^
|
|
57
|
+
"storybook": "^10.6.7",
|
|
59
58
|
"tslib": "^2.4.1",
|
|
60
59
|
"uuid": "^9.0.1",
|
|
61
60
|
"vite": "^5.0.13",
|
|
@@ -63,8 +62,8 @@
|
|
|
63
62
|
"eslint": "^9.29.0",
|
|
64
63
|
"prettier": "^3.5.3",
|
|
65
64
|
"typescript": "^5.8.3",
|
|
66
|
-
"eslint-plugin-storybook": "
|
|
67
|
-
"@storybook/addon-docs": "^
|
|
65
|
+
"eslint-plugin-storybook": "10.6.7",
|
|
66
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
68
67
|
"@whereby.com/eslint-config": "0.1.0",
|
|
69
68
|
"@whereby.com/jest-config": "0.1.0",
|
|
70
69
|
"@whereby.com/prettier-config": "0.1.0",
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
"dependencies": {
|
|
75
74
|
"@radix-ui/react-popover": "^1.0.7",
|
|
76
75
|
"@whereby.com/media": "11.3.4",
|
|
77
|
-
"@whereby.com/core": "1.
|
|
76
|
+
"@whereby.com/core": "1.31.0",
|
|
78
77
|
"clsx": "^2.1.1",
|
|
79
78
|
"heresy": "^1.0.4",
|
|
80
79
|
"runes": "^0.4.3",
|