@whereby.com/core 1.1.8 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +69 -22
- package/dist/index.d.cts +11 -2
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.mjs +70 -23
- package/dist/legacy-esm.js +70 -23
- package/dist/redux/index.cjs +35 -8
- package/dist/redux/index.d.cts +14 -1
- package/dist/redux/index.d.mts +14 -1
- package/dist/redux/index.d.ts +14 -1
- package/dist/redux/index.js +34 -9
- package/dist/redux/index.mjs +34 -9
- package/package.json +5 -5
package/dist/redux/index.d.ts
CHANGED
|
@@ -657,6 +657,7 @@ interface AppConfig {
|
|
|
657
657
|
displayName: string;
|
|
658
658
|
localMediaOptions?: LocalMediaOptions;
|
|
659
659
|
roomKey: string | null;
|
|
660
|
+
assistantKey?: string | null;
|
|
660
661
|
roomUrl: string;
|
|
661
662
|
userAgent?: string;
|
|
662
663
|
externalId: string | null;
|
|
@@ -665,6 +666,7 @@ interface AppState {
|
|
|
665
666
|
isNodeSdk: boolean;
|
|
666
667
|
isActive: boolean;
|
|
667
668
|
isDialIn: boolean;
|
|
669
|
+
isAssistant: boolean;
|
|
668
670
|
ignoreBreakoutGroups: boolean;
|
|
669
671
|
roomUrl: string | null;
|
|
670
672
|
roomName: string | null;
|
|
@@ -684,17 +686,20 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
684
686
|
displayName: string;
|
|
685
687
|
localMediaOptions?: LocalMediaOptions;
|
|
686
688
|
roomKey: string | null;
|
|
689
|
+
assistantKey?: string | null;
|
|
687
690
|
roomUrl: string;
|
|
688
691
|
userAgent?: string;
|
|
689
692
|
externalId: string | null;
|
|
690
693
|
};
|
|
691
694
|
isActive: true;
|
|
695
|
+
isAssistant: boolean;
|
|
692
696
|
isNodeSdk: boolean;
|
|
693
697
|
isDialIn: boolean;
|
|
694
698
|
ignoreBreakoutGroups: boolean;
|
|
695
699
|
displayName: string;
|
|
696
700
|
localMediaOptions?: LocalMediaOptions;
|
|
697
701
|
roomKey: string | null;
|
|
702
|
+
assistantKey?: string | null;
|
|
698
703
|
roomUrl: string;
|
|
699
704
|
userAgent: string | null;
|
|
700
705
|
externalId: string | null;
|
|
@@ -703,6 +708,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
703
708
|
isActive: false;
|
|
704
709
|
isNodeSdk: boolean;
|
|
705
710
|
isDialIn: boolean;
|
|
711
|
+
isAssistant: boolean;
|
|
706
712
|
ignoreBreakoutGroups: boolean;
|
|
707
713
|
roomUrl: string | null;
|
|
708
714
|
roomName: string | null;
|
|
@@ -717,6 +723,7 @@ declare const doAppStart: _reduxjs_toolkit.ActionCreatorWithPayload<AppConfig, "
|
|
|
717
723
|
declare const selectAppRaw: (state: RootState) => AppState;
|
|
718
724
|
declare const selectAppIsActive: (state: RootState) => boolean;
|
|
719
725
|
declare const selectAppIsDialIn: (state: RootState) => boolean;
|
|
726
|
+
declare const selectAppIsAssistant: (state: RootState) => boolean;
|
|
720
727
|
declare const selectAppRoomName: (state: RootState) => string | null;
|
|
721
728
|
declare const selectAppRoomUrl: (state: RootState) => string | null;
|
|
722
729
|
declare const selectAppDisplayName: (state: RootState) => string | null;
|
|
@@ -728,17 +735,20 @@ declare const selectAppIgnoreBreakoutGroups: (state: RootState) => boolean;
|
|
|
728
735
|
|
|
729
736
|
interface AuthorizationState {
|
|
730
737
|
roomKey: string | null;
|
|
738
|
+
assistantKey?: string | null;
|
|
731
739
|
roleName: RoleName;
|
|
732
740
|
}
|
|
733
741
|
declare const authorizationSliceInitialState: AuthorizationState;
|
|
734
742
|
declare const authorizationSlice: _reduxjs_toolkit.Slice<AuthorizationState, {
|
|
735
743
|
setRoomKey: (state: immer.WritableDraft<AuthorizationState>, action: PayloadAction<string | null>) => {
|
|
736
744
|
roomKey: string | null;
|
|
745
|
+
assistantKey?: string | null | undefined;
|
|
737
746
|
roleName: RoleName;
|
|
738
747
|
};
|
|
739
748
|
}, "authorization", "authorization", _reduxjs_toolkit.SliceSelectors<AuthorizationState>>;
|
|
740
749
|
declare const setRoomKey: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "authorization/setRoomKey">;
|
|
741
750
|
declare const selectRoomKey: (state: RootState) => string | null;
|
|
751
|
+
declare const selectAssistantKey: (state: RootState) => string | null | undefined;
|
|
742
752
|
declare const selectAuthorizationRoleName: (state: RootState) => RoleName;
|
|
743
753
|
declare const selectIsAuthorizedToLockRoom: ((state: {
|
|
744
754
|
app: AppState;
|
|
@@ -1727,6 +1737,9 @@ declare const doSwitchLocalStream: _reduxjs_toolkit.AsyncThunk<{
|
|
|
1727
1737
|
declare const doStartLocalMedia: _reduxjs_toolkit.AsyncThunk<{
|
|
1728
1738
|
stream: MediaStream;
|
|
1729
1739
|
onDeviceChange: DebouncedFunction;
|
|
1740
|
+
} | {
|
|
1741
|
+
stream: undefined;
|
|
1742
|
+
onDeviceChange: DebouncedFunction;
|
|
1730
1743
|
}, LocalMediaOptions | MediaStream, ThunkConfig>;
|
|
1731
1744
|
declare const doStopLocalMedia: (args: void) => AppThunk;
|
|
1732
1745
|
declare const selectBusyDeviceIds: (state: RootState) => string[];
|
|
@@ -4690,5 +4703,5 @@ declare const selectRoomConnectionSessionId: (state: RootState) => string | unde
|
|
|
4690
4703
|
declare const selectRoomConnectionStatus: (state: RootState) => ConnectionStatus;
|
|
4691
4704
|
declare const selectRoomConnectionError: (state: RootState) => string | null;
|
|
4692
4705
|
|
|
4693
|
-
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, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, 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, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, 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, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, 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, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
4706
|
+
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, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, 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, 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, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, 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, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
4694
4707
|
export type { AppConfig, AppDispatch, AppReducer, AppStartListening, AppState, AppThunk, AuthorizationState, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageEventProps, ChatState, ClientView, CloudRecordingState, ConnectionMonitorStart, ConnectionMonitorState, ConnectionStatus, DeviceCredentialsState, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, Notification, NotificationEvent, NotificationEventMap, NotificationEvents, NotificationsEventEmitter, NotificationsState, OrganizationState, RemoteParticipantSliceState, RequestAudioEvent, RequestAudioEventProps, RequestVideoEvent, RequestVideoEventProps, RoomConnectionState, RoomState, RootState, RtcConnectionState, SignalClientEvent, SignalClientEventProps, SignalConnectionState, SignalStatusEvent, SignalStatusEventProps, SpotlightsState, StickyReactionEvent, StickyReactionEventProps, Store, StreamingState, ThunkConfig, WaitingParticipantsState, rtcAnalyticsState };
|
package/dist/redux/index.js
CHANGED
|
@@ -73,12 +73,13 @@ const createReactor = (selectors, callback) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const coreVersion = "1.
|
|
76
|
+
const coreVersion = "1.2.0";
|
|
77
77
|
|
|
78
78
|
const initialState = {
|
|
79
79
|
isNodeSdk: false,
|
|
80
80
|
isActive: false,
|
|
81
81
|
isDialIn: false,
|
|
82
|
+
isAssistant: false,
|
|
82
83
|
ignoreBreakoutGroups: false,
|
|
83
84
|
roomName: null,
|
|
84
85
|
roomUrl: null,
|
|
@@ -92,7 +93,7 @@ const appSlice = createSlice({
|
|
|
92
93
|
reducers: {
|
|
93
94
|
doAppStart: (state, action) => {
|
|
94
95
|
const url = new URL(action.payload.roomUrl);
|
|
95
|
-
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { roomName: url.pathname, initialConfig: Object.assign({}, action.payload), isActive: true });
|
|
96
|
+
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { roomName: url.pathname, initialConfig: Object.assign({}, action.payload), isActive: true, isAssistant: Boolean(action.payload.assistantKey) });
|
|
96
97
|
},
|
|
97
98
|
doAppStop: (state) => {
|
|
98
99
|
return Object.assign(Object.assign({}, state), { isActive: false });
|
|
@@ -103,6 +104,7 @@ const { doAppStop, doAppStart } = appSlice.actions;
|
|
|
103
104
|
const selectAppRaw = (state) => state.app;
|
|
104
105
|
const selectAppIsActive = (state) => state.app.isActive;
|
|
105
106
|
const selectAppIsDialIn = (state) => state.app.isDialIn;
|
|
107
|
+
const selectAppIsAssistant = (state) => state.app.isAssistant;
|
|
106
108
|
const selectAppRoomName = (state) => state.app.roomName;
|
|
107
109
|
const selectAppRoomUrl = (state) => state.app.roomUrl;
|
|
108
110
|
const selectAppDisplayName = (state) => state.app.displayName;
|
|
@@ -160,6 +162,7 @@ const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
|
160
162
|
};
|
|
161
163
|
const authorizationSliceInitialState = {
|
|
162
164
|
roomKey: null,
|
|
165
|
+
assistantKey: null,
|
|
163
166
|
roleName: "none",
|
|
164
167
|
};
|
|
165
168
|
const authorizationSlice = createSlice({
|
|
@@ -172,7 +175,7 @@ const authorizationSlice = createSlice({
|
|
|
172
175
|
},
|
|
173
176
|
extraReducers: (builder) => {
|
|
174
177
|
builder.addCase(doAppStart, (state, action) => {
|
|
175
|
-
return Object.assign(Object.assign({}, state), { roomKey: action.payload.roomKey });
|
|
178
|
+
return Object.assign(Object.assign({}, state), { roomKey: action.payload.roomKey, assistantKey: action.payload.assistantKey });
|
|
176
179
|
});
|
|
177
180
|
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
178
181
|
if ("error" in action.payload) {
|
|
@@ -189,6 +192,7 @@ const authorizationSlice = createSlice({
|
|
|
189
192
|
});
|
|
190
193
|
const { setRoomKey } = authorizationSlice.actions;
|
|
191
194
|
const selectRoomKey = (state) => state.authorization.roomKey;
|
|
195
|
+
const selectAssistantKey = (state) => state.authorization.assistantKey;
|
|
192
196
|
const selectAuthorizationRoleName = (state) => state.authorization.roleName;
|
|
193
197
|
const selectIsAuthorizedToLockRoom = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canLockRoom.includes(localParticipantRole));
|
|
194
198
|
const selectIsAuthorizedToRequestAudioEnable = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canRequestAudioEnable.includes(localParticipantRole));
|
|
@@ -556,8 +560,8 @@ const localMediaSlice = createSlice({
|
|
|
556
560
|
let cameraEnabled = false;
|
|
557
561
|
let microphoneDeviceId = undefined;
|
|
558
562
|
let microphoneEnabled = false;
|
|
559
|
-
const audioTrack = stream.getAudioTracks()[0];
|
|
560
|
-
const videoTrack = stream.getVideoTracks()[0];
|
|
563
|
+
const audioTrack = stream === null || stream === void 0 ? void 0 : stream.getAudioTracks()[0];
|
|
564
|
+
const videoTrack = stream === null || stream === void 0 ? void 0 : stream.getVideoTracks()[0];
|
|
561
565
|
if (audioTrack) {
|
|
562
566
|
microphoneDeviceId = audioTrack.getSettings().deviceId;
|
|
563
567
|
microphoneEnabled = audioTrack.enabled;
|
|
@@ -743,7 +747,7 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
743
747
|
return Promise.resolve({ stream: payload, onDeviceChange });
|
|
744
748
|
}
|
|
745
749
|
if (!(payload.audio || payload.video)) {
|
|
746
|
-
return { stream:
|
|
750
|
+
return { stream: undefined, onDeviceChange };
|
|
747
751
|
}
|
|
748
752
|
else {
|
|
749
753
|
dispatch(setLocalMediaOptions({ options: payload }));
|
|
@@ -1973,6 +1977,20 @@ startAppListening({
|
|
|
1973
1977
|
dispatch(rtcClientConnectionStatusChanged({ localParticipantId: localParticipant.id }));
|
|
1974
1978
|
},
|
|
1975
1979
|
});
|
|
1980
|
+
startAppListening({
|
|
1981
|
+
actionCreator: doStartLocalMedia.fulfilled,
|
|
1982
|
+
effect: ({ payload }, { getState }) => {
|
|
1983
|
+
const { rtcManager, rtcManagerInitialized } = selectRtcConnectionRaw(getState());
|
|
1984
|
+
if (!rtcManager || !rtcManagerInitialized)
|
|
1985
|
+
return;
|
|
1986
|
+
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
1987
|
+
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
1988
|
+
const { stream } = payload;
|
|
1989
|
+
if (stream) {
|
|
1990
|
+
rtcManager.addNewStream("0", payload.stream, !isMicrophoneEnabled, !isCameraEnabled);
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
});
|
|
1976
1994
|
const selectShouldConnectRtc = createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
|
|
1977
1995
|
if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
|
|
1978
1996
|
return true;
|
|
@@ -2292,8 +2310,13 @@ startAppListening({
|
|
|
2292
2310
|
dispatch(doEnableAudio({ enabled: enabled || !isAudioEnabled }));
|
|
2293
2311
|
},
|
|
2294
2312
|
});
|
|
2295
|
-
createReactor([
|
|
2296
|
-
|
|
2313
|
+
createReactor([
|
|
2314
|
+
selectLocalParticipantDisplayName,
|
|
2315
|
+
selectLocalParticipantStickyReaction,
|
|
2316
|
+
selectRoomConnectionStatus,
|
|
2317
|
+
selectAppIsAssistant,
|
|
2318
|
+
], ({ dispatch }, diplayName, stickyReaction, roomConnectionStatus, isAssistant) => {
|
|
2319
|
+
if (roomConnectionStatus === "connected" && !isAssistant) {
|
|
2297
2320
|
dispatch(doSendClientMetadata());
|
|
2298
2321
|
}
|
|
2299
2322
|
});
|
|
@@ -2623,6 +2646,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2623
2646
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
2624
2647
|
const roomName = selectAppRoomName(state);
|
|
2625
2648
|
const roomKey = selectRoomKey(state);
|
|
2649
|
+
const assistantKey = selectAssistantKey(state);
|
|
2626
2650
|
const displayName = selectAppDisplayName(state);
|
|
2627
2651
|
const userAgent = selectAppUserAgent(state);
|
|
2628
2652
|
const externalId = selectAppExternalId(state);
|
|
@@ -2636,6 +2660,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2636
2660
|
isVideoEnabled: isCameraEnabled,
|
|
2637
2661
|
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
2638
2662
|
roomKey,
|
|
2663
|
+
assistantKey,
|
|
2639
2664
|
roomName,
|
|
2640
2665
|
userAgent,
|
|
2641
2666
|
externalId }, (clientClaim && { clientClaim })));
|
|
@@ -3739,4 +3764,4 @@ function createServices() {
|
|
|
3739
3764
|
};
|
|
3740
3765
|
}
|
|
3741
3766
|
|
|
3742
|
-
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, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, 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, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, 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, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, 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, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
3767
|
+
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, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, 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, 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, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, 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, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
package/dist/redux/index.mjs
CHANGED
|
@@ -73,12 +73,13 @@ const createReactor = (selectors, callback) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const coreVersion = "1.
|
|
76
|
+
const coreVersion = "1.2.0";
|
|
77
77
|
|
|
78
78
|
const initialState = {
|
|
79
79
|
isNodeSdk: false,
|
|
80
80
|
isActive: false,
|
|
81
81
|
isDialIn: false,
|
|
82
|
+
isAssistant: false,
|
|
82
83
|
ignoreBreakoutGroups: false,
|
|
83
84
|
roomName: null,
|
|
84
85
|
roomUrl: null,
|
|
@@ -92,7 +93,7 @@ const appSlice = createSlice({
|
|
|
92
93
|
reducers: {
|
|
93
94
|
doAppStart: (state, action) => {
|
|
94
95
|
const url = new URL(action.payload.roomUrl);
|
|
95
|
-
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { roomName: url.pathname, initialConfig: Object.assign({}, action.payload), isActive: true });
|
|
96
|
+
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { roomName: url.pathname, initialConfig: Object.assign({}, action.payload), isActive: true, isAssistant: Boolean(action.payload.assistantKey) });
|
|
96
97
|
},
|
|
97
98
|
doAppStop: (state) => {
|
|
98
99
|
return Object.assign(Object.assign({}, state), { isActive: false });
|
|
@@ -103,6 +104,7 @@ const { doAppStop, doAppStart } = appSlice.actions;
|
|
|
103
104
|
const selectAppRaw = (state) => state.app;
|
|
104
105
|
const selectAppIsActive = (state) => state.app.isActive;
|
|
105
106
|
const selectAppIsDialIn = (state) => state.app.isDialIn;
|
|
107
|
+
const selectAppIsAssistant = (state) => state.app.isAssistant;
|
|
106
108
|
const selectAppRoomName = (state) => state.app.roomName;
|
|
107
109
|
const selectAppRoomUrl = (state) => state.app.roomUrl;
|
|
108
110
|
const selectAppDisplayName = (state) => state.app.displayName;
|
|
@@ -160,6 +162,7 @@ const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
|
160
162
|
};
|
|
161
163
|
const authorizationSliceInitialState = {
|
|
162
164
|
roomKey: null,
|
|
165
|
+
assistantKey: null,
|
|
163
166
|
roleName: "none",
|
|
164
167
|
};
|
|
165
168
|
const authorizationSlice = createSlice({
|
|
@@ -172,7 +175,7 @@ const authorizationSlice = createSlice({
|
|
|
172
175
|
},
|
|
173
176
|
extraReducers: (builder) => {
|
|
174
177
|
builder.addCase(doAppStart, (state, action) => {
|
|
175
|
-
return Object.assign(Object.assign({}, state), { roomKey: action.payload.roomKey });
|
|
178
|
+
return Object.assign(Object.assign({}, state), { roomKey: action.payload.roomKey, assistantKey: action.payload.assistantKey });
|
|
176
179
|
});
|
|
177
180
|
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
178
181
|
if ("error" in action.payload) {
|
|
@@ -189,6 +192,7 @@ const authorizationSlice = createSlice({
|
|
|
189
192
|
});
|
|
190
193
|
const { setRoomKey } = authorizationSlice.actions;
|
|
191
194
|
const selectRoomKey = (state) => state.authorization.roomKey;
|
|
195
|
+
const selectAssistantKey = (state) => state.authorization.assistantKey;
|
|
192
196
|
const selectAuthorizationRoleName = (state) => state.authorization.roleName;
|
|
193
197
|
const selectIsAuthorizedToLockRoom = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canLockRoom.includes(localParticipantRole));
|
|
194
198
|
const selectIsAuthorizedToRequestAudioEnable = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canRequestAudioEnable.includes(localParticipantRole));
|
|
@@ -556,8 +560,8 @@ const localMediaSlice = createSlice({
|
|
|
556
560
|
let cameraEnabled = false;
|
|
557
561
|
let microphoneDeviceId = undefined;
|
|
558
562
|
let microphoneEnabled = false;
|
|
559
|
-
const audioTrack = stream.getAudioTracks()[0];
|
|
560
|
-
const videoTrack = stream.getVideoTracks()[0];
|
|
563
|
+
const audioTrack = stream === null || stream === void 0 ? void 0 : stream.getAudioTracks()[0];
|
|
564
|
+
const videoTrack = stream === null || stream === void 0 ? void 0 : stream.getVideoTracks()[0];
|
|
561
565
|
if (audioTrack) {
|
|
562
566
|
microphoneDeviceId = audioTrack.getSettings().deviceId;
|
|
563
567
|
microphoneEnabled = audioTrack.enabled;
|
|
@@ -743,7 +747,7 @@ const doStartLocalMedia = createAppAsyncThunk("localMedia/doStartLocalMedia", (p
|
|
|
743
747
|
return Promise.resolve({ stream: payload, onDeviceChange });
|
|
744
748
|
}
|
|
745
749
|
if (!(payload.audio || payload.video)) {
|
|
746
|
-
return { stream:
|
|
750
|
+
return { stream: undefined, onDeviceChange };
|
|
747
751
|
}
|
|
748
752
|
else {
|
|
749
753
|
dispatch(setLocalMediaOptions({ options: payload }));
|
|
@@ -1973,6 +1977,20 @@ startAppListening({
|
|
|
1973
1977
|
dispatch(rtcClientConnectionStatusChanged({ localParticipantId: localParticipant.id }));
|
|
1974
1978
|
},
|
|
1975
1979
|
});
|
|
1980
|
+
startAppListening({
|
|
1981
|
+
actionCreator: doStartLocalMedia.fulfilled,
|
|
1982
|
+
effect: ({ payload }, { getState }) => {
|
|
1983
|
+
const { rtcManager, rtcManagerInitialized } = selectRtcConnectionRaw(getState());
|
|
1984
|
+
if (!rtcManager || !rtcManagerInitialized)
|
|
1985
|
+
return;
|
|
1986
|
+
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
1987
|
+
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
1988
|
+
const { stream } = payload;
|
|
1989
|
+
if (stream) {
|
|
1990
|
+
rtcManager.addNewStream("0", payload.stream, !isMicrophoneEnabled, !isCameraEnabled);
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
});
|
|
1976
1994
|
const selectShouldConnectRtc = createSelector(selectRtcStatus, selectAppIsActive, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectSignalConnectionSocket, (rtcStatus, appIsActive, dispatcherCreated, isCreatingDispatcher, signalSocket) => {
|
|
1977
1995
|
if (appIsActive && rtcStatus === "inactive" && !dispatcherCreated && !isCreatingDispatcher && signalSocket) {
|
|
1978
1996
|
return true;
|
|
@@ -2292,8 +2310,13 @@ startAppListening({
|
|
|
2292
2310
|
dispatch(doEnableAudio({ enabled: enabled || !isAudioEnabled }));
|
|
2293
2311
|
},
|
|
2294
2312
|
});
|
|
2295
|
-
createReactor([
|
|
2296
|
-
|
|
2313
|
+
createReactor([
|
|
2314
|
+
selectLocalParticipantDisplayName,
|
|
2315
|
+
selectLocalParticipantStickyReaction,
|
|
2316
|
+
selectRoomConnectionStatus,
|
|
2317
|
+
selectAppIsAssistant,
|
|
2318
|
+
], ({ dispatch }, diplayName, stickyReaction, roomConnectionStatus, isAssistant) => {
|
|
2319
|
+
if (roomConnectionStatus === "connected" && !isAssistant) {
|
|
2297
2320
|
dispatch(doSendClientMetadata());
|
|
2298
2321
|
}
|
|
2299
2322
|
});
|
|
@@ -2623,6 +2646,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2623
2646
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
2624
2647
|
const roomName = selectAppRoomName(state);
|
|
2625
2648
|
const roomKey = selectRoomKey(state);
|
|
2649
|
+
const assistantKey = selectAssistantKey(state);
|
|
2626
2650
|
const displayName = selectAppDisplayName(state);
|
|
2627
2651
|
const userAgent = selectAppUserAgent(state);
|
|
2628
2652
|
const externalId = selectAppExternalId(state);
|
|
@@ -2636,6 +2660,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
2636
2660
|
isVideoEnabled: isCameraEnabled,
|
|
2637
2661
|
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
2638
2662
|
roomKey,
|
|
2663
|
+
assistantKey,
|
|
2639
2664
|
roomName,
|
|
2640
2665
|
userAgent,
|
|
2641
2666
|
externalId }, (clientClaim && { clientClaim })));
|
|
@@ -3739,4 +3764,4 @@ function createServices() {
|
|
|
3739
3764
|
};
|
|
3740
3765
|
}
|
|
3741
3766
|
|
|
3742
|
-
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, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, 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, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, 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, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, 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, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
3767
|
+
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, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, 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, 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, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, 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, 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.
|
|
5
|
+
"version": "1.2.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"@whereby.com/eslint-config": "0.1.0",
|
|
62
62
|
"@whereby.com/jest-config": "0.1.0",
|
|
63
63
|
"@whereby.com/prettier-config": "0.1.0",
|
|
64
|
-
"@whereby.com/
|
|
65
|
-
"@whereby.com/
|
|
64
|
+
"@whereby.com/tsconfig": "0.1.0",
|
|
65
|
+
"@whereby.com/rollup-config": "0.1.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@reduxjs/toolkit": "^2.2.3",
|
|
69
|
-
"@whereby.com/media": "2.
|
|
69
|
+
"@whereby.com/media": "2.2.0",
|
|
70
70
|
"axios": "^1.11.0",
|
|
71
71
|
"btoa": "^1.2.1",
|
|
72
72
|
"events": "^3.3.0"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"prettier": "@whereby.com/prettier-config",
|
|
75
75
|
"scripts": {
|
|
76
76
|
"clean": "rimraf dist node_modules .turbo",
|
|
77
|
-
"build": "rimraf dist && rollup -c rollup.config.js",
|
|
77
|
+
"build": "rimraf dist && node --max-old-space-size=8192 ../../node_modules/rollup/dist/bin/rollup -c rollup.config.js",
|
|
78
78
|
"test": "pnpm test:lint && pnpm test:unit",
|
|
79
79
|
"test:lint": "eslint src/",
|
|
80
80
|
"test:unit": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js",
|