@100mslive/roomkit-react 0.1.2-alpha.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActiveSpeakerView-ADEYHQMU.css → ActiveSpeakerView-ELWK3LNE.css} +2 -2
- package/dist/{PinnedTrackView-5DPVVOZW.css.map → ActiveSpeakerView-ELWK3LNE.css.map} +1 -1
- package/dist/{ActiveSpeakerView-4XPIRZOK.js → ActiveSpeakerView-I4XBBOOY.js} +6 -6
- package/dist/{HLSView-DWEEMZ6Z.css → HLSView-UPP5PDCE.css} +2 -2
- package/dist/{HLSView-DWEEMZ6Z.css.map → HLSView-UPP5PDCE.css.map} +1 -1
- package/dist/{HLSView-I26CVF5U.js → HLSView-VXI2RN37.js} +5 -5
- package/dist/{PinnedTrackView-5DPVVOZW.css → PinnedTrackView-NWN3H5EZ.css} +2 -2
- package/dist/{conference-BDCDGBIS.css.map → PinnedTrackView-NWN3H5EZ.css.map} +1 -1
- package/dist/{PinnedTrackView-GGTCNH5V.js → PinnedTrackView-V2COEYUL.js} +6 -6
- package/dist/{VirtualBackground-ZRRE4DUA.js → VirtualBackground-4RPLPBOQ.js} +3 -3
- package/dist/{chunk-KKLZ7K2L.js → chunk-2SV2DRIF.js} +7 -7
- package/dist/{chunk-KKLZ7K2L.js.map → chunk-2SV2DRIF.js.map} +2 -2
- package/dist/{chunk-LUND6FLY.js → chunk-MJNJRHS3.js} +46 -40
- package/dist/chunk-MJNJRHS3.js.map +7 -0
- package/dist/{chunk-MYK3T45M.js → chunk-PLKNFRDT.js} +3 -3
- package/dist/chunk-PLKNFRDT.js.map +7 -0
- package/dist/{chunk-THORW2WT.js → chunk-S4QRZ4VV.js} +2 -2
- package/dist/{chunk-4ISMCWQA.js → chunk-YJCBCMH4.js} +7 -6
- package/dist/chunk-YJCBCMH4.js.map +7 -0
- package/dist/{conference-5TDUAQ6K.js → conference-DGJFMV3O.js} +258 -434
- package/dist/conference-DGJFMV3O.js.map +7 -0
- package/dist/{conference-BDCDGBIS.css → conference-JFEDNIUG.css} +2 -2
- package/dist/{ActiveSpeakerView-ADEYHQMU.css.map → conference-JFEDNIUG.css.map} +1 -1
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +464 -656
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +4 -4
- package/dist/meta.cjs.json +46 -166
- package/dist/meta.esbuild.json +136 -256
- package/dist/{transcription-PYTSSAOB.js → transcription-KASUU6FK.js} +3 -3
- package/package.json +6 -6
- package/src/Button/Button.tsx +6 -2
- package/src/Loading/Loading.tsx +1 -1
- package/src/Prebuilt/App.jsx +4 -1
- package/src/Prebuilt/AppContext.jsx +1 -1
- package/src/Prebuilt/Prebuilt.stories.tsx +4 -0
- package/src/Prebuilt/components/Footer/ConferencingFooter.jsx +1 -4
- package/src/Prebuilt/components/Notifications/PeerNotifications.jsx +2 -1
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.jsx +13 -44
- package/src/Prebuilt/components/Preview/PreviewContainer.jsx +4 -1
- package/src/Prebuilt/components/Preview/PreviewForm.jsx +5 -7
- package/src/Prebuilt/components/Preview/PreviewJoin.jsx +11 -7
- package/src/Theme/base.config.ts +3 -3
- package/src/Theme/stitches.config.ts +2 -1
- package/src/VideoTile/StyledVideoTile.tsx +1 -1
- package/dist/chunk-4ISMCWQA.js.map +0 -7
- package/dist/chunk-LUND6FLY.js.map +0 -7
- package/dist/chunk-MYK3T45M.js.map +0 -7
- package/dist/conference-5TDUAQ6K.js.map +0 -7
- package/src/assets/android-perm-0.png +0 -0
- /package/dist/{ActiveSpeakerView-4XPIRZOK.js.map → ActiveSpeakerView-I4XBBOOY.js.map} +0 -0
- /package/dist/{HLSView-I26CVF5U.js.map → HLSView-VXI2RN37.js.map} +0 -0
- /package/dist/{PinnedTrackView-GGTCNH5V.js.map → PinnedTrackView-V2COEYUL.js.map} +0 -0
- /package/dist/{VirtualBackground-ZRRE4DUA.js.map → VirtualBackground-4RPLPBOQ.js.map} +0 -0
- /package/dist/{chunk-THORW2WT.js.map → chunk-S4QRZ4VV.js.map} +0 -0
- /package/dist/{transcription-PYTSSAOB.js.map → transcription-KASUU6FK.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
VideoList_default,
|
|
7
7
|
VideoTile_default,
|
|
8
8
|
useAppConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2SV2DRIF.js";
|
|
10
10
|
import {
|
|
11
11
|
AudioVideoToggle,
|
|
12
12
|
Button,
|
|
@@ -70,17 +70,17 @@ import {
|
|
|
70
70
|
useUserPreferences,
|
|
71
71
|
useWaitingViewerRole,
|
|
72
72
|
useWhiteboardMetadata
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-MJNJRHS3.js";
|
|
74
74
|
import {
|
|
75
75
|
Loading,
|
|
76
76
|
useIsFeatureEnabled,
|
|
77
77
|
useRolePreference
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-PLKNFRDT.js";
|
|
79
79
|
import {
|
|
80
80
|
Box,
|
|
81
81
|
Flex,
|
|
82
82
|
Text
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-S4QRZ4VV.js";
|
|
84
84
|
import {
|
|
85
85
|
APP_DATA,
|
|
86
86
|
DEFAULT_HLS_VIEWER_ROLE,
|
|
@@ -108,11 +108,11 @@ import {
|
|
|
108
108
|
isMacOS,
|
|
109
109
|
isSafari,
|
|
110
110
|
styled
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-YJCBCMH4.js";
|
|
112
112
|
|
|
113
113
|
// src/Prebuilt/components/conference.jsx
|
|
114
114
|
init_define_process_env();
|
|
115
|
-
import
|
|
115
|
+
import React38, { useEffect as useEffect9, useRef as useRef7, useState as useState17 } from "react";
|
|
116
116
|
import { useParams } from "react-router-dom";
|
|
117
117
|
import { usePrevious } from "react-use";
|
|
118
118
|
import {
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
selectIsConnectedToRoom as selectIsConnectedToRoom2,
|
|
122
122
|
selectRoomState,
|
|
123
123
|
useHMSActions as useHMSActions16,
|
|
124
|
-
useHMSStore as
|
|
124
|
+
useHMSStore as useHMSStore21
|
|
125
125
|
} from "@100mslive/react-sdk";
|
|
126
126
|
|
|
127
127
|
// src/Prebuilt/components/Notifications/HLSFailureModal.jsx
|
|
@@ -294,16 +294,6 @@ var Progress = ({ type, duration }) => {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
};
|
|
297
|
-
var PlaylistActive = ({ type, onToggle }) => {
|
|
298
|
-
var _a, _b;
|
|
299
|
-
const isAudioPlaylist = type === HMSPlaylistType2.audio;
|
|
300
|
-
const selector = isAudioPlaylist ? selectAudioPlaylist2 : selectVideoPlaylist2;
|
|
301
|
-
const active = useHMSStore3(selector.selectedItem);
|
|
302
|
-
if (!active) {
|
|
303
|
-
return null;
|
|
304
|
-
}
|
|
305
|
-
return /* @__PURE__ */ React2.createElement(Box, { css: { mt: "$8" } }, /* @__PURE__ */ React2.createElement(Flex, { justify: "between", css: { w: "100%" } }, /* @__PURE__ */ React2.createElement(Box, null, /* @__PURE__ */ React2.createElement(Text, { variant: "md" }, active.name), ((_a = active.metadata) == null ? void 0 : _a.description) && /* @__PURE__ */ React2.createElement(Text, { variant: "xs" }, (_b = active.metadata) == null ? void 0 : _b.description)), /* @__PURE__ */ React2.createElement(IconButton, { onClick: onToggle, css: { alignSelf: "center" }, "data-testid": "playlist_collapse_btn" }, /* @__PURE__ */ React2.createElement(PlaylistIcon, null))));
|
|
306
|
-
};
|
|
307
297
|
var Controls = ({ type, css = {} }) => {
|
|
308
298
|
const { active, hasNext, hasPrevious, actions } = usePlaylist(type);
|
|
309
299
|
if (!active) {
|
|
@@ -368,25 +358,6 @@ var VolumeControl = () => {
|
|
|
368
358
|
}
|
|
369
359
|
));
|
|
370
360
|
};
|
|
371
|
-
var AudioPlaylistControls = ({ onToggle }) => {
|
|
372
|
-
const { active } = usePlaylist(HMSPlaylistType2.audio);
|
|
373
|
-
if (!active) {
|
|
374
|
-
return null;
|
|
375
|
-
}
|
|
376
|
-
return /* @__PURE__ */ React2.createElement(
|
|
377
|
-
Box,
|
|
378
|
-
{
|
|
379
|
-
css: {
|
|
380
|
-
p: "$8",
|
|
381
|
-
borderTop: "1px solid $border_bright",
|
|
382
|
-
bg: "$surface_default"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
/* @__PURE__ */ React2.createElement(Controls, { type: HMSPlaylistType2.audio }),
|
|
386
|
-
/* @__PURE__ */ React2.createElement(Progress, { type: HMSPlaylistType2.audio, duration: active.duration }),
|
|
387
|
-
/* @__PURE__ */ React2.createElement(PlaylistActive, { type: HMSPlaylistType2.audio, onToggle })
|
|
388
|
-
);
|
|
389
|
-
};
|
|
390
361
|
var VideoPlaylistControls = ({ children }) => {
|
|
391
362
|
const { active } = usePlaylist(HMSPlaylistType2.video);
|
|
392
363
|
return /* @__PURE__ */ React2.createElement(
|
|
@@ -1301,9 +1272,9 @@ var WaitingView = React11.memo(() => {
|
|
|
1301
1272
|
init_define_process_env();
|
|
1302
1273
|
|
|
1303
1274
|
// src/Prebuilt/layouts/mainView.jsx
|
|
1304
|
-
var HLSView = React12.lazy(() => import("./HLSView-
|
|
1305
|
-
var ActiveSpeakerView = React12.lazy(() => import("./ActiveSpeakerView-
|
|
1306
|
-
var PinnedTrackView = React12.lazy(() => import("./PinnedTrackView-
|
|
1275
|
+
var HLSView = React12.lazy(() => import("./HLSView-VXI2RN37.js"));
|
|
1276
|
+
var ActiveSpeakerView = React12.lazy(() => import("./ActiveSpeakerView-I4XBBOOY.js"));
|
|
1277
|
+
var PinnedTrackView = React12.lazy(() => import("./PinnedTrackView-V2COEYUL.js"));
|
|
1307
1278
|
var ConferenceMainView = () => {
|
|
1308
1279
|
var _a, _b, _c;
|
|
1309
1280
|
const localPeerRole = useHMSStore10(selectLocalPeerRoleName3);
|
|
@@ -1398,175 +1369,28 @@ var ConferenceMainView = () => {
|
|
|
1398
1369
|
|
|
1399
1370
|
// src/Prebuilt/components/Footer.jsx
|
|
1400
1371
|
init_define_process_env();
|
|
1401
|
-
import
|
|
1372
|
+
import React36 from "react";
|
|
1402
1373
|
|
|
1403
1374
|
// src/Prebuilt/components/Footer/ConferencingFooter.jsx
|
|
1404
1375
|
init_define_process_env();
|
|
1405
|
-
import
|
|
1376
|
+
import React34, { Fragment as Fragment6, Suspense as Suspense2, useState as useState16 } from "react";
|
|
1406
1377
|
import { useMedia as useMedia6 } from "react-use";
|
|
1407
|
-
import {
|
|
1378
|
+
import { selectIsAllowedToPublish as selectIsAllowedToPublish3, useHMSStore as useHMSStore19, useScreenShare as useScreenShare5 } from "@100mslive/react-sdk";
|
|
1408
1379
|
import { MusicIcon } from "@100mslive/react-icons";
|
|
1409
1380
|
|
|
1410
|
-
// src/Prebuilt/components/Playlist/Playlist.jsx
|
|
1411
|
-
init_define_process_env();
|
|
1412
|
-
import React14, { Fragment as Fragment3, useState as useState5 } from "react";
|
|
1413
|
-
import { HMSPlaylistType as HMSPlaylistType3, selectIsAllowedToPublish, useHMSStore as useHMSStore11 } from "@100mslive/react-sdk";
|
|
1414
|
-
import { AudioPlayerIcon, CrossIcon as CrossIcon3, VideoPlayerIcon } from "@100mslive/react-icons";
|
|
1415
|
-
|
|
1416
|
-
// src/Prebuilt/components/Playlist/PlaylistItem.jsx
|
|
1417
|
-
init_define_process_env();
|
|
1418
|
-
import React13 from "react";
|
|
1419
|
-
function formatDuration(duration) {
|
|
1420
|
-
if (!duration) {
|
|
1421
|
-
return "";
|
|
1422
|
-
}
|
|
1423
|
-
let mins = Math.floor(duration / 60);
|
|
1424
|
-
if (mins < 10) {
|
|
1425
|
-
mins = `0${String(mins)}`;
|
|
1426
|
-
}
|
|
1427
|
-
let secs = Math.floor(duration % 60);
|
|
1428
|
-
if (secs < 10) {
|
|
1429
|
-
secs = `0${String(secs)}`;
|
|
1430
|
-
}
|
|
1431
|
-
return `${mins}:${secs}`;
|
|
1432
|
-
}
|
|
1433
|
-
var PlaylistItem = React13.memo(({ name, metadata, duration, selected, onClick }) => {
|
|
1434
|
-
return /* @__PURE__ */ React13.createElement(
|
|
1435
|
-
Dropdown.Item,
|
|
1436
|
-
{
|
|
1437
|
-
css: {
|
|
1438
|
-
flexDirection: "column",
|
|
1439
|
-
alignItems: "flex-start",
|
|
1440
|
-
h: "$18",
|
|
1441
|
-
p: "$8",
|
|
1442
|
-
"&:hover": {
|
|
1443
|
-
cursor: "pointer",
|
|
1444
|
-
bg: "$surface_default"
|
|
1445
|
-
},
|
|
1446
|
-
"&:focus-visible": {
|
|
1447
|
-
bg: "$surface_default"
|
|
1448
|
-
}
|
|
1449
|
-
},
|
|
1450
|
-
onClick
|
|
1451
|
-
},
|
|
1452
|
-
/* @__PURE__ */ React13.createElement(Flex, { align: "center", justify: "between", css: { width: "100%", minHeight: 0 } }, /* @__PURE__ */ React13.createElement(Text, { variant: "md", css: { color: selected ? "$primary_default" : "$on_primary_high" } }, name), /* @__PURE__ */ React13.createElement(Text, { variant: "xs" }, formatDuration(duration))),
|
|
1453
|
-
(metadata == null ? void 0 : metadata.description) && /* @__PURE__ */ React13.createElement(Text, { variant: "xs", css: { mt: "$4" } }, metadata == null ? void 0 : metadata.description)
|
|
1454
|
-
);
|
|
1455
|
-
});
|
|
1456
|
-
|
|
1457
|
-
// src/Prebuilt/components/Playlist/Playlist.jsx
|
|
1458
|
-
var BrowseAndPlayFromLocal = ({ type, actions }) => {
|
|
1459
|
-
return /* @__PURE__ */ React14.createElement(Fragment3, null, /* @__PURE__ */ React14.createElement(Text, { as: "label", htmlFor: `${type}PlaylistBrowse`, variant: "sm", css: { cursor: "pointer", mr: "$2" } }, "Browse"), /* @__PURE__ */ React14.createElement(
|
|
1460
|
-
"input",
|
|
1461
|
-
{
|
|
1462
|
-
type: "file",
|
|
1463
|
-
id: `${type}PlaylistBrowse`,
|
|
1464
|
-
accept: type === HMSPlaylistType3.audio ? "audio/*" : "video/*",
|
|
1465
|
-
onChange: (e) => {
|
|
1466
|
-
const file = e.target.files[0];
|
|
1467
|
-
const id = file.lastModified;
|
|
1468
|
-
actions.setList([
|
|
1469
|
-
{
|
|
1470
|
-
type,
|
|
1471
|
-
id,
|
|
1472
|
-
name: file.name,
|
|
1473
|
-
url: URL.createObjectURL(file)
|
|
1474
|
-
}
|
|
1475
|
-
]);
|
|
1476
|
-
actions.play(id);
|
|
1477
|
-
},
|
|
1478
|
-
style: { display: "none" }
|
|
1479
|
-
}
|
|
1480
|
-
));
|
|
1481
|
-
};
|
|
1482
|
-
var Playlist = ({ type }) => {
|
|
1483
|
-
const isAudioPlaylist = type === HMSPlaylistType3.audio;
|
|
1484
|
-
const { active, list: playlist, actions } = usePlaylist(type);
|
|
1485
|
-
const [open, setOpen] = useState5(false);
|
|
1486
|
-
const [collapse, setCollapse] = useState5(false);
|
|
1487
|
-
const isAllowedToPublish = useHMSStore11(selectIsAllowedToPublish);
|
|
1488
|
-
const isFeatureEnabled = useIsFeatureEnabled(
|
|
1489
|
-
isAudioPlaylist ? FEATURE_LIST.AUDIO_PLAYLIST : FEATURE_LIST.VIDEO_PLAYLIST
|
|
1490
|
-
);
|
|
1491
|
-
if (!isAllowedToPublish.screen || playlist.length === 0 || !isFeatureEnabled) {
|
|
1492
|
-
return null;
|
|
1493
|
-
}
|
|
1494
|
-
return /* @__PURE__ */ React14.createElement(Fragment3, null, /* @__PURE__ */ React14.createElement(Dropdown.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React14.createElement(Dropdown.Trigger, { asChild: true, "data-testid": type === HMSPlaylistType3.audio ? "audio_playlist" : "video_playlist" }, /* @__PURE__ */ React14.createElement(IconButton_default, { active: !active }, /* @__PURE__ */ React14.createElement(Tooltip, { title: isAudioPlaylist ? "Audio Playlist" : "Video Playlist" }, /* @__PURE__ */ React14.createElement(Box, null, isAudioPlaylist ? /* @__PURE__ */ React14.createElement(AudioPlayerIcon, null) : /* @__PURE__ */ React14.createElement(VideoPlayerIcon, null))))), /* @__PURE__ */ React14.createElement(
|
|
1495
|
-
Dropdown.Content,
|
|
1496
|
-
{
|
|
1497
|
-
sideOffset: 5,
|
|
1498
|
-
align: "center",
|
|
1499
|
-
css: {
|
|
1500
|
-
maxHeight: "unset",
|
|
1501
|
-
width: "$60",
|
|
1502
|
-
p: "$0",
|
|
1503
|
-
bg: "$surface_bright",
|
|
1504
|
-
border: "1px solid $border_default"
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
/* @__PURE__ */ React14.createElement(
|
|
1508
|
-
Flex,
|
|
1509
|
-
{
|
|
1510
|
-
align: "center",
|
|
1511
|
-
css: {
|
|
1512
|
-
p: "$4 $8",
|
|
1513
|
-
borderBottom: "1px solid $border_bright",
|
|
1514
|
-
bg: "$surface_default"
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
/* @__PURE__ */ React14.createElement(Text, { variant: "md", css: { flex: "1 1 0" } }, isAudioPlaylist ? "Audio Player" : "Video Playlist"),
|
|
1518
|
-
/* @__PURE__ */ React14.createElement(BrowseAndPlayFromLocal, { type, actions }),
|
|
1519
|
-
/* @__PURE__ */ React14.createElement(
|
|
1520
|
-
IconButton_default,
|
|
1521
|
-
{
|
|
1522
|
-
css: { mr: "-$4" },
|
|
1523
|
-
onClick: () => __async(void 0, null, function* () {
|
|
1524
|
-
if (active) {
|
|
1525
|
-
yield actions.stop();
|
|
1526
|
-
}
|
|
1527
|
-
setOpen(false);
|
|
1528
|
-
setCollapse(false);
|
|
1529
|
-
})
|
|
1530
|
-
},
|
|
1531
|
-
/* @__PURE__ */ React14.createElement(CrossIcon3, { width: 24, height: 24 })
|
|
1532
|
-
)
|
|
1533
|
-
),
|
|
1534
|
-
!collapse && /* @__PURE__ */ React14.createElement(Box, { css: { maxHeight: "$96", overflowY: "auto" } }, playlist.map((playlistItem) => {
|
|
1535
|
-
return /* @__PURE__ */ React14.createElement(
|
|
1536
|
-
PlaylistItem,
|
|
1537
|
-
__spreadProps(__spreadValues({
|
|
1538
|
-
key: playlistItem.id
|
|
1539
|
-
}, playlistItem), {
|
|
1540
|
-
onClick: (e) => __async(void 0, null, function* () {
|
|
1541
|
-
e.preventDefault();
|
|
1542
|
-
try {
|
|
1543
|
-
yield actions.play(playlistItem.id);
|
|
1544
|
-
} catch (e2) {
|
|
1545
|
-
}
|
|
1546
|
-
if (!isAudioPlaylist) {
|
|
1547
|
-
setOpen(false);
|
|
1548
|
-
}
|
|
1549
|
-
})
|
|
1550
|
-
})
|
|
1551
|
-
);
|
|
1552
|
-
})),
|
|
1553
|
-
isAudioPlaylist && /* @__PURE__ */ React14.createElement(AudioPlaylistControls, { onToggle: () => setCollapse((value) => !value) })
|
|
1554
|
-
)));
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1557
1381
|
// src/Prebuilt/components/MoreSettings/MoreSettings.jsx
|
|
1558
1382
|
init_define_process_env();
|
|
1559
|
-
import
|
|
1383
|
+
import React21, { Fragment as Fragment3, useState as useState12 } from "react";
|
|
1560
1384
|
import { useMedia as useMedia5 } from "react-use";
|
|
1561
1385
|
import Hls from "hls.js";
|
|
1562
1386
|
import {
|
|
1563
1387
|
selectAppData as selectAppData2,
|
|
1564
|
-
selectIsAllowedToPublish
|
|
1388
|
+
selectIsAllowedToPublish,
|
|
1565
1389
|
selectLocalPeerID as selectLocalPeerID6,
|
|
1566
1390
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
|
1567
1391
|
selectPermissions as selectPermissions4,
|
|
1568
1392
|
useHMSActions as useHMSActions12,
|
|
1569
|
-
useHMSStore as
|
|
1393
|
+
useHMSStore as useHMSStore15,
|
|
1570
1394
|
useRecordingStreaming as useRecordingStreaming3
|
|
1571
1395
|
} from "@100mslive/react-sdk";
|
|
1572
1396
|
import {
|
|
@@ -1582,12 +1406,12 @@ import {
|
|
|
1582
1406
|
|
|
1583
1407
|
// src/Prebuilt/components/Settings/StartRecording.jsx
|
|
1584
1408
|
init_define_process_env();
|
|
1585
|
-
import
|
|
1586
|
-
import { selectPermissions as selectPermissions2, useHMSActions as useHMSActions7, useHMSStore as
|
|
1409
|
+
import React13, { useState as useState5 } from "react";
|
|
1410
|
+
import { selectPermissions as selectPermissions2, useHMSActions as useHMSActions7, useHMSStore as useHMSStore11, useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
|
|
1587
1411
|
import { AlertTriangleIcon } from "@100mslive/react-icons";
|
|
1588
1412
|
var StartRecording = ({ open, onOpenChange }) => {
|
|
1589
|
-
const permissions =
|
|
1590
|
-
const [resolution, setResolution] =
|
|
1413
|
+
const permissions = useHMSStore11(selectPermissions2);
|
|
1414
|
+
const [resolution, setResolution] = useState5(RTMP_RECORD_DEFAULT_RESOLUTION);
|
|
1591
1415
|
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
|
1592
1416
|
const { isBrowserRecordingOn, isStreamingOn, isHLSRunning } = useRecordingStreaming2();
|
|
1593
1417
|
const hmsActions = useHMSActions7();
|
|
@@ -1595,7 +1419,7 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
|
1595
1419
|
return null;
|
|
1596
1420
|
}
|
|
1597
1421
|
if (isBrowserRecordingOn) {
|
|
1598
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ React13.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React13.createElement(Dialog.Portal, null, /* @__PURE__ */ React13.createElement(
|
|
1599
1423
|
Dialog.Content,
|
|
1600
1424
|
{
|
|
1601
1425
|
css: {
|
|
@@ -1604,9 +1428,9 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
|
1604
1428
|
bg: "#201617"
|
|
1605
1429
|
}
|
|
1606
1430
|
},
|
|
1607
|
-
/* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
-
/* @__PURE__ */
|
|
1431
|
+
/* @__PURE__ */ React13.createElement(Dialog.Title, null, /* @__PURE__ */ React13.createElement(Flex, { gap: 2, css: { c: "$alert_error_default" } }, /* @__PURE__ */ React13.createElement(AlertTriangleIcon, null), /* @__PURE__ */ React13.createElement(Text, { css: { c: "inherit" }, variant: "h6" }, "End Recording"))),
|
|
1432
|
+
/* @__PURE__ */ React13.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium", my: "$8" } }, "Are you sure you want to end recording? You can\u2019t undo this action."),
|
|
1433
|
+
/* @__PURE__ */ React13.createElement(Flex, { justify: "end", css: { mt: "$12" } }, /* @__PURE__ */ React13.createElement(Dialog.Close, { asChild: true }, /* @__PURE__ */ React13.createElement(Button, { outlined: true, css: { borderColor: "$secondary_bright", mr: "$4" } }, "Don't end")), /* @__PURE__ */ React13.createElement(
|
|
1610
1434
|
Button,
|
|
1611
1435
|
{
|
|
1612
1436
|
"data-testid": "stop_recording_confirm_mobile",
|
|
@@ -1628,14 +1452,14 @@ var StartRecording = ({ open, onOpenChange }) => {
|
|
|
1628
1452
|
))
|
|
1629
1453
|
)));
|
|
1630
1454
|
}
|
|
1631
|
-
return /* @__PURE__ */
|
|
1455
|
+
return /* @__PURE__ */ React13.createElement(Dialog.Root, { open, onOpenChange }, /* @__PURE__ */ React13.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React13.createElement(Dialog.Title, null, /* @__PURE__ */ React13.createElement(Text, { variant: "h6" }, "Start Recording")), /* @__PURE__ */ React13.createElement(
|
|
1632
1456
|
ResolutionInput,
|
|
1633
1457
|
{
|
|
1634
1458
|
testId: "recording_resolution_mobile",
|
|
1635
1459
|
css: { flexDirection: "column", alignItems: "start" },
|
|
1636
1460
|
onResolutionChange: setResolution
|
|
1637
1461
|
}
|
|
1638
|
-
), /* @__PURE__ */
|
|
1462
|
+
), /* @__PURE__ */ React13.createElement(
|
|
1639
1463
|
Button,
|
|
1640
1464
|
{
|
|
1641
1465
|
"data-testid": "start_recording_confirm_mobile",
|
|
@@ -1675,14 +1499,14 @@ var StartRecording_default = StartRecording;
|
|
|
1675
1499
|
|
|
1676
1500
|
// src/Prebuilt/components/StatsForNerds.jsx
|
|
1677
1501
|
init_define_process_env();
|
|
1678
|
-
import
|
|
1502
|
+
import React14, { useEffect as useEffect6, useMemo as useMemo3, useRef as useRef5, useState as useState6 } from "react";
|
|
1679
1503
|
import {
|
|
1680
1504
|
selectHMSStats,
|
|
1681
1505
|
selectLocalPeerID as selectLocalPeerID4,
|
|
1682
1506
|
selectPeersMap,
|
|
1683
1507
|
selectTracksMap,
|
|
1684
1508
|
useHMSStatsStore,
|
|
1685
|
-
useHMSStore as
|
|
1509
|
+
useHMSStore as useHMSStore12
|
|
1686
1510
|
} from "@100mslive/react-sdk";
|
|
1687
1511
|
var StatsForNerds = ({ onOpenChange }) => {
|
|
1688
1512
|
var _a;
|
|
@@ -1691,9 +1515,9 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
1691
1515
|
() => [{ id: "local-peer", label: "Local Peer Stats" }, ...tracksWithLabels],
|
|
1692
1516
|
[tracksWithLabels]
|
|
1693
1517
|
);
|
|
1694
|
-
const [selectedStat, setSelectedStat] =
|
|
1518
|
+
const [selectedStat, setSelectedStat] = useState6(statsOptions[0]);
|
|
1695
1519
|
const [showStatsOnTiles, setShowStatsOnTiles] = useSetUiSettings(UI_SETTINGS.showStatsOnTiles);
|
|
1696
|
-
const [open, setOpen] =
|
|
1520
|
+
const [open, setOpen] = useState6(false);
|
|
1697
1521
|
const ref = useRef5();
|
|
1698
1522
|
const selectionBg = useDropdownSelection();
|
|
1699
1523
|
useEffect6(() => {
|
|
@@ -1701,7 +1525,7 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
1701
1525
|
setSelectedStat("local-peer");
|
|
1702
1526
|
}
|
|
1703
1527
|
}, [tracksWithLabels, selectedStat]);
|
|
1704
|
-
return /* @__PURE__ */
|
|
1528
|
+
return /* @__PURE__ */ React14.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React14.createElement(Dialog.Portal, null, /* @__PURE__ */ React14.createElement(Dialog.Overlay, null), /* @__PURE__ */ React14.createElement(
|
|
1705
1529
|
Dialog.Content,
|
|
1706
1530
|
{
|
|
1707
1531
|
css: {
|
|
@@ -1710,10 +1534,10 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
1710
1534
|
overflowY: "auto"
|
|
1711
1535
|
}
|
|
1712
1536
|
},
|
|
1713
|
-
/* @__PURE__ */
|
|
1714
|
-
/* @__PURE__ */
|
|
1715
|
-
/* @__PURE__ */
|
|
1716
|
-
/* @__PURE__ */
|
|
1537
|
+
/* @__PURE__ */ React14.createElement(Dialog.Title, { css: { p: "$4 0" } }, /* @__PURE__ */ React14.createElement(Flex, { justify: "between" }, /* @__PURE__ */ React14.createElement(Flex, { align: "center", css: { mb: "$1" } }, /* @__PURE__ */ React14.createElement(Text, { variant: "h6", inline: true }, "Stats For Nerds")), /* @__PURE__ */ React14.createElement(Dialog.DefaultClose, { "data-testid": "stats_dialog_close_icon" }))),
|
|
1538
|
+
/* @__PURE__ */ React14.createElement(HorizontalDivider, { css: { mt: "0.8rem" } }),
|
|
1539
|
+
/* @__PURE__ */ React14.createElement(Flex, { justify: "start", gap: 4, css: { m: "$10 0" } }, /* @__PURE__ */ React14.createElement(Switch, { checked: showStatsOnTiles, onCheckedChange: setShowStatsOnTiles }), /* @__PURE__ */ React14.createElement(Text, { variant: "body2", css: { fontWeight: "$semiBold" } }, "Show Stats on Tiles")),
|
|
1540
|
+
/* @__PURE__ */ React14.createElement(
|
|
1717
1541
|
Flex,
|
|
1718
1542
|
{
|
|
1719
1543
|
direction: "column",
|
|
@@ -1723,8 +1547,8 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
1723
1547
|
minWidth: 0
|
|
1724
1548
|
}
|
|
1725
1549
|
},
|
|
1726
|
-
/* @__PURE__ */
|
|
1727
|
-
/* @__PURE__ */
|
|
1550
|
+
/* @__PURE__ */ React14.createElement(Label, { variant: "body2" }, "Stats For"),
|
|
1551
|
+
/* @__PURE__ */ React14.createElement(Dropdown.Root, { "data-testid": "dialog_select_Stats For", open, onOpenChange: setOpen }, /* @__PURE__ */ React14.createElement(
|
|
1728
1552
|
DialogDropdownTrigger,
|
|
1729
1553
|
{
|
|
1730
1554
|
title: selectedStat.label || "Select Stats",
|
|
@@ -1733,9 +1557,9 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
1733
1557
|
open,
|
|
1734
1558
|
ref
|
|
1735
1559
|
}
|
|
1736
|
-
), /* @__PURE__ */
|
|
1560
|
+
), /* @__PURE__ */ React14.createElement(Dropdown.Portal, null, /* @__PURE__ */ React14.createElement(Dropdown.Content, { align: "start", sideOffset: 8, css: { w: (_a = ref.current) == null ? void 0 : _a.clientWidth, zIndex: 1e3 } }, statsOptions.map((option) => {
|
|
1737
1561
|
const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
|
|
1738
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1739
1563
|
Dropdown.Item,
|
|
1740
1564
|
{
|
|
1741
1565
|
key: `${option.id}-${option.layer || ""}`,
|
|
@@ -1752,13 +1576,13 @@ var StatsForNerds = ({ onOpenChange }) => {
|
|
|
1752
1576
|
);
|
|
1753
1577
|
}))))
|
|
1754
1578
|
),
|
|
1755
|
-
selectedStat.id === "local-peer" ? /* @__PURE__ */
|
|
1579
|
+
selectedStat.id === "local-peer" ? /* @__PURE__ */ React14.createElement(LocalPeerStats, null) : /* @__PURE__ */ React14.createElement(TrackStats, { trackID: selectedStat.id, layer: selectedStat.layer, local: selectedStat.local })
|
|
1756
1580
|
)));
|
|
1757
1581
|
};
|
|
1758
1582
|
var useTracksWithLabel = () => {
|
|
1759
|
-
const tracksMap =
|
|
1760
|
-
const peersMap =
|
|
1761
|
-
const localPeerID =
|
|
1583
|
+
const tracksMap = useHMSStore12(selectTracksMap);
|
|
1584
|
+
const peersMap = useHMSStore12(selectPeersMap);
|
|
1585
|
+
const localPeerID = useHMSStore12(selectLocalPeerID4);
|
|
1762
1586
|
const tracksWithLabels = useMemo3(
|
|
1763
1587
|
() => Object.values(tracksMap).reduce((res, track) => {
|
|
1764
1588
|
var _a, _b;
|
|
@@ -1794,13 +1618,13 @@ var LocalPeerStats = () => {
|
|
|
1794
1618
|
if (!stats) {
|
|
1795
1619
|
return null;
|
|
1796
1620
|
}
|
|
1797
|
-
return /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ React14.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React14.createElement(StatsRow, { label: "Packets Lost", value: (_a = stats.subscribe) == null ? void 0 : _a.packetsLost }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Jitter", value: (_b = stats.subscribe) == null ? void 0 : _b.jitter }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Publish Bitrate", value: formatBytes((_c = stats.publish) == null ? void 0 : _c.bitrate, "b/s") }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Subscribe Bitrate", value: formatBytes((_d = stats.subscribe) == null ? void 0 : _d.bitrate, "b/s") }), /* @__PURE__ */ React14.createElement(
|
|
1798
1622
|
StatsRow,
|
|
1799
1623
|
{
|
|
1800
1624
|
label: "Available Outgoing Bitrate",
|
|
1801
1625
|
value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
|
|
1802
1626
|
}
|
|
1803
|
-
), /* @__PURE__ */
|
|
1627
|
+
), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React14.createElement(
|
|
1804
1628
|
StatsRow,
|
|
1805
1629
|
{
|
|
1806
1630
|
label: "Round Trip Time",
|
|
@@ -1816,15 +1640,15 @@ var TrackStats = ({ trackID, layer, local }) => {
|
|
|
1816
1640
|
return null;
|
|
1817
1641
|
}
|
|
1818
1642
|
const inbound = stats.type.includes("inbound");
|
|
1819
|
-
return /* @__PURE__ */
|
|
1643
|
+
return /* @__PURE__ */ React14.createElement(Flex, { css: { flexWrap: "wrap", gap: "$10" } }, /* @__PURE__ */ React14.createElement(StatsRow, { label: "Type", value: stats.type + " " + stats.kind }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Bitrate", value: formatBytes(stats.bitrate, "b/s") }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Packets Lost", value: stats.packetsLost }), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Jitter", value: (_a = stats.jitter) == null ? void 0 : _a.toFixed(3) }), /* @__PURE__ */ React14.createElement(
|
|
1820
1644
|
StatsRow,
|
|
1821
1645
|
{
|
|
1822
1646
|
label: inbound ? "Bytes Received" : "Bytes Sent",
|
|
1823
1647
|
value: formatBytes(inbound ? stats.bytesReceived : stats.bytesSent)
|
|
1824
1648
|
}
|
|
1825
|
-
), stats.kind === "video" && /* @__PURE__ */
|
|
1649
|
+
), stats.kind === "video" && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(StatsRow, { label: "Framerate", value: stats.framesPerSecond }), !inbound && /* @__PURE__ */ React14.createElement(StatsRow, { label: "Quality Limitation Reason", value: stats.qualityLimitationReason })), /* @__PURE__ */ React14.createElement(StatsRow, { label: "Round Trip Time", value: stats.roundTripTime ? `${stats.roundTripTime * 1e3} ms` : "-" }));
|
|
1826
1650
|
};
|
|
1827
|
-
var StatsRow =
|
|
1651
|
+
var StatsRow = React14.memo(({ label, value }) => /* @__PURE__ */ React14.createElement(Box, { css: { bg: "$surface_bright", w: "calc(50% - $6)", p: "$8", r: "$3" } }, /* @__PURE__ */ React14.createElement(
|
|
1828
1652
|
Text,
|
|
1829
1653
|
{
|
|
1830
1654
|
variant: "overline",
|
|
@@ -1835,7 +1659,7 @@ var StatsRow = React16.memo(({ label, value }) => /* @__PURE__ */ React16.create
|
|
|
1835
1659
|
}
|
|
1836
1660
|
},
|
|
1837
1661
|
label
|
|
1838
|
-
), /* @__PURE__ */
|
|
1662
|
+
), /* @__PURE__ */ React14.createElement(Text, { variant: "sub1", css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, value || "-")));
|
|
1839
1663
|
var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
1840
1664
|
if (bytes === void 0)
|
|
1841
1665
|
return "-";
|
|
@@ -1850,7 +1674,7 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
|
1850
1674
|
|
|
1851
1675
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
|
1852
1676
|
init_define_process_env();
|
|
1853
|
-
import
|
|
1677
|
+
import React15, { useCallback as useCallback6, useRef as useRef6, useState as useState7 } from "react";
|
|
1854
1678
|
import { useHMSActions as useHMSActions8 } from "@100mslive/react-sdk";
|
|
1855
1679
|
import { AlertTriangleIcon as AlertTriangleIcon2, ChangeRoleIcon, CheckIcon } from "@100mslive/react-icons";
|
|
1856
1680
|
var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
@@ -1859,12 +1683,12 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1859
1683
|
const hmsActions = useHMSActions8();
|
|
1860
1684
|
const ref = useRef6(null);
|
|
1861
1685
|
const roleRef = useRef6(null);
|
|
1862
|
-
const [selectedBulkRole, setBulkRole] =
|
|
1863
|
-
const [selectedRole, setRole] =
|
|
1864
|
-
const [bulkRoleDialog, setBulkRoleDialog] =
|
|
1865
|
-
const [roleDialog, setRoleDialog] =
|
|
1866
|
-
const [errorMessage, setErrorMessage] =
|
|
1867
|
-
const [isSubmiting, setIsSubmiting] =
|
|
1686
|
+
const [selectedBulkRole, setBulkRole] = useState7([]);
|
|
1687
|
+
const [selectedRole, setRole] = useState7("");
|
|
1688
|
+
const [bulkRoleDialog, setBulkRoleDialog] = useState7(false);
|
|
1689
|
+
const [roleDialog, setRoleDialog] = useState7(false);
|
|
1690
|
+
const [errorMessage, setErrorMessage] = useState7("");
|
|
1691
|
+
const [isSubmiting, setIsSubmiting] = useState7(false);
|
|
1868
1692
|
const changeBulkRole = useCallback6(() => __async(void 0, null, function* () {
|
|
1869
1693
|
if (selectedBulkRole.length > 0 && selectedRole) {
|
|
1870
1694
|
try {
|
|
@@ -1879,7 +1703,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1879
1703
|
}
|
|
1880
1704
|
}
|
|
1881
1705
|
}), [selectedBulkRole, selectedRole, hmsActions, onOpenChange]);
|
|
1882
|
-
return /* @__PURE__ */
|
|
1706
|
+
return /* @__PURE__ */ React15.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React15.createElement(DialogContent, { title: "Bulk Role Change", Icon: ChangeRoleIcon }, /* @__PURE__ */ React15.createElement(DialogRow, null, /* @__PURE__ */ React15.createElement(Text, null, "For Roles: "), /* @__PURE__ */ React15.createElement(
|
|
1883
1707
|
Dropdown.Root,
|
|
1884
1708
|
{
|
|
1885
1709
|
open: bulkRoleDialog,
|
|
@@ -1890,7 +1714,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1890
1714
|
},
|
|
1891
1715
|
modal: false
|
|
1892
1716
|
},
|
|
1893
|
-
/* @__PURE__ */
|
|
1717
|
+
/* @__PURE__ */ React15.createElement(
|
|
1894
1718
|
DialogDropdownTrigger,
|
|
1895
1719
|
{
|
|
1896
1720
|
ref,
|
|
@@ -1902,7 +1726,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1902
1726
|
open: bulkRoleDialog
|
|
1903
1727
|
}
|
|
1904
1728
|
),
|
|
1905
|
-
/* @__PURE__ */
|
|
1729
|
+
/* @__PURE__ */ React15.createElement(
|
|
1906
1730
|
Dropdown.Content,
|
|
1907
1731
|
{
|
|
1908
1732
|
css: { w: (_a = ref.current) == null ? void 0 : _a.clientWidth, zIndex: 1e3 },
|
|
@@ -1913,7 +1737,7 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1913
1737
|
}
|
|
1914
1738
|
},
|
|
1915
1739
|
roles && roles.map((role) => {
|
|
1916
|
-
return /* @__PURE__ */
|
|
1740
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1917
1741
|
Dropdown.CheckboxItem,
|
|
1918
1742
|
{
|
|
1919
1743
|
key: role,
|
|
@@ -1925,12 +1749,12 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1925
1749
|
setErrorMessage("");
|
|
1926
1750
|
}
|
|
1927
1751
|
},
|
|
1928
|
-
/* @__PURE__ */
|
|
1752
|
+
/* @__PURE__ */ React15.createElement(Checkbox.Root, { css: { margin: "$2" }, checked: selectedBulkRole.includes(role) }, /* @__PURE__ */ React15.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React15.createElement(CheckIcon, { width: 16, height: 16 }))),
|
|
1929
1753
|
role
|
|
1930
1754
|
);
|
|
1931
1755
|
})
|
|
1932
1756
|
)
|
|
1933
|
-
)), /* @__PURE__ */
|
|
1757
|
+
)), /* @__PURE__ */ React15.createElement(DialogRow, null, /* @__PURE__ */ React15.createElement(Text, null, "To Role: "), /* @__PURE__ */ React15.createElement(Dropdown.Root, { open: roleDialog, onOpenChange: (value) => setRoleDialog(value) }, /* @__PURE__ */ React15.createElement(
|
|
1934
1758
|
DialogDropdownTrigger,
|
|
1935
1759
|
{
|
|
1936
1760
|
ref: roleRef,
|
|
@@ -1941,8 +1765,8 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1941
1765
|
},
|
|
1942
1766
|
open: roleDialog
|
|
1943
1767
|
}
|
|
1944
|
-
), /* @__PURE__ */
|
|
1945
|
-
return /* @__PURE__ */
|
|
1768
|
+
), /* @__PURE__ */ React15.createElement(Dropdown.Content, { css: { w: (_b = roleRef.current) == null ? void 0 : _b.clientWidth, zIndex: 1e3 } }, roles && roles.map((role) => {
|
|
1769
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1946
1770
|
Dropdown.Item,
|
|
1947
1771
|
{
|
|
1948
1772
|
key: role,
|
|
@@ -1953,18 +1777,18 @@ var BulkRoleChangeModal = ({ onOpenChange }) => {
|
|
|
1953
1777
|
},
|
|
1954
1778
|
role
|
|
1955
1779
|
);
|
|
1956
|
-
})))), /* @__PURE__ */
|
|
1780
|
+
})))), /* @__PURE__ */ React15.createElement(DialogRow, null, errorMessage && /* @__PURE__ */ React15.createElement(Flex, { gap: 2, css: { c: "$alert_error_default", w: "70%", ml: "auto" } }, /* @__PURE__ */ React15.createElement(AlertTriangleIcon2, null), /* @__PURE__ */ React15.createElement(Text, { css: { c: "inherit" } }, errorMessage))), /* @__PURE__ */ React15.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React15.createElement(Button, { variant: "primary", onClick: changeBulkRole, disabled: !(selectedRole && selectedBulkRole.length > 0) }, isSubmiting && /* @__PURE__ */ React15.createElement(Loading, { css: { color: "$on_primary_medium" } }), "Apply"))));
|
|
1957
1781
|
};
|
|
1958
1782
|
|
|
1959
1783
|
// src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx
|
|
1960
1784
|
init_define_process_env();
|
|
1961
|
-
import
|
|
1962
|
-
import { selectLocalPeerName, useHMSActions as useHMSActions9, useHMSStore as
|
|
1785
|
+
import React16, { useState as useState8 } from "react";
|
|
1786
|
+
import { selectLocalPeerName, useHMSActions as useHMSActions9, useHMSStore as useHMSStore13 } from "@100mslive/react-sdk";
|
|
1963
1787
|
var ChangeNameModal = ({ onOpenChange }) => {
|
|
1964
1788
|
const [previewPreference, setPreviewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW);
|
|
1965
1789
|
const hmsActions = useHMSActions9();
|
|
1966
|
-
const localPeerName =
|
|
1967
|
-
const [currentName, setCurrentName] =
|
|
1790
|
+
const localPeerName = useHMSStore13(selectLocalPeerName);
|
|
1791
|
+
const [currentName, setCurrentName] = useState8(localPeerName);
|
|
1968
1792
|
const changeName = () => __async(void 0, null, function* () {
|
|
1969
1793
|
const name = currentName.trim();
|
|
1970
1794
|
if (!name || name === localPeerName) {
|
|
@@ -1982,7 +1806,7 @@ var ChangeNameModal = ({ onOpenChange }) => {
|
|
|
1982
1806
|
onOpenChange(false);
|
|
1983
1807
|
}
|
|
1984
1808
|
});
|
|
1985
|
-
return /* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ React16.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React16.createElement(Dialog.Portal, null, /* @__PURE__ */ React16.createElement(Dialog.Overlay, null), /* @__PURE__ */ React16.createElement(Dialog.Content, { css: { width: "min(400px,80%)", p: "$10" } }, /* @__PURE__ */ React16.createElement(Dialog.Title, { css: { p: "0 $4" } }, /* @__PURE__ */ React16.createElement(Text, { variant: "h6" }, " Change Name")), /* @__PURE__ */ React16.createElement(
|
|
1986
1810
|
"form",
|
|
1987
1811
|
{
|
|
1988
1812
|
onSubmit: (e) => __async(void 0, null, function* () {
|
|
@@ -1990,7 +1814,7 @@ var ChangeNameModal = ({ onOpenChange }) => {
|
|
|
1990
1814
|
yield changeName();
|
|
1991
1815
|
})
|
|
1992
1816
|
},
|
|
1993
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ React16.createElement(Flex, { justify: "center", align: "center", css: { my: "$8", w: "100%" } }, /* @__PURE__ */ React16.createElement(
|
|
1994
1818
|
Input,
|
|
1995
1819
|
{
|
|
1996
1820
|
css: { width: "100%" },
|
|
@@ -2003,7 +1827,7 @@ var ChangeNameModal = ({ onOpenChange }) => {
|
|
|
2003
1827
|
"data-testid": "change_name_field"
|
|
2004
1828
|
}
|
|
2005
1829
|
)),
|
|
2006
|
-
/* @__PURE__ */
|
|
1830
|
+
/* @__PURE__ */ React16.createElement(
|
|
2007
1831
|
Flex,
|
|
2008
1832
|
{
|
|
2009
1833
|
justify: "between",
|
|
@@ -2014,8 +1838,8 @@ var ChangeNameModal = ({ onOpenChange }) => {
|
|
|
2014
1838
|
mt: "$10"
|
|
2015
1839
|
}
|
|
2016
1840
|
},
|
|
2017
|
-
/* @__PURE__ */
|
|
2018
|
-
/* @__PURE__ */
|
|
1841
|
+
/* @__PURE__ */ React16.createElement(Box, { css: { w: "50%" } }, /* @__PURE__ */ React16.createElement(Dialog.Close, { css: { w: "100%" } }, /* @__PURE__ */ React16.createElement(Button, { variant: "standard", css: { w: "100%" }, outlined: true, type: "submit", disabled: !localPeerName }, "Cancel"))),
|
|
1842
|
+
/* @__PURE__ */ React16.createElement(Box, { css: { w: "50%" } }, /* @__PURE__ */ React16.createElement(
|
|
2019
1843
|
Button,
|
|
2020
1844
|
{
|
|
2021
1845
|
variant: "primary",
|
|
@@ -2032,21 +1856,21 @@ var ChangeNameModal = ({ onOpenChange }) => {
|
|
|
2032
1856
|
|
|
2033
1857
|
// src/Prebuilt/components/MoreSettings/ChangeSelfRole.jsx
|
|
2034
1858
|
init_define_process_env();
|
|
2035
|
-
import
|
|
1859
|
+
import React17, { useMemo as useMemo4 } from "react";
|
|
2036
1860
|
import { useMedia as useMedia4 } from "react-use";
|
|
2037
1861
|
import {
|
|
2038
1862
|
selectLocalPeerID as selectLocalPeerID5,
|
|
2039
1863
|
selectLocalPeerRoleName as selectLocalPeerRoleName4,
|
|
2040
1864
|
selectPermissions as selectPermissions3,
|
|
2041
1865
|
useHMSActions as useHMSActions10,
|
|
2042
|
-
useHMSStore as
|
|
1866
|
+
useHMSStore as useHMSStore14
|
|
2043
1867
|
} from "@100mslive/react-sdk";
|
|
2044
1868
|
import { ArrowRightIcon, CheckIcon as CheckIcon2, PersonIcon } from "@100mslive/react-icons";
|
|
2045
1869
|
var ChangeSelfRole = ({ onClick }) => {
|
|
2046
1870
|
const roles = useFilteredRoles();
|
|
2047
|
-
const permissions =
|
|
2048
|
-
const localPeerId =
|
|
2049
|
-
const localPeerRole =
|
|
1871
|
+
const permissions = useHMSStore14(selectPermissions3);
|
|
1872
|
+
const localPeerId = useHMSStore14(selectLocalPeerID5);
|
|
1873
|
+
const localPeerRole = useHMSStore14(selectLocalPeerRoleName4);
|
|
2050
1874
|
const hmsActions = useHMSActions10();
|
|
2051
1875
|
const hideTriggerItem = useMedia4(config.media.sm);
|
|
2052
1876
|
const selfRoleChangeTo = useAppLayout("selfRoleChangeTo");
|
|
@@ -2054,7 +1878,7 @@ var ChangeSelfRole = ({ onClick }) => {
|
|
|
2054
1878
|
if (!permissions.changeRole) {
|
|
2055
1879
|
return null;
|
|
2056
1880
|
}
|
|
2057
|
-
return hideTriggerItem ? /* @__PURE__ */
|
|
1881
|
+
return hideTriggerItem ? /* @__PURE__ */ React17.createElement(Dropdown.Item, { onClick }, /* @__PURE__ */ React17.createElement(PersonIcon, null), /* @__PURE__ */ React17.createElement(Text, { variant: "sm", css: { mx: "$4" } }, "Change My Role")) : /* @__PURE__ */ React17.createElement(Dropdown.SubMenu, null, /* @__PURE__ */ React17.createElement(Dropdown.TriggerItem, { "data-testid": "change_my_role_btn" }, /* @__PURE__ */ React17.createElement(PersonIcon, null), /* @__PURE__ */ React17.createElement(Text, { variant: "sm", css: { flex: "1 1 0", mx: "$4" } }, "Change My Role"), /* @__PURE__ */ React17.createElement(ArrowRightIcon, null)), /* @__PURE__ */ React17.createElement(Dropdown.SubMenuContent, { sideOffset: 8, alignOffset: -5, css: { py: "$0", "@md": { w: "$64" } } }, availableSelfChangeRoles.map((role) => /* @__PURE__ */ React17.createElement(
|
|
2058
1882
|
Dropdown.Item,
|
|
2059
1883
|
{
|
|
2060
1884
|
key: role,
|
|
@@ -2068,20 +1892,20 @@ var ChangeSelfRole = ({ onClick }) => {
|
|
|
2068
1892
|
}),
|
|
2069
1893
|
"data-testid": "change_to_role_" + role
|
|
2070
1894
|
},
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
localPeerRole === role && /* @__PURE__ */
|
|
1895
|
+
/* @__PURE__ */ React17.createElement(Text, { variant: "sm" }, role),
|
|
1896
|
+
localPeerRole === role && /* @__PURE__ */ React17.createElement(CheckIcon2, { width: 16, height: 16 })
|
|
2073
1897
|
))));
|
|
2074
1898
|
};
|
|
2075
1899
|
|
|
2076
1900
|
// src/Prebuilt/components/MoreSettings/EmbedUrl.jsx
|
|
2077
1901
|
init_define_process_env();
|
|
2078
|
-
import
|
|
1902
|
+
import React18, { useState as useState9 } from "react";
|
|
2079
1903
|
import { ViewIcon } from "@100mslive/react-icons";
|
|
2080
1904
|
var EmbedUrl = ({ setShowOpenUrl }) => {
|
|
2081
1905
|
if (!window.CropTarget) {
|
|
2082
1906
|
return null;
|
|
2083
1907
|
}
|
|
2084
|
-
return /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ React18.createElement(
|
|
2085
1909
|
Dropdown.Item,
|
|
2086
1910
|
{
|
|
2087
1911
|
onClick: () => {
|
|
@@ -2089,16 +1913,16 @@ var EmbedUrl = ({ setShowOpenUrl }) => {
|
|
|
2089
1913
|
},
|
|
2090
1914
|
"data-testid": "embed_url_btn"
|
|
2091
1915
|
},
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ React18.createElement(ViewIcon, null),
|
|
1917
|
+
/* @__PURE__ */ React18.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Embed URL")
|
|
2094
1918
|
);
|
|
2095
1919
|
};
|
|
2096
1920
|
function EmbedUrlModal({ onOpenChange }) {
|
|
2097
1921
|
const [embedConfig, setEmbedConfig] = useSetAppDataByKey(APP_DATA.embedConfig);
|
|
2098
|
-
const [url, setUrl] =
|
|
1922
|
+
const [url, setUrl] = useState9((embedConfig == null ? void 0 : embedConfig.url) || "");
|
|
2099
1923
|
const isAnythingEmbedded = !!(embedConfig == null ? void 0 : embedConfig.url);
|
|
2100
1924
|
const isModifying = isAnythingEmbedded && url && url !== embedConfig.url;
|
|
2101
|
-
return /* @__PURE__ */
|
|
1925
|
+
return /* @__PURE__ */ React18.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React18.createElement(DialogContent, { title: "Embed URL", Icon: ViewIcon }, /* @__PURE__ */ React18.createElement(DialogInput, { title: "URL", value: url, onChange: setUrl, placeholder: "https://www.tldraw.com/", type: "url" }), /* @__PURE__ */ React18.createElement(DialogRow, null, /* @__PURE__ */ React18.createElement(Text, null, "Embed a url and share with everyone in the room. Ensure that you're sharing the current tab when the prompt opens. Note that not all websites support being embedded.")), /* @__PURE__ */ React18.createElement(DialogRow, { justify: "end" }, isAnythingEmbedded ? /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
|
|
2102
1926
|
Button,
|
|
2103
1927
|
{
|
|
2104
1928
|
variant: "primary",
|
|
@@ -2112,7 +1936,7 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
|
2112
1936
|
css: { mr: "$4" }
|
|
2113
1937
|
},
|
|
2114
1938
|
"Update Embed"
|
|
2115
|
-
), /* @__PURE__ */
|
|
1939
|
+
), /* @__PURE__ */ React18.createElement(
|
|
2116
1940
|
Button,
|
|
2117
1941
|
{
|
|
2118
1942
|
variant: "danger",
|
|
@@ -2124,7 +1948,7 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
|
2124
1948
|
"data-testid": "embed_url_btn"
|
|
2125
1949
|
},
|
|
2126
1950
|
"Stop Embed"
|
|
2127
|
-
)) : /* @__PURE__ */
|
|
1951
|
+
)) : /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
|
|
2128
1952
|
Button,
|
|
2129
1953
|
{
|
|
2130
1954
|
variant: "primary",
|
|
@@ -2138,7 +1962,7 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
|
2138
1962
|
css: { mr: "$4" }
|
|
2139
1963
|
},
|
|
2140
1964
|
"Just Embed"
|
|
2141
|
-
), /* @__PURE__ */
|
|
1965
|
+
), /* @__PURE__ */ React18.createElement(
|
|
2142
1966
|
Button,
|
|
2143
1967
|
{
|
|
2144
1968
|
variant: "primary",
|
|
@@ -2156,15 +1980,15 @@ function EmbedUrlModal({ onOpenChange }) {
|
|
|
2156
1980
|
|
|
2157
1981
|
// src/Prebuilt/components/MoreSettings/FullScreenItem.jsx
|
|
2158
1982
|
init_define_process_env();
|
|
2159
|
-
import
|
|
1983
|
+
import React19 from "react";
|
|
2160
1984
|
import { ExpandIcon as ExpandIcon2 } from "@100mslive/react-icons";
|
|
2161
1985
|
|
|
2162
1986
|
// src/Prebuilt/components/hooks/useFullscreen.js
|
|
2163
1987
|
init_define_process_env();
|
|
2164
|
-
import { useCallback as useCallback7, useEffect as useEffect7, useState as
|
|
1988
|
+
import { useCallback as useCallback7, useEffect as useEffect7, useState as useState10 } from "react";
|
|
2165
1989
|
import screenfull2 from "screenfull";
|
|
2166
1990
|
var useFullscreen2 = () => {
|
|
2167
|
-
const [isFullScreenEnabled, setIsFullScreenEnabled] =
|
|
1991
|
+
const [isFullScreenEnabled, setIsFullScreenEnabled] = useState10(screenfull2.isFullscreen);
|
|
2168
1992
|
const toggle = useCallback7(() => __async(void 0, null, function* () {
|
|
2169
1993
|
if (!screenfull2.isEnabled) {
|
|
2170
1994
|
ToastManager.addToast({ title: "Fullscreen feature not supported" });
|
|
@@ -2207,7 +2031,7 @@ var FullScreenItem = () => {
|
|
|
2207
2031
|
if (!isFullscreenEnabled || !allowed) {
|
|
2208
2032
|
return null;
|
|
2209
2033
|
}
|
|
2210
|
-
return /* @__PURE__ */
|
|
2034
|
+
return /* @__PURE__ */ React19.createElement(
|
|
2211
2035
|
Dropdown.Item,
|
|
2212
2036
|
{
|
|
2213
2037
|
onClick: () => {
|
|
@@ -2215,14 +2039,14 @@ var FullScreenItem = () => {
|
|
|
2215
2039
|
},
|
|
2216
2040
|
"data-testid": "full_screen_btn"
|
|
2217
2041
|
},
|
|
2218
|
-
/* @__PURE__ */
|
|
2219
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ React19.createElement(ExpandIcon2, null),
|
|
2043
|
+
/* @__PURE__ */ React19.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isFullscreen ? "Exit " : "Go ", "Fullscreen")
|
|
2220
2044
|
);
|
|
2221
2045
|
};
|
|
2222
2046
|
|
|
2223
2047
|
// src/Prebuilt/components/MoreSettings/MuteAllModal.jsx
|
|
2224
2048
|
init_define_process_env();
|
|
2225
|
-
import
|
|
2049
|
+
import React20, { useCallback as useCallback8, useState as useState11 } from "react";
|
|
2226
2050
|
import { useHMSActions as useHMSActions11 } from "@100mslive/react-sdk";
|
|
2227
2051
|
import { MicOffIcon } from "@100mslive/react-icons";
|
|
2228
2052
|
var trackSourceOptions = [
|
|
@@ -2240,10 +2064,10 @@ var trackTypeOptions = [
|
|
|
2240
2064
|
var MuteAllModal = ({ onOpenChange }) => {
|
|
2241
2065
|
const roles = useFilteredRoles();
|
|
2242
2066
|
const hmsActions = useHMSActions11();
|
|
2243
|
-
const [enabled, setEnabled] =
|
|
2244
|
-
const [trackType, setTrackType] =
|
|
2245
|
-
const [selectedRole, setRole] =
|
|
2246
|
-
const [selectedSource, setSource] =
|
|
2067
|
+
const [enabled, setEnabled] = useState11(false);
|
|
2068
|
+
const [trackType, setTrackType] = useState11();
|
|
2069
|
+
const [selectedRole, setRole] = useState11();
|
|
2070
|
+
const [selectedSource, setSource] = useState11();
|
|
2247
2071
|
const muteAll = useCallback8(() => __async(void 0, null, function* () {
|
|
2248
2072
|
yield hmsActions.setRemoteTracksEnabled({
|
|
2249
2073
|
enabled,
|
|
@@ -2253,7 +2077,7 @@ var MuteAllModal = ({ onOpenChange }) => {
|
|
|
2253
2077
|
});
|
|
2254
2078
|
onOpenChange(false);
|
|
2255
2079
|
}), [selectedRole, enabled, trackType, selectedSource, hmsActions, onOpenChange]);
|
|
2256
|
-
return /* @__PURE__ */
|
|
2080
|
+
return /* @__PURE__ */ React20.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React20.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon }, /* @__PURE__ */ React20.createElement(
|
|
2257
2081
|
DialogSelect,
|
|
2258
2082
|
{
|
|
2259
2083
|
title: "Role",
|
|
@@ -2263,7 +2087,7 @@ var MuteAllModal = ({ onOpenChange }) => {
|
|
|
2263
2087
|
labelField: "label",
|
|
2264
2088
|
onChange: setRole
|
|
2265
2089
|
}
|
|
2266
|
-
), /* @__PURE__ */
|
|
2090
|
+
), /* @__PURE__ */ React20.createElement(
|
|
2267
2091
|
DialogSelect,
|
|
2268
2092
|
{
|
|
2269
2093
|
title: "Track type",
|
|
@@ -2273,7 +2097,7 @@ var MuteAllModal = ({ onOpenChange }) => {
|
|
|
2273
2097
|
keyField: "value",
|
|
2274
2098
|
labelField: "label"
|
|
2275
2099
|
}
|
|
2276
|
-
), /* @__PURE__ */
|
|
2100
|
+
), /* @__PURE__ */ React20.createElement(
|
|
2277
2101
|
DialogSelect,
|
|
2278
2102
|
{
|
|
2279
2103
|
title: "Track source",
|
|
@@ -2283,7 +2107,7 @@ var MuteAllModal = ({ onOpenChange }) => {
|
|
|
2283
2107
|
keyField: "value",
|
|
2284
2108
|
labelField: "label"
|
|
2285
2109
|
}
|
|
2286
|
-
), /* @__PURE__ */
|
|
2110
|
+
), /* @__PURE__ */ React20.createElement(DialogRow, null, /* @__PURE__ */ React20.createElement(Text, { variant: "md" }, "Track status"), /* @__PURE__ */ React20.createElement(RadioGroup.Root, { value: enabled, onValueChange: setEnabled }, /* @__PURE__ */ React20.createElement(Flex, { align: "center", css: { mr: "$8" } }, /* @__PURE__ */ React20.createElement(RadioGroup.Item, { value: false, id: "trackDisableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React20.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React20.createElement(Label, { htmlFor: "trackDisableRadio" }, "Mute")), /* @__PURE__ */ React20.createElement(Flex, { align: "center", css: { cursor: "pointer" } }, /* @__PURE__ */ React20.createElement(RadioGroup.Item, { value: true, id: "trackEnableRadio", css: { mr: "$4" } }, /* @__PURE__ */ React20.createElement(RadioGroup.Indicator, null)), /* @__PURE__ */ React20.createElement(Label, { htmlFor: "trackEnableRadio" }, "Request Unmute")))), /* @__PURE__ */ React20.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React20.createElement(Button, { variant: "primary", onClick: muteAll }, "Apply"))));
|
|
2287
2111
|
};
|
|
2288
2112
|
|
|
2289
2113
|
// src/Prebuilt/components/MoreSettings/MoreSettings.jsx
|
|
@@ -2300,18 +2124,18 @@ var MODALS = {
|
|
|
2300
2124
|
EMBED_URL: "embedUrl"
|
|
2301
2125
|
};
|
|
2302
2126
|
var MoreSettings = () => {
|
|
2303
|
-
const permissions =
|
|
2304
|
-
const isAllowedToPublish =
|
|
2305
|
-
const localPeerId =
|
|
2306
|
-
const localPeerRole =
|
|
2127
|
+
const permissions = useHMSStore15(selectPermissions4);
|
|
2128
|
+
const isAllowedToPublish = useHMSStore15(selectIsAllowedToPublish);
|
|
2129
|
+
const localPeerId = useHMSStore15(selectLocalPeerID6);
|
|
2130
|
+
const localPeerRole = useHMSStore15(selectLocalPeerRoleName5);
|
|
2307
2131
|
const hmsActions = useHMSActions12();
|
|
2308
|
-
const enablHlsStats =
|
|
2132
|
+
const enablHlsStats = useHMSStore15(selectAppData2(APP_DATA.hlsStats));
|
|
2309
2133
|
const isMobile = useMedia5(config.media.md);
|
|
2310
2134
|
const { isBrowserRecordingOn } = useRecordingStreaming3();
|
|
2311
2135
|
const isChangeNameEnabled = useIsFeatureEnabled(FEATURE_LIST.CHANGE_NAME);
|
|
2312
2136
|
const isEmbedEnabled = useIsFeatureEnabled(FEATURE_LIST.EMBED_URL);
|
|
2313
2137
|
const isSFNEnabled = useIsFeatureEnabled(FEATURE_LIST.STARTS_FOR_NERDS);
|
|
2314
|
-
const [openModals, setOpenModals] =
|
|
2138
|
+
const [openModals, setOpenModals] = useState12(/* @__PURE__ */ new Set());
|
|
2315
2139
|
useDropdownList({ open: openModals.size > 0, name: "MoreSettings" });
|
|
2316
2140
|
const updateState = (modalName, value) => {
|
|
2317
2141
|
setOpenModals((modals) => {
|
|
@@ -2324,14 +2148,14 @@ var MoreSettings = () => {
|
|
|
2324
2148
|
return copy;
|
|
2325
2149
|
});
|
|
2326
2150
|
};
|
|
2327
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ React21.createElement(Fragment3, null, /* @__PURE__ */ React21.createElement(
|
|
2328
2152
|
Dropdown.Root,
|
|
2329
2153
|
{
|
|
2330
2154
|
open: openModals.has(MODALS.MORE_SETTINGS),
|
|
2331
2155
|
onOpenChange: (value) => updateState(MODALS.MORE_SETTINGS, value)
|
|
2332
2156
|
},
|
|
2333
|
-
/* @__PURE__ */
|
|
2334
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ React21.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ React21.createElement(IconButton_default, null, /* @__PURE__ */ React21.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ React21.createElement(Box, null, /* @__PURE__ */ React21.createElement(VerticalMenuIcon, null))))),
|
|
2158
|
+
/* @__PURE__ */ React21.createElement(
|
|
2335
2159
|
Dropdown.Content,
|
|
2336
2160
|
{
|
|
2337
2161
|
sideOffset: 5,
|
|
@@ -2345,66 +2169,66 @@ var MoreSettings = () => {
|
|
|
2345
2169
|
}
|
|
2346
2170
|
}
|
|
2347
2171
|
},
|
|
2348
|
-
isMobile && (permissions == null ? void 0 : permissions.browserRecording) ? /* @__PURE__ */
|
|
2349
|
-
isChangeNameEnabled && /* @__PURE__ */
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
(permissions == null ? void 0 : permissions.changeRole) && /* @__PURE__ */
|
|
2172
|
+
isMobile && (permissions == null ? void 0 : permissions.browserRecording) ? /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.START_RECORDING, true) }, /* @__PURE__ */ React21.createElement(RecordIcon, null), /* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, isBrowserRecordingOn ? "Stop" : "Start", " Recording")), /* @__PURE__ */ React21.createElement(Dropdown.ItemSeparator, null)) : null,
|
|
2173
|
+
isChangeNameEnabled && /* @__PURE__ */ React21.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.CHANGE_NAME, true), "data-testid": "change_name_btn" }, /* @__PURE__ */ React21.createElement(PencilIcon, null), /* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Change Name")),
|
|
2174
|
+
/* @__PURE__ */ React21.createElement(ChangeSelfRole, { onClick: () => updateState(MODALS.SELF_ROLE_CHANGE, true) }),
|
|
2175
|
+
(permissions == null ? void 0 : permissions.changeRole) && /* @__PURE__ */ React21.createElement(
|
|
2352
2176
|
Dropdown.Item,
|
|
2353
2177
|
{
|
|
2354
2178
|
onClick: () => updateState(MODALS.BULK_ROLE_CHANGE, true),
|
|
2355
2179
|
"data-testid": "bulk_role_change_btn"
|
|
2356
2180
|
},
|
|
2357
|
-
/* @__PURE__ */
|
|
2358
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ React21.createElement(ChangeRoleIcon2, null),
|
|
2182
|
+
/* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Bulk Role Change")
|
|
2359
2183
|
),
|
|
2360
|
-
/* @__PURE__ */
|
|
2361
|
-
isAllowedToPublish.screen && isEmbedEnabled && /* @__PURE__ */
|
|
2362
|
-
permissions.mute && /* @__PURE__ */
|
|
2363
|
-
/* @__PURE__ */
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
FeatureFlags.enableStatsForNerds && isSFNEnabled && (localPeerRole === "hls-viewer" ? Hls.isSupported() ? /* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ React21.createElement(FullScreenItem, null),
|
|
2185
|
+
isAllowedToPublish.screen && isEmbedEnabled && /* @__PURE__ */ React21.createElement(EmbedUrl, { setShowOpenUrl: () => updateState(MODALS.EMBED_URL, true) }),
|
|
2186
|
+
permissions.mute && /* @__PURE__ */ React21.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.MUTE_ALL, true), "data-testid": "mute_all_btn" }, /* @__PURE__ */ React21.createElement(MicOffIcon2, null), /* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Mute All")),
|
|
2187
|
+
/* @__PURE__ */ React21.createElement(Dropdown.ItemSeparator, null),
|
|
2188
|
+
/* @__PURE__ */ React21.createElement(Dropdown.Item, { onClick: () => updateState(MODALS.DEVICE_SETTINGS, true), "data-testid": "device_settings_btn" }, /* @__PURE__ */ React21.createElement(SettingsIcon, null), /* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Settings")),
|
|
2189
|
+
FeatureFlags.enableStatsForNerds && isSFNEnabled && (localPeerRole === "hls-viewer" ? Hls.isSupported() ? /* @__PURE__ */ React21.createElement(
|
|
2366
2190
|
Dropdown.Item,
|
|
2367
2191
|
{
|
|
2368
2192
|
onClick: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats),
|
|
2369
2193
|
"data-testid": "hls_stats"
|
|
2370
2194
|
},
|
|
2371
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ React21.createElement(
|
|
2372
2196
|
Checkbox.Root,
|
|
2373
2197
|
{
|
|
2374
2198
|
css: { margin: "$2" },
|
|
2375
2199
|
checked: enablHlsStats,
|
|
2376
2200
|
onCheckedChange: () => hmsActions.setAppData(APP_DATA.hlsStats, !enablHlsStats)
|
|
2377
2201
|
},
|
|
2378
|
-
/* @__PURE__ */
|
|
2202
|
+
/* @__PURE__ */ React21.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React21.createElement(CheckIcon3, { width: 16, height: 16 }))
|
|
2379
2203
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2381
|
-
) : null : /* @__PURE__ */
|
|
2204
|
+
/* @__PURE__ */ React21.createElement(Flex, { justify: "between", css: { width: "100%" } }, /* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Show HLS Stats"), !isMobileOS ? /* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, `${isMacOS ? "\u2318" : "ctrl"} + ]`) : null)
|
|
2205
|
+
) : null : /* @__PURE__ */ React21.createElement(
|
|
2382
2206
|
Dropdown.Item,
|
|
2383
2207
|
{
|
|
2384
2208
|
onClick: () => updateState(MODALS.STATS_FOR_NERDS, true),
|
|
2385
2209
|
"data-testid": "stats_for_nreds_btn"
|
|
2386
2210
|
},
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ React21.createElement(InfoIcon, null),
|
|
2212
|
+
/* @__PURE__ */ React21.createElement(Text, { variant: "sm", css: { ml: "$4" } }, "Stats for Nerds")
|
|
2389
2213
|
))
|
|
2390
2214
|
)
|
|
2391
|
-
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */
|
|
2215
|
+
), openModals.has(MODALS.BULK_ROLE_CHANGE) && /* @__PURE__ */ React21.createElement(BulkRoleChangeModal, { onOpenChange: (value) => updateState(MODALS.BULK_ROLE_CHANGE, value) }), openModals.has(MODALS.MUTE_ALL) && /* @__PURE__ */ React21.createElement(MuteAllModal, { onOpenChange: (value) => updateState(MODALS.MUTE_ALL, value) }), openModals.has(MODALS.CHANGE_NAME) && /* @__PURE__ */ React21.createElement(ChangeNameModal, { onOpenChange: (value) => updateState(MODALS.CHANGE_NAME, value) }), openModals.has(MODALS.DEVICE_SETTINGS) && /* @__PURE__ */ React21.createElement(SettingsModal_default, { open: true, onOpenChange: (value) => updateState(MODALS.DEVICE_SETTINGS, value) }), FeatureFlags.enableStatsForNerds && openModals.has(MODALS.STATS_FOR_NERDS) && /* @__PURE__ */ React21.createElement(StatsForNerds, { open: true, onOpenChange: (value) => updateState(MODALS.STATS_FOR_NERDS, value) }), openModals.has(MODALS.SELF_ROLE_CHANGE) && /* @__PURE__ */ React21.createElement(RoleChangeModal, { peerId: localPeerId, onOpenChange: (value) => updateState(MODALS.SELF_ROLE_CHANGE, value) }), openModals.has(MODALS.START_RECORDING) && /* @__PURE__ */ React21.createElement(StartRecording_default, { open: true, onOpenChange: (value) => updateState(MODALS.START_RECORDING, value) }), openModals.has(MODALS.EMBED_URL) && /* @__PURE__ */ React21.createElement(EmbedUrlModal, { onOpenChange: (value) => updateState(MODALS.EMBED_URL, value) }));
|
|
2392
2216
|
};
|
|
2393
2217
|
|
|
2394
2218
|
// src/Prebuilt/components/PIP/index.jsx
|
|
2395
2219
|
init_define_process_env();
|
|
2396
|
-
import
|
|
2220
|
+
import React23 from "react";
|
|
2397
2221
|
|
|
2398
2222
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
|
2399
2223
|
init_define_process_env();
|
|
2400
|
-
import
|
|
2224
|
+
import React22, { useCallback as useCallback9, useEffect as useEffect8, useState as useState13 } from "react";
|
|
2401
2225
|
import {
|
|
2402
2226
|
selectLocalPeerRoleName as selectLocalPeerRoleName6,
|
|
2403
2227
|
selectPeers as selectPeers4,
|
|
2404
2228
|
selectRemotePeers as selectRemotePeers2,
|
|
2405
2229
|
selectTracksMap as selectTracksMap2,
|
|
2406
2230
|
useHMSActions as useHMSActions13,
|
|
2407
|
-
useHMSStore as
|
|
2231
|
+
useHMSStore as useHMSStore16,
|
|
2408
2232
|
useHMSVanillaStore
|
|
2409
2233
|
} from "@100mslive/react-sdk";
|
|
2410
2234
|
import { PipIcon } from "@100mslive/react-icons";
|
|
@@ -2851,8 +2675,8 @@ var MediaSession = new SetupMediaSession();
|
|
|
2851
2675
|
|
|
2852
2676
|
// src/Prebuilt/components/PIP/PIPComponent.jsx
|
|
2853
2677
|
var PIPComponent = ({ peers, showLocalPeer }) => {
|
|
2854
|
-
const localPeerRole =
|
|
2855
|
-
const [isPipOn, setIsPipOn] =
|
|
2678
|
+
const localPeerRole = useHMSStore16(selectLocalPeerRoleName6);
|
|
2679
|
+
const [isPipOn, setIsPipOn] = useState13(PictureInPicture.isOn());
|
|
2856
2680
|
const hmsActions = useHMSActions13();
|
|
2857
2681
|
const store = useHMSVanillaStore();
|
|
2858
2682
|
const isFeatureEnabled = useIsFeatureEnabled(FEATURE_LIST.PICTURE_IN_PICTURE);
|
|
@@ -2872,11 +2696,11 @@ var PIPComponent = ({ peers, showLocalPeer }) => {
|
|
|
2872
2696
|
if (!PictureInPicture.isSupported() || localPeerRole === DEFAULT_HLS_VIEWER_ROLE || !isFeatureEnabled) {
|
|
2873
2697
|
return null;
|
|
2874
2698
|
}
|
|
2875
|
-
return /* @__PURE__ */
|
|
2699
|
+
return /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement(Tooltip, { title: `${isPipOn ? "Deactivate" : "Activate"} picture in picture view` }, /* @__PURE__ */ React22.createElement(IconButton_default, { active: !isPipOn, key: "pip", onClick: () => onPipToggle(), "data-testid": "pip_btn" }, /* @__PURE__ */ React22.createElement(PipIcon, null))), isPipOn && /* @__PURE__ */ React22.createElement(ActivatedPIP, { showLocalPeer, peers }));
|
|
2876
2700
|
};
|
|
2877
2701
|
var ActivatedPIP = ({ showLocalPeer, peers }) => {
|
|
2878
|
-
const tracksMap =
|
|
2879
|
-
const storePeers =
|
|
2702
|
+
const tracksMap = useHMSStore16(selectTracksMap2);
|
|
2703
|
+
const storePeers = useHMSStore16(showLocalPeer ? selectPeers4 : selectRemotePeers2);
|
|
2880
2704
|
useEffect8(() => {
|
|
2881
2705
|
let pipPeers = storePeers;
|
|
2882
2706
|
if (peers) {
|
|
@@ -2893,18 +2717,18 @@ var PIPComponent_default = PIPComponent;
|
|
|
2893
2717
|
// src/Prebuilt/components/PIP/index.jsx
|
|
2894
2718
|
var PIP = () => {
|
|
2895
2719
|
const pinnedTrack = usePinnedTrack();
|
|
2896
|
-
return /* @__PURE__ */
|
|
2720
|
+
return /* @__PURE__ */ React23.createElement(PIPComponent_default, { peers: pinnedTrack && pinnedTrack.enabled ? [pinnedTrack.peerId] : void 0, showLocalPeer: true });
|
|
2897
2721
|
};
|
|
2898
2722
|
|
|
2899
2723
|
// src/Prebuilt/components/ScreenShare.jsx
|
|
2900
2724
|
init_define_process_env();
|
|
2901
|
-
import
|
|
2902
|
-
import { selectIsAllowedToPublish as
|
|
2725
|
+
import React31, { Fragment as Fragment5 } from "react";
|
|
2726
|
+
import { selectIsAllowedToPublish as selectIsAllowedToPublish2, useHMSStore as useHMSStore17, useScreenShare as useScreenShare4 } from "@100mslive/react-sdk";
|
|
2903
2727
|
import { ShareScreenIcon as ShareScreenIcon2 } from "@100mslive/react-icons";
|
|
2904
2728
|
|
|
2905
2729
|
// src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx
|
|
2906
2730
|
init_define_process_env();
|
|
2907
|
-
import
|
|
2731
|
+
import React30, { Fragment as Fragment4, useState as useState15 } from "react";
|
|
2908
2732
|
import { useScreenShare as useScreenShare3 } from "@100mslive/react-sdk";
|
|
2909
2733
|
import { PdfShare, ScreenShare, StarIcon, VerticalMenuIcon as VerticalMenuIcon2 } from "@100mslive/react-icons";
|
|
2910
2734
|
|
|
@@ -2935,14 +2759,14 @@ var ShareMenuIcon = styled(ScreenShareButton, {
|
|
|
2935
2759
|
|
|
2936
2760
|
// src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx
|
|
2937
2761
|
init_define_process_env();
|
|
2938
|
-
import
|
|
2762
|
+
import React29, { useState as useState14 } from "react";
|
|
2939
2763
|
|
|
2940
2764
|
// src/Prebuilt/components/pdfAnnotator/pdfErrorView.jsx
|
|
2941
2765
|
init_define_process_env();
|
|
2942
|
-
import
|
|
2766
|
+
import React24 from "react";
|
|
2943
2767
|
import { InfoIcon as InfoIcon2 } from "@100mslive/react-icons";
|
|
2944
2768
|
var PdfErrorView = ({ isPDFUrlValid }) => {
|
|
2945
|
-
return !isPDFUrlValid && /* @__PURE__ */
|
|
2769
|
+
return !isPDFUrlValid && /* @__PURE__ */ React24.createElement(
|
|
2946
2770
|
DialogRow,
|
|
2947
2771
|
{
|
|
2948
2772
|
css: {
|
|
@@ -2951,8 +2775,8 @@ var PdfErrorView = ({ isPDFUrlValid }) => {
|
|
|
2951
2775
|
justifyContent: "start"
|
|
2952
2776
|
}
|
|
2953
2777
|
},
|
|
2954
|
-
/* @__PURE__ */
|
|
2955
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ React24.createElement(InfoIcon2, { width: "12px", height: "12px" }),
|
|
2779
|
+
/* @__PURE__ */ React24.createElement(
|
|
2956
2780
|
Text,
|
|
2957
2781
|
{
|
|
2958
2782
|
variant: "caption",
|
|
@@ -2968,9 +2792,9 @@ var PdfErrorView = ({ isPDFUrlValid }) => {
|
|
|
2968
2792
|
|
|
2969
2793
|
// src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx
|
|
2970
2794
|
init_define_process_env();
|
|
2971
|
-
import
|
|
2795
|
+
import React25 from "react";
|
|
2972
2796
|
var PDFHeader = () => {
|
|
2973
|
-
return /* @__PURE__ */
|
|
2797
|
+
return /* @__PURE__ */ React25.createElement(
|
|
2974
2798
|
DialogCol,
|
|
2975
2799
|
{
|
|
2976
2800
|
align: "start",
|
|
@@ -2979,8 +2803,8 @@ var PDFHeader = () => {
|
|
|
2979
2803
|
mb: "$6"
|
|
2980
2804
|
}
|
|
2981
2805
|
},
|
|
2982
|
-
/* @__PURE__ */
|
|
2983
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ React25.createElement(Dialog.Title, { asChild: true }, /* @__PURE__ */ React25.createElement(Text, { as: "h6", variant: "h6" }, "Share PDF")),
|
|
2807
|
+
/* @__PURE__ */ React25.createElement(Dialog.Description, { asChild: true }, /* @__PURE__ */ React25.createElement(
|
|
2984
2808
|
Text,
|
|
2985
2809
|
{
|
|
2986
2810
|
variant: "sm",
|
|
@@ -2995,10 +2819,10 @@ var PDFHeader = () => {
|
|
|
2995
2819
|
|
|
2996
2820
|
// src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx
|
|
2997
2821
|
init_define_process_env();
|
|
2998
|
-
import
|
|
2822
|
+
import React26 from "react";
|
|
2999
2823
|
import { InfoIcon as InfoIcon3 } from "@100mslive/react-icons";
|
|
3000
2824
|
var PDFInfo = () => {
|
|
3001
|
-
return /* @__PURE__ */
|
|
2825
|
+
return /* @__PURE__ */ React26.createElement(
|
|
3002
2826
|
DialogRow,
|
|
3003
2827
|
{
|
|
3004
2828
|
css: {
|
|
@@ -3011,7 +2835,7 @@ var PDFInfo = () => {
|
|
|
3011
2835
|
minHeight: "$11"
|
|
3012
2836
|
}
|
|
3013
2837
|
},
|
|
3014
|
-
/* @__PURE__ */
|
|
2838
|
+
/* @__PURE__ */ React26.createElement(
|
|
3015
2839
|
InfoIcon3,
|
|
3016
2840
|
{
|
|
3017
2841
|
width: "64px",
|
|
@@ -3021,13 +2845,13 @@ var PDFInfo = () => {
|
|
|
3021
2845
|
}
|
|
3022
2846
|
}
|
|
3023
2847
|
),
|
|
3024
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ React26.createElement(Text, { variant: "caption" }, "On the next screen, ensure you select \u201CThis Tab\u201D and click on share. Only the PDF viewer will be seen by other participants")
|
|
3025
2849
|
);
|
|
3026
2850
|
};
|
|
3027
2851
|
|
|
3028
2852
|
// src/Prebuilt/components/pdfAnnotator/submitPdf.jsx
|
|
3029
2853
|
init_define_process_env();
|
|
3030
|
-
import
|
|
2854
|
+
import React27, { useCallback as useCallback10 } from "react";
|
|
3031
2855
|
var SubmitPDF = ({
|
|
3032
2856
|
pdfFile,
|
|
3033
2857
|
pdfURL,
|
|
@@ -3064,7 +2888,7 @@ var SubmitPDF = ({
|
|
|
3064
2888
|
},
|
|
3065
2889
|
[onOpenChange, pdfFile, setIsPDFUrlValid, setIsValidateProgress, setPDFConfig]
|
|
3066
2890
|
);
|
|
3067
|
-
return /* @__PURE__ */
|
|
2891
|
+
return /* @__PURE__ */ React27.createElement(
|
|
3068
2892
|
Flex,
|
|
3069
2893
|
{
|
|
3070
2894
|
direction: "row",
|
|
@@ -3074,7 +2898,7 @@ var SubmitPDF = ({
|
|
|
3074
2898
|
gap: "$8"
|
|
3075
2899
|
}
|
|
3076
2900
|
},
|
|
3077
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ React27.createElement(
|
|
3078
2902
|
Button,
|
|
3079
2903
|
{
|
|
3080
2904
|
variant: "standard",
|
|
@@ -3087,7 +2911,7 @@ var SubmitPDF = ({
|
|
|
3087
2911
|
},
|
|
3088
2912
|
"Cancel"
|
|
3089
2913
|
),
|
|
3090
|
-
/* @__PURE__ */
|
|
2914
|
+
/* @__PURE__ */ React27.createElement(
|
|
3091
2915
|
Button,
|
|
3092
2916
|
{
|
|
3093
2917
|
variant: "primary",
|
|
@@ -3114,7 +2938,7 @@ var SubmitPDF = ({
|
|
|
3114
2938
|
|
|
3115
2939
|
// src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx
|
|
3116
2940
|
init_define_process_env();
|
|
3117
|
-
import
|
|
2941
|
+
import React28 from "react";
|
|
3118
2942
|
import { TrashIcon } from "@100mslive/react-icons";
|
|
3119
2943
|
var UploadedFile = ({
|
|
3120
2944
|
pdfFile,
|
|
@@ -3126,7 +2950,7 @@ var UploadedFile = ({
|
|
|
3126
2950
|
onOpenChange
|
|
3127
2951
|
}) => {
|
|
3128
2952
|
const [fileName, ext] = pdfFile.name.split(".");
|
|
3129
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ React28.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React28.createElement(Dialog.Portal, null, /* @__PURE__ */ React28.createElement(Dialog.Overlay, null), /* @__PURE__ */ React28.createElement(
|
|
3130
2954
|
Dialog.Content,
|
|
3131
2955
|
{
|
|
3132
2956
|
css: {
|
|
@@ -3135,7 +2959,7 @@ var UploadedFile = ({
|
|
|
3135
2959
|
p: "$10"
|
|
3136
2960
|
}
|
|
3137
2961
|
},
|
|
3138
|
-
/* @__PURE__ */
|
|
2962
|
+
/* @__PURE__ */ React28.createElement(Flex, { direction: "column" }, /* @__PURE__ */ React28.createElement(PDFHeader, null), /* @__PURE__ */ React28.createElement(
|
|
3139
2963
|
DialogRow,
|
|
3140
2964
|
{
|
|
3141
2965
|
css: {
|
|
@@ -3157,7 +2981,7 @@ var UploadedFile = ({
|
|
|
3157
2981
|
mt: "$6"
|
|
3158
2982
|
}
|
|
3159
2983
|
},
|
|
3160
|
-
/* @__PURE__ */
|
|
2984
|
+
/* @__PURE__ */ React28.createElement(Flex, { direction: "row", css: { flexGrow: "1", maxWidth: "88%" } }, /* @__PURE__ */ React28.createElement(
|
|
3161
2985
|
Text,
|
|
3162
2986
|
{
|
|
3163
2987
|
css: {
|
|
@@ -3167,8 +2991,8 @@ var UploadedFile = ({
|
|
|
3167
2991
|
}
|
|
3168
2992
|
},
|
|
3169
2993
|
fileName
|
|
3170
|
-
), /* @__PURE__ */
|
|
3171
|
-
/* @__PURE__ */
|
|
2994
|
+
), /* @__PURE__ */ React28.createElement(Text, { css: { whiteSpace: "nowrap" } }, ".", ext)),
|
|
2995
|
+
/* @__PURE__ */ React28.createElement(
|
|
3172
2996
|
TrashIcon,
|
|
3173
2997
|
{
|
|
3174
2998
|
onClick: () => setPDFFile(null),
|
|
@@ -3177,7 +3001,7 @@ var UploadedFile = ({
|
|
|
3177
3001
|
}
|
|
3178
3002
|
}
|
|
3179
3003
|
)
|
|
3180
|
-
), /* @__PURE__ */
|
|
3004
|
+
), /* @__PURE__ */ React28.createElement(PDFInfo, null), /* @__PURE__ */ React28.createElement(
|
|
3181
3005
|
SubmitPDF,
|
|
3182
3006
|
{
|
|
3183
3007
|
pdfFile,
|
|
@@ -3193,11 +3017,11 @@ var UploadedFile = ({
|
|
|
3193
3017
|
|
|
3194
3018
|
// src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx
|
|
3195
3019
|
function PDFFileOptions({ onOpenChange }) {
|
|
3196
|
-
const [isPDFUrlValid, setIsPDFUrlValid] =
|
|
3197
|
-
const [isValidateProgress, setIsValidateProgress] =
|
|
3198
|
-
const [pdfFile, setPDFFile] =
|
|
3199
|
-
const [pdfURL, setPDFURL] =
|
|
3200
|
-
return !pdfFile ? /* @__PURE__ */
|
|
3020
|
+
const [isPDFUrlValid, setIsPDFUrlValid] = useState14(true);
|
|
3021
|
+
const [isValidateProgress, setIsValidateProgress] = useState14(false);
|
|
3022
|
+
const [pdfFile, setPDFFile] = useState14(null);
|
|
3023
|
+
const [pdfURL, setPDFURL] = useState14("");
|
|
3024
|
+
return !pdfFile ? /* @__PURE__ */ React29.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React29.createElement(Dialog.Portal, null, /* @__PURE__ */ React29.createElement(Dialog.Overlay, null), /* @__PURE__ */ React29.createElement(
|
|
3201
3025
|
Dialog.Content,
|
|
3202
3026
|
{
|
|
3203
3027
|
css: {
|
|
@@ -3206,7 +3030,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3206
3030
|
p: "$10"
|
|
3207
3031
|
}
|
|
3208
3032
|
},
|
|
3209
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ React29.createElement(Flex, { direction: "column" }, /* @__PURE__ */ React29.createElement(PDFHeader, null), /* @__PURE__ */ React29.createElement(
|
|
3210
3034
|
DialogInputFile,
|
|
3211
3035
|
{
|
|
3212
3036
|
onChange: (target) => {
|
|
@@ -3216,14 +3040,14 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3216
3040
|
type: "file",
|
|
3217
3041
|
accept: ".pdf"
|
|
3218
3042
|
}
|
|
3219
|
-
), /* @__PURE__ */
|
|
3043
|
+
), /* @__PURE__ */ React29.createElement(
|
|
3220
3044
|
DialogRow,
|
|
3221
3045
|
{
|
|
3222
3046
|
css: {
|
|
3223
3047
|
m: "$10 0"
|
|
3224
3048
|
}
|
|
3225
3049
|
},
|
|
3226
|
-
/* @__PURE__ */
|
|
3050
|
+
/* @__PURE__ */ React29.createElement(
|
|
3227
3051
|
HorizontalDivider,
|
|
3228
3052
|
{
|
|
3229
3053
|
css: {
|
|
@@ -3231,7 +3055,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3231
3055
|
}
|
|
3232
3056
|
}
|
|
3233
3057
|
),
|
|
3234
|
-
/* @__PURE__ */
|
|
3058
|
+
/* @__PURE__ */ React29.createElement(
|
|
3235
3059
|
Text,
|
|
3236
3060
|
{
|
|
3237
3061
|
variant: "tiny",
|
|
@@ -3241,7 +3065,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3241
3065
|
},
|
|
3242
3066
|
"OR"
|
|
3243
3067
|
),
|
|
3244
|
-
/* @__PURE__ */
|
|
3068
|
+
/* @__PURE__ */ React29.createElement(
|
|
3245
3069
|
HorizontalDivider,
|
|
3246
3070
|
{
|
|
3247
3071
|
css: {
|
|
@@ -3249,7 +3073,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3249
3073
|
}
|
|
3250
3074
|
}
|
|
3251
3075
|
)
|
|
3252
|
-
), /* @__PURE__ */
|
|
3076
|
+
), /* @__PURE__ */ React29.createElement(
|
|
3253
3077
|
Text,
|
|
3254
3078
|
{
|
|
3255
3079
|
variant: "sm",
|
|
@@ -3258,7 +3082,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3258
3082
|
}
|
|
3259
3083
|
},
|
|
3260
3084
|
"Import from URL"
|
|
3261
|
-
), /* @__PURE__ */
|
|
3085
|
+
), /* @__PURE__ */ React29.createElement(
|
|
3262
3086
|
Input,
|
|
3263
3087
|
{
|
|
3264
3088
|
css: { w: "100%", mb: "$10" },
|
|
@@ -3274,7 +3098,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3274
3098
|
type: "text",
|
|
3275
3099
|
error: !isPDFUrlValid
|
|
3276
3100
|
}
|
|
3277
|
-
), !isPDFUrlValid && /* @__PURE__ */
|
|
3101
|
+
), !isPDFUrlValid && /* @__PURE__ */ React29.createElement(PdfErrorView, { isPDFUrlValid }), /* @__PURE__ */ React29.createElement(PDFInfo, null), /* @__PURE__ */ React29.createElement(
|
|
3278
3102
|
SubmitPDF,
|
|
3279
3103
|
{
|
|
3280
3104
|
pdfFile,
|
|
@@ -3285,7 +3109,7 @@ function PDFFileOptions({ onOpenChange }) {
|
|
|
3285
3109
|
onOpenChange
|
|
3286
3110
|
}
|
|
3287
3111
|
))
|
|
3288
|
-
))) : /* @__PURE__ */
|
|
3112
|
+
))) : /* @__PURE__ */ React29.createElement(
|
|
3289
3113
|
UploadedFile,
|
|
3290
3114
|
{
|
|
3291
3115
|
pdfFile,
|
|
@@ -3306,7 +3130,7 @@ var MODALS2 = {
|
|
|
3306
3130
|
PDF_SHARE: "pdfShare"
|
|
3307
3131
|
};
|
|
3308
3132
|
function ShareScreenOptions() {
|
|
3309
|
-
const [openModals, setOpenModals] =
|
|
3133
|
+
const [openModals, setOpenModals] = useState15(/* @__PURE__ */ new Set());
|
|
3310
3134
|
const { amIScreenSharing } = useScreenShare3();
|
|
3311
3135
|
const updateState = (modalName, value) => {
|
|
3312
3136
|
setOpenModals((modals) => {
|
|
@@ -3320,7 +3144,7 @@ function ShareScreenOptions() {
|
|
|
3320
3144
|
});
|
|
3321
3145
|
};
|
|
3322
3146
|
const { toggleScreenShare } = useScreenShare3();
|
|
3323
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ React30.createElement(Fragment4, null, /* @__PURE__ */ React30.createElement(Dropdown.Root, { open: openModals.has(MODALS2.SHARE), onOpenChange: (value) => updateState(MODALS2.SHARE, value) }, /* @__PURE__ */ React30.createElement(Dropdown.Trigger, { asChild: true, "data-testid": "sharing_btn", disabled: amIScreenSharing }, /* @__PURE__ */ React30.createElement(ShareMenuIcon, { disabled: amIScreenSharing }, /* @__PURE__ */ React30.createElement(Tooltip, { title: "Share" }, /* @__PURE__ */ React30.createElement(Box, null, /* @__PURE__ */ React30.createElement(VerticalMenuIcon2, null))))), /* @__PURE__ */ React30.createElement(
|
|
3324
3148
|
Dropdown.Content,
|
|
3325
3149
|
{
|
|
3326
3150
|
sideOffset: 5,
|
|
@@ -3330,7 +3154,7 @@ function ShareScreenOptions() {
|
|
|
3330
3154
|
p: 0
|
|
3331
3155
|
}
|
|
3332
3156
|
},
|
|
3333
|
-
/* @__PURE__ */
|
|
3157
|
+
/* @__PURE__ */ React30.createElement(
|
|
3334
3158
|
Dropdown.Item,
|
|
3335
3159
|
{
|
|
3336
3160
|
css: {
|
|
@@ -3345,10 +3169,10 @@ function ShareScreenOptions() {
|
|
|
3345
3169
|
}
|
|
3346
3170
|
}
|
|
3347
3171
|
},
|
|
3348
|
-
/* @__PURE__ */
|
|
3349
|
-
/* @__PURE__ */
|
|
3172
|
+
/* @__PURE__ */ React30.createElement(Text, { variant: "h6" }, "Start Sharing"),
|
|
3173
|
+
/* @__PURE__ */ React30.createElement(Text, { variant: "sm" }, "Choose what you want to share")
|
|
3350
3174
|
),
|
|
3351
|
-
/* @__PURE__ */
|
|
3175
|
+
/* @__PURE__ */ React30.createElement(
|
|
3352
3176
|
Dropdown.Item,
|
|
3353
3177
|
{
|
|
3354
3178
|
css: {
|
|
@@ -3363,7 +3187,7 @@ function ShareScreenOptions() {
|
|
|
3363
3187
|
}
|
|
3364
3188
|
}
|
|
3365
3189
|
},
|
|
3366
|
-
/* @__PURE__ */
|
|
3190
|
+
/* @__PURE__ */ React30.createElement(
|
|
3367
3191
|
Flex,
|
|
3368
3192
|
{
|
|
3369
3193
|
direction: "column",
|
|
@@ -3372,7 +3196,7 @@ function ShareScreenOptions() {
|
|
|
3372
3196
|
gap: "$6"
|
|
3373
3197
|
}
|
|
3374
3198
|
},
|
|
3375
|
-
/* @__PURE__ */
|
|
3199
|
+
/* @__PURE__ */ React30.createElement(
|
|
3376
3200
|
IconButton,
|
|
3377
3201
|
{
|
|
3378
3202
|
as: "div",
|
|
@@ -3387,7 +3211,7 @@ function ShareScreenOptions() {
|
|
|
3387
3211
|
pb: "0"
|
|
3388
3212
|
}
|
|
3389
3213
|
},
|
|
3390
|
-
/* @__PURE__ */
|
|
3214
|
+
/* @__PURE__ */ React30.createElement(
|
|
3391
3215
|
ScreenShare,
|
|
3392
3216
|
{
|
|
3393
3217
|
width: "100%",
|
|
@@ -3399,7 +3223,7 @@ function ShareScreenOptions() {
|
|
|
3399
3223
|
}
|
|
3400
3224
|
)
|
|
3401
3225
|
),
|
|
3402
|
-
/* @__PURE__ */
|
|
3226
|
+
/* @__PURE__ */ React30.createElement(Flex, { direction: "column", align: "center" }, /* @__PURE__ */ React30.createElement(Text, { variant: "body2" }, "Share Screen"), /* @__PURE__ */ React30.createElement(
|
|
3403
3227
|
Text,
|
|
3404
3228
|
{
|
|
3405
3229
|
variant: "caption",
|
|
@@ -3411,7 +3235,7 @@ function ShareScreenOptions() {
|
|
|
3411
3235
|
"Share your tab, window or your entire screen"
|
|
3412
3236
|
))
|
|
3413
3237
|
),
|
|
3414
|
-
/* @__PURE__ */
|
|
3238
|
+
/* @__PURE__ */ React30.createElement(
|
|
3415
3239
|
Flex,
|
|
3416
3240
|
{
|
|
3417
3241
|
direction: "column",
|
|
@@ -3420,7 +3244,7 @@ function ShareScreenOptions() {
|
|
|
3420
3244
|
gap: "$6"
|
|
3421
3245
|
}
|
|
3422
3246
|
},
|
|
3423
|
-
/* @__PURE__ */
|
|
3247
|
+
/* @__PURE__ */ React30.createElement(
|
|
3424
3248
|
IconButton,
|
|
3425
3249
|
{
|
|
3426
3250
|
onClick: () => {
|
|
@@ -3437,7 +3261,7 @@ function ShareScreenOptions() {
|
|
|
3437
3261
|
pb: "0"
|
|
3438
3262
|
}
|
|
3439
3263
|
},
|
|
3440
|
-
/* @__PURE__ */
|
|
3264
|
+
/* @__PURE__ */ React30.createElement(
|
|
3441
3265
|
PdfShare,
|
|
3442
3266
|
{
|
|
3443
3267
|
width: "100%",
|
|
@@ -3448,7 +3272,7 @@ function ShareScreenOptions() {
|
|
|
3448
3272
|
}
|
|
3449
3273
|
}
|
|
3450
3274
|
),
|
|
3451
|
-
/* @__PURE__ */
|
|
3275
|
+
/* @__PURE__ */ React30.createElement(
|
|
3452
3276
|
Flex,
|
|
3453
3277
|
{
|
|
3454
3278
|
direction: "row",
|
|
@@ -3464,8 +3288,8 @@ function ShareScreenOptions() {
|
|
|
3464
3288
|
gap: "$2"
|
|
3465
3289
|
}
|
|
3466
3290
|
},
|
|
3467
|
-
/* @__PURE__ */
|
|
3468
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ React30.createElement(StarIcon, { height: 14, width: 14 }),
|
|
3292
|
+
/* @__PURE__ */ React30.createElement(
|
|
3469
3293
|
Text,
|
|
3470
3294
|
{
|
|
3471
3295
|
variant: "xs",
|
|
@@ -3479,7 +3303,7 @@ function ShareScreenOptions() {
|
|
|
3479
3303
|
)
|
|
3480
3304
|
)
|
|
3481
3305
|
),
|
|
3482
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ React30.createElement(Flex, { direction: "column", align: "center" }, /* @__PURE__ */ React30.createElement(Text, { variant: "body2" }, "Share PDF"), /* @__PURE__ */ React30.createElement(
|
|
3483
3307
|
Text,
|
|
3484
3308
|
{
|
|
3485
3309
|
variant: "caption",
|
|
@@ -3492,7 +3316,7 @@ function ShareScreenOptions() {
|
|
|
3492
3316
|
))
|
|
3493
3317
|
)
|
|
3494
3318
|
),
|
|
3495
|
-
/* @__PURE__ */
|
|
3319
|
+
/* @__PURE__ */ React30.createElement(
|
|
3496
3320
|
Dropdown.Item,
|
|
3497
3321
|
{
|
|
3498
3322
|
css: {
|
|
@@ -3505,7 +3329,7 @@ function ShareScreenOptions() {
|
|
|
3505
3329
|
}
|
|
3506
3330
|
}
|
|
3507
3331
|
},
|
|
3508
|
-
/* @__PURE__ */
|
|
3332
|
+
/* @__PURE__ */ React30.createElement(
|
|
3509
3333
|
Button,
|
|
3510
3334
|
{
|
|
3511
3335
|
variant: "standard",
|
|
@@ -3522,19 +3346,19 @@ function ShareScreenOptions() {
|
|
|
3522
3346
|
"Cancel"
|
|
3523
3347
|
)
|
|
3524
3348
|
)
|
|
3525
|
-
)), openModals.has(MODALS2.PDF_SHARE) && /* @__PURE__ */
|
|
3349
|
+
)), openModals.has(MODALS2.PDF_SHARE) && /* @__PURE__ */ React30.createElement(PDFFileOptions, { onOpenChange: (value) => updateState(MODALS2.PDF_SHARE, value) }));
|
|
3526
3350
|
}
|
|
3527
3351
|
|
|
3528
3352
|
// src/Prebuilt/components/ScreenShare.jsx
|
|
3529
3353
|
var ScreenshareToggle = ({ css = {} }) => {
|
|
3530
|
-
const isAllowedToPublish =
|
|
3354
|
+
const isAllowedToPublish = useHMSStore17(selectIsAllowedToPublish2);
|
|
3531
3355
|
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
|
3532
3356
|
const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = useScreenShare4();
|
|
3533
3357
|
const isVideoScreenshare = amIScreenSharing && !!video;
|
|
3534
3358
|
if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
|
|
3535
3359
|
return null;
|
|
3536
3360
|
}
|
|
3537
|
-
return /* @__PURE__ */
|
|
3361
|
+
return /* @__PURE__ */ React31.createElement(Fragment5, null, /* @__PURE__ */ React31.createElement(Flex, { direction: "row" }, /* @__PURE__ */ React31.createElement(
|
|
3538
3362
|
ScreenShareButton,
|
|
3539
3363
|
{
|
|
3540
3364
|
variant: "standard",
|
|
@@ -3546,24 +3370,24 @@ var ScreenshareToggle = ({ css = {} }) => {
|
|
|
3546
3370
|
toggleScreenShare();
|
|
3547
3371
|
}
|
|
3548
3372
|
},
|
|
3549
|
-
/* @__PURE__ */
|
|
3550
|
-
), /* @__PURE__ */
|
|
3373
|
+
/* @__PURE__ */ React31.createElement(Tooltip, { title: `${!isVideoScreenshare ? "Start" : "Stop"} screen sharing` }, /* @__PURE__ */ React31.createElement(Box, null, /* @__PURE__ */ React31.createElement(ShareScreenIcon2, null)))
|
|
3374
|
+
), /* @__PURE__ */ React31.createElement(ShareScreenOptions, null)));
|
|
3551
3375
|
};
|
|
3552
3376
|
|
|
3553
3377
|
// src/Prebuilt/components/ScreenshareHintModal.jsx
|
|
3554
3378
|
init_define_process_env();
|
|
3555
|
-
import
|
|
3379
|
+
import React32 from "react";
|
|
3556
3380
|
import { useHMSActions as useHMSActions14 } from "@100mslive/react-sdk";
|
|
3557
3381
|
var ScreenShareHintModal = ({ onClose }) => {
|
|
3558
3382
|
const hmsActions = useHMSActions14();
|
|
3559
|
-
return /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ React32.createElement(Dialog.Root, { defaultOpen: true, onOpenChange: (value) => !value && onClose() }, /* @__PURE__ */ React32.createElement(DialogContent, { title: "AudioOnly Screenshare" }, /* @__PURE__ */ React32.createElement(
|
|
3560
3384
|
"img",
|
|
3561
3385
|
{
|
|
3562
3386
|
src: "https://images.app.100ms.live/share-audio.png",
|
|
3563
3387
|
alt: "AudioOnly Screenshare instructions",
|
|
3564
3388
|
width: "100%"
|
|
3565
3389
|
}
|
|
3566
|
-
), /* @__PURE__ */
|
|
3390
|
+
), /* @__PURE__ */ React32.createElement(DialogRow, { justify: "end" }, /* @__PURE__ */ React32.createElement(
|
|
3567
3391
|
Button,
|
|
3568
3392
|
{
|
|
3569
3393
|
variant: "primary",
|
|
@@ -3582,23 +3406,23 @@ var ScreenShareHintModal = ({ onClose }) => {
|
|
|
3582
3406
|
|
|
3583
3407
|
// src/Prebuilt/components/Footer/ChatToggle.jsx
|
|
3584
3408
|
init_define_process_env();
|
|
3585
|
-
import
|
|
3586
|
-
import { selectUnreadHMSMessagesCount, useHMSStore as
|
|
3409
|
+
import React33 from "react";
|
|
3410
|
+
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore18 } from "@100mslive/react-sdk";
|
|
3587
3411
|
import { ChatIcon, ChatUnreadIcon } from "@100mslive/react-icons";
|
|
3588
3412
|
var ChatToggle = () => {
|
|
3589
|
-
const countUnreadMessages =
|
|
3413
|
+
const countUnreadMessages = useHMSStore18(selectUnreadHMSMessagesCount);
|
|
3590
3414
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
|
3591
3415
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
|
3592
3416
|
const isFeatureEnabled = useIsFeatureEnabled(FEATURE_LIST.CHAT);
|
|
3593
3417
|
if (!isFeatureEnabled) {
|
|
3594
3418
|
return;
|
|
3595
3419
|
}
|
|
3596
|
-
return /* @__PURE__ */
|
|
3420
|
+
return /* @__PURE__ */ React33.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React33.createElement(IconButton_default, { onClick: toggleChat, active: !isChatOpen, "data-testid": "chat_btn" }, countUnreadMessages === 0 ? /* @__PURE__ */ React33.createElement(ChatIcon, null) : /* @__PURE__ */ React33.createElement(ChatUnreadIcon, { "data-testid": "chat_unread_btn" })));
|
|
3597
3421
|
};
|
|
3598
3422
|
|
|
3599
3423
|
// src/Prebuilt/components/Footer/ConferencingFooter.jsx
|
|
3600
|
-
var TranscriptionButton =
|
|
3601
|
-
var VirtualBackground =
|
|
3424
|
+
var TranscriptionButton = React34.lazy(() => import("./transcription-KASUU6FK.js"));
|
|
3425
|
+
var VirtualBackground = React34.lazy(() => import("./VirtualBackground-4RPLPBOQ.js"));
|
|
3602
3426
|
var ScreenshareAudio = () => {
|
|
3603
3427
|
const {
|
|
3604
3428
|
amIScreenSharing,
|
|
@@ -3606,14 +3430,14 @@ var ScreenshareAudio = () => {
|
|
|
3606
3430
|
screenShareAudioTrackId: audio,
|
|
3607
3431
|
toggleScreenShare
|
|
3608
3432
|
} = useScreenShare5();
|
|
3609
|
-
const isAllowedToPublish =
|
|
3433
|
+
const isAllowedToPublish = useHMSStore19(selectIsAllowedToPublish3);
|
|
3610
3434
|
const isAudioScreenshare = amIScreenSharing && !video && !!audio;
|
|
3611
|
-
const [showModal, setShowModal] =
|
|
3435
|
+
const [showModal, setShowModal] = useState16(false);
|
|
3612
3436
|
const isFeatureEnabled = useIsFeatureEnabled(FEATURE_LIST.AUDIO_ONLY_SCREENSHARE);
|
|
3613
3437
|
if (!isFeatureEnabled || !isAllowedToPublish.screen || !isScreenshareSupported()) {
|
|
3614
3438
|
return null;
|
|
3615
3439
|
}
|
|
3616
|
-
return /* @__PURE__ */
|
|
3440
|
+
return /* @__PURE__ */ React34.createElement(Fragment6, null, /* @__PURE__ */ React34.createElement(Tooltip, { title: `${!isAudioScreenshare ? "Start" : "Stop"} audio sharing`, key: "shareAudio" }, /* @__PURE__ */ React34.createElement(
|
|
3617
3441
|
IconButton_default,
|
|
3618
3442
|
{
|
|
3619
3443
|
active: !isAudioScreenshare,
|
|
@@ -3626,12 +3450,12 @@ var ScreenshareAudio = () => {
|
|
|
3626
3450
|
},
|
|
3627
3451
|
"data-testid": "screenshare_audio"
|
|
3628
3452
|
},
|
|
3629
|
-
/* @__PURE__ */
|
|
3630
|
-
)), showModal && /* @__PURE__ */
|
|
3453
|
+
/* @__PURE__ */ React34.createElement(MusicIcon, null)
|
|
3454
|
+
)), showModal && /* @__PURE__ */ React34.createElement(ScreenShareHintModal, { onClose: () => setShowModal(false) }));
|
|
3631
3455
|
};
|
|
3632
3456
|
var ConferencingFooter = () => {
|
|
3633
3457
|
const isMobile = useMedia6(config.media.md);
|
|
3634
|
-
return /* @__PURE__ */
|
|
3458
|
+
return /* @__PURE__ */ React34.createElement(Footer.Root, null, /* @__PURE__ */ React34.createElement(Footer.Left, null, /* @__PURE__ */ React34.createElement(ScreenshareAudio, null), /* @__PURE__ */ React34.createElement(Suspense2, { fallback: "" }, /* @__PURE__ */ React34.createElement(VirtualBackground, null)), FeatureFlags.enableTranscription ? /* @__PURE__ */ React34.createElement(TranscriptionButton, null) : null, /* @__PURE__ */ React34.createElement(
|
|
3635
3459
|
Flex,
|
|
3636
3460
|
{
|
|
3637
3461
|
align: "center",
|
|
@@ -3643,16 +3467,16 @@ var ConferencingFooter = () => {
|
|
|
3643
3467
|
}
|
|
3644
3468
|
}
|
|
3645
3469
|
},
|
|
3646
|
-
isMobile && /* @__PURE__ */
|
|
3647
|
-
/* @__PURE__ */
|
|
3648
|
-
)), /* @__PURE__ */
|
|
3470
|
+
isMobile && /* @__PURE__ */ React34.createElement(EmojiReaction, null),
|
|
3471
|
+
/* @__PURE__ */ React34.createElement(MetaActions_default, { isMobile: true })
|
|
3472
|
+
)), /* @__PURE__ */ React34.createElement(Footer.Center, null, /* @__PURE__ */ React34.createElement(AudioVideoToggle, null), /* @__PURE__ */ React34.createElement(ScreenshareToggle, null), /* @__PURE__ */ React34.createElement(PIP, null), /* @__PURE__ */ React34.createElement(MoreSettings, null), /* @__PURE__ */ React34.createElement(Flex, { align: "center", css: { display: "none", "@md": { display: "flex" } } }, /* @__PURE__ */ React34.createElement(ChatToggle, null)), /* @__PURE__ */ React34.createElement(LeaveRoom, null)), /* @__PURE__ */ React34.createElement(Footer.Right, null, !isMobile && /* @__PURE__ */ React34.createElement(EmojiReaction, null), /* @__PURE__ */ React34.createElement(MetaActions_default, null), /* @__PURE__ */ React34.createElement(ChatToggle, null)));
|
|
3649
3473
|
};
|
|
3650
3474
|
|
|
3651
3475
|
// src/Prebuilt/components/Footer/StreamingFooter.jsx
|
|
3652
3476
|
init_define_process_env();
|
|
3653
|
-
import
|
|
3477
|
+
import React35 from "react";
|
|
3654
3478
|
var StreamingFooter = () => {
|
|
3655
|
-
return /* @__PURE__ */
|
|
3479
|
+
return /* @__PURE__ */ React35.createElement(
|
|
3656
3480
|
Footer.Root,
|
|
3657
3481
|
{
|
|
3658
3482
|
css: {
|
|
@@ -3662,7 +3486,7 @@ var StreamingFooter = () => {
|
|
|
3662
3486
|
}
|
|
3663
3487
|
}
|
|
3664
3488
|
},
|
|
3665
|
-
/* @__PURE__ */
|
|
3489
|
+
/* @__PURE__ */ React35.createElement(
|
|
3666
3490
|
Footer.Left,
|
|
3667
3491
|
{
|
|
3668
3492
|
css: {
|
|
@@ -3672,9 +3496,9 @@ var StreamingFooter = () => {
|
|
|
3672
3496
|
}
|
|
3673
3497
|
}
|
|
3674
3498
|
},
|
|
3675
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ React35.createElement(AudioVideoToggle, null)
|
|
3676
3500
|
),
|
|
3677
|
-
/* @__PURE__ */
|
|
3501
|
+
/* @__PURE__ */ React35.createElement(
|
|
3678
3502
|
Footer.Center,
|
|
3679
3503
|
{
|
|
3680
3504
|
css: {
|
|
@@ -3683,9 +3507,9 @@ var StreamingFooter = () => {
|
|
|
3683
3507
|
}
|
|
3684
3508
|
}
|
|
3685
3509
|
},
|
|
3686
|
-
/* @__PURE__ */
|
|
3687
|
-
/* @__PURE__ */
|
|
3688
|
-
/* @__PURE__ */
|
|
3510
|
+
/* @__PURE__ */ React35.createElement(ScreenshareToggle, { css: { "@sm": { display: "none" } } }),
|
|
3511
|
+
/* @__PURE__ */ React35.createElement(Box, { css: { "@md": { display: "none" } } }, /* @__PURE__ */ React35.createElement(PIP, null)),
|
|
3512
|
+
/* @__PURE__ */ React35.createElement(
|
|
3689
3513
|
Box,
|
|
3690
3514
|
{
|
|
3691
3515
|
css: {
|
|
@@ -3697,34 +3521,34 @@ var StreamingFooter = () => {
|
|
|
3697
3521
|
}
|
|
3698
3522
|
}
|
|
3699
3523
|
},
|
|
3700
|
-
/* @__PURE__ */
|
|
3524
|
+
/* @__PURE__ */ React35.createElement(StreamActions, null)
|
|
3701
3525
|
),
|
|
3702
|
-
/* @__PURE__ */
|
|
3703
|
-
/* @__PURE__ */
|
|
3704
|
-
/* @__PURE__ */
|
|
3526
|
+
/* @__PURE__ */ React35.createElement(MoreSettings, null),
|
|
3527
|
+
/* @__PURE__ */ React35.createElement(Box, { css: { "@md": { display: "none" } } }, /* @__PURE__ */ React35.createElement(LeaveRoom, null)),
|
|
3528
|
+
/* @__PURE__ */ React35.createElement(Flex, { align: "center", css: { display: "none", "@md": { display: "flex" } } }, /* @__PURE__ */ React35.createElement(ChatToggle, null))
|
|
3705
3529
|
),
|
|
3706
|
-
/* @__PURE__ */
|
|
3530
|
+
/* @__PURE__ */ React35.createElement(Footer.Right, null, /* @__PURE__ */ React35.createElement(EmojiReaction, null), /* @__PURE__ */ React35.createElement(MetaActions_default, null), /* @__PURE__ */ React35.createElement(ChatToggle, null))
|
|
3707
3531
|
);
|
|
3708
3532
|
};
|
|
3709
3533
|
|
|
3710
3534
|
// src/Prebuilt/components/Footer.jsx
|
|
3711
3535
|
var Footer2 = () => {
|
|
3712
|
-
return isStreamingKit() ? /* @__PURE__ */
|
|
3536
|
+
return isStreamingKit() ? /* @__PURE__ */ React36.createElement(StreamingFooter, null) : /* @__PURE__ */ React36.createElement(ConferencingFooter, null);
|
|
3713
3537
|
};
|
|
3714
3538
|
|
|
3715
3539
|
// src/Prebuilt/components/RoleChangeRequestModal.jsx
|
|
3716
3540
|
init_define_process_env();
|
|
3717
|
-
import
|
|
3718
|
-
import { selectRoleChangeRequest, useHMSActions as useHMSActions15, useHMSStore as
|
|
3541
|
+
import React37 from "react";
|
|
3542
|
+
import { selectRoleChangeRequest, useHMSActions as useHMSActions15, useHMSStore as useHMSStore20 } from "@100mslive/react-sdk";
|
|
3719
3543
|
var RoleChangeRequestModal = () => {
|
|
3720
3544
|
var _a, _b;
|
|
3721
3545
|
const hmsActions = useHMSActions15();
|
|
3722
3546
|
const isHeadless = useIsHeadless();
|
|
3723
|
-
const roleChangeRequest =
|
|
3547
|
+
const roleChangeRequest = useHMSStore20(selectRoleChangeRequest);
|
|
3724
3548
|
if (!(roleChangeRequest == null ? void 0 : roleChangeRequest.role) || isHeadless) {
|
|
3725
3549
|
return null;
|
|
3726
3550
|
}
|
|
3727
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ React37.createElement(
|
|
3728
3552
|
RequestDialog,
|
|
3729
3553
|
{
|
|
3730
3554
|
title: "Role Change Request",
|
|
@@ -3744,12 +3568,12 @@ var Conference = () => {
|
|
|
3744
3568
|
const navigate = useNavigation();
|
|
3745
3569
|
const { roomId, role } = useParams();
|
|
3746
3570
|
const isHeadless = useIsHeadless();
|
|
3747
|
-
const roomState =
|
|
3571
|
+
const roomState = useHMSStore21(selectRoomState);
|
|
3748
3572
|
const prevState = usePrevious(roomState);
|
|
3749
|
-
const isConnectedToRoom =
|
|
3573
|
+
const isConnectedToRoom = useHMSStore21(selectIsConnectedToRoom2);
|
|
3750
3574
|
const hmsActions = useHMSActions16();
|
|
3751
|
-
const [hideControls, setHideControls] =
|
|
3752
|
-
const dropdownList =
|
|
3575
|
+
const [hideControls, setHideControls] = useState17(false);
|
|
3576
|
+
const dropdownList = useHMSStore21(selectAppData3(APP_DATA.dropdownList));
|
|
3753
3577
|
const skipPreview = useSkipPreview();
|
|
3754
3578
|
const { showPreview } = useHMSPrebuiltContext();
|
|
3755
3579
|
const authTokenInAppData = useAuthToken();
|
|
@@ -3814,12 +3638,12 @@ var Conference = () => {
|
|
|
3814
3638
|
}
|
|
3815
3639
|
}, [isHeadless, hmsActions]);
|
|
3816
3640
|
if (!isConnectedToRoom) {
|
|
3817
|
-
return /* @__PURE__ */
|
|
3641
|
+
return /* @__PURE__ */ React38.createElement(FullPageProgress_default, { loadingText: "Joining..." });
|
|
3818
3642
|
}
|
|
3819
3643
|
if (isHLSStarted) {
|
|
3820
|
-
return /* @__PURE__ */
|
|
3644
|
+
return /* @__PURE__ */ React38.createElement(FullPageProgress_default, { loadingText: "Starting live stream..." });
|
|
3821
3645
|
}
|
|
3822
|
-
return /* @__PURE__ */
|
|
3646
|
+
return /* @__PURE__ */ React38.createElement(Flex, { css: { size: "100%", overflow: "hidden" }, direction: "column" }, !isHeadless && /* @__PURE__ */ React38.createElement(
|
|
3823
3647
|
Box,
|
|
3824
3648
|
{
|
|
3825
3649
|
ref: headerRef,
|
|
@@ -3833,8 +3657,8 @@ var Conference = () => {
|
|
|
3833
3657
|
},
|
|
3834
3658
|
"data-testid": "header"
|
|
3835
3659
|
},
|
|
3836
|
-
/* @__PURE__ */
|
|
3837
|
-
), /* @__PURE__ */
|
|
3660
|
+
/* @__PURE__ */ React38.createElement(Header, null)
|
|
3661
|
+
), /* @__PURE__ */ React38.createElement(
|
|
3838
3662
|
Box,
|
|
3839
3663
|
{
|
|
3840
3664
|
css: {
|
|
@@ -3847,8 +3671,8 @@ var Conference = () => {
|
|
|
3847
3671
|
"data-testid": "conferencing",
|
|
3848
3672
|
onClick: toggleControls
|
|
3849
3673
|
},
|
|
3850
|
-
/* @__PURE__ */
|
|
3851
|
-
), !isHeadless && /* @__PURE__ */
|
|
3674
|
+
/* @__PURE__ */ React38.createElement(ConferenceMainView, null)
|
|
3675
|
+
), !isHeadless && /* @__PURE__ */ React38.createElement(
|
|
3852
3676
|
Box,
|
|
3853
3677
|
{
|
|
3854
3678
|
ref: footerRef,
|
|
@@ -3863,11 +3687,11 @@ var Conference = () => {
|
|
|
3863
3687
|
},
|
|
3864
3688
|
"data-testid": "footer"
|
|
3865
3689
|
},
|
|
3866
|
-
/* @__PURE__ */
|
|
3867
|
-
), /* @__PURE__ */
|
|
3690
|
+
/* @__PURE__ */ React38.createElement(Footer2, null)
|
|
3691
|
+
), /* @__PURE__ */ React38.createElement(RoleChangeRequestModal, null), /* @__PURE__ */ React38.createElement(HLSFailureModal, null));
|
|
3868
3692
|
};
|
|
3869
3693
|
var conference_default = Conference;
|
|
3870
3694
|
export {
|
|
3871
3695
|
conference_default as default
|
|
3872
3696
|
};
|
|
3873
|
-
//# sourceMappingURL=conference-
|
|
3697
|
+
//# sourceMappingURL=conference-DGJFMV3O.js.map
|