@whereby.com/core 1.21.2 → 1.23.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 +582 -15
- package/dist/index.d.cts +181 -4
- package/dist/index.d.mts +181 -4
- package/dist/index.d.ts +181 -4
- package/dist/index.mjs +575 -17
- package/dist/legacy-esm.js +575 -17
- package/dist/redux/index.cjs +508 -4
- package/dist/redux/index.d.cts +1403 -80
- package/dist/redux/index.d.mts +1403 -80
- package/dist/redux/index.d.ts +1403 -80
- package/dist/redux/index.js +480 -6
- package/dist/redux/index.mjs +480 -6
- package/package.json +3 -3
package/dist/redux/index.cjs
CHANGED
|
@@ -76,7 +76,7 @@ const createReactor = (selectors, callback) => {
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
const coreVersion = "1.
|
|
79
|
+
const coreVersion = "1.23.0";
|
|
80
80
|
|
|
81
81
|
function decodeRoomName(roomName) {
|
|
82
82
|
if (!roomName) {
|
|
@@ -158,6 +158,11 @@ const signalEvents = {
|
|
|
158
158
|
knockerLeft: createSignalEventAction("knockerLeft"),
|
|
159
159
|
knockHandled: createSignalEventAction("knockHandled"),
|
|
160
160
|
newClient: createSignalEventAction("newClient"),
|
|
161
|
+
roomIntegrationStarted: createSignalEventAction("roomIntegrationStarted"),
|
|
162
|
+
roomIntegrationStopped: createSignalEventAction("roomIntegrationStopped"),
|
|
163
|
+
roomIntegrationPropsUpdated: createSignalEventAction("roomIntegrationPropsUpdated"),
|
|
164
|
+
roomIntegrationEnabled: createSignalEventAction("roomIntegrationEnabled"),
|
|
165
|
+
roomIntegrationDisabled: createSignalEventAction("roomIntegrationDisabled"),
|
|
161
166
|
roomJoined: createSignalEventAction("roomJoined"),
|
|
162
167
|
roomKnocked: createSignalEventAction("roomKnocked"),
|
|
163
168
|
roomLeft: createSignalEventAction("roomLeft"),
|
|
@@ -188,6 +193,7 @@ const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
|
188
193
|
canAskToSpeak: ["host"],
|
|
189
194
|
canSpotlight: ["host"],
|
|
190
195
|
canManageBreakout: ["host"],
|
|
196
|
+
canManageRoomIntegration: ["host"],
|
|
191
197
|
};
|
|
192
198
|
const authorizationSliceInitialState = {
|
|
193
199
|
roomKey: null,
|
|
@@ -232,6 +238,7 @@ const selectIsAuthorizedToEndMeeting = toolkit.createSelector(selectAuthorizatio
|
|
|
232
238
|
const selectIsAuthorizedToAskToSpeak = toolkit.createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canAskToSpeak.includes(localParticipantRole));
|
|
233
239
|
const selectIsAuthorizedToSpotlight = toolkit.createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canSpotlight.includes(localParticipantRole));
|
|
234
240
|
const selectIsAuthorizedToManageBreakout = toolkit.createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canManageBreakout.includes(localParticipantRole));
|
|
241
|
+
const selectIsAuthorizedToManageRoomIntegration = toolkit.createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canManageRoomIntegration.includes(localParticipantRole));
|
|
235
242
|
|
|
236
243
|
/******************************************************************************
|
|
237
244
|
Copyright (c) Microsoft Corporation.
|
|
@@ -362,6 +369,11 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
362
369
|
socket.on("video_enable_requested", (payload) => dispatch(signalEvents.videoEnableRequested(payload)));
|
|
363
370
|
socket.on("breakout_group_joined", (payload) => dispatch(signalEvents.breakoutGroupJoined(payload)));
|
|
364
371
|
socket.on("breakout_session_updated", (payload) => dispatch(signalEvents.breakoutSessionUpdated(payload)));
|
|
372
|
+
socket.on("room_integration_started", (payload) => dispatch(signalEvents.roomIntegrationStarted(payload)));
|
|
373
|
+
socket.on("room_integration_stopped", (payload) => dispatch(signalEvents.roomIntegrationStopped(payload)));
|
|
374
|
+
socket.on("room_integration_props_updated", (payload) => dispatch(signalEvents.roomIntegrationPropsUpdated(payload)));
|
|
375
|
+
socket.on("room_integration_enabled", (payload) => dispatch(signalEvents.roomIntegrationEnabled(payload)));
|
|
376
|
+
socket.on("room_integration_disabled", (payload) => dispatch(signalEvents.roomIntegrationDisabled(payload)));
|
|
365
377
|
socket.on("breakout_move_to_group", () => dispatch(signalEvents.breakoutMoveToGroup()));
|
|
366
378
|
socket.on("breakout_move_to_main", () => dispatch(signalEvents.breakoutMoveToMain()));
|
|
367
379
|
socket.on("breakout_ending", () => dispatch(signalEvents.breakoutEnding()));
|
|
@@ -1085,7 +1097,7 @@ const selectLocalParticipantClientClaim = (state) => state.localParticipant.clie
|
|
|
1085
1097
|
const selectLocalParticipantStickyReaction = (state) => state.localParticipant.stickyReaction;
|
|
1086
1098
|
const selectLocalParticipantBreakoutGroup = (state) => state.localParticipant.breakoutGroup;
|
|
1087
1099
|
const selectLocalParticipantBreakoutAssigned = (state) => state.localParticipant.breakoutGroupAssigned;
|
|
1088
|
-
const selectLocalParticipantView = toolkit.createSelector(selectLocalParticipantRaw, selectLocalMediaStream, (participant, localStream) => {
|
|
1100
|
+
const selectLocalParticipantView = toolkit.createSelector(selectLocalParticipantRaw, selectLocalMediaStream, (state) => state.rtcConnection.isAudioOnlyModeEnabled, (participant, localStream, isAudioOnlyModeEnabled) => {
|
|
1089
1101
|
const clientView = {
|
|
1090
1102
|
id: participant.id,
|
|
1091
1103
|
clientId: participant.id,
|
|
@@ -1095,6 +1107,7 @@ const selectLocalParticipantView = toolkit.createSelector(selectLocalParticipant
|
|
|
1095
1107
|
isLocalClient: true,
|
|
1096
1108
|
isAudioEnabled: participant.isAudioEnabled,
|
|
1097
1109
|
isVideoEnabled: participant.isVideoEnabled,
|
|
1110
|
+
isAudioOnlyModeEnabled,
|
|
1098
1111
|
};
|
|
1099
1112
|
if (NON_PERSON_ROLES.includes(participant.roleName)) {
|
|
1100
1113
|
return null;
|
|
@@ -2107,6 +2120,13 @@ const selectScreenshares = toolkit.createSelector(selectLocalScreenshareStream,
|
|
|
2107
2120
|
}
|
|
2108
2121
|
return screenshares;
|
|
2109
2122
|
});
|
|
2123
|
+
const selectRemoteScreenshareVideoTrackIds = toolkit.createSelector(selectScreenshares, (screenshares) => screenshares
|
|
2124
|
+
.filter((screenshare) => !screenshare.isLocal)
|
|
2125
|
+
.flatMap((screenshare) => { var _a, _b; return (_b = (_a = screenshare.stream) === null || _a === void 0 ? void 0 : _a.getVideoTracks().map((track) => track.id)) !== null && _b !== void 0 ? _b : []; }), {
|
|
2126
|
+
memoizeOptions: {
|
|
2127
|
+
resultEqualityCheck: (a, b) => a.length === b.length && a.every((trackId, index) => trackId === b[index]),
|
|
2128
|
+
},
|
|
2129
|
+
});
|
|
2110
2130
|
const selectRemoteClientViews = toolkit.createSelector(selectLocalScreenshareStream, selectLocalParticipantRaw, selectRemoteParticipants, selectBreakoutCurrentId, selectBreakoutAssignments, (localScreenshareStream, localParticipant, remoteParticipants, breakoutCurrentId, breakoutAssignments) => {
|
|
2111
2131
|
const views = [];
|
|
2112
2132
|
if (localScreenshareStream) {
|
|
@@ -2319,11 +2339,16 @@ const rtcConnectionSliceInitialState = {
|
|
|
2319
2339
|
rtcManagerInitialized: false,
|
|
2320
2340
|
status: "inactive",
|
|
2321
2341
|
isAcceptingStreams: false,
|
|
2342
|
+
isAudioOnlyModeEnabled: false,
|
|
2322
2343
|
};
|
|
2323
2344
|
const rtcConnectionSlice = toolkit.createSlice({
|
|
2324
2345
|
name: "rtcConnection",
|
|
2325
2346
|
initialState: rtcConnectionSliceInitialState,
|
|
2326
2347
|
reducers: {
|
|
2348
|
+
audioOnlyModeToggled: (state, action) => {
|
|
2349
|
+
var _a;
|
|
2350
|
+
return Object.assign(Object.assign({}, state), { isAudioOnlyModeEnabled: (_a = action.payload.enabled) !== null && _a !== void 0 ? _a : !state.isAudioOnlyModeEnabled });
|
|
2351
|
+
},
|
|
2327
2352
|
isAcceptingStreams: (state, action) => {
|
|
2328
2353
|
return Object.assign(Object.assign({}, state), { isAcceptingStreams: action.payload });
|
|
2329
2354
|
},
|
|
@@ -2341,7 +2366,7 @@ const rtcConnectionSlice = toolkit.createSlice({
|
|
|
2341
2366
|
return Object.assign(Object.assign({}, state), { rtcManager: action.payload, status: "ready" });
|
|
2342
2367
|
},
|
|
2343
2368
|
rtcManagerDestroyed: (state) => {
|
|
2344
|
-
return Object.assign(Object.assign({}, state), { rtcManager: null });
|
|
2369
|
+
return Object.assign(Object.assign({}, state), { rtcManager: null, rtcManagerInitialized: false });
|
|
2345
2370
|
},
|
|
2346
2371
|
rtcManagerInitialized: (state) => {
|
|
2347
2372
|
return Object.assign(Object.assign({}, state), { rtcManagerInitialized: true });
|
|
@@ -2372,7 +2397,7 @@ const rtcConnectionSlice = toolkit.createSlice({
|
|
|
2372
2397
|
});
|
|
2373
2398
|
},
|
|
2374
2399
|
});
|
|
2375
|
-
const { resolutionReported, rtcDispatcherCreated, rtcDisconnected, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, isAcceptingStreams, rtcClientConnectionStatusChanged, } = rtcConnectionSlice.actions;
|
|
2400
|
+
const { audioOnlyModeToggled, resolutionReported, rtcDispatcherCreated, rtcDisconnected, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, isAcceptingStreams, rtcClientConnectionStatusChanged, } = rtcConnectionSlice.actions;
|
|
2376
2401
|
const doConnectRtc = createAppThunk(() => (dispatch, getState) => {
|
|
2377
2402
|
const state = getState();
|
|
2378
2403
|
const socket = selectSignalConnectionRaw(state).socket;
|
|
@@ -2470,8 +2495,19 @@ const doRtcManagerInitialize = createAppThunk(() => (dispatch, getState) => {
|
|
|
2470
2495
|
videoPaused: !isCameraEnabled,
|
|
2471
2496
|
});
|
|
2472
2497
|
}
|
|
2498
|
+
const screenshareStream = selectLocalScreenshareStream(getState());
|
|
2499
|
+
if (screenshareStream && rtcManager) {
|
|
2500
|
+
rtcManager.addScreenshareStream(screenshareStream);
|
|
2501
|
+
}
|
|
2473
2502
|
dispatch(rtcManagerInitialized());
|
|
2474
2503
|
});
|
|
2504
|
+
const doToggleAudioOnlyMode = createAppThunk(({ enabled, autoDisableLocalCamera }) => (dispatch, getState) => {
|
|
2505
|
+
dispatch(audioOnlyModeToggled({ enabled }));
|
|
2506
|
+
const state = getState();
|
|
2507
|
+
if (autoDisableLocalCamera && selectIsAudioOnlyModeEnabled(state) && selectIsCameraEnabled(state)) {
|
|
2508
|
+
dispatch(toggleCameraEnabled({ enabled: false }));
|
|
2509
|
+
}
|
|
2510
|
+
});
|
|
2475
2511
|
const selectRtcConnectionRaw = (state) => state.rtcConnection;
|
|
2476
2512
|
const selectRtcManagerInitialized = (state) => state.rtcConnection.rtcManagerInitialized;
|
|
2477
2513
|
const selectRtcManager = (state) => state.rtcConnection.rtcManager;
|
|
@@ -2479,6 +2515,7 @@ const selectRtcDispatcherCreated = (state) => state.rtcConnection.dispatcherCrea
|
|
|
2479
2515
|
const selectRtcIsCreatingDispatcher = (state) => state.rtcConnection.isCreatingDispatcher;
|
|
2480
2516
|
const selectRtcStatus = (state) => state.rtcConnection.status;
|
|
2481
2517
|
const selectIsAcceptingStreams = (state) => state.rtcConnection.isAcceptingStreams;
|
|
2518
|
+
const selectIsAudioOnlyModeEnabled = (state) => state.rtcConnection.isAudioOnlyModeEnabled;
|
|
2482
2519
|
startAppListening({
|
|
2483
2520
|
actionCreator: doSetDevice.fulfilled,
|
|
2484
2521
|
effect: ({ payload }, { getState }) => {
|
|
@@ -2534,6 +2571,22 @@ startAppListening({
|
|
|
2534
2571
|
}
|
|
2535
2572
|
},
|
|
2536
2573
|
});
|
|
2574
|
+
startAppListening({
|
|
2575
|
+
actionCreator: audioOnlyModeToggled,
|
|
2576
|
+
effect: (_, { getState }) => {
|
|
2577
|
+
const state = getState();
|
|
2578
|
+
const rtcManager = selectRtcManager(state);
|
|
2579
|
+
rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.setAudioOnly(selectIsAudioOnlyModeEnabled(state));
|
|
2580
|
+
},
|
|
2581
|
+
});
|
|
2582
|
+
startAppListening({
|
|
2583
|
+
actionCreator: rtcManagerCreated,
|
|
2584
|
+
effect: ({ payload: rtcManager }, { getState }) => {
|
|
2585
|
+
if (selectIsAudioOnlyModeEnabled(getState())) {
|
|
2586
|
+
rtcManager.setAudioOnly(true);
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
});
|
|
2537
2590
|
startAppListening({
|
|
2538
2591
|
actionCreator: rtcEvents.clientConnectionStatusChanged,
|
|
2539
2592
|
effect: (_, { dispatch, getState }) => {
|
|
@@ -2595,6 +2648,9 @@ createReactor([selectShouldDisconnectRtc], ({ dispatch }, shouldDisconnectRtc) =
|
|
|
2595
2648
|
dispatch(doDisconnectRtc());
|
|
2596
2649
|
}
|
|
2597
2650
|
});
|
|
2651
|
+
createReactor([selectRtcManager, selectRemoteScreenshareVideoTrackIds], (_, rtcManager, remoteScreenshareVideoTrackIds) => {
|
|
2652
|
+
rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.setRemoteScreenshareVideoTrackIds(remoteScreenshareVideoTrackIds);
|
|
2653
|
+
});
|
|
2598
2654
|
const selectStreamsToAccept = toolkit.createSelector(selectRtcStatus, selectRemoteClients, selectBreakoutCurrentId, selectSpotlights, selectAppIgnoreBreakoutGroups, (rtcStatus, remoteParticipants, breakoutCurrentId, spotlights, ignoreBreakoutGroups) => {
|
|
2599
2655
|
if (rtcStatus !== "ready") {
|
|
2600
2656
|
return [];
|
|
@@ -2667,6 +2723,7 @@ const doStartConnectionMonitor = createAppThunk(() => (dispatch, getState) => {
|
|
|
2667
2723
|
return ({
|
|
2668
2724
|
id: clientView.id,
|
|
2669
2725
|
clientId: clientView.clientId,
|
|
2726
|
+
isAudioOnlyModeEnabled: clientView.isAudioOnlyModeEnabled,
|
|
2670
2727
|
isLocalClient: clientView.isLocalClient,
|
|
2671
2728
|
audio: {
|
|
2672
2729
|
enabled: clientView.isAudioEnabled,
|
|
@@ -3465,6 +3522,386 @@ startAppListening({
|
|
|
3465
3522
|
},
|
|
3466
3523
|
});
|
|
3467
3524
|
|
|
3525
|
+
function roomIntegrationContentTagName(integrationName) {
|
|
3526
|
+
return `${integrationName}-integration-contentframe`;
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
function isCustomElementName(value) {
|
|
3530
|
+
return typeof value === "string" && value === value.toLowerCase() && value.includes("-");
|
|
3531
|
+
}
|
|
3532
|
+
function isHttpsUrl(value) {
|
|
3533
|
+
if (typeof value !== "string") {
|
|
3534
|
+
return false;
|
|
3535
|
+
}
|
|
3536
|
+
try {
|
|
3537
|
+
return new URL(value).protocol === "https:";
|
|
3538
|
+
}
|
|
3539
|
+
catch (_a) {
|
|
3540
|
+
return false;
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
function isValidProps(value) {
|
|
3544
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
3545
|
+
return false;
|
|
3546
|
+
}
|
|
3547
|
+
return Object.values(value).every((entry) => entry === null || ["string", "number", "boolean"].includes(typeof entry));
|
|
3548
|
+
}
|
|
3549
|
+
function parseMatcher(matcher) {
|
|
3550
|
+
if (typeof matcher !== "string") {
|
|
3551
|
+
return null;
|
|
3552
|
+
}
|
|
3553
|
+
const parts = matcher.match(/^\/([\s\S]*)\/([a-z]*)$/);
|
|
3554
|
+
if (!parts) {
|
|
3555
|
+
return null;
|
|
3556
|
+
}
|
|
3557
|
+
const flags = (parts[2] || "").replace(/[gy]/g, "");
|
|
3558
|
+
try {
|
|
3559
|
+
return new RegExp(parts[1], flags);
|
|
3560
|
+
}
|
|
3561
|
+
catch (_a) {
|
|
3562
|
+
return null;
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
function parseRoomIntegration(response) {
|
|
3566
|
+
const { roomIntegrationId, name, title, description, type, icons, link, entrypoint, webview, isEmbeddable } = response || {};
|
|
3567
|
+
const matcher = parseMatcher(response === null || response === void 0 ? void 0 : response.matcher);
|
|
3568
|
+
if (roomIntegrationId === undefined ||
|
|
3569
|
+
roomIntegrationId === null ||
|
|
3570
|
+
!name ||
|
|
3571
|
+
!title ||
|
|
3572
|
+
!type ||
|
|
3573
|
+
!(icons === null || icons === void 0 ? void 0 : icons.small) ||
|
|
3574
|
+
!(icons === null || icons === void 0 ? void 0 : icons.large) ||
|
|
3575
|
+
!entrypoint ||
|
|
3576
|
+
!webview ||
|
|
3577
|
+
!matcher) {
|
|
3578
|
+
console.warn(`Ignoring malformed room integration: ${name || roomIntegrationId}`);
|
|
3579
|
+
return null;
|
|
3580
|
+
}
|
|
3581
|
+
return {
|
|
3582
|
+
roomIntegrationId: String(roomIntegrationId),
|
|
3583
|
+
name,
|
|
3584
|
+
title,
|
|
3585
|
+
description: description || "",
|
|
3586
|
+
type,
|
|
3587
|
+
contentTagName: roomIntegrationContentTagName(name),
|
|
3588
|
+
icons: { small: icons.small, large: icons.large },
|
|
3589
|
+
link: { href: (link === null || link === void 0 ? void 0 : link.href) || "", text: (link === null || link === void 0 ? void 0 : link.text) || "" },
|
|
3590
|
+
entrypoint,
|
|
3591
|
+
webview,
|
|
3592
|
+
matcher,
|
|
3593
|
+
isEmbeddable: isEmbeddable !== null && isEmbeddable !== void 0 ? isEmbeddable : false,
|
|
3594
|
+
};
|
|
3595
|
+
}
|
|
3596
|
+
function parseRoomIntegrationSession(event) {
|
|
3597
|
+
const { roomIntegrationId, roomIntegrationSessionId, breakoutGroupId, tagName, shareUrl, props, clientId, roomIntegrationSessionStartedAt, } = event || {};
|
|
3598
|
+
if (typeof roomIntegrationSessionId !== "string" ||
|
|
3599
|
+
roomIntegrationId === undefined ||
|
|
3600
|
+
roomIntegrationId === null ||
|
|
3601
|
+
typeof clientId !== "string" ||
|
|
3602
|
+
!isCustomElementName(tagName) ||
|
|
3603
|
+
!isHttpsUrl(shareUrl) ||
|
|
3604
|
+
!isValidProps(props)) {
|
|
3605
|
+
console.warn(`Ignoring malformed room integration session: ${roomIntegrationSessionId}`);
|
|
3606
|
+
return null;
|
|
3607
|
+
}
|
|
3608
|
+
return {
|
|
3609
|
+
roomIntegrationSessionId,
|
|
3610
|
+
roomIntegrationId: String(roomIntegrationId),
|
|
3611
|
+
breakoutGroupId: breakoutGroupId || "",
|
|
3612
|
+
tagName,
|
|
3613
|
+
shareUrl,
|
|
3614
|
+
props,
|
|
3615
|
+
clientId,
|
|
3616
|
+
roomIntegrationSessionStartedAt: typeof roomIntegrationSessionStartedAt === "number" && isFinite(roomIntegrationSessionStartedAt)
|
|
3617
|
+
? roomIntegrationSessionStartedAt
|
|
3618
|
+
: null,
|
|
3619
|
+
};
|
|
3620
|
+
}
|
|
3621
|
+
const SIGNAL_ERROR_MESSAGES = {
|
|
3622
|
+
not_in_a_room: (action) => `Cannot ${action} a room integration: not in a room. The signal connection has a room session, but the server does not consider this client a participant of it.`,
|
|
3623
|
+
forbidden: (action) => `Not allowed to ${action} this room integration (forbidden)`,
|
|
3624
|
+
missing_parameters: (action) => `Could not ${action} the room integration: the request was missing parameters`,
|
|
3625
|
+
invalid_parameters: (action) => `Could not ${action} the room integration: the request had invalid parameters`,
|
|
3626
|
+
internal_server_error: (action) => `The server failed to ${action} the room integration`,
|
|
3627
|
+
};
|
|
3628
|
+
function roomIntegrationSignalError(error, action) {
|
|
3629
|
+
if (!media.isRoomIntegrationErrorCode(error)) {
|
|
3630
|
+
return { code: "unknown", message: `Could not ${action} the room integration: ${error}` };
|
|
3631
|
+
}
|
|
3632
|
+
return { code: error, message: SIGNAL_ERROR_MESSAGES[error](action) };
|
|
3633
|
+
}
|
|
3634
|
+
const roomIntegrationsSliceInitialState = {
|
|
3635
|
+
available: [],
|
|
3636
|
+
unavailable: [],
|
|
3637
|
+
enabled: [],
|
|
3638
|
+
running: [],
|
|
3639
|
+
isFetching: false,
|
|
3640
|
+
hasFetched: false,
|
|
3641
|
+
error: null,
|
|
3642
|
+
};
|
|
3643
|
+
const roomIntegrationsSlice = toolkit.createSlice({
|
|
3644
|
+
name: "roomIntegrations",
|
|
3645
|
+
initialState: roomIntegrationsSliceInitialState,
|
|
3646
|
+
reducers: {
|
|
3647
|
+
setRoomIntegrationsError: (state, action) => {
|
|
3648
|
+
state.error = action.payload.error;
|
|
3649
|
+
},
|
|
3650
|
+
},
|
|
3651
|
+
extraReducers: (builder) => {
|
|
3652
|
+
builder.addCase(doFetchRoomIntegrations.pending, (state) => {
|
|
3653
|
+
state.isFetching = true;
|
|
3654
|
+
});
|
|
3655
|
+
builder.addCase(doFetchRoomIntegrations.fulfilled, (state, action) => {
|
|
3656
|
+
const { enabledRoomIntegrations, disabledRoomIntegrations, unavailableRoomIntegrations } = action.payload;
|
|
3657
|
+
const parse = (entries) => entries.map(parseRoomIntegration).filter((entry) => entry !== null);
|
|
3658
|
+
state.isFetching = false;
|
|
3659
|
+
state.hasFetched = true;
|
|
3660
|
+
state.error = null;
|
|
3661
|
+
state.available = [...parse(enabledRoomIntegrations), ...parse(disabledRoomIntegrations)];
|
|
3662
|
+
state.unavailable = parse(unavailableRoomIntegrations);
|
|
3663
|
+
state.enabled = enabledRoomIntegrations.map(({ roomIntegrationId }) => String(roomIntegrationId));
|
|
3664
|
+
});
|
|
3665
|
+
builder.addCase(doFetchRoomIntegrations.rejected, (state, action) => {
|
|
3666
|
+
state.isFetching = false;
|
|
3667
|
+
state.hasFetched = true;
|
|
3668
|
+
state.error = {
|
|
3669
|
+
code: "unknown",
|
|
3670
|
+
message: action.error.message || "Failed to fetch room integrations",
|
|
3671
|
+
};
|
|
3672
|
+
});
|
|
3673
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
3674
|
+
if ("error" in action.payload) {
|
|
3675
|
+
return;
|
|
3676
|
+
}
|
|
3677
|
+
state.running = (action.payload.roomIntegrationSession || [])
|
|
3678
|
+
.map(parseRoomIntegrationSession)
|
|
3679
|
+
.filter((session) => session !== null);
|
|
3680
|
+
});
|
|
3681
|
+
builder.addCase(signalEvents.roomIntegrationStarted, (state, action) => {
|
|
3682
|
+
if ("error" in action.payload) {
|
|
3683
|
+
state.error = roomIntegrationSignalError(action.payload.error, "start");
|
|
3684
|
+
return;
|
|
3685
|
+
}
|
|
3686
|
+
const { roomIntegrationId, roomIntegrationSessionId, breakoutGroupId, roomIntegrationSessionStartedAt } = action.payload;
|
|
3687
|
+
const session = parseRoomIntegrationSession(Object.assign(Object.assign({}, action.payload.state), { roomIntegrationId,
|
|
3688
|
+
roomIntegrationSessionId,
|
|
3689
|
+
breakoutGroupId,
|
|
3690
|
+
roomIntegrationSessionStartedAt }));
|
|
3691
|
+
if (!session) {
|
|
3692
|
+
return;
|
|
3693
|
+
}
|
|
3694
|
+
const existing = state.running.findIndex((running) => running.roomIntegrationSessionId === session.roomIntegrationSessionId);
|
|
3695
|
+
if (existing >= 0) {
|
|
3696
|
+
state.running[existing] = session;
|
|
3697
|
+
return;
|
|
3698
|
+
}
|
|
3699
|
+
state.running.push(session);
|
|
3700
|
+
});
|
|
3701
|
+
builder.addCase(signalEvents.roomIntegrationStopped, (state, action) => {
|
|
3702
|
+
if ("error" in action.payload) {
|
|
3703
|
+
state.error = roomIntegrationSignalError(action.payload.error, "stop");
|
|
3704
|
+
return;
|
|
3705
|
+
}
|
|
3706
|
+
const { roomIntegrationSessionId } = action.payload;
|
|
3707
|
+
state.running = state.running.filter((running) => running.roomIntegrationSessionId !== roomIntegrationSessionId);
|
|
3708
|
+
});
|
|
3709
|
+
builder.addCase(signalEvents.roomIntegrationPropsUpdated, (state, action) => {
|
|
3710
|
+
if ("error" in action.payload) {
|
|
3711
|
+
state.error = roomIntegrationSignalError(action.payload.error, "update the props of");
|
|
3712
|
+
return;
|
|
3713
|
+
}
|
|
3714
|
+
const { roomIntegrationSessionId, props } = action.payload;
|
|
3715
|
+
const session = state.running.find((running) => running.roomIntegrationSessionId === roomIntegrationSessionId);
|
|
3716
|
+
if (!session || !isValidProps(props)) {
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
session.props = Object.assign(Object.assign({}, session.props), props);
|
|
3720
|
+
});
|
|
3721
|
+
builder.addCase(signalEvents.roomIntegrationEnabled, (state, action) => {
|
|
3722
|
+
const roomIntegrationId = String(action.payload.roomIntegrationId);
|
|
3723
|
+
if (!state.enabled.includes(roomIntegrationId)) {
|
|
3724
|
+
state.enabled.push(roomIntegrationId);
|
|
3725
|
+
}
|
|
3726
|
+
});
|
|
3727
|
+
builder.addCase(signalEvents.roomIntegrationDisabled, (state, action) => {
|
|
3728
|
+
const roomIntegrationId = String(action.payload.roomIntegrationId);
|
|
3729
|
+
state.enabled = state.enabled.filter((id) => id !== roomIntegrationId);
|
|
3730
|
+
});
|
|
3731
|
+
},
|
|
3732
|
+
});
|
|
3733
|
+
const { setRoomIntegrationsError } = roomIntegrationsSlice.actions;
|
|
3734
|
+
const doFetchRoomIntegrations = createAppAsyncThunk("roomIntegrations/doFetchRoomIntegrations", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
3735
|
+
const state = getState();
|
|
3736
|
+
const organizationId = selectOrganizationId(state);
|
|
3737
|
+
const roomName = selectAppRoomName(state);
|
|
3738
|
+
if (!organizationId || !roomName) {
|
|
3739
|
+
throw new Error("Cannot fetch room integrations before the organization and room are known");
|
|
3740
|
+
}
|
|
3741
|
+
return extra.services.roomIntegrationService.findRoomIntegrations({ organizationId, roomName });
|
|
3742
|
+
}));
|
|
3743
|
+
const doStartRoomIntegration = createRoomConnectedThunk((payload) => (dispatch, getState) => {
|
|
3744
|
+
var _a;
|
|
3745
|
+
const state = getState();
|
|
3746
|
+
const { roomIntegrationId, tagName, shareUrl, props = {} } = payload;
|
|
3747
|
+
const integration = selectRoomIntegrationsRaw(state).available.find((entry) => entry.roomIntegrationId === roomIntegrationId);
|
|
3748
|
+
if (!integration) {
|
|
3749
|
+
dispatch(setRoomIntegrationsError({
|
|
3750
|
+
error: {
|
|
3751
|
+
code: "unknown_integration",
|
|
3752
|
+
message: `Unknown room integration: ${roomIntegrationId}`,
|
|
3753
|
+
},
|
|
3754
|
+
}));
|
|
3755
|
+
return;
|
|
3756
|
+
}
|
|
3757
|
+
if (!selectRoomIntegrationsEnabled(state).includes(roomIntegrationId)) {
|
|
3758
|
+
dispatch(setRoomIntegrationsError({
|
|
3759
|
+
error: {
|
|
3760
|
+
code: "integration_not_enabled",
|
|
3761
|
+
message: `Room integration is not enabled for this room: ${integration.name}`,
|
|
3762
|
+
},
|
|
3763
|
+
}));
|
|
3764
|
+
return;
|
|
3765
|
+
}
|
|
3766
|
+
if (!isCustomElementName(tagName)) {
|
|
3767
|
+
dispatch(setRoomIntegrationsError({
|
|
3768
|
+
error: {
|
|
3769
|
+
code: "invalid_content",
|
|
3770
|
+
message: `tagName must be a valid custom element name, got: ${tagName}`,
|
|
3771
|
+
},
|
|
3772
|
+
}));
|
|
3773
|
+
return;
|
|
3774
|
+
}
|
|
3775
|
+
if (!isHttpsUrl(shareUrl)) {
|
|
3776
|
+
dispatch(setRoomIntegrationsError({
|
|
3777
|
+
error: {
|
|
3778
|
+
code: "invalid_content",
|
|
3779
|
+
message: `shareUrl must be an https url, got: ${shareUrl}`,
|
|
3780
|
+
},
|
|
3781
|
+
}));
|
|
3782
|
+
return;
|
|
3783
|
+
}
|
|
3784
|
+
if (!isValidProps(props)) {
|
|
3785
|
+
dispatch(setRoomIntegrationsError({
|
|
3786
|
+
error: {
|
|
3787
|
+
code: "invalid_content",
|
|
3788
|
+
message: "props must be a flat object of primitive values",
|
|
3789
|
+
},
|
|
3790
|
+
}));
|
|
3791
|
+
return;
|
|
3792
|
+
}
|
|
3793
|
+
const clientId = selectSelfId(state);
|
|
3794
|
+
if (!clientId) {
|
|
3795
|
+
return;
|
|
3796
|
+
}
|
|
3797
|
+
dispatch(setRoomIntegrationsError({ error: null }));
|
|
3798
|
+
const request = {
|
|
3799
|
+
roomIntegrationId: Number(roomIntegrationId),
|
|
3800
|
+
breakoutGroupId: selectBreakoutCurrentId(state) || null,
|
|
3801
|
+
state: { tagName, shareUrl, props, clientId },
|
|
3802
|
+
};
|
|
3803
|
+
(_a = selectSignalConnectionRaw(state).socket) === null || _a === void 0 ? void 0 : _a.emit("start_room_integration", request);
|
|
3804
|
+
});
|
|
3805
|
+
const ROOM_INTEGRATION_PICKER_MESSAGES = {
|
|
3806
|
+
FORM_SUBMIT: "whereby:formSubmit",
|
|
3807
|
+
FORM_CLOSE: "whereby:formClose",
|
|
3808
|
+
ERROR: "whereby:bootstrapError",
|
|
3809
|
+
};
|
|
3810
|
+
function roomIntegrationPickerUrl({ integration, parentOrigin, featureSource, }) {
|
|
3811
|
+
const url = new URL("bootstrap.html", integration.webview);
|
|
3812
|
+
url.searchParams.set("parentOrigin", parentOrigin);
|
|
3813
|
+
if (featureSource) {
|
|
3814
|
+
url.searchParams.set("featuresource", featureSource);
|
|
3815
|
+
}
|
|
3816
|
+
return url.href;
|
|
3817
|
+
}
|
|
3818
|
+
const doStopRoomIntegration = createRoomConnectedThunk((payload) => (dispatch, getState) => {
|
|
3819
|
+
var _a;
|
|
3820
|
+
const state = getState();
|
|
3821
|
+
const { roomIntegrationSessionId, intent = "stop" } = payload;
|
|
3822
|
+
const session = selectRunningRoomIntegrations(state).find((running) => running.roomIntegrationSessionId === roomIntegrationSessionId);
|
|
3823
|
+
if (!session) {
|
|
3824
|
+
dispatch(setRoomIntegrationsError({
|
|
3825
|
+
error: {
|
|
3826
|
+
code: "unknown_integration",
|
|
3827
|
+
message: `No running room integration with session id: ${roomIntegrationSessionId}`,
|
|
3828
|
+
},
|
|
3829
|
+
}));
|
|
3830
|
+
return;
|
|
3831
|
+
}
|
|
3832
|
+
if (!session.canStop) {
|
|
3833
|
+
dispatch(setRoomIntegrationsError({
|
|
3834
|
+
error: {
|
|
3835
|
+
code: "not_allowed_to_stop",
|
|
3836
|
+
message: "Only the participant who started a room integration, or a host, can stop it",
|
|
3837
|
+
},
|
|
3838
|
+
}));
|
|
3839
|
+
return;
|
|
3840
|
+
}
|
|
3841
|
+
dispatch(setRoomIntegrationsError({ error: null }));
|
|
3842
|
+
(_a = selectSignalConnectionRaw(state).socket) === null || _a === void 0 ? void 0 : _a.emit("stop_room_integration", { roomIntegrationSessionId, intent });
|
|
3843
|
+
});
|
|
3844
|
+
const doUpdateRoomIntegrationProps = createRoomConnectedThunk((payload) => (dispatch, getState) => {
|
|
3845
|
+
var _a;
|
|
3846
|
+
const state = getState();
|
|
3847
|
+
const { roomIntegrationSessionId, props } = payload;
|
|
3848
|
+
if (!isValidProps(props)) {
|
|
3849
|
+
dispatch(setRoomIntegrationsError({
|
|
3850
|
+
error: {
|
|
3851
|
+
code: "invalid_content",
|
|
3852
|
+
message: "props must be a flat object of primitive values",
|
|
3853
|
+
},
|
|
3854
|
+
}));
|
|
3855
|
+
return;
|
|
3856
|
+
}
|
|
3857
|
+
(_a = selectSignalConnectionRaw(state).socket) === null || _a === void 0 ? void 0 : _a.emit("update_room_integration_props", {
|
|
3858
|
+
roomIntegrationSessionId,
|
|
3859
|
+
props,
|
|
3860
|
+
});
|
|
3861
|
+
});
|
|
3862
|
+
const selectRoomIntegrationsRaw = (state) => state.roomIntegrations;
|
|
3863
|
+
const selectRoomIntegrationsError = (state) => state.roomIntegrations.error;
|
|
3864
|
+
const selectRoomIntegrationsIsFetching = (state) => state.roomIntegrations.isFetching;
|
|
3865
|
+
const selectRoomIntegrationsHasFetched = (state) => state.roomIntegrations.hasFetched;
|
|
3866
|
+
const selectRoomIntegrationsEnabled = (state) => state.roomIntegrations.enabled;
|
|
3867
|
+
const selectAvailableRoomIntegrations = (state) => state.roomIntegrations.available;
|
|
3868
|
+
const selectUnavailableRoomIntegrations = (state) => state.roomIntegrations.unavailable;
|
|
3869
|
+
const selectEnabledRoomIntegrations = toolkit.createSelector(selectAvailableRoomIntegrations, selectRoomIntegrationsEnabled, (available, enabled) => available.filter((integration) => enabled.includes(integration.roomIntegrationId)));
|
|
3870
|
+
const selectEmbeddableRoomIntegrations = toolkit.createSelector(selectEnabledRoomIntegrations, (enabled) => enabled.filter((integration) => integration.isEmbeddable));
|
|
3871
|
+
const selectRunningRoomIntegrations = toolkit.createSelector(selectRoomIntegrationsRaw, selectEnabledRoomIntegrations, selectBreakoutActive, selectBreakoutCurrentId, selectSelfId, selectRemoteParticipants, selectIsAuthorizedToManageRoomIntegration, (raw, enabledIntegrations, breakoutActive, breakoutCurrentId, selfId, remoteParticipants, canManageRoomIntegration) => {
|
|
3872
|
+
const currentGroupId = breakoutActive ? breakoutCurrentId : "";
|
|
3873
|
+
return raw.running.reduce((acc, session) => {
|
|
3874
|
+
var _a;
|
|
3875
|
+
if (session.breakoutGroupId !== currentGroupId) {
|
|
3876
|
+
return acc;
|
|
3877
|
+
}
|
|
3878
|
+
const integration = enabledIntegrations.find((entry) => entry.roomIntegrationId === session.roomIntegrationId);
|
|
3879
|
+
if (!integration) {
|
|
3880
|
+
return acc;
|
|
3881
|
+
}
|
|
3882
|
+
const isPresenter = !!selfId && session.clientId === selfId;
|
|
3883
|
+
acc.push(Object.assign(Object.assign({}, session), { integration,
|
|
3884
|
+
isPresenter, canStop: isPresenter || canManageRoomIntegration, presenterDisplayName: isPresenter
|
|
3885
|
+
? null
|
|
3886
|
+
: ((_a = remoteParticipants.find((participant) => participant.id === session.clientId)) === null || _a === void 0 ? void 0 : _a.displayName) ||
|
|
3887
|
+
null }));
|
|
3888
|
+
return acc;
|
|
3889
|
+
}, []);
|
|
3890
|
+
});
|
|
3891
|
+
const selectIsRoomIntegrationRunning = toolkit.createSelector(selectRunningRoomIntegrations, (running) => running.length > 0);
|
|
3892
|
+
const selectRoomIntegrationForUrl = toolkit.createSelector(selectEmbeddableRoomIntegrations, (integrations) => (url) => integrations.find((integration) => integration.matcher.test(url)) || null);
|
|
3893
|
+
const selectShouldFetchRoomIntegrations = toolkit.createSelector(selectAppIsActive, selectRoomConnectionStatus, selectOrganizationId, selectAppRoomName, selectRoomIntegrationsRaw, (appIsActive, connectionStatus, organizationId, roomName, raw) => appIsActive &&
|
|
3894
|
+
connectionStatus === "connected" &&
|
|
3895
|
+
!!organizationId &&
|
|
3896
|
+
!!roomName &&
|
|
3897
|
+
!raw.hasFetched &&
|
|
3898
|
+
!raw.isFetching);
|
|
3899
|
+
createReactor([selectShouldFetchRoomIntegrations], ({ dispatch }, shouldFetchRoomIntegrations) => {
|
|
3900
|
+
if (shouldFetchRoomIntegrations) {
|
|
3901
|
+
dispatch(doFetchRoomIntegrations());
|
|
3902
|
+
}
|
|
3903
|
+
});
|
|
3904
|
+
|
|
3468
3905
|
function createRtcAnalyticsCustomEvent(parameters) {
|
|
3469
3906
|
return parameters;
|
|
3470
3907
|
}
|
|
@@ -4077,6 +4514,7 @@ const appReducer = toolkit.combineReducers({
|
|
|
4077
4514
|
remoteParticipants: remoteParticipantsSlice.reducer,
|
|
4078
4515
|
room: roomSlice.reducer,
|
|
4079
4516
|
roomConnection: roomConnectionSlice.reducer,
|
|
4517
|
+
roomIntegrations: roomIntegrationsSlice.reducer,
|
|
4080
4518
|
rtcAnalytics: rtcAnalyticsSlice.reducer,
|
|
4081
4519
|
rtcConnection: rtcConnectionSlice.reducer,
|
|
4082
4520
|
signalConnection: signalConnectionSlice.reducer,
|
|
@@ -4817,6 +5255,40 @@ class OrganizationServiceCache {
|
|
|
4817
5255
|
}
|
|
4818
5256
|
}
|
|
4819
5257
|
|
|
5258
|
+
function roomPath(organizationId, roomName, suffix = "") {
|
|
5259
|
+
const encodedRoomName = encodeURIComponent(roomName.replace(/^\//, ""));
|
|
5260
|
+
return `/organizations/${encodeURIComponent(organizationId)}/room/${encodedRoomName}${suffix}`;
|
|
5261
|
+
}
|
|
5262
|
+
function asArray(value) {
|
|
5263
|
+
return Array.isArray(value) ? value : [];
|
|
5264
|
+
}
|
|
5265
|
+
class RoomIntegrationService {
|
|
5266
|
+
constructor({ apiClient }) {
|
|
5267
|
+
this._apiClient = apiClient;
|
|
5268
|
+
}
|
|
5269
|
+
findRoomIntegrations(_a) {
|
|
5270
|
+
return __awaiter(this, arguments, void 0, function* ({ organizationId, roomName, }) {
|
|
5271
|
+
const response = yield this._apiClient.request(roomPath(organizationId, roomName, "/room-integrations"), {
|
|
5272
|
+
method: "GET",
|
|
5273
|
+
});
|
|
5274
|
+
const data = (response.data || {});
|
|
5275
|
+
return {
|
|
5276
|
+
enabledRoomIntegrations: asArray(data.enabledRoomIntegrations),
|
|
5277
|
+
disabledRoomIntegrations: asArray(data.disabledRoomIntegrations),
|
|
5278
|
+
unavailableRoomIntegrations: asArray(data.unavailableRoomIntegrations),
|
|
5279
|
+
};
|
|
5280
|
+
});
|
|
5281
|
+
}
|
|
5282
|
+
toggleRoomIntegration(_a) {
|
|
5283
|
+
return __awaiter(this, arguments, void 0, function* ({ organizationId, roomName, roomIntegrationId, enable, }) {
|
|
5284
|
+
yield this._apiClient.request(roomPath(organizationId, roomName, `/room-integrations/${roomIntegrationId}`), {
|
|
5285
|
+
method: "PUT",
|
|
5286
|
+
data: { enable },
|
|
5287
|
+
});
|
|
5288
|
+
});
|
|
5289
|
+
}
|
|
5290
|
+
}
|
|
5291
|
+
|
|
4820
5292
|
const API_BASE_URL = "https://api.whereby.dev";
|
|
4821
5293
|
function createServices() {
|
|
4822
5294
|
const credentialsService = CredentialsService.create({
|
|
@@ -4827,6 +5299,7 @@ function createServices() {
|
|
|
4827
5299
|
baseUrl: API_BASE_URL,
|
|
4828
5300
|
});
|
|
4829
5301
|
const organizationService = new OrganizationService({ apiClient });
|
|
5302
|
+
const roomIntegrationService = new RoomIntegrationService({ apiClient });
|
|
4830
5303
|
const fetchOrganizationFromRoomUrl = (roomUrl) => {
|
|
4831
5304
|
const roomUrlObj = new URL(roomUrl);
|
|
4832
5305
|
const urls = media.fromLocation({ host: roomUrlObj.host });
|
|
@@ -4840,6 +5313,7 @@ function createServices() {
|
|
|
4840
5313
|
credentialsService,
|
|
4841
5314
|
apiClient,
|
|
4842
5315
|
organizationService,
|
|
5316
|
+
roomIntegrationService,
|
|
4843
5317
|
fetchOrganizationFromRoomUrl,
|
|
4844
5318
|
};
|
|
4845
5319
|
}
|
|
@@ -4850,9 +5324,11 @@ exports.BREAKOUT_UNAVAILABLE_ERROR = BREAKOUT_UNAVAILABLE_ERROR;
|
|
|
4850
5324
|
exports.DEFAULT_BREAKOUT_TIMER_DURATION = DEFAULT_BREAKOUT_TIMER_DURATION;
|
|
4851
5325
|
exports.MAX_FILES_PER_UPLOAD = MAX_FILES_PER_UPLOAD;
|
|
4852
5326
|
exports.MAX_FILE_SIZE = MAX_FILE_SIZE;
|
|
5327
|
+
exports.ROOM_INTEGRATION_PICKER_MESSAGES = ROOM_INTEGRATION_PICKER_MESSAGES;
|
|
4853
5328
|
exports.addAppListener = addAppListener;
|
|
4854
5329
|
exports.addSpotlight = addSpotlight;
|
|
4855
5330
|
exports.appSlice = appSlice;
|
|
5331
|
+
exports.audioOnlyModeToggled = audioOnlyModeToggled;
|
|
4856
5332
|
exports.authorizationSlice = authorizationSlice;
|
|
4857
5333
|
exports.authorizationSliceInitialState = authorizationSliceInitialState;
|
|
4858
5334
|
exports.breakoutSlice = breakoutSlice;
|
|
@@ -4902,6 +5378,7 @@ exports.doEnableAudio = doEnableAudio;
|
|
|
4902
5378
|
exports.doEnableVideo = doEnableVideo;
|
|
4903
5379
|
exports.doEndMeeting = doEndMeeting;
|
|
4904
5380
|
exports.doExtendBreakoutTimer = doExtendBreakoutTimer;
|
|
5381
|
+
exports.doFetchRoomIntegrations = doFetchRoomIntegrations;
|
|
4905
5382
|
exports.doGetDeviceCredentials = doGetDeviceCredentials;
|
|
4906
5383
|
exports.doHandleAcceptStreams = doHandleAcceptStreams;
|
|
4907
5384
|
exports.doHandleStreamingStarted = doHandleStreamingStarted;
|
|
@@ -4940,6 +5417,7 @@ exports.doStartConnectionMonitor = doStartConnectionMonitor;
|
|
|
4940
5417
|
exports.doStartLiveCaptions = doStartLiveCaptions;
|
|
4941
5418
|
exports.doStartLiveTranscription = doStartLiveTranscription;
|
|
4942
5419
|
exports.doStartLocalMedia = doStartLocalMedia;
|
|
5420
|
+
exports.doStartRoomIntegration = doStartRoomIntegration;
|
|
4943
5421
|
exports.doStartScreenshare = doStartScreenshare;
|
|
4944
5422
|
exports.doStopBreakoutSession = doStopBreakoutSession;
|
|
4945
5423
|
exports.doStopBreakoutTimer = doStopBreakoutTimer;
|
|
@@ -4948,13 +5426,16 @@ exports.doStopConnectionMonitor = doStopConnectionMonitor;
|
|
|
4948
5426
|
exports.doStopLiveCaptions = doStopLiveCaptions;
|
|
4949
5427
|
exports.doStopLiveTranscription = doStopLiveTranscription;
|
|
4950
5428
|
exports.doStopLocalMedia = doStopLocalMedia;
|
|
5429
|
+
exports.doStopRoomIntegration = doStopRoomIntegration;
|
|
4951
5430
|
exports.doStopScreenshare = doStopScreenshare;
|
|
4952
5431
|
exports.doSwitchLocalStream = doSwitchLocalStream;
|
|
5432
|
+
exports.doToggleAudioOnlyMode = doToggleAudioOnlyMode;
|
|
4953
5433
|
exports.doToggleCamera = doToggleCamera;
|
|
4954
5434
|
exports.doTriggerLocalStreamRefresh = doTriggerLocalStreamRefresh;
|
|
4955
5435
|
exports.doUnassignAllBreakoutParticipants = doUnassignAllBreakoutParticipants;
|
|
4956
5436
|
exports.doUpdateBreakoutSession = doUpdateBreakoutSession;
|
|
4957
5437
|
exports.doUpdateDeviceList = doUpdateDeviceList;
|
|
5438
|
+
exports.doUpdateRoomIntegrationProps = doUpdateRoomIntegrationProps;
|
|
4958
5439
|
exports.fileShareRequestSettled = fileShareRequestSettled;
|
|
4959
5440
|
exports.fileShareSlice = fileShareSlice;
|
|
4960
5441
|
exports.fileShareSliceInitialState = fileShareSliceInitialState;
|
|
@@ -4983,6 +5464,8 @@ exports.notificationsSlice = notificationsSlice;
|
|
|
4983
5464
|
exports.observeStore = observeStore;
|
|
4984
5465
|
exports.organizationSlice = organizationSlice;
|
|
4985
5466
|
exports.organizationSliceInitialState = organizationSliceInitialState;
|
|
5467
|
+
exports.parseRoomIntegration = parseRoomIntegration;
|
|
5468
|
+
exports.parseRoomIntegrationSession = parseRoomIntegrationSession;
|
|
4986
5469
|
exports.participantStreamAdded = participantStreamAdded;
|
|
4987
5470
|
exports.participantStreamIdAdded = participantStreamIdAdded;
|
|
4988
5471
|
exports.recordingRequestStarted = recordingRequestStarted;
|
|
@@ -4992,6 +5475,10 @@ exports.removeSpotlight = removeSpotlight;
|
|
|
4992
5475
|
exports.resolutionReported = resolutionReported;
|
|
4993
5476
|
exports.roomConnectionSlice = roomConnectionSlice;
|
|
4994
5477
|
exports.roomConnectionSliceInitialState = roomConnectionSliceInitialState;
|
|
5478
|
+
exports.roomIntegrationPickerUrl = roomIntegrationPickerUrl;
|
|
5479
|
+
exports.roomIntegrationSignalError = roomIntegrationSignalError;
|
|
5480
|
+
exports.roomIntegrationsSlice = roomIntegrationsSlice;
|
|
5481
|
+
exports.roomIntegrationsSliceInitialState = roomIntegrationsSliceInitialState;
|
|
4995
5482
|
exports.roomSlice = roomSlice;
|
|
4996
5483
|
exports.roomSliceInitialState = roomSliceInitialState;
|
|
4997
5484
|
exports.rootReducer = rootReducer;
|
|
@@ -5025,6 +5512,7 @@ exports.selectAppRoomUrl = selectAppRoomUrl;
|
|
|
5025
5512
|
exports.selectAppUserAgent = selectAppUserAgent;
|
|
5026
5513
|
exports.selectAssistantKey = selectAssistantKey;
|
|
5027
5514
|
exports.selectAuthorizationRoleName = selectAuthorizationRoleName;
|
|
5515
|
+
exports.selectAvailableRoomIntegrations = selectAvailableRoomIntegrations;
|
|
5028
5516
|
exports.selectBreakoutActive = selectBreakoutActive;
|
|
5029
5517
|
exports.selectBreakoutAssignments = selectBreakoutAssignments;
|
|
5030
5518
|
exports.selectBreakoutAutoMoveToGroup = selectBreakoutAutoMoveToGroup;
|
|
@@ -5062,16 +5550,20 @@ exports.selectCurrentMicrophoneDeviceId = selectCurrentMicrophoneDeviceId;
|
|
|
5062
5550
|
exports.selectCurrentSpeakerDeviceId = selectCurrentSpeakerDeviceId;
|
|
5063
5551
|
exports.selectDeviceCredentialsRaw = selectDeviceCredentialsRaw;
|
|
5064
5552
|
exports.selectDeviceId = selectDeviceId;
|
|
5553
|
+
exports.selectEmbeddableRoomIntegrations = selectEmbeddableRoomIntegrations;
|
|
5554
|
+
exports.selectEnabledRoomIntegrations = selectEnabledRoomIntegrations;
|
|
5065
5555
|
exports.selectFileShareRaw = selectFileShareRaw;
|
|
5066
5556
|
exports.selectFileShareRequestInFlight = selectFileShareRequestInFlight;
|
|
5067
5557
|
exports.selectFileUploads = selectFileUploads;
|
|
5068
5558
|
exports.selectHasFetchedDeviceCredentials = selectHasFetchedDeviceCredentials;
|
|
5069
5559
|
exports.selectIsAcceptingStreams = selectIsAcceptingStreams;
|
|
5560
|
+
exports.selectIsAudioOnlyModeEnabled = selectIsAudioOnlyModeEnabled;
|
|
5070
5561
|
exports.selectIsAuthorizedToAskToSpeak = selectIsAuthorizedToAskToSpeak;
|
|
5071
5562
|
exports.selectIsAuthorizedToEndMeeting = selectIsAuthorizedToEndMeeting;
|
|
5072
5563
|
exports.selectIsAuthorizedToKickClient = selectIsAuthorizedToKickClient;
|
|
5073
5564
|
exports.selectIsAuthorizedToLockRoom = selectIsAuthorizedToLockRoom;
|
|
5074
5565
|
exports.selectIsAuthorizedToManageBreakout = selectIsAuthorizedToManageBreakout;
|
|
5566
|
+
exports.selectIsAuthorizedToManageRoomIntegration = selectIsAuthorizedToManageRoomIntegration;
|
|
5075
5567
|
exports.selectIsAuthorizedToRequestAudioEnable = selectIsAuthorizedToRequestAudioEnable;
|
|
5076
5568
|
exports.selectIsAuthorizedToRequestScreenshareEnable = selectIsAuthorizedToRequestScreenshareEnable;
|
|
5077
5569
|
exports.selectIsAuthorizedToRequestVideoEnable = selectIsAuthorizedToRequestVideoEnable;
|
|
@@ -5085,6 +5577,7 @@ exports.selectIsLocalMediaStarting = selectIsLocalMediaStarting;
|
|
|
5085
5577
|
exports.selectIsLocalParticipantSpotlighted = selectIsLocalParticipantSpotlighted;
|
|
5086
5578
|
exports.selectIsLowDataModeEnabled = selectIsLowDataModeEnabled;
|
|
5087
5579
|
exports.selectIsMicrophoneEnabled = selectIsMicrophoneEnabled;
|
|
5580
|
+
exports.selectIsRoomIntegrationRunning = selectIsRoomIntegrationRunning;
|
|
5088
5581
|
exports.selectIsSettingCameraDevice = selectIsSettingCameraDevice;
|
|
5089
5582
|
exports.selectIsSettingMicrophoneDevice = selectIsSettingMicrophoneDevice;
|
|
5090
5583
|
exports.selectIsToggleCamera = selectIsToggleCamera;
|
|
@@ -5137,12 +5630,19 @@ exports.selectRemoteClientViews = selectRemoteClientViews;
|
|
|
5137
5630
|
exports.selectRemoteClients = selectRemoteClients;
|
|
5138
5631
|
exports.selectRemoteParticipants = selectRemoteParticipants;
|
|
5139
5632
|
exports.selectRemoteParticipantsRaw = selectRemoteParticipantsRaw;
|
|
5633
|
+
exports.selectRemoteScreenshareVideoTrackIds = selectRemoteScreenshareVideoTrackIds;
|
|
5140
5634
|
exports.selectRoomConnectionError = selectRoomConnectionError;
|
|
5141
5635
|
exports.selectRoomConnectionKnockResponse = selectRoomConnectionKnockResponse;
|
|
5142
5636
|
exports.selectRoomConnectionRaw = selectRoomConnectionRaw;
|
|
5143
5637
|
exports.selectRoomConnectionSession = selectRoomConnectionSession;
|
|
5144
5638
|
exports.selectRoomConnectionSessionId = selectRoomConnectionSessionId;
|
|
5145
5639
|
exports.selectRoomConnectionStatus = selectRoomConnectionStatus;
|
|
5640
|
+
exports.selectRoomIntegrationForUrl = selectRoomIntegrationForUrl;
|
|
5641
|
+
exports.selectRoomIntegrationsEnabled = selectRoomIntegrationsEnabled;
|
|
5642
|
+
exports.selectRoomIntegrationsError = selectRoomIntegrationsError;
|
|
5643
|
+
exports.selectRoomIntegrationsHasFetched = selectRoomIntegrationsHasFetched;
|
|
5644
|
+
exports.selectRoomIntegrationsIsFetching = selectRoomIntegrationsIsFetching;
|
|
5645
|
+
exports.selectRoomIntegrationsRaw = selectRoomIntegrationsRaw;
|
|
5146
5646
|
exports.selectRoomIsLocked = selectRoomIsLocked;
|
|
5147
5647
|
exports.selectRoomKey = selectRoomKey;
|
|
5148
5648
|
exports.selectRoomMode = selectRoomMode;
|
|
@@ -5152,6 +5652,7 @@ exports.selectRtcIsCreatingDispatcher = selectRtcIsCreatingDispatcher;
|
|
|
5152
5652
|
exports.selectRtcManager = selectRtcManager;
|
|
5153
5653
|
exports.selectRtcManagerInitialized = selectRtcManagerInitialized;
|
|
5154
5654
|
exports.selectRtcStatus = selectRtcStatus;
|
|
5655
|
+
exports.selectRunningRoomIntegrations = selectRunningRoomIntegrations;
|
|
5155
5656
|
exports.selectScreenshares = selectScreenshares;
|
|
5156
5657
|
exports.selectSelfId = selectSelfId;
|
|
5157
5658
|
exports.selectShouldApplyInitialMuteStates = selectShouldApplyInitialMuteStates;
|
|
@@ -5161,6 +5662,7 @@ exports.selectShouldConnectSignal = selectShouldConnectSignal;
|
|
|
5161
5662
|
exports.selectShouldDisconnectRtc = selectShouldDisconnectRtc;
|
|
5162
5663
|
exports.selectShouldFetchDeviceCredentials = selectShouldFetchDeviceCredentials;
|
|
5163
5664
|
exports.selectShouldFetchOrganization = selectShouldFetchOrganization;
|
|
5665
|
+
exports.selectShouldFetchRoomIntegrations = selectShouldFetchRoomIntegrations;
|
|
5164
5666
|
exports.selectShouldIdentifyDevice = selectShouldIdentifyDevice;
|
|
5165
5667
|
exports.selectShouldInitializeRtc = selectShouldInitializeRtc;
|
|
5166
5668
|
exports.selectShouldStartConnectionMonitor = selectShouldStartConnectionMonitor;
|
|
@@ -5177,6 +5679,7 @@ exports.selectSpotlightsRaw = selectSpotlightsRaw;
|
|
|
5177
5679
|
exports.selectStopCallbackFunction = selectStopCallbackFunction;
|
|
5178
5680
|
exports.selectStreamingRaw = selectStreamingRaw;
|
|
5179
5681
|
exports.selectStreamsToAccept = selectStreamsToAccept;
|
|
5682
|
+
exports.selectUnavailableRoomIntegrations = selectUnavailableRoomIntegrations;
|
|
5180
5683
|
exports.selectWaitingParticipants = selectWaitingParticipants;
|
|
5181
5684
|
exports.selectWaitingParticipantsRaw = selectWaitingParticipantsRaw;
|
|
5182
5685
|
exports.setBreakoutError = setBreakoutError;
|
|
@@ -5187,6 +5690,7 @@ exports.setCurrentSpeakerDeviceId = setCurrentSpeakerDeviceId;
|
|
|
5187
5690
|
exports.setDisplayName = setDisplayName;
|
|
5188
5691
|
exports.setLocalMediaOptions = setLocalMediaOptions;
|
|
5189
5692
|
exports.setLocalMediaStream = setLocalMediaStream;
|
|
5693
|
+
exports.setRoomIntegrationsError = setRoomIntegrationsError;
|
|
5190
5694
|
exports.setRoomKey = setRoomKey;
|
|
5191
5695
|
exports.signalConnectionSlice = signalConnectionSlice;
|
|
5192
5696
|
exports.signalConnectionSliceInitialState = signalConnectionSliceInitialState;
|