@100mslive/roomkit-react 0.3.22-alpha.1 → 0.3.22-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ConferenceScreen-CSVWECB5.js +1778 -0
- package/dist/ConferenceScreen-CSVWECB5.js.map +7 -0
- package/dist/ConferenceScreen-YRURU3RV.css +2780 -0
- package/dist/{HLSView-Z2JID2W7.css.map → ConferenceScreen-YRURU3RV.css.map} +1 -1
- package/dist/EmbedView-N2E4DZQA.js +17 -0
- package/dist/EmbedView-N2E4DZQA.js.map +7 -0
- package/dist/EmbedView-S54NTHF5.css +2780 -0
- package/dist/EmbedView-S54NTHF5.css.map +7 -0
- package/dist/EmojiReaction-3X4ST4AU.js +11 -0
- package/dist/EmojiReaction-3X4ST4AU.js.map +7 -0
- package/dist/{HLSView-LCFZPBH3.js → HLSView-EYGGK6BH.js} +38 -24
- package/dist/HLSView-EYGGK6BH.js.map +7 -0
- package/dist/{HLSView-Z2JID2W7.css → HLSView-LBTFLMI4.css} +3 -3
- package/dist/HLSView-LBTFLMI4.css.map +7 -0
- package/dist/LeaveScreen-D6XU64JL.js +556 -0
- package/dist/LeaveScreen-D6XU64JL.js.map +7 -0
- package/dist/LeaveScreen-ZAG5UJZL.css +2780 -0
- package/dist/LeaveScreen-ZAG5UJZL.css.map +7 -0
- package/dist/MoreSettings-R7B4BSNT.css +2780 -0
- package/dist/MoreSettings-R7B4BSNT.css.map +7 -0
- package/dist/MoreSettings-TBJVM7OY.js +16 -0
- package/dist/MoreSettings-TBJVM7OY.js.map +7 -0
- package/dist/PDFView-JOIJDP65.js +84 -0
- package/dist/PDFView-JOIJDP65.js.map +7 -0
- package/dist/PDFView-RMR33QH4.css +2780 -0
- package/dist/PDFView-RMR33QH4.css.map +7 -0
- package/dist/Polls-IN3V2HFI.js +1584 -0
- package/dist/Polls-IN3V2HFI.js.map +7 -0
- package/dist/Polls-JW7JWGTE.css +2780 -0
- package/dist/Polls-JW7JWGTE.css.map +7 -0
- package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
- package/dist/RaiseHand-WES4KKMD.js +10 -0
- package/dist/RaiseHand-WES4KKMD.js.map +7 -0
- package/dist/RoleProminence-4ZBDBCMU.css +2780 -0
- package/dist/RoleProminence-4ZBDBCMU.css.map +7 -0
- package/dist/RoleProminence-PB32DLIB.js +116 -0
- package/dist/RoleProminence-PB32DLIB.js.map +7 -0
- package/dist/RoomDetailsPane-CZH2SNLE.js +53 -0
- package/dist/RoomDetailsPane-CZH2SNLE.js.map +7 -0
- package/dist/RoomDetailsPane-XWH2KEFI.css +2780 -0
- package/dist/RoomDetailsPane-XWH2KEFI.css.map +7 -0
- package/dist/ScreenshareLayout-XVENPVK3.js +358 -0
- package/dist/ScreenshareLayout-XVENPVK3.js.map +7 -0
- package/dist/ScreenshareLayout-YUW3KHAB.css +2780 -0
- package/dist/ScreenshareLayout-YUW3KHAB.css.map +7 -0
- package/dist/SidePaneTabs-QXCDHOGG.js +1354 -0
- package/dist/SidePaneTabs-QXCDHOGG.js.map +7 -0
- package/dist/SidePaneTabs-WQGVOWRP.css +2780 -0
- package/dist/SidePaneTabs-WQGVOWRP.css.map +7 -0
- package/dist/VBPicker-XN74N67R.js +322 -0
- package/dist/VBPicker-XN74N67R.js.map +7 -0
- package/dist/VBPicker-YDM2YIOM.css +2780 -0
- package/dist/VBPicker-YDM2YIOM.css.map +7 -0
- package/dist/WaitingView-77PRTIBV.js +10 -0
- package/dist/WaitingView-77PRTIBV.js.map +7 -0
- package/dist/WhiteboardLayout-FZC7SOSG.js +96 -0
- package/dist/WhiteboardLayout-FZC7SOSG.js.map +7 -0
- package/dist/WhiteboardLayout-MNTUWEVK.css +2780 -0
- package/dist/WhiteboardLayout-MNTUWEVK.css.map +7 -0
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-26D5FDBW.js +16812 -0
- package/dist/chunk-26D5FDBW.js.map +7 -0
- package/dist/chunk-2J5WS52X.js +2595 -0
- package/dist/chunk-2J5WS52X.js.map +7 -0
- package/dist/chunk-2LWOQMYY.js +30 -0
- package/dist/chunk-2LWOQMYY.js.map +7 -0
- package/dist/chunk-3MRQJSIY.js +171 -0
- package/dist/chunk-3MRQJSIY.js.map +7 -0
- package/dist/chunk-4X4WB7X3.js +98 -0
- package/dist/chunk-4X4WB7X3.js.map +7 -0
- package/dist/chunk-7QZJMUHM.js +90 -0
- package/dist/chunk-7QZJMUHM.js.map +7 -0
- package/dist/chunk-ABCV7TX5.js +71 -0
- package/dist/chunk-ABCV7TX5.js.map +7 -0
- package/dist/chunk-BQOT4DK7.js +418 -0
- package/dist/chunk-BQOT4DK7.js.map +7 -0
- package/dist/chunk-ENHSO6YN.js +6337 -0
- package/dist/chunk-ENHSO6YN.js.map +7 -0
- package/dist/chunk-JKWX7W4K.js +161 -0
- package/dist/chunk-JKWX7W4K.js.map +7 -0
- package/dist/chunk-LO4BXA4G.js +114 -0
- package/dist/chunk-LO4BXA4G.js.map +7 -0
- package/dist/chunk-MRVWNFXC.js +59 -0
- package/dist/chunk-MRVWNFXC.js.map +7 -0
- package/dist/chunk-OA4HW7HW.js +262 -0
- package/dist/chunk-OA4HW7HW.js.map +7 -0
- package/dist/chunk-PJQSPAFZ.js +178 -0
- package/dist/chunk-PJQSPAFZ.js.map +7 -0
- package/dist/chunk-QHQKY35W.js +830 -0
- package/dist/chunk-QHQKY35W.js.map +7 -0
- package/dist/chunk-QKXHQ6DV.js +254 -0
- package/dist/chunk-QKXHQ6DV.js.map +7 -0
- package/dist/chunk-RTWNTT77.js +62 -0
- package/dist/chunk-RTWNTT77.js.map +7 -0
- package/dist/chunk-TBXRX6MK.js +576 -0
- package/dist/chunk-TBXRX6MK.js.map +7 -0
- package/dist/chunk-TCOPR3BK.js +487 -0
- package/dist/chunk-TCOPR3BK.js.map +7 -0
- package/dist/chunk-VKORP2LF.js +41 -0
- package/dist/chunk-VKORP2LF.js.map +7 -0
- package/dist/chunk-YYVDCP5Z.js +136 -0
- package/dist/chunk-YYVDCP5Z.js.map +7 -0
- package/dist/empty-chat.svg +12 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +17888 -17792
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +25 -15
- package/dist/ios-perm-0.png +0 -0
- package/dist/meta.cjs.json +5326 -5184
- package/dist/meta.esbuild.json +8960 -6320
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +12 -0
- package/package.json +7 -7
- package/src/Prebuilt/App.tsx +6 -2
- package/src/Prebuilt/components/Chat/Chat.tsx +12 -8
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +2 -0
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +0 -14
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +43 -31
- package/src/Prebuilt/layouts/HLSView.jsx +1 -0
- package/src/Prebuilt/layouts/PDFView.jsx +1 -0
- package/src/Prebuilt/layouts/SidePane.tsx +12 -6
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +35 -34
- package/dist/HLSView-LCFZPBH3.js.map +0 -7
- package/dist/chunk-CRGZUJSX.js +0 -34811
- package/dist/chunk-CRGZUJSX.js.map +0 -7
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/components/Header/Header.tsx", "../src/Prebuilt/components/Header/RoomDetailsHeader.tsx", "../src/Prebuilt/components/Header/common.jsx", "../src/Prebuilt/components/Header/index.tsx"],
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { useMedia } from 'react-use';\nimport { HMSRoomState, selectRoomState, useHMSStore } from '@100mslive/react-sdk';\nimport { config as cssConfig, Flex } from '../../..';\n// @ts-ignore: No implicit any\nimport { Logo, SpeakerTag } from './HeaderComponents';\n// @ts-ignore: No implicit any\nimport { RoomDetailsHeader } from './RoomDetailsHeader';\nimport { LiveStatus, RecordingPauseStatus, RecordingStatus, StreamActions } from './StreamActions';\n// @ts-ignore: No implicit any\nimport { AudioActions, CamaraFlipActions } from './common';\n\nexport const Header = () => {\n const roomState = useHMSStore(selectRoomState);\n const isMobile = useMedia(cssConfig.media.md);\n // Header should be present only inside the call - not in preview, leave room states\n if (roomState !== HMSRoomState.Connected) {\n return <></>;\n }\n return (\n <Flex justify=\"between\" align=\"center\" css={{ position: 'relative', height: '100%' }}>\n <Flex align=\"center\" gap=\"2\" css={{ position: 'absolute', left: '$10' }}>\n <Logo />\n <RoomDetailsHeader />\n <SpeakerTag />\n {isMobile && (\n <Flex align=\"center\" css={{ gap: '$4' }}>\n <LiveStatus />\n <RecordingStatus />\n <RecordingPauseStatus />\n </Flex>\n )}\n </Flex>\n <Flex\n align=\"center\"\n css={{\n position: 'absolute',\n right: '$10',\n gap: '$4',\n }}\n >\n <StreamActions />\n {isMobile ? (\n <>\n <CamaraFlipActions />\n <AudioActions />\n </>\n ) : null}\n </Flex>\n </Flex>\n );\n};\n", "import React from 'react';\nimport { useMedia } from 'react-use';\nimport { ChevronRightIcon } from '@100mslive/react-icons';\nimport { Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\nimport { config as cssConfig } from '../../../Theme';\nimport { useRoomLayoutHeader } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';\nimport { useSheetToggle } from '../AppData/useSheet';\n// @ts-ignore\nimport { useSidepaneToggle } from '../AppData/useSidepane';\nimport { SHEET_OPTIONS, SIDE_PANE_OPTIONS } from '../../common/constants';\n\nexport const RoomDetailsHeader = () => {\n const { title, description } = useRoomLayoutHeader();\n const isMobile = useMedia(cssConfig.media.md);\n const clipLength = 30;\n const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);\n const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);\n\n if ((!title && !description) || (isMobile && !title)) {\n return null;\n }\n\n return (\n <Flex direction={isMobile ? 'row' : 'column'} css={{ ml: '$8', alignItems: isMobile ? 'center' : 'start' }}>\n <Text variant=\"sm\" css={{ c: '$on_surface_high', fontWeight: '$semiBold' }}>\n {title}\n </Text>\n {!isMobile && (\n <Flex align=\"end\" css={{ color: '$on_surface_high' }}>\n <Text variant=\"xs\" css={{ c: '$on_surface_medium' }}>\n {description.slice(0, clipLength)}\n </Text>\n {description.length > clipLength ? (\n <span\n style={{ fontWeight: '600', fontSize: '12px', cursor: 'pointer', lineHeight: '1rem' }}\n onClick={toggleDetailsPane}\n >\n ...more\n </span>\n ) : null}\n </Flex>\n )}\n {isMobile && description ? (\n <Flex css={{ color: '$on_surface_medium' }}>\n <ChevronRightIcon height={16} width={16} onClick={toggleDetailsSheet} />\n </Flex>\n ) : null}\n </Flex>\n );\n};\n", "import React from 'react';\nimport {\n DeviceType,\n getAudioDeviceCategory,\n HMSAudioDeviceCategory,\n selectIsLocalVideoEnabled,\n selectLocalVideoTrackID,\n selectVideoTrackByID,\n useDevices,\n useHMSActions,\n useHMSStore,\n} from '@100mslive/react-sdk';\nimport {\n BluetoothIcon,\n CameraFlipIcon,\n CheckIcon,\n CrossIcon,\n HeadphonesIcon,\n SpeakerIcon,\n TelePhoneIcon,\n} from '@100mslive/react-icons';\nimport { HorizontalDivider } from '../../../Divider';\nimport { Label } from '../../../Label';\nimport { Box, Flex } from '../../../Layout';\nimport { Sheet } from '../../../Sheet';\nimport { Text } from '../../../Text';\nimport IconButton from '../../IconButton';\nimport { ToastManager } from '../Toast/ToastManager';\n\nexport const CamaraFlipActions = () => {\n const actions = useHMSActions();\n const { allDevices } = useDevices();\n const { videoInput } = allDevices;\n const isVideoOn = useHMSStore(selectIsLocalVideoEnabled);\n\n const videoTrackId = useHMSStore(selectLocalVideoTrackID);\n const localVideoTrack = useHMSStore(selectVideoTrackByID(videoTrackId));\n if (!videoInput || !videoInput?.length || !localVideoTrack?.facingMode) {\n return null;\n }\n return (\n <Box>\n <IconButton\n disabled={!isVideoOn}\n onClick={async () => {\n try {\n await actions.switchCamera();\n } catch (e) {\n ToastManager.addToast({\n title: `Error while flipping camera ${e.message || ''}`,\n variant: 'error',\n });\n }\n }}\n >\n <CameraFlipIcon />\n </IconButton>\n </Box>\n );\n};\n\n// It will handle and show audio input devices in Mweb while audio output devices in desktop\nexport const AudioActions = () => {\n const { allDevices, selectedDeviceIDs, updateDevice } = useDevices();\n\n // don't show speaker selector where the API is not supported, and use\n // a generic word(\"Audio\") for Mic. In some cases(Chrome Android for example) this changes both mic and speaker keeping them in sync.\n const shouldShowAudioOutput = 'setSinkId' in HTMLMediaElement.prototype;\n const { audioInput, audioOutput } = allDevices;\n let availableAudioDevices = audioInput;\n let selectedAudio = selectedDeviceIDs.audioInput;\n if (shouldShowAudioOutput) {\n availableAudioDevices = audioOutput;\n selectedAudio = selectedDeviceIDs.audioOutput;\n }\n const hmsActions = useHMSActions();\n const audioFiltered = availableAudioDevices?.find(item => !!item.label);\n const currentSelection = availableAudioDevices?.find(item => item.deviceId === selectedAudio);\n\n if (!audioFiltered) {\n return null;\n }\n const deviceCategory = getAudioDeviceCategory(currentSelection?.label);\n let AudioIcon = <SpeakerIcon />;\n if (deviceCategory === HMSAudioDeviceCategory.BLUETOOTH) {\n AudioIcon = <BluetoothIcon />;\n } else if (deviceCategory === HMSAudioDeviceCategory.WIRED) {\n AudioIcon = <HeadphonesIcon />;\n } else if (deviceCategory === HMSAudioDeviceCategory.EARPIECE) {\n AudioIcon = <TelePhoneIcon />;\n }\n return (\n <AudioSelectionSheet\n audioDevices={availableAudioDevices}\n audioSelected={selectedAudio}\n onChange={async deviceId => {\n try {\n await updateDevice({\n deviceId,\n deviceType: shouldShowAudioOutput ? DeviceType.audioOutput : DeviceType.audioInput,\n });\n } catch (e) {\n ToastManager.addToast({\n title: `Error while changing audio device ${e.message || ''}`,\n variant: 'error',\n });\n }\n }}\n >\n <Box\n onClick={async () => {\n // refresh device as `devicechange` listener won't work in mobile device\n await hmsActions.refreshDevices();\n }}\n >\n <IconButton>{AudioIcon}</IconButton>\n </Box>\n </AudioSelectionSheet>\n );\n};\n\nconst AudioSelectionSheet = ({ audioDevices, audioSelected, onChange, children }) => {\n return (\n <Sheet.Root>\n <Sheet.Trigger asChild>{children}</Sheet.Trigger>\n <Sheet.Content>\n <Sheet.Title css={{ py: '$10', px: '$8', alignItems: 'center' }}>\n <Flex direction=\"row\" justify=\"between\" css={{ w: '100%' }}>\n <Text variant=\"h6\" css={{ display: 'flex' }}>\n Audio\n </Text>\n <Sheet.Close>\n <IconButton as=\"div\" data-testid=\"dialog_cross_icon\">\n <CrossIcon />\n </IconButton>\n </Sheet.Close>\n </Flex>\n </Sheet.Title>\n <HorizontalDivider />\n <Flex\n direction=\"column\"\n css={{\n px: '$8',\n maxHeight: '80vh',\n overflowY: 'auto',\n }}\n >\n {audioDevices.map(audioDevice => {\n return (\n <SelectWithLabel\n key={audioDevice.deviceId}\n label={audioDevice.label}\n id={audioDevice.deviceId}\n checked={audioDevice.deviceId === audioSelected}\n onChange={() => onChange(audioDevice.deviceId)}\n />\n );\n })}\n </Flex>\n </Sheet.Content>\n </Sheet.Root>\n );\n};\n\nconst SelectWithLabel = ({ label, icon = <></>, checked, id, onChange }) => {\n return (\n <Flex\n align=\"center\"\n css={{\n my: '$2',\n py: '$8',\n w: '100%',\n borderBottom: '1px solid $border_default',\n }}\n onClick={onChange}\n >\n <Label\n htmlFor={id}\n css={{\n fontSize: '$md',\n fontWeight: '$semiBold',\n color: '$on_surface_high',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n gap: '$8',\n flex: '1 1 0',\n }}\n >\n {icon}\n {label}\n </Label>\n {checked && <CheckIcon width={24} height={24} />}\n </Flex>\n );\n};\n", "export { Header } from './Header';\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAA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
|
@@ -0,0 +1,178 @@
|
|
1
|
+
import {
|
2
|
+
StyledPagination
|
3
|
+
} from "./chunk-26D5FDBW.js";
|
4
|
+
import {
|
5
|
+
config,
|
6
|
+
init_define_process_env
|
7
|
+
} from "./chunk-TBXRX6MK.js";
|
8
|
+
|
9
|
+
// src/Prebuilt/components/Pagination.tsx
|
10
|
+
init_define_process_env();
|
11
|
+
import React, { useEffect } from "react";
|
12
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "@100mslive/react-icons";
|
13
|
+
var Pagination = ({
|
14
|
+
page,
|
15
|
+
onPageChange,
|
16
|
+
numPages
|
17
|
+
}) => {
|
18
|
+
const disableLeft = page === 0;
|
19
|
+
const disableRight = page === numPages - 1;
|
20
|
+
const nextPage = (e) => {
|
21
|
+
e.stopPropagation();
|
22
|
+
onPageChange(Math.min(page + 1, numPages - 1));
|
23
|
+
};
|
24
|
+
const prevPage = (e) => {
|
25
|
+
e.stopPropagation();
|
26
|
+
onPageChange(Math.max(page - 1, 0));
|
27
|
+
};
|
28
|
+
useEffect(() => {
|
29
|
+
if (page >= numPages) {
|
30
|
+
onPageChange(Math.max(0, numPages - 1));
|
31
|
+
}
|
32
|
+
}, [numPages, onPageChange, page]);
|
33
|
+
if (numPages <= 1) {
|
34
|
+
return null;
|
35
|
+
}
|
36
|
+
return /* @__PURE__ */ React.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React.createElement(ChevronLeftIcon, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React.createElement(
|
37
|
+
StyledPagination.Dot,
|
38
|
+
{
|
39
|
+
key: i,
|
40
|
+
active: page === i,
|
41
|
+
onClick: (e) => {
|
42
|
+
e.stopPropagation();
|
43
|
+
onPageChange(i);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
))) : null, /* @__PURE__ */ React.createElement(StyledPagination.Chevron, { disabled: disableRight, onClick: nextPage }, /* @__PURE__ */ React.createElement(ChevronRightIcon, { width: 16, height: 16, style: { cursor: disableRight ? "not-allowed" : "pointer" } })));
|
47
|
+
};
|
48
|
+
|
49
|
+
// src/Prebuilt/components/hooks/useTileLayout.tsx
|
50
|
+
init_define_process_env();
|
51
|
+
import { useEffect as useEffect2, useMemo, useState } from "react";
|
52
|
+
import { useMeasure, useMedia } from "react-use";
|
53
|
+
import {
|
54
|
+
getPeersWithTiles,
|
55
|
+
selectTracksMap,
|
56
|
+
useHMSVanillaStore
|
57
|
+
} from "@100mslive/react-sdk";
|
58
|
+
var aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
|
59
|
+
var usePagesWithTiles = ({ peers, maxTileCount }) => {
|
60
|
+
const vanillaStore = useHMSVanillaStore();
|
61
|
+
const tracksMap = vanillaStore.getState(selectTracksMap);
|
62
|
+
const peersWithTiles = useMemo(
|
63
|
+
() => getPeersWithTiles(peers, tracksMap, () => false),
|
64
|
+
[peers, tracksMap]
|
65
|
+
);
|
66
|
+
const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);
|
67
|
+
const pagesList = useMemo(() => {
|
68
|
+
let sliceStart = 0;
|
69
|
+
let remaining = peersWithTiles.length;
|
70
|
+
const list = [];
|
71
|
+
for (let i = 0; i < noOfPages; i++) {
|
72
|
+
const count = Math.min(remaining, maxTileCount);
|
73
|
+
list.push(peersWithTiles.slice(sliceStart, sliceStart + count));
|
74
|
+
remaining = remaining - count;
|
75
|
+
sliceStart += count;
|
76
|
+
}
|
77
|
+
return list;
|
78
|
+
}, [peersWithTiles, noOfPages, maxTileCount]);
|
79
|
+
return pagesList;
|
80
|
+
};
|
81
|
+
var useTileLayout = ({
|
82
|
+
pageList,
|
83
|
+
maxTileCount,
|
84
|
+
edgeToEdge = false
|
85
|
+
}) => {
|
86
|
+
const vanillaStore = useHMSVanillaStore();
|
87
|
+
const [ref, { width, height }] = useMeasure();
|
88
|
+
const isMobile = useMedia(config.media.lg);
|
89
|
+
const [pagesWithTiles, setPagesWithTiles] = useState([]);
|
90
|
+
useEffect2(() => {
|
91
|
+
if (width === 0 || height === 0) {
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
for (const page of pageList) {
|
95
|
+
const noOfTilesInPage = page.length;
|
96
|
+
let maxCols = noOfTilesInPage > 2 && noOfTilesInPage < 9 ? Math.ceil(noOfTilesInPage / 2) : Math.ceil(Math.sqrt(noOfTilesInPage));
|
97
|
+
if (isMobile) {
|
98
|
+
maxCols = noOfTilesInPage < 4 ? 1 : Math.min(maxCols, 2);
|
99
|
+
}
|
100
|
+
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
101
|
+
let index = 0;
|
102
|
+
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
103
|
+
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
104
|
+
const rowElements = [];
|
105
|
+
for (let j = 0; j < numCols; j++) {
|
106
|
+
if (index < page.length) {
|
107
|
+
rowElements.push(page[index++]);
|
108
|
+
}
|
109
|
+
}
|
110
|
+
return rowElements;
|
111
|
+
});
|
112
|
+
const gap = edgeToEdge && isMobile ? 0 : 8;
|
113
|
+
const maxHeight = height - (maxRows - 1) * gap;
|
114
|
+
const maxRowHeight = maxHeight / matrix.length;
|
115
|
+
const aspectRatios = isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3) ? aspectRatioConfig.mobile : aspectRatioConfig.default;
|
116
|
+
for (const row of matrix) {
|
117
|
+
let tileWidth = (width - (row.length - 1) * gap) / row.length;
|
118
|
+
let tileHeight = 0;
|
119
|
+
if (edgeToEdge) {
|
120
|
+
tileHeight = maxRowHeight;
|
121
|
+
} else {
|
122
|
+
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
123
|
+
for (const h of calcHeights) {
|
124
|
+
if (h < maxRowHeight) {
|
125
|
+
if (tileHeight < h) {
|
126
|
+
tileHeight = h;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
if (tileHeight === 0) {
|
131
|
+
tileHeight = maxRowHeight;
|
132
|
+
const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
|
133
|
+
tileWidth = 0;
|
134
|
+
for (const w of calcWidths) {
|
135
|
+
if (w < width) {
|
136
|
+
if (tileWidth < w) {
|
137
|
+
tileWidth = w;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
for (let i = 0; i < row.length; i++) {
|
144
|
+
row[i].width = tileWidth;
|
145
|
+
row[i].height = tileHeight;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
setPagesWithTiles([...pageList]);
|
150
|
+
}, [width, height, maxTileCount, pageList, vanillaStore, isMobile, edgeToEdge]);
|
151
|
+
return { pagesWithTiles, ref };
|
152
|
+
};
|
153
|
+
|
154
|
+
// src/Prebuilt/components/hooks/useVideoTileLayout.ts
|
155
|
+
init_define_process_env();
|
156
|
+
import React2, { useContext } from "react";
|
157
|
+
var VideoTileContext = React2.createContext({
|
158
|
+
enableSpotlightingPeer: true,
|
159
|
+
hideParticipantNameOnTile: false,
|
160
|
+
roundedVideoTile: true,
|
161
|
+
hideAudioMuteOnTile: false,
|
162
|
+
hideAudioLevelOnTile: false,
|
163
|
+
objectFit: "contain",
|
164
|
+
hideMetadataOnTile: false
|
165
|
+
});
|
166
|
+
var useVideoTileContext = () => {
|
167
|
+
const context = useContext(VideoTileContext);
|
168
|
+
return context;
|
169
|
+
};
|
170
|
+
|
171
|
+
export {
|
172
|
+
VideoTileContext,
|
173
|
+
useVideoTileContext,
|
174
|
+
Pagination,
|
175
|
+
usePagesWithTiles,
|
176
|
+
useTileLayout
|
177
|
+
};
|
178
|
+
//# sourceMappingURL=chunk-PJQSPAFZ.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/components/Pagination.tsx", "../src/Prebuilt/components/hooks/useTileLayout.tsx", "../src/Prebuilt/components/hooks/useVideoTileLayout.ts"],
|
4
|
+
"sourcesContent": ["import React, { useEffect } from 'react';\nimport { ChevronLeftIcon, ChevronRightIcon } from '@100mslive/react-icons';\nimport { StyledPagination } from '../../Pagination';\n\nexport const Pagination = ({\n page,\n onPageChange,\n numPages,\n}: {\n page: number;\n onPageChange: (page: number) => void;\n numPages: number;\n}) => {\n const disableLeft = page === 0;\n const disableRight = page === numPages - 1;\n const nextPage = (e: React.SyntheticEvent) => {\n e.stopPropagation();\n onPageChange(Math.min(page + 1, numPages - 1));\n };\n const prevPage = (e: React.SyntheticEvent) => {\n e.stopPropagation();\n onPageChange(Math.max(page - 1, 0));\n };\n\n useEffect(() => {\n // currentPageIndex should not exceed pages length\n if (page >= numPages) {\n onPageChange(Math.max(0, numPages - 1));\n }\n }, [numPages, onPageChange, page]);\n\n if (numPages <= 1) {\n return null;\n }\n\n return (\n <StyledPagination.Root css={{ flexShrink: 0 }}>\n <StyledPagination.Chevron disabled={disableLeft} onClick={prevPage}>\n <ChevronLeftIcon width={16} height={16} style={{ cursor: disableLeft ? 'not-allowed' : 'pointer' }} />\n </StyledPagination.Chevron>\n {numPages <= 5 ? (\n <StyledPagination.Dots>\n {[...Array(numPages)].map((_, i) => (\n <StyledPagination.Dot\n key={i}\n active={page === i}\n onClick={e => {\n e.stopPropagation();\n onPageChange(i);\n }}\n />\n ))}\n </StyledPagination.Dots>\n ) : null}\n <StyledPagination.Chevron disabled={disableRight} onClick={nextPage}>\n <ChevronRightIcon width={16} height={16} style={{ cursor: disableRight ? 'not-allowed' : 'pointer' }} />\n </StyledPagination.Chevron>\n </StyledPagination.Root>\n );\n};\n", "import { useEffect, useMemo, useState } from 'react';\nimport { useMeasure, useMedia } from 'react-use';\nimport {\n getPeersWithTiles,\n HMSPeer,\n selectTracksMap,\n TrackWithPeerAndDimensions,\n useHMSVanillaStore,\n} from '@100mslive/react-sdk';\nimport { config as cssConfig } from '../../../Theme';\n\nconst aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };\n\nexport const usePagesWithTiles = ({ peers, maxTileCount }: { peers: HMSPeer[]; maxTileCount: number }) => {\n const vanillaStore = useHMSVanillaStore();\n const tracksMap = vanillaStore.getState(selectTracksMap);\n const peersWithTiles = useMemo(\n () => getPeersWithTiles(peers, tracksMap, () => false) as TrackWithPeerAndDimensions[],\n [peers, tracksMap],\n );\n const noOfPages = Math.ceil(peersWithTiles.length / maxTileCount);\n const pagesList = useMemo(() => {\n let sliceStart = 0;\n let remaining = peersWithTiles.length;\n const list = [];\n // split into pages\n for (let i = 0; i < noOfPages; i++) {\n const count = Math.min(remaining, maxTileCount);\n list.push(peersWithTiles.slice(sliceStart, sliceStart + count));\n remaining = remaining - count;\n sliceStart += count;\n }\n return list;\n }, [peersWithTiles, noOfPages, maxTileCount]);\n return pagesList;\n};\n\nexport const useTileLayout = ({\n pageList,\n maxTileCount,\n edgeToEdge = false,\n}: {\n pageList: TrackWithPeerAndDimensions[][];\n maxTileCount: number;\n edgeToEdge?: boolean;\n}) => {\n const vanillaStore = useHMSVanillaStore();\n const [ref, { width, height }] = useMeasure<HTMLDivElement>();\n const isMobile = useMedia(cssConfig.media.lg);\n const [pagesWithTiles, setPagesWithTiles] = useState<TrackWithPeerAndDimensions[][]>([]);\n\n useEffect(() => {\n if (width === 0 || height === 0) {\n return;\n }\n // calculate dimesions for each page\n for (const page of pageList) {\n const noOfTilesInPage = page.length;\n let maxCols =\n noOfTilesInPage > 2 && noOfTilesInPage < 9\n ? Math.ceil(noOfTilesInPage / 2)\n : Math.ceil(Math.sqrt(noOfTilesInPage));\n if (isMobile) {\n maxCols = noOfTilesInPage < 4 ? 1 : Math.min(maxCols, 2);\n }\n const maxRows = Math.ceil(noOfTilesInPage / maxCols);\n let index = 0;\n // convert the current page to a matrix(grid)\n const matrix = new Array(maxRows).fill(null).map((_, i) => {\n const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);\n const rowElements = [];\n for (let j = 0; j < numCols; j++) {\n if (index < page.length) {\n rowElements.push(page[index++]);\n }\n }\n return rowElements;\n });\n\n const gap = edgeToEdge && isMobile ? 0 : 8; // gap between flex items\n const maxHeight = height - (maxRows - 1) * gap;\n const maxRowHeight = maxHeight / matrix.length;\n const aspectRatios =\n isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3)\n ? aspectRatioConfig.mobile\n : aspectRatioConfig.default;\n // calculate height and width of each tile in a row\n for (const row of matrix) {\n let tileWidth = (width - (row.length - 1) * gap) / row.length;\n let tileHeight = 0;\n if (edgeToEdge) {\n tileHeight = maxRowHeight;\n } else {\n const calcHeights = aspectRatios.map(aR => tileWidth / aR);\n for (const h of calcHeights) {\n if (h < maxRowHeight) {\n if (tileHeight < h) {\n tileHeight = h;\n }\n }\n }\n\n // tileHeight is not calculated as it could be exceeding the max possible height\n // find the max possible width instead\n if (tileHeight === 0) {\n tileHeight = maxRowHeight;\n const calcWidths = aspectRatios.map(aR => tileHeight * aR);\n tileWidth = 0;\n for (const w of calcWidths) {\n if (w < width) {\n if (tileWidth < w) {\n tileWidth = w;\n }\n }\n }\n }\n }\n for (let i = 0; i < row.length; i++) {\n row[i].width = tileWidth;\n row[i].height = tileHeight;\n }\n }\n }\n setPagesWithTiles([...pageList]);\n }, [width, height, maxTileCount, pageList, vanillaStore, isMobile, edgeToEdge]);\n return { pagesWithTiles, ref };\n};\n", "import React, { useContext } from 'react';\n\ntype TileContextType = {\n enableSpotlightingPeer: boolean;\n hideParticipantNameOnTile?: boolean;\n roundedVideoTile?: boolean;\n hideAudioMuteOnTile?: boolean;\n hideAudioLevelOnTile?: boolean;\n objectFit?: 'cover' | 'contain';\n hideMetadataOnTile?: boolean;\n};\n\nexport const VideoTileContext = React.createContext<TileContextType>({\n enableSpotlightingPeer: true,\n hideParticipantNameOnTile: false,\n roundedVideoTile: true,\n hideAudioMuteOnTile: false,\n hideAudioLevelOnTile: false,\n objectFit: 'contain',\n hideMetadataOnTile: false,\n});\n\nexport const useVideoTileContext = () => {\n const context = useContext(VideoTileContext);\n return context;\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;AAAA;AAAA,OAAO,SAAS,iBAAiB;AACjC,SAAS,iBAAiB,wBAAwB;AAG3C,IAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,MAIM;AACJ,QAAM,cAAc,SAAS;AAC7B,QAAM,eAAe,SAAS,WAAW;AACzC,QAAM,WAAW,CAAC,MAA4B;AAC5C,MAAE,gBAAgB;AAClB,iBAAa,KAAK,IAAI,OAAO,GAAG,WAAW,CAAC,CAAC;AAAA,EAC/C;AACA,QAAM,WAAW,CAAC,MAA4B;AAC5C,MAAE,gBAAgB;AAClB,iBAAa,KAAK,IAAI,OAAO,GAAG,CAAC,CAAC;AAAA,EACpC;AAEA,YAAU,MAAM;AAEd,QAAI,QAAQ,UAAU;AACpB,mBAAa,KAAK,IAAI,GAAG,WAAW,CAAC,CAAC;AAAA,IACxC;AAAA,EACF,GAAG,CAAC,UAAU,cAAc,IAAI,CAAC;AAEjC,MAAI,YAAY,GAAG;AACjB,WAAO;AAAA,EACT;AAEA,SACE,oCAAC,iBAAiB,MAAjB,EAAsB,KAAK,EAAE,YAAY,EAAE,KAC1C,oCAAC,iBAAiB,SAAjB,EAAyB,UAAU,aAAa,SAAS,YACxD,oCAAC,mBAAgB,OAAO,IAAI,QAAQ,IAAI,OAAO,EAAE,QAAQ,cAAc,gBAAgB,UAAU,GAAG,CACtG,GACC,YAAY,IACX,oCAAC,iBAAiB,MAAjB,MACE,CAAC,GAAG,MAAM,QAAQ,CAAC,EAAE,IAAI,CAAC,GAAG,MAC5B;AAAA,IAAC,iBAAiB;AAAA,IAAjB;AAAA,MACC,KAAK;AAAA,MACL,QAAQ,SAAS;AAAA,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