@whereby.com/core 1.32.1 → 1.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.
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
74
74
  });
75
75
  };
76
76
 
77
- const coreVersion = "1.32.1";
77
+ const coreVersion = "1.33.0";
78
78
 
79
79
  function decodeRoomName(roomName) {
80
80
  if (!roomName) {
@@ -177,6 +177,7 @@ const signalEvents = {
177
177
  screenshareEnableRequested: createSignalEventAction("screenshareEnableRequested"),
178
178
  spotlightAdded: createSignalEventAction("spotlightAdded"),
179
179
  spotlightRemoved: createSignalEventAction("spotlightRemoved"),
180
+ spotlightOrderSwapped: createSignalEventAction("spotlightOrderSwapped"),
180
181
  streamingStopped: createSignalEventAction("streamingStopped"),
181
182
  videoEnabled: createSignalEventAction("videoEnabled"),
182
183
  videoEnableRequested: createSignalEventAction("videoEnableRequested"),
@@ -373,6 +374,7 @@ function forwardSocketEvents(socket, dispatch) {
373
374
  socket.on("streaming_stopped", () => dispatch(signalEvents.streamingStopped()));
374
375
  socket.on("spotlight_added", (payload) => dispatch(signalEvents.spotlightAdded(payload)));
375
376
  socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
377
+ socket.on("spotlight_order_swapped", (payload) => dispatch(signalEvents.spotlightOrderSwapped(payload)));
376
378
  socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
377
379
  socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
378
380
  socket.on("live_captions_started", (payload) => dispatch(signalEvents.liveCaptionsStarted(payload)));
@@ -2636,7 +2638,7 @@ createReactor([selectShouldFetchRoom], ({ dispatch, getState }, shouldFetchRoom)
2636
2638
 
2637
2639
  function streamIdForClient({ isPresentation, stream }) {
2638
2640
  var _a, _b;
2639
- return isPresentation ? (_b = (_a = stream === null || stream === void 0 ? void 0 : stream.outboundId) !== null && _a !== void 0 ? _a : stream === null || stream === void 0 ? void 0 : stream.inboundId) !== null && _b !== void 0 ? _b : stream === null || stream === void 0 ? void 0 : stream.id : CAMERA_STREAM_ID;
2641
+ return isPresentation ? ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.outboundId) !== null && _a !== void 0 ? _a : stream === null || stream === void 0 ? void 0 : stream.inboundId) !== null && _b !== void 0 ? _b : stream === null || stream === void 0 ? void 0 : stream.id) : CAMERA_STREAM_ID;
2640
2642
  }
2641
2643
  function isClientSpotlighted({ spotlights, isPresentation, clientId, stream, }) {
2642
2644
  return !!spotlights.find((s) => {
@@ -2651,6 +2653,17 @@ function mergeSpotlight(spotlights, spotlight) {
2651
2653
  }
2652
2654
  return spotlights.concat(spotlight);
2653
2655
  }
2656
+ const isSameSpotlight = (a, b) => a.clientId === b.clientId && a.streamId === b.streamId;
2657
+ function swapSpotlights(spotlights, source, target) {
2658
+ const index = spotlights.findIndex((s) => isSameSpotlight(s, source));
2659
+ const targetIndex = spotlights.findIndex((s) => isSameSpotlight(s, target));
2660
+ if (index < 0 || targetIndex < 0 || index === targetIndex) {
2661
+ return spotlights;
2662
+ }
2663
+ const swapped = [...spotlights];
2664
+ [swapped[index], swapped[targetIndex]] = [swapped[targetIndex], swapped[index]];
2665
+ return swapped;
2666
+ }
2654
2667
  function mapSpotlightsToClientViews(spotlights, clientViews) {
2655
2668
  return spotlights.reduce((acc, s) => {
2656
2669
  const clientView = clientViews.find((c) => s.clientId === c.clientId && s.streamId === streamIdForClient(c));
@@ -2696,6 +2709,14 @@ const spotlightsSlice = createSlice({
2696
2709
  const { clientId, streamId } = action.payload;
2697
2710
  return Object.assign(Object.assign({}, state), { sorted: state.sorted.filter((s) => !(s.clientId === clientId && s.streamId === streamId)) });
2698
2711
  });
2712
+ builder.addCase(signalEvents.spotlightOrderSwapped, (state, action) => {
2713
+ if ("error" in action.payload) {
2714
+ return state;
2715
+ }
2716
+ const { source, target } = action.payload;
2717
+ const sorted = swapSpotlights(state.sorted, source, target);
2718
+ return sorted === state.sorted ? state : Object.assign(Object.assign({}, state), { sorted });
2719
+ });
2699
2720
  builder.addMatcher(isAnyOf(signalEvents.clientKicked, signalEvents.clientLeft), (state, action) => {
2700
2721
  const { clientId } = action.payload;
2701
2722
  return Object.assign(Object.assign({}, state), { sorted: state.sorted.filter((s) => s.clientId !== clientId) });
@@ -2725,6 +2746,31 @@ const doRemoveSpotlight = createAppAuthorizedThunk((state) => selectIsAuthorized
2725
2746
  const payload = { clientId: clientView.id, streamId: streamId !== null && streamId !== void 0 ? streamId : CAMERA_STREAM_ID };
2726
2747
  socket === null || socket === void 0 ? void 0 : socket.emit("remove_spotlight", payload);
2727
2748
  });
2749
+ const doSwapSpotlightOrder = createAppAuthorizedThunk((state) => selectIsAuthorizedToSpotlight(state), ({ id, targetId }) => (_, getState) => {
2750
+ const state = getState();
2751
+ const clientViews = selectAllClientViews(state);
2752
+ const spotlights = selectSpotlights(state);
2753
+ const toSpotlight = (clientViewId) => {
2754
+ var _a;
2755
+ const clientView = clientViews.find((c) => c.id === clientViewId);
2756
+ if (!clientView) {
2757
+ return null;
2758
+ }
2759
+ const spotlight = {
2760
+ clientId: clientView.clientId,
2761
+ streamId: (_a = streamIdForClient(clientView)) !== null && _a !== void 0 ? _a : CAMERA_STREAM_ID,
2762
+ };
2763
+ return spotlights.some((s) => isSameSpotlight(s, spotlight)) ? spotlight : null;
2764
+ };
2765
+ const source = toSpotlight(id);
2766
+ const target = toSpotlight(targetId);
2767
+ if (!source || !target || isSameSpotlight(source, target)) {
2768
+ return;
2769
+ }
2770
+ const { socket } = selectSignalConnectionRaw(state);
2771
+ const payload = { source, target };
2772
+ socket === null || socket === void 0 ? void 0 : socket.emit("swap_spotlight_order", payload);
2773
+ });
2728
2774
  const selectSpotlightsRaw = (state) => state.spotlights;
2729
2775
  const selectSpotlights = (state) => state.spotlights.sorted;
2730
2776
  const selectIsLocalParticipantSpotlighted = createSelector(selectLocalParticipantRaw, selectSpotlights, (localParticipant, spotlights) => {
@@ -3990,6 +4036,51 @@ createReactor([selectBreakoutAssignments, selectDeviceId, selectLocalParticipant
3990
4036
  }
3991
4037
  });
3992
4038
 
4039
+ const roomLayoutSliceInitialState = {
4040
+ sortedClientIds: [],
4041
+ };
4042
+ const roomLayoutSlice = createSlice({
4043
+ name: "roomLayout",
4044
+ initialState: roomLayoutSliceInitialState,
4045
+ reducers: {
4046
+ setSortedClientIds(state, action) {
4047
+ return Object.assign(Object.assign({}, state), { sortedClientIds: Array.from(new Set(action.payload)) });
4048
+ },
4049
+ },
4050
+ });
4051
+ const { setSortedClientIds } = roomLayoutSlice.actions;
4052
+ const doReorderClientViews = createAppThunk(({ id, targetId }) => (dispatch, getState) => {
4053
+ const clientIds = selectSortedClientViews(getState()).map((c) => c.id);
4054
+ const index = clientIds.indexOf(id);
4055
+ const targetIndex = clientIds.indexOf(targetId);
4056
+ if (index < 0 || targetIndex < 0 || index === targetIndex) {
4057
+ return;
4058
+ }
4059
+ [clientIds[index], clientIds[targetIndex]] = [clientIds[targetIndex], clientIds[index]];
4060
+ dispatch(setSortedClientIds(clientIds));
4061
+ });
4062
+ const doSetClientViewOrder = createAppThunk((ids) => (dispatch, getState) => {
4063
+ const listed = new Set(ids);
4064
+ const unlisted = selectSortedClientViews(getState())
4065
+ .map((c) => c.id)
4066
+ .filter((id) => !listed.has(id));
4067
+ dispatch(setSortedClientIds([...ids, ...unlisted]));
4068
+ });
4069
+ const selectRoomLayoutRaw = (state) => state.roomLayout;
4070
+ const selectSortedClientIds = (state) => state.roomLayout.sortedClientIds;
4071
+ const selectSortedClientViews = createSelector(selectAllClientViews, selectSortedClientIds, (clientViews, sortedClientIds) => sortClientViews({ sortedClientIds, clientViews }));
4072
+ function sortClientViews({ sortedClientIds, clientViews, }) {
4073
+ if (!sortedClientIds.length) {
4074
+ return clientViews;
4075
+ }
4076
+ const rank = new Map(sortedClientIds.map((id, index) => [id, index]));
4077
+ const unranked = sortedClientIds.length;
4078
+ return clientViews
4079
+ .map((clientView, index) => { var _a; return ({ clientView, index, rank: (_a = rank.get(clientView.id)) !== null && _a !== void 0 ? _a : unranked }); })
4080
+ .sort((a, b) => a.rank - b.rank || a.index - b.index)
4081
+ .map(({ clientView }) => clientView);
4082
+ }
4083
+
3993
4084
  function roomIntegrationContentTagName(integrationName) {
3994
4085
  return `${integrationName}-integration-contentframe`;
3995
4086
  }
@@ -4983,6 +5074,7 @@ const appReducer = combineReducers({
4983
5074
  room: roomSlice.reducer,
4984
5075
  roomConnection: roomConnectionSlice.reducer,
4985
5076
  roomIntegrations: roomIntegrationsSlice.reducer,
5077
+ roomLayout: roomLayoutSlice.reducer,
4986
5078
  rtcAnalytics: rtcAnalyticsSlice.reducer,
4987
5079
  rtcConnection: rtcConnectionSlice.reducer,
4988
5080
  signalConnection: signalConnectionSlice.reducer,
@@ -6092,4 +6184,4 @@ function createServices({ apiBaseUrl, signalBaseUrl } = {}) {
6092
6184
  };
6093
6185
  }
6094
6186
 
6095
- export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, IN_CALL_QUALITY_LEVELS, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoom, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectJoinRoomStage, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantQualityReport, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomFetchStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomLockState, selectRoomLockStateRoomUrl, selectRoomLockStateSource, selectRoomMode, selectRoomRequestedUrl, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoom, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRequestedRoomUrl, setRoomIntegrationsError, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateLocalCallQualityScore, updateRemoteCallQualityScores, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
6187
+ export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, IN_CALL_QUALITY_LEVELS, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoom, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doReorderClientViews, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetClientViewOrder, doSetDevice, doSetDisplayName, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwapSpotlightOrder, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomLayoutSlice, roomLayoutSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectJoinRoomStage, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantQualityReport, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomFetchStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomLayoutRaw, selectRoomLockState, selectRoomLockStateRoomUrl, selectRoomLockStateSource, selectRoomMode, selectRoomRequestedUrl, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoom, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSortedClientIds, selectSortedClientViews, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRequestedRoomUrl, setRoomIntegrationsError, setRoomKey, setSortedClientIds, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, sortClientViews, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateLocalCallQualityScore, updateRemoteCallQualityScores, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
74
74
  });
75
75
  };
76
76
 
77
- const coreVersion = "1.32.1";
77
+ const coreVersion = "1.33.0";
78
78
 
79
79
  function decodeRoomName(roomName) {
80
80
  if (!roomName) {
@@ -177,6 +177,7 @@ const signalEvents = {
177
177
  screenshareEnableRequested: createSignalEventAction("screenshareEnableRequested"),
178
178
  spotlightAdded: createSignalEventAction("spotlightAdded"),
179
179
  spotlightRemoved: createSignalEventAction("spotlightRemoved"),
180
+ spotlightOrderSwapped: createSignalEventAction("spotlightOrderSwapped"),
180
181
  streamingStopped: createSignalEventAction("streamingStopped"),
181
182
  videoEnabled: createSignalEventAction("videoEnabled"),
182
183
  videoEnableRequested: createSignalEventAction("videoEnableRequested"),
@@ -373,6 +374,7 @@ function forwardSocketEvents(socket, dispatch) {
373
374
  socket.on("streaming_stopped", () => dispatch(signalEvents.streamingStopped()));
374
375
  socket.on("spotlight_added", (payload) => dispatch(signalEvents.spotlightAdded(payload)));
375
376
  socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
377
+ socket.on("spotlight_order_swapped", (payload) => dispatch(signalEvents.spotlightOrderSwapped(payload)));
376
378
  socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
377
379
  socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
378
380
  socket.on("live_captions_started", (payload) => dispatch(signalEvents.liveCaptionsStarted(payload)));
@@ -2636,7 +2638,7 @@ createReactor([selectShouldFetchRoom], ({ dispatch, getState }, shouldFetchRoom)
2636
2638
 
2637
2639
  function streamIdForClient({ isPresentation, stream }) {
2638
2640
  var _a, _b;
2639
- return isPresentation ? (_b = (_a = stream === null || stream === void 0 ? void 0 : stream.outboundId) !== null && _a !== void 0 ? _a : stream === null || stream === void 0 ? void 0 : stream.inboundId) !== null && _b !== void 0 ? _b : stream === null || stream === void 0 ? void 0 : stream.id : CAMERA_STREAM_ID;
2641
+ return isPresentation ? ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.outboundId) !== null && _a !== void 0 ? _a : stream === null || stream === void 0 ? void 0 : stream.inboundId) !== null && _b !== void 0 ? _b : stream === null || stream === void 0 ? void 0 : stream.id) : CAMERA_STREAM_ID;
2640
2642
  }
2641
2643
  function isClientSpotlighted({ spotlights, isPresentation, clientId, stream, }) {
2642
2644
  return !!spotlights.find((s) => {
@@ -2651,6 +2653,17 @@ function mergeSpotlight(spotlights, spotlight) {
2651
2653
  }
2652
2654
  return spotlights.concat(spotlight);
2653
2655
  }
2656
+ const isSameSpotlight = (a, b) => a.clientId === b.clientId && a.streamId === b.streamId;
2657
+ function swapSpotlights(spotlights, source, target) {
2658
+ const index = spotlights.findIndex((s) => isSameSpotlight(s, source));
2659
+ const targetIndex = spotlights.findIndex((s) => isSameSpotlight(s, target));
2660
+ if (index < 0 || targetIndex < 0 || index === targetIndex) {
2661
+ return spotlights;
2662
+ }
2663
+ const swapped = [...spotlights];
2664
+ [swapped[index], swapped[targetIndex]] = [swapped[targetIndex], swapped[index]];
2665
+ return swapped;
2666
+ }
2654
2667
  function mapSpotlightsToClientViews(spotlights, clientViews) {
2655
2668
  return spotlights.reduce((acc, s) => {
2656
2669
  const clientView = clientViews.find((c) => s.clientId === c.clientId && s.streamId === streamIdForClient(c));
@@ -2696,6 +2709,14 @@ const spotlightsSlice = createSlice({
2696
2709
  const { clientId, streamId } = action.payload;
2697
2710
  return Object.assign(Object.assign({}, state), { sorted: state.sorted.filter((s) => !(s.clientId === clientId && s.streamId === streamId)) });
2698
2711
  });
2712
+ builder.addCase(signalEvents.spotlightOrderSwapped, (state, action) => {
2713
+ if ("error" in action.payload) {
2714
+ return state;
2715
+ }
2716
+ const { source, target } = action.payload;
2717
+ const sorted = swapSpotlights(state.sorted, source, target);
2718
+ return sorted === state.sorted ? state : Object.assign(Object.assign({}, state), { sorted });
2719
+ });
2699
2720
  builder.addMatcher(isAnyOf(signalEvents.clientKicked, signalEvents.clientLeft), (state, action) => {
2700
2721
  const { clientId } = action.payload;
2701
2722
  return Object.assign(Object.assign({}, state), { sorted: state.sorted.filter((s) => s.clientId !== clientId) });
@@ -2725,6 +2746,31 @@ const doRemoveSpotlight = createAppAuthorizedThunk((state) => selectIsAuthorized
2725
2746
  const payload = { clientId: clientView.id, streamId: streamId !== null && streamId !== void 0 ? streamId : CAMERA_STREAM_ID };
2726
2747
  socket === null || socket === void 0 ? void 0 : socket.emit("remove_spotlight", payload);
2727
2748
  });
2749
+ const doSwapSpotlightOrder = createAppAuthorizedThunk((state) => selectIsAuthorizedToSpotlight(state), ({ id, targetId }) => (_, getState) => {
2750
+ const state = getState();
2751
+ const clientViews = selectAllClientViews(state);
2752
+ const spotlights = selectSpotlights(state);
2753
+ const toSpotlight = (clientViewId) => {
2754
+ var _a;
2755
+ const clientView = clientViews.find((c) => c.id === clientViewId);
2756
+ if (!clientView) {
2757
+ return null;
2758
+ }
2759
+ const spotlight = {
2760
+ clientId: clientView.clientId,
2761
+ streamId: (_a = streamIdForClient(clientView)) !== null && _a !== void 0 ? _a : CAMERA_STREAM_ID,
2762
+ };
2763
+ return spotlights.some((s) => isSameSpotlight(s, spotlight)) ? spotlight : null;
2764
+ };
2765
+ const source = toSpotlight(id);
2766
+ const target = toSpotlight(targetId);
2767
+ if (!source || !target || isSameSpotlight(source, target)) {
2768
+ return;
2769
+ }
2770
+ const { socket } = selectSignalConnectionRaw(state);
2771
+ const payload = { source, target };
2772
+ socket === null || socket === void 0 ? void 0 : socket.emit("swap_spotlight_order", payload);
2773
+ });
2728
2774
  const selectSpotlightsRaw = (state) => state.spotlights;
2729
2775
  const selectSpotlights = (state) => state.spotlights.sorted;
2730
2776
  const selectIsLocalParticipantSpotlighted = createSelector(selectLocalParticipantRaw, selectSpotlights, (localParticipant, spotlights) => {
@@ -3990,6 +4036,51 @@ createReactor([selectBreakoutAssignments, selectDeviceId, selectLocalParticipant
3990
4036
  }
3991
4037
  });
3992
4038
 
4039
+ const roomLayoutSliceInitialState = {
4040
+ sortedClientIds: [],
4041
+ };
4042
+ const roomLayoutSlice = createSlice({
4043
+ name: "roomLayout",
4044
+ initialState: roomLayoutSliceInitialState,
4045
+ reducers: {
4046
+ setSortedClientIds(state, action) {
4047
+ return Object.assign(Object.assign({}, state), { sortedClientIds: Array.from(new Set(action.payload)) });
4048
+ },
4049
+ },
4050
+ });
4051
+ const { setSortedClientIds } = roomLayoutSlice.actions;
4052
+ const doReorderClientViews = createAppThunk(({ id, targetId }) => (dispatch, getState) => {
4053
+ const clientIds = selectSortedClientViews(getState()).map((c) => c.id);
4054
+ const index = clientIds.indexOf(id);
4055
+ const targetIndex = clientIds.indexOf(targetId);
4056
+ if (index < 0 || targetIndex < 0 || index === targetIndex) {
4057
+ return;
4058
+ }
4059
+ [clientIds[index], clientIds[targetIndex]] = [clientIds[targetIndex], clientIds[index]];
4060
+ dispatch(setSortedClientIds(clientIds));
4061
+ });
4062
+ const doSetClientViewOrder = createAppThunk((ids) => (dispatch, getState) => {
4063
+ const listed = new Set(ids);
4064
+ const unlisted = selectSortedClientViews(getState())
4065
+ .map((c) => c.id)
4066
+ .filter((id) => !listed.has(id));
4067
+ dispatch(setSortedClientIds([...ids, ...unlisted]));
4068
+ });
4069
+ const selectRoomLayoutRaw = (state) => state.roomLayout;
4070
+ const selectSortedClientIds = (state) => state.roomLayout.sortedClientIds;
4071
+ const selectSortedClientViews = createSelector(selectAllClientViews, selectSortedClientIds, (clientViews, sortedClientIds) => sortClientViews({ sortedClientIds, clientViews }));
4072
+ function sortClientViews({ sortedClientIds, clientViews, }) {
4073
+ if (!sortedClientIds.length) {
4074
+ return clientViews;
4075
+ }
4076
+ const rank = new Map(sortedClientIds.map((id, index) => [id, index]));
4077
+ const unranked = sortedClientIds.length;
4078
+ return clientViews
4079
+ .map((clientView, index) => { var _a; return ({ clientView, index, rank: (_a = rank.get(clientView.id)) !== null && _a !== void 0 ? _a : unranked }); })
4080
+ .sort((a, b) => a.rank - b.rank || a.index - b.index)
4081
+ .map(({ clientView }) => clientView);
4082
+ }
4083
+
3993
4084
  function roomIntegrationContentTagName(integrationName) {
3994
4085
  return `${integrationName}-integration-contentframe`;
3995
4086
  }
@@ -4983,6 +5074,7 @@ const appReducer = combineReducers({
4983
5074
  room: roomSlice.reducer,
4984
5075
  roomConnection: roomConnectionSlice.reducer,
4985
5076
  roomIntegrations: roomIntegrationsSlice.reducer,
5077
+ roomLayout: roomLayoutSlice.reducer,
4986
5078
  rtcAnalytics: rtcAnalyticsSlice.reducer,
4987
5079
  rtcConnection: rtcConnectionSlice.reducer,
4988
5080
  signalConnection: signalConnectionSlice.reducer,
@@ -6092,4 +6184,4 @@ function createServices({ apiBaseUrl, signalBaseUrl } = {}) {
6092
6184
  };
6093
6185
  }
6094
6186
 
6095
- export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, IN_CALL_QUALITY_LEVELS, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoom, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectJoinRoomStage, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantQualityReport, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomFetchStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomLockState, selectRoomLockStateRoomUrl, selectRoomLockStateSource, selectRoomMode, selectRoomRequestedUrl, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoom, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRequestedRoomUrl, setRoomIntegrationsError, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateLocalCallQualityScore, updateRemoteCallQualityScores, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
6187
+ export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, IN_CALL_QUALITY_LEVELS, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoom, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doReorderClientViews, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetClientViewOrder, doSetDevice, doSetDisplayName, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwapSpotlightOrder, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomLayoutSlice, roomLayoutSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectJoinRoomStage, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantQualityReport, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomFetchStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomLayoutRaw, selectRoomLockState, selectRoomLockStateRoomUrl, selectRoomLockStateSource, selectRoomMode, selectRoomRequestedUrl, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoom, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSortedClientIds, selectSortedClientViews, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRequestedRoomUrl, setRoomIntegrationsError, setRoomKey, setSortedClientIds, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, sortClientViews, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateLocalCallQualityScore, updateRemoteCallQualityScores, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/core",
3
3
  "description": "Core library for whereby.com sdk",
4
4
  "author": "Whereby AS",
5
- "version": "1.32.1",
5
+ "version": "1.33.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -71,8 +71,8 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@reduxjs/toolkit": "^2.2.3",
74
- "@whereby.com/media": "11.4.3",
75
- "@whereby.com/audio-denoiser": "1.0.37",
74
+ "@whereby.com/media": "11.5.0",
75
+ "@whereby.com/audio-denoiser": "1.0.38",
76
76
  "@whereby.com/camera-effects": "1.1.4",
77
77
  "axios": "^1.21.1",
78
78
  "btoa": "^1.2.1",