@100mslive/roomkit-react 0.1.6-alpha.1 → 0.1.6-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/{HLSView-HNVYG5VE.js → HLSView-HL455FYH.js} +3 -3
  2. package/dist/Prebuilt/components/Footer/ChatToggle.d.ts +1 -3
  3. package/dist/Prebuilt/components/Leave/DesktopLeaveRoom.d.ts +2 -1
  4. package/dist/Prebuilt/components/Leave/MwebLeaveRoom.d.ts +2 -1
  5. package/dist/Prebuilt/components/SidePaneTabs.d.ts +7 -0
  6. package/dist/{VirtualBackground-UM2FOUHQ.js → VirtualBackground-6EP3X7MO.js} +6 -6
  7. package/dist/VirtualBackground-6EP3X7MO.js.map +7 -0
  8. package/dist/{chunk-LYSAET4G.js → chunk-6JF3GAOH.js} +109 -127
  9. package/dist/chunk-6JF3GAOH.js.map +7 -0
  10. package/dist/{chunk-POE7H4IE.js → chunk-KAJJ56J4.js} +2 -2
  11. package/dist/{chunk-POE7H4IE.js.map → chunk-KAJJ56J4.js.map} +1 -1
  12. package/dist/{chunk-364HP22I.js → chunk-UXBTLGWY.js} +2 -2
  13. package/dist/{conference-UWLJHMB2.js → conference-MPZNWHV5.js} +472 -415
  14. package/dist/conference-MPZNWHV5.js.map +7 -0
  15. package/dist/index.cjs.js +714 -678
  16. package/dist/index.cjs.js.map +4 -4
  17. package/dist/index.js +2 -2
  18. package/dist/meta.cjs.json +153 -153
  19. package/dist/meta.esbuild.json +185 -184
  20. package/package.json +6 -6
  21. package/src/Button/Button.tsx +6 -6
  22. package/src/Prebuilt/components/Chat/Chat.jsx +3 -9
  23. package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +1 -0
  24. package/src/Prebuilt/components/Footer/ChatToggle.tsx +2 -9
  25. package/src/Prebuilt/components/Footer/Footer.tsx +23 -7
  26. package/src/Prebuilt/components/Footer/ParticipantList.jsx +4 -5
  27. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +1 -1
  28. package/src/Prebuilt/components/Header/HeaderComponents.jsx +10 -9
  29. package/src/Prebuilt/components/InsetTile.tsx +1 -0
  30. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +7 -9
  31. package/src/Prebuilt/components/Leave/LeaveRoom.tsx +6 -2
  32. package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +7 -4
  33. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -1
  34. package/src/Prebuilt/components/Notifications/Notifications.jsx +4 -3
  35. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +2 -3
  36. package/src/Prebuilt/components/RoleChangeRequestModal.tsx +4 -3
  37. package/src/Prebuilt/components/ScreenshareTile.jsx +15 -7
  38. package/src/Prebuilt/components/SidePaneTabs.tsx +141 -0
  39. package/src/Prebuilt/components/conference.jsx +9 -1
  40. package/src/Prebuilt/components/hooks/useMetadata.jsx +7 -25
  41. package/src/Prebuilt/layouts/SidePane.tsx +12 -10
  42. package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +3 -3
  43. package/src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts +2 -2
  44. package/dist/VirtualBackground-UM2FOUHQ.js.map +0 -7
  45. package/dist/chunk-LYSAET4G.js.map +0 -7
  46. package/dist/conference-UWLJHMB2.js.map +0 -7
  47. package/src/Prebuilt/components/Chat/ChatParticipantHeader.jsx +0 -84
  48. /package/dist/{HLSView-HNVYG5VE.js.map → HLSView-HL455FYH.js.map} +0 -0
  49. /package/dist/{chunk-364HP22I.js.map → chunk-UXBTLGWY.js.map} +0 -0
@@ -35,7 +35,7 @@ import {
35
35
  textEllipsis,
36
36
  theme,
37
37
  toastAnimation
38
- } from "./chunk-POE7H4IE.js";
38
+ } from "./chunk-KAJJ56J4.js";
39
39
 
40
40
  // src/Button/Button.tsx
41
41
  import React2 from "react";
@@ -234,12 +234,12 @@ var StyledButton = styled("button", __spreadProps(__spreadValues({}, flexCenter)
234
234
  variants: {
235
235
  variant: {
236
236
  standard: getButtonVariants(
237
- "$secondary_default",
238
- "$secondary_bright",
239
- "$secondary_dim",
240
- "$secondary_disabled",
241
- "$on_secondary_high",
242
- "$on_secondary_low"
237
+ "$surface_brighter",
238
+ "$surface_bright",
239
+ "$surface_default",
240
+ "$surface_dim",
241
+ "$on_surface_high",
242
+ "$on_surface_low"
243
243
  ),
244
244
  danger: getButtonVariants(
245
245
  "$alert_error_default",
@@ -1990,12 +1990,12 @@ var Collapsible = {
1990
1990
  };
1991
1991
 
1992
1992
  // src/Prebuilt/App.tsx
1993
- import React61, { Suspense as Suspense2, useEffect as useEffect28, useRef as useRef10 } from "react";
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,
1997
1997
  HMSRoomProvider,
1998
- selectIsConnectedToRoom as selectIsConnectedToRoom7,
1998
+ selectIsConnectedToRoom as selectIsConnectedToRoom6,
1999
1999
  useHMSActions as useHMSActions20,
2000
2000
  useHMSStore as useHMSStore31
2001
2001
  } from "@100mslive/react-sdk";
@@ -3027,7 +3027,7 @@ var fetchWithRetry = (..._0) => __async(void 0, [..._0], function* (url = "", op
3027
3027
  throw error;
3028
3028
  });
3029
3029
  var useFetchRoomLayout = ({
3030
- endpoint = "https://api.100ms.live/v2/layouts/ui",
3030
+ endpoint = "",
3031
3031
  authToken = ""
3032
3032
  }) => {
3033
3033
  const [layout, setLayout] = useState5(void 0);
@@ -3051,7 +3051,7 @@ var useFetchRoomLayout = ({
3051
3051
  }
3052
3052
  isFetchInProgress.current = true;
3053
3053
  try {
3054
- const resp = yield fetchWithRetry(endpoint, {
3054
+ const resp = yield fetchWithRetry(endpoint || "https://api.100ms.live/v2/layouts/ui", {
3055
3055
  headers: {
3056
3056
  Authorization: `Bearer ${authToken}`
3057
3057
  }
@@ -4254,7 +4254,7 @@ function Notifications() {
4254
4254
  title: `Error: ${(_k = notification.data) == null ? void 0 : _k.message} - ${(_l = notification.data) == null ? void 0 : _l.description}`
4255
4255
  });
4256
4256
  break;
4257
- case HMSNotificationTypes7.ROLE_UPDATED:
4257
+ case HMSNotificationTypes7.ROLE_UPDATED: {
4258
4258
  if ((_m = notification.data) == null ? void 0 : _m.isLocal) {
4259
4259
  ToastManager.addToast({
4260
4260
  title: `You are now a ${notification.data.roleName}`
@@ -4262,6 +4262,7 @@ function Notifications() {
4262
4262
  updateRoomLayoutForRole(notification.data.roleName);
4263
4263
  }
4264
4264
  break;
4265
+ }
4265
4266
  case HMSNotificationTypes7.CHANGE_TRACK_STATE_REQUEST:
4266
4267
  const track = (_n = notification.data) == null ? void 0 : _n.track;
4267
4268
  if (!notification.data.enabled) {
@@ -4301,13 +4302,12 @@ import { ExitIcon } from "@100mslive/react-icons";
4301
4302
 
4302
4303
  // src/Prebuilt/components/Header/Header.tsx
4303
4304
  import React36 from "react";
4304
- import { useMedia as useMedia4 } from "react-use";
4305
+ import { useMedia as useMedia3 } from "react-use";
4305
4306
  import { HMSRoomState as HMSRoomState5, selectRoomState as selectRoomState5, useHMSStore as useHMSStore17 } from "@100mslive/react-sdk";
4306
4307
 
4307
4308
  // src/Prebuilt/components/Header/HeaderComponents.jsx
4308
- import React31, { useState as useState11 } from "react";
4309
- import { useMedia as useMedia2 } from "react-use";
4310
- import { selectDominantSpeaker, selectIsConnectedToRoom as selectIsConnectedToRoom2, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
4309
+ import React31, { useEffect as useEffect17, useState as useState11 } from "react";
4310
+ import { selectDominantSpeaker, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
4311
4311
  import { VolumeOneIcon } from "@100mslive/react-icons";
4312
4312
  var SpeakerTag = () => {
4313
4313
  const dominantSpeaker = useHMSStore9(selectDominantSpeaker);
@@ -4335,12 +4335,12 @@ var Logo = () => {
4335
4335
  var _a7;
4336
4336
  const roomLayout = useRoomLayout();
4337
4337
  const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
4338
- const isMobile = useMedia2(config.media.md);
4339
- const isConnected = useHMSStore9(selectIsConnectedToRoom2);
4340
4338
  const [hideImage, setHideImage] = useState11(false);
4341
- if (isConnected && isMobile) {
4342
- return null;
4343
- }
4339
+ useEffect17(() => {
4340
+ if (hideImage) {
4341
+ setHideImage(false);
4342
+ }
4343
+ }, [logo]);
4344
4344
  return logo && !hideImage ? /* @__PURE__ */ React31.createElement(
4345
4345
  LogoImg,
4346
4346
  {
@@ -4355,12 +4355,12 @@ var Logo = () => {
4355
4355
  };
4356
4356
 
4357
4357
  // src/Prebuilt/components/Header/StreamActions.tsx
4358
- import React34, { useCallback as useCallback13, useEffect as useEffect18, useRef as useRef5, useState as useState14 } from "react";
4359
- import { useMedia as useMedia3 } from "react-use";
4358
+ import React34, { useCallback as useCallback13, useEffect as useEffect19, useRef as useRef5, useState as useState13 } from "react";
4359
+ import { useMedia as useMedia2 } from "react-use";
4360
4360
  import {
4361
4361
  HMSRoomState as HMSRoomState4,
4362
4362
  selectHLSState as selectHLSState2,
4363
- selectIsConnectedToRoom as selectIsConnectedToRoom3,
4363
+ selectIsConnectedToRoom as selectIsConnectedToRoom2,
4364
4364
  selectPermissions,
4365
4365
  selectRoomState as selectRoomState4,
4366
4366
  useHMSActions as useHMSActions12,
@@ -4467,7 +4467,7 @@ var Sheet = {
4467
4467
  };
4468
4468
 
4469
4469
  // src/Prebuilt/components/Header/AdditionalRoomState.jsx
4470
- import React33, { useState as useState13 } from "react";
4470
+ import React33, { useState as useState12 } from "react";
4471
4471
  import { selectLocalPeerID as selectLocalPeerID3, selectPeerSharingVideoPlaylist, useHMSStore as useHMSStore14, useScreenShare } from "@100mslive/react-sdk";
4472
4472
  import {
4473
4473
  AudioPlayerIcon,
@@ -4480,11 +4480,11 @@ import {
4480
4480
  } from "@100mslive/react-icons";
4481
4481
 
4482
4482
  // src/Prebuilt/plugins/whiteboard/useWhiteboardMetadata.js
4483
- import { useCallback as useCallback10, useEffect as useEffect17, useMemo as useMemo2 } from "react";
4483
+ import { useCallback as useCallback10, useEffect as useEffect18, useMemo as useMemo2 } from "react";
4484
4484
  import { selectLocalPeerID as selectLocalPeerID2, selectPeerByCondition, useHMSStore as useHMSStore11 } from "@100mslive/react-sdk";
4485
4485
 
4486
4486
  // src/Prebuilt/components/hooks/useMetadata.jsx
4487
- import { useCallback as useCallback9, useState as useState12 } from "react";
4487
+ import { useCallback as useCallback9 } from "react";
4488
4488
  import {
4489
4489
  selectLocalPeerID,
4490
4490
  selectPeerMetadata,
@@ -4497,8 +4497,6 @@ var useMyMetadata = () => {
4497
4497
  const localPeerId = useHMSStore10(selectLocalPeerID);
4498
4498
  const vanillaStore = useHMSVanillaStore4();
4499
4499
  const metaData = useHMSStore10(selectPeerMetadata(localPeerId));
4500
- const [isHandRaised, setHandRaised] = useState12((metaData == null ? void 0 : metaData.isHandRaised) || false);
4501
- const [isBRBOn, setBRBOn] = useState12((metaData == null ? void 0 : metaData.isBRBOn) || false);
4502
4500
  const update = (updatedFields) => __async(void 0, null, function* () {
4503
4501
  try {
4504
4502
  const currentMetadata = vanillaStore.getState(selectPeerMetadata(localPeerId));
@@ -4509,35 +4507,19 @@ var useMyMetadata = () => {
4509
4507
  }
4510
4508
  });
4511
4509
  const toggleHandRaise = useCallback9(() => __async(void 0, null, function* () {
4512
- const brbUpdate = !isHandRaised ? false : isBRBOn;
4513
- const success = yield update({
4514
- isHandRaised: !isHandRaised,
4515
- isBRBOn: brbUpdate
4516
- });
4517
- if (success) {
4518
- setBRBOn(brbUpdate);
4519
- setHandRaised(!isHandRaised);
4520
- }
4521
- }), [isHandRaised, isBRBOn]);
4510
+ yield update({ isHandRaised: !(metaData == null ? void 0 : metaData.isHandRaised), isBRBOn: false });
4511
+ }), [metaData == null ? void 0 : metaData.isHandRaised]);
4522
4512
  const toggleBRB = useCallback9(() => __async(void 0, null, function* () {
4523
- const handRaiseUpdate = !isBRBOn ? false : isHandRaised;
4524
- const success = yield update({
4525
- isHandRaised: handRaiseUpdate,
4526
- isBRBOn: !isBRBOn
4527
- });
4528
- if (success) {
4529
- setBRBOn(!isBRBOn);
4530
- setHandRaised(handRaiseUpdate);
4531
- }
4532
- }), [isHandRaised, isBRBOn]);
4513
+ yield update({ isBRBOn: !(metaData == null ? void 0 : metaData.isBRBOn), isHandRaised: false });
4514
+ }), [metaData == null ? void 0 : metaData.isBRBOn]);
4533
4515
  const setPrevRole = (role) => __async(void 0, null, function* () {
4534
4516
  yield update({
4535
4517
  prevRole: role
4536
4518
  });
4537
4519
  });
4538
4520
  return {
4539
- isHandRaised,
4540
- isBRBOn,
4521
+ isHandRaised: !!(metaData == null ? void 0 : metaData.isHandRaised),
4522
+ isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
4541
4523
  metaData,
4542
4524
  updateMetaData: update,
4543
4525
  toggleHandRaise,
@@ -4569,7 +4551,7 @@ var useWhiteboardMetadata = () => {
4569
4551
  console.error("failed to toggle whiteboard to ", !whiteboardOwner, error);
4570
4552
  }
4571
4553
  }), [whiteboardOwner, updateMetaData, amIWhiteboardOwner]);
4572
- useEffect17(() => {
4554
+ useEffect18(() => {
4573
4555
  window.toggleWhiteboard = toggleWhiteboard;
4574
4556
  }, [toggleWhiteboard]);
4575
4557
  return {
@@ -4662,7 +4644,7 @@ var AdditionalRoomState = () => {
4662
4644
  const playlist = usePlaylistMusic();
4663
4645
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
4664
4646
  const screenshareAudio = useScreenshareAudio();
4665
- const [open, setOpen] = useState13(false);
4647
+ const [open, setOpen] = useState12(false);
4666
4648
  const isPlaylistInactive = [
4667
4649
  !playlist.peer || !playlist.track,
4668
4650
  !((_a7 = playlist.peer) == null ? void 0 : _a7.isLocal) && !((_b7 = playlist.track) == null ? void 0 : _b7.enabled),
@@ -4754,9 +4736,9 @@ var LiveStatus = () => {
4754
4736
  var _a7;
4755
4737
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming2();
4756
4738
  const hlsState = useHMSStore15(selectHLSState2);
4757
- const isMobile = useMedia3(config.media.md);
4739
+ const isMobile = useMedia2(config.media.md);
4758
4740
  const intervalRef = useRef5(null);
4759
- const [liveTime, setLiveTime] = useState14(0);
4741
+ const [liveTime, setLiveTime] = useState13(0);
4760
4742
  const startTimer = useCallback13(() => {
4761
4743
  intervalRef.current = setInterval(() => {
4762
4744
  var _a8;
@@ -4765,7 +4747,7 @@ var LiveStatus = () => {
4765
4747
  }
4766
4748
  }, 1e3);
4767
4749
  }, [hlsState == null ? void 0 : hlsState.running, hlsState == null ? void 0 : hlsState.variants]);
4768
- useEffect18(() => {
4750
+ useEffect19(() => {
4769
4751
  if (hlsState == null ? void 0 : hlsState.running) {
4770
4752
  startTimer();
4771
4753
  }
@@ -4799,7 +4781,7 @@ var LiveStatus = () => {
4799
4781
  var RecordingStatus = () => {
4800
4782
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming2();
4801
4783
  const permissions = useHMSStore15(selectPermissions);
4802
- const isMobile = useMedia3(config.media.md);
4784
+ const isMobile = useMedia2(config.media.md);
4803
4785
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
4804
4786
  // so no need to show this as it duplicates
4805
4787
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -4832,7 +4814,7 @@ var RecordingStatus = () => {
4832
4814
  };
4833
4815
  var StartRecording = () => {
4834
4816
  const permissions = useHMSStore15(selectPermissions);
4835
- const [open, setOpen] = useState14(false);
4817
+ const [open, setOpen] = useState13(false);
4836
4818
  const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
4837
4819
  const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming2();
4838
4820
  const hmsActions = useHMSActions12();
@@ -4898,8 +4880,8 @@ var StartRecording = () => {
4898
4880
  );
4899
4881
  };
4900
4882
  var StreamActions = () => {
4901
- const isConnected = useHMSStore15(selectIsConnectedToRoom3);
4902
- const isMobile = useMedia3(config.media.md);
4883
+ const isConnected = useHMSStore15(selectIsConnectedToRoom2);
4884
+ const isMobile = useMedia2(config.media.md);
4903
4885
  const roomState = useHMSStore15(selectRoomState4);
4904
4886
  return /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React34.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ React34.createElement(RecordingStatus, null), roomState !== HMSRoomState4.Preview ? /* @__PURE__ */ React34.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ React34.createElement(StartRecording, null) : null);
4905
4887
  };
@@ -5054,7 +5036,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React35.createElement(Rea
5054
5036
  // src/Prebuilt/components/Header/Header.tsx
5055
5037
  var Header2 = () => {
5056
5038
  const roomState = useHMSStore17(selectRoomState5);
5057
- const isMobile = useMedia4(config.media.md);
5039
+ const isMobile = useMedia3(config.media.md);
5058
5040
  if (roomState !== HMSRoomState5.Connected) {
5059
5041
  return /* @__PURE__ */ React36.createElement(React36.Fragment, null);
5060
5042
  }
@@ -5130,8 +5112,8 @@ import { useNavigate as useNavigate4, useParams as useParams4 } from "react-rout
5130
5112
  import { useSearchParam } from "react-use";
5131
5113
 
5132
5114
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
5133
- import React55, { Fragment as Fragment6, Suspense, useCallback as useCallback17, useEffect as useEffect23, useState as useState20 } from "react";
5134
- import { useMedia as useMedia10 } from "react-use";
5115
+ import React55, { Fragment as Fragment6, Suspense, useCallback as useCallback17, useEffect as useEffect24, useState as useState19 } from "react";
5116
+ import { useMedia as useMedia9 } from "react-use";
5135
5117
  import {
5136
5118
  HMSRoomState as HMSRoomState7,
5137
5119
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
@@ -5539,15 +5521,15 @@ var Wrapper2 = styled("div", {
5539
5521
  var TileConnection_default = TileConnection;
5540
5522
 
5541
5523
  // src/Prebuilt/components/Settings/SettingsModal.jsx
5542
- import React48, { useCallback as useCallback15, useEffect as useEffect20, useState as useState16 } from "react";
5543
- import { useMedia as useMedia5 } from "react-use";
5524
+ import React48, { useCallback as useCallback15, useEffect as useEffect21, useState as useState15 } from "react";
5525
+ import { useMedia as useMedia4 } from "react-use";
5544
5526
  import { ChevronLeftIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
5545
5527
 
5546
5528
  // src/Prebuilt/components/Settings/common.js
5547
5529
  import { GridFourIcon, NotificationsIcon, SettingsIcon } from "@100mslive/react-icons";
5548
5530
 
5549
5531
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
5550
- import React44, { Fragment as Fragment3, useEffect as useEffect19, useRef as useRef6, useState as useState15 } from "react";
5532
+ import React44, { Fragment as Fragment3, useEffect as useEffect20, useRef as useRef6, useState as useState14 } from "react";
5551
5533
  import {
5552
5534
  DeviceType as DeviceType3,
5553
5535
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled3,
@@ -5677,7 +5659,7 @@ var Settings = ({ setHide }) => {
5677
5659
  };
5678
5660
  var DeviceSelector = ({ title, devices, selection, onChange, icon, children = null }) => {
5679
5661
  var _a7, _b7;
5680
- const [open, setOpen] = useState15(false);
5662
+ const [open, setOpen] = useState14(false);
5681
5663
  const selectionBg = useDropdownSelection();
5682
5664
  const ref = useRef6(null);
5683
5665
  return /* @__PURE__ */ React44.createElement(Box, { css: { mb: "$10" } }, /* @__PURE__ */ React44.createElement(Text, { css: { mb: "$4" } }, title), /* @__PURE__ */ React44.createElement(
@@ -5735,8 +5717,8 @@ var DeviceSelector = ({ title, devices, selection, onChange, icon, children = nu
5735
5717
  var TEST_AUDIO_URL = "https://100ms.live/test-audio.wav";
5736
5718
  var TestAudio = ({ id }) => {
5737
5719
  const audioRef = useRef6(null);
5738
- const [playing, setPlaying] = useState15(false);
5739
- useEffect19(() => {
5720
+ const [playing, setPlaying] = useState14(false);
5721
+ useEffect20(() => {
5740
5722
  if (audioRef.current && id) {
5741
5723
  try {
5742
5724
  if (typeof audioRef.current.setSinkId !== "undefined") {
@@ -5950,27 +5932,27 @@ var settingsList = [
5950
5932
  // src/Prebuilt/components/Settings/SettingsModal.jsx
5951
5933
  var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React48.createElement(React48.Fragment, null) }) => {
5952
5934
  const mediaQueryLg = config.media.md;
5953
- const isMobile = useMedia5(mediaQueryLg);
5954
- const [showSetting, setShowSetting] = useState16(
5935
+ const isMobile = useMedia4(mediaQueryLg);
5936
+ const [showSetting, setShowSetting] = useState15(
5955
5937
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
5956
5938
  );
5957
5939
  const hideSettingByTabName = useCallback15(
5958
5940
  (key) => (hide) => setShowSetting((prev) => __spreadProps(__spreadValues({}, prev), { [key]: !hide })),
5959
5941
  [setShowSetting]
5960
5942
  );
5961
- useEffect20(() => {
5943
+ useEffect21(() => {
5962
5944
  if (screenType === "hls_live_streaming") {
5963
5945
  hideSettingByTabName("layout")(true);
5964
5946
  }
5965
5947
  }, [screenType, hideSettingByTabName]);
5966
- const [selection, setSelection] = useState16(() => {
5948
+ const [selection, setSelection] = useState15(() => {
5967
5949
  var _a7;
5968
5950
  return (_a7 = Object.keys(showSetting).find((key) => showSetting[key])) != null ? _a7 : "";
5969
5951
  });
5970
5952
  const resetSelection = useCallback15(() => {
5971
5953
  setSelection("");
5972
5954
  }, []);
5973
- useEffect20(() => {
5955
+ useEffect21(() => {
5974
5956
  var _a7;
5975
5957
  if (isMobile) {
5976
5958
  setSelection("");
@@ -6151,7 +6133,7 @@ var SettingsContentHeader = ({ children, isMobile, onBack }) => {
6151
6133
  var SettingsModal_default = SettingsModal;
6152
6134
 
6153
6135
  // src/Prebuilt/components/VideoTile.jsx
6154
- import React53, { Fragment as Fragment5, useCallback as useCallback16, useEffect as useEffect22, useMemo as useMemo3, useRef as useRef7, useState as useState19 } from "react";
6136
+ import React53, { Fragment as Fragment5, useCallback as useCallback16, useEffect as useEffect23, useMemo as useMemo3, useRef as useRef7, useState as useState18 } from "react";
6155
6137
  import {
6156
6138
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
6157
6139
  selectIsPeerAudioEnabled,
@@ -6168,8 +6150,8 @@ import {
6168
6150
  import { BrbTileIcon, HandIcon as HandIcon3, MicOffIcon as MicOffIcon3 } from "@100mslive/react-icons";
6169
6151
 
6170
6152
  // src/Prebuilt/components/TileMenu/TileMenu.jsx
6171
- import React52, { useState as useState18 } from "react";
6172
- import { useMedia as useMedia8 } from "react-use";
6153
+ import React52, { useState as useState17 } from "react";
6154
+ import { useMedia as useMedia7 } from "react-use";
6173
6155
  import {
6174
6156
  selectLocalPeerID as selectLocalPeerID4,
6175
6157
  selectPeerByID as selectPeerByID2,
@@ -6182,8 +6164,8 @@ import {
6182
6164
  import { CrossIcon as CrossIcon8, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
6183
6165
 
6184
6166
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx
6185
- import React50, { useState as useState17 } from "react";
6186
- import { useMedia as useMedia6 } from "react-use";
6167
+ import React50, { useState as useState16 } from "react";
6168
+ import { useMedia as useMedia5 } from "react-use";
6187
6169
  import { selectLocalPeerName, useHMSActions as useHMSActions16, useHMSStore as useHMSStore22 } from "@100mslive/react-sdk";
6188
6170
 
6189
6171
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.jsx
@@ -6297,8 +6279,8 @@ var ChangeNameModal = ({ onOpenChange, openParentSheet = null }) => {
6297
6279
  const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
6298
6280
  const hmsActions = useHMSActions16();
6299
6281
  const localPeerName = useHMSStore22(selectLocalPeerName);
6300
- const [currentName, setCurrentName] = useState17(localPeerName);
6301
- const isMobile = useMedia6(config.media.md);
6282
+ const [currentName, setCurrentName] = useState16(localPeerName);
6283
+ const isMobile = useMedia5(config.media.md);
6302
6284
  const changeName = () => __async(void 0, null, function* () {
6303
6285
  const name = currentName.trim();
6304
6286
  if (!name || name === localPeerName) {
@@ -6336,7 +6318,7 @@ var ChangeNameModal = ({ onOpenChange, openParentSheet = null }) => {
6336
6318
 
6337
6319
  // src/Prebuilt/components/TileMenu/TileMenuContent.jsx
6338
6320
  import React51, { Fragment as Fragment4 } from "react";
6339
- import { useMedia as useMedia7 } from "react-use";
6321
+ import { useMedia as useMedia6 } from "react-use";
6340
6322
  import {
6341
6323
  selectPermissions as selectPermissions2,
6342
6324
  selectSessionStore as selectSessionStore2,
@@ -6502,7 +6484,7 @@ var TileMenuContent = (props) => {
6502
6484
  const { sendEvent } = useCustomEvent2({
6503
6485
  type: REMOTE_STOP_SCREENSHARE_TYPE
6504
6486
  });
6505
- const isMobile = useMedia7(config.media.md);
6487
+ const isMobile = useMedia6(config.media.md);
6506
6488
  return isLocal ? (showPinAction || canMinimise) && /* @__PURE__ */ React51.createElement(React51.Fragment, null, showPinAction && /* @__PURE__ */ React51.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ React51.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ React51.createElement(MinimiseInset, null), /* @__PURE__ */ React51.createElement(
6507
6489
  StyledMenuTile.ItemButton,
6508
6490
  {
@@ -6567,10 +6549,10 @@ var TileMenuContent = (props) => {
6567
6549
  };
6568
6550
 
6569
6551
  // src/Prebuilt/components/hooks/useDropdownList.jsx
6570
- import { useEffect as useEffect21 } from "react";
6552
+ import { useEffect as useEffect22 } from "react";
6571
6553
  var useDropdownList = ({ name, open }) => {
6572
6554
  const [dropdownList = [], setDropdownList] = useSetAppDataByKey(APP_DATA.dropdownList);
6573
- useEffect21(() => {
6555
+ useEffect22(() => {
6574
6556
  if (open) {
6575
6557
  if (!dropdownList.includes(name)) {
6576
6558
  setDropdownList([...dropdownList, name]);
@@ -6596,7 +6578,7 @@ var TileMenu = ({
6596
6578
  enableSpotlightingPeer = true
6597
6579
  }) => {
6598
6580
  var _a7, _b7;
6599
- const [open, setOpen] = useState18(false);
6581
+ const [open, setOpen] = useState17(false);
6600
6582
  const { theme: theme2 } = useTheme();
6601
6583
  const localPeerID = useHMSStore24(selectLocalPeerID4);
6602
6584
  const isLocal = localPeerID === peerID;
@@ -6607,9 +6589,9 @@ var TileMenu = ({
6607
6589
  const showPinAction = audioTrackID || videoTrackID && isPrimaryVideoTrack;
6608
6590
  const track = useHMSStore24(selectTrackByID3(videoTrackID));
6609
6591
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
6610
- const isMobile = useMedia8(config.media.md);
6592
+ const isMobile = useMedia7(config.media.md);
6611
6593
  const peer = useHMSStore24(selectPeerByID2(peerID));
6612
- const [showNameChangeModal, setShowNameChangeModal] = useState18(false);
6594
+ const [showNameChangeModal, setShowNameChangeModal] = useState17(false);
6613
6595
  useDropdownList({ open, name: "TileMenu" });
6614
6596
  if (!(removeOthers || toggleAudio || toggleVideo || setVolume || showPinAction) && hideSimulcastLayers) {
6615
6597
  return null;
@@ -6708,7 +6690,7 @@ var Tile = ({
6708
6690
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
6709
6691
  const isAudioMuted = !useHMSStore25(selectIsPeerAudioEnabled(peerId));
6710
6692
  const isVideoMuted = !(track == null ? void 0 : track.enabled);
6711
- const [isMouseHovered, setIsMouseHovered] = useState19(false);
6693
+ const [isMouseHovered, setIsMouseHovered] = useState18(false);
6712
6694
  const isVideoDegraded = track == null ? void 0 : track.degraded;
6713
6695
  const isLocal = localPeerID === peerId;
6714
6696
  const [pinnedTrackId] = useSetAppDataByKey(APP_DATA.pinnedTrackId);
@@ -6818,7 +6800,7 @@ var heightAnimation = (value) => keyframes({
6818
6800
  var AudioLevelIndicator = ({ trackId, value, delay }) => {
6819
6801
  const vanillaStore = useHMSVanillaStore5();
6820
6802
  const ref = useRef7();
6821
- useEffect22(() => {
6803
+ useEffect23(() => {
6822
6804
  const unsubscribe = vanillaStore.subscribe((audioLevel) => {
6823
6805
  if (ref.current) {
6824
6806
  ref.current.style["animation"] = `${heightAnimation(
@@ -6855,7 +6837,7 @@ var VideoTile_default = VideoTile;
6855
6837
 
6856
6838
  // src/Prebuilt/components/Preview/PreviewForm.tsx
6857
6839
  import React54 from "react";
6858
- import { useMedia as useMedia9 } from "react-use";
6840
+ import { useMedia as useMedia8 } from "react-use";
6859
6841
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
6860
6842
  import { useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
6861
6843
  import { RadioIcon } from "@100mslive/react-icons";
@@ -6871,7 +6853,7 @@ var PreviewForm = ({
6871
6853
  const formSubmit = (e) => {
6872
6854
  e.preventDefault();
6873
6855
  };
6874
- const isMobile = useMedia9(config.media.md);
6856
+ const isMobile = useMedia8(config.media.md);
6875
6857
  const { isHLSRunning } = useRecordingStreaming3();
6876
6858
  const layout = useRoomLayout();
6877
6859
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
@@ -6921,7 +6903,7 @@ var Form = styled("form", {
6921
6903
  var PreviewForm_default = PreviewForm;
6922
6904
 
6923
6905
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
6924
- var VirtualBackground = React55.lazy(() => import("./VirtualBackground-UM2FOUHQ.js"));
6906
+ var VirtualBackground = React55.lazy(() => import("./VirtualBackground-6EP3X7MO.js"));
6925
6907
  var getParticipantChipContent = (peerCount = 0) => {
6926
6908
  if (peerCount === 0) {
6927
6909
  return "You are the first to join";
@@ -6942,9 +6924,9 @@ var PreviewJoin = ({
6942
6924
  );
6943
6925
  const { isStreamingOn } = useRecordingStreaming4();
6944
6926
  const authToken = useAuthToken();
6945
- const [name, setName] = useState20(initialName || previewPreference.name);
6927
+ const [name, setName] = useState19(initialName || previewPreference.name);
6946
6928
  const { toggleAudio, toggleVideo } = useAVToggle2();
6947
- const [previewError, setPreviewError] = useState20(false);
6929
+ const [previewError, setPreviewError] = useState19(false);
6948
6930
  const { endpoints } = useHMSPrebuiltContext();
6949
6931
  const { peerCount } = useParticipants();
6950
6932
  const { enableJoin, preview, join } = usePreviewJoin({
@@ -6974,7 +6956,7 @@ var PreviewJoin = ({
6974
6956
  }, [join, name, setPreviewPreference, onJoin]);
6975
6957
  const roomLayout = useRoomLayout();
6976
6958
  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
- useEffect23(() => {
6959
+ useEffect24(() => {
6978
6960
  if (authToken) {
6979
6961
  if (skipPreview) {
6980
6962
  savePreferenceAndJoin();
@@ -6983,7 +6965,7 @@ var PreviewJoin = ({
6983
6965
  }
6984
6966
  }
6985
6967
  }, [authToken, skipPreview]);
6986
- useEffect23(() => {
6968
+ useEffect24(() => {
6987
6969
  if (initialName) {
6988
6970
  setName(initialName);
6989
6971
  }
@@ -7050,7 +7032,7 @@ var PreviewTile = ({ name, error }) => {
7050
7032
  const track = useHMSStore26(trackSelector);
7051
7033
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
7052
7034
  const videoTrack = useHMSStore26(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
7053
- const isMobile = useMedia10(config.media.md);
7035
+ const isMobile = useMedia9(config.media.md);
7054
7036
  const aspectRatio = (videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) ? videoTrack.width / videoTrack.height : isMobile ? 9 / 16 : 16 / 9;
7055
7037
  return /* @__PURE__ */ React55.createElement(
7056
7038
  StyledVideoTile.Container,
@@ -7080,8 +7062,7 @@ var PreviewTile = ({ name, error }) => {
7080
7062
  );
7081
7063
  };
7082
7064
  var PreviewControls = ({ hideSettings }) => {
7083
- const isVideoOn = useHMSStore26(selectIsLocalVideoEnabled5);
7084
- const isMobile = useMedia10(config.media.md);
7065
+ const isMobile = useMedia9(config.media.md);
7085
7066
  return /* @__PURE__ */ React55.createElement(
7086
7067
  Flex,
7087
7068
  {
@@ -7091,12 +7072,12 @@ var PreviewControls = ({ hideSettings }) => {
7091
7072
  mt: "$8"
7092
7073
  }
7093
7074
  },
7094
- /* @__PURE__ */ React55.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ React55.createElement(AudioVideoToggle, { compact: true }), /* @__PURE__ */ React55.createElement(Suspense, { fallback: "" }, isVideoOn && !isMobile ? /* @__PURE__ */ React55.createElement(VirtualBackground, null) : null)),
7075
+ /* @__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
7076
  !hideSettings ? /* @__PURE__ */ React55.createElement(PreviewSettings, null) : null
7096
7077
  );
7097
7078
  };
7098
7079
  var PreviewSettings = React55.memo(() => {
7099
- const [open, setOpen] = useState20(false);
7080
+ const [open, setOpen] = useState19(false);
7100
7081
  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
7082
  });
7102
7083
  var PreviewJoin_default = PreviewJoin;
@@ -7142,8 +7123,8 @@ var PreviewContainer = () => {
7142
7123
  var PreviewContainer_default = PreviewContainer;
7143
7124
 
7144
7125
  // src/Prebuilt/components/Toast/ToastContainer.jsx
7145
- import React58, { useEffect as useEffect24, useState as useState21 } from "react";
7146
- import { selectIsConnectedToRoom as selectIsConnectedToRoom4, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
7126
+ import React58, { useEffect as useEffect25, useState as useState20 } from "react";
7127
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom3, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
7147
7128
 
7148
7129
  // src/Prebuilt/components/Toast/Toast.jsx
7149
7130
  import React57 from "react";
@@ -7165,9 +7146,9 @@ var Toast2 = (_a7) => {
7165
7146
 
7166
7147
  // src/Prebuilt/components/Toast/ToastContainer.jsx
7167
7148
  var ToastContainer = () => {
7168
- const isConnected = useHMSStore27(selectIsConnectedToRoom4);
7169
- const [toasts, setToast] = useState21([]);
7170
- useEffect24(() => {
7149
+ const isConnected = useHMSStore27(selectIsConnectedToRoom3);
7150
+ const [toasts, setToast] = useState20([]);
7151
+ useEffect25(() => {
7171
7152
  ToastManager.addListener(setToast);
7172
7153
  return () => {
7173
7154
  ToastManager.removeListener(setToast);
@@ -7186,8 +7167,8 @@ var ToastContainer = () => {
7186
7167
  };
7187
7168
 
7188
7169
  // src/Prebuilt/plugins/FlyingEmoji.jsx
7189
- import React59, { useCallback as useCallback18, useEffect as useEffect25, useMemo as useMemo4, useState as useState22 } from "react";
7190
- import { useMedia as useMedia11 } from "react-use";
7170
+ import React59, { useCallback as useCallback18, useEffect as useEffect26, useMemo as useMemo4, useState as useState21 } from "react";
7171
+ import { useMedia as useMedia10 } from "react-use";
7191
7172
  import {
7192
7173
  selectLocalPeerID as selectLocalPeerID6,
7193
7174
  selectPeerNameByID as selectPeerNameByID2,
@@ -7221,8 +7202,8 @@ var getStartingPoints = (isMobile) => {
7221
7202
  function FlyingEmoji() {
7222
7203
  const localPeerId = useHMSStore28(selectLocalPeerID6);
7223
7204
  const vanillaStore = useHMSVanillaStore6();
7224
- const [emojis, setEmojis] = useState22([]);
7225
- const isMobile = useMedia11(config.media.md);
7205
+ const [emojis, setEmojis] = useState21([]);
7206
+ const isMobile = useMedia10(config.media.md);
7226
7207
  const startingPoints = useMemo4(() => getStartingPoints(isMobile), [isMobile]);
7227
7208
  const showFlyingEmoji = useCallback18(
7228
7209
  ({ emojiId, senderId }) => {
@@ -7252,7 +7233,7 @@ function FlyingEmoji() {
7252
7233
  type: EMOJI_REACTION_TYPE,
7253
7234
  onEvent: showFlyingEmoji
7254
7235
  });
7255
- useEffect25(() => {
7236
+ useEffect26(() => {
7256
7237
  window.showFlyingEmoji = showFlyingEmoji;
7257
7238
  }, [showFlyingEmoji]);
7258
7239
  return /* @__PURE__ */ React59.createElement(
@@ -7331,9 +7312,9 @@ function RemoteStopScreenshare() {
7331
7312
  }
7332
7313
 
7333
7314
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
7334
- import { useCallback as useCallback20, useEffect as useEffect27, useRef as useRef9 } from "react";
7315
+ import { useCallback as useCallback20, useEffect as useEffect28, useRef as useRef9 } from "react";
7335
7316
  import {
7336
- selectIsConnectedToRoom as selectIsConnectedToRoom6,
7317
+ selectIsConnectedToRoom as selectIsConnectedToRoom5,
7337
7318
  selectPermissions as selectPermissions4,
7338
7319
  useHMSActions as useHMSActions19,
7339
7320
  useHMSStore as useHMSStore30,
@@ -7341,11 +7322,11 @@ import {
7341
7322
  } from "@100mslive/react-sdk";
7342
7323
 
7343
7324
  // src/Prebuilt/common/hooks.js
7344
- import { useEffect as useEffect26, useRef as useRef8, useState as useState23 } from "react";
7325
+ import { useEffect as useEffect27, useRef as useRef8, useState as useState22 } from "react";
7345
7326
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
7346
7327
  import {
7347
7328
  selectAvailableRoleNames as selectAvailableRoleNames2,
7348
- selectIsConnectedToRoom as selectIsConnectedToRoom5,
7329
+ selectIsConnectedToRoom as selectIsConnectedToRoom4,
7349
7330
  selectPeerCount,
7350
7331
  selectPeerMetadata as selectPeerMetadata3,
7351
7332
  selectPeers,
@@ -7365,7 +7346,7 @@ var useShowStreamingUI = () => {
7365
7346
  };
7366
7347
  var useParticipants2 = (params) => {
7367
7348
  var _a7;
7368
- const isConnected = useHMSStore29(selectIsConnectedToRoom5);
7349
+ const isConnected = useHMSStore29(selectIsConnectedToRoom4);
7369
7350
  const peerCount = useHMSStore29(selectPeerCount);
7370
7351
  const availableRoles = useHMSStore29(selectAvailableRoleNames2);
7371
7352
  let participantList = useHMSStore29(isConnected ? selectPeers : selectRemotePeers);
@@ -7392,7 +7373,7 @@ var useAutoStartStreaming = () => {
7392
7373
  const permissions = useHMSStore30(selectPermissions4);
7393
7374
  const showStreamingUI = useShowStreamingUI();
7394
7375
  const hmsActions = useHMSActions19();
7395
- const isConnected = useHMSStore30(selectIsConnectedToRoom6);
7376
+ const isConnected = useHMSStore30(selectIsConnectedToRoom5);
7396
7377
  const { isHLSRunning } = useRecordingStreaming5();
7397
7378
  const streamStartedRef = useRef9(false);
7398
7379
  const startHLS = useCallback20(() => __async(void 0, null, function* () {
@@ -7412,12 +7393,12 @@ var useAutoStartStreaming = () => {
7412
7393
  setHLSStarted(false);
7413
7394
  }
7414
7395
  }), [hmsActions, isHLSRunning, isHLSStarted, setHLSStarted, showStreamingUI]);
7415
- useEffect27(() => {
7396
+ useEffect28(() => {
7416
7397
  if (!isHLSStarted && !isHLSRunning) {
7417
7398
  streamStartedRef.current = false;
7418
7399
  }
7419
7400
  }, [isHLSStarted, isHLSRunning]);
7420
- useEffect27(() => {
7401
+ useEffect28(() => {
7421
7402
  if (!isConnected || streamStartedRef.current || !(permissions == null ? void 0 : permissions.hlsStreaming)) {
7422
7403
  return;
7423
7404
  }
@@ -7426,7 +7407,7 @@ var useAutoStartStreaming = () => {
7426
7407
  };
7427
7408
 
7428
7409
  // src/Prebuilt/App.tsx
7429
- var Conference = React61.lazy(() => import("./conference-UWLJHMB2.js"));
7410
+ var Conference = React61.lazy(() => import("./conference-MPZNWHV5.js"));
7430
7411
  var HMSPrebuilt = React61.forwardRef(
7431
7412
  ({
7432
7413
  roomCode = "",
@@ -7444,7 +7425,7 @@ var HMSPrebuilt = React61.forwardRef(
7444
7425
  const metadata = "";
7445
7426
  const reactiveStore = useRef10();
7446
7427
  const [hydrated, setHydrated] = React61.useState(false);
7447
- useEffect28(() => {
7428
+ useEffect29(() => {
7448
7429
  setHydrated(true);
7449
7430
  const hms = new HMSReactiveStore();
7450
7431
  const hmsStore = hms.getStore();
@@ -7459,13 +7440,13 @@ var HMSPrebuilt = React61.forwardRef(
7459
7440
  hmsNotifications
7460
7441
  };
7461
7442
  }, []);
7462
- useEffect28(() => {
7443
+ useEffect29(() => {
7463
7444
  if (!ref || !reactiveStore.current) {
7464
7445
  return;
7465
7446
  }
7466
7447
  ref.current = __spreadValues({}, reactiveStore.current);
7467
7448
  }, [ref]);
7468
- useEffect28(
7449
+ useEffect29(
7469
7450
  () => () => {
7470
7451
  var _a8;
7471
7452
  (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
@@ -7600,9 +7581,9 @@ var RouteList = () => {
7600
7581
  )), isLeaveScreenEnabled ? /* @__PURE__ */ React61.createElement(Route, { path: "leave" }, /* @__PURE__ */ React61.createElement(Route, { path: ":roomId/:role", element: /* @__PURE__ */ React61.createElement(PostLeave_default, null) }), /* @__PURE__ */ React61.createElement(Route, { path: ":roomId", element: /* @__PURE__ */ React61.createElement(PostLeave_default, null) })) : null, /* @__PURE__ */ React61.createElement(Route, { path: "/:roomId/:role", element: /* @__PURE__ */ React61.createElement(Redirector, { showPreview: isPreviewScreenEnabled }) }), /* @__PURE__ */ React61.createElement(Route, { path: "/:roomId/", element: /* @__PURE__ */ React61.createElement(Redirector, { showPreview: isPreviewScreenEnabled }) }));
7601
7582
  };
7602
7583
  var BackSwipe = () => {
7603
- const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom7);
7584
+ const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom6);
7604
7585
  const hmsActions = useHMSActions20();
7605
- useEffect28(() => {
7586
+ useEffect29(() => {
7606
7587
  const onRouteLeave = () => __async(void 0, null, function* () {
7607
7588
  if (isConnectedToRoom) {
7608
7589
  yield hmsActions.leave();
@@ -7701,6 +7682,7 @@ export {
7701
7682
  ROLE_CHANGE_DECLINED,
7702
7683
  useIsSidepaneTypeOpen,
7703
7684
  useSidepaneToggle,
7685
+ useSidepaneReset,
7704
7686
  useUISettings,
7705
7687
  useSetUiSettings,
7706
7688
  useWaitingViewerRole,
@@ -7747,4 +7729,4 @@ export {
7747
7729
  HMSPrebuilt,
7748
7730
  Progress
7749
7731
  };
7750
- //# sourceMappingURL=chunk-LYSAET4G.js.map
7732
+ //# sourceMappingURL=chunk-6JF3GAOH.js.map