@100mslive/roomkit-react 0.2.4-alpha.3 → 0.2.4-alpha.4

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.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-QW3HEGVV.js";
65
+ } from "./chunk-TQATKHZJ.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -5532,7 +5532,7 @@
5532
5532
  "format": "esm"
5533
5533
  },
5534
5534
  "src/Prebuilt/components/VirtualBackground/VBToggle.jsx": {
5535
- "bytes": 938,
5535
+ "bytes": 1049,
5536
5536
  "imports": [
5537
5537
  {
5538
5538
  "path": "react",
@@ -12775,7 +12775,7 @@
12775
12775
  "imports": [],
12776
12776
  "exports": [],
12777
12777
  "inputs": {},
12778
- "bytes": 3165128
12778
+ "bytes": 3165297
12779
12779
  },
12780
12780
  "dist/index.cjs.js": {
12781
12781
  "imports": [
@@ -15479,7 +15479,7 @@
15479
15479
  "entryPoint": "src/index.ts",
15480
15480
  "inputs": {
15481
15481
  "<define:process.env>": {
15482
- "bytesInOutput": 18093
15482
+ "bytesInOutput": 18125
15483
15483
  },
15484
15484
  "src/Theme/base.config.ts": {
15485
15485
  "bytesInOutput": 6104
@@ -16028,7 +16028,7 @@
16028
16028
  "bytesInOutput": 2025
16029
16029
  },
16030
16030
  "src/Prebuilt/components/VirtualBackground/VBToggle.jsx": {
16031
- "bytesInOutput": 1218
16031
+ "bytesInOutput": 1350
16032
16032
  },
16033
16033
  "src/Prebuilt/components/Footer/ChatToggle.tsx": {
16034
16034
  "bytesInOutput": 1939
@@ -16487,7 +16487,7 @@
16487
16487
  "bytesInOutput": 2980
16488
16488
  }
16489
16489
  },
16490
- "bytes": 1486850
16490
+ "bytes": 1487014
16491
16491
  }
16492
16492
  }
16493
16493
  }
@@ -5532,7 +5532,7 @@
5532
5532
  "format": "esm"
5533
5533
  },
5534
5534
  "src/Prebuilt/components/VirtualBackground/VBToggle.jsx": {
5535
- "bytes": 938,
5535
+ "bytes": 1049,
5536
5536
  "imports": [
5537
5537
  {
5538
5538
  "path": "react",
@@ -12780,7 +12780,7 @@
12780
12780
  "dist/index.js": {
12781
12781
  "imports": [
12782
12782
  {
12783
- "path": "dist/chunk-QW3HEGVV.js",
12783
+ "path": "dist/chunk-TQATKHZJ.js",
12784
12784
  "kind": "import-statement"
12785
12785
  }
12786
12786
  ],
@@ -12853,16 +12853,16 @@
12853
12853
  "inputs": {},
12854
12854
  "bytes": 1822
12855
12855
  },
12856
- "dist/HLSView-B7YXFUDK.js.map": {
12856
+ "dist/HLSView-EXE5PBOQ.js.map": {
12857
12857
  "imports": [],
12858
12858
  "exports": [],
12859
12859
  "inputs": {},
12860
12860
  "bytes": 58854
12861
12861
  },
12862
- "dist/HLSView-B7YXFUDK.js": {
12862
+ "dist/HLSView-EXE5PBOQ.js": {
12863
12863
  "imports": [
12864
12864
  {
12865
- "path": "dist/chunk-QW3HEGVV.js",
12865
+ "path": "dist/chunk-TQATKHZJ.js",
12866
12866
  "kind": "import-statement"
12867
12867
  },
12868
12868
  {
@@ -13026,13 +13026,13 @@
13026
13026
  },
13027
13027
  "bytes": 36972
13028
13028
  },
13029
- "dist/chunk-QW3HEGVV.js.map": {
13029
+ "dist/chunk-TQATKHZJ.js.map": {
13030
13030
  "imports": [],
13031
13031
  "exports": [],
13032
13032
  "inputs": {},
13033
- "bytes": 3101962
13033
+ "bytes": 3102138
13034
13034
  },
13035
- "dist/chunk-QW3HEGVV.js": {
13035
+ "dist/chunk-TQATKHZJ.js": {
13036
13036
  "imports": [
13037
13037
  {
13038
13038
  "path": "react",
@@ -15280,7 +15280,7 @@
15280
15280
  "external": true
15281
15281
  },
15282
15282
  {
15283
- "path": "dist/HLSView-B7YXFUDK.js",
15283
+ "path": "dist/HLSView-EXE5PBOQ.js",
15284
15284
  "kind": "dynamic-import"
15285
15285
  },
15286
15286
  {
@@ -15702,7 +15702,7 @@
15702
15702
  ],
15703
15703
  "inputs": {
15704
15704
  "<define:process.env>": {
15705
- "bytesInOutput": 18093
15705
+ "bytesInOutput": 18125
15706
15706
  },
15707
15707
  "../../node_modules/lodash/lodash.js": {
15708
15708
  "bytesInOutput": 224267
@@ -16227,7 +16227,7 @@
16227
16227
  "bytesInOutput": 823
16228
16228
  },
16229
16229
  "src/Prebuilt/components/VirtualBackground/VBToggle.jsx": {
16230
- "bytesInOutput": 847
16230
+ "bytesInOutput": 958
16231
16231
  },
16232
16232
  "src/Prebuilt/components/Footer/ChatToggle.tsx": {
16233
16233
  "bytesInOutput": 1404
@@ -16629,7 +16629,7 @@
16629
16629
  "bytesInOutput": 651
16630
16630
  }
16631
16631
  },
16632
- "bytes": 1265070
16632
+ "bytes": 1265213
16633
16633
  }
16634
16634
  }
16635
16635
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.4-alpha.3",
13
+ "version": "0.2.4-alpha.4",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -82,10 +82,10 @@
82
82
  "react": ">=17.0.2 <19.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@100mslive/hls-player": "0.2.4-alpha.3",
86
- "@100mslive/hms-virtual-background": "1.12.4-alpha.3",
87
- "@100mslive/react-icons": "0.9.4-alpha.3",
88
- "@100mslive/react-sdk": "0.9.4-alpha.3",
85
+ "@100mslive/hls-player": "0.2.4-alpha.4",
86
+ "@100mslive/hms-virtual-background": "1.12.4-alpha.4",
87
+ "@100mslive/react-icons": "0.9.4-alpha.4",
88
+ "@100mslive/react-sdk": "0.9.4-alpha.4",
89
89
  "@100mslive/types-prebuilt": "0.12.6",
90
90
  "@emoji-mart/data": "^1.0.6",
91
91
  "@emoji-mart/react": "^1.0.1",
@@ -120,5 +120,5 @@
120
120
  "uuid": "^8.3.2",
121
121
  "worker-timers": "^7.0.40"
122
122
  },
123
- "gitHead": "364fdcc42d01ca9cd41dde9915a0a9ef132a35d7"
123
+ "gitHead": "b592aa17584b42ae88066813f59cb86ad9daa35a"
124
124
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { selectIsLocalVideoEnabled, useHMSStore } from '@100mslive/react-sdk';
2
+ import { selectIsEffectsEnabled, selectIsLocalVideoEnabled, useHMSStore } from '@100mslive/react-sdk';
3
3
  import { VirtualBackgroundIcon } from '@100mslive/react-icons';
4
4
  import { Tooltip } from '../../../Tooltip';
5
5
  import IconButton from '../../IconButton';
@@ -10,8 +10,9 @@ export const VBToggle = () => {
10
10
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
11
11
  const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
12
12
  const isVideoOn = useHMSStore(selectIsLocalVideoEnabled);
13
+ const isEffectsEnabled = useHMSStore(selectIsEffectsEnabled);
13
14
 
14
- if (!isVideoOn || isSafari) {
15
+ if (!isVideoOn || (!isEffectsEnabled && isSafari)) {
15
16
  return null;
16
17
  }
17
18