@whereby.com/core 1.24.0 → 1.25.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 +308 -253
- package/dist/index.d.cts +18 -2
- package/dist/index.d.mts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.mjs +308 -254
- package/dist/legacy-esm.js +308 -254
- package/dist/redux/index.cjs +294 -250
- package/dist/redux/index.d.cts +41 -20
- package/dist/redux/index.d.mts +41 -20
- package/dist/redux/index.d.ts +41 -20
- package/dist/redux/index.js +293 -251
- package/dist/redux/index.mjs +293 -251
- package/package.json +1 -1
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.25.0";
|
|
78
78
|
|
|
79
79
|
function decodeRoomName(roomName) {
|
|
80
80
|
if (!roomName) {
|
|
@@ -130,6 +130,12 @@ const selectAppInitialConfig = (state) => state.app.initialConfig;
|
|
|
130
130
|
const selectAppInitialMuteStates = (state) => state.app.initialMuteStates;
|
|
131
131
|
const selectAppIgnoreBreakoutGroups = (state) => state.app.ignoreBreakoutGroups;
|
|
132
132
|
|
|
133
|
+
const NON_RECONNECTING_DISCONNECT_REASONS = ["io server disconnect", "io client disconnect"];
|
|
134
|
+
function createSignalDisconnectEvent(reason) {
|
|
135
|
+
return {
|
|
136
|
+
willReconnect: !!reason && !NON_RECONNECTING_DISCONNECT_REASONS.includes(reason),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
133
139
|
function createSignalEventAction(name) {
|
|
134
140
|
return createAction(`signalConnection/event/${name}`);
|
|
135
141
|
}
|
|
@@ -344,7 +350,7 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
344
350
|
dispatch(signalEvents.chatMessage(payload));
|
|
345
351
|
});
|
|
346
352
|
socket.on("chat_message_removed", (payload) => dispatch(signalEvents.chatMessageRemoved(payload)));
|
|
347
|
-
socket.on("disconnect", () => dispatch(signalEvents.disconnect()));
|
|
353
|
+
socket.on("disconnect", (reason) => dispatch(signalEvents.disconnect(createSignalDisconnectEvent(reason))));
|
|
348
354
|
socket.on("room_knocked", (payload) => dispatch(signalEvents.roomKnocked(payload)));
|
|
349
355
|
socket.on("room_left", () => dispatch(signalEvents.roomLeft()));
|
|
350
356
|
socket.on("room_locked", (payload) => dispatch(signalEvents.roomLocked(payload)));
|
|
@@ -1344,6 +1350,271 @@ const selectRoomConnectionSessionId = (state) => { var _a; return (_a = state.ro
|
|
|
1344
1350
|
const selectRoomConnectionStatus = (state) => state.roomConnection.status;
|
|
1345
1351
|
const selectRoomConnectionError = (state) => state.roomConnection.error;
|
|
1346
1352
|
const selectRoomConnectionKnockResponse = (state) => state.roomConnection.knockResponse;
|
|
1353
|
+
const selectRoomConnectionIsRejoining = (state) => state.roomConnection.isRejoining;
|
|
1354
|
+
|
|
1355
|
+
const organizationSliceInitialState = {
|
|
1356
|
+
data: null,
|
|
1357
|
+
isFetching: false,
|
|
1358
|
+
error: null,
|
|
1359
|
+
};
|
|
1360
|
+
const organizationSlice = createSlice({
|
|
1361
|
+
name: "organization",
|
|
1362
|
+
initialState: organizationSliceInitialState,
|
|
1363
|
+
reducers: {},
|
|
1364
|
+
extraReducers: (builder) => {
|
|
1365
|
+
builder.addCase(doOrganizationFetch.pending, (state) => {
|
|
1366
|
+
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
1367
|
+
});
|
|
1368
|
+
builder.addCase(doOrganizationFetch.fulfilled, (state, action) => {
|
|
1369
|
+
if (!action.payload)
|
|
1370
|
+
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
1371
|
+
return Object.assign(Object.assign({}, state), { isFetching: false, data: action.payload });
|
|
1372
|
+
});
|
|
1373
|
+
builder.addCase(doOrganizationFetch.rejected, (state) => {
|
|
1374
|
+
return Object.assign(Object.assign({}, state), { isFetching: false, error: true });
|
|
1375
|
+
});
|
|
1376
|
+
},
|
|
1377
|
+
});
|
|
1378
|
+
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
1379
|
+
try {
|
|
1380
|
+
const roomUrl = selectAppRoomUrl(getState());
|
|
1381
|
+
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
1382
|
+
if (!organization) {
|
|
1383
|
+
throw new Error("Invalid room url");
|
|
1384
|
+
}
|
|
1385
|
+
return organization;
|
|
1386
|
+
}
|
|
1387
|
+
catch (error) {
|
|
1388
|
+
console.error(error);
|
|
1389
|
+
}
|
|
1390
|
+
}));
|
|
1391
|
+
const selectOrganizationRaw = (state) => state.organization;
|
|
1392
|
+
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
1393
|
+
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
1394
|
+
const selectShouldFetchOrganization = createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
1395
|
+
if (appIsActive &&
|
|
1396
|
+
!organization.data &&
|
|
1397
|
+
!organization.isFetching &&
|
|
1398
|
+
!organization.error &&
|
|
1399
|
+
!deviceCredentials.isFetching) {
|
|
1400
|
+
return true;
|
|
1401
|
+
}
|
|
1402
|
+
return false;
|
|
1403
|
+
});
|
|
1404
|
+
createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganization) => {
|
|
1405
|
+
if (shouldFetchOrganization) {
|
|
1406
|
+
dispatch(doOrganizationFetch());
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
|
|
1410
|
+
const roomConnectionSliceInitialState = {
|
|
1411
|
+
session: null,
|
|
1412
|
+
status: "ready",
|
|
1413
|
+
error: null,
|
|
1414
|
+
knockResponse: null,
|
|
1415
|
+
isRejoining: false,
|
|
1416
|
+
};
|
|
1417
|
+
const roomConnectionSlice = createSlice({
|
|
1418
|
+
name: "roomConnection",
|
|
1419
|
+
initialState: roomConnectionSliceInitialState,
|
|
1420
|
+
reducers: {
|
|
1421
|
+
connectionStatusChanged: (state, action) => {
|
|
1422
|
+
return Object.assign(Object.assign({}, state), { status: action.payload });
|
|
1423
|
+
},
|
|
1424
|
+
knockResponseReceived: (state, action) => {
|
|
1425
|
+
return Object.assign(Object.assign({}, state), { knockResponse: action.payload });
|
|
1426
|
+
},
|
|
1427
|
+
roomRejoined: (state, action) => {
|
|
1428
|
+
return state;
|
|
1429
|
+
},
|
|
1430
|
+
},
|
|
1431
|
+
extraReducers: (builder) => {
|
|
1432
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
1433
|
+
var _a;
|
|
1434
|
+
if ("error" in action.payload) {
|
|
1435
|
+
if (action.payload.error === "room_locked" && action.payload.isLocked) {
|
|
1436
|
+
return Object.assign(Object.assign({}, state), { status: "room_locked" });
|
|
1437
|
+
}
|
|
1438
|
+
return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error, isRejoining: false });
|
|
1439
|
+
}
|
|
1440
|
+
const { room } = action.payload;
|
|
1441
|
+
return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null, isRejoining: false });
|
|
1442
|
+
});
|
|
1443
|
+
builder.addCase(signalEvents.disconnect, (state, action) => {
|
|
1444
|
+
if (["kicked", "left"].includes(state.status)) {
|
|
1445
|
+
return Object.assign({}, state);
|
|
1446
|
+
}
|
|
1447
|
+
const { willReconnect } = action.payload;
|
|
1448
|
+
return Object.assign(Object.assign({}, state), { status: willReconnect ? "reconnecting" : "disconnected", isRejoining: willReconnect && (state.isRejoining || state.status === "connected") });
|
|
1449
|
+
});
|
|
1450
|
+
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
1451
|
+
var _a, _b;
|
|
1452
|
+
return Object.assign(Object.assign({}, state), { session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
|
|
1453
|
+
});
|
|
1454
|
+
builder.addCase(signalEvents.roomSessionEnded, (state, action) => {
|
|
1455
|
+
var _a;
|
|
1456
|
+
if (((_a = state.session) === null || _a === void 0 ? void 0 : _a.id) !== action.payload.roomSessionId) {
|
|
1457
|
+
return state;
|
|
1458
|
+
}
|
|
1459
|
+
return Object.assign(Object.assign({}, state), { session: null });
|
|
1460
|
+
});
|
|
1461
|
+
builder.addCase(signalEvents.clientKicked, (state) => {
|
|
1462
|
+
return Object.assign(Object.assign({}, state), { status: "kicked" });
|
|
1463
|
+
});
|
|
1464
|
+
builder.addCase(signalEvents.roomLeft, (state) => {
|
|
1465
|
+
return Object.assign(Object.assign({}, state), { status: "left" });
|
|
1466
|
+
});
|
|
1467
|
+
},
|
|
1468
|
+
});
|
|
1469
|
+
const { connectionStatusChanged, knockResponseReceived } = roomConnectionSlice.actions;
|
|
1470
|
+
const { roomRejoined } = roomConnectionSlice.actions;
|
|
1471
|
+
const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
1472
|
+
const state = getState();
|
|
1473
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1474
|
+
const roomName = selectAppRoomName(state);
|
|
1475
|
+
const roomKey = selectRoomKey(state);
|
|
1476
|
+
const displayName = selectAppDisplayName(state);
|
|
1477
|
+
const isDialIn = selectAppIsDialIn(state);
|
|
1478
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
1479
|
+
const userAgent = selectAppUserAgent(state);
|
|
1480
|
+
const externalId = selectAppExternalId(state);
|
|
1481
|
+
const organizationId = selectOrganizationId(state);
|
|
1482
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1483
|
+
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
1484
|
+
if (connectionStatus !== "room_locked") {
|
|
1485
|
+
console.warn("Room is not locked, knock aborted");
|
|
1486
|
+
return;
|
|
1487
|
+
}
|
|
1488
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
1489
|
+
isAudioEnabled: true,
|
|
1490
|
+
isVideoEnabled: true,
|
|
1491
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
1492
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1493
|
+
roomKey,
|
|
1494
|
+
roomName,
|
|
1495
|
+
userAgent,
|
|
1496
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
1497
|
+
dispatch(connectionStatusChanged("knocking"));
|
|
1498
|
+
});
|
|
1499
|
+
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
1500
|
+
const state = getState();
|
|
1501
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1502
|
+
const connectionStatus = selectRoomConnectionStatus(state);
|
|
1503
|
+
if (connectionStatus !== "knocking") {
|
|
1504
|
+
console.warn("Not knocking, cancel knock aborted");
|
|
1505
|
+
return;
|
|
1506
|
+
}
|
|
1507
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("cancel_room_knock");
|
|
1508
|
+
dispatch(connectionStatusChanged("ready"));
|
|
1509
|
+
});
|
|
1510
|
+
const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
1511
|
+
const state = getState();
|
|
1512
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1513
|
+
const roomName = selectAppRoomName(state);
|
|
1514
|
+
const roomKey = selectRoomKey(state);
|
|
1515
|
+
const assistantKey = selectAssistantKey(state);
|
|
1516
|
+
const displayName = selectAppDisplayName(state);
|
|
1517
|
+
const userAgent = selectAppUserAgent(state);
|
|
1518
|
+
const externalId = selectAppExternalId(state);
|
|
1519
|
+
const isDialIn = selectAppIsDialIn(state);
|
|
1520
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
1521
|
+
const organizationId = selectOrganizationId(state);
|
|
1522
|
+
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
1523
|
+
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
1524
|
+
const clientClaim = selectLocalParticipantClientClaim(getState());
|
|
1525
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
1526
|
+
isAudioEnabled: isMicrophoneEnabled,
|
|
1527
|
+
isVideoEnabled: isCameraEnabled,
|
|
1528
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
1529
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
1530
|
+
roomKey,
|
|
1531
|
+
assistantKey,
|
|
1532
|
+
roomName,
|
|
1533
|
+
userAgent,
|
|
1534
|
+
externalId }, (clientClaim && { clientClaim })));
|
|
1535
|
+
dispatch(connectionStatusChanged("connecting"));
|
|
1536
|
+
});
|
|
1537
|
+
const selectShouldConnectRoom = createSelector([
|
|
1538
|
+
selectAppIsActive,
|
|
1539
|
+
selectOrganizationId,
|
|
1540
|
+
selectRoomConnectionStatus,
|
|
1541
|
+
selectSignalConnectionDeviceIdentified,
|
|
1542
|
+
selectLocalMediaStatus,
|
|
1543
|
+
selectRoomConnectionError,
|
|
1544
|
+
], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
|
|
1545
|
+
if (appIsActive &&
|
|
1546
|
+
localMediaStatus === "started" &&
|
|
1547
|
+
signalConnectionDeviceIdentified &&
|
|
1548
|
+
!!hasOrganizationIdFetched &&
|
|
1549
|
+
["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
|
|
1550
|
+
!roomConnectionError) {
|
|
1551
|
+
return true;
|
|
1552
|
+
}
|
|
1553
|
+
return false;
|
|
1554
|
+
});
|
|
1555
|
+
createReactor([selectShouldConnectRoom], ({ dispatch }, shouldConnectRoom) => {
|
|
1556
|
+
if (shouldConnectRoom) {
|
|
1557
|
+
dispatch(doConnectRoom());
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
startAppListening({
|
|
1561
|
+
actionCreator: signalEvents.roomJoined,
|
|
1562
|
+
effect: ({ payload }, { dispatch, getOriginalState }) => {
|
|
1563
|
+
if ("error" in payload) {
|
|
1564
|
+
return;
|
|
1565
|
+
}
|
|
1566
|
+
const originalState = getOriginalState();
|
|
1567
|
+
if (!selectRoomConnectionIsRejoining(originalState)) {
|
|
1568
|
+
return;
|
|
1569
|
+
}
|
|
1570
|
+
dispatch(roomRejoined({ selfId: payload.selfId, previousSelfId: selectSelfId(originalState) }));
|
|
1571
|
+
},
|
|
1572
|
+
});
|
|
1573
|
+
startAppListening({
|
|
1574
|
+
actionCreator: signalEvents.knockHandled,
|
|
1575
|
+
effect: ({ payload }, { dispatch, getState }) => {
|
|
1576
|
+
var _a, _b;
|
|
1577
|
+
const { clientId, resolution } = payload;
|
|
1578
|
+
const state = getState();
|
|
1579
|
+
const selfId = selectSelfId(state);
|
|
1580
|
+
if (clientId !== selfId) {
|
|
1581
|
+
return;
|
|
1582
|
+
}
|
|
1583
|
+
if (resolution === "accepted") {
|
|
1584
|
+
dispatch(setRoomKey(payload.metadata.roomKey));
|
|
1585
|
+
dispatch(doConnectRoom());
|
|
1586
|
+
}
|
|
1587
|
+
else if (resolution === "on_hold") {
|
|
1588
|
+
dispatch(knockResponseReceived((_a = payload.knockResponse) !== null && _a !== void 0 ? _a : null));
|
|
1589
|
+
dispatch(connectionStatusChanged("knock_on_hold"));
|
|
1590
|
+
}
|
|
1591
|
+
else if (resolution === "rejected") {
|
|
1592
|
+
dispatch(knockResponseReceived((_b = payload.knockResponse) !== null && _b !== void 0 ? _b : null));
|
|
1593
|
+
dispatch(connectionStatusChanged("knock_rejected"));
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
});
|
|
1597
|
+
startAppListening({
|
|
1598
|
+
actionCreator: signalEvents.clientKicked,
|
|
1599
|
+
effect: (_, { dispatch }) => {
|
|
1600
|
+
dispatch(doAppStop());
|
|
1601
|
+
},
|
|
1602
|
+
});
|
|
1603
|
+
startAppListening({
|
|
1604
|
+
actionCreator: doAppStop,
|
|
1605
|
+
effect: (_, { dispatch, getState }) => {
|
|
1606
|
+
const state = getState();
|
|
1607
|
+
const roomConnectionStatus = selectRoomConnectionStatus(state);
|
|
1608
|
+
if (roomConnectionStatus === "connected") {
|
|
1609
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
1610
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("leave_room");
|
|
1611
|
+
dispatch(connectionStatusChanged("leaving"));
|
|
1612
|
+
}
|
|
1613
|
+
else {
|
|
1614
|
+
dispatch(doSignalDisconnect());
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
});
|
|
1347
1618
|
|
|
1348
1619
|
const emitter = new EventEmitter();
|
|
1349
1620
|
function createNotificationEvent(payload) {
|
|
@@ -1530,6 +1801,25 @@ createReactor([selectSignalStatus], ({ dispatch, getState }, signalStatus) => {
|
|
|
1530
1801
|
})));
|
|
1531
1802
|
}
|
|
1532
1803
|
});
|
|
1804
|
+
createReactor([selectRoomConnectionIsRejoining], ({ dispatch }, isRejoining) => {
|
|
1805
|
+
if (isRejoining) {
|
|
1806
|
+
dispatch(doSetNotification(createNotificationEvent({
|
|
1807
|
+
type: "reconnecting",
|
|
1808
|
+
message: `Reconnecting to the room...`,
|
|
1809
|
+
props: {},
|
|
1810
|
+
})));
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
startAppListening({
|
|
1814
|
+
actionCreator: roomRejoined,
|
|
1815
|
+
effect: (_, { dispatch }) => {
|
|
1816
|
+
dispatch(doSetNotification(createNotificationEvent({
|
|
1817
|
+
type: "reconnected",
|
|
1818
|
+
message: `Reconnected to the room`,
|
|
1819
|
+
props: {},
|
|
1820
|
+
})));
|
|
1821
|
+
},
|
|
1822
|
+
});
|
|
1533
1823
|
startAppListening({
|
|
1534
1824
|
actionCreator: signalEvents.clientUnableToJoin,
|
|
1535
1825
|
effect: (action, { dispatch }) => {
|
|
@@ -3272,254 +3562,6 @@ createReactor([selectBreakoutAssignments, selectDeviceId, selectLocalParticipant
|
|
|
3272
3562
|
}
|
|
3273
3563
|
});
|
|
3274
3564
|
|
|
3275
|
-
const organizationSliceInitialState = {
|
|
3276
|
-
data: null,
|
|
3277
|
-
isFetching: false,
|
|
3278
|
-
error: null,
|
|
3279
|
-
};
|
|
3280
|
-
const organizationSlice = createSlice({
|
|
3281
|
-
name: "organization",
|
|
3282
|
-
initialState: organizationSliceInitialState,
|
|
3283
|
-
reducers: {},
|
|
3284
|
-
extraReducers: (builder) => {
|
|
3285
|
-
builder.addCase(doOrganizationFetch.pending, (state) => {
|
|
3286
|
-
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
3287
|
-
});
|
|
3288
|
-
builder.addCase(doOrganizationFetch.fulfilled, (state, action) => {
|
|
3289
|
-
if (!action.payload)
|
|
3290
|
-
return Object.assign(Object.assign({}, state), { isFetching: true });
|
|
3291
|
-
return Object.assign(Object.assign({}, state), { isFetching: false, data: action.payload });
|
|
3292
|
-
});
|
|
3293
|
-
builder.addCase(doOrganizationFetch.rejected, (state) => {
|
|
3294
|
-
return Object.assign(Object.assign({}, state), { isFetching: false, error: true });
|
|
3295
|
-
});
|
|
3296
|
-
},
|
|
3297
|
-
});
|
|
3298
|
-
const doOrganizationFetch = createAppAsyncThunk("organization/doOrganizationFetch", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
3299
|
-
try {
|
|
3300
|
-
const roomUrl = selectAppRoomUrl(getState());
|
|
3301
|
-
const organization = yield extra.services.fetchOrganizationFromRoomUrl(roomUrl || "");
|
|
3302
|
-
if (!organization) {
|
|
3303
|
-
throw new Error("Invalid room url");
|
|
3304
|
-
}
|
|
3305
|
-
return organization;
|
|
3306
|
-
}
|
|
3307
|
-
catch (error) {
|
|
3308
|
-
console.error(error);
|
|
3309
|
-
}
|
|
3310
|
-
}));
|
|
3311
|
-
const selectOrganizationRaw = (state) => state.organization;
|
|
3312
|
-
const selectOrganizationId = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.organizationId; };
|
|
3313
|
-
const selectOrganizationPreferences = (state) => { var _a; return (_a = state.organization.data) === null || _a === void 0 ? void 0 : _a.preferences; };
|
|
3314
|
-
const selectShouldFetchOrganization = createSelector(selectAppIsActive, selectOrganizationRaw, selectDeviceCredentialsRaw, (appIsActive, organization, deviceCredentials) => {
|
|
3315
|
-
if (appIsActive &&
|
|
3316
|
-
!organization.data &&
|
|
3317
|
-
!organization.isFetching &&
|
|
3318
|
-
!organization.error &&
|
|
3319
|
-
!deviceCredentials.isFetching) {
|
|
3320
|
-
return true;
|
|
3321
|
-
}
|
|
3322
|
-
return false;
|
|
3323
|
-
});
|
|
3324
|
-
createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganization) => {
|
|
3325
|
-
if (shouldFetchOrganization) {
|
|
3326
|
-
dispatch(doOrganizationFetch());
|
|
3327
|
-
}
|
|
3328
|
-
});
|
|
3329
|
-
|
|
3330
|
-
const roomConnectionSliceInitialState = {
|
|
3331
|
-
session: null,
|
|
3332
|
-
status: "ready",
|
|
3333
|
-
error: null,
|
|
3334
|
-
knockResponse: null,
|
|
3335
|
-
};
|
|
3336
|
-
const roomConnectionSlice = createSlice({
|
|
3337
|
-
name: "roomConnection",
|
|
3338
|
-
initialState: roomConnectionSliceInitialState,
|
|
3339
|
-
reducers: {
|
|
3340
|
-
connectionStatusChanged: (state, action) => {
|
|
3341
|
-
return Object.assign(Object.assign({}, state), { status: action.payload });
|
|
3342
|
-
},
|
|
3343
|
-
knockResponseReceived: (state, action) => {
|
|
3344
|
-
return Object.assign(Object.assign({}, state), { knockResponse: action.payload });
|
|
3345
|
-
},
|
|
3346
|
-
},
|
|
3347
|
-
extraReducers: (builder) => {
|
|
3348
|
-
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
3349
|
-
var _a;
|
|
3350
|
-
if ("error" in action.payload) {
|
|
3351
|
-
if (action.payload.error === "room_locked" && action.payload.isLocked) {
|
|
3352
|
-
return Object.assign(Object.assign({}, state), { status: "room_locked" });
|
|
3353
|
-
}
|
|
3354
|
-
return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error });
|
|
3355
|
-
}
|
|
3356
|
-
const { room } = action.payload;
|
|
3357
|
-
return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null });
|
|
3358
|
-
});
|
|
3359
|
-
builder.addCase(signalEvents.disconnect, (state) => {
|
|
3360
|
-
if (["kicked", "left"].includes(state.status)) {
|
|
3361
|
-
return Object.assign({}, state);
|
|
3362
|
-
}
|
|
3363
|
-
return Object.assign(Object.assign({}, state), { status: "disconnected" });
|
|
3364
|
-
});
|
|
3365
|
-
builder.addCase(signalEvents.newClient, (state, action) => {
|
|
3366
|
-
var _a, _b;
|
|
3367
|
-
return Object.assign(Object.assign({}, state), { session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
|
|
3368
|
-
});
|
|
3369
|
-
builder.addCase(signalEvents.roomSessionEnded, (state, action) => {
|
|
3370
|
-
var _a;
|
|
3371
|
-
if (((_a = state.session) === null || _a === void 0 ? void 0 : _a.id) !== action.payload.roomSessionId) {
|
|
3372
|
-
return state;
|
|
3373
|
-
}
|
|
3374
|
-
return Object.assign(Object.assign({}, state), { session: null });
|
|
3375
|
-
});
|
|
3376
|
-
builder.addCase(signalEvents.clientKicked, (state) => {
|
|
3377
|
-
return Object.assign(Object.assign({}, state), { status: "kicked" });
|
|
3378
|
-
});
|
|
3379
|
-
builder.addCase(signalEvents.roomLeft, (state) => {
|
|
3380
|
-
return Object.assign(Object.assign({}, state), { status: "left" });
|
|
3381
|
-
});
|
|
3382
|
-
builder.addCase(socketReconnecting, (state) => {
|
|
3383
|
-
return Object.assign(Object.assign({}, state), { status: "reconnecting" });
|
|
3384
|
-
});
|
|
3385
|
-
},
|
|
3386
|
-
});
|
|
3387
|
-
const { connectionStatusChanged, knockResponseReceived } = roomConnectionSlice.actions;
|
|
3388
|
-
const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
3389
|
-
const state = getState();
|
|
3390
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3391
|
-
const roomName = selectAppRoomName(state);
|
|
3392
|
-
const roomKey = selectRoomKey(state);
|
|
3393
|
-
const displayName = selectAppDisplayName(state);
|
|
3394
|
-
const isDialIn = selectAppIsDialIn(state);
|
|
3395
|
-
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3396
|
-
const userAgent = selectAppUserAgent(state);
|
|
3397
|
-
const externalId = selectAppExternalId(state);
|
|
3398
|
-
const organizationId = selectOrganizationId(state);
|
|
3399
|
-
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3400
|
-
const clientClaim = selectLocalParticipantClientClaim(state);
|
|
3401
|
-
if (connectionStatus !== "room_locked") {
|
|
3402
|
-
console.warn("Room is not locked, knock aborted");
|
|
3403
|
-
return;
|
|
3404
|
-
}
|
|
3405
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("knock_room", Object.assign({ avatarUrl: null, config: {
|
|
3406
|
-
isAudioEnabled: true,
|
|
3407
|
-
isVideoEnabled: true,
|
|
3408
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3409
|
-
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3410
|
-
roomKey,
|
|
3411
|
-
roomName,
|
|
3412
|
-
userAgent,
|
|
3413
|
-
externalId }, (clientClaim && { clientClaim })));
|
|
3414
|
-
dispatch(connectionStatusChanged("knocking"));
|
|
3415
|
-
});
|
|
3416
|
-
const doCancelKnock = createAppThunk(() => (dispatch, getState) => {
|
|
3417
|
-
const state = getState();
|
|
3418
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3419
|
-
const connectionStatus = selectRoomConnectionStatus(state);
|
|
3420
|
-
if (connectionStatus !== "knocking") {
|
|
3421
|
-
console.warn("Not knocking, cancel knock aborted");
|
|
3422
|
-
return;
|
|
3423
|
-
}
|
|
3424
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("cancel_room_knock");
|
|
3425
|
-
dispatch(connectionStatusChanged("ready"));
|
|
3426
|
-
});
|
|
3427
|
-
const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
3428
|
-
const state = getState();
|
|
3429
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3430
|
-
const roomName = selectAppRoomName(state);
|
|
3431
|
-
const roomKey = selectRoomKey(state);
|
|
3432
|
-
const assistantKey = selectAssistantKey(state);
|
|
3433
|
-
const displayName = selectAppDisplayName(state);
|
|
3434
|
-
const userAgent = selectAppUserAgent(state);
|
|
3435
|
-
const externalId = selectAppExternalId(state);
|
|
3436
|
-
const isDialIn = selectAppIsDialIn(state);
|
|
3437
|
-
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3438
|
-
const organizationId = selectOrganizationId(state);
|
|
3439
|
-
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
3440
|
-
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
3441
|
-
const clientClaim = selectLocalParticipantClientClaim(getState());
|
|
3442
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
3443
|
-
isAudioEnabled: isMicrophoneEnabled,
|
|
3444
|
-
isVideoEnabled: isCameraEnabled,
|
|
3445
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3446
|
-
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3447
|
-
roomKey,
|
|
3448
|
-
assistantKey,
|
|
3449
|
-
roomName,
|
|
3450
|
-
userAgent,
|
|
3451
|
-
externalId }, (clientClaim && { clientClaim })));
|
|
3452
|
-
dispatch(connectionStatusChanged("connecting"));
|
|
3453
|
-
});
|
|
3454
|
-
const selectShouldConnectRoom = createSelector([
|
|
3455
|
-
selectAppIsActive,
|
|
3456
|
-
selectOrganizationId,
|
|
3457
|
-
selectRoomConnectionStatus,
|
|
3458
|
-
selectSignalConnectionDeviceIdentified,
|
|
3459
|
-
selectLocalMediaStatus,
|
|
3460
|
-
selectRoomConnectionError,
|
|
3461
|
-
], (appIsActive, hasOrganizationIdFetched, roomConnectionStatus, signalConnectionDeviceIdentified, localMediaStatus, roomConnectionError) => {
|
|
3462
|
-
if (appIsActive &&
|
|
3463
|
-
localMediaStatus === "started" &&
|
|
3464
|
-
signalConnectionDeviceIdentified &&
|
|
3465
|
-
!!hasOrganizationIdFetched &&
|
|
3466
|
-
["ready", "reconnecting", "disconnected"].includes(roomConnectionStatus) &&
|
|
3467
|
-
!roomConnectionError) {
|
|
3468
|
-
return true;
|
|
3469
|
-
}
|
|
3470
|
-
return false;
|
|
3471
|
-
});
|
|
3472
|
-
createReactor([selectShouldConnectRoom], ({ dispatch }, shouldConnectRoom) => {
|
|
3473
|
-
if (shouldConnectRoom) {
|
|
3474
|
-
dispatch(doConnectRoom());
|
|
3475
|
-
}
|
|
3476
|
-
});
|
|
3477
|
-
startAppListening({
|
|
3478
|
-
actionCreator: signalEvents.knockHandled,
|
|
3479
|
-
effect: ({ payload }, { dispatch, getState }) => {
|
|
3480
|
-
var _a, _b;
|
|
3481
|
-
const { clientId, resolution } = payload;
|
|
3482
|
-
const state = getState();
|
|
3483
|
-
const selfId = selectSelfId(state);
|
|
3484
|
-
if (clientId !== selfId) {
|
|
3485
|
-
return;
|
|
3486
|
-
}
|
|
3487
|
-
if (resolution === "accepted") {
|
|
3488
|
-
dispatch(setRoomKey(payload.metadata.roomKey));
|
|
3489
|
-
dispatch(doConnectRoom());
|
|
3490
|
-
}
|
|
3491
|
-
else if (resolution === "on_hold") {
|
|
3492
|
-
dispatch(knockResponseReceived((_a = payload.knockResponse) !== null && _a !== void 0 ? _a : null));
|
|
3493
|
-
dispatch(connectionStatusChanged("knock_on_hold"));
|
|
3494
|
-
}
|
|
3495
|
-
else if (resolution === "rejected") {
|
|
3496
|
-
dispatch(knockResponseReceived((_b = payload.knockResponse) !== null && _b !== void 0 ? _b : null));
|
|
3497
|
-
dispatch(connectionStatusChanged("knock_rejected"));
|
|
3498
|
-
}
|
|
3499
|
-
},
|
|
3500
|
-
});
|
|
3501
|
-
startAppListening({
|
|
3502
|
-
actionCreator: signalEvents.clientKicked,
|
|
3503
|
-
effect: (_, { dispatch }) => {
|
|
3504
|
-
dispatch(doAppStop());
|
|
3505
|
-
},
|
|
3506
|
-
});
|
|
3507
|
-
startAppListening({
|
|
3508
|
-
actionCreator: doAppStop,
|
|
3509
|
-
effect: (_, { dispatch, getState }) => {
|
|
3510
|
-
const state = getState();
|
|
3511
|
-
const roomConnectionStatus = selectRoomConnectionStatus(state);
|
|
3512
|
-
if (roomConnectionStatus === "connected") {
|
|
3513
|
-
const socket = selectSignalConnectionRaw(state).socket;
|
|
3514
|
-
socket === null || socket === void 0 ? void 0 : socket.emit("leave_room");
|
|
3515
|
-
dispatch(connectionStatusChanged("leaving"));
|
|
3516
|
-
}
|
|
3517
|
-
else {
|
|
3518
|
-
doSignalDisconnect();
|
|
3519
|
-
}
|
|
3520
|
-
},
|
|
3521
|
-
});
|
|
3522
|
-
|
|
3523
3565
|
function roomIntegrationContentTagName(integrationName) {
|
|
3524
3566
|
return `${integrationName}-integration-contentframe`;
|
|
3525
3567
|
}
|
|
@@ -5316,4 +5358,4 @@ function createServices() {
|
|
|
5316
5358
|
};
|
|
5317
5359
|
}
|
|
5318
5360
|
|
|
5319
|
-
export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, DEFAULT_BREAKOUT_TIMER_DURATION, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, 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, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomMode, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomIntegrationsError, 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 };
|
|
5361
|
+
export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, DEFAULT_BREAKOUT_TIMER_DURATION, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomRejoined, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, 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, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomMode, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomIntegrationsError, 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 };
|