@whereby.com/core 1.14.2 → 1.15.1
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 +123 -15
- package/dist/index.d.cts +36 -3
- package/dist/index.d.mts +36 -3
- package/dist/index.d.ts +36 -3
- package/dist/index.mjs +121 -16
- package/dist/legacy-esm.js +121 -16
- package/dist/redux/index.cjs +111 -14
- package/dist/redux/index.d.cts +217 -100
- package/dist/redux/index.d.mts +217 -100
- package/dist/redux/index.d.ts +217 -100
- package/dist/redux/index.js +100 -15
- package/dist/redux/index.mjs +100 -15
- package/package.json +4 -4
package/dist/redux/index.js
CHANGED
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.15.1";
|
|
78
78
|
|
|
79
79
|
const initialState$2 = {
|
|
80
80
|
displayName: null,
|
|
@@ -156,6 +156,7 @@ const signalEvents = {
|
|
|
156
156
|
liveTranscriptionStopped: createSignalEventAction("liveTranscriptionStopped"),
|
|
157
157
|
liveCaptionsStarted: createSignalEventAction("liveCaptionsStarted"),
|
|
158
158
|
liveCaptionsStopped: createSignalEventAction("liveCaptionsStopped"),
|
|
159
|
+
liveCaption: createSignalEventAction("liveCaption"),
|
|
159
160
|
};
|
|
160
161
|
|
|
161
162
|
const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
@@ -331,8 +332,9 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
331
332
|
socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
|
|
332
333
|
socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
|
|
333
334
|
socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
|
|
334
|
-
socket.on("live_captions_started", () => dispatch(signalEvents.liveCaptionsStarted()));
|
|
335
|
-
socket.on("live_captions_stopped", () => dispatch(signalEvents.liveCaptionsStopped()));
|
|
335
|
+
socket.on("live_captions_started", (payload) => dispatch(signalEvents.liveCaptionsStarted(payload)));
|
|
336
|
+
socket.on("live_captions_stopped", (payload) => dispatch(signalEvents.liveCaptionsStopped(payload)));
|
|
337
|
+
socket.on("live_caption", (payload) => dispatch(signalEvents.liveCaption(payload)));
|
|
336
338
|
socket.on("video_enable_requested", (payload) => dispatch(signalEvents.videoEnableRequested(payload)));
|
|
337
339
|
socket.on("breakout_group_joined", (payload) => dispatch(signalEvents.breakoutGroupJoined(payload)));
|
|
338
340
|
socket.on("breakout_session_updated", (payload) => dispatch(signalEvents.breakoutSessionUpdated(payload)));
|
|
@@ -2446,6 +2448,91 @@ const selectFileShareRaw = (state) => state.fileShare;
|
|
|
2446
2448
|
const selectFileUploads = (state) => state.fileShare.uploads;
|
|
2447
2449
|
const selectFileShareRequestInFlight = (state) => state.fileShare.requestInFlight;
|
|
2448
2450
|
|
|
2451
|
+
class LiveCaption {
|
|
2452
|
+
constructor({ resultId, senderId, text }) {
|
|
2453
|
+
this.resultId = resultId;
|
|
2454
|
+
this.participantId = senderId;
|
|
2455
|
+
this.text = text;
|
|
2456
|
+
this.timestamp = Date.now();
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
const initialLiveCaptionsState = {
|
|
2461
|
+
isCaptioning: false,
|
|
2462
|
+
captionLog: [],
|
|
2463
|
+
};
|
|
2464
|
+
const captionTimerIds = {};
|
|
2465
|
+
const LIVE_CAPTIONS_STALE_CAPTION_TIMEOUT = 5000;
|
|
2466
|
+
const liveCaptionsSlice = createSlice({
|
|
2467
|
+
name: "liveCaptions",
|
|
2468
|
+
initialState: initialLiveCaptionsState,
|
|
2469
|
+
reducers: {
|
|
2470
|
+
captioningRequestStarted: (state) => {
|
|
2471
|
+
return Object.assign(Object.assign({}, state), { status: "requested" });
|
|
2472
|
+
},
|
|
2473
|
+
clearCaption: (state, action) => {
|
|
2474
|
+
return Object.assign(Object.assign({}, state), { captionLog: state.captionLog.filter(({ resultId }) => resultId !== action.payload.resultId) });
|
|
2475
|
+
},
|
|
2476
|
+
},
|
|
2477
|
+
extraReducers: (builder) => {
|
|
2478
|
+
builder.addCase(signalEvents.liveCaptionsStopped, (state) => {
|
|
2479
|
+
return Object.assign(Object.assign({}, state), { isCaptioning: false, startedAt: undefined, status: undefined, error: undefined, captionLog: [] });
|
|
2480
|
+
});
|
|
2481
|
+
builder.addCase(signalEvents.liveCaptionsStarted, (state, action) => {
|
|
2482
|
+
const { payload } = action;
|
|
2483
|
+
if (payload.error) {
|
|
2484
|
+
return Object.assign(Object.assign({}, state), { isCaptioning: false, startedAt: undefined, status: "error", error: payload.error, captionLog: [] });
|
|
2485
|
+
}
|
|
2486
|
+
return Object.assign(Object.assign({}, state), { isCaptioning: true, startedAt: Date.now(), status: "captioning", error: undefined, captionLog: [] });
|
|
2487
|
+
});
|
|
2488
|
+
builder.addCase(signalEvents.liveCaption, (state, action) => {
|
|
2489
|
+
const { payload } = action;
|
|
2490
|
+
const captionLog = [...state.captionLog];
|
|
2491
|
+
const lastCaption = captionLog.length ? captionLog[captionLog.length - 1] : undefined;
|
|
2492
|
+
if (!lastCaption || lastCaption.resultId !== payload.resultId) {
|
|
2493
|
+
return Object.assign(Object.assign({}, state), { captionLog: [...state.captionLog, new LiveCaption(payload)] });
|
|
2494
|
+
}
|
|
2495
|
+
return Object.assign(Object.assign({}, state), { captionLog: [
|
|
2496
|
+
...state.captionLog.slice(0, state.captionLog.length - 1),
|
|
2497
|
+
Object.assign(Object.assign({}, lastCaption), { text: payload.text }),
|
|
2498
|
+
] });
|
|
2499
|
+
});
|
|
2500
|
+
},
|
|
2501
|
+
});
|
|
2502
|
+
const { captioningRequestStarted, clearCaption } = liveCaptionsSlice.actions;
|
|
2503
|
+
const doStartLiveCaptions = createRoomConnectedThunk(() => (dispatch, getState) => {
|
|
2504
|
+
const state = getState();
|
|
2505
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
2506
|
+
const status = selectLiveCaptionsStatus(state);
|
|
2507
|
+
if (status && ["captioning", "requested"].includes(status)) {
|
|
2508
|
+
return;
|
|
2509
|
+
}
|
|
2510
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("live_captions_enabled");
|
|
2511
|
+
dispatch(captioningRequestStarted());
|
|
2512
|
+
});
|
|
2513
|
+
const doStopLiveCaptions = createRoomConnectedThunk(() => (_, getState) => {
|
|
2514
|
+
const state = getState();
|
|
2515
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
2516
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("live_captions_disabled");
|
|
2517
|
+
});
|
|
2518
|
+
const selectLiveCaptionsRaw = (state) => state.liveCaptions;
|
|
2519
|
+
const selectLiveCaptionsStatus = (state) => state.liveCaptions.status;
|
|
2520
|
+
const selectLiveCaptionsStartedAt = (state) => state.liveCaptions.startedAt;
|
|
2521
|
+
const selectLiveCaptionsError = (state) => state.liveCaptions.error;
|
|
2522
|
+
const selectLiveCaptionsLog = (state) => state.liveCaptions.captionLog;
|
|
2523
|
+
const selectIsLiveCaptions = (state) => state.liveCaptions.isCaptioning;
|
|
2524
|
+
startAppListening({
|
|
2525
|
+
actionCreator: signalEvents.liveCaption,
|
|
2526
|
+
effect: (action, { dispatch }) => {
|
|
2527
|
+
const resultId = action.payload.resultId;
|
|
2528
|
+
clearTimeout(captionTimerIds[resultId]);
|
|
2529
|
+
captionTimerIds[resultId] = setTimeout(() => {
|
|
2530
|
+
delete captionTimerIds[resultId];
|
|
2531
|
+
dispatch(clearCaption({ resultId }));
|
|
2532
|
+
}, LIVE_CAPTIONS_STALE_CAPTION_TIMEOUT);
|
|
2533
|
+
},
|
|
2534
|
+
});
|
|
2535
|
+
|
|
2449
2536
|
const initialLiveTranscriptionState = {
|
|
2450
2537
|
isInitiator: false,
|
|
2451
2538
|
isTranscribing: false,
|
|
@@ -2465,20 +2552,17 @@ const liveTranscriptionSlice = createSlice({
|
|
|
2465
2552
|
});
|
|
2466
2553
|
builder.addCase(signalEvents.liveTranscriptionStarted, (state, action) => {
|
|
2467
2554
|
const { payload } = action;
|
|
2468
|
-
if (
|
|
2469
|
-
return state;
|
|
2555
|
+
if (payload.error) {
|
|
2556
|
+
return Object.assign(Object.assign({}, state), { isInitiator: false, isTranscribing: false, status: "error", error: payload.error });
|
|
2470
2557
|
}
|
|
2471
|
-
return Object.assign(Object.assign({}, state), {
|
|
2558
|
+
return Object.assign(Object.assign({}, state), { isTranscribing: true, status: "transcribing", startedAt: new Date().getTime() });
|
|
2472
2559
|
});
|
|
2473
|
-
builder.addCase(signalEvents.
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
if (((_a = client.role) === null || _a === void 0 ? void 0 : _a.roleName) === "captioner") {
|
|
2477
|
-
return Object.assign(Object.assign({}, state), { isTranscribing: true, status: "transcribing", startedAt: client.startedLiveTranscriptionAt
|
|
2478
|
-
? new Date(client.startedLiveTranscriptionAt).getTime()
|
|
2479
|
-
: new Date().getTime() });
|
|
2560
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
2561
|
+
if ("error" in action.payload) {
|
|
2562
|
+
return state;
|
|
2480
2563
|
}
|
|
2481
|
-
|
|
2564
|
+
const { room } = action.payload || {};
|
|
2565
|
+
return Object.assign(Object.assign({}, state), { isTranscribing: Boolean(room === null || room === void 0 ? void 0 : room.liveTranscriptionId), status: (room === null || room === void 0 ? void 0 : room.liveTranscriptionId) ? "transcribing" : state.status, startedAt: (room === null || room === void 0 ? void 0 : room.liveTranscriptionId) ? new Date().getTime() : state.startedAt });
|
|
2482
2566
|
});
|
|
2483
2567
|
},
|
|
2484
2568
|
});
|
|
@@ -3579,6 +3663,7 @@ const appReducer = combineReducers({
|
|
|
3579
3663
|
connectionMonitor: connectionMonitorSlice.reducer,
|
|
3580
3664
|
deviceCredentials: deviceCredentialsSlice.reducer,
|
|
3581
3665
|
fileShare: fileShareSlice.reducer,
|
|
3666
|
+
liveCaptions: liveCaptionsSlice.reducer,
|
|
3582
3667
|
liveTranscription: liveTranscriptionSlice.reducer,
|
|
3583
3668
|
localMedia: localMediaSlice.reducer,
|
|
3584
3669
|
localParticipant: localParticipantSlice.reducer,
|
|
@@ -4355,4 +4440,4 @@ function createServices() {
|
|
|
4355
4440
|
};
|
|
4356
4441
|
}
|
|
4357
4442
|
|
|
4358
|
-
export { ACCEPTED_FILE_TYPES, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, clearFileUploads, 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, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doTriggerLocalStreamRefresh, doUpdateDeviceList, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 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, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, 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, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
4443
|
+
export { ACCEPTED_FILE_TYPES, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, 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, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doTriggerLocalStreamRefresh, doUpdateDeviceList, 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, 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, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, 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, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
package/dist/redux/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.15.1";
|
|
78
78
|
|
|
79
79
|
const initialState$2 = {
|
|
80
80
|
displayName: null,
|
|
@@ -156,6 +156,7 @@ const signalEvents = {
|
|
|
156
156
|
liveTranscriptionStopped: createSignalEventAction("liveTranscriptionStopped"),
|
|
157
157
|
liveCaptionsStarted: createSignalEventAction("liveCaptionsStarted"),
|
|
158
158
|
liveCaptionsStopped: createSignalEventAction("liveCaptionsStopped"),
|
|
159
|
+
liveCaption: createSignalEventAction("liveCaption"),
|
|
159
160
|
};
|
|
160
161
|
|
|
161
162
|
const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
@@ -331,8 +332,9 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
331
332
|
socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
|
|
332
333
|
socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
|
|
333
334
|
socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
|
|
334
|
-
socket.on("live_captions_started", () => dispatch(signalEvents.liveCaptionsStarted()));
|
|
335
|
-
socket.on("live_captions_stopped", () => dispatch(signalEvents.liveCaptionsStopped()));
|
|
335
|
+
socket.on("live_captions_started", (payload) => dispatch(signalEvents.liveCaptionsStarted(payload)));
|
|
336
|
+
socket.on("live_captions_stopped", (payload) => dispatch(signalEvents.liveCaptionsStopped(payload)));
|
|
337
|
+
socket.on("live_caption", (payload) => dispatch(signalEvents.liveCaption(payload)));
|
|
336
338
|
socket.on("video_enable_requested", (payload) => dispatch(signalEvents.videoEnableRequested(payload)));
|
|
337
339
|
socket.on("breakout_group_joined", (payload) => dispatch(signalEvents.breakoutGroupJoined(payload)));
|
|
338
340
|
socket.on("breakout_session_updated", (payload) => dispatch(signalEvents.breakoutSessionUpdated(payload)));
|
|
@@ -2446,6 +2448,91 @@ const selectFileShareRaw = (state) => state.fileShare;
|
|
|
2446
2448
|
const selectFileUploads = (state) => state.fileShare.uploads;
|
|
2447
2449
|
const selectFileShareRequestInFlight = (state) => state.fileShare.requestInFlight;
|
|
2448
2450
|
|
|
2451
|
+
class LiveCaption {
|
|
2452
|
+
constructor({ resultId, senderId, text }) {
|
|
2453
|
+
this.resultId = resultId;
|
|
2454
|
+
this.participantId = senderId;
|
|
2455
|
+
this.text = text;
|
|
2456
|
+
this.timestamp = Date.now();
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
const initialLiveCaptionsState = {
|
|
2461
|
+
isCaptioning: false,
|
|
2462
|
+
captionLog: [],
|
|
2463
|
+
};
|
|
2464
|
+
const captionTimerIds = {};
|
|
2465
|
+
const LIVE_CAPTIONS_STALE_CAPTION_TIMEOUT = 5000;
|
|
2466
|
+
const liveCaptionsSlice = createSlice({
|
|
2467
|
+
name: "liveCaptions",
|
|
2468
|
+
initialState: initialLiveCaptionsState,
|
|
2469
|
+
reducers: {
|
|
2470
|
+
captioningRequestStarted: (state) => {
|
|
2471
|
+
return Object.assign(Object.assign({}, state), { status: "requested" });
|
|
2472
|
+
},
|
|
2473
|
+
clearCaption: (state, action) => {
|
|
2474
|
+
return Object.assign(Object.assign({}, state), { captionLog: state.captionLog.filter(({ resultId }) => resultId !== action.payload.resultId) });
|
|
2475
|
+
},
|
|
2476
|
+
},
|
|
2477
|
+
extraReducers: (builder) => {
|
|
2478
|
+
builder.addCase(signalEvents.liveCaptionsStopped, (state) => {
|
|
2479
|
+
return Object.assign(Object.assign({}, state), { isCaptioning: false, startedAt: undefined, status: undefined, error: undefined, captionLog: [] });
|
|
2480
|
+
});
|
|
2481
|
+
builder.addCase(signalEvents.liveCaptionsStarted, (state, action) => {
|
|
2482
|
+
const { payload } = action;
|
|
2483
|
+
if (payload.error) {
|
|
2484
|
+
return Object.assign(Object.assign({}, state), { isCaptioning: false, startedAt: undefined, status: "error", error: payload.error, captionLog: [] });
|
|
2485
|
+
}
|
|
2486
|
+
return Object.assign(Object.assign({}, state), { isCaptioning: true, startedAt: Date.now(), status: "captioning", error: undefined, captionLog: [] });
|
|
2487
|
+
});
|
|
2488
|
+
builder.addCase(signalEvents.liveCaption, (state, action) => {
|
|
2489
|
+
const { payload } = action;
|
|
2490
|
+
const captionLog = [...state.captionLog];
|
|
2491
|
+
const lastCaption = captionLog.length ? captionLog[captionLog.length - 1] : undefined;
|
|
2492
|
+
if (!lastCaption || lastCaption.resultId !== payload.resultId) {
|
|
2493
|
+
return Object.assign(Object.assign({}, state), { captionLog: [...state.captionLog, new LiveCaption(payload)] });
|
|
2494
|
+
}
|
|
2495
|
+
return Object.assign(Object.assign({}, state), { captionLog: [
|
|
2496
|
+
...state.captionLog.slice(0, state.captionLog.length - 1),
|
|
2497
|
+
Object.assign(Object.assign({}, lastCaption), { text: payload.text }),
|
|
2498
|
+
] });
|
|
2499
|
+
});
|
|
2500
|
+
},
|
|
2501
|
+
});
|
|
2502
|
+
const { captioningRequestStarted, clearCaption } = liveCaptionsSlice.actions;
|
|
2503
|
+
const doStartLiveCaptions = createRoomConnectedThunk(() => (dispatch, getState) => {
|
|
2504
|
+
const state = getState();
|
|
2505
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
2506
|
+
const status = selectLiveCaptionsStatus(state);
|
|
2507
|
+
if (status && ["captioning", "requested"].includes(status)) {
|
|
2508
|
+
return;
|
|
2509
|
+
}
|
|
2510
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("live_captions_enabled");
|
|
2511
|
+
dispatch(captioningRequestStarted());
|
|
2512
|
+
});
|
|
2513
|
+
const doStopLiveCaptions = createRoomConnectedThunk(() => (_, getState) => {
|
|
2514
|
+
const state = getState();
|
|
2515
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
2516
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("live_captions_disabled");
|
|
2517
|
+
});
|
|
2518
|
+
const selectLiveCaptionsRaw = (state) => state.liveCaptions;
|
|
2519
|
+
const selectLiveCaptionsStatus = (state) => state.liveCaptions.status;
|
|
2520
|
+
const selectLiveCaptionsStartedAt = (state) => state.liveCaptions.startedAt;
|
|
2521
|
+
const selectLiveCaptionsError = (state) => state.liveCaptions.error;
|
|
2522
|
+
const selectLiveCaptionsLog = (state) => state.liveCaptions.captionLog;
|
|
2523
|
+
const selectIsLiveCaptions = (state) => state.liveCaptions.isCaptioning;
|
|
2524
|
+
startAppListening({
|
|
2525
|
+
actionCreator: signalEvents.liveCaption,
|
|
2526
|
+
effect: (action, { dispatch }) => {
|
|
2527
|
+
const resultId = action.payload.resultId;
|
|
2528
|
+
clearTimeout(captionTimerIds[resultId]);
|
|
2529
|
+
captionTimerIds[resultId] = setTimeout(() => {
|
|
2530
|
+
delete captionTimerIds[resultId];
|
|
2531
|
+
dispatch(clearCaption({ resultId }));
|
|
2532
|
+
}, LIVE_CAPTIONS_STALE_CAPTION_TIMEOUT);
|
|
2533
|
+
},
|
|
2534
|
+
});
|
|
2535
|
+
|
|
2449
2536
|
const initialLiveTranscriptionState = {
|
|
2450
2537
|
isInitiator: false,
|
|
2451
2538
|
isTranscribing: false,
|
|
@@ -2465,20 +2552,17 @@ const liveTranscriptionSlice = createSlice({
|
|
|
2465
2552
|
});
|
|
2466
2553
|
builder.addCase(signalEvents.liveTranscriptionStarted, (state, action) => {
|
|
2467
2554
|
const { payload } = action;
|
|
2468
|
-
if (
|
|
2469
|
-
return state;
|
|
2555
|
+
if (payload.error) {
|
|
2556
|
+
return Object.assign(Object.assign({}, state), { isInitiator: false, isTranscribing: false, status: "error", error: payload.error });
|
|
2470
2557
|
}
|
|
2471
|
-
return Object.assign(Object.assign({}, state), {
|
|
2558
|
+
return Object.assign(Object.assign({}, state), { isTranscribing: true, status: "transcribing", startedAt: new Date().getTime() });
|
|
2472
2559
|
});
|
|
2473
|
-
builder.addCase(signalEvents.
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
if (((_a = client.role) === null || _a === void 0 ? void 0 : _a.roleName) === "captioner") {
|
|
2477
|
-
return Object.assign(Object.assign({}, state), { isTranscribing: true, status: "transcribing", startedAt: client.startedLiveTranscriptionAt
|
|
2478
|
-
? new Date(client.startedLiveTranscriptionAt).getTime()
|
|
2479
|
-
: new Date().getTime() });
|
|
2560
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
2561
|
+
if ("error" in action.payload) {
|
|
2562
|
+
return state;
|
|
2480
2563
|
}
|
|
2481
|
-
|
|
2564
|
+
const { room } = action.payload || {};
|
|
2565
|
+
return Object.assign(Object.assign({}, state), { isTranscribing: Boolean(room === null || room === void 0 ? void 0 : room.liveTranscriptionId), status: (room === null || room === void 0 ? void 0 : room.liveTranscriptionId) ? "transcribing" : state.status, startedAt: (room === null || room === void 0 ? void 0 : room.liveTranscriptionId) ? new Date().getTime() : state.startedAt });
|
|
2482
2566
|
});
|
|
2483
2567
|
},
|
|
2484
2568
|
});
|
|
@@ -3579,6 +3663,7 @@ const appReducer = combineReducers({
|
|
|
3579
3663
|
connectionMonitor: connectionMonitorSlice.reducer,
|
|
3580
3664
|
deviceCredentials: deviceCredentialsSlice.reducer,
|
|
3581
3665
|
fileShare: fileShareSlice.reducer,
|
|
3666
|
+
liveCaptions: liveCaptionsSlice.reducer,
|
|
3582
3667
|
liveTranscription: liveTranscriptionSlice.reducer,
|
|
3583
3668
|
localMedia: localMediaSlice.reducer,
|
|
3584
3669
|
localParticipant: localParticipantSlice.reducer,
|
|
@@ -4355,4 +4440,4 @@ function createServices() {
|
|
|
4355
4440
|
};
|
|
4356
4441
|
}
|
|
4357
4442
|
|
|
4358
|
-
export { ACCEPTED_FILE_TYPES, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, clearFileUploads, 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, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doTriggerLocalStreamRefresh, doUpdateDeviceList, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 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, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, 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, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
4443
|
+
export { ACCEPTED_FILE_TYPES, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, 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, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doTriggerLocalStreamRefresh, doUpdateDeviceList, 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, 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, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, 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, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, 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.
|
|
5
|
+
"version": "1.15.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"typescript": "^5.8.3",
|
|
61
61
|
"@whereby.com/eslint-config": "0.1.0",
|
|
62
62
|
"@whereby.com/jest-config": "0.1.0",
|
|
63
|
-
"@whereby.com/prettier-config": "0.1.0",
|
|
64
63
|
"@whereby.com/rollup-config": "0.1.1",
|
|
64
|
+
"@whereby.com/prettier-config": "0.1.0",
|
|
65
65
|
"@whereby.com/tsconfig": "0.1.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@reduxjs/toolkit": "^2.2.3",
|
|
69
|
-
"@whereby.com/media": "9.2.
|
|
70
|
-
"@whereby.com/audio-denoiser": "1.0.
|
|
69
|
+
"@whereby.com/media": "9.2.7",
|
|
70
|
+
"@whereby.com/audio-denoiser": "1.0.3",
|
|
71
71
|
"@whereby.com/camera-effects": "1.1.3",
|
|
72
72
|
"axios": "^1.11.0",
|
|
73
73
|
"btoa": "^1.2.1",
|