@whereby.com/core 1.9.2 → 1.9.4

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.
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.9.2";
76
+ const coreVersion = "1.9.4";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
@@ -617,7 +617,7 @@ const doToggleCamera = createAppAsyncThunk("localMedia/doToggleCamera", (_1, _a)
617
617
  else {
618
618
  const constraintsOptions = selectLocalMediaConstraintsOptions(state);
619
619
  const cameraDeviceId = selectCurrentCameraDeviceId(state);
620
- yield getStream(Object.assign(Object.assign({}, constraintsOptions), { audioId: false, videoId: cameraDeviceId || true, type: "exact" }), { replaceStream: stream });
620
+ yield getStream(Object.assign(Object.assign({}, constraintsOptions), { audioId: false, videoId: cameraDeviceId, type: "exact" }), { replaceStream: stream });
621
621
  track = stream.getVideoTracks()[0];
622
622
  }
623
623
  }
@@ -682,6 +682,7 @@ const doSetDevice = createAppAsyncThunk("localMedia/reactSetDevice", (_a, _b) =>
682
682
  }
683
683
  }));
684
684
  const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch, rejectWithValue }) {
685
+ var _b, _c, _d, _e;
685
686
  const state = getState();
686
687
  let newDevices = [];
687
688
  let oldDevices = [];
@@ -697,29 +698,19 @@ const doUpdateDeviceList = createAppAsyncThunk("localMedia/doUpdateDeviceList",
697
698
  if (!shouldHandleDeviceUpdate) {
698
699
  return { devices: newDevices };
699
700
  }
700
- const { currentCameraDeviceId, currentMicrophoneDeviceId, currentSpeakerDeviceId } = state.localMedia;
701
- const { changedDevices, removedDevices } = getUpdatedDevices({
701
+ const { changedDevices, addedDevices } = getUpdatedDevices({
702
702
  oldDevices,
703
703
  newDevices,
704
- currentVideoId: currentCameraDeviceId,
705
- currentAudioId: currentMicrophoneDeviceId,
706
- currentSpeakerId: currentSpeakerDeviceId,
707
704
  });
708
- let autoSwitchAudioId;
709
- let autoSwitchVideoId;
710
- if (removedDevices.audioinput) {
711
- autoSwitchAudioId = true;
705
+ let autoSwitchAudioId = (_b = changedDevices.audioinput) === null || _b === void 0 ? void 0 : _b.deviceId;
706
+ let autoSwitchVideoId = (_c = changedDevices.videoinput) === null || _c === void 0 ? void 0 : _c.deviceId;
707
+ if (autoSwitchAudioId === undefined) {
708
+ autoSwitchAudioId = (_d = addedDevices.audioinput) === null || _d === void 0 ? void 0 : _d.deviceId;
712
709
  }
713
- if (removedDevices.videoinput) {
714
- autoSwitchVideoId = true;
710
+ if (autoSwitchVideoId === undefined) {
711
+ autoSwitchVideoId = (_e = addedDevices.videoinput) === null || _e === void 0 ? void 0 : _e.deviceId;
715
712
  }
716
- if (!autoSwitchAudioId && changedDevices.audioinput) {
717
- autoSwitchAudioId = changedDevices.audioinput.deviceId;
718
- }
719
- if (!autoSwitchVideoId && changedDevices.videoinput) {
720
- autoSwitchVideoId = changedDevices.videoinput.deviceId;
721
- }
722
- if (autoSwitchAudioId || autoSwitchVideoId) {
713
+ if (autoSwitchAudioId !== undefined || autoSwitchVideoId !== undefined) {
723
714
  dispatch(doSwitchLocalStream({ audioId: autoSwitchAudioId, videoId: autoSwitchVideoId }));
724
715
  }
725
716
  return { devices: newDevices };
@@ -737,29 +728,28 @@ const doSwitchLocalStream = createAppAsyncThunk("localMedia/doSwitchLocalStream"
737
728
  return;
738
729
  }
739
730
  const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
740
- if (audioId && (beforeEffectTracks === null || beforeEffectTracks === void 0 ? void 0 : beforeEffectTracks.audio)) {
731
+ if (audioId !== undefined && (beforeEffectTracks === null || beforeEffectTracks === void 0 ? void 0 : beforeEffectTracks.audio)) {
741
732
  beforeEffectTracks.audio.stop();
742
733
  beforeEffectTracks.audio = undefined;
743
734
  }
744
- if (videoId && (beforeEffectTracks === null || beforeEffectTracks === void 0 ? void 0 : beforeEffectTracks.video)) {
735
+ if (videoId !== undefined && (beforeEffectTracks === null || beforeEffectTracks === void 0 ? void 0 : beforeEffectTracks.video)) {
745
736
  beforeEffectTracks.video.stop();
746
737
  beforeEffectTracks.video = undefined;
747
738
  }
748
739
  try {
749
- const { replacedTracks, error } = yield getStream(Object.assign(Object.assign({}, constraintsOptions), { audioId: audioId || false, videoId: videoId || false, type: "exact" }), { replaceStream });
750
- if (error) {
751
- const deviceId = audioId || videoId;
752
- if (onlySwitchingOne && typeof deviceId === "string") {
753
- dispatch(deviceBusy({
754
- deviceId,
755
- }));
756
- }
740
+ const { replacedTracks } = yield getStream(Object.assign(Object.assign({}, constraintsOptions), { audioId: audioId === undefined ? false : audioId, videoId: videoId === undefined ? false : videoId, type: "exact" }), { replaceStream });
741
+ const deviceId = audioId || videoId;
742
+ if (onlySwitchingOne && deviceId) {
743
+ dispatch(deviceBusy({
744
+ deviceId,
745
+ }));
757
746
  }
758
747
  return { replacedTracks, beforeEffectTracks };
759
748
  }
760
749
  catch (error) {
750
+ console.error(error);
761
751
  const deviceId = audioId || videoId;
762
- if (onlySwitchingOne && typeof deviceId === "string") {
752
+ if (onlySwitchingOne && deviceId) {
763
753
  dispatch(deviceBusy({
764
754
  deviceId,
765
755
  }));
@@ -899,17 +889,13 @@ createReactor([selectLocalMediaShouldStartWithOptions], ({ dispatch }, options)
899
889
  dispatch(doStartLocalMedia(options));
900
890
  }
901
891
  });
902
- startAppListening({
903
- predicate: (_action, currentState, previousState) => {
904
- const oldValue = selectAppIsActive(previousState);
905
- const newValue = selectAppIsActive(currentState);
906
- const localMediaOptions = selectLocalMediaOptions(currentState);
907
- const localMediaStatus = selectLocalMediaStatus(currentState);
908
- return (oldValue === true && newValue === false) && localMediaStatus !== "inactive" && !!localMediaOptions;
909
- },
910
- effect: (_, { dispatch }) => {
892
+ const selectLocalMediaShouldStop = createSelector(selectAppIsActive, selectLocalMediaStatus, selectLocalMediaOptions, (appIsActive, localMediaStatus, localMediaOptions) => {
893
+ return !appIsActive && localMediaStatus !== "inactive" && !!localMediaOptions;
894
+ });
895
+ createReactor([selectLocalMediaShouldStop], ({ dispatch }, localMediaShouldStop) => {
896
+ if (localMediaShouldStop) {
911
897
  dispatch(doStopLocalMedia());
912
- },
898
+ }
913
899
  });
914
900
  startAppListening({
915
901
  predicate: (_action, currentState, previousState) => {
@@ -950,25 +936,10 @@ startAppListening({
950
936
  });
951
937
  startAppListening({
952
938
  predicate: (_action, currentState, previousState) => {
953
- var _a, _b;
954
- const oldDeviceId = selectCurrentCameraDeviceId(previousState);
955
- const newDeviceId = selectCurrentCameraDeviceId(currentState);
939
+ const oldValue = selectCurrentCameraDeviceId(previousState);
940
+ const newValue = selectCurrentCameraDeviceId(currentState);
956
941
  const isReady = selectLocalMediaStatus(previousState) === "started";
957
- const isSwitchingStream = selectLocalMediaIsSwitchingStream(currentState);
958
- if (isSwitchingStream) {
959
- return false;
960
- }
961
- if (!newDeviceId) {
962
- return false;
963
- }
964
- const currentTrack = (_b = (_a = selectLocalMediaStream(currentState)) === null || _a === void 0 ? void 0 : _a.getVideoTracks()) === null || _b === void 0 ? void 0 : _b[0];
965
- if (currentTrack && currentTrack.readyState === "live") {
966
- const currentDeviceId = currentTrack.getSettings().deviceId;
967
- if (currentDeviceId === newDeviceId) {
968
- return false;
969
- }
970
- }
971
- return isReady && oldDeviceId !== newDeviceId;
942
+ return isReady && oldValue !== newValue;
972
943
  },
973
944
  effect: (_action, { dispatch }) => {
974
945
  dispatch(doSetDevice({ audio: false, video: true }));
@@ -976,25 +947,10 @@ startAppListening({
976
947
  });
977
948
  startAppListening({
978
949
  predicate: (_action, currentState, previousState) => {
979
- var _a, _b;
980
- const oldDeviceId = selectCurrentMicrophoneDeviceId(previousState);
981
- const newDeviceId = selectCurrentMicrophoneDeviceId(currentState);
950
+ const oldValue = selectCurrentMicrophoneDeviceId(previousState);
951
+ const newValue = selectCurrentMicrophoneDeviceId(currentState);
982
952
  const isReady = selectLocalMediaStatus(previousState) === "started";
983
- const isSwitchingStream = selectLocalMediaIsSwitchingStream(currentState);
984
- if (isSwitchingStream) {
985
- return false;
986
- }
987
- if (!newDeviceId) {
988
- return false;
989
- }
990
- const currentTrack = (_b = (_a = selectLocalMediaStream(currentState)) === null || _a === void 0 ? void 0 : _a.getVideoTracks()) === null || _b === void 0 ? void 0 : _b[0];
991
- if (currentTrack && currentTrack.readyState === "live") {
992
- const currentDeviceId = currentTrack.getSettings().deviceId;
993
- if (currentDeviceId === newDeviceId) {
994
- return false;
995
- }
996
- }
997
- return isReady && oldDeviceId !== newDeviceId;
953
+ return isReady && oldValue !== newValue;
998
954
  },
999
955
  effect: (_action, { dispatch }) => {
1000
956
  dispatch(doSetDevice({ audio: true, video: false }));
@@ -1826,6 +1782,15 @@ startAppListening({
1826
1782
  },
1827
1783
  });
1828
1784
 
1785
+ function isDeferrable({ client, breakoutCurrentId }) {
1786
+ if (!client)
1787
+ return false;
1788
+ if (!breakoutCurrentId && client.breakoutGroup)
1789
+ return true;
1790
+ if (!client.isAudioEnabled && !client.isVideoEnabled)
1791
+ return true;
1792
+ return false;
1793
+ }
1829
1794
  const createWebRtcEmitter = (dispatch) => {
1830
1795
  return {
1831
1796
  emit: (eventName, data) => {
@@ -1913,12 +1878,22 @@ const doConnectRtc = createAppThunk(() => (dispatch, getState) => {
1913
1878
  const state = getState();
1914
1879
  const socket = selectSignalConnectionRaw(state).socket;
1915
1880
  const dispatcher = selectRtcConnectionRaw(state).rtcManagerDispatcher;
1881
+ const isCameraEnabled = selectIsCameraEnabled(state);
1882
+ const isMicrophoneEnabled = selectIsMicrophoneEnabled(state);
1916
1883
  const isNodeSdk = selectAppIsNodeSdk(state);
1917
1884
  if (dispatcher || !socket) {
1918
1885
  return;
1919
1886
  }
1920
1887
  const webrtcProvider = {
1921
- getMediaConstraints: () => selectLocalMediaConstraintsOptions(state),
1888
+ getMediaConstraints: () => ({
1889
+ audio: isMicrophoneEnabled,
1890
+ video: isCameraEnabled,
1891
+ }),
1892
+ deferrable(clientId) {
1893
+ const client = selectRemoteParticipants(getState()).find((p) => p.id === clientId);
1894
+ const breakoutCurrentId = selectBreakoutCurrentId(getState()) || "";
1895
+ return isDeferrable({ client, breakoutCurrentId });
1896
+ },
1922
1897
  };
1923
1898
  const rtcManagerDispatcher = new RtcManagerDispatcher({
1924
1899
  emitter: createWebRtcEmitter(dispatch),
@@ -4042,4 +4017,4 @@ function createServices() {
4042
4017
  };
4043
4018
  }
4044
4019
 
4045
- export { addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$1 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
4020
+ export { addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$1 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, transcribingRequestStarted, 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.9.2",
5
+ "version": "1.9.4",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -58,15 +58,15 @@
58
58
  "eslint": "^9.29.0",
59
59
  "prettier": "^3.5.3",
60
60
  "typescript": "^5.8.3",
61
+ "@whereby.com/eslint-config": "0.1.0",
61
62
  "@whereby.com/jest-config": "0.1.0",
62
63
  "@whereby.com/prettier-config": "0.1.0",
63
64
  "@whereby.com/rollup-config": "0.1.1",
64
- "@whereby.com/tsconfig": "0.1.0",
65
- "@whereby.com/eslint-config": "0.1.0"
65
+ "@whereby.com/tsconfig": "0.1.0"
66
66
  },
67
67
  "dependencies": {
68
68
  "@reduxjs/toolkit": "^2.2.3",
69
- "@whereby.com/media": "6.0.0",
69
+ "@whereby.com/media": "7.0.1",
70
70
  "axios": "^1.11.0",
71
71
  "btoa": "^1.2.1",
72
72
  "events": "^3.3.0"