@100mslive/roomkit-react 0.3.23 → 0.3.24-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/dist/Accordion/Accordion.d.ts +134 -322
  2. package/dist/Accordion/index.d.ts +134 -322
  3. package/dist/Avatar/Avatar.d.ts +47 -141
  4. package/dist/Button/Button.d.ts +47 -141
  5. package/dist/Checkbox/Checkbox.d.ts +134 -322
  6. package/dist/Collapsible/Collapsible.d.ts +201 -483
  7. package/dist/ConferenceScreen-CLPW3BGP.css +2780 -0
  8. package/dist/{HLSView-S4NJF7Q2.css.map → ConferenceScreen-CLPW3BGP.css.map} +1 -1
  9. package/dist/ConferenceScreen-M6RBPTAJ.js +1774 -0
  10. package/dist/ConferenceScreen-M6RBPTAJ.js.map +7 -0
  11. package/dist/Divider/Divider.d.ts +134 -322
  12. package/dist/Dropdown/Dropdown.d.ts +804 -1932
  13. package/dist/EmbedView-DDSO7ZCV.js +17 -0
  14. package/dist/EmbedView-DDSO7ZCV.js.map +7 -0
  15. package/dist/EmbedView-HGIUZHKA.css +2780 -0
  16. package/dist/EmbedView-HGIUZHKA.css.map +7 -0
  17. package/dist/EmojiReaction-23JDKJD4.js +11 -0
  18. package/dist/EmojiReaction-23JDKJD4.js.map +7 -0
  19. package/dist/Fieldset/Fieldset.d.ts +47 -141
  20. package/dist/Footer/Footer.d.ts +536 -1288
  21. package/dist/{HLSView-S4NJF7Q2.css → HLSView-OW77EAAO.css} +3 -3
  22. package/dist/HLSView-OW77EAAO.css.map +7 -0
  23. package/dist/{HLSView-HYI6LLL6.js → HLSView-Q6GEB3UM.js} +38 -24
  24. package/dist/HLSView-Q6GEB3UM.js.map +7 -0
  25. package/dist/IconButton/IconButton.d.ts +47 -141
  26. package/dist/Input/Input.d.ts +362 -926
  27. package/dist/Label/Label.d.ts +47 -141
  28. package/dist/Layout/Box.d.ts +47 -141
  29. package/dist/Layout/Flex.d.ts +47 -141
  30. package/dist/LeaveScreen-BYTE73MT.js +556 -0
  31. package/dist/LeaveScreen-BYTE73MT.js.map +7 -0
  32. package/dist/LeaveScreen-P7AATEIF.css +2780 -0
  33. package/dist/LeaveScreen-P7AATEIF.css.map +7 -0
  34. package/dist/Link/Link.d.ts +47 -141
  35. package/dist/Modal/Dialog.d.ts +329 -987
  36. package/dist/Modal/DialogContent.d.ts +469 -1127
  37. package/dist/MoreSettings-LV5X2U6K.css +2780 -0
  38. package/dist/MoreSettings-LV5X2U6K.css.map +7 -0
  39. package/dist/MoreSettings-WSHMMNOC.js +16 -0
  40. package/dist/MoreSettings-WSHMMNOC.js.map +7 -0
  41. package/dist/PDFView-RIPRIIH6.css +2780 -0
  42. package/dist/PDFView-RIPRIIH6.css.map +7 -0
  43. package/dist/PDFView-ZFSG2ESE.js +84 -0
  44. package/dist/PDFView-ZFSG2ESE.js.map +7 -0
  45. package/dist/Pagination/StyledPagination.d.ts +268 -644
  46. package/dist/Polls-QWW5LTTB.js +1584 -0
  47. package/dist/Polls-QWW5LTTB.js.map +7 -0
  48. package/dist/Polls-ULYGUPPF.css +2780 -0
  49. package/dist/Polls-ULYGUPPF.css.map +7 -0
  50. package/dist/Popover/index.d.ts +201 -483
  51. package/dist/Prebuilt/IconButton.d.ts +134 -322
  52. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +134 -322
  53. package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +335 -805
  54. package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +1 -0
  55. package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +1 -0
  56. package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +1 -0
  57. package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +1 -0
  58. package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
  59. package/dist/Prebuilt/components/Settings/common.d.ts +134 -322
  60. package/dist/Progress/index.d.ts +134 -322
  61. package/dist/RadioGroup/RadioGroup.d.ts +201 -483
  62. package/dist/RaiseHand-K7NFLH7H.js +10 -0
  63. package/dist/RaiseHand-K7NFLH7H.js.map +7 -0
  64. package/dist/ReactSelect/ReactSelect.d.ts +670 -1610
  65. package/dist/RoleProminence-235AFT7F.js +116 -0
  66. package/dist/RoleProminence-235AFT7F.js.map +7 -0
  67. package/dist/RoleProminence-6XN3POS5.css +2780 -0
  68. package/dist/RoleProminence-6XN3POS5.css.map +7 -0
  69. package/dist/RoomDetailsPane-O5TFMTPI.css +2780 -0
  70. package/dist/RoomDetailsPane-O5TFMTPI.css.map +7 -0
  71. package/dist/RoomDetailsPane-RF3D3TDR.js +53 -0
  72. package/dist/RoomDetailsPane-RF3D3TDR.js.map +7 -0
  73. package/dist/ScreenshareLayout-KNEB3AJJ.css +2780 -0
  74. package/dist/ScreenshareLayout-KNEB3AJJ.css.map +7 -0
  75. package/dist/ScreenshareLayout-PSQMS3NC.js +358 -0
  76. package/dist/ScreenshareLayout-PSQMS3NC.js.map +7 -0
  77. package/dist/Select/Select.d.ts +201 -483
  78. package/dist/Sheet/Sheet.d.ts +329 -987
  79. package/dist/SidePaneTabs-I6DECE5R.css +2780 -0
  80. package/dist/SidePaneTabs-I6DECE5R.css.map +7 -0
  81. package/dist/SidePaneTabs-NXHBI2JB.js +1354 -0
  82. package/dist/SidePaneTabs-NXHBI2JB.js.map +7 -0
  83. package/dist/Slider/Slider.d.ts +47 -141
  84. package/dist/Stats/StyledStats.d.ts +402 -966
  85. package/dist/Switch/Switch.d.ts +47 -141
  86. package/dist/Tabs/Tabs.d.ts +268 -644
  87. package/dist/Text/Text.d.ts +47 -141
  88. package/dist/TextArea/TextArea.d.ts +47 -141
  89. package/dist/Theme/base.config.d.ts +26 -78
  90. package/dist/Theme/stitches.config.d.ts +1046 -1493
  91. package/dist/TileMenu/StyledMenuTile.d.ts +469 -1127
  92. package/dist/Toast/Toast.d.ts +382 -946
  93. package/dist/VBPicker-2CQ3IIO7.js +322 -0
  94. package/dist/VBPicker-2CQ3IIO7.js.map +7 -0
  95. package/dist/VBPicker-DCNYGO23.css +2780 -0
  96. package/dist/VBPicker-DCNYGO23.css.map +7 -0
  97. package/dist/Video/Video.d.ts +47 -141
  98. package/dist/VideoList/StyledVideoList.d.ts +201 -483
  99. package/dist/VideoTile/StyledVideoTile.d.ts +670 -1610
  100. package/dist/WaitingView-NZIUOXBI.js +10 -0
  101. package/dist/WaitingView-NZIUOXBI.js.map +7 -0
  102. package/dist/WhiteboardLayout-4YLFM3EY.js +96 -0
  103. package/dist/WhiteboardLayout-4YLFM3EY.js.map +7 -0
  104. package/dist/WhiteboardLayout-JUOBDFKY.css +2780 -0
  105. package/dist/WhiteboardLayout-JUOBDFKY.css.map +7 -0
  106. package/dist/android-perm-1.png +0 -0
  107. package/dist/audio-level.png +0 -0
  108. package/dist/chunk-3C7IESSI.js +254 -0
  109. package/dist/chunk-3C7IESSI.js.map +7 -0
  110. package/dist/chunk-7FD3VT6Q.js +114 -0
  111. package/dist/chunk-7FD3VT6Q.js.map +7 -0
  112. package/dist/chunk-AHI4HCY3.js +62 -0
  113. package/dist/chunk-AHI4HCY3.js.map +7 -0
  114. package/dist/chunk-BGSYLCVD.js +6337 -0
  115. package/dist/chunk-BGSYLCVD.js.map +7 -0
  116. package/dist/chunk-DANANDDE.js +418 -0
  117. package/dist/chunk-DANANDDE.js.map +7 -0
  118. package/dist/chunk-ETRNLEWQ.js +2658 -0
  119. package/dist/chunk-ETRNLEWQ.js.map +7 -0
  120. package/dist/chunk-EWPHJFZJ.js +487 -0
  121. package/dist/chunk-EWPHJFZJ.js.map +7 -0
  122. package/dist/chunk-F63YJBI4.js +98 -0
  123. package/dist/chunk-F63YJBI4.js.map +7 -0
  124. package/dist/chunk-GLAJUP3O.js +576 -0
  125. package/dist/chunk-GLAJUP3O.js.map +7 -0
  126. package/dist/chunk-GOXRTCTY.js +90 -0
  127. package/dist/chunk-GOXRTCTY.js.map +7 -0
  128. package/dist/chunk-HMCBZI3A.js +59 -0
  129. package/dist/chunk-HMCBZI3A.js.map +7 -0
  130. package/dist/chunk-HVYTC3PX.js +171 -0
  131. package/dist/chunk-HVYTC3PX.js.map +7 -0
  132. package/dist/chunk-LJVP6AWF.js +262 -0
  133. package/dist/chunk-LJVP6AWF.js.map +7 -0
  134. package/dist/chunk-LXJGCRKM.js +30 -0
  135. package/dist/chunk-LXJGCRKM.js.map +7 -0
  136. package/dist/chunk-MG3UGW66.js +16800 -0
  137. package/dist/chunk-MG3UGW66.js.map +7 -0
  138. package/dist/chunk-MUKUP7JU.js +161 -0
  139. package/dist/chunk-MUKUP7JU.js.map +7 -0
  140. package/dist/chunk-OV6MVDCL.js +41 -0
  141. package/dist/chunk-OV6MVDCL.js.map +7 -0
  142. package/dist/chunk-P6NV2XO4.js +178 -0
  143. package/dist/chunk-P6NV2XO4.js.map +7 -0
  144. package/dist/chunk-REL3HBSD.js +71 -0
  145. package/dist/chunk-REL3HBSD.js.map +7 -0
  146. package/dist/chunk-U4SQBXPZ.js +830 -0
  147. package/dist/chunk-U4SQBXPZ.js.map +7 -0
  148. package/dist/chunk-YEL5ZTFU.js +136 -0
  149. package/dist/chunk-YEL5ZTFU.js.map +7 -0
  150. package/dist/empty-chat.svg +12 -0
  151. package/dist/index.cjs.css +2 -2
  152. package/dist/index.cjs.css.map +1 -1
  153. package/dist/index.cjs.js +21713 -21508
  154. package/dist/index.cjs.js.map +4 -4
  155. package/dist/index.css +2 -2
  156. package/dist/index.css.map +1 -1
  157. package/dist/index.js +25 -15
  158. package/dist/ios-perm-0.png +0 -0
  159. package/dist/meta.cjs.json +5515 -5153
  160. package/dist/meta.esbuild.json +8998 -6138
  161. package/dist/pdf-share.png +0 -0
  162. package/dist/screen-share.png +0 -0
  163. package/dist/transaction_error.svg +12 -0
  164. package/package.json +8 -8
  165. package/src/Avatar/Avatar.tsx +1 -1
  166. package/src/Popover/Popover.stories.tsx +1 -1
  167. package/src/Prebuilt/App.tsx +6 -2
  168. package/src/Prebuilt/components/Chat/Chat.tsx +12 -8
  169. package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
  170. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +14 -1
  171. package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +18 -0
  172. package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +56 -0
  173. package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +24 -0
  174. package/src/Prebuilt/components/Notifications/Notifications.tsx +13 -171
  175. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +9 -2
  176. package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +71 -0
  177. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +1 -5
  178. package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
  179. package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +7 -5
  180. package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +23 -1
  181. package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +13 -5
  182. package/src/Prebuilt/components/StatsForNerds.jsx +122 -9
  183. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +43 -31
  184. package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
  185. package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
  186. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +6 -0
  187. package/src/Prebuilt/layouts/HLSView.jsx +1 -0
  188. package/src/Prebuilt/layouts/PDFView.jsx +1 -0
  189. package/src/Prebuilt/layouts/SidePane.tsx +12 -6
  190. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +35 -34
  191. package/src/Prebuilt/layouts/WaitingView.tsx +2 -2
  192. package/dist/HLSView-HYI6LLL6.js.map +0 -7
  193. package/dist/chunk-LRJSQMZ4.js +0 -34759
  194. package/dist/chunk-LRJSQMZ4.js.map +0 -7
@@ -0,0 +1,358 @@
1
+ import {
2
+ InsetTile
3
+ } from "./chunk-YEL5ZTFU.js";
4
+ import {
5
+ ProminenceLayout,
6
+ SecondaryTiles
7
+ } from "./chunk-HVYTC3PX.js";
8
+ import {
9
+ Pagination
10
+ } from "./chunk-P6NV2XO4.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-MG3UGW66.js";
23
+ import {
24
+ Text
25
+ } from "./chunk-MUKUP7JU.js";
26
+ import "./chunk-DANANDDE.js";
27
+ import {
28
+ Box,
29
+ Flex
30
+ } from "./chunk-GOXRTCTY.js";
31
+ import {
32
+ useSetAppDataByKey,
33
+ useSetUiSettings,
34
+ useUISettings
35
+ } from "./chunk-BGSYLCVD.js";
36
+ import {
37
+ APP_DATA,
38
+ UI_SETTINGS,
39
+ __async,
40
+ config,
41
+ init_define_process_env
42
+ } from "./chunk-GLAJUP3O.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-PSQMS3NC.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 &nbsp; Stop screen share\n </Button>\n </Flex>\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAOA,UAAS,WAAW,SAAS,YAAAC,iBAAgB;AACpD,SAAS,YAAAC,iBAAgB;AACzB,SAAS,0BAA0B,eAAAC,oBAAmB;;;ACFtD;AAAA,OAAOC,UAAS,QAAQ,YAAAC,iBAA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AAI,CACrG;AAEJ;",
6
+ "names": ["React", "useState", "useMedia", "useHMSStore", "React", "useState", "React", "React", "useState", "React", "useHMSStore", "useState", "useMedia", "React"]
7
+ }