@100mslive/roomkit-react 0.3.20-alpha.1 → 0.3.20-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-WY2KZLYW.js → HLSView-3MZRLTM4.js} +2 -2
- package/dist/{HLSView-KVYOXQXT.css → HLSView-6UIKXBYL.css} +3 -3
- package/dist/{HLSView-KVYOXQXT.css.map → HLSView-6UIKXBYL.css.map} +1 -1
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
- package/dist/{chunk-I6M7HK22.js → chunk-ZVQJMV44.js} +17 -7
- package/dist/chunk-ZVQJMV44.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +19 -9
- 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 +1 -1
- package/dist/meta.cjs.json +14 -14
- package/dist/meta.esbuild.json +26 -26
- package/package.json +7 -7
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +13 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +3 -2
- package/dist/chunk-I6M7HK22.js.map +0 -7
- /package/dist/{HLSView-WY2KZLYW.js.map → HLSView-3MZRLTM4.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -2390,7 +2390,7 @@
|
|
2390
2390
|
"format": "esm"
|
2391
2391
|
},
|
2392
2392
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
2393
|
-
"bytes":
|
2393
|
+
"bytes": 3789,
|
2394
2394
|
"imports": [
|
2395
2395
|
{
|
2396
2396
|
"path": "@100mslive/hms-virtual-background/hmsvbplugin",
|
@@ -9969,7 +9969,7 @@
|
|
9969
9969
|
"format": "esm"
|
9970
9970
|
},
|
9971
9971
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
9972
|
-
"bytes":
|
9972
|
+
"bytes": 8918,
|
9973
9973
|
"imports": [
|
9974
9974
|
{
|
9975
9975
|
"path": "react",
|
@@ -11291,7 +11291,7 @@
|
|
11291
11291
|
],
|
11292
11292
|
"format": "esm"
|
11293
11293
|
},
|
11294
|
-
"../../../../../../../tmp/tmp-
|
11294
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28b63/tldraw.css": {
|
11295
11295
|
"bytes": 80111,
|
11296
11296
|
"imports": [
|
11297
11297
|
{
|
@@ -11341,7 +11341,7 @@
|
|
11341
11341
|
}
|
11342
11342
|
]
|
11343
11343
|
},
|
11344
|
-
"../../../../../../../tmp/tmp-
|
11344
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28a51/index.css": {
|
11345
11345
|
"bytes": 597,
|
11346
11346
|
"imports": [
|
11347
11347
|
{
|
@@ -11350,7 +11350,7 @@
|
|
11350
11350
|
"external": true
|
11351
11351
|
},
|
11352
11352
|
{
|
11353
|
-
"path": "../../../../../../../tmp/tmp-
|
11353
|
+
"path": "../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28b63/tldraw.css",
|
11354
11354
|
"kind": "import-rule",
|
11355
11355
|
"original": "@tldraw/tldraw/tldraw.css"
|
11356
11356
|
}
|
@@ -11425,7 +11425,7 @@
|
|
11425
11425
|
"original": "../../common/constants"
|
11426
11426
|
},
|
11427
11427
|
{
|
11428
|
-
"path": "../../../../../../../tmp/tmp-
|
11428
|
+
"path": "../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28a51/index.css",
|
11429
11429
|
"kind": "import-statement",
|
11430
11430
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11431
11431
|
},
|
@@ -15413,7 +15413,7 @@
|
|
15413
15413
|
"dist/index.js": {
|
15414
15414
|
"imports": [
|
15415
15415
|
{
|
15416
|
-
"path": "dist/chunk-
|
15416
|
+
"path": "dist/chunk-ZVQJMV44.js",
|
15417
15417
|
"kind": "import-statement"
|
15418
15418
|
}
|
15419
15419
|
],
|
@@ -15489,16 +15489,16 @@
|
|
15489
15489
|
"inputs": {},
|
15490
15490
|
"bytes": 1882
|
15491
15491
|
},
|
15492
|
-
"dist/HLSView-
|
15492
|
+
"dist/HLSView-3MZRLTM4.js.map": {
|
15493
15493
|
"imports": [],
|
15494
15494
|
"exports": [],
|
15495
15495
|
"inputs": {},
|
15496
15496
|
"bytes": 101299
|
15497
15497
|
},
|
15498
|
-
"dist/HLSView-
|
15498
|
+
"dist/HLSView-3MZRLTM4.js": {
|
15499
15499
|
"imports": [
|
15500
15500
|
{
|
15501
|
-
"path": "dist/chunk-
|
15501
|
+
"path": "dist/chunk-ZVQJMV44.js",
|
15502
15502
|
"kind": "import-statement"
|
15503
15503
|
},
|
15504
15504
|
{
|
@@ -15676,7 +15676,7 @@
|
|
15676
15676
|
"default"
|
15677
15677
|
],
|
15678
15678
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
15679
|
-
"cssBundle": "dist/HLSView-
|
15679
|
+
"cssBundle": "dist/HLSView-6UIKXBYL.css",
|
15680
15680
|
"inputs": {
|
15681
15681
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
15682
15682
|
"bytesInOutput": 27634
|
@@ -15735,13 +15735,13 @@
|
|
15735
15735
|
},
|
15736
15736
|
"bytes": 62273
|
15737
15737
|
},
|
15738
|
-
"dist/chunk-
|
15738
|
+
"dist/chunk-ZVQJMV44.js.map": {
|
15739
15739
|
"imports": [],
|
15740
15740
|
"exports": [],
|
15741
15741
|
"inputs": {},
|
15742
|
-
"bytes":
|
15742
|
+
"bytes": 3522921
|
15743
15743
|
},
|
15744
|
-
"dist/chunk-
|
15744
|
+
"dist/chunk-ZVQJMV44.js": {
|
15745
15745
|
"imports": [
|
15746
15746
|
{
|
15747
15747
|
"path": "react",
|
@@ -18289,7 +18289,7 @@
|
|
18289
18289
|
"external": true
|
18290
18290
|
},
|
18291
18291
|
{
|
18292
|
-
"path": "dist/HLSView-
|
18292
|
+
"path": "dist/HLSView-3MZRLTM4.js",
|
18293
18293
|
"kind": "dynamic-import"
|
18294
18294
|
},
|
18295
18295
|
{
|
@@ -18908,7 +18908,7 @@
|
|
18908
18908
|
],
|
18909
18909
|
"inputs": {
|
18910
18910
|
"<define:process.env>": {
|
18911
|
-
"bytesInOutput":
|
18911
|
+
"bytesInOutput": 18009
|
18912
18912
|
},
|
18913
18913
|
"../../node_modules/lodash/lodash.js": {
|
18914
18914
|
"bytesInOutput": 224301
|
@@ -19244,7 +19244,7 @@
|
|
19244
19244
|
"bytesInOutput": 2958
|
19245
19245
|
},
|
19246
19246
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
19247
|
-
"bytesInOutput":
|
19247
|
+
"bytesInOutput": 4450
|
19248
19248
|
},
|
19249
19249
|
"src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
|
19250
19250
|
"bytesInOutput": 489
|
@@ -19727,7 +19727,7 @@
|
|
19727
19727
|
"bytesInOutput": 160
|
19728
19728
|
},
|
19729
19729
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
19730
|
-
"bytesInOutput":
|
19730
|
+
"bytesInOutput": 8807
|
19731
19731
|
},
|
19732
19732
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
19733
19733
|
"bytesInOutput": 1252
|
@@ -19801,7 +19801,7 @@
|
|
19801
19801
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19802
19802
|
"bytesInOutput": 2830
|
19803
19803
|
},
|
19804
|
-
"../../../../../../../tmp/tmp-
|
19804
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28a51/index.css": {
|
19805
19805
|
"bytesInOutput": 0
|
19806
19806
|
},
|
19807
19807
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -19970,7 +19970,7 @@
|
|
19970
19970
|
"bytesInOutput": 2628
|
19971
19971
|
}
|
19972
19972
|
},
|
19973
|
-
"bytes":
|
19973
|
+
"bytes": 1461144
|
19974
19974
|
},
|
19975
19975
|
"dist/index.css.map": {
|
19976
19976
|
"imports": [],
|
@@ -20032,22 +20032,22 @@
|
|
20032
20032
|
}
|
20033
20033
|
],
|
20034
20034
|
"inputs": {
|
20035
|
-
"../../../../../../../tmp/tmp-
|
20035
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28b63/tldraw.css": {
|
20036
20036
|
"bytesInOutput": 75223
|
20037
20037
|
},
|
20038
|
-
"../../../../../../../tmp/tmp-
|
20038
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28a51/index.css": {
|
20039
20039
|
"bytesInOutput": 401
|
20040
20040
|
}
|
20041
20041
|
},
|
20042
20042
|
"bytes": 75901
|
20043
20043
|
},
|
20044
|
-
"dist/HLSView-
|
20044
|
+
"dist/HLSView-6UIKXBYL.css.map": {
|
20045
20045
|
"imports": [],
|
20046
20046
|
"exports": [],
|
20047
20047
|
"inputs": {},
|
20048
20048
|
"bytes": 122402
|
20049
20049
|
},
|
20050
|
-
"dist/HLSView-
|
20050
|
+
"dist/HLSView-6UIKXBYL.css": {
|
20051
20051
|
"imports": [
|
20052
20052
|
{
|
20053
20053
|
"path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
|
@@ -20101,10 +20101,10 @@
|
|
20101
20101
|
}
|
20102
20102
|
],
|
20103
20103
|
"inputs": {
|
20104
|
-
"../../../../../../../tmp/tmp-
|
20104
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28b63/tldraw.css": {
|
20105
20105
|
"bytesInOutput": 75223
|
20106
20106
|
},
|
20107
|
-
"../../../../../../../tmp/tmp-
|
20107
|
+
"../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28a51/index.css": {
|
20108
20108
|
"bytesInOutput": 401
|
20109
20109
|
}
|
20110
20110
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.20-alpha.
|
13
|
+
"version": "0.3.20-alpha.2",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -75,12 +75,12 @@
|
|
75
75
|
"react": ">=17.0.2 <19.0.0"
|
76
76
|
},
|
77
77
|
"dependencies": {
|
78
|
-
"@100mslive/hls-player": "0.3.20-alpha.
|
78
|
+
"@100mslive/hls-player": "0.3.20-alpha.2",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.20-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.10-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.20-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.20-alpha.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.20-alpha.2",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.10-alpha.2",
|
82
|
+
"@100mslive/react-icons": "0.10.20-alpha.2",
|
83
|
+
"@100mslive/react-sdk": "0.10.20-alpha.2",
|
84
84
|
"@100mslive/types-prebuilt": "0.12.12",
|
85
85
|
"@emoji-mart/data": "^1.0.6",
|
86
86
|
"@emoji-mart/react": "^1.0.1",
|
@@ -117,5 +117,5 @@
|
|
117
117
|
"uuid": "^8.3.2",
|
118
118
|
"worker-timers": "^7.0.40"
|
119
119
|
},
|
120
|
-
"gitHead": "
|
120
|
+
"gitHead": "af10282af58c6f480c9727a88a434aabfcb7f3c6"
|
121
121
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// eslint-disable-next-line
|
3
3
|
import { HMSVBPlugin, HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';
|
4
4
|
import { parsedUserAgent } from '@100mslive/react-sdk';
|
5
|
-
import { isSafari } from '../../common/constants';
|
5
|
+
import { isIOS, isSafari } from '../../common/constants';
|
6
6
|
export class VBPlugin {
|
7
7
|
private hmsPlugin?: HMSVBPlugin;
|
8
8
|
private effectsPlugin?: any;
|
@@ -103,6 +103,18 @@ export class VBPlugin {
|
|
103
103
|
this.hmsPlugin = undefined;
|
104
104
|
};
|
105
105
|
|
106
|
+
isBlurSupported = () => {
|
107
|
+
if ((isSafari || isIOS) && this.hmsPlugin) {
|
108
|
+
return false;
|
109
|
+
}
|
110
|
+
|
111
|
+
if (this.effectsPlugin) {
|
112
|
+
return true;
|
113
|
+
}
|
114
|
+
|
115
|
+
return false;
|
116
|
+
};
|
117
|
+
|
106
118
|
isEffectsSupported = () => {
|
107
119
|
if (!isSafari) {
|
108
120
|
return true;
|
@@ -57,6 +57,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
57
57
|
const background = useHMSStore(selectAppData(APP_DATA.background));
|
58
58
|
const mediaList = backgroundMedia.map((media: VirtualBackgroundMedia) => media.url || '');
|
59
59
|
const pluginLoadingRef = useRef(false);
|
60
|
+
const isBlurSupported = VBHandler?.isBlurSupported();
|
60
61
|
|
61
62
|
const inPreview = roomState === HMSRoomState.Preview;
|
62
63
|
// Hidden in preview as the effect will be visible in the preview tile
|
@@ -190,7 +191,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
190
191
|
await VBHandler?.setBlur(blurAmount);
|
191
192
|
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.BLUR);
|
192
193
|
},
|
193
|
-
supported:
|
194
|
+
supported: isBlurSupported,
|
194
195
|
},
|
195
196
|
]}
|
196
197
|
activeBackground={background}
|
@@ -198,7 +199,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
198
199
|
|
199
200
|
{/* Slider */}
|
200
201
|
<Flex direction="column" css={{ w: '100%', gap: '$8', mt: '$8' }}>
|
201
|
-
{background === HMSVirtualBackgroundTypes.BLUR &&
|
202
|
+
{background === HMSVirtualBackgroundTypes.BLUR && isBlurSupported ? (
|
202
203
|
<Box>
|
203
204
|
<Text variant="sm" css={{ color: '$on_surface_high', fontWeight: '$semiBold', mb: '$4' }}>
|
204
205
|
Blur intensity
|