@whereby.com/browser-sdk 0.0.0-canary-20250131105307 → 0.0.0-canary-20250211082307

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.
@@ -150,16 +150,10 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
150
150
  });
151
151
  VideoView.displayName = "VideoView";
152
152
 
153
- const selectRoomConnectionState = toolkit.createSelector(core.selectChatMessages, core.selectCloudRecordingRaw, core.selectBreakoutCurrentGroup, core.selectBreakoutActive, core.selectBreakoutGroupedParticipants, core.selectAllClientViewsInCurrentGroup, core.selectLocalParticipantRaw, core.selectLocalMediaStream, core.selectRemoteParticipants, core.selectScreenshares, core.selectRoomConnectionStatus, core.selectStreamingRaw, core.selectWaitingParticipants, core.selectNotificationsEmitter, core.selectSpotlightedClientViews, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
153
+ const selectRoomConnectionState = toolkit.createSelector(core.selectChatMessages, core.selectCloudRecordingRaw, core.selectLocalParticipantRaw, core.selectLocalMediaStream, core.selectRemoteParticipants, core.selectScreenshares, core.selectRoomConnectionStatus, core.selectStreamingRaw, core.selectWaitingParticipants, core.selectNotificationsEmitter, core.selectSpotlightedClientViews, (chatMessages, cloudRecording, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
154
154
  const state = {
155
155
  chatMessages,
156
156
  cloudRecording: cloudRecording.isRecording ? { status: "recording" } : undefined,
157
- breakout: {
158
- isActive: breakoutActive,
159
- currentGroup: breakoutCurrentGroup,
160
- groupedParticipants: breakoutGroupedParticipants,
161
- participantsInCurrentGroup: clientViewsInCurrentGroup,
162
- },
163
157
  connectionStatus,
164
158
  events: notificationsEmitter,
165
159
  liveStream: streaming.isStreaming
@@ -178,7 +172,7 @@ const selectRoomConnectionState = toolkit.createSelector(core.selectChatMessages
178
172
  return state;
179
173
  });
180
174
 
181
- const browserSdkVersion = "0.0.0-canary-20250131105307";
175
+ const browserSdkVersion = "0.0.0-canary-20250211082307";
182
176
 
183
177
  const defaultRoomConnectionOptions = {
184
178
  localMediaOptions: {
@@ -231,8 +225,6 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
231
225
  const removeSpotlight = React__namespace.useCallback((participantId) => dispatch(core.doRemoveSpotlight({ id: participantId })), [dispatch]);
232
226
  const kickParticipant = React__namespace.useCallback((participantId) => dispatch(core.doKickParticipant({ clientId: participantId })), [dispatch]);
233
227
  const endMeeting = React__namespace.useCallback((stayBehind) => dispatch(core.doEndMeeting({ stayBehind })), [dispatch]);
234
- const joinBreakoutGroup = React__namespace.useCallback((group) => dispatch(core.doBreakoutJoin({ group })), [dispatch]);
235
- const joinBreakoutMainRoom = React__namespace.useCallback(() => dispatch(core.doBreakoutJoin({ group: "" })), [dispatch]);
236
228
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
237
229
  return {
238
230
  state,
@@ -262,8 +254,6 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
262
254
  toggleMicrophone,
263
255
  spotlightParticipant,
264
256
  removeSpotlight,
265
- joinBreakoutGroup,
266
- joinBreakoutMainRoom,
267
257
  },
268
258
  };
269
259
  }
@@ -87,26 +87,10 @@ type LiveStreamState = {
87
87
  status: "streaming";
88
88
  startedAt?: number;
89
89
  };
90
- type BreakoutState = {
91
- isActive: boolean;
92
- currentGroup: {
93
- id: string | null;
94
- name: string;
95
- } | null;
96
- groupedParticipants: {
97
- clients: ClientView[];
98
- group: {
99
- id: string;
100
- name: string;
101
- } | null;
102
- }[];
103
- participantsInCurrentGroup: ClientView[];
104
- };
105
90
  interface RoomConnectionState {
106
91
  connectionStatus: ConnectionStatus;
107
92
  chatMessages: ChatMessage[];
108
93
  cloudRecording?: CloudRecordingState;
109
- breakout: BreakoutState;
110
94
  events?: NotificationsEventEmitter;
111
95
  liveStream?: LiveStreamState;
112
96
  localScreenshareStatus?: LocalScreenshareStatus;
@@ -151,8 +135,6 @@ interface RoomConnectionActions {
151
135
  toggleMicrophone: (enabled?: boolean) => void;
152
136
  spotlightParticipant: (clientId: string) => void;
153
137
  removeSpotlight: (clientId: string) => void;
154
- joinBreakoutGroup: (group: string) => void;
155
- joinBreakoutMainRoom: () => void;
156
138
  }
157
139
 
158
140
  type RoomConnectionRef = {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { createStoreHook, createDispatchHook, createSelectorHook, Provider as Provider$1 } from 'react-redux';
3
- import { createServices, createStore, selectCurrentSpeakerDeviceId, debounce, doRtcReportStreamResolution, selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, doAppStop, doSendChatMessage, doKnockRoom, doSetDisplayName, toggleCameraEnabled, toggleMicrophoneEnabled, toggleLowDataModeEnabled, doSetLocalStickyReaction, doRequestAudioEnable, doRequestVideoEnable, doAcceptWaitingParticipant, doRejectWaitingParticipant, doStartCloudRecording, doStartScreenshare, doStopCloudRecording, doStopScreenshare, doAppStart, doLockRoom, doSpotlightParticipant, doRemoveSpotlight, doKickParticipant, doEndMeeting, doBreakoutJoin, selectCameraDeviceError, selectCameraDevices, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsLocalMediaStarting, selectMicrophoneDeviceError, selectMicrophoneDevices, selectSpeakerDevices, selectLocalMediaStartError, doStartLocalMedia, doStopLocalMedia, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, selectAllClientViews, selectNumParticipants } from '@whereby.com/core';
3
+ import { createServices, createStore, selectCurrentSpeakerDeviceId, debounce, doRtcReportStreamResolution, selectChatMessages, selectCloudRecordingRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, doAppStop, doSendChatMessage, doKnockRoom, doSetDisplayName, toggleCameraEnabled, toggleMicrophoneEnabled, toggleLowDataModeEnabled, doSetLocalStickyReaction, doRequestAudioEnable, doRequestVideoEnable, doAcceptWaitingParticipant, doRejectWaitingParticipant, doStartCloudRecording, doStartScreenshare, doStopCloudRecording, doStopScreenshare, doAppStart, doLockRoom, doSpotlightParticipant, doRemoveSpotlight, doKickParticipant, doEndMeeting, selectCameraDeviceError, selectCameraDevices, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsLocalMediaStarting, selectMicrophoneDeviceError, selectMicrophoneDevices, selectSpeakerDevices, selectLocalMediaStartError, doStartLocalMedia, doStopLocalMedia, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, selectAllClientViews, selectNumParticipants } from '@whereby.com/core';
4
4
  import { createSelector } from '@reduxjs/toolkit';
5
5
  import runes from 'runes';
6
6
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -128,16 +128,10 @@ const VideoView = React.forwardRef((_a, ref) => {
128
128
  });
129
129
  VideoView.displayName = "VideoView";
130
130
 
131
- const selectRoomConnectionState = createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
131
+ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloudRecordingRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, (chatMessages, cloudRecording, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
132
132
  const state = {
133
133
  chatMessages,
134
134
  cloudRecording: cloudRecording.isRecording ? { status: "recording" } : undefined,
135
- breakout: {
136
- isActive: breakoutActive,
137
- currentGroup: breakoutCurrentGroup,
138
- groupedParticipants: breakoutGroupedParticipants,
139
- participantsInCurrentGroup: clientViewsInCurrentGroup,
140
- },
141
135
  connectionStatus,
142
136
  events: notificationsEmitter,
143
137
  liveStream: streaming.isStreaming
@@ -156,7 +150,7 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
156
150
  return state;
157
151
  });
158
152
 
159
- const browserSdkVersion = "0.0.0-canary-20250131105307";
153
+ const browserSdkVersion = "0.0.0-canary-20250211082307";
160
154
 
161
155
  const defaultRoomConnectionOptions = {
162
156
  localMediaOptions: {
@@ -209,8 +203,6 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
209
203
  const removeSpotlight = React.useCallback((participantId) => dispatch(doRemoveSpotlight({ id: participantId })), [dispatch]);
210
204
  const kickParticipant = React.useCallback((participantId) => dispatch(doKickParticipant({ clientId: participantId })), [dispatch]);
211
205
  const endMeeting = React.useCallback((stayBehind) => dispatch(doEndMeeting({ stayBehind })), [dispatch]);
212
- const joinBreakoutGroup = React.useCallback((group) => dispatch(doBreakoutJoin({ group })), [dispatch]);
213
- const joinBreakoutMainRoom = React.useCallback(() => dispatch(doBreakoutJoin({ group: "" })), [dispatch]);
214
206
  const { events } = roomConnectionState, state = __rest(roomConnectionState, ["events"]);
215
207
  return {
216
208
  state,
@@ -240,8 +232,6 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
240
232
  toggleMicrophone,
241
233
  spotlightParticipant,
242
234
  removeSpotlight,
243
- joinBreakoutGroup,
244
- joinBreakoutMainRoom,
245
235
  },
246
236
  };
247
237
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "0.0.0-canary-20250131105307",
3
+ "version": "0.0.0-canary-20250211082307",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -80,7 +80,7 @@
80
80
  "dependencies": {
81
81
  "@radix-ui/react-popover": "^1.0.7",
82
82
  "@reduxjs/toolkit": "^2.2.3",
83
- "@whereby.com/core": "0.0.0-canary-20250131105307",
83
+ "@whereby.com/core": "0.0.0-canary-20250211082307",
84
84
  "clsx": "^2.1.1",
85
85
  "heresy": "^1.0.4",
86
86
  "react-redux": "^9.1.1",