@whereby.com/browser-sdk 3.32.0 → 3.33.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-embed.js +5 -5
- package/dist/cdn/v3-react.js +10 -10
- package/dist/embed/index.cjs +3 -0
- package/dist/embed/index.d.ts +6 -0
- package/dist/embed/index.esm.js +3 -0
- package/dist/react/index.cjs +4 -1
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.esm.js +4 -1
- package/package.json +3 -3
package/dist/embed/index.cjs
CHANGED
|
@@ -152,6 +152,9 @@ heresy.define("WherebyEmbed", {
|
|
|
152
152
|
toggleCamera(enabled) {
|
|
153
153
|
this._postCommand("toggle_camera", [enabled]);
|
|
154
154
|
},
|
|
155
|
+
toggleAudioOnlyMode(enabled, options) {
|
|
156
|
+
this._postCommand("toggle_audio_only_mode", options ? [enabled, options] : [enabled]);
|
|
157
|
+
},
|
|
155
158
|
toggleMicrophone(enabled) {
|
|
156
159
|
this._postCommand("toggle_microphone", [enabled]);
|
|
157
160
|
},
|
package/dist/embed/index.d.ts
CHANGED
|
@@ -119,6 +119,9 @@ interface WherebyEmbedElementEventMap {
|
|
|
119
119
|
transcription_status_change: CustomEvent<{
|
|
120
120
|
status: "starting" | "started" | "stopped";
|
|
121
121
|
}>;
|
|
122
|
+
audio_only_mode_status_change: CustomEvent<{
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
}>;
|
|
122
125
|
connection_status_change: CustomEvent<{
|
|
123
126
|
status: "stable" | "unstable";
|
|
124
127
|
}>;
|
|
@@ -147,6 +150,9 @@ interface WherebyEmbedElementCommands {
|
|
|
147
150
|
stopLiveTranscription: () => void;
|
|
148
151
|
toggleBreakout: (enabled?: boolean) => void;
|
|
149
152
|
toggleCamera: (enabled?: boolean) => void;
|
|
153
|
+
toggleAudioOnlyMode: (enabled?: boolean, options?: {
|
|
154
|
+
autoDisableLocalCamera?: boolean;
|
|
155
|
+
}) => void;
|
|
150
156
|
toggleMicrophone: (enabled?: boolean) => void;
|
|
151
157
|
togglePeople: (enabled?: boolean) => void;
|
|
152
158
|
toggleScreenshare: (enabled?: boolean) => void;
|
package/dist/embed/index.esm.js
CHANGED
|
@@ -148,6 +148,9 @@ define("WherebyEmbed", {
|
|
|
148
148
|
toggleCamera(enabled) {
|
|
149
149
|
this._postCommand("toggle_camera", [enabled]);
|
|
150
150
|
},
|
|
151
|
+
toggleAudioOnlyMode(enabled, options) {
|
|
152
|
+
this._postCommand("toggle_audio_only_mode", options ? [enabled, options] : [enabled]);
|
|
153
|
+
},
|
|
151
154
|
toggleMicrophone(enabled) {
|
|
152
155
|
this._postCommand("toggle_microphone", [enabled]);
|
|
153
156
|
},
|
package/dist/react/index.cjs
CHANGED
|
@@ -172,7 +172,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
|
|
|
172
172
|
});
|
|
173
173
|
VideoView.displayName = "VideoView";
|
|
174
174
|
|
|
175
|
-
const browserSdkVersion = "3.
|
|
175
|
+
const browserSdkVersion = "3.33.0";
|
|
176
176
|
|
|
177
177
|
const initialState$1 = {
|
|
178
178
|
chatMessages: [],
|
|
@@ -199,6 +199,7 @@ const initialState$1 = {
|
|
|
199
199
|
participantsInCurrentGroup: [],
|
|
200
200
|
broadcastingParticipants: [],
|
|
201
201
|
},
|
|
202
|
+
isAudioOnlyModeEnabled: false,
|
|
202
203
|
isCameraEnabled: false,
|
|
203
204
|
isMicrophoneEnabled: false,
|
|
204
205
|
localParticipant: undefined,
|
|
@@ -272,6 +273,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
272
273
|
const toggleMicrophone = React__namespace.useCallback((enabled) => client.toggleMicrophone(enabled), [client]);
|
|
273
274
|
const toggleHdMode = React__namespace.useCallback((enabled) => client.toggleHdMode(enabled), [client]);
|
|
274
275
|
const toggleLowDataMode = React__namespace.useCallback((enabled) => client.toggleLowDataMode(enabled), [client]);
|
|
276
|
+
const toggleAudioOnlyMode = React__namespace.useCallback((enabled, options) => client.toggleAudioOnlyMode(enabled, options), [client]);
|
|
275
277
|
const toggleWidescreenMode = React__namespace.useCallback((enabled) => client.toggleWidescreenMode(enabled), [client]);
|
|
276
278
|
const toggleRaiseHand = React__namespace.useCallback((enabled) => client.toggleRaiseHand(enabled), [client]);
|
|
277
279
|
const askToSpeak = React__namespace.useCallback((participantId) => client.askToSpeak(participantId), [client]);
|
|
@@ -365,6 +367,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
365
367
|
toggleRaiseHand,
|
|
366
368
|
toggleHdMode,
|
|
367
369
|
toggleLowDataMode,
|
|
370
|
+
toggleAudioOnlyMode,
|
|
368
371
|
toggleWidescreenMode,
|
|
369
372
|
spotlightParticipant,
|
|
370
373
|
removeSpotlight,
|
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
|
-
import { LocalMediaState, LocalMediaOptions, InitialMuteStates, RoomJoinedSuccess, SendFilesOptions, ChatFileShare, RoomIntegrationProps, StartBreakoutSessionOptions, UpdateBreakoutSessionOptions, RoomConnectionState, NotificationsEventEmitter, ClientView, RoomIntegrationSessionView, RoomIntegration, RoomIntegrationPickerResult } from '@whereby.com/core';
|
|
4
|
-
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, ROOM_INTEGRATION_PICKER_MESSAGES, RemoteParticipantState as RemoteParticipant, RoomConnectionState as RoomConnection, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationProps, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState as RoomIntegrations, ScreenshareState as Screenshare, SendFilesOptions, WaitingParticipantState as WaitingParticipant, YouTubeContentMetadata, getUsableCameraEffectPresets, isAudioDenoiserSupported, roomIntegrationContent, roomIntegrationContentTagName, roomIntegrationPickerUrl } from '@whereby.com/core';
|
|
3
|
+
import { 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, ChatFileShare, ChatMessageState as ChatMessage, CloudRecordingState as CloudRecording, FileShareError, FileUpload, KnockResponse, LiveStreamState as LiveStreaming, LocalParticipantState as LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, RemoteParticipantState as RemoteParticipant, RoomConnectionState as RoomConnection, RoomIntegration, RoomIntegrationContent, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationProps, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState as RoomIntegrations, ScreenshareState as Screenshare, SendFilesOptions, ToggleAudioOnlyModeOptions, WaitingParticipantState as WaitingParticipant, 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
|
|
|
@@ -92,6 +92,7 @@ interface RoomConnectionActions {
|
|
|
92
92
|
toggleRaiseHand: (enabled?: boolean) => void;
|
|
93
93
|
toggleHdMode: (enabled?: boolean) => void;
|
|
94
94
|
toggleLowDataMode: (enabled?: boolean) => void;
|
|
95
|
+
toggleAudioOnlyMode: (enabled?: boolean, options?: ToggleAudioOnlyModeOptions) => void;
|
|
95
96
|
toggleWidescreenMode: (enabled?: boolean) => void;
|
|
96
97
|
spotlightParticipant: (clientId: string) => void;
|
|
97
98
|
removeSpotlight: (clientId: string) => void;
|
package/dist/react/index.esm.js
CHANGED
|
@@ -151,7 +151,7 @@ const VideoView = React.forwardRef((_a, ref) => {
|
|
|
151
151
|
});
|
|
152
152
|
VideoView.displayName = "VideoView";
|
|
153
153
|
|
|
154
|
-
const browserSdkVersion = "3.
|
|
154
|
+
const browserSdkVersion = "3.33.0";
|
|
155
155
|
|
|
156
156
|
const initialState$1 = {
|
|
157
157
|
chatMessages: [],
|
|
@@ -178,6 +178,7 @@ const initialState$1 = {
|
|
|
178
178
|
participantsInCurrentGroup: [],
|
|
179
179
|
broadcastingParticipants: [],
|
|
180
180
|
},
|
|
181
|
+
isAudioOnlyModeEnabled: false,
|
|
181
182
|
isCameraEnabled: false,
|
|
182
183
|
isMicrophoneEnabled: false,
|
|
183
184
|
localParticipant: undefined,
|
|
@@ -251,6 +252,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
251
252
|
const toggleMicrophone = React.useCallback((enabled) => client.toggleMicrophone(enabled), [client]);
|
|
252
253
|
const toggleHdMode = React.useCallback((enabled) => client.toggleHdMode(enabled), [client]);
|
|
253
254
|
const toggleLowDataMode = React.useCallback((enabled) => client.toggleLowDataMode(enabled), [client]);
|
|
255
|
+
const toggleAudioOnlyMode = React.useCallback((enabled, options) => client.toggleAudioOnlyMode(enabled, options), [client]);
|
|
254
256
|
const toggleWidescreenMode = React.useCallback((enabled) => client.toggleWidescreenMode(enabled), [client]);
|
|
255
257
|
const toggleRaiseHand = React.useCallback((enabled) => client.toggleRaiseHand(enabled), [client]);
|
|
256
258
|
const askToSpeak = React.useCallback((participantId) => client.askToSpeak(participantId), [client]);
|
|
@@ -344,6 +346,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
|
|
|
344
346
|
toggleRaiseHand,
|
|
345
347
|
toggleHdMode,
|
|
346
348
|
toggleLowDataMode,
|
|
349
|
+
toggleAudioOnlyMode,
|
|
347
350
|
toggleWidescreenMode,
|
|
348
351
|
spotlightParticipant,
|
|
349
352
|
removeSpotlight,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/browser-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.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": "11.2.
|
|
77
|
-
"@whereby.com/core": "1.
|
|
76
|
+
"@whereby.com/media": "11.2.1",
|
|
77
|
+
"@whereby.com/core": "1.23.0",
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
79
|
"heresy": "^1.0.4",
|
|
80
80
|
"runes": "^0.4.3"
|