@100mslive/roomkit-react 0.3.5-alpha.2 → 0.3.5-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.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-ZE5KXBZW.js";
65
+ } from "./chunk-55X45VYE.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -10340,7 +10340,7 @@
10340
10340
  "format": "esm"
10341
10341
  },
10342
10342
  "src/Prebuilt/components/LayoutModeSelector.tsx": {
10343
- "bytes": 3344,
10343
+ "bytes": 3516,
10344
10344
  "imports": [
10345
10345
  {
10346
10346
  "path": "react",
@@ -13780,7 +13780,7 @@
13780
13780
  "imports": [],
13781
13781
  "exports": [],
13782
13782
  "inputs": {},
13783
- "bytes": 3300552
13783
+ "bytes": 3300881
13784
13784
  },
13785
13785
  "dist/index.cjs.js": {
13786
13786
  "imports": [
@@ -16729,7 +16729,7 @@
16729
16729
  "entryPoint": "src/index.ts",
16730
16730
  "inputs": {
16731
16731
  "<define:process.env>": {
16732
- "bytesInOutput": 18229
16732
+ "bytesInOutput": 18285
16733
16733
  },
16734
16734
  "src/Theme/base.config.ts": {
16735
16735
  "bytesInOutput": 6104
@@ -17560,7 +17560,7 @@
17560
17560
  "bytesInOutput": 2745
17561
17561
  },
17562
17562
  "src/Prebuilt/components/LayoutModeSelector.tsx": {
17563
- "bytesInOutput": 3951
17563
+ "bytesInOutput": 4151
17564
17564
  },
17565
17565
  "src/Prebuilt/components/ScreenshareDisplay.tsx": {
17566
17566
  "bytesInOutput": 1707
@@ -17782,7 +17782,7 @@
17782
17782
  "bytesInOutput": 2980
17783
17783
  }
17784
17784
  },
17785
- "bytes": 1570641
17785
+ "bytes": 1570897
17786
17786
  }
17787
17787
  }
17788
17788
  }
@@ -10340,7 +10340,7 @@
10340
10340
  "format": "esm"
10341
10341
  },
10342
10342
  "src/Prebuilt/components/LayoutModeSelector.tsx": {
10343
- "bytes": 3344,
10343
+ "bytes": 3516,
10344
10344
  "imports": [
10345
10345
  {
10346
10346
  "path": "react",
@@ -13785,7 +13785,7 @@
13785
13785
  "dist/index.js": {
13786
13786
  "imports": [
13787
13787
  {
13788
- "path": "dist/chunk-ZE5KXBZW.js",
13788
+ "path": "dist/chunk-55X45VYE.js",
13789
13789
  "kind": "import-statement"
13790
13790
  }
13791
13791
  ],
@@ -13858,16 +13858,16 @@
13858
13858
  "inputs": {},
13859
13859
  "bytes": 1822
13860
13860
  },
13861
- "dist/HLSView-I6DCFRWE.js.map": {
13861
+ "dist/HLSView-MS5MU24E.js.map": {
13862
13862
  "imports": [],
13863
13863
  "exports": [],
13864
13864
  "inputs": {},
13865
13865
  "bytes": 99469
13866
13866
  },
13867
- "dist/HLSView-I6DCFRWE.js": {
13867
+ "dist/HLSView-MS5MU24E.js": {
13868
13868
  "imports": [
13869
13869
  {
13870
- "path": "dist/chunk-ZE5KXBZW.js",
13870
+ "path": "dist/chunk-55X45VYE.js",
13871
13871
  "kind": "import-statement"
13872
13872
  },
13873
13873
  {
@@ -14103,13 +14103,13 @@
14103
14103
  },
14104
14104
  "bytes": 61339
14105
14105
  },
14106
- "dist/chunk-ZE5KXBZW.js.map": {
14106
+ "dist/chunk-55X45VYE.js.map": {
14107
14107
  "imports": [],
14108
14108
  "exports": [],
14109
14109
  "inputs": {},
14110
- "bytes": 3196714
14110
+ "bytes": 3197084
14111
14111
  },
14112
- "dist/chunk-ZE5KXBZW.js": {
14112
+ "dist/chunk-55X45VYE.js": {
14113
14113
  "imports": [
14114
14114
  {
14115
14115
  "path": "react",
@@ -16497,7 +16497,7 @@
16497
16497
  "external": true
16498
16498
  },
16499
16499
  {
16500
- "path": "dist/HLSView-I6DCFRWE.js",
16500
+ "path": "dist/HLSView-MS5MU24E.js",
16501
16501
  "kind": "dynamic-import"
16502
16502
  },
16503
16503
  {
@@ -16978,7 +16978,7 @@
16978
16978
  ],
16979
16979
  "inputs": {
16980
16980
  "<define:process.env>": {
16981
- "bytesInOutput": 18229
16981
+ "bytesInOutput": 18285
16982
16982
  },
16983
16983
  "../../node_modules/lodash/lodash.js": {
16984
16984
  "bytesInOutput": 224310
@@ -17794,7 +17794,7 @@
17794
17794
  "bytesInOutput": 4447
17795
17795
  },
17796
17796
  "src/Prebuilt/components/LayoutModeSelector.tsx": {
17797
- "bytesInOutput": 3093
17797
+ "bytesInOutput": 3276
17798
17798
  },
17799
17799
  "src/Prebuilt/components/ScreenshareDisplay.tsx": {
17800
17800
  "bytesInOutput": 1226
@@ -17938,7 +17938,7 @@
17938
17938
  "bytesInOutput": 651
17939
17939
  }
17940
17940
  },
17941
- "bytes": 1309070
17941
+ "bytes": 1309309
17942
17942
  }
17943
17943
  }
17944
17944
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.5-alpha.2",
13
+ "version": "0.3.5-alpha.3",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -82,11 +82,11 @@
82
82
  "react": ">=17.0.2 <19.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@100mslive/hls-player": "0.3.5-alpha.2",
85
+ "@100mslive/hls-player": "0.3.5-alpha.3",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.1",
87
- "@100mslive/hms-virtual-background": "1.13.5-alpha.2",
88
- "@100mslive/react-icons": "0.10.5-alpha.2",
89
- "@100mslive/react-sdk": "0.10.5-alpha.2",
87
+ "@100mslive/hms-virtual-background": "1.13.5-alpha.3",
88
+ "@100mslive/react-icons": "0.10.5-alpha.3",
89
+ "@100mslive/react-sdk": "0.10.5-alpha.3",
90
90
  "@100mslive/types-prebuilt": "0.12.8",
91
91
  "@emoji-mart/data": "^1.0.6",
92
92
  "@emoji-mart/react": "^1.0.1",
@@ -122,5 +122,5 @@
122
122
  "uuid": "^8.3.2",
123
123
  "worker-timers": "^7.0.40"
124
124
  },
125
- "gitHead": "2612f221c9a7a7705261bf50d57fbca61aee6386"
125
+ "gitHead": "5db2a806f46b654133659d7160365b88fcec77ab"
126
126
  }
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import React, { useCallback, useState } from 'react';
2
2
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@100mslive/react-icons';
3
3
  import { LayoutMode, LayoutModeIconMapping, LayoutModeKeys } from './Settings/LayoutSettings';
4
4
  import { Flex } from '../../Layout';
@@ -11,7 +11,13 @@ import { UI_SETTINGS } from '../common/constants';
11
11
  export const LayoutModeSelector = () => {
12
12
  const [open, setOpen] = useState(false);
13
13
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
14
-
14
+ const updateLayoutMode = useCallback(
15
+ (value: string) => {
16
+ setLayoutMode(value);
17
+ setOpen(false);
18
+ },
19
+ [setLayoutMode, setOpen],
20
+ );
15
21
  return (
16
22
  <Popover.Root open={open} onOpenChange={setOpen}>
17
23
  <Popover.Trigger asChild>
@@ -65,7 +71,7 @@ export const LayoutModeSelector = () => {
65
71
  return (
66
72
  <Flex
67
73
  key={key}
68
- onClick={() => setLayoutMode(value)}
74
+ onClick={() => updateLayoutMode(value)}
69
75
  align="center"
70
76
  css={{
71
77
  gap: '$4',