@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.
@@ -2390,7 +2390,7 @@
2390
2390
  "format": "esm"
2391
2391
  },
2392
2392
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
2393
- "bytes": 3598,
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": 8900,
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-2899-IUZE5yGNG4PA/191eb73f5702/tldraw.css": {
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-2899-IUZE5yGNG4PA/191eb73f5271/index.css": {
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-2899-IUZE5yGNG4PA/191eb73f5702/tldraw.css",
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-2899-IUZE5yGNG4PA/191eb73f5271/index.css",
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-I6M7HK22.js",
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-WY2KZLYW.js.map": {
15492
+ "dist/HLSView-3MZRLTM4.js.map": {
15493
15493
  "imports": [],
15494
15494
  "exports": [],
15495
15495
  "inputs": {},
15496
15496
  "bytes": 101299
15497
15497
  },
15498
- "dist/HLSView-WY2KZLYW.js": {
15498
+ "dist/HLSView-3MZRLTM4.js": {
15499
15499
  "imports": [
15500
15500
  {
15501
- "path": "dist/chunk-I6M7HK22.js",
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-KVYOXQXT.css",
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-I6M7HK22.js.map": {
15738
+ "dist/chunk-ZVQJMV44.js.map": {
15739
15739
  "imports": [],
15740
15740
  "exports": [],
15741
15741
  "inputs": {},
15742
- "bytes": 3522545
15742
+ "bytes": 3522921
15743
15743
  },
15744
- "dist/chunk-I6M7HK22.js": {
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-WY2KZLYW.js",
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": 18027
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": 4246
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": 8754
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-2899-IUZE5yGNG4PA/191eb73f5271/index.css": {
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": 1460905
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-2899-IUZE5yGNG4PA/191eb73f5702/tldraw.css": {
20035
+ "../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28b63/tldraw.css": {
20036
20036
  "bytesInOutput": 75223
20037
20037
  },
20038
- "../../../../../../../tmp/tmp-2899-IUZE5yGNG4PA/191eb73f5271/index.css": {
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-KVYOXQXT.css.map": {
20044
+ "dist/HLSView-6UIKXBYL.css.map": {
20045
20045
  "imports": [],
20046
20046
  "exports": [],
20047
20047
  "inputs": {},
20048
20048
  "bytes": 122402
20049
20049
  },
20050
- "dist/HLSView-KVYOXQXT.css": {
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-2899-IUZE5yGNG4PA/191eb73f5702/tldraw.css": {
20104
+ "../../../../../../../tmp/tmp-2789-rJzuxtJSxCZ4/191eb8c28b63/tldraw.css": {
20105
20105
  "bytesInOutput": 75223
20106
20106
  },
20107
- "../../../../../../../tmp/tmp-2899-IUZE5yGNG4PA/191eb73f5271/index.css": {
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.1",
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.1",
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.1",
81
- "@100mslive/hms-whiteboard": "0.0.10-alpha.1",
82
- "@100mslive/react-icons": "0.10.20-alpha.1",
83
- "@100mslive/react-sdk": "0.10.20-alpha.1",
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": "1772ffc7344d3a8d0c3548779e1d7e808e3715ad"
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: isEffectsSupported && isEffectsEnabled,
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 && isEffectsEnabled && effectsKey ? (
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