@100mslive/roomkit-react 0.1.6-alpha.2 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/{HLSView-QMU5JK7U.js → HLSView-4NSE37G7.js} +3 -3
  2. package/dist/Prebuilt/components/Leave/DesktopLeaveRoom.d.ts +2 -1
  3. package/dist/Prebuilt/components/Leave/MwebLeaveRoom.d.ts +2 -1
  4. package/dist/{VirtualBackground-37FXUPYO.js → VirtualBackground-A5UM363O.js} +3 -3
  5. package/dist/{chunk-ZKE2N5LH.js → chunk-BUWIMYLW.js} +2 -2
  6. package/dist/{chunk-KBVIZGYW.js → chunk-NMOZ33TX.js} +2 -2
  7. package/dist/{chunk-KBVIZGYW.js.map → chunk-NMOZ33TX.js.map} +1 -1
  8. package/dist/{chunk-WVGGQZK4.js → chunk-Q6U22HIE.js} +65 -77
  9. package/dist/chunk-Q6U22HIE.js.map +7 -0
  10. package/dist/{conference-FJJQ4TXX.js → conference-S7R3O4OC.js} +72 -50
  11. package/dist/conference-S7R3O4OC.js.map +7 -0
  12. package/dist/index.cjs.js +165 -153
  13. package/dist/index.cjs.js.map +3 -3
  14. package/dist/index.js +2 -2
  15. package/dist/meta.cjs.json +43 -43
  16. package/dist/meta.esbuild.json +75 -75
  17. package/package.json +6 -6
  18. package/src/Button/Button.tsx +6 -6
  19. package/src/Prebuilt/components/Chat/Chat.jsx +1 -3
  20. package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +1 -0
  21. package/src/Prebuilt/components/Footer/Footer.tsx +1 -1
  22. package/src/Prebuilt/components/Footer/ParticipantList.jsx +4 -3
  23. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +1 -1
  24. package/src/Prebuilt/components/Header/HeaderComponents.jsx +2 -8
  25. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +7 -9
  26. package/src/Prebuilt/components/Leave/LeaveRoom.tsx +6 -2
  27. package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +7 -4
  28. package/src/Prebuilt/components/Notifications/Notifications.jsx +4 -10
  29. package/src/Prebuilt/components/RoleChangeRequestModal.tsx +1 -2
  30. package/src/Prebuilt/components/ScreenshareTile.jsx +15 -7
  31. package/src/Prebuilt/components/SidePaneTabs.tsx +78 -57
  32. package/src/Prebuilt/components/conference.jsx +9 -1
  33. package/dist/chunk-WVGGQZK4.js.map +0 -7
  34. package/dist/conference-FJJQ4TXX.js.map +0 -7
  35. /package/dist/{HLSView-QMU5JK7U.js.map → HLSView-4NSE37G7.js.map} +0 -0
  36. /package/dist/{VirtualBackground-37FXUPYO.js.map → VirtualBackground-A5UM363O.js.map} +0 -0
  37. /package/dist/{chunk-ZKE2N5LH.js.map → chunk-BUWIMYLW.js.map} +0 -0
@@ -35,7 +35,7 @@ import {
35
35
  textEllipsis,
36
36
  theme,
37
37
  toastAnimation
38
- } from "./chunk-KBVIZGYW.js";
38
+ } from "./chunk-NMOZ33TX.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",
@@ -1995,7 +1995,7 @@ import { BrowserRouter, MemoryRouter, Navigate, Route, Routes, useParams as useP
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";
@@ -2951,12 +2951,10 @@ 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,
2955
2954
  selectRoomState as selectRoomState3,
2956
2955
  useCustomEvent,
2957
2956
  useHMSNotifications as useHMSNotifications7,
2958
- useHMSStore as useHMSStore8,
2959
- useHMSVanillaStore as useHMSVanillaStore4
2957
+ useHMSStore as useHMSStore8
2960
2958
  } from "@100mslive/react-sdk";
2961
2959
 
2962
2960
  // src/Prebuilt/provider/roomLayoutProvider/index.tsx
@@ -4185,7 +4183,6 @@ function Notifications() {
4185
4183
  const notification = useHMSNotifications7();
4186
4184
  const navigate = useNavigate2();
4187
4185
  const params = useParams2();
4188
- const vanillaStore = useHMSVanillaStore4();
4189
4186
  const subscribedNotifications = useSubscribedNotifications() || {};
4190
4187
  const roomState = useHMSStore8(selectRoomState3);
4191
4188
  const updateRoomLayoutForRole = useUpdateRoomLayout();
@@ -4199,7 +4196,7 @@ function Notifications() {
4199
4196
  }, []);
4200
4197
  useCustomEvent({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
4201
4198
  useEffect16(() => {
4202
- var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
4199
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
4203
4200
  if (!notification || isNotificationDisabled) {
4204
4201
  return;
4205
4202
  }
@@ -4259,22 +4256,19 @@ function Notifications() {
4259
4256
  break;
4260
4257
  case HMSNotificationTypes7.ROLE_UPDATED: {
4261
4258
  if ((_m = notification.data) == null ? void 0 : _m.isLocal) {
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
- }
4259
+ ToastManager.addToast({
4260
+ title: `You are now a ${notification.data.roleName}`
4261
+ });
4262
+ updateRoomLayoutForRole(notification.data.roleName);
4269
4263
  }
4270
4264
  break;
4271
4265
  }
4272
4266
  case HMSNotificationTypes7.CHANGE_TRACK_STATE_REQUEST:
4273
- const track = (_p = notification.data) == null ? void 0 : _p.track;
4267
+ const track = (_n = notification.data) == null ? void 0 : _n.track;
4274
4268
  if (!notification.data.enabled) {
4275
4269
  ToastManager.addToast({
4276
4270
  title: `Your ${track.source} ${track.type} was muted by
4277
- ${(_q = notification.data.requestedBy) == null ? void 0 : _q.name}.`
4271
+ ${(_o = notification.data.requestedBy) == null ? void 0 : _o.name}.`
4278
4272
  });
4279
4273
  }
4280
4274
  break;
@@ -4308,13 +4302,12 @@ import { ExitIcon } from "@100mslive/react-icons";
4308
4302
 
4309
4303
  // src/Prebuilt/components/Header/Header.tsx
4310
4304
  import React36 from "react";
4311
- import { useMedia as useMedia4 } from "react-use";
4305
+ import { useMedia as useMedia3 } from "react-use";
4312
4306
  import { HMSRoomState as HMSRoomState5, selectRoomState as selectRoomState5, useHMSStore as useHMSStore17 } from "@100mslive/react-sdk";
4313
4307
 
4314
4308
  // src/Prebuilt/components/Header/HeaderComponents.jsx
4315
4309
  import React31, { useEffect as useEffect17, useState as useState11 } from "react";
4316
- import { useMedia as useMedia2 } from "react-use";
4317
- import { selectDominantSpeaker, selectIsConnectedToRoom as selectIsConnectedToRoom2, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
4310
+ import { selectDominantSpeaker, useHMSStore as useHMSStore9 } from "@100mslive/react-sdk";
4318
4311
  import { VolumeOneIcon } from "@100mslive/react-icons";
4319
4312
  var SpeakerTag = () => {
4320
4313
  const dominantSpeaker = useHMSStore9(selectDominantSpeaker);
@@ -4342,17 +4335,12 @@ var Logo = () => {
4342
4335
  var _a7;
4343
4336
  const roomLayout = useRoomLayout();
4344
4337
  const logo = (_a7 = roomLayout == null ? void 0 : roomLayout.logo) == null ? void 0 : _a7.url;
4345
- const isMobile = useMedia2(config.media.md);
4346
- const isConnected = useHMSStore9(selectIsConnectedToRoom2);
4347
4338
  const [hideImage, setHideImage] = useState11(false);
4348
4339
  useEffect17(() => {
4349
4340
  if (hideImage) {
4350
4341
  setHideImage(false);
4351
4342
  }
4352
4343
  }, [logo]);
4353
- if (isConnected && isMobile) {
4354
- return null;
4355
- }
4356
4344
  return logo && !hideImage ? /* @__PURE__ */ React31.createElement(
4357
4345
  LogoImg,
4358
4346
  {
@@ -4368,11 +4356,11 @@ var Logo = () => {
4368
4356
 
4369
4357
  // src/Prebuilt/components/Header/StreamActions.tsx
4370
4358
  import React34, { useCallback as useCallback13, useEffect as useEffect19, useRef as useRef5, useState as useState13 } from "react";
4371
- import { useMedia as useMedia3 } from "react-use";
4359
+ import { useMedia as useMedia2 } from "react-use";
4372
4360
  import {
4373
4361
  HMSRoomState as HMSRoomState4,
4374
4362
  selectHLSState as selectHLSState2,
4375
- selectIsConnectedToRoom as selectIsConnectedToRoom3,
4363
+ selectIsConnectedToRoom as selectIsConnectedToRoom2,
4376
4364
  selectPermissions,
4377
4365
  selectRoomState as selectRoomState4,
4378
4366
  useHMSActions as useHMSActions12,
@@ -4499,19 +4487,19 @@ import { selectLocalPeerID as selectLocalPeerID2, selectPeerByCondition, useHMSS
4499
4487
  import { useCallback as useCallback9 } from "react";
4500
4488
  import {
4501
4489
  selectLocalPeerID,
4502
- selectPeerMetadata as selectPeerMetadata2,
4490
+ selectPeerMetadata,
4503
4491
  useHMSActions as useHMSActions9,
4504
4492
  useHMSStore as useHMSStore10,
4505
- useHMSVanillaStore as useHMSVanillaStore5
4493
+ useHMSVanillaStore as useHMSVanillaStore4
4506
4494
  } from "@100mslive/react-sdk";
4507
4495
  var useMyMetadata = () => {
4508
4496
  const hmsActions = useHMSActions9();
4509
4497
  const localPeerId = useHMSStore10(selectLocalPeerID);
4510
- const vanillaStore = useHMSVanillaStore5();
4511
- const metaData = useHMSStore10(selectPeerMetadata2(localPeerId));
4498
+ const vanillaStore = useHMSVanillaStore4();
4499
+ const metaData = useHMSStore10(selectPeerMetadata(localPeerId));
4512
4500
  const update = (updatedFields) => __async(void 0, null, function* () {
4513
4501
  try {
4514
- const currentMetadata = vanillaStore.getState(selectPeerMetadata2(localPeerId));
4502
+ const currentMetadata = vanillaStore.getState(selectPeerMetadata(localPeerId));
4515
4503
  yield hmsActions.changeMetadata(Object.assign(currentMetadata, updatedFields));
4516
4504
  return true;
4517
4505
  } catch (error) {
@@ -4748,7 +4736,7 @@ var LiveStatus = () => {
4748
4736
  var _a7;
4749
4737
  const { isHLSRunning, isRTMPRunning } = useRecordingStreaming2();
4750
4738
  const hlsState = useHMSStore15(selectHLSState2);
4751
- const isMobile = useMedia3(config.media.md);
4739
+ const isMobile = useMedia2(config.media.md);
4752
4740
  const intervalRef = useRef5(null);
4753
4741
  const [liveTime, setLiveTime] = useState13(0);
4754
4742
  const startTimer = useCallback13(() => {
@@ -4793,7 +4781,7 @@ var LiveStatus = () => {
4793
4781
  var RecordingStatus = () => {
4794
4782
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = useRecordingStreaming2();
4795
4783
  const permissions = useHMSStore15(selectPermissions);
4796
- const isMobile = useMedia3(config.media.md);
4784
+ const isMobile = useMedia2(config.media.md);
4797
4785
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
4798
4786
  // so no need to show this as it duplicates
4799
4787
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -4892,8 +4880,8 @@ var StartRecording = () => {
4892
4880
  );
4893
4881
  };
4894
4882
  var StreamActions = () => {
4895
- const isConnected = useHMSStore15(selectIsConnectedToRoom3);
4896
- const isMobile = useMedia3(config.media.md);
4883
+ const isConnected = useHMSStore15(selectIsConnectedToRoom2);
4884
+ const isMobile = useMedia2(config.media.md);
4897
4885
  const roomState = useHMSStore15(selectRoomState4);
4898
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);
4899
4887
  };
@@ -5048,7 +5036,7 @@ var SelectWithLabel = ({ label, icon = /* @__PURE__ */ React35.createElement(Rea
5048
5036
  // src/Prebuilt/components/Header/Header.tsx
5049
5037
  var Header2 = () => {
5050
5038
  const roomState = useHMSStore17(selectRoomState5);
5051
- const isMobile = useMedia4(config.media.md);
5039
+ const isMobile = useMedia3(config.media.md);
5052
5040
  if (roomState !== HMSRoomState5.Connected) {
5053
5041
  return /* @__PURE__ */ React36.createElement(React36.Fragment, null);
5054
5042
  }
@@ -5125,7 +5113,7 @@ import { useSearchParam } from "react-use";
5125
5113
 
5126
5114
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
5127
5115
  import React55, { Fragment as Fragment6, Suspense, useCallback as useCallback17, useEffect as useEffect24, useState as useState19 } from "react";
5128
- import { useMedia as useMedia10 } from "react-use";
5116
+ import { useMedia as useMedia9 } from "react-use";
5129
5117
  import {
5130
5118
  HMSRoomState as HMSRoomState7,
5131
5119
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled5,
@@ -5534,7 +5522,7 @@ var TileConnection_default = TileConnection;
5534
5522
 
5535
5523
  // src/Prebuilt/components/Settings/SettingsModal.jsx
5536
5524
  import React48, { useCallback as useCallback15, useEffect as useEffect21, useState as useState15 } from "react";
5537
- import { useMedia as useMedia5 } from "react-use";
5525
+ import { useMedia as useMedia4 } from "react-use";
5538
5526
  import { ChevronLeftIcon, CrossIcon as CrossIcon6 } from "@100mslive/react-icons";
5539
5527
 
5540
5528
  // src/Prebuilt/components/Settings/common.js
@@ -5944,7 +5932,7 @@ var settingsList = [
5944
5932
  // src/Prebuilt/components/Settings/SettingsModal.jsx
5945
5933
  var SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ React48.createElement(React48.Fragment, null) }) => {
5946
5934
  const mediaQueryLg = config.media.md;
5947
- const isMobile = useMedia5(mediaQueryLg);
5935
+ const isMobile = useMedia4(mediaQueryLg);
5948
5936
  const [showSetting, setShowSetting] = useState15(
5949
5937
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
5950
5938
  );
@@ -6150,20 +6138,20 @@ import {
6150
6138
  selectAudioTrackByPeerID as selectAudioTrackByPeerID2,
6151
6139
  selectIsPeerAudioEnabled,
6152
6140
  selectLocalPeerID as selectLocalPeerID5,
6153
- selectPeerMetadata as selectPeerMetadata3,
6141
+ selectPeerMetadata as selectPeerMetadata2,
6154
6142
  selectPeerNameByID,
6155
6143
  selectSessionStore as selectSessionStore3,
6156
6144
  selectTrackAudioByID,
6157
6145
  selectVideoTrackByID as selectVideoTrackByID4,
6158
6146
  selectVideoTrackByPeerID as selectVideoTrackByPeerID3,
6159
6147
  useHMSStore as useHMSStore25,
6160
- useHMSVanillaStore as useHMSVanillaStore6
6148
+ useHMSVanillaStore as useHMSVanillaStore5
6161
6149
  } from "@100mslive/react-sdk";
6162
6150
  import { BrbTileIcon, HandIcon as HandIcon3, MicOffIcon as MicOffIcon3 } from "@100mslive/react-icons";
6163
6151
 
6164
6152
  // src/Prebuilt/components/TileMenu/TileMenu.jsx
6165
6153
  import React52, { useState as useState17 } from "react";
6166
- import { useMedia as useMedia8 } from "react-use";
6154
+ import { useMedia as useMedia7 } from "react-use";
6167
6155
  import {
6168
6156
  selectLocalPeerID as selectLocalPeerID4,
6169
6157
  selectPeerByID as selectPeerByID2,
@@ -6177,7 +6165,7 @@ import { CrossIcon as CrossIcon8, VerticalMenuIcon as VerticalMenuIcon2 } from "
6177
6165
 
6178
6166
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx
6179
6167
  import React50, { useState as useState16 } from "react";
6180
- import { useMedia as useMedia6 } from "react-use";
6168
+ import { useMedia as useMedia5 } from "react-use";
6181
6169
  import { selectLocalPeerName, useHMSActions as useHMSActions16, useHMSStore as useHMSStore22 } from "@100mslive/react-sdk";
6182
6170
 
6183
6171
  // src/Prebuilt/components/MoreSettings/ChangeNameContent.jsx
@@ -6292,7 +6280,7 @@ var ChangeNameModal = ({ onOpenChange, openParentSheet = null }) => {
6292
6280
  const hmsActions = useHMSActions16();
6293
6281
  const localPeerName = useHMSStore22(selectLocalPeerName);
6294
6282
  const [currentName, setCurrentName] = useState16(localPeerName);
6295
- const isMobile = useMedia6(config.media.md);
6283
+ const isMobile = useMedia5(config.media.md);
6296
6284
  const changeName = () => __async(void 0, null, function* () {
6297
6285
  const name = currentName.trim();
6298
6286
  if (!name || name === localPeerName) {
@@ -6330,7 +6318,7 @@ var ChangeNameModal = ({ onOpenChange, openParentSheet = null }) => {
6330
6318
 
6331
6319
  // src/Prebuilt/components/TileMenu/TileMenuContent.jsx
6332
6320
  import React51, { Fragment as Fragment4 } from "react";
6333
- import { useMedia as useMedia7 } from "react-use";
6321
+ import { useMedia as useMedia6 } from "react-use";
6334
6322
  import {
6335
6323
  selectPermissions as selectPermissions2,
6336
6324
  selectSessionStore as selectSessionStore2,
@@ -6496,7 +6484,7 @@ var TileMenuContent = (props) => {
6496
6484
  const { sendEvent } = useCustomEvent2({
6497
6485
  type: REMOTE_STOP_SCREENSHARE_TYPE
6498
6486
  });
6499
- const isMobile = useMedia7(config.media.md);
6487
+ const isMobile = useMedia6(config.media.md);
6500
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(
6501
6489
  StyledMenuTile.ItemButton,
6502
6490
  {
@@ -6601,7 +6589,7 @@ var TileMenu = ({
6601
6589
  const showPinAction = audioTrackID || videoTrackID && isPrimaryVideoTrack;
6602
6590
  const track = useHMSStore24(selectTrackByID3(videoTrackID));
6603
6591
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
6604
- const isMobile = useMedia8(config.media.md);
6592
+ const isMobile = useMedia7(config.media.md);
6605
6593
  const peer = useHMSStore24(selectPeerByID2(peerID));
6606
6594
  const [showNameChangeModal, setShowNameChangeModal] = useState17(false);
6607
6595
  useDropdownList({ open, name: "TileMenu" });
@@ -6810,7 +6798,7 @@ var heightAnimation = (value) => keyframes({
6810
6798
  }
6811
6799
  });
6812
6800
  var AudioLevelIndicator = ({ trackId, value, delay }) => {
6813
- const vanillaStore = useHMSVanillaStore6();
6801
+ const vanillaStore = useHMSVanillaStore5();
6814
6802
  const ref = useRef7();
6815
6803
  useEffect23(() => {
6816
6804
  const unsubscribe = vanillaStore.subscribe((audioLevel) => {
@@ -6839,7 +6827,7 @@ var AudioLevel = ({ trackId }) => {
6839
6827
  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 }))));
6840
6828
  };
6841
6829
  var PeerMetadata = ({ peerId }) => {
6842
- const metaData = useHMSStore25(selectPeerMetadata3(peerId));
6830
+ const metaData = useHMSStore25(selectPeerMetadata2(peerId));
6843
6831
  const isHandRaised = (metaData == null ? void 0 : metaData.isHandRaised) || false;
6844
6832
  const isBRB = (metaData == null ? void 0 : metaData.isBRBOn) || false;
6845
6833
  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);
@@ -6849,7 +6837,7 @@ var VideoTile_default = VideoTile;
6849
6837
 
6850
6838
  // src/Prebuilt/components/Preview/PreviewForm.tsx
6851
6839
  import React54 from "react";
6852
- import { useMedia as useMedia9 } from "react-use";
6840
+ import { useMedia as useMedia8 } from "react-use";
6853
6841
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType2 } from "@100mslive/types-prebuilt/elements/join_form";
6854
6842
  import { useRecordingStreaming as useRecordingStreaming3 } from "@100mslive/react-sdk";
6855
6843
  import { RadioIcon } from "@100mslive/react-icons";
@@ -6865,7 +6853,7 @@ var PreviewForm = ({
6865
6853
  const formSubmit = (e) => {
6866
6854
  e.preventDefault();
6867
6855
  };
6868
- const isMobile = useMedia9(config.media.md);
6856
+ const isMobile = useMedia8(config.media.md);
6869
6857
  const { isHLSRunning } = useRecordingStreaming3();
6870
6858
  const layout = useRoomLayout();
6871
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) || {};
@@ -6915,7 +6903,7 @@ var Form = styled("form", {
6915
6903
  var PreviewForm_default = PreviewForm;
6916
6904
 
6917
6905
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
6918
- var VirtualBackground = React55.lazy(() => import("./VirtualBackground-37FXUPYO.js"));
6906
+ var VirtualBackground = React55.lazy(() => import("./VirtualBackground-A5UM363O.js"));
6919
6907
  var getParticipantChipContent = (peerCount = 0) => {
6920
6908
  if (peerCount === 0) {
6921
6909
  return "You are the first to join";
@@ -7044,7 +7032,7 @@ var PreviewTile = ({ name, error }) => {
7044
7032
  const track = useHMSStore26(trackSelector);
7045
7033
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
7046
7034
  const videoTrack = useHMSStore26(selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack));
7047
- const isMobile = useMedia10(config.media.md);
7035
+ const isMobile = useMedia9(config.media.md);
7048
7036
  const aspectRatio = (videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height) ? videoTrack.width / videoTrack.height : isMobile ? 9 / 16 : 16 / 9;
7049
7037
  return /* @__PURE__ */ React55.createElement(
7050
7038
  StyledVideoTile.Container,
@@ -7074,7 +7062,7 @@ var PreviewTile = ({ name, error }) => {
7074
7062
  );
7075
7063
  };
7076
7064
  var PreviewControls = ({ hideSettings }) => {
7077
- const isMobile = useMedia10(config.media.md);
7065
+ const isMobile = useMedia9(config.media.md);
7078
7066
  return /* @__PURE__ */ React55.createElement(
7079
7067
  Flex,
7080
7068
  {
@@ -7136,7 +7124,7 @@ var PreviewContainer_default = PreviewContainer;
7136
7124
 
7137
7125
  // src/Prebuilt/components/Toast/ToastContainer.jsx
7138
7126
  import React58, { useEffect as useEffect25, useState as useState20 } from "react";
7139
- import { selectIsConnectedToRoom as selectIsConnectedToRoom4, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
7127
+ import { selectIsConnectedToRoom as selectIsConnectedToRoom3, useHMSStore as useHMSStore27 } from "@100mslive/react-sdk";
7140
7128
 
7141
7129
  // src/Prebuilt/components/Toast/Toast.jsx
7142
7130
  import React57 from "react";
@@ -7158,7 +7146,7 @@ var Toast2 = (_a7) => {
7158
7146
 
7159
7147
  // src/Prebuilt/components/Toast/ToastContainer.jsx
7160
7148
  var ToastContainer = () => {
7161
- const isConnected = useHMSStore27(selectIsConnectedToRoom4);
7149
+ const isConnected = useHMSStore27(selectIsConnectedToRoom3);
7162
7150
  const [toasts, setToast] = useState20([]);
7163
7151
  useEffect25(() => {
7164
7152
  ToastManager.addListener(setToast);
@@ -7180,13 +7168,13 @@ var ToastContainer = () => {
7180
7168
 
7181
7169
  // src/Prebuilt/plugins/FlyingEmoji.jsx
7182
7170
  import React59, { useCallback as useCallback18, useEffect as useEffect26, useMemo as useMemo4, useState as useState21 } from "react";
7183
- import { useMedia as useMedia11 } from "react-use";
7171
+ import { useMedia as useMedia10 } from "react-use";
7184
7172
  import {
7185
7173
  selectLocalPeerID as selectLocalPeerID6,
7186
7174
  selectPeerNameByID as selectPeerNameByID2,
7187
7175
  useCustomEvent as useCustomEvent3,
7188
7176
  useHMSStore as useHMSStore28,
7189
- useHMSVanillaStore as useHMSVanillaStore7
7177
+ useHMSVanillaStore as useHMSVanillaStore6
7190
7178
  } from "@100mslive/react-sdk";
7191
7179
  var emojiCount = 1;
7192
7180
  var flyAndFade = keyframes({
@@ -7213,9 +7201,9 @@ var getStartingPoints = (isMobile) => {
7213
7201
  };
7214
7202
  function FlyingEmoji() {
7215
7203
  const localPeerId = useHMSStore28(selectLocalPeerID6);
7216
- const vanillaStore = useHMSVanillaStore7();
7204
+ const vanillaStore = useHMSVanillaStore6();
7217
7205
  const [emojis, setEmojis] = useState21([]);
7218
- const isMobile = useMedia11(config.media.md);
7206
+ const isMobile = useMedia10(config.media.md);
7219
7207
  const startingPoints = useMemo4(() => getStartingPoints(isMobile), [isMobile]);
7220
7208
  const showFlyingEmoji = useCallback18(
7221
7209
  ({ emojiId, senderId }) => {
@@ -7326,7 +7314,7 @@ function RemoteStopScreenshare() {
7326
7314
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
7327
7315
  import { useCallback as useCallback20, useEffect as useEffect28, useRef as useRef9 } from "react";
7328
7316
  import {
7329
- selectIsConnectedToRoom as selectIsConnectedToRoom6,
7317
+ selectIsConnectedToRoom as selectIsConnectedToRoom5,
7330
7318
  selectPermissions as selectPermissions4,
7331
7319
  useHMSActions as useHMSActions19,
7332
7320
  useHMSStore as useHMSStore30,
@@ -7338,13 +7326,13 @@ import { useEffect as useEffect27, useRef as useRef8, useState as useState22 } f
7338
7326
  import { JoinForm_JoinBtnType as JoinForm_JoinBtnType3 } from "@100mslive/types-prebuilt/elements/join_form";
7339
7327
  import {
7340
7328
  selectAvailableRoleNames as selectAvailableRoleNames2,
7341
- selectIsConnectedToRoom as selectIsConnectedToRoom5,
7329
+ selectIsConnectedToRoom as selectIsConnectedToRoom4,
7342
7330
  selectPeerCount,
7343
- selectPeerMetadata as selectPeerMetadata4,
7331
+ selectPeerMetadata as selectPeerMetadata3,
7344
7332
  selectPeers,
7345
7333
  selectRemotePeers,
7346
7334
  useHMSStore as useHMSStore29,
7347
- useHMSVanillaStore as useHMSVanillaStore8
7335
+ useHMSVanillaStore as useHMSVanillaStore7
7348
7336
  } from "@100mslive/react-sdk";
7349
7337
  var useFilteredRoles = () => {
7350
7338
  const roles = useHMSStore29(selectAvailableRoleNames2).filter((role) => !isInternalRole(role));
@@ -7358,15 +7346,15 @@ var useShowStreamingUI = () => {
7358
7346
  };
7359
7347
  var useParticipants2 = (params) => {
7360
7348
  var _a7;
7361
- const isConnected = useHMSStore29(selectIsConnectedToRoom5);
7349
+ const isConnected = useHMSStore29(selectIsConnectedToRoom4);
7362
7350
  const peerCount = useHMSStore29(selectPeerCount);
7363
7351
  const availableRoles = useHMSStore29(selectAvailableRoleNames2);
7364
7352
  let participantList = useHMSStore29(isConnected ? selectPeers : selectRemotePeers);
7365
7353
  const rolesWithParticipants = Array.from(new Set(participantList.map((peer) => peer.roleName)));
7366
- const vanillaStore = useHMSVanillaStore8();
7354
+ const vanillaStore = useHMSVanillaStore7();
7367
7355
  if ((_a7 = params == null ? void 0 : params.metadata) == null ? void 0 : _a7.isHandRaised) {
7368
7356
  participantList = participantList.filter((peer) => {
7369
- return vanillaStore.getState(selectPeerMetadata4(peer.id)).isHandRaised;
7357
+ return vanillaStore.getState(selectPeerMetadata3(peer.id)).isHandRaised;
7370
7358
  });
7371
7359
  }
7372
7360
  if ((params == null ? void 0 : params.role) && availableRoles.includes(params.role)) {
@@ -7385,7 +7373,7 @@ var useAutoStartStreaming = () => {
7385
7373
  const permissions = useHMSStore30(selectPermissions4);
7386
7374
  const showStreamingUI = useShowStreamingUI();
7387
7375
  const hmsActions = useHMSActions19();
7388
- const isConnected = useHMSStore30(selectIsConnectedToRoom6);
7376
+ const isConnected = useHMSStore30(selectIsConnectedToRoom5);
7389
7377
  const { isHLSRunning } = useRecordingStreaming5();
7390
7378
  const streamStartedRef = useRef9(false);
7391
7379
  const startHLS = useCallback20(() => __async(void 0, null, function* () {
@@ -7419,7 +7407,7 @@ var useAutoStartStreaming = () => {
7419
7407
  };
7420
7408
 
7421
7409
  // src/Prebuilt/App.tsx
7422
- var Conference = React61.lazy(() => import("./conference-FJJQ4TXX.js"));
7410
+ var Conference = React61.lazy(() => import("./conference-S7R3O4OC.js"));
7423
7411
  var HMSPrebuilt = React61.forwardRef(
7424
7412
  ({
7425
7413
  roomCode = "",
@@ -7593,7 +7581,7 @@ var RouteList = () => {
7593
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 }) }));
7594
7582
  };
7595
7583
  var BackSwipe = () => {
7596
- const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom7);
7584
+ const isConnectedToRoom = useHMSStore31(selectIsConnectedToRoom6);
7597
7585
  const hmsActions = useHMSActions20();
7598
7586
  useEffect29(() => {
7599
7587
  const onRouteLeave = () => __async(void 0, null, function* () {
@@ -7741,4 +7729,4 @@ export {
7741
7729
  HMSPrebuilt,
7742
7730
  Progress
7743
7731
  };
7744
- //# sourceMappingURL=chunk-WVGGQZK4.js.map
7732
+ //# sourceMappingURL=chunk-Q6U22HIE.js.map