@100mslive/roomkit-react 0.3.23-alpha.0 → 0.3.24-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +134 -322
- package/dist/Accordion/index.d.ts +134 -322
- package/dist/Avatar/Avatar.d.ts +47 -141
- package/dist/Button/Button.d.ts +47 -141
- package/dist/Checkbox/Checkbox.d.ts +134 -322
- package/dist/Collapsible/Collapsible.d.ts +201 -483
- package/dist/ConferenceScreen-CLPW3BGP.css +2780 -0
- package/dist/{HLSView-DDIGCKAW.css.map → ConferenceScreen-CLPW3BGP.css.map} +1 -1
- package/dist/ConferenceScreen-M6RBPTAJ.js +1774 -0
- package/dist/ConferenceScreen-M6RBPTAJ.js.map +7 -0
- package/dist/Divider/Divider.d.ts +134 -322
- package/dist/Dropdown/Dropdown.d.ts +804 -1932
- package/dist/EmbedView-DDSO7ZCV.js +17 -0
- package/dist/EmbedView-DDSO7ZCV.js.map +7 -0
- package/dist/EmbedView-HGIUZHKA.css +2780 -0
- package/dist/EmbedView-HGIUZHKA.css.map +7 -0
- package/dist/EmojiReaction-23JDKJD4.js +11 -0
- package/dist/EmojiReaction-23JDKJD4.js.map +7 -0
- package/dist/Fieldset/Fieldset.d.ts +47 -141
- package/dist/Footer/Footer.d.ts +536 -1288
- package/dist/{HLSView-DDIGCKAW.css → HLSView-OW77EAAO.css} +3 -3
- package/dist/HLSView-OW77EAAO.css.map +7 -0
- package/dist/{HLSView-QZO4JEB7.js → HLSView-Q6GEB3UM.js} +38 -24
- package/dist/HLSView-Q6GEB3UM.js.map +7 -0
- package/dist/IconButton/IconButton.d.ts +47 -141
- package/dist/Input/Input.d.ts +362 -926
- package/dist/Label/Label.d.ts +47 -141
- package/dist/Layout/Box.d.ts +47 -141
- package/dist/Layout/Flex.d.ts +47 -141
- package/dist/LeaveScreen-BYTE73MT.js +556 -0
- package/dist/LeaveScreen-BYTE73MT.js.map +7 -0
- package/dist/LeaveScreen-P7AATEIF.css +2780 -0
- package/dist/LeaveScreen-P7AATEIF.css.map +7 -0
- package/dist/Link/Link.d.ts +47 -141
- package/dist/Modal/Dialog.d.ts +329 -987
- package/dist/Modal/DialogContent.d.ts +469 -1127
- package/dist/MoreSettings-LV5X2U6K.css +2780 -0
- package/dist/MoreSettings-LV5X2U6K.css.map +7 -0
- package/dist/MoreSettings-WSHMMNOC.js +16 -0
- package/dist/MoreSettings-WSHMMNOC.js.map +7 -0
- package/dist/PDFView-RIPRIIH6.css +2780 -0
- package/dist/PDFView-RIPRIIH6.css.map +7 -0
- package/dist/PDFView-ZFSG2ESE.js +84 -0
- package/dist/PDFView-ZFSG2ESE.js.map +7 -0
- package/dist/Pagination/StyledPagination.d.ts +268 -644
- package/dist/Polls-QWW5LTTB.js +1584 -0
- package/dist/Polls-QWW5LTTB.js.map +7 -0
- package/dist/Polls-ULYGUPPF.css +2780 -0
- package/dist/Polls-ULYGUPPF.css.map +7 -0
- package/dist/Popover/index.d.ts +201 -483
- package/dist/Prebuilt/IconButton.d.ts +134 -322
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +134 -322
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +335 -805
- package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
- package/dist/Prebuilt/components/Settings/common.d.ts +134 -322
- package/dist/Progress/index.d.ts +134 -322
- package/dist/RadioGroup/RadioGroup.d.ts +201 -483
- package/dist/RaiseHand-K7NFLH7H.js +10 -0
- package/dist/RaiseHand-K7NFLH7H.js.map +7 -0
- package/dist/ReactSelect/ReactSelect.d.ts +670 -1610
- package/dist/RoleProminence-235AFT7F.js +116 -0
- package/dist/RoleProminence-235AFT7F.js.map +7 -0
- package/dist/RoleProminence-6XN3POS5.css +2780 -0
- package/dist/RoleProminence-6XN3POS5.css.map +7 -0
- package/dist/RoomDetailsPane-O5TFMTPI.css +2780 -0
- package/dist/RoomDetailsPane-O5TFMTPI.css.map +7 -0
- package/dist/RoomDetailsPane-RF3D3TDR.js +53 -0
- package/dist/RoomDetailsPane-RF3D3TDR.js.map +7 -0
- package/dist/ScreenshareLayout-KNEB3AJJ.css +2780 -0
- package/dist/ScreenshareLayout-KNEB3AJJ.css.map +7 -0
- package/dist/ScreenshareLayout-PSQMS3NC.js +358 -0
- package/dist/ScreenshareLayout-PSQMS3NC.js.map +7 -0
- package/dist/Select/Select.d.ts +201 -483
- package/dist/Sheet/Sheet.d.ts +329 -987
- package/dist/SidePaneTabs-I6DECE5R.css +2780 -0
- package/dist/SidePaneTabs-I6DECE5R.css.map +7 -0
- package/dist/SidePaneTabs-NXHBI2JB.js +1354 -0
- package/dist/SidePaneTabs-NXHBI2JB.js.map +7 -0
- package/dist/Slider/Slider.d.ts +47 -141
- package/dist/Stats/StyledStats.d.ts +402 -966
- package/dist/Switch/Switch.d.ts +47 -141
- package/dist/Tabs/Tabs.d.ts +268 -644
- package/dist/Text/Text.d.ts +47 -141
- package/dist/TextArea/TextArea.d.ts +47 -141
- package/dist/Theme/base.config.d.ts +26 -78
- package/dist/Theme/stitches.config.d.ts +1046 -1493
- package/dist/TileMenu/StyledMenuTile.d.ts +469 -1127
- package/dist/Toast/Toast.d.ts +382 -946
- package/dist/VBPicker-2CQ3IIO7.js +322 -0
- package/dist/VBPicker-2CQ3IIO7.js.map +7 -0
- package/dist/VBPicker-DCNYGO23.css +2780 -0
- package/dist/VBPicker-DCNYGO23.css.map +7 -0
- package/dist/Video/Video.d.ts +47 -141
- package/dist/VideoList/StyledVideoList.d.ts +201 -483
- package/dist/VideoTile/StyledVideoTile.d.ts +670 -1610
- package/dist/WaitingView-NZIUOXBI.js +10 -0
- package/dist/WaitingView-NZIUOXBI.js.map +7 -0
- package/dist/WhiteboardLayout-4YLFM3EY.js +96 -0
- package/dist/WhiteboardLayout-4YLFM3EY.js.map +7 -0
- package/dist/WhiteboardLayout-JUOBDFKY.css +2780 -0
- package/dist/WhiteboardLayout-JUOBDFKY.css.map +7 -0
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-3C7IESSI.js +254 -0
- package/dist/chunk-3C7IESSI.js.map +7 -0
- package/dist/chunk-7FD3VT6Q.js +114 -0
- package/dist/chunk-7FD3VT6Q.js.map +7 -0
- package/dist/chunk-AHI4HCY3.js +62 -0
- package/dist/chunk-AHI4HCY3.js.map +7 -0
- package/dist/chunk-BGSYLCVD.js +6337 -0
- package/dist/chunk-BGSYLCVD.js.map +7 -0
- package/dist/chunk-DANANDDE.js +418 -0
- package/dist/chunk-DANANDDE.js.map +7 -0
- package/dist/chunk-ETRNLEWQ.js +2658 -0
- package/dist/chunk-ETRNLEWQ.js.map +7 -0
- package/dist/chunk-EWPHJFZJ.js +487 -0
- package/dist/chunk-EWPHJFZJ.js.map +7 -0
- package/dist/chunk-F63YJBI4.js +98 -0
- package/dist/chunk-F63YJBI4.js.map +7 -0
- package/dist/chunk-GLAJUP3O.js +576 -0
- package/dist/chunk-GLAJUP3O.js.map +7 -0
- package/dist/chunk-GOXRTCTY.js +90 -0
- package/dist/chunk-GOXRTCTY.js.map +7 -0
- package/dist/chunk-HMCBZI3A.js +59 -0
- package/dist/chunk-HMCBZI3A.js.map +7 -0
- package/dist/chunk-HVYTC3PX.js +171 -0
- package/dist/chunk-HVYTC3PX.js.map +7 -0
- package/dist/chunk-LJVP6AWF.js +262 -0
- package/dist/chunk-LJVP6AWF.js.map +7 -0
- package/dist/chunk-LXJGCRKM.js +30 -0
- package/dist/chunk-LXJGCRKM.js.map +7 -0
- package/dist/chunk-MG3UGW66.js +16800 -0
- package/dist/chunk-MG3UGW66.js.map +7 -0
- package/dist/chunk-MUKUP7JU.js +161 -0
- package/dist/chunk-MUKUP7JU.js.map +7 -0
- package/dist/chunk-OV6MVDCL.js +41 -0
- package/dist/chunk-OV6MVDCL.js.map +7 -0
- package/dist/chunk-P6NV2XO4.js +178 -0
- package/dist/chunk-P6NV2XO4.js.map +7 -0
- package/dist/chunk-REL3HBSD.js +71 -0
- package/dist/chunk-REL3HBSD.js.map +7 -0
- package/dist/chunk-U4SQBXPZ.js +830 -0
- package/dist/chunk-U4SQBXPZ.js.map +7 -0
- package/dist/chunk-YEL5ZTFU.js +136 -0
- package/dist/chunk-YEL5ZTFU.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 +21713 -21508
- 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 +5515 -5153
- package/dist/meta.esbuild.json +8998 -6138
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +12 -0
- package/package.json +8 -8
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/Popover/Popover.stories.tsx +1 -1
- 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/MoreSettings/SplitComponents/MwebOptions.tsx +14 -1
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +18 -0
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +56 -0
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +24 -0
- package/src/Prebuilt/components/Notifications/Notifications.tsx +13 -171
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +9 -2
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +71 -0
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +1 -5
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +7 -5
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +23 -1
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +13 -5
- package/src/Prebuilt/components/StatsForNerds.jsx +122 -9
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +43 -31
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +6 -0
- 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/src/Prebuilt/layouts/WaitingView.tsx +2 -2
- package/dist/HLSView-QZO4JEB7.js.map +0 -7
- package/dist/chunk-J2QT7G3M.js +0 -34759
- package/dist/chunk-J2QT7G3M.js.map +0 -7
@@ -0,0 +1,322 @@
|
|
1
|
+
import {
|
2
|
+
useSidepaneResetOnLayoutUpdate
|
3
|
+
} from "./chunk-LXJGCRKM.js";
|
4
|
+
import {
|
5
|
+
Dm,
|
6
|
+
Loading,
|
7
|
+
Nm,
|
8
|
+
Slider,
|
9
|
+
VBHandler,
|
10
|
+
Video,
|
11
|
+
Ym,
|
12
|
+
at,
|
13
|
+
useSidepaneToggle
|
14
|
+
} from "./chunk-MG3UGW66.js";
|
15
|
+
import {
|
16
|
+
Text
|
17
|
+
} from "./chunk-MUKUP7JU.js";
|
18
|
+
import "./chunk-DANANDDE.js";
|
19
|
+
import {
|
20
|
+
Box,
|
21
|
+
Flex
|
22
|
+
} from "./chunk-GOXRTCTY.js";
|
23
|
+
import {
|
24
|
+
useSetAppDataByKey,
|
25
|
+
useUISettings
|
26
|
+
} from "./chunk-BGSYLCVD.js";
|
27
|
+
import {
|
28
|
+
APP_DATA,
|
29
|
+
SIDE_PANE_OPTIONS,
|
30
|
+
UI_SETTINGS,
|
31
|
+
__async,
|
32
|
+
__spreadProps,
|
33
|
+
__spreadValues,
|
34
|
+
config,
|
35
|
+
init_define_process_env
|
36
|
+
} from "./chunk-GLAJUP3O.js";
|
37
|
+
|
38
|
+
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
39
|
+
init_define_process_env();
|
40
|
+
import React3, { useEffect, useRef, useState } from "react";
|
41
|
+
import { useMedia } from "react-use";
|
42
|
+
import { HMSVirtualBackgroundTypes as HMSVirtualBackgroundTypes2 } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
43
|
+
import {
|
44
|
+
HMSRoomState,
|
45
|
+
selectIsLargeRoom,
|
46
|
+
selectIsLocalVideoEnabled,
|
47
|
+
selectIsLocalVideoPluginPresent,
|
48
|
+
selectLocalPeer,
|
49
|
+
selectRoomState,
|
50
|
+
selectVideoTrackByID,
|
51
|
+
useHMSActions,
|
52
|
+
useHMSStore
|
53
|
+
} from "@100mslive/react-sdk";
|
54
|
+
import { BlurPersonHighIcon, CrossCircleIcon, CrossIcon } from "@100mslive/react-icons";
|
55
|
+
|
56
|
+
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
57
|
+
init_define_process_env();
|
58
|
+
import React2 from "react";
|
59
|
+
import { HMSVirtualBackgroundTypes } from "@100mslive/hms-virtual-background/hmsvbplugin";
|
60
|
+
|
61
|
+
// src/Prebuilt/components/VirtualBackground/VBOption.tsx
|
62
|
+
init_define_process_env();
|
63
|
+
import React from "react";
|
64
|
+
var Root = ({
|
65
|
+
onClick,
|
66
|
+
mediaURL,
|
67
|
+
isActive,
|
68
|
+
children,
|
69
|
+
testid = ""
|
70
|
+
}) => /* @__PURE__ */ React.createElement(
|
71
|
+
Flex,
|
72
|
+
{
|
73
|
+
"data-testid": testid,
|
74
|
+
direction: "column",
|
75
|
+
align: "center",
|
76
|
+
css: __spreadValues({
|
77
|
+
p: "$5",
|
78
|
+
borderRadius: "$1",
|
79
|
+
bg: "$surface_bright",
|
80
|
+
border: `4px solid ${isActive ? "$primary_default" : "$surface_dim"}`,
|
81
|
+
cursor: "pointer",
|
82
|
+
"@media (hover:hover)": {
|
83
|
+
"&:hover": { border: "4px solid $primary_dim" }
|
84
|
+
}
|
85
|
+
}, mediaURL ? { height: "$20", backgroundImage: `url("${mediaURL}")`, backgroundSize: "cover" } : {}),
|
86
|
+
onClick: () => __async(void 0, null, function* () {
|
87
|
+
yield onClick == null ? void 0 : onClick();
|
88
|
+
})
|
89
|
+
},
|
90
|
+
children
|
91
|
+
);
|
92
|
+
var Title = ({ children }) => {
|
93
|
+
return children ? /* @__PURE__ */ React.createElement(Text, { variant: "xs", css: { color: "$on_surface_medium" } }, children) : null;
|
94
|
+
};
|
95
|
+
var Icon = ({ children }) => {
|
96
|
+
return children ? /* @__PURE__ */ React.createElement(Box, { css: { color: "$on_surface_high" } }, children) : null;
|
97
|
+
};
|
98
|
+
var VBOption = {
|
99
|
+
Root,
|
100
|
+
Title,
|
101
|
+
Icon
|
102
|
+
};
|
103
|
+
|
104
|
+
// src/Prebuilt/components/VirtualBackground/VBCollection.tsx
|
105
|
+
var VBCollection = ({
|
106
|
+
options,
|
107
|
+
title,
|
108
|
+
activeBackground = ""
|
109
|
+
}) => {
|
110
|
+
if (options.length === 0) {
|
111
|
+
return null;
|
112
|
+
}
|
113
|
+
return /* @__PURE__ */ React2.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ React2.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React2.createElement(Box, { css: { py: "$4", display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "$8" } }, options.map(
|
114
|
+
(option, index) => option.supported ? /* @__PURE__ */ React2.createElement(
|
115
|
+
VBOption.Root,
|
116
|
+
__spreadProps(__spreadValues({
|
117
|
+
key: option.value,
|
118
|
+
testid: option.value === HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value
|
119
|
+
}, option), {
|
120
|
+
isActive: activeBackground === option.value
|
121
|
+
}),
|
122
|
+
/* @__PURE__ */ React2.createElement(VBOption.Icon, null, option == null ? void 0 : option.icon),
|
123
|
+
/* @__PURE__ */ React2.createElement(VBOption.Title, null, option == null ? void 0 : option.title)
|
124
|
+
) : ""
|
125
|
+
)));
|
126
|
+
};
|
127
|
+
|
128
|
+
// src/Prebuilt/components/VirtualBackground/VBPicker.tsx
|
129
|
+
var iconDims = { height: "40px", width: "40px" };
|
130
|
+
var VBPicker = ({ backgroundMedia = [] }) => {
|
131
|
+
var _a, _b;
|
132
|
+
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
133
|
+
const hmsActions = useHMSActions();
|
134
|
+
const localPeer = useHMSStore(selectLocalPeer);
|
135
|
+
const role = useHMSStore(at);
|
136
|
+
const isVideoOn = useHMSStore(selectIsLocalVideoEnabled);
|
137
|
+
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
138
|
+
const trackSelector = selectVideoTrackByID(localPeer == null ? void 0 : localPeer.videoTrack);
|
139
|
+
const track = useHMSStore(trackSelector);
|
140
|
+
const [blurAmount, setBlurAmount] = useState(VBHandler.getBlurAmount() || 0.5);
|
141
|
+
const roomState = useHMSStore(selectRoomState);
|
142
|
+
const isLargeRoom = useHMSStore(selectIsLargeRoom);
|
143
|
+
const isEffectsSupported = VBHandler.isEffectsSupported();
|
144
|
+
const isEffectsEnabled = useHMSStore(Dm);
|
145
|
+
const effectsKey = useHMSStore(Nm);
|
146
|
+
const isMobile = useMedia(config.media.md);
|
147
|
+
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
148
|
+
const isPluginAdded = useHMSStore(selectIsLocalVideoPluginPresent(((_a = VBHandler) == null ? void 0 : _a.getName()) || ""));
|
149
|
+
const background = useHMSStore(Ym(APP_DATA.background));
|
150
|
+
const mediaList = backgroundMedia.map((media) => media.url || "");
|
151
|
+
const pluginLoadingRef = useRef(false);
|
152
|
+
const isBlurSupported = (_b = VBHandler) == null ? void 0 : _b.isBlurSupported();
|
153
|
+
const inPreview = roomState === HMSRoomState.Preview;
|
154
|
+
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
155
|
+
useEffect(() => {
|
156
|
+
const addHMSVBPlugin = () => __async(void 0, null, function* () {
|
157
|
+
setLoadingEffects(false);
|
158
|
+
if (!role) {
|
159
|
+
return;
|
160
|
+
}
|
161
|
+
yield VBHandler.initialisePlugin();
|
162
|
+
yield hmsActions.addPluginToVideoTrack(
|
163
|
+
VBHandler.getVBObject(),
|
164
|
+
Math.floor(role.publishParams.video.frameRate / 2)
|
165
|
+
);
|
166
|
+
});
|
167
|
+
const initializeVirtualBackground = () => __async(void 0, null, function* () {
|
168
|
+
if (!(track == null ? void 0 : track.id) || pluginLoadingRef.current || isPluginAdded) {
|
169
|
+
return;
|
170
|
+
}
|
171
|
+
try {
|
172
|
+
pluginLoadingRef.current = true;
|
173
|
+
if (isEffectsEnabled && isEffectsSupported && effectsKey) {
|
174
|
+
setLoadingEffects(true);
|
175
|
+
yield VBHandler.initialisePlugin(effectsKey, () => {
|
176
|
+
setLoadingEffects(false);
|
177
|
+
});
|
178
|
+
const vbInstance = VBHandler.getVBObject();
|
179
|
+
if (vbInstance.getName() === "HMSEffects") {
|
180
|
+
hmsActions.addPluginsToVideoStream([VBHandler.getVBObject()]);
|
181
|
+
} else {
|
182
|
+
yield addHMSVBPlugin();
|
183
|
+
}
|
184
|
+
} else {
|
185
|
+
yield addHMSVBPlugin();
|
186
|
+
}
|
187
|
+
const handleDefaultBackground = () => __async(void 0, null, function* () {
|
188
|
+
switch (background) {
|
189
|
+
case HMSVirtualBackgroundTypes2.NONE:
|
190
|
+
break;
|
191
|
+
case HMSVirtualBackgroundTypes2.BLUR:
|
192
|
+
yield VBHandler.setBlur(blurAmount);
|
193
|
+
break;
|
194
|
+
default:
|
195
|
+
yield VBHandler.setBackground(background);
|
196
|
+
}
|
197
|
+
});
|
198
|
+
yield handleDefaultBackground();
|
199
|
+
} catch (error) {
|
200
|
+
console.error("Error initializing virtual background:", error);
|
201
|
+
setLoadingEffects(false);
|
202
|
+
}
|
203
|
+
});
|
204
|
+
initializeVirtualBackground();
|
205
|
+
}, [
|
206
|
+
hmsActions,
|
207
|
+
role,
|
208
|
+
isPluginAdded,
|
209
|
+
isEffectsEnabled,
|
210
|
+
isEffectsSupported,
|
211
|
+
effectsKey,
|
212
|
+
track == null ? void 0 : track.id,
|
213
|
+
background,
|
214
|
+
blurAmount,
|
215
|
+
setLoadingEffects
|
216
|
+
]);
|
217
|
+
useEffect(() => {
|
218
|
+
if (!isVideoOn) {
|
219
|
+
toggleVB();
|
220
|
+
}
|
221
|
+
return () => setLoadingEffects(false);
|
222
|
+
}, [isVideoOn, setLoadingEffects, toggleVB]);
|
223
|
+
useSidepaneResetOnLayoutUpdate("virtual_background", SIDE_PANE_OPTIONS.VB);
|
224
|
+
return /* @__PURE__ */ React3.createElement(Flex, { css: { pr: "$6", size: "100%" }, direction: "column" }, /* @__PURE__ */ React3.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", background: "$surface_dim", pb: "$4" } }, /* @__PURE__ */ React3.createElement(Text, { variant: "h6", css: { color: "$on_surface_high", display: "flex", alignItems: "center" } }, "Virtual Background ", isMobile && loadingEffects ? /* @__PURE__ */ React3.createElement(Loading, { size: 18, style: { marginLeft: "0.5rem" } }) : ""), /* @__PURE__ */ React3.createElement(
|
225
|
+
Box,
|
226
|
+
{
|
227
|
+
css: { color: "$on_surface_high", "&:hover": { color: "$on_surface_medium" }, cursor: "pointer" },
|
228
|
+
onClick: toggleVB
|
229
|
+
},
|
230
|
+
/* @__PURE__ */ React3.createElement(CrossIcon, null)
|
231
|
+
)), showVideoTile ? /* @__PURE__ */ React3.createElement(
|
232
|
+
Video,
|
233
|
+
{
|
234
|
+
mirror: (track == null ? void 0 : track.facingMode) !== "environment" && mirrorLocalVideo,
|
235
|
+
trackId: localPeer == null ? void 0 : localPeer.videoTrack,
|
236
|
+
"data-testid": "preview_tile",
|
237
|
+
css: { width: "100%", height: "16rem" }
|
238
|
+
}
|
239
|
+
) : null, /* @__PURE__ */ React3.createElement(
|
240
|
+
Box,
|
241
|
+
{
|
242
|
+
css: {
|
243
|
+
mt: "$4",
|
244
|
+
overflowY: "auto",
|
245
|
+
flex: "1 1 0",
|
246
|
+
mr: "-$10",
|
247
|
+
pr: "$10"
|
248
|
+
}
|
249
|
+
},
|
250
|
+
/* @__PURE__ */ React3.createElement(
|
251
|
+
VBCollection,
|
252
|
+
{
|
253
|
+
title: "Effects",
|
254
|
+
options: [
|
255
|
+
{
|
256
|
+
title: "No effect",
|
257
|
+
icon: /* @__PURE__ */ React3.createElement(CrossCircleIcon, { style: iconDims }),
|
258
|
+
value: HMSVirtualBackgroundTypes2.NONE,
|
259
|
+
onClick: () => __async(void 0, null, function* () {
|
260
|
+
yield VBHandler.removeEffects();
|
261
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes2.NONE);
|
262
|
+
if (isMobile) {
|
263
|
+
toggleVB();
|
264
|
+
}
|
265
|
+
}),
|
266
|
+
supported: true
|
267
|
+
},
|
268
|
+
{
|
269
|
+
title: "Blur",
|
270
|
+
icon: /* @__PURE__ */ React3.createElement(BlurPersonHighIcon, { style: iconDims }),
|
271
|
+
value: HMSVirtualBackgroundTypes2.BLUR,
|
272
|
+
onClick: () => __async(void 0, null, function* () {
|
273
|
+
var _a2;
|
274
|
+
yield (_a2 = VBHandler) == null ? void 0 : _a2.setBlur(blurAmount);
|
275
|
+
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes2.BLUR);
|
276
|
+
}),
|
277
|
+
supported: isBlurSupported
|
278
|
+
}
|
279
|
+
],
|
280
|
+
activeBackground: background
|
281
|
+
}
|
282
|
+
),
|
283
|
+
/* @__PURE__ */ React3.createElement(Flex, { direction: "column", css: { w: "100%", gap: "$8", mt: "$8" } }, background === HMSVirtualBackgroundTypes2.BLUR && isBlurSupported ? /* @__PURE__ */ React3.createElement(Box, null, /* @__PURE__ */ React3.createElement(Text, { variant: "sm", css: { color: "$on_surface_high", fontWeight: "$semiBold", mb: "$4" } }, "Blur intensity"), /* @__PURE__ */ React3.createElement(Flex, { css: { w: "100%", justifyContent: "space-between", alignItems: "center", gap: "$4" } }, /* @__PURE__ */ React3.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "Low"), /* @__PURE__ */ React3.createElement(
|
284
|
+
Slider,
|
285
|
+
{
|
286
|
+
showTooltip: false,
|
287
|
+
value: [blurAmount],
|
288
|
+
onValueChange: (e) => __async(void 0, null, function* () {
|
289
|
+
setBlurAmount(e[0]);
|
290
|
+
yield VBHandler.setBlur(e[0]);
|
291
|
+
}),
|
292
|
+
step: 0.1,
|
293
|
+
min: 0.1,
|
294
|
+
max: 1
|
295
|
+
}
|
296
|
+
), /* @__PURE__ */ React3.createElement(Text, { variant: "caption", css: { fontWeight: "$medium", color: "$on_surface_medium" } }, "High"))) : null),
|
297
|
+
/* @__PURE__ */ React3.createElement(
|
298
|
+
VBCollection,
|
299
|
+
{
|
300
|
+
title: "Backgrounds",
|
301
|
+
options: mediaList.map((mediaURL) => ({
|
302
|
+
mediaURL,
|
303
|
+
value: mediaURL,
|
304
|
+
onClick: () => __async(void 0, null, function* () {
|
305
|
+
var _a2;
|
306
|
+
yield (_a2 = VBHandler) == null ? void 0 : _a2.setBackground(mediaURL);
|
307
|
+
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
308
|
+
if (isMobile) {
|
309
|
+
toggleVB();
|
310
|
+
}
|
311
|
+
}),
|
312
|
+
supported: true
|
313
|
+
})),
|
314
|
+
activeBackground: background
|
315
|
+
}
|
316
|
+
)
|
317
|
+
));
|
318
|
+
};
|
319
|
+
export {
|
320
|
+
VBPicker
|
321
|
+
};
|
322
|
+
//# sourceMappingURL=VBPicker-2CQ3IIO7.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/components/VirtualBackground/VBPicker.tsx", "../src/Prebuilt/components/VirtualBackground/VBCollection.tsx", "../src/Prebuilt/components/VirtualBackground/VBOption.tsx"],
|
4
|
+
"sourcesContent": ["import React, { useEffect, useRef, useState } from 'react';\nimport { useMedia } from 'react-use';\nimport {\n HMSMediaStreamPlugin,\n selectAppData,\n selectEffectsKey,\n selectIsEffectsEnabled,\n selectLocalPeerRole,\n} from '@100mslive/hms-video-store';\n// Open issue with eslint-plugin-import https://github.com/import-js/eslint-plugin-import/issues/1810\n// eslint-disable-next-line\nimport { HMSVBPlugin, HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';\nimport { VirtualBackgroundMedia } from '@100mslive/types-prebuilt/elements/virtual_background';\nimport {\n HMSRoomState,\n selectIsLargeRoom,\n selectIsLocalVideoEnabled,\n selectIsLocalVideoPluginPresent,\n selectLocalPeer,\n selectRoomState,\n selectVideoTrackByID,\n useHMSActions,\n useHMSStore,\n} from '@100mslive/react-sdk';\nimport { BlurPersonHighIcon, CrossCircleIcon, CrossIcon } from '@100mslive/react-icons';\nimport { Box, config as cssConfig, Flex, Loading, Slider, Video } from '../../../index';\nimport { Text } from '../../../Text';\nimport { VBCollection } from './VBCollection';\nimport { VBHandler } from './VBHandler';\n// @ts-ignore\nimport { useSidepaneToggle } from '../AppData/useSidepane';\nimport { useSidepaneResetOnLayoutUpdate } from '../AppData/useSidepaneResetOnLayoutUpdate';\n// @ts-ignore\nimport { useSetAppDataByKey, useUISettings } from '../AppData/useUISettings';\nimport { APP_DATA, SIDE_PANE_OPTIONS, UI_SETTINGS } from '../../common/constants';\n\nconst iconDims = { height: '40px', width: '40px' };\n\nexport const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBackgroundMedia[] }) => {\n const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);\n const hmsActions = useHMSActions();\n const localPeer = useHMSStore(selectLocalPeer);\n const role = useHMSStore(selectLocalPeerRole);\n const isVideoOn = useHMSStore(selectIsLocalVideoEnabled);\n const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);\n const trackSelector = selectVideoTrackByID(localPeer?.videoTrack);\n const track = useHMSStore(trackSelector);\n const [blurAmount, setBlurAmount] = useState(VBHandler.getBlurAmount() || 0.5);\n const roomState = useHMSStore(selectRoomState);\n const isLargeRoom = useHMSStore(selectIsLargeRoom);\n const isEffectsSupported = VBHandler.isEffectsSupported();\n const isEffectsEnabled = useHMSStore(selectIsEffectsEnabled);\n const effectsKey = useHMSStore(selectEffectsKey);\n const isMobile = useMedia(cssConfig.media.md);\n const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);\n const isPluginAdded = useHMSStore(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ''));\n const background = useHMSStore(selectAppData(APP_DATA.background));\n const mediaList = backgroundMedia.map((media: VirtualBackgroundMedia) => media.url || '');\n const pluginLoadingRef = useRef(false);\n const isBlurSupported = VBHandler?.isBlurSupported();\n\n const inPreview = roomState === HMSRoomState.Preview;\n // Hidden in preview as the effect will be visible in the preview tile\n const showVideoTile = isVideoOn && isLargeRoom && !inPreview;\n\n useEffect(() => {\n const addHMSVBPlugin = async () => {\n setLoadingEffects(false);\n if (!role) {\n return;\n }\n await VBHandler.initialisePlugin();\n await hmsActions.addPluginToVideoTrack(\n VBHandler.getVBObject() as HMSVBPlugin,\n Math.floor(role.publishParams.video.frameRate / 2),\n );\n };\n const initializeVirtualBackground = async () => {\n if (!track?.id || pluginLoadingRef.current || isPluginAdded) {\n return;\n }\n\n try {\n pluginLoadingRef.current = true;\n if (isEffectsEnabled && isEffectsSupported && effectsKey) {\n setLoadingEffects(true);\n await VBHandler.initialisePlugin(effectsKey, () => {\n setLoadingEffects(false);\n });\n const vbInstance = VBHandler.getVBObject();\n if (vbInstance.getName() === 'HMSEffects') {\n hmsActions.addPluginsToVideoStream([VBHandler.getVBObject() as HMSMediaStreamPlugin]);\n } else {\n await addHMSVBPlugin();\n }\n } else {\n await addHMSVBPlugin();\n }\n\n const handleDefaultBackground = async () => {\n switch (background) {\n case HMSVirtualBackgroundTypes.NONE:\n break;\n case HMSVirtualBackgroundTypes.BLUR:\n await VBHandler.setBlur(blurAmount);\n break;\n default:\n await VBHandler.setBackground(background);\n }\n };\n\n await handleDefaultBackground();\n } catch (error) {\n console.error('Error initializing virtual background:', error);\n setLoadingEffects(false);\n }\n };\n\n initializeVirtualBackground();\n }, [\n hmsActions,\n role,\n isPluginAdded,\n isEffectsEnabled,\n isEffectsSupported,\n effectsKey,\n track?.id,\n background,\n blurAmount,\n setLoadingEffects,\n ]);\n\n useEffect(() => {\n if (!isVideoOn) {\n toggleVB();\n }\n return () => setLoadingEffects(false);\n }, [isVideoOn, setLoadingEffects, toggleVB]);\n\n useSidepaneResetOnLayoutUpdate('virtual_background', SIDE_PANE_OPTIONS.VB);\n\n return (\n <Flex css={{ pr: '$6', size: '100%' }} direction=\"column\">\n <Flex align=\"center\" justify=\"between\" css={{ w: '100%', background: '$surface_dim', pb: '$4' }}>\n <Text variant=\"h6\" css={{ color: '$on_surface_high', display: 'flex', alignItems: 'center' }}>\n Virtual Background {isMobile && loadingEffects ? <Loading size={18} style={{ marginLeft: '0.5rem' }} /> : ''}\n </Text>\n <Box\n css={{ color: '$on_surface_high', '&:hover': { color: '$on_surface_medium' }, cursor: 'pointer' }}\n onClick={toggleVB}\n >\n <CrossIcon />\n </Box>\n </Flex>\n\n {showVideoTile ? (\n <Video\n mirror={track?.facingMode !== 'environment' && mirrorLocalVideo}\n trackId={localPeer?.videoTrack}\n data-testid=\"preview_tile\"\n css={{ width: '100%', height: '16rem' }}\n />\n ) : null}\n <Box\n css={{\n mt: '$4',\n overflowY: 'auto',\n flex: '1 1 0',\n mr: '-$10',\n pr: '$10',\n }}\n >\n <VBCollection\n title=\"Effects\"\n options={[\n {\n title: 'No effect',\n icon: <CrossCircleIcon style={iconDims} />,\n value: HMSVirtualBackgroundTypes.NONE,\n onClick: async () => {\n await VBHandler.removeEffects();\n hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.NONE);\n if (isMobile) {\n toggleVB();\n }\n },\n supported: true,\n },\n {\n title: 'Blur',\n icon: <BlurPersonHighIcon style={iconDims} />,\n value: HMSVirtualBackgroundTypes.BLUR,\n onClick: async () => {\n await VBHandler?.setBlur(blurAmount);\n hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.BLUR);\n },\n supported: isBlurSupported,\n },\n ]}\n activeBackground={background}\n />\n\n {/* Slider */}\n <Flex direction=\"column\" css={{ w: '100%', gap: '$8', mt: '$8' }}>\n {background === HMSVirtualBackgroundTypes.BLUR && isBlurSupported ? (\n <Box>\n <Text variant=\"sm\" css={{ color: '$on_surface_high', fontWeight: '$semiBold', mb: '$4' }}>\n Blur intensity\n </Text>\n <Flex css={{ w: '100%', justifyContent: 'space-between', alignItems: 'center', gap: '$4' }}>\n <Text variant=\"caption\" css={{ fontWeight: '$medium', color: '$on_surface_medium' }}>\n Low\n </Text>\n <Slider\n showTooltip={false}\n value={[blurAmount]}\n onValueChange={async e => {\n setBlurAmount(e[0]);\n await VBHandler.setBlur(e[0]);\n }}\n step={0.1}\n min={0.1}\n max={1}\n />\n <Text variant=\"caption\" css={{ fontWeight: '$medium', color: '$on_surface_medium' }}>\n High\n </Text>\n </Flex>\n </Box>\n ) : null}\n </Flex>\n\n <VBCollection\n title=\"Backgrounds\"\n options={mediaList.map(mediaURL => ({\n mediaURL,\n value: mediaURL,\n onClick: async () => {\n await VBHandler?.setBackground(mediaURL);\n hmsActions.setAppData(APP_DATA.background, mediaURL);\n if (isMobile) {\n toggleVB();\n }\n },\n supported: true,\n }))}\n activeBackground={background}\n />\n </Box>\n </Flex>\n );\n};\n", "import React from 'react';\n// Open issue with eslint-plugin-import https://github.com/import-js/eslint-plugin-import/issues/1810\n// eslint-disable-next-line\nimport { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';\nimport { Box } from '../../../Layout';\nimport { Text } from '../../../Text';\nimport { VBOption } from './VBOption';\n\nexport const VBCollection = ({\n options,\n title,\n activeBackground = '',\n}: {\n options: {\n title?: string;\n icon?: React.JSX.Element;\n onClick?: () => Promise<void>;\n mediaURL?: string;\n value: string | HMSVirtualBackgroundTypes;\n supported?: boolean;\n }[];\n title: string;\n activeBackground: string;\n}) => {\n if (options.length === 0) {\n return null;\n }\n return (\n <Box css={{ mt: '$10' }}>\n <Text variant=\"sm\" css={{ color: '$on_surface_high', fontWeight: '$semiBold' }}>\n {title}\n </Text>\n <Box css={{ py: '$4', display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '$8' }}>\n {options.map((option, index) =>\n option.supported ? (\n <VBOption.Root\n key={option.value}\n testid={option.value === HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value}\n {...option}\n isActive={activeBackground === option.value}\n >\n <VBOption.Icon>{option?.icon}</VBOption.Icon>\n <VBOption.Title>{option?.title}</VBOption.Title>\n </VBOption.Root>\n ) : (\n ''\n ),\n )}\n </Box>\n </Box>\n );\n};\n", "import React from 'react';\nimport { Box, Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\n\nconst Root = ({\n onClick,\n mediaURL,\n isActive,\n children,\n testid = '',\n}: {\n onClick?: () => Promise<void>;\n mediaURL?: string;\n isActive: boolean;\n children?: React.JSX.Element[];\n testid: string;\n}) => (\n <Flex\n data-testid={testid}\n direction=\"column\"\n align=\"center\"\n css={{\n p: '$5',\n borderRadius: '$1',\n bg: '$surface_bright',\n border: `4px solid ${isActive ? '$primary_default' : '$surface_dim'}`,\n cursor: 'pointer',\n '@media (hover:hover)': {\n '&:hover': { border: '4px solid $primary_dim' },\n },\n ...(mediaURL ? { height: '$20', backgroundImage: `url(\"${mediaURL}\")`, backgroundSize: 'cover' } : {}),\n }}\n onClick={async () => {\n await onClick?.();\n }}\n >\n {children}\n </Flex>\n);\n\nconst Title = ({ children }: { children?: string }) => {\n return children ? (\n <Text variant=\"xs\" css={{ color: '$on_surface_medium' }}>\n {children}\n </Text>\n ) : null;\n};\n\nconst Icon = ({ children }: { children?: React.JSX.Element }) => {\n return children ? <Box css={{ color: '$on_surface_high' }}>{children}</Box> : null;\n};\n\nexport const VBOption = {\n Root,\n Title,\n Icon,\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAOA,UAAS,WAAW,QAAQ,gBAAgB;AACnD,SAAS,gBAAgB;AAUzB,SAAsB,6BAAAC,kCAAiC;AAEvD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB,iBAAiB,iBAAiB;;;ACxB/D;AAAA,OAAOC,YAAW;AAGlB,SAAS,iCAAiC;;;ACH1C;AAAA,OAAO,WAAW;AAIlB,IAAM,OAAO,CAAC;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,MAOE;AAAA,EAAC;AAAA;AAAA,IACC,eAAa;AAAA,IACb,WAAU;AAAA,IACV,OAAM;AAAA,IACN,KAAK;AAAA,MACH,GAAG;AAAA,MACH,cAAc;AAAA,MACd,IAAI;AAAA,MACJ,QAAQ,aAAa,WAAW,qBAAqB,cAAc;AAAA,MACnE,QAAQ;AAAA,MACR,wBAAwB;AAAA,QACtB,WAAW,EAAE,QAAQ,yBAAyB;AAAA,MAChD;AAAA,OACI,WAAW,EAAE,QAAQ,OAAO,iBAAiB,QAAQ,QAAQ,MAAM,gBAAgB,QAAQ,IAAI,CAAC;AAAA,IAEtG,SAAS,MAAY;AACnB,YAAM;AAAA,IACR;AAAA;AAAA,EAEC;AACH;AAGF,IAAM,QAAQ,CAAC,EAAE,SAAS,MAA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