@100mslive/roomkit-react 0.3.22-alpha.1 → 0.3.22-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ConferenceScreen-5G5WGPIO.css +2780 -0
- package/dist/{HLSView-Z2JID2W7.css.map → ConferenceScreen-5G5WGPIO.css.map} +1 -1
- package/dist/ConferenceScreen-KS5URW6Z.js +1778 -0
- package/dist/ConferenceScreen-KS5URW6Z.js.map +7 -0
- package/dist/EmbedView-BCRQ3GHV.js +17 -0
- package/dist/EmbedView-BCRQ3GHV.js.map +7 -0
- package/dist/EmbedView-Y24VRONT.css +2780 -0
- package/dist/EmbedView-Y24VRONT.css.map +7 -0
- package/dist/EmojiReaction-NA5F5DWN.js +11 -0
- package/dist/EmojiReaction-NA5F5DWN.js.map +7 -0
- package/dist/{HLSView-Z2JID2W7.css → HLSView-DC43TOIW.css} +3 -3
- package/dist/HLSView-DC43TOIW.css.map +7 -0
- package/dist/{HLSView-LCFZPBH3.js → HLSView-XRGOWFRB.js} +38 -24
- package/dist/HLSView-XRGOWFRB.js.map +7 -0
- package/dist/LeaveScreen-3OZN3MU3.css +2780 -0
- package/dist/LeaveScreen-3OZN3MU3.css.map +7 -0
- package/dist/LeaveScreen-PC4KB6OG.js +556 -0
- package/dist/LeaveScreen-PC4KB6OG.js.map +7 -0
- package/dist/MoreSettings-KTRYHDB2.css +2780 -0
- package/dist/MoreSettings-KTRYHDB2.css.map +7 -0
- package/dist/MoreSettings-XLNYT7PW.js +16 -0
- package/dist/MoreSettings-XLNYT7PW.js.map +7 -0
- package/dist/PDFView-LJ7I3K3H.js +84 -0
- package/dist/PDFView-LJ7I3K3H.js.map +7 -0
- package/dist/PDFView-RJK44WVO.css +2780 -0
- package/dist/PDFView-RJK44WVO.css.map +7 -0
- package/dist/Polls-AULCHMLW.js +1584 -0
- package/dist/Polls-AULCHMLW.js.map +7 -0
- package/dist/Polls-K4GO5ZOC.css +2780 -0
- package/dist/Polls-K4GO5ZOC.css.map +7 -0
- package/dist/RaiseHand-E4OVMBW6.js +10 -0
- package/dist/RaiseHand-E4OVMBW6.js.map +7 -0
- package/dist/RoleProminence-LHUXHLVI.css +2780 -0
- package/dist/RoleProminence-LHUXHLVI.css.map +7 -0
- package/dist/RoleProminence-RWJP2Z36.js +116 -0
- package/dist/RoleProminence-RWJP2Z36.js.map +7 -0
- package/dist/RoomDetailsPane-6BM2FPWW.css +2780 -0
- package/dist/RoomDetailsPane-6BM2FPWW.css.map +7 -0
- package/dist/RoomDetailsPane-7OP2CNJW.js +53 -0
- package/dist/RoomDetailsPane-7OP2CNJW.js.map +7 -0
- package/dist/ScreenshareLayout-RHTD2PQT.css +2780 -0
- package/dist/ScreenshareLayout-RHTD2PQT.css.map +7 -0
- package/dist/ScreenshareLayout-TM7DLYLH.js +358 -0
- package/dist/ScreenshareLayout-TM7DLYLH.js.map +7 -0
- package/dist/SidePaneTabs-T7BKZ2AT.js +1354 -0
- package/dist/SidePaneTabs-T7BKZ2AT.js.map +7 -0
- package/dist/SidePaneTabs-TBUPHNAU.css +2780 -0
- package/dist/SidePaneTabs-TBUPHNAU.css.map +7 -0
- package/dist/VBPicker-M5VYFEUB.css +2780 -0
- package/dist/VBPicker-M5VYFEUB.css.map +7 -0
- package/dist/VBPicker-TQLIL3NC.js +322 -0
- package/dist/VBPicker-TQLIL3NC.js.map +7 -0
- package/dist/WaitingView-TLJ52XYA.js +10 -0
- package/dist/WaitingView-TLJ52XYA.js.map +7 -0
- package/dist/WhiteboardLayout-PZZTM2FW.css +2780 -0
- package/dist/WhiteboardLayout-PZZTM2FW.css.map +7 -0
- package/dist/WhiteboardLayout-YYZ5UVGG.js +96 -0
- package/dist/WhiteboardLayout-YYZ5UVGG.js.map +7 -0
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-42XPBCZO.js +487 -0
- package/dist/chunk-42XPBCZO.js.map +7 -0
- package/dist/chunk-4BQ3AMVG.js +16802 -0
- package/dist/chunk-4BQ3AMVG.js.map +7 -0
- package/dist/chunk-4L5OKEIV.js +90 -0
- package/dist/chunk-4L5OKEIV.js.map +7 -0
- package/dist/chunk-6BX3VCVC.js +6337 -0
- package/dist/chunk-6BX3VCVC.js.map +7 -0
- package/dist/chunk-A3COGXMF.js +114 -0
- package/dist/chunk-A3COGXMF.js.map +7 -0
- package/dist/chunk-B3HHL3ND.js +178 -0
- package/dist/chunk-B3HHL3ND.js.map +7 -0
- package/dist/chunk-B5NLX6N6.js +41 -0
- package/dist/chunk-B5NLX6N6.js.map +7 -0
- package/dist/chunk-BXBPZGSP.js +161 -0
- package/dist/chunk-BXBPZGSP.js.map +7 -0
- package/dist/chunk-DVVFWHQG.js +136 -0
- package/dist/chunk-DVVFWHQG.js.map +7 -0
- package/dist/chunk-GV2DTYSU.js +262 -0
- package/dist/chunk-GV2DTYSU.js.map +7 -0
- package/dist/chunk-KF2YEUWU.js +254 -0
- package/dist/chunk-KF2YEUWU.js.map +7 -0
- package/dist/chunk-KQXTIHI6.js +59 -0
- package/dist/chunk-KQXTIHI6.js.map +7 -0
- package/dist/chunk-MR3HE7HV.js +830 -0
- package/dist/chunk-MR3HE7HV.js.map +7 -0
- package/dist/chunk-OQBTPJPO.js +71 -0
- package/dist/chunk-OQBTPJPO.js.map +7 -0
- package/dist/chunk-P7OOTR7P.js +2595 -0
- package/dist/chunk-P7OOTR7P.js.map +7 -0
- package/dist/chunk-THDU2DKP.js +30 -0
- package/dist/chunk-THDU2DKP.js.map +7 -0
- package/dist/chunk-U4QYH2BP.js +98 -0
- package/dist/chunk-U4QYH2BP.js.map +7 -0
- package/dist/chunk-USEEH3QW.js +418 -0
- package/dist/chunk-USEEH3QW.js.map +7 -0
- package/dist/chunk-UZW3C3ML.js +171 -0
- package/dist/chunk-UZW3C3ML.js.map +7 -0
- package/dist/chunk-YDIB6WKJ.js +576 -0
- package/dist/chunk-YDIB6WKJ.js.map +7 -0
- package/dist/chunk-ZFTULCCP.js +62 -0
- package/dist/chunk-ZFTULCCP.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 +22079 -22000
- 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 +5284 -5181
- package/dist/meta.esbuild.json +8930 -6329
- 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/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,358 @@
|
|
1
|
+
import {
|
2
|
+
InsetTile
|
3
|
+
} from "./chunk-DVVFWHQG.js";
|
4
|
+
import {
|
5
|
+
ProminenceLayout,
|
6
|
+
SecondaryTiles
|
7
|
+
} from "./chunk-UZW3C3ML.js";
|
8
|
+
import {
|
9
|
+
Pagination
|
10
|
+
} from "./chunk-B3HHL3ND.js";
|
11
|
+
import {
|
12
|
+
Button,
|
13
|
+
LayoutMode,
|
14
|
+
LayoutModeIconMapping,
|
15
|
+
Popover,
|
16
|
+
StyledVideoTile,
|
17
|
+
TileMenu_default,
|
18
|
+
Video,
|
19
|
+
VideoTileStats,
|
20
|
+
getVideoTileLabel,
|
21
|
+
useTheme
|
22
|
+
} from "./chunk-4BQ3AMVG.js";
|
23
|
+
import {
|
24
|
+
Text
|
25
|
+
} from "./chunk-BXBPZGSP.js";
|
26
|
+
import "./chunk-USEEH3QW.js";
|
27
|
+
import {
|
28
|
+
Box,
|
29
|
+
Flex
|
30
|
+
} from "./chunk-4L5OKEIV.js";
|
31
|
+
import {
|
32
|
+
useSetAppDataByKey,
|
33
|
+
useSetUiSettings,
|
34
|
+
useUISettings
|
35
|
+
} from "./chunk-6BX3VCVC.js";
|
36
|
+
import {
|
37
|
+
APP_DATA,
|
38
|
+
UI_SETTINGS,
|
39
|
+
__async,
|
40
|
+
config,
|
41
|
+
init_define_process_env
|
42
|
+
} from "./chunk-YDIB6WKJ.js";
|
43
|
+
|
44
|
+
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
45
|
+
init_define_process_env();
|
46
|
+
import React4, { useEffect, useMemo, useState as useState3 } from "react";
|
47
|
+
import { useMedia as useMedia2 } from "react-use";
|
48
|
+
import { selectPeersScreenSharing, useHMSStore as useHMSStore2 } from "@100mslive/react-sdk";
|
49
|
+
|
50
|
+
// src/Prebuilt/components/ScreenshareTile.tsx
|
51
|
+
init_define_process_env();
|
52
|
+
import React3, { useRef, useState as useState2 } from "react";
|
53
|
+
import { useFullscreen, useMedia } from "react-use";
|
54
|
+
import screenfull from "screenfull";
|
55
|
+
import {
|
56
|
+
selectLocalPeerID,
|
57
|
+
selectPeerByID,
|
58
|
+
selectScreenShareAudioByPeerID,
|
59
|
+
selectScreenShareByPeerID,
|
60
|
+
useHMSStore
|
61
|
+
} from "@100mslive/react-sdk";
|
62
|
+
import { ExpandIcon, ShrinkIcon } from "@100mslive/react-icons";
|
63
|
+
|
64
|
+
// src/Prebuilt/components/LayoutModeSelector.tsx
|
65
|
+
init_define_process_env();
|
66
|
+
import React, { useCallback, useState } from "react";
|
67
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "@100mslive/react-icons";
|
68
|
+
var LayoutModeSelector = () => {
|
69
|
+
const [open, setOpen] = useState(false);
|
70
|
+
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
71
|
+
const updateLayoutMode = useCallback(
|
72
|
+
(value) => {
|
73
|
+
setLayoutMode(value);
|
74
|
+
setOpen(false);
|
75
|
+
},
|
76
|
+
[setLayoutMode, setOpen]
|
77
|
+
);
|
78
|
+
return /* @__PURE__ */ React.createElement(Popover.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React.createElement(Popover.Trigger, { asChild: true }, /* @__PURE__ */ React.createElement(
|
79
|
+
Flex,
|
80
|
+
{
|
81
|
+
align: "center",
|
82
|
+
css: {
|
83
|
+
gap: "$4",
|
84
|
+
color: open ? "$on_surface_low" : "$on_surface_medium",
|
85
|
+
r: "$1",
|
86
|
+
p: "$2 $4",
|
87
|
+
height: "100%"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
/* @__PURE__ */ React.createElement(
|
91
|
+
Flex,
|
92
|
+
{
|
93
|
+
align: "center",
|
94
|
+
justify: "center",
|
95
|
+
css: {
|
96
|
+
color: "inherit",
|
97
|
+
"& > svg": {
|
98
|
+
w: "$9",
|
99
|
+
h: "$9"
|
100
|
+
}
|
101
|
+
}
|
102
|
+
},
|
103
|
+
LayoutModeIconMapping[layoutMode]
|
104
|
+
),
|
105
|
+
/* @__PURE__ */ React.createElement(Text, { variant: "caption", css: { color: "inherit", lineHeight: "$sm" } }, layoutMode),
|
106
|
+
open ? /* @__PURE__ */ React.createElement(ChevronUpIcon, { width: 16, height: 16 }) : /* @__PURE__ */ React.createElement(ChevronDownIcon, { width: 16, height: 16 })
|
107
|
+
)), /* @__PURE__ */ React.createElement(
|
108
|
+
Popover.Content,
|
109
|
+
{
|
110
|
+
css: {
|
111
|
+
w: "10.75rem",
|
112
|
+
r: "$1",
|
113
|
+
py: "$4",
|
114
|
+
px: 0,
|
115
|
+
backgroundColor: "$surface_default",
|
116
|
+
overflowY: "auto",
|
117
|
+
boxShadow: "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)",
|
118
|
+
fontFamily: "$sans",
|
119
|
+
color: "$on_surface_high"
|
120
|
+
},
|
121
|
+
side: "bottom",
|
122
|
+
sideOffset: 8,
|
123
|
+
align: "end"
|
124
|
+
},
|
125
|
+
Object.keys(LayoutMode).map((key) => {
|
126
|
+
const value = LayoutMode[key];
|
127
|
+
return /* @__PURE__ */ React.createElement(
|
128
|
+
Flex,
|
129
|
+
{
|
130
|
+
key,
|
131
|
+
onClick: () => updateLayoutMode(value),
|
132
|
+
align: "center",
|
133
|
+
css: {
|
134
|
+
gap: "$4",
|
135
|
+
borderBottom: "1px solid $border_bright",
|
136
|
+
p: "$8",
|
137
|
+
"&:hover": {
|
138
|
+
cursor: "pointer",
|
139
|
+
bg: "$surface_bright"
|
140
|
+
},
|
141
|
+
"&:focus-visible": {
|
142
|
+
bg: "$surface_bright"
|
143
|
+
}
|
144
|
+
}
|
145
|
+
},
|
146
|
+
/* @__PURE__ */ React.createElement(
|
147
|
+
Flex,
|
148
|
+
{
|
149
|
+
align: "center",
|
150
|
+
justify: "center",
|
151
|
+
css: {
|
152
|
+
color: "$on_surface_medium",
|
153
|
+
"& > svg": {
|
154
|
+
w: "$9",
|
155
|
+
h: "$9"
|
156
|
+
}
|
157
|
+
}
|
158
|
+
},
|
159
|
+
LayoutModeIconMapping[value]
|
160
|
+
),
|
161
|
+
/* @__PURE__ */ React.createElement(Text, { variant: "caption", css: { lineHeight: "$sm" } }, value),
|
162
|
+
value === layoutMode ? /* @__PURE__ */ React.createElement(CheckIcon, { width: 20, height: 20, style: { marginLeft: "auto" } }) : null
|
163
|
+
);
|
164
|
+
})
|
165
|
+
));
|
166
|
+
};
|
167
|
+
|
168
|
+
// src/Prebuilt/components/ScreenshareDisplay.tsx
|
169
|
+
init_define_process_env();
|
170
|
+
import React2 from "react";
|
171
|
+
import { useHMSActions } from "@100mslive/react-sdk";
|
172
|
+
import { CrossIcon, ShareScreenIcon } from "@100mslive/react-icons";
|
173
|
+
var ScreenshareDisplay = () => {
|
174
|
+
const hmsActions = useHMSActions();
|
175
|
+
return /* @__PURE__ */ React2.createElement(
|
176
|
+
Flex,
|
177
|
+
{
|
178
|
+
direction: "column",
|
179
|
+
align: "center",
|
180
|
+
justify: "center",
|
181
|
+
css: {
|
182
|
+
size: "100%",
|
183
|
+
bg: "$background_default",
|
184
|
+
color: "$on_surface_high"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
/* @__PURE__ */ React2.createElement(ShareScreenIcon, { width: 48, height: 48 }),
|
188
|
+
/* @__PURE__ */ React2.createElement(Text, { variant: "h5", css: { m: "$8 0" } }, "You are sharing your screen"),
|
189
|
+
/* @__PURE__ */ React2.createElement(
|
190
|
+
Button,
|
191
|
+
{
|
192
|
+
variant: "danger",
|
193
|
+
css: { fontWeight: "$semiBold" },
|
194
|
+
onClick: () => __async(void 0, null, function* () {
|
195
|
+
yield hmsActions.setScreenShareEnabled(false);
|
196
|
+
}),
|
197
|
+
"data-testid": "stop_screen_share_btn"
|
198
|
+
},
|
199
|
+
/* @__PURE__ */ React2.createElement(CrossIcon, { width: 18, height: 18 }),
|
200
|
+
"\xA0 Stop screen share"
|
201
|
+
)
|
202
|
+
);
|
203
|
+
};
|
204
|
+
|
205
|
+
// src/Prebuilt/components/ScreenshareTile.tsx
|
206
|
+
var labelStyles = {
|
207
|
+
position: "unset",
|
208
|
+
width: "100%",
|
209
|
+
textAlign: "center",
|
210
|
+
c: "$on_surface_high",
|
211
|
+
transform: "none",
|
212
|
+
flexShrink: 0
|
213
|
+
};
|
214
|
+
var Tile = ({ peerId, width = "100%", height = "100%" }) => {
|
215
|
+
const isLocal = useHMSStore(selectLocalPeerID) === peerId;
|
216
|
+
const track = useHMSStore(selectScreenShareByPeerID(peerId));
|
217
|
+
const { theme } = useTheme();
|
218
|
+
const peer = useHMSStore(selectPeerByID(peerId));
|
219
|
+
const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
|
220
|
+
const [isMouseHovered, setIsMouseHovered] = useState2(false);
|
221
|
+
const isMobile = useMedia(config.media.md);
|
222
|
+
const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
|
223
|
+
const fullscreenRef = useRef(null);
|
224
|
+
const [fullscreen, setFullscreen] = useState2(false);
|
225
|
+
const isFullscreen = useFullscreen(fullscreenRef, fullscreen, {
|
226
|
+
onClose: () => setFullscreen(false)
|
227
|
+
});
|
228
|
+
const isFullScreenSupported = screenfull.isEnabled;
|
229
|
+
const audioTrack = useHMSStore(selectScreenShareAudioByPeerID(peer == null ? void 0 : peer.id));
|
230
|
+
if (isLocal && (track == null ? void 0 : track.displaySurface) && !["browser", "window", "application"].includes(track.displaySurface)) {
|
231
|
+
return /* @__PURE__ */ React3.createElement(ScreenshareDisplay, null);
|
232
|
+
}
|
233
|
+
if (!peer) {
|
234
|
+
return null;
|
235
|
+
}
|
236
|
+
const label = getVideoTileLabel({
|
237
|
+
peerName: peer == null ? void 0 : peer.name,
|
238
|
+
isLocal: false,
|
239
|
+
videoTrack: track,
|
240
|
+
audioTrack
|
241
|
+
});
|
242
|
+
return /* @__PURE__ */ React3.createElement(
|
243
|
+
StyledVideoTile.Root,
|
244
|
+
{
|
245
|
+
css: {
|
246
|
+
width,
|
247
|
+
height,
|
248
|
+
p: 0,
|
249
|
+
minHeight: 0
|
250
|
+
},
|
251
|
+
"data-testid": "screenshare_tile"
|
252
|
+
},
|
253
|
+
/* @__PURE__ */ React3.createElement(
|
254
|
+
StyledVideoTile.Container,
|
255
|
+
{
|
256
|
+
transparentBg: true,
|
257
|
+
ref: fullscreenRef,
|
258
|
+
css: { flexDirection: "column", gap: "$2" },
|
259
|
+
onMouseEnter: () => setIsMouseHovered(true),
|
260
|
+
onMouseLeave: () => {
|
261
|
+
setIsMouseHovered(false);
|
262
|
+
}
|
263
|
+
},
|
264
|
+
showStatsOnTiles ? /* @__PURE__ */ React3.createElement(VideoTileStats, { audioTrackID: audioTrack == null ? void 0 : audioTrack.id, videoTrackID: track == null ? void 0 : track.id, peerID: peerId, isLocal }) : null,
|
265
|
+
isFullScreenSupported && isMouseHovered ? /* @__PURE__ */ React3.createElement(
|
266
|
+
StyledVideoTile.FullScreenButton,
|
267
|
+
{
|
268
|
+
css: { bg: `${theme.colors.background_dim.value}A3` },
|
269
|
+
onClick: () => setFullscreen(!fullscreen)
|
270
|
+
},
|
271
|
+
isFullscreen ? /* @__PURE__ */ React3.createElement(ShrinkIcon, null) : /* @__PURE__ */ React3.createElement(ExpandIcon, null)
|
272
|
+
) : null,
|
273
|
+
!isMobile && isMouseHovered && !isFullscreen && /* @__PURE__ */ React3.createElement(
|
274
|
+
Box,
|
275
|
+
{
|
276
|
+
css: {
|
277
|
+
position: "absolute",
|
278
|
+
top: "$2",
|
279
|
+
r: "$1",
|
280
|
+
h: "$14",
|
281
|
+
right: isFullScreenSupported ? "$17" : "$2",
|
282
|
+
zIndex: 5,
|
283
|
+
bg: `${theme.colors.background_dim.value}A3`
|
284
|
+
}
|
285
|
+
},
|
286
|
+
/* @__PURE__ */ React3.createElement(LayoutModeSelector, null)
|
287
|
+
),
|
288
|
+
track ? /* @__PURE__ */ React3.createElement(Video, { screenShare: true, mirror: false, attach: !isAudioOnly, trackId: track.id, css: { minHeight: 0 } }) : null,
|
289
|
+
/* @__PURE__ */ React3.createElement(StyledVideoTile.Info, { css: labelStyles }, label),
|
290
|
+
isMouseHovered && !peer.isLocal ? /* @__PURE__ */ React3.createElement(
|
291
|
+
TileMenu_default,
|
292
|
+
{
|
293
|
+
isScreenshare: true,
|
294
|
+
peerID: peer.id,
|
295
|
+
audioTrackID: audioTrack == null ? void 0 : audioTrack.id,
|
296
|
+
videoTrackID: track == null ? void 0 : track.id,
|
297
|
+
enableSpotlightingPeer: false
|
298
|
+
}
|
299
|
+
) : null
|
300
|
+
)
|
301
|
+
);
|
302
|
+
};
|
303
|
+
var ScreenshareTile = React3.memo(Tile);
|
304
|
+
var ScreenshareTile_default = ScreenshareTile;
|
305
|
+
|
306
|
+
// src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
|
307
|
+
var ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }) => {
|
308
|
+
var _a;
|
309
|
+
const peersSharing = useHMSStore2(selectPeersScreenSharing);
|
310
|
+
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
311
|
+
const [page, setPage] = useState3(0);
|
312
|
+
const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
|
313
|
+
const activeSharePeer = peersSharing[page];
|
314
|
+
const isMobile = useMedia2(config.media.md);
|
315
|
+
const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
|
316
|
+
const secondaryPeers = useMemo(() => {
|
317
|
+
if (layoutMode === LayoutMode.SPOTLIGHT) {
|
318
|
+
return [];
|
319
|
+
}
|
320
|
+
if (isMobile || layoutMode === LayoutMode.SIDEBAR) {
|
321
|
+
return activeSharePeer ? [activeSharePeer, ...peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id))] : peers;
|
322
|
+
}
|
323
|
+
return peers.filter((p) => p.id !== (activeSharePeer == null ? void 0 : activeSharePeer.id));
|
324
|
+
}, [activeSharePeer, peers, isMobile, layoutMode]);
|
325
|
+
useEffect(() => {
|
326
|
+
if (isMobile) {
|
327
|
+
setLayoutMode(LayoutMode.GALLERY);
|
328
|
+
return;
|
329
|
+
}
|
330
|
+
if (layoutMode === LayoutMode.SIDEBAR) {
|
331
|
+
return;
|
332
|
+
}
|
333
|
+
setLayoutMode(LayoutMode.SIDEBAR);
|
334
|
+
return () => {
|
335
|
+
setLayoutMode(LayoutMode.GALLERY);
|
336
|
+
};
|
337
|
+
}, [isMobile]);
|
338
|
+
useEffect(() => {
|
339
|
+
setActiveScreenSharePeer(activeSharePeer == null ? void 0 : activeSharePeer.id);
|
340
|
+
return () => {
|
341
|
+
setActiveScreenSharePeer("");
|
342
|
+
};
|
343
|
+
}, [activeSharePeer == null ? void 0 : activeSharePeer.id, setActiveScreenSharePeer]);
|
344
|
+
return /* @__PURE__ */ React4.createElement(ProminenceLayout.Root, { edgeToEdge, hasSidebar }, /* @__PURE__ */ React4.createElement(ProminenceLayout.ProminentSection, null, /* @__PURE__ */ React4.createElement(ScreenshareTile_default, { peerId: (_a = peersSharing[page]) == null ? void 0 : _a.id }), !edgeToEdge && /* @__PURE__ */ React4.createElement(Pagination, { page, onPageChange: setPage, numPages: peersSharing.length })), /* @__PURE__ */ React4.createElement(
|
345
|
+
SecondaryTiles,
|
346
|
+
{
|
347
|
+
peers: secondaryPeers,
|
348
|
+
onPageChange,
|
349
|
+
onPageSize,
|
350
|
+
edgeToEdge,
|
351
|
+
hasSidebar
|
352
|
+
}
|
353
|
+
), layoutMode === LayoutMode.SPOTLIGHT && activeSharePeer && /* @__PURE__ */ React4.createElement(InsetTile, { peerId: activeSharePeer == null ? void 0 : activeSharePeer.id }));
|
354
|
+
};
|
355
|
+
export {
|
356
|
+
ScreenshareLayout
|
357
|
+
};
|
358
|
+
//# sourceMappingURL=ScreenshareLayout-TM7DLYLH.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx", "../src/Prebuilt/components/ScreenshareTile.tsx", "../src/Prebuilt/components/LayoutModeSelector.tsx", "../src/Prebuilt/components/ScreenshareDisplay.tsx"],
|
4
|
+
"sourcesContent": ["import React, { useEffect, useMemo, useState } from 'react';\nimport { useMedia } from 'react-use';\nimport { selectPeersScreenSharing, useHMSStore } from '@100mslive/react-sdk';\nimport { config as cssConfig } from '../../../Theme';\nimport { InsetTile } from '../InsetTile';\nimport { Pagination } from '../Pagination';\n// @ts-ignore: No implicit Any\nimport ScreenshareTile from '../ScreenshareTile';\nimport { SecondaryTiles } from '../SecondaryTiles';\nimport { LayoutMode } from '../Settings/LayoutSettings';\nimport { LayoutProps } from './interface';\nimport { ProminenceLayout } from './ProminenceLayout';\n// @ts-ignore: No implicit Any\nimport { useSetAppDataByKey, useSetUiSettings } from '../AppData/useUISettings';\nimport { APP_DATA, UI_SETTINGS } from '../../common/constants';\n\nexport const ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge }: LayoutProps) => {\n const peersSharing = useHMSStore(selectPeersScreenSharing);\n const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);\n const [page, setPage] = useState(0);\n const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);\n const activeSharePeer = peersSharing[page];\n const isMobile = useMedia(cssConfig.media.md);\n const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;\n const secondaryPeers = useMemo(() => {\n if (layoutMode === LayoutMode.SPOTLIGHT) {\n return [];\n }\n if (isMobile || layoutMode === LayoutMode.SIDEBAR) {\n return activeSharePeer\n ? [activeSharePeer, ...peers.filter(p => p.id !== activeSharePeer?.id)] //keep active sharing peer as first tile\n : peers;\n }\n return peers.filter(p => p.id !== activeSharePeer?.id);\n }, [activeSharePeer, peers, isMobile, layoutMode]);\n\n useEffect(() => {\n if (isMobile) {\n setLayoutMode(LayoutMode.GALLERY);\n return;\n }\n if (layoutMode === LayoutMode.SIDEBAR) {\n return;\n }\n setLayoutMode(LayoutMode.SIDEBAR);\n return () => {\n // reset to gallery once screenshare is stopped\n setLayoutMode(LayoutMode.GALLERY);\n };\n }, [isMobile]); // eslint-disable-line react-hooks/exhaustive-deps\n useEffect(() => {\n setActiveScreenSharePeer(activeSharePeer?.id);\n return () => {\n setActiveScreenSharePeer('');\n };\n }, [activeSharePeer?.id, setActiveScreenSharePeer]);\n\n return (\n <ProminenceLayout.Root edgeToEdge={edgeToEdge} hasSidebar={hasSidebar}>\n <ProminenceLayout.ProminentSection>\n <ScreenshareTile peerId={peersSharing[page]?.id} />\n {!edgeToEdge && <Pagination page={page} onPageChange={setPage} numPages={peersSharing.length} />}\n </ProminenceLayout.ProminentSection>\n <SecondaryTiles\n peers={secondaryPeers}\n onPageChange={onPageChange}\n onPageSize={onPageSize}\n edgeToEdge={edgeToEdge}\n hasSidebar={hasSidebar}\n />\n {layoutMode === LayoutMode.SPOTLIGHT && activeSharePeer && <InsetTile peerId={activeSharePeer?.id} />}\n </ProminenceLayout.Root>\n );\n};\n", "import React, { useRef, useState } from 'react';\nimport { useFullscreen, useMedia } from 'react-use';\nimport screenfull from 'screenfull';\nimport {\n selectLocalPeerID,\n selectPeerByID,\n selectScreenShareAudioByPeerID,\n selectScreenShareByPeerID,\n useHMSStore,\n} from '@100mslive/react-sdk';\nimport { ExpandIcon, ShrinkIcon } from '@100mslive/react-icons';\nimport TileMenu from './TileMenu/TileMenu';\nimport { Box } from '../../Layout';\nimport { VideoTileStats } from '../../Stats';\nimport { config as cssConfig, useTheme } from '../../Theme';\nimport { Video } from '../../Video';\nimport { StyledVideoTile } from '../../VideoTile';\nimport { LayoutModeSelector } from './LayoutModeSelector';\nimport { getVideoTileLabel } from './peerTileUtils';\nimport { ScreenshareDisplay } from './ScreenshareDisplay';\n// @ts-ignore: No implicit Any\nimport { useUISettings } from './AppData/useUISettings';\nimport { UI_SETTINGS } from '../common/constants';\n\nconst labelStyles = {\n position: 'unset',\n width: '100%',\n textAlign: 'center',\n c: '$on_surface_high',\n transform: 'none',\n flexShrink: 0,\n};\n\nconst Tile = ({ peerId, width = '100%', height = '100%' }: { peerId: string; width?: string; height?: string }) => {\n const isLocal = useHMSStore(selectLocalPeerID) === peerId;\n const track = useHMSStore(selectScreenShareByPeerID(peerId));\n const { theme } = useTheme();\n const peer = useHMSStore(selectPeerByID(peerId));\n const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);\n const [isMouseHovered, setIsMouseHovered] = useState(false);\n const isMobile = useMedia(cssConfig.media.md);\n const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);\n const fullscreenRef = useRef<HTMLDivElement | null>(null);\n // fullscreen is for desired state\n const [fullscreen, setFullscreen] = useState(false);\n // isFullscreen is for true state\n const isFullscreen = useFullscreen(fullscreenRef, fullscreen, {\n onClose: () => setFullscreen(false),\n });\n const isFullScreenSupported = screenfull.isEnabled;\n const audioTrack = useHMSStore(selectScreenShareAudioByPeerID(peer?.id));\n\n if (isLocal && track?.displaySurface && !['browser', 'window', 'application'].includes(track.displaySurface)) {\n return <ScreenshareDisplay />;\n }\n\n if (!peer) {\n return null;\n }\n\n const label = getVideoTileLabel({\n peerName: peer?.name,\n isLocal: false,\n videoTrack: track,\n audioTrack,\n });\n\n return (\n <StyledVideoTile.Root\n css={{\n width,\n height,\n p: 0,\n minHeight: 0,\n }}\n data-testid=\"screenshare_tile\"\n >\n <StyledVideoTile.Container\n transparentBg\n ref={fullscreenRef}\n css={{ flexDirection: 'column', gap: '$2' }}\n onMouseEnter={() => setIsMouseHovered(true)}\n onMouseLeave={() => {\n setIsMouseHovered(false);\n }}\n >\n {showStatsOnTiles ? (\n <VideoTileStats audioTrackID={audioTrack?.id} videoTrackID={track?.id} peerID={peerId} isLocal={isLocal} />\n ) : null}\n {isFullScreenSupported && isMouseHovered ? (\n <StyledVideoTile.FullScreenButton\n css={{ bg: `${theme.colors.background_dim.value}A3` }}\n onClick={() => setFullscreen(!fullscreen)}\n >\n {isFullscreen ? <ShrinkIcon /> : <ExpandIcon />}\n </StyledVideoTile.FullScreenButton>\n ) : null}\n {!isMobile && isMouseHovered && !isFullscreen && (\n <Box\n css={{\n position: 'absolute',\n top: '$2',\n r: '$1',\n h: '$14',\n right: isFullScreenSupported ? '$17' : '$2',\n zIndex: 5,\n bg: `${theme.colors.background_dim.value}A3`,\n }}\n >\n <LayoutModeSelector />\n </Box>\n )}\n\n {track ? (\n <Video screenShare={true} mirror={false} attach={!isAudioOnly} trackId={track.id} css={{ minHeight: 0 }} />\n ) : null}\n <StyledVideoTile.Info css={labelStyles}>{label}</StyledVideoTile.Info>\n {isMouseHovered && !peer.isLocal ? (\n <TileMenu\n isScreenshare\n peerID={peer.id}\n audioTrackID={audioTrack?.id}\n videoTrackID={track?.id}\n enableSpotlightingPeer={false}\n />\n ) : null}\n </StyledVideoTile.Container>\n </StyledVideoTile.Root>\n );\n};\n\nconst ScreenshareTile = React.memo(Tile);\n\nexport default ScreenshareTile;\n", "import React, { useCallback, useState } from 'react';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@100mslive/react-icons';\nimport { LayoutMode, LayoutModeIconMapping, LayoutModeKeys } from './Settings/LayoutSettings';\nimport { Flex } from '../../Layout';\nimport { Popover } from '../../Popover';\nimport { Text } from '../../Text';\n// @ts-ignore: No implicit Any\nimport { useSetUiSettings } from '../components/AppData/useUISettings';\nimport { UI_SETTINGS } from '../common/constants';\n\nexport const LayoutModeSelector = () => {\n const [open, setOpen] = useState(false);\n const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);\n const updateLayoutMode = useCallback(\n (value: string) => {\n setLayoutMode(value);\n setOpen(false);\n },\n [setLayoutMode, setOpen],\n );\n return (\n <Popover.Root open={open} onOpenChange={setOpen}>\n <Popover.Trigger asChild>\n <Flex\n align=\"center\"\n css={{\n gap: '$4',\n color: open ? '$on_surface_low' : '$on_surface_medium',\n r: '$1',\n p: '$2 $4',\n height: '100%',\n }}\n >\n <Flex\n align=\"center\"\n justify=\"center\"\n css={{\n color: 'inherit',\n '& > svg': {\n w: '$9',\n h: '$9',\n },\n }}\n >\n {LayoutModeIconMapping[layoutMode as LayoutModeKeys]}\n </Flex>\n <Text variant=\"caption\" css={{ color: 'inherit', lineHeight: '$sm' }}>\n {layoutMode}\n </Text>\n {open ? <ChevronUpIcon width={16} height={16} /> : <ChevronDownIcon width={16} height={16} />}\n </Flex>\n </Popover.Trigger>\n <Popover.Content\n css={{\n w: '10.75rem',\n r: '$1',\n py: '$4',\n px: 0,\n backgroundColor: '$surface_default',\n overflowY: 'auto',\n boxShadow: '0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)',\n fontFamily: '$sans',\n color: '$on_surface_high',\n }}\n side=\"bottom\"\n sideOffset={8}\n align=\"end\"\n >\n {Object.keys(LayoutMode).map(key => {\n const value = LayoutMode[key as LayoutModeKeys];\n return (\n <Flex\n key={key}\n onClick={() => updateLayoutMode(value)}\n align=\"center\"\n css={{\n gap: '$4',\n borderBottom: '1px solid $border_bright',\n p: '$8',\n '&:hover': {\n cursor: 'pointer',\n bg: '$surface_bright',\n },\n '&:focus-visible': {\n bg: '$surface_bright',\n },\n }}\n >\n <Flex\n align=\"center\"\n justify=\"center\"\n css={{\n color: '$on_surface_medium',\n '& > svg': {\n w: '$9',\n h: '$9',\n },\n }}\n >\n {LayoutModeIconMapping[value]}\n </Flex>\n <Text variant=\"caption\" css={{ lineHeight: '$sm' }}>\n {value}\n </Text>\n {value === layoutMode ? <CheckIcon width={20} height={20} style={{ marginLeft: 'auto' }} /> : null}\n </Flex>\n );\n })}\n </Popover.Content>\n </Popover.Root>\n );\n};\n", "import React from 'react';\nimport { useHMSActions } from '@100mslive/react-sdk';\nimport { CrossIcon, ShareScreenIcon } from '@100mslive/react-icons';\nimport { Button } from '../../Button';\nimport { Flex } from '../../Layout';\nimport { Text } from '../../Text';\n\nexport const ScreenshareDisplay = () => {\n const hmsActions = useHMSActions();\n\n return (\n <Flex\n direction=\"column\"\n align=\"center\"\n justify=\"center\"\n css={{\n size: '100%',\n bg: '$background_default',\n color: '$on_surface_high',\n }}\n >\n <ShareScreenIcon width={48} height={48} />\n <Text variant=\"h5\" css={{ m: '$8 0' }}>\n You are sharing your screen\n </Text>\n <Button\n variant=\"danger\"\n css={{ fontWeight: '$semiBold' }}\n onClick={async () => {\n await hmsActions.setScreenShareEnabled(false);\n }}\n data-testid=\"stop_screen_share_btn\"\n >\n <CrossIcon width={18} height={18} />\n Stop screen share\n </Button>\n </Flex>\n );\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAOA,UAAS,WAAW,SAAS,YAAAC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AA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACF,GACC,eAAe,WAAW,aAAa,mBAAmB,gBAAAA,OAAA,cAAC,aAAU,QAAQ,mDAAiB,IAAI,CACrG;AAEJ;",
|
6
|
+
"names": ["React", "useState", "useMedia", "useHMSStore", "React", "useState", "React", "React", "useState", "React", "useHMSStore", "useState", "useMedia", "React"]
|
7
|
+
}
|