@100mslive/roomkit-react 0.1.6-alpha.1 → 0.1.6-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-HNVYG5VE.js → HLSView-QMU5JK7U.js} +3 -3
- package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +1 -3
- package/dist/Prebuilt/components/SidePaneTabs.d.ts +7 -0
- package/dist/{VirtualBackground-UM2FOUHQ.js → VirtualBackground-37FXUPYO.js} +6 -6
- package/dist/VirtualBackground-37FXUPYO.js.map +7 -0
- package/dist/{chunk-POE7H4IE.js → chunk-KBVIZGYW.js} +2 -2
- package/dist/{chunk-POE7H4IE.js.map → chunk-KBVIZGYW.js.map} +1 -1
- package/dist/{chunk-LYSAET4G.js → chunk-WVGGQZK4.js} +100 -106
- package/dist/{chunk-LYSAET4G.js.map → chunk-WVGGQZK4.js.map} +3 -3
- package/dist/{chunk-364HP22I.js → chunk-ZKE2N5LH.js} +2 -2
- package/dist/{conference-UWLJHMB2.js → conference-FJJQ4TXX.js} +419 -384
- package/dist/conference-FJJQ4TXX.js.map +7 -0
- package/dist/index.cjs.js +594 -570
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +2 -2
- package/dist/meta.cjs.json +127 -127
- package/dist/meta.esbuild.json +161 -160
- package/package.json +6 -6
- package/src/Prebuilt/components/Chat/Chat.jsx +2 -6
- package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -9
- package/src/Prebuilt/components/Footer/Footer.tsx +22 -6
- package/src/Prebuilt/components/Footer/ParticipantList.jsx +0 -2
- package/src/Prebuilt/components/Header/HeaderComponents.jsx +8 -1
- package/src/Prebuilt/components/InsetTile.tsx +1 -0
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.jsx +14 -7
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +2 -3
- package/src/Prebuilt/components/RoleChangeRequestModal.tsx +6 -4
- package/src/Prebuilt/components/SidePaneTabs.tsx +120 -0
- package/src/Prebuilt/components/hooks/useMetadata.jsx +7 -25
- package/src/Prebuilt/layouts/SidePane.tsx +12 -10
- package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +3 -3
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts +2 -2
- package/dist/VirtualBackground-UM2FOUHQ.js.map +0 -7
- package/dist/conference-UWLJHMB2.js.map +0 -7
- package/src/Prebuilt/components/Chat/ChatParticipantHeader.jsx +0 -84
- /package/dist/{HLSView-HNVYG5VE.js.map → HLSView-QMU5JK7U.js.map} +0 -0
- /package/dist/{chunk-364HP22I.js.map → chunk-ZKE2N5LH.js.map} +0 -0
@@ -35,7 +35,7 @@ import {
|
|
35
35
|
textEllipsis,
|
36
36
|
theme,
|
37
37
|
toastAnimation
|
38
|
-
} from "./chunk-
|
38
|
+
} from "./chunk-KBVIZGYW.js";
|
39
39
|
|
40
40
|
// src/Button/Button.tsx
|
41
41
|
import React2 from "react";
|
@@ -1990,7 +1990,7 @@ var Collapsible = {
|
|
1990
1990
|
};
|
1991
1991
|
|
1992
1992
|
// src/Prebuilt/App.tsx
|
1993
|
-
import React61, { Suspense as Suspense2, useEffect as
|
1993
|
+
import React61, { Suspense as Suspense2, useEffect as useEffect29, useRef as useRef10 } from "react";
|
1994
1994
|
import { BrowserRouter, MemoryRouter, Navigate, Route, Routes, useParams as useParams5 } from "react-router-dom";
|
1995
1995
|
import {
|
1996
1996
|
HMSReactiveStore,
|
@@ -2951,10 +2951,12 @@ import { useNavigate as useNavigate2, useParams as useParams2 } from "react-rout
|
|
2951
2951
|
import {
|
2952
2952
|
HMSNotificationTypes as HMSNotificationTypes7,
|
2953
2953
|
HMSRoomState as HMSRoomState3,
|
2954
|
+
selectPeerMetadata,
|
2954
2955
|
selectRoomState as selectRoomState3,
|
2955
2956
|
useCustomEvent,
|
2956
2957
|
useHMSNotifications as useHMSNotifications7,
|
2957
|
-
useHMSStore as useHMSStore8
|
2958
|
+
useHMSStore as useHMSStore8,
|
2959
|
+
useHMSVanillaStore as useHMSVanillaStore4
|
2958
2960
|
} from "@100mslive/react-sdk";
|
2959
2961
|
|
2960
2962
|
// src/Prebuilt/provider/roomLayoutProvider/index.tsx
|
@@ -3027,7 +3029,7 @@ var fetchWithRetry = (..._0) => __async(void 0, [..._0], function* (url = "", op
|
|
3027
3029
|
throw error;
|
3028
3030
|
});
|
3029
3031
|
var useFetchRoomLayout = ({
|
3030
|
-
endpoint = "
|
3032
|
+
endpoint = "",
|
3031
3033
|
authToken = ""
|
3032
3034
|
}) => {
|
3033
3035
|
const [layout, setLayout] = useState5(void 0);
|
@@ -3051,7 +3053,7 @@ var useFetchRoomLayout = ({
|
|
3051
3053
|
}
|
3052
3054
|
isFetchInProgress.current = true;
|
3053
3055
|
try {
|
3054
|
-
const resp = yield fetchWithRetry(endpoint, {
|
3056
|
+
const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
|
3055
3057
|
headers: {
|
3056
3058
|
Authorization: `Bearer ${authToken}`
|
3057
3059
|
}
|
@@ -4183,6 +4185,7 @@ function Notifications() {
|
|
4183
4185
|
const notification = useHMSNotifications7();
|
4184
4186
|
const navigate = useNavigate2();
|
4185
4187
|
const params = useParams2();
|
4188
|
+
const vanillaStore = useHMSVanillaStore4();
|
4186
4189
|
const subscribedNotifications = useSubscribedNotifications() || {};
|
4187
4190
|
const roomState = useHMSStore8(selectRoomState3);
|
4188
4191
|
const updateRoomLayoutForRole = useUpdateRoomLayout();
|
@@ -4196,7 +4199,7 @@ function Notifications() {
|
|
4196
4199
|
}, []);
|
4197
4200
|
useCustomEvent({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
4198
4201
|
useEffect16(() => {
|
4199
|
-
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
4202
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
4200
4203
|
if (!notification || isNotificationDisabled) {
|
4201
4204
|
return;
|
4202
4205
|
}
|
@@ -4254,20 +4257,24 @@ function Notifications() {
|
|
4254
4257
|
title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
|
4255
4258
|
});
|
4256
4259
|
break;
|
4257
|
-
case HMSNotificationTypes7.ROLE_UPDATED:
|
4260
|
+
case HMSNotificationTypes7.ROLE_UPDATED: {
|
4258
4261
|
if ((_m = notification.data) == null ? void 0 : _m.isLocal) {
|
4259
|
-
|
4260
|
-
|
4261
|
-
|
4262
|
-
|
4262
|
+
const { prevRole } = vanillaStore.getState(selectPeerMetadata((_n = notification.data) == null ? void 0 : _n.id));
|
4263
|
+
if (prevRole !== ((_o = notification == null ? void 0 : notification.data) == null ? void 0 : _o.roleName)) {
|
4264
|
+
ToastManager.addToast({
|
4265
|
+
title: `You are now a ${notification.data.roleName}`
|
4266
|
+
});
|
4267
|
+
updateRoomLayoutForRole(notification.data.roleName);
|
4268
|
+
}
|
4263
4269
|
}
|
4264
4270
|
break;
|
4271
|
+
}
|
4265
4272
|
case HMSNotificationTypes7.CHANGE_TRACK_STATE_REQUEST:
|
4266
|
-
const track = (
|
4273
|
+
const track = (_p = notification.data) == null ? void 0 : _p.track;
|
4267
4274
|
if (!notification.data.enabled) {
|
4268
4275
|
ToastManager.addToast({
|
4269
4276
|
title: `Your ${track.source} ${track.type} was muted by
|
4270
|
-
${(
|
4277
|
+
${(_q = notification.data.requestedBy) == null ? void 0 : _q.name}.`
|
4271
4278
|
});
|
4272
4279
|
}
|
4273
4280
|
break;
|
@@ -4305,7 +4312,7 @@ import { useMedia as useMedia4 } from "react-use";
|
|
4305
4312
|
import { HMSRoomState as HMSRoomState5, selectRoomState as selectRoomState5, useHMSStore as useHMSStore17 } from "@100mslive/react-sdk";
|
4306
4313
|
|
4307
4314
|
// src/Prebuilt/components/Header/HeaderComponents.jsx
|
4308
|
-
import React31, { useState as useState11 } from "react";
|
4315
|
+
import React31, { useEffect as useEffect17, useState as useState11 } from "react";
|
4309
4316
|
import { useMedia as useMedia2 } from "react-use";
|
4310
4317
|
import { selectDominantSpeaker, selectIsConnectedToRoom as selectIsConnectedToRoom2, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
|
4311
4318
|
import { VolumeOneIcon } from "@100mslive/react-icons";
|
@@ -4338,6 +4345,11 @@ var Logo = () => {
|
|
4338
4345
|
const isMobile = useMedia2(config.media.md);
|
4339
4346
|
const isConnected = useHMSStore9(selectIsConnectedToRoom2);
|
4340
4347
|
const [hideImage, setHideImage] = useState11(false);
|
4348
|
+
useEffect17(() => {
|
4349
|
+
if (hideImage) {
|
4350
|
+
setHideImage(false);
|
4351
|
+
}
|
4352
|
+
}, [logo]);
|
4341
4353
|
if (isConnected && isMobile) {
|
4342
4354
|
return null;
|
4343
4355
|
}
|
@@ -4355,7 +4367,7 @@ var Logo = () => {
|
|
4355
4367
|
};
|
4356
4368
|
|
4357
4369
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
4358
|
-
import React34, { useCallback as useCallback13, useEffect as
|
4370
|
+
import React34, { useCallback as useCallback13, useEffect as useEffect19, useRef as useRef5, useState as useState13 } from "react";
|
4359
4371
|
import { useMedia as useMedia3 } from "react-use";
|
4360
4372
|
import {
|
4361
4373
|
HMSRoomState as HMSRoomState4,
|
@@ -4467,7 +4479,7 @@ var Sheet = {
|
|
4467
4479
|
};
|
4468
4480
|
|
4469
4481
|
// src/Prebuilt/components/Header/AdditionalRoomState.jsx
|
4470
|
-
import React33, { useState as
|
4482
|
+
import React33, { useState as useState12 } from "react";
|
4471
4483
|
import { selectLocalPeerID as selectLocalPeerID3, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore14, useScreenShare } from "@100mslive/react-sdk";
|
4472
4484
|
import {
|
4473
4485
|
AudioPlayerIcon,
|
@@ -4480,28 +4492,26 @@ import {
|
|
4480
4492
|
} from "@100mslive/react-icons";
|
4481
4493
|
|
4482
4494
|
// src/Prebuilt/plugins/whiteboard/useWhiteboardMetadata.js
|
4483
|
-
import { useCallback as useCallback10, useEffect as
|
4495
|
+
import { useCallback as useCallback10, useEffect as useEffect18, useMemo as useMemo2 } from "react";
|
4484
4496
|
import { selectLocalPeerID as selectLocalPeerID2, selectPeerByCondition, useHMSStore as useHMSStore11 } from "@100mslive/react-sdk";
|
4485
4497
|
|
4486
4498
|
// src/Prebuilt/components/hooks/useMetadata.jsx
|
4487
|
-
import { useCallback as useCallback9
|
4499
|
+
import { useCallback as useCallback9 } from "react";
|
4488
4500
|
import {
|
4489
4501
|
selectLocalPeerID,
|
4490
|
-
selectPeerMetadata,
|
4502
|
+
selectPeerMetadata as selectPeerMetadata2,
|
4491
4503
|
useHMSActions as useHMSActions9,
|
4492
4504
|
useHMSStore as useHMSStore10,
|
4493
|
-
useHMSVanillaStore as
|
4505
|
+
useHMSVanillaStore as useHMSVanillaStore5
|
4494
4506
|
} from "@100mslive/react-sdk";
|
4495
4507
|
var useMyMetadata = () => {
|
4496
4508
|
const hmsActions = useHMSActions9();
|
4497
4509
|
const localPeerId = useHMSStore10(selectLocalPeerID);
|
4498
|
-
const vanillaStore =
|
4499
|
-
const metaData = useHMSStore10(
|
4500
|
-
const [isHandRaised, setHandRaised] = useState12((metaData == null ? void 0 : metaData.isHandRaised) || false);
|
4501
|
-
const [isBRBOn, setBRBOn] = useState12((metaData == null ? void 0 : metaData.isBRBOn) || false);
|
4510
|
+
const vanillaStore = useHMSVanillaStore5();
|
4511
|
+
const metaData = useHMSStore10(selectPeerMetadata2(localPeerId));
|
4502
4512
|
const update = (updatedFields) => __async(void 0, null, function* () {
|
4503
4513
|
try {
|
4504
|
-
const currentMetadata = vanillaStore.getState(
|
4514
|
+
const currentMetadata = vanillaStore.getState(selectPeerMetadata2(localPeerId));
|
4505
4515
|
yield hmsActions.changeMetadata(Object.assign(currentMetadata, updatedFields));
|
4506
4516
|
return true;
|
4507
4517
|
} catch (error) {
|
@@ -4509,35 +4519,19 @@ var useMyMetadata = () => {
|
|
4509
4519
|
}
|
4510
4520
|
});
|
4511
4521
|
const toggleHandRaise = useCallback9(() => __async(void 0, null, function* () {
|
4512
|
-
|
4513
|
-
|
4514
|
-
isHandRaised: !isHandRaised,
|
4515
|
-
isBRBOn: brbUpdate
|
4516
|
-
});
|
4517
|
-
if (success) {
|
4518
|
-
setBRBOn(brbUpdate);
|
4519
|
-
setHandRaised(!isHandRaised);
|
4520
|
-
}
|
4521
|
-
}), [isHandRaised, isBRBOn]);
|
4522
|
+
yield update({ isHandRaised: !(metaData == null ? void 0 : metaData.isHandRaised), isBRBOn: false });
|
4523
|
+
}), [metaData == null ? void 0 : metaData.isHandRaised]);
|
4522
4524
|
const toggleBRB = useCallback9(() => __async(void 0, null, function* () {
|
4523
|
-
|
4524
|
-
|
4525
|
-
isHandRaised: handRaiseUpdate,
|
4526
|
-
isBRBOn: !isBRBOn
|
4527
|
-
});
|
4528
|
-
if (success) {
|
4529
|
-
setBRBOn(!isBRBOn);
|
4530
|
-
setHandRaised(handRaiseUpdate);
|
4531
|
-
}
|
4532
|
-
}), [isHandRaised, isBRBOn]);
|
4525
|
+
yield update({ isBRBOn: !(metaData == null ? void 0 : metaData.isBRBOn), isHandRaised: false });
|
4526
|
+
}), [metaData == null ? void 0 : metaData.isBRBOn]);
|
4533
4527
|
const setPrevRole = (role) => __async(void 0, null, function* () {
|
4534
4528
|
yield update({
|
4535
4529
|
prevRole: role
|
4536
4530
|
});
|
4537
4531
|
});
|
4538
4532
|
return {
|
4539
|
-
isHandRaised,
|
4540
|
-
isBRBOn,
|
4533
|
+
isHandRaised: !!(metaData == null ? void 0 : metaData.isHandRaised),
|
4534
|
+
isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
|
4541
4535
|
metaData,
|
4542
4536
|
updateMetaData: update,
|
4543
4537
|
toggleHandRaise,
|
@@ -4569,7 +4563,7 @@ var useWhiteboardMetadata = () => {
|
|
4569
4563
|
console.error("failed to toggle whiteboard to ", !whiteboardOwner, error);
|
4570
4564
|
}
|
4571
4565
|
}), [whiteboardOwner, updateMetaData, amIWhiteboardOwner]);
|
4572
|
-
|
4566
|
+
useEffect18(() => {
|
4573
4567
|
window.toggleWhiteboard = toggleWhiteboard;
|
4574
4568
|
}, [toggleWhiteboard]);
|
4575
4569
|
return {
|
@@ -4662,7 +4656,7 @@ var AdditionalRoomState = () => {
|
|
4662
4656
|
const playlist = usePlaylistMusic();
|
4663
4657
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
4664
4658
|
const screenshareAudio = useScreenshareAudio();
|
4665
|
-
const [open, setOpen] =
|
4659
|
+
const [open, setOpen] = useState12(false);
|
4666
4660
|
const isPlaylistInactive = [
|
4667
4661
|
!playlist.peer || !playlist.track,
|
4668
4662
|
!((_a7 = playlist.peer) == null ? void 0 : _a7.isLocal) && !((_b7 = playlist.track) == null ? void 0 : _b7.enabled),
|
@@ -4756,7 +4750,7 @@ var LiveStatus = () => {
|
|
4756
4750
|
const hlsState = useHMSStore15(selectHLSState2);
|
4757
4751
|
const isMobile = useMedia3(config.media.md);
|
4758
4752
|
const intervalRef = useRef5(null);
|
4759
|
-
const [liveTime, setLiveTime] =
|
4753
|
+
const [liveTime, setLiveTime] = useState13(0);
|
4760
4754
|
const startTimer = useCallback13(() => {
|
4761
4755
|
intervalRef.current = setInterval(() => {
|
4762
4756
|
var _a8;
|
@@ -4765,7 +4759,7 @@ var LiveStatus = () => {
|
|
4765
4759
|
}
|
4766
4760
|
}, 1e3);
|
4767
4761
|
}, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants]);
|
4768
|
-
|
4762
|
+
useEffect19(() => {
|
4769
4763
|
if (hlsState == null ? void 0 : hlsState.running) {
|
4770
4764
|
startTimer();
|
4771
4765
|
}
|
@@ -4832,7 +4826,7 @@ var RecordingStatus = () => {
|
|
4832
4826
|
};
|
4833
4827
|
var StartRecording = () => {
|
4834
4828
|
const permissions = useHMSStore15(selectPermissions);
|
4835
|
-
const [open, setOpen] =
|
4829
|
+
const [open, setOpen] = useState13(false);
|
4836
4830
|
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
4837
4831
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming2();
|
4838
4832
|
const hmsActions = useHMSActions12();
|
@@ -5130,7 +5124,7 @@ import { useNavigate as useNavigate4, useParams as useParams4 } from "react-rout
|
|
5130
5124
|
import { useSearchParam } from "react-use";
|
5131
5125
|
|
5132
5126
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
5133
|
-
import React55, { Fragment as Fragment6, Suspense, useCallback as useCallback17, useEffect as
|
5127
|
+
import React55, { Fragment as Fragment6, Suspense, useCallback as useCallback17, useEffect as useEffect24, useState as useState19 } from "react";
|
5134
5128
|
import { useMedia as useMedia10 } from "react-use";
|
5135
5129
|
import {
|
5136
5130
|
HMSRoomState as HMSRoomState7,
|
@@ -5539,7 +5533,7 @@ var Wrapper2 = styled("div", {
|
|
5539
5533
|
var TileConnection_default = TileConnection;
|
5540
5534
|
|
5541
5535
|
// src/Prebuilt/components/Settings/SettingsModal.jsx
|
5542
|
-
import React48, { useCallback as useCallback15, useEffect as
|
5536
|
+
import React48, { useCallback as useCallback15, useEffect as useEffect21, useState as useState15 } from "react";
|
5543
5537
|
import { useMedia as useMedia5 } from "react-use";
|
5544
5538
|
import { ChevronLeftIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
|
5545
5539
|
|
@@ -5547,7 +5541,7 @@ import { ChevronLeftIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons
|
|
5547
5541
|
import { GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
|
5548
5542
|
|
5549
5543
|
// src/Prebuilt/components/Settings/DeviceSettings.jsx
|
5550
|
-
import React44, { Fragment as Fragment3, useEffect as
|
5544
|
+
import React44, { Fragment as Fragment3, useEffect as useEffect20, useRef as useRef6, useState as useState14 } from "react";
|
5551
5545
|
import {
|
5552
5546
|
DeviceType as DeviceType3,
|
5553
5547
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled3,
|
@@ -5677,7 +5671,7 @@ var Settings = ({ setHide }) => {
|
|
5677
5671
|
};
|
5678
5672
|
var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
|
5679
5673
|
var _a7, _b7;
|
5680
|
-
const [open, setOpen] =
|
5674
|
+
const [open, setOpen] = useState14(false);
|
5681
5675
|
const selectionBg = useDropdownSelection();
|
5682
5676
|
const ref = useRef6(null);
|
5683
5677
|
return /* @__PURE__ */ React44.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React44.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React44.createElement(
|
@@ -5735,8 +5729,8 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
|
|
5735
5729
|
var TEST_AUDIO_URL = "https://100ms.live/test-audio.wav";
|
5736
5730
|
var TestAudio = ({ id }) => {
|
5737
5731
|
const audioRef = useRef6(null);
|
5738
|
-
const [playing, setPlaying] =
|
5739
|
-
|
5732
|
+
const [playing, setPlaying] = useState14(false);
|
5733
|
+
useEffect20(() => {
|
5740
5734
|
if (audioRef.current && id) {
|
5741
5735
|
try {
|
5742
5736
|
if (typeof audioRef.current.setSinkId !== "undefined") {
|
@@ -5951,26 +5945,26 @@ var settingsList = [
|
|
5951
5945
|
var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React48.createElement(React48.Fragment, null) }) => {
|
5952
5946
|
const mediaQueryLg = config.media.md;
|
5953
5947
|
const isMobile = useMedia5(mediaQueryLg);
|
5954
|
-
const [showSetting, setShowSetting] =
|
5948
|
+
const [showSetting, setShowSetting] = useState15(
|
5955
5949
|
() => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
|
5956
5950
|
);
|
5957
5951
|
const hideSettingByTabName = useCallback15(
|
5958
5952
|
(key) => (hide) => setShowSetting((prev) => __spreadProps(__spreadValues({}, prev), { [key]: !hide })),
|
5959
5953
|
[setShowSetting]
|
5960
5954
|
);
|
5961
|
-
|
5955
|
+
useEffect21(() => {
|
5962
5956
|
if (screenType === "hls_live_streaming") {
|
5963
5957
|
hideSettingByTabName("layout")(true);
|
5964
5958
|
}
|
5965
5959
|
}, [screenType, hideSettingByTabName]);
|
5966
|
-
const [selection, setSelection] =
|
5960
|
+
const [selection, setSelection] = useState15(() => {
|
5967
5961
|
var _a7;
|
5968
5962
|
return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
|
5969
5963
|
});
|
5970
5964
|
const resetSelection = useCallback15(() => {
|
5971
5965
|
setSelection("");
|
5972
5966
|
}, []);
|
5973
|
-
|
5967
|
+
useEffect21(() => {
|
5974
5968
|
var _a7;
|
5975
5969
|
if (isMobile) {
|
5976
5970
|
setSelection("");
|
@@ -6151,24 +6145,24 @@ var SettingsContentHeader = ({ children, isMobile, onBack }) => {
|
|
6151
6145
|
var SettingsModal_default = SettingsModal;
|
6152
6146
|
|
6153
6147
|
// src/Prebuilt/components/VideoTile.jsx
|
6154
|
-
import React53, { Fragment as Fragment5, useCallback as useCallback16, useEffect as
|
6148
|
+
import React53, { Fragment as Fragment5, useCallback as useCallback16, useEffect as useEffect23, useMemo as useMemo3, useRef as useRef7, useState as useState18 } from "react";
|
6155
6149
|
import {
|
6156
6150
|
selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
|
6157
6151
|
selectIsPeerAudioEnabled,
|
6158
6152
|
selectLocalPeerID as selectLocalPeerID5,
|
6159
|
-
selectPeerMetadata as
|
6153
|
+
selectPeerMetadata as selectPeerMetadata3,
|
6160
6154
|
selectPeerNameByID,
|
6161
6155
|
selectSessionStore as selectSessionStore3,
|
6162
6156
|
selectTrackAudioByID,
|
6163
6157
|
selectVideoTrackByID as selectVideoTrackByID4,
|
6164
6158
|
selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
|
6165
6159
|
useHMSStore as useHMSStore25,
|
6166
|
-
useHMSVanillaStore as
|
6160
|
+
useHMSVanillaStore as useHMSVanillaStore6
|
6167
6161
|
} from "@100mslive/react-sdk";
|
6168
6162
|
import { BrbTileIcon, HandIcon as HandIcon3, MicOffIcon as MicOffIcon3 } from "@100mslive/react-icons";
|
6169
6163
|
|
6170
6164
|
// src/Prebuilt/components/TileMenu/TileMenu.jsx
|
6171
|
-
import React52, { useState as
|
6165
|
+
import React52, { useState as useState17 } from "react";
|
6172
6166
|
import { useMedia as useMedia8 } from "react-use";
|
6173
6167
|
import {
|
6174
6168
|
selectLocalPeerID as selectLocalPeerID4,
|
@@ -6182,7 +6176,7 @@ import {
|
|
6182
6176
|
import { CrossIcon as CrossIcon8, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
6183
6177
|
|
6184
6178
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx
|
6185
|
-
import React50, { useState as
|
6179
|
+
import React50, { useState as useState16 } from "react";
|
6186
6180
|
import { useMedia as useMedia6 } from "react-use";
|
6187
6181
|
import { selectLocalPeerName, useHMSActions as useHMSActions16, useHMSStore as useHMSStore22 } from "@100mslive/react-sdk";
|
6188
6182
|
|
@@ -6297,7 +6291,7 @@ var ChangeNameModal = ({ onOpenChange, openParentSheet = null }) => {
|
|
6297
6291
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
6298
6292
|
const hmsActions = useHMSActions16();
|
6299
6293
|
const localPeerName = useHMSStore22(selectLocalPeerName);
|
6300
|
-
const [currentName, setCurrentName] =
|
6294
|
+
const [currentName, setCurrentName] = useState16(localPeerName);
|
6301
6295
|
const isMobile = useMedia6(config.media.md);
|
6302
6296
|
const changeName = () => __async(void 0, null, function* () {
|
6303
6297
|
const name = currentName.trim();
|
@@ -6567,10 +6561,10 @@ var TileMenuContent = (props) => {
|
|
6567
6561
|
};
|
6568
6562
|
|
6569
6563
|
// src/Prebuilt/components/hooks/useDropdownList.jsx
|
6570
|
-
import { useEffect as
|
6564
|
+
import { useEffect as useEffect22 } from "react";
|
6571
6565
|
var useDropdownList = ({ name, open }) => {
|
6572
6566
|
const [dropdownList = [], setDropdownList] = useSetAppDataByKey(APP_DATA.dropdownList);
|
6573
|
-
|
6567
|
+
useEffect22(() => {
|
6574
6568
|
if (open) {
|
6575
6569
|
if (!dropdownList.includes(name)) {
|
6576
6570
|
setDropdownList([...dropdownList, name]);
|
@@ -6596,7 +6590,7 @@ var TileMenu = ({
|
|
6596
6590
|
enableSpotlightingPeer = true
|
6597
6591
|
}) => {
|
6598
6592
|
var _a7, _b7;
|
6599
|
-
const [open, setOpen] =
|
6593
|
+
const [open, setOpen] = useState17(false);
|
6600
6594
|
const { theme: theme2 } = useTheme();
|
6601
6595
|
const localPeerID = useHMSStore24(selectLocalPeerID4);
|
6602
6596
|
const isLocal = localPeerID === peerID;
|
@@ -6609,7 +6603,7 @@ var TileMenu = ({
|
|
6609
6603
|
const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
|
6610
6604
|
const isMobile = useMedia8(config.media.md);
|
6611
6605
|
const peer = useHMSStore24(selectPeerByID2(peerID));
|
6612
|
-
const [showNameChangeModal, setShowNameChangeModal] =
|
6606
|
+
const [showNameChangeModal, setShowNameChangeModal] = useState17(false);
|
6613
6607
|
useDropdownList({ open, name: "TileMenu" });
|
6614
6608
|
if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
|
6615
6609
|
return null;
|
@@ -6708,7 +6702,7 @@ var Tile = ({
|
|
6708
6702
|
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
6709
6703
|
const isAudioMuted = !useHMSStore25(selectIsPeerAudioEnabled(peerId));
|
6710
6704
|
const isVideoMuted = !(track == null ? void 0 : track.enabled);
|
6711
|
-
const [isMouseHovered, setIsMouseHovered] =
|
6705
|
+
const [isMouseHovered, setIsMouseHovered] = useState18(false);
|
6712
6706
|
const isVideoDegraded = track == null ? void 0 : track.degraded;
|
6713
6707
|
const isLocal = localPeerID === peerId;
|
6714
6708
|
const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
|
@@ -6816,9 +6810,9 @@ var heightAnimation = (value) => keyframes({
|
|
6816
6810
|
}
|
6817
6811
|
});
|
6818
6812
|
var AudioLevelIndicator = ({ trackId, value, delay }) => {
|
6819
|
-
const vanillaStore =
|
6813
|
+
const vanillaStore = useHMSVanillaStore6();
|
6820
6814
|
const ref = useRef7();
|
6821
|
-
|
6815
|
+
useEffect23(() => {
|
6822
6816
|
const unsubscribe = vanillaStore.subscribe((audioLevel) => {
|
6823
6817
|
if (ref.current) {
|
6824
6818
|
ref.current.style["animation"] = `${heightAnimation(
|
@@ -6845,7 +6839,7 @@ var AudioLevel = ({ trackId }) => {
|
|
6845
6839
|
return /* @__PURE__ */ React53.createElement(StyledVideoTile.AudioIndicator, null, /* @__PURE__ */ React53.createElement(Flex, { align: "center", justify: "center", css: { gap: "$2" } }, [3, 2, 3].map((v, i) => /* @__PURE__ */ React53.createElement(AudioLevelIndicator, { trackId, value: v, delay: i * 0.15, key: i }))));
|
6846
6840
|
};
|
6847
6841
|
var PeerMetadata = ({ peerId }) => {
|
6848
|
-
const metaData = useHMSStore25(
|
6842
|
+
const metaData = useHMSStore25(selectPeerMetadata3(peerId));
|
6849
6843
|
const isHandRaised = (metaData == null ? void 0 : metaData.isHandRaised) || false;
|
6850
6844
|
const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
|
6851
6845
|
return /* @__PURE__ */ React53.createElement(Fragment5, null, isHandRaised ? /* @__PURE__ */ React53.createElement(StyledVideoTile.AttributeBox, { css: metaStyles, "data-testid": "raiseHand_icon_onTile" }, /* @__PURE__ */ React53.createElement(HandIcon3, { width: 24, height: 24 })) : null, isBRB ? /* @__PURE__ */ React53.createElement(StyledVideoTile.AttributeBox, { css: metaStyles, "data-testid": "brb_icon_onTile" }, /* @__PURE__ */ React53.createElement(BrbTileIcon, { width: 22, height: 22 })) : null);
|
@@ -6921,7 +6915,7 @@ var Form = styled("form", {
|
|
6921
6915
|
var PreviewForm_default = PreviewForm;
|
6922
6916
|
|
6923
6917
|
// src/Prebuilt/components/Preview/PreviewJoin.tsx
|
6924
|
-
var VirtualBackground = React55.lazy(() => import("./VirtualBackground-
|
6918
|
+
var VirtualBackground = React55.lazy(() => import("./VirtualBackground-37FXUPYO.js"));
|
6925
6919
|
var getParticipantChipContent = (peerCount = 0) => {
|
6926
6920
|
if (peerCount === 0) {
|
6927
6921
|
return "You are the first to join";
|
@@ -6942,9 +6936,9 @@ var PreviewJoin = ({
|
|
6942
6936
|
);
|
6943
6937
|
const { isStreamingOn } = useRecordingStreaming4();
|
6944
6938
|
const authToken = useAuthToken();
|
6945
|
-
const [name, setName] =
|
6939
|
+
const [name, setName] = useState19(initialName || previewPreference.name);
|
6946
6940
|
const { toggleAudio, toggleVideo } = useAVToggle2();
|
6947
|
-
const [previewError, setPreviewError] =
|
6941
|
+
const [previewError, setPreviewError] = useState19(false);
|
6948
6942
|
const { endpoints } = useHMSPrebuiltContext();
|
6949
6943
|
const { peerCount } = useParticipants();
|
6950
6944
|
const { enableJoin, preview, join } = usePreviewJoin({
|
@@ -6974,7 +6968,7 @@ var PreviewJoin = ({
|
|
6974
6968
|
}, [join, name, setPreviewPreference, onJoin]);
|
6975
6969
|
const roomLayout = useRoomLayout();
|
6976
6970
|
const { preview_header: previewHeader = {} } = ((_c = (_b7 = (_a7 = roomLayout == null ? void 0 : roomLayout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
|
6977
|
-
|
6971
|
+
useEffect24(() => {
|
6978
6972
|
if (authToken) {
|
6979
6973
|
if (skipPreview) {
|
6980
6974
|
savePreferenceAndJoin();
|
@@ -6983,7 +6977,7 @@ var PreviewJoin = ({
|
|
6983
6977
|
}
|
6984
6978
|
}
|
6985
6979
|
}, [authToken, skipPreview]);
|
6986
|
-
|
6980
|
+
useEffect24(() => {
|
6987
6981
|
if (initialName) {
|
6988
6982
|
setName(initialName);
|
6989
6983
|
}
|
@@ -7080,7 +7074,6 @@ var PreviewTile = ({ name, error }) => {
|
|
7080
7074
|
);
|
7081
7075
|
};
|
7082
7076
|
var PreviewControls = ({ hideSettings }) => {
|
7083
|
-
const isVideoOn = useHMSStore26(selectIsLocalVideoEnabled5);
|
7084
7077
|
const isMobile = useMedia10(config.media.md);
|
7085
7078
|
return /* @__PURE__ */ React55.createElement(
|
7086
7079
|
Flex,
|
@@ -7091,12 +7084,12 @@ var PreviewControls = ({ hideSettings }) => {
|
|
7091
7084
|
mt: "$8"
|
7092
7085
|
}
|
7093
7086
|
},
|
7094
|
-
/* @__PURE__ */ React55.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(AudioVideoToggle,
|
7087
|
+
/* @__PURE__ */ React55.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(AudioVideoToggle, null), /* @__PURE__ */ React55.createElement(Suspense, { fallback: "" }, !isMobile ? /* @__PURE__ */ React55.createElement(VirtualBackground, null) : null)),
|
7095
7088
|
!hideSettings ? /* @__PURE__ */ React55.createElement(PreviewSettings, null) : null
|
7096
7089
|
);
|
7097
7090
|
};
|
7098
7091
|
var PreviewSettings = React55.memo(() => {
|
7099
|
-
const [open, setOpen] =
|
7092
|
+
const [open, setOpen] = useState19(false);
|
7100
7093
|
return /* @__PURE__ */ React55.createElement(Fragment6, null, /* @__PURE__ */ React55.createElement(IconButton_default, { "data-testid": "preview_setting_btn", css: { flexShrink: 0 }, onClick: () => setOpen((value) => !value) }, /* @__PURE__ */ React55.createElement(SettingsIcon2, null)), open && /* @__PURE__ */ React55.createElement(SettingsModal_default, { open, onOpenChange: setOpen }));
|
7101
7094
|
});
|
7102
7095
|
var PreviewJoin_default = PreviewJoin;
|
@@ -7142,7 +7135,7 @@ var PreviewContainer = () => {
|
|
7142
7135
|
var PreviewContainer_default = PreviewContainer;
|
7143
7136
|
|
7144
7137
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
7145
|
-
import React58, { useEffect as
|
7138
|
+
import React58, { useEffect as useEffect25, useState as useState20 } from "react";
|
7146
7139
|
import { selectIsConnectedToRoom as selectIsConnectedToRoom4, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
|
7147
7140
|
|
7148
7141
|
// src/Prebuilt/components/Toast/Toast.jsx
|
@@ -7166,8 +7159,8 @@ var Toast2 = (_a7) => {
|
|
7166
7159
|
// src/Prebuilt/components/Toast/ToastContainer.jsx
|
7167
7160
|
var ToastContainer = () => {
|
7168
7161
|
const isConnected = useHMSStore27(selectIsConnectedToRoom4);
|
7169
|
-
const [toasts, setToast] =
|
7170
|
-
|
7162
|
+
const [toasts, setToast] = useState20([]);
|
7163
|
+
useEffect25(() => {
|
7171
7164
|
ToastManager.addListener(setToast);
|
7172
7165
|
return () => {
|
7173
7166
|
ToastManager.removeListener(setToast);
|
@@ -7186,14 +7179,14 @@ var ToastContainer = () => {
|
|
7186
7179
|
};
|
7187
7180
|
|
7188
7181
|
// src/Prebuilt/plugins/FlyingEmoji.jsx
|
7189
|
-
import React59, { useCallback as useCallback18, useEffect as
|
7182
|
+
import React59, { useCallback as useCallback18, useEffect as useEffect26, useMemo as useMemo4, useState as useState21 } from "react";
|
7190
7183
|
import { useMedia as useMedia11 } from "react-use";
|
7191
7184
|
import {
|
7192
7185
|
selectLocalPeerID as selectLocalPeerID6,
|
7193
7186
|
selectPeerNameByID as selectPeerNameByID2,
|
7194
7187
|
useCustomEvent as useCustomEvent3,
|
7195
7188
|
useHMSStore as useHMSStore28,
|
7196
|
-
useHMSVanillaStore as
|
7189
|
+
useHMSVanillaStore as useHMSVanillaStore7
|
7197
7190
|
} from "@100mslive/react-sdk";
|
7198
7191
|
var emojiCount = 1;
|
7199
7192
|
var flyAndFade = keyframes({
|
@@ -7220,8 +7213,8 @@ var getStartingPoints = (isMobile) => {
|
|
7220
7213
|
};
|
7221
7214
|
function FlyingEmoji() {
|
7222
7215
|
const localPeerId = useHMSStore28(selectLocalPeerID6);
|
7223
|
-
const vanillaStore =
|
7224
|
-
const [emojis, setEmojis] =
|
7216
|
+
const vanillaStore = useHMSVanillaStore7();
|
7217
|
+
const [emojis, setEmojis] = useState21([]);
|
7225
7218
|
const isMobile = useMedia11(config.media.md);
|
7226
7219
|
const startingPoints = useMemo4(() => getStartingPoints(isMobile), [isMobile]);
|
7227
7220
|
const showFlyingEmoji = useCallback18(
|
@@ -7252,7 +7245,7 @@ function FlyingEmoji() {
|
|
7252
7245
|
type: EMOJI_REACTION_TYPE,
|
7253
7246
|
onEvent: showFlyingEmoji
|
7254
7247
|
});
|
7255
|
-
|
7248
|
+
useEffect26(() => {
|
7256
7249
|
window.showFlyingEmoji = showFlyingEmoji;
|
7257
7250
|
}, [showFlyingEmoji]);
|
7258
7251
|
return /* @__PURE__ */ React59.createElement(
|
@@ -7331,7 +7324,7 @@ function RemoteStopScreenshare() {
|
|
7331
7324
|
}
|
7332
7325
|
|
7333
7326
|
// src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
|
7334
|
-
import { useCallback as useCallback20, useEffect as
|
7327
|
+
import { useCallback as useCallback20, useEffect as useEffect28, useRef as useRef9 } from "react";
|
7335
7328
|
import {
|
7336
7329
|
selectIsConnectedToRoom as selectIsConnectedToRoom6,
|
7337
7330
|
selectPermissions as selectPermissions4,
|
@@ -7341,17 +7334,17 @@ import {
|
|
7341
7334
|
} from "@100mslive/react-sdk";
|
7342
7335
|
|
7343
7336
|
// src/Prebuilt/common/hooks.js
|
7344
|
-
import { useEffect as
|
7337
|
+
import { useEffect as useEffect27, useRef as useRef8, useState as useState22 } from "react";
|
7345
7338
|
import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
|
7346
7339
|
import {
|
7347
7340
|
selectAvailableRoleNames as selectAvailableRoleNames2,
|
7348
7341
|
selectIsConnectedToRoom as selectIsConnectedToRoom5,
|
7349
7342
|
selectPeerCount,
|
7350
|
-
selectPeerMetadata as
|
7343
|
+
selectPeerMetadata as selectPeerMetadata4,
|
7351
7344
|
selectPeers,
|
7352
7345
|
selectRemotePeers,
|
7353
7346
|
useHMSStore as useHMSStore29,
|
7354
|
-
useHMSVanillaStore as
|
7347
|
+
useHMSVanillaStore as useHMSVanillaStore8
|
7355
7348
|
} from "@100mslive/react-sdk";
|
7356
7349
|
var useFilteredRoles = () => {
|
7357
7350
|
const roles = useHMSStore29(selectAvailableRoleNames2).filter((role) => !isInternalRole(role));
|
@@ -7370,10 +7363,10 @@ var useParticipants2 = (params) => {
|
|
7370
7363
|
const availableRoles = useHMSStore29(selectAvailableRoleNames2);
|
7371
7364
|
let participantList = useHMSStore29(isConnected ? selectPeers : selectRemotePeers);
|
7372
7365
|
const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
|
7373
|
-
const vanillaStore =
|
7366
|
+
const vanillaStore = useHMSVanillaStore8();
|
7374
7367
|
if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
|
7375
7368
|
participantList = participantList.filter((peer) => {
|
7376
|
-
return vanillaStore.getState(
|
7369
|
+
return vanillaStore.getState(selectPeerMetadata4(peer.id)).isHandRaised;
|
7377
7370
|
});
|
7378
7371
|
}
|
7379
7372
|
if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
|
@@ -7412,12 +7405,12 @@ var useAutoStartStreaming = () => {
|
|
7412
7405
|
setHLSStarted(false);
|
7413
7406
|
}
|
7414
7407
|
}), [hmsActions, isHLSRunning, isHLSStarted, setHLSStarted, showStreamingUI]);
|
7415
|
-
|
7408
|
+
useEffect28(() => {
|
7416
7409
|
if (!isHLSStarted && !isHLSRunning) {
|
7417
7410
|
streamStartedRef.current = false;
|
7418
7411
|
}
|
7419
7412
|
}, [isHLSStarted, isHLSRunning]);
|
7420
|
-
|
7413
|
+
useEffect28(() => {
|
7421
7414
|
if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
|
7422
7415
|
return;
|
7423
7416
|
}
|
@@ -7426,7 +7419,7 @@ var useAutoStartStreaming = () => {
|
|
7426
7419
|
};
|
7427
7420
|
|
7428
7421
|
// src/Prebuilt/App.tsx
|
7429
|
-
var Conference = React61.lazy(() => import("./conference-
|
7422
|
+
var Conference = React61.lazy(() => import("./conference-FJJQ4TXX.js"));
|
7430
7423
|
var HMSPrebuilt = React61.forwardRef(
|
7431
7424
|
({
|
7432
7425
|
roomCode = "",
|
@@ -7444,7 +7437,7 @@ var HMSPrebuilt = React61.forwardRef(
|
|
7444
7437
|
const metadata = "";
|
7445
7438
|
const reactiveStore = useRef10();
|
7446
7439
|
const [hydrated, setHydrated] = React61.useState(false);
|
7447
|
-
|
7440
|
+
useEffect29(() => {
|
7448
7441
|
setHydrated(true);
|
7449
7442
|
const hms = new HMSReactiveStore();
|
7450
7443
|
const hmsStore = hms.getStore();
|
@@ -7459,13 +7452,13 @@ var HMSPrebuilt = React61.forwardRef(
|
|
7459
7452
|
hmsNotifications
|
7460
7453
|
};
|
7461
7454
|
}, []);
|
7462
|
-
|
7455
|
+
useEffect29(() => {
|
7463
7456
|
if (!ref || !reactiveStore.current) {
|
7464
7457
|
return;
|
7465
7458
|
}
|
7466
7459
|
ref.current = __spreadValues({}, reactiveStore.current);
|
7467
7460
|
}, [ref]);
|
7468
|
-
|
7461
|
+
useEffect29(
|
7469
7462
|
() => () => {
|
7470
7463
|
var _a8;
|
7471
7464
|
(_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
|
@@ -7602,7 +7595,7 @@ var RouteList = () => {
|
|
7602
7595
|
var BackSwipe = () => {
|
7603
7596
|
const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom7);
|
7604
7597
|
const hmsActions = useHMSActions20();
|
7605
|
-
|
7598
|
+
useEffect29(() => {
|
7606
7599
|
const onRouteLeave = () => __async(void 0, null, function* () {
|
7607
7600
|
if (isConnectedToRoom) {
|
7608
7601
|
yield hmsActions.leave();
|
@@ -7701,6 +7694,7 @@ export {
|
|
7701
7694
|
ROLE_CHANGE_DECLINED,
|
7702
7695
|
useIsSidepaneTypeOpen,
|
7703
7696
|
useSidepaneToggle,
|
7697
|
+
useSidepaneReset,
|
7704
7698
|
useUISettings,
|
7705
7699
|
useSetUiSettings,
|
7706
7700
|
useWaitingViewerRole,
|
@@ -7747,4 +7741,4 @@ export {
|
|
7747
7741
|
HMSPrebuilt,
|
7748
7742
|
Progress
|
7749
7743
|
};
|
7750
|
-
//# sourceMappingURL=chunk-
|
7744
|
+
//# sourceMappingURL=chunk-WVGGQZK4.js.map
|