@100mslive/roomkit-react 0.2.2-alpha.6 → 0.2.3-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-U346BIZQ.js → HLSView-CVRPVOXD.js} +2 -2
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +2 -0
- package/dist/{chunk-DY3FWEXJ.js → chunk-5W4IGFZA.js} +475 -446
- package/dist/chunk-5W4IGFZA.js.map +7 -0
- package/dist/index.cjs.js +563 -531
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +138 -121
- package/dist/meta.esbuild.json +141 -124
- package/package.json +7 -7
- package/src/Prebuilt/components/AuthToken.jsx +34 -30
- package/src/Prebuilt/components/ConferenceScreen.tsx +2 -1
- package/src/Prebuilt/components/ErrorBoundary.jsx +4 -2
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +10 -0
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +29 -12
- package/src/Prebuilt/images/transaction_error.svg +12 -0
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +5 -3
- package/dist/chunk-DY3FWEXJ.js.map +0 -7
- /package/dist/{HLSView-U346BIZQ.js.map → HLSView-CVRPVOXD.js.map} +0 -0
@@ -136,18 +136,35 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
136
136
|
activeBackground={activeBackground}
|
137
137
|
/>
|
138
138
|
|
139
|
-
{
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
139
|
+
{/* Slider */}
|
140
|
+
<Flex direction="column" css={{ w: '100%', gap: '$8', mt: '$8' }}>
|
141
|
+
{activeBackground === HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? (
|
142
|
+
<Box>
|
143
|
+
<Text variant="sm" css={{ color: '$on_surface_high', fontWeight: '$semiBold', mb: '$4' }}>
|
144
|
+
Blur intensity
|
145
|
+
</Text>
|
146
|
+
<Flex css={{ w: '100%', justifyContent: 'space-between', alignItems: 'center', gap: '$4' }}>
|
147
|
+
<Text variant="caption" css={{ fontWeight: '$medium', color: '$on_surface_medium' }}>
|
148
|
+
Low
|
149
|
+
</Text>
|
150
|
+
<Slider
|
151
|
+
showTooltip={false}
|
152
|
+
value={[blurAmount]}
|
153
|
+
onValueChange={async e => {
|
154
|
+
setBlurAmount(e[0]);
|
155
|
+
await VBHandler.setBlur(e[0]);
|
156
|
+
}}
|
157
|
+
step={0.1}
|
158
|
+
min={0.1}
|
159
|
+
max={1}
|
160
|
+
/>
|
161
|
+
<Text variant="caption" css={{ fontWeight: '$medium', color: '$on_surface_medium' }}>
|
162
|
+
High
|
163
|
+
</Text>
|
164
|
+
</Flex>
|
165
|
+
</Box>
|
166
|
+
) : null}
|
167
|
+
</Flex>
|
151
168
|
|
152
169
|
<VBCollection
|
153
170
|
title="Backgrounds"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M70 68.3333V26.6667C70 24.825 68.5083 23.3333 66.6667 23.3333H13.3333C11.4917 23.3333 10 24.825 10 26.6667V68.3333C10 70.175 11.4917 71.6667 13.3333 71.6667H66.6667C68.5083 71.6667 70 70.175 70 68.3333Z" fill="#272A31"/>
|
3
|
+
<path d="M20 31.6667H60C61.8417 31.6667 63.3333 33.1583 63.3333 35C63.3333 36.8417 61.8417 38.3333 60 38.3333H20C18.1583 38.3333 16.6667 36.8417 16.6667 35C16.6667 33.1583 18.1583 31.6667 20 31.6667Z" fill="#8F9099"/>
|
4
|
+
<path d="M58.3333 36.6667V10C58.3333 9.08 57.5867 8.33334 56.6667 8.33334H55C55 9.25334 54.2533 10 53.3333 10C52.4133 10 51.6667 9.25334 51.6667 8.33334H48.3333C48.3333 9.25334 47.5867 10 46.6667 10C45.7467 10 45 9.25334 45 8.33334H41.6667C41.6667 9.25334 40.92 10 40 10C39.08 10 38.3333 9.25334 38.3333 8.33334H35C35 9.25334 34.2533 10 33.3333 10C32.4133 10 31.6667 9.25334 31.6667 8.33334H28.3333C28.3333 9.25334 27.5867 10 26.6667 10C25.7467 10 25 9.25334 25 8.33334H23.3333C22.4133 8.33334 21.6667 9.08 21.6667 10V36.6667H58.3333Z" fill="#C74E5B"/>
|
5
|
+
<path d="M21.6667 43.3333H58.3333C60.175 43.3333 61.6667 44.825 61.6667 46.6667V50C61.6667 51.8417 60.175 53.3333 58.3333 53.3333H21.6667C19.825 53.3333 18.3333 51.8417 18.3333 50V46.6667C18.3333 44.825 19.825 43.3333 21.6667 43.3333Z" fill="#C5C6D0"/>
|
6
|
+
<path d="M60 66.6667H55C54.08 66.6667 53.3333 65.92 53.3333 65V60C53.3333 59.08 54.08 58.3333 55 58.3333H60C60.92 58.3333 61.6667 59.08 61.6667 60V65C61.6667 65.92 60.92 66.6667 60 66.6667Z" fill="#C5C6D0"/>
|
7
|
+
<path d="M25 66.6667H20C19.08 66.6667 18.3333 65.92 18.3333 65V60C18.3333 59.08 19.08 58.3333 20 58.3333H25C25.92 58.3333 26.6667 59.08 26.6667 60V65C26.6667 65.92 25.92 66.6667 25 66.6667ZM36.6667 66.6667H31.6667C30.7467 66.6667 30 65.92 30 65V60C30 59.08 30.7467 58.3333 31.6667 58.3333H36.6667C37.5867 58.3333 38.3333 59.08 38.3333 60V65C38.3333 65.92 37.5867 66.6667 36.6667 66.6667ZM48.3333 66.6667H43.3333C42.4133 66.6667 41.6667 65.92 41.6667 65V60C41.6667 59.08 42.4133 58.3333 43.3333 58.3333H48.3333C49.2533 58.3333 50 59.08 50 60V65C50 65.92 49.2533 66.6667 48.3333 66.6667Z" fill="#C5C6D0"/>
|
8
|
+
<path d="M58.3333 35H21.6667V38.3333H58.3333V35Z" fill="#C74E5B"/>
|
9
|
+
<path opacity="0.05" d="M45.3033 32.315C44.6383 32.315 44.01 32.0567 43.5367 31.585L40 28.0467L36.465 31.5817C35.9917 32.0533 35.365 32.3133 34.6967 32.3133C34.0283 32.3133 33.4 32.0533 32.9267 31.58L31.75 30.4033C31.2783 29.9333 31.0183 29.3033 31.0183 28.6333C31.0183 27.9667 31.2783 27.3383 31.75 26.8667L35.2867 23.3333L31.7517 19.7983C31.28 19.3283 31.02 18.7 31.02 18.0317C31.02 17.3617 31.28 16.7333 31.7517 16.2617L32.93 15.0833C33.4017 14.6117 34.0283 14.3517 34.6983 14.3517C35.3633 14.3517 35.9917 14.61 36.465 15.0817L40 18.62L43.535 15.0833C44.0083 14.6117 44.635 14.3517 45.3033 14.3517C45.9683 14.3517 46.5967 14.61 47.07 15.0817L48.25 16.2617C48.7217 16.7317 48.9817 17.3617 48.9817 18.0317C48.9817 18.6983 48.7217 19.3267 48.25 19.7983L44.7117 23.3333L48.2483 26.87C49.2217 27.84 49.2233 29.425 48.2517 30.4017L47.07 31.5833C46.5983 32.055 45.9717 32.315 45.3033 32.315Z" fill="black"/>
|
10
|
+
<path opacity="0.07" d="M45.3033 31.4817C44.8583 31.4817 44.44 31.3083 44.125 30.995L40 26.8683L35.875 30.9933C35.56 31.3083 35.1417 31.48 34.6967 31.48C34.25 31.48 33.8317 31.3067 33.5183 30.9917L32.34 29.8133C32.025 29.4983 31.8517 29.08 31.8517 28.6333C31.8517 28.1883 32.025 27.77 32.34 27.455L36.465 23.3333L32.34 19.2083C32.0267 18.895 31.8517 18.4767 31.8517 18.0317C31.8517 17.585 32.025 17.1667 32.34 16.8517L33.5183 15.6733C33.8317 15.36 34.25 15.1867 34.6967 15.1867C35.1417 15.1867 35.56 15.36 35.875 15.6733L40 19.7983L44.125 15.6717C44.44 15.3567 44.8583 15.185 45.3033 15.185C45.7483 15.185 46.1667 15.3583 46.4817 15.6717L47.66 16.8517C47.975 17.1667 48.1483 17.585 48.1483 18.0317C48.1483 18.4767 47.975 18.895 47.66 19.21L43.5333 23.3333L47.66 27.46C48.31 28.1067 48.31 29.1633 47.6617 29.815L46.4817 30.995C46.1667 31.3083 45.7483 31.4817 45.3033 31.4817Z" fill="black"/>
|
11
|
+
<path d="M42.3567 23.3333L47.0717 18.6183C47.3967 18.2933 47.3967 17.765 47.0717 17.44L45.8933 16.2617C45.5667 15.9367 45.04 15.9367 44.715 16.2617L40 20.9767L35.2867 16.2633C34.9617 15.9383 34.4333 15.9383 34.1083 16.2633L32.93 17.4417C32.605 17.7667 32.605 18.295 32.93 18.62L37.6433 23.3333L32.93 28.0467C32.605 28.3717 32.605 28.9 32.93 29.225L34.1083 30.4033C34.4333 30.7283 34.9617 30.7283 35.2867 30.4033L40 25.69L44.715 30.405C45.04 30.73 45.5683 30.73 45.8933 30.405L47.0717 29.2267C47.3967 28.9 47.3967 28.3733 47.0717 28.0483L42.3567 23.3333Z" fill="#FFEDEC"/>
|
12
|
+
</svg>
|
@@ -29,13 +29,15 @@ function useRoomLayoutScreen<T extends useRoomLayoutScreenProps>({
|
|
29
29
|
return screenProps;
|
30
30
|
}
|
31
31
|
|
32
|
+
type PreviewKeys = Omit<PreviewScreen, 'skip_preview_screen'>;
|
33
|
+
|
32
34
|
export function useRoomLayoutPreviewScreen() {
|
33
35
|
const screenProps = useRoomLayoutScreen({ screen: 'preview' });
|
34
|
-
const isPreviewScreenEnabled = !!screenProps;
|
36
|
+
const isPreviewScreenEnabled = !!screenProps && !screenProps?.skip_preview_screen;
|
35
37
|
let elements: DefaultPreviewScreen_Elements | undefined;
|
36
|
-
let screenType: keyof
|
38
|
+
let screenType: keyof PreviewKeys | undefined;
|
37
39
|
if (isPreviewScreenEnabled) {
|
38
|
-
screenType = Object.keys(screenProps)[0] as keyof
|
40
|
+
screenType = Object.keys(screenProps).filter(key => key !== 'skip_preview_screen')[0] as keyof PreviewKeys;
|
39
41
|
elements = screenProps[screenType]?.elements;
|
40
42
|
}
|
41
43
|
return {
|