@100mslive/roomkit-react 0.3.20-alpha.1 → 0.3.20-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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",
@@ -5749,7 +5749,7 @@
5749
5749
  "format": "cjs"
5750
5750
  },
5751
5751
  "../hms-video-store/dist/index.js": {
5752
- "bytes": 367512,
5752
+ "bytes": 368166,
5753
5753
  "imports": [
5754
5754
  {
5755
5755
  "path": "../../node_modules/reselect/es/index.js",
@@ -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-2877-AOYuo6PDc2oK/19203e066563/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-2877-AOYuo6PDc2oK/19203e065fe1/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-2877-AOYuo6PDc2oK/19203e066563/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-2877-AOYuo6PDc2oK/19203e065fe1/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-Y3UYAB6J.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-YFTHW2VY.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-YFTHW2VY.js": {
15499
15499
  "imports": [
15500
15500
  {
15501
- "path": "dist/chunk-I6M7HK22.js",
15501
+ "path": "dist/chunk-Y3UYAB6J.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-KKVZM355.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-Y3UYAB6J.js.map": {
15739
15739
  "imports": [],
15740
15740
  "exports": [],
15741
15741
  "inputs": {},
15742
- "bytes": 3522545
15742
+ "bytes": 3524653
15743
15743
  },
15744
- "dist/chunk-I6M7HK22.js": {
15744
+ "dist/chunk-Y3UYAB6J.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-YFTHW2VY.js",
18293
18293
  "kind": "dynamic-import"
18294
18294
  },
18295
18295
  {
@@ -18908,13 +18908,13 @@
18908
18908
  ],
18909
18909
  "inputs": {
18910
18910
  "<define:process.env>": {
18911
- "bytesInOutput": 18027
18911
+ "bytesInOutput": 18026
18912
18912
  },
18913
18913
  "../../node_modules/lodash/lodash.js": {
18914
- "bytesInOutput": 224301
18914
+ "bytesInOutput": 224291
18915
18915
  },
18916
18916
  "../../node_modules/ua-parser-js/src/ua-parser.js": {
18917
- "bytesInOutput": 42491
18917
+ "bytesInOutput": 42465
18918
18918
  },
18919
18919
  "../../node_modules/lodash.isequal/index.js": {
18920
18920
  "bytesInOutput": 26591
@@ -18926,7 +18926,7 @@
18926
18926
  "bytesInOutput": 16120
18927
18927
  },
18928
18928
  "../../node_modules/sdp-transform/lib/parser.js": {
18929
- "bytesInOutput": 3500
18929
+ "bytesInOutput": 3495
18930
18930
  },
18931
18931
  "../../node_modules/sdp-transform/lib/writer.js": {
18932
18932
  "bytesInOutput": 3068
@@ -18935,7 +18935,7 @@
18935
18935
  "bytesInOutput": 615
18936
18936
  },
18937
18937
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js": {
18938
- "bytesInOutput": 3852
18938
+ "bytesInOutput": 3836
18939
18939
  },
18940
18940
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": {
18941
18941
  "bytesInOutput": 7632
@@ -18956,7 +18956,7 @@
18956
18956
  "bytesInOutput": 2825
18957
18957
  },
18958
18958
  "../../node_modules/prop-types/factoryWithTypeCheckers.js": {
18959
- "bytesInOutput": 19835
18959
+ "bytesInOutput": 19837
18960
18960
  },
18961
18961
  "../../node_modules/prop-types/factoryWithThrowingShims.js": {
18962
18962
  "bytesInOutput": 1646
@@ -19118,7 +19118,7 @@
19118
19118
  "bytesInOutput": 27
19119
19119
  },
19120
19120
  "src/AudioLevel/useBorderAudioLevel.tsx": {
19121
- "bytesInOutput": 755
19121
+ "bytesInOutput": 753
19122
19122
  },
19123
19123
  "src/AudioLevel/AudioLevel.tsx": {
19124
19124
  "bytesInOutput": 2195
@@ -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
@@ -19466,10 +19466,10 @@
19466
19466
  "bytesInOutput": 6313
19467
19467
  },
19468
19468
  "../../node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js": {
19469
- "bytesInOutput": 22676
19469
+ "bytesInOutput": 22678
19470
19470
  },
19471
19471
  "../../node_modules/webrtc-adapter/src/js/chrome/getusermedia.js": {
19472
- "bytesInOutput": 6095
19472
+ "bytesInOutput": 6110
19473
19473
  },
19474
19474
  "../../node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js": {
19475
19475
  "bytesInOutput": 1256
@@ -19484,7 +19484,7 @@
19484
19484
  "bytesInOutput": 842
19485
19485
  },
19486
19486
  "../../node_modules/webrtc-adapter/src/js/safari/safari_shim.js": {
19487
- "bytesInOutput": 11866
19487
+ "bytesInOutput": 11868
19488
19488
  },
19489
19489
  "../../node_modules/webrtc-adapter/src/js/common_shim.js": {
19490
19490
  "bytesInOutput": 12458
@@ -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-2877-AOYuo6PDc2oK/19203e065fe1/index.css": {
19805
19805
  "bytesInOutput": 0
19806
19806
  },
19807
19807
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19865,7 +19865,7 @@
19865
19865
  "bytesInOutput": 27
19866
19866
  },
19867
19867
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
19868
- "bytesInOutput": 8179
19868
+ "bytesInOutput": 8176
19869
19869
  },
19870
19870
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
19871
19871
  "bytesInOutput": 1053
@@ -19970,7 +19970,7 @@
19970
19970
  "bytesInOutput": 2628
19971
19971
  }
19972
19972
  },
19973
- "bytes": 1460905
19973
+ "bytes": 1461115
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-2877-AOYuo6PDc2oK/19203e066563/tldraw.css": {
20036
20036
  "bytesInOutput": 75223
20037
20037
  },
20038
- "../../../../../../../tmp/tmp-2899-IUZE5yGNG4PA/191eb73f5271/index.css": {
20038
+ "../../../../../../../tmp/tmp-2877-AOYuo6PDc2oK/19203e065fe1/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-KKVZM355.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-KKVZM355.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-2877-AOYuo6PDc2oK/19203e066563/tldraw.css": {
20105
20105
  "bytesInOutput": 75223
20106
20106
  },
20107
- "../../../../../../../tmp/tmp-2899-IUZE5yGNG4PA/191eb73f5271/index.css": {
20107
+ "../../../../../../../tmp/tmp-2877-AOYuo6PDc2oK/19203e065fe1/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.3",
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.3",
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.3",
81
+ "@100mslive/hms-whiteboard": "0.0.10-alpha.3",
82
+ "@100mslive/react-icons": "0.10.20-alpha.3",
83
+ "@100mslive/react-sdk": "0.10.20-alpha.3",
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": "7432edcc726ca36bf1ffeab7e0ab8ab16f461ac3"
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