@100mslive/roomkit-react 0.3.24-alpha.2 → 0.3.24-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,7 +94,7 @@
94
94
  "format": "esm"
95
95
  },
96
96
  "src/Theme/ThemeProvider.tsx": {
97
- "bytes": 2984,
97
+ "bytes": 2846,
98
98
  "imports": [
99
99
  {
100
100
  "path": "react",
@@ -2525,7 +2525,7 @@
2525
2525
  "format": "esm"
2526
2526
  },
2527
2527
  "src/Prebuilt/AppStateContext.tsx": {
2528
- "bytes": 3531,
2528
+ "bytes": 3590,
2529
2529
  "imports": [
2530
2530
  {
2531
2531
  "path": "react",
@@ -4734,7 +4734,7 @@
4734
4734
  "format": "esm"
4735
4735
  },
4736
4736
  "src/Prebuilt/components/StatsForNerds.jsx": {
4737
- "bytes": 13008,
4737
+ "bytes": 13474,
4738
4738
  "imports": [
4739
4739
  {
4740
4740
  "path": "react",
@@ -5774,7 +5774,7 @@
5774
5774
  "format": "cjs"
5775
5775
  },
5776
5776
  "../hms-video-store/dist/index.js": {
5777
- "bytes": 372756,
5777
+ "bytes": 372809,
5778
5778
  "imports": [
5779
5779
  {
5780
5780
  "path": "../../node_modules/reselect/es/index.js",
@@ -11316,7 +11316,7 @@
11316
11316
  ],
11317
11317
  "format": "esm"
11318
11318
  },
11319
- "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb6713/tldraw.css": {
11319
+ "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc2482d53/tldraw.css": {
11320
11320
  "bytes": 80111,
11321
11321
  "imports": [
11322
11322
  {
@@ -11366,7 +11366,7 @@
11366
11366
  }
11367
11367
  ]
11368
11368
  },
11369
- "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css": {
11369
+ "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css": {
11370
11370
  "bytes": 597,
11371
11371
  "imports": [
11372
11372
  {
@@ -11375,7 +11375,7 @@
11375
11375
  "external": true
11376
11376
  },
11377
11377
  {
11378
- "path": "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb6713/tldraw.css",
11378
+ "path": "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc2482d53/tldraw.css",
11379
11379
  "kind": "import-rule",
11380
11380
  "original": "@tldraw/tldraw/tldraw.css"
11381
11381
  }
@@ -11450,7 +11450,7 @@
11450
11450
  "original": "../../common/constants"
11451
11451
  },
11452
11452
  {
11453
- "path": "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css",
11453
+ "path": "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css",
11454
11454
  "kind": "import-statement",
11455
11455
  "original": "@100mslive/hms-whiteboard/index.css"
11456
11456
  },
@@ -12808,7 +12808,7 @@
12808
12808
  "format": "esm"
12809
12809
  },
12810
12810
  "src/Prebuilt/components/ConferenceScreen.tsx": {
12811
- "bytes": 8221,
12811
+ "bytes": 8262,
12812
12812
  "imports": [
12813
12813
  {
12814
12814
  "path": "react",
@@ -13149,7 +13149,7 @@
13149
13149
  "format": "esm"
13150
13150
  },
13151
13151
  "src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx": {
13152
- "bytes": 1229,
13152
+ "bytes": 1674,
13153
13153
  "imports": [
13154
13154
  {
13155
13155
  "path": "react",
@@ -14591,7 +14591,7 @@
14591
14591
  "format": "esm"
14592
14592
  },
14593
14593
  "src/Prebuilt/App.tsx": {
14594
- "bytes": 11106,
14594
+ "bytes": 11054,
14595
14595
  "imports": [
14596
14596
  {
14597
14597
  "path": "react",
@@ -15719,7 +15719,7 @@
15719
15719
  "imports": [],
15720
15720
  "exports": [],
15721
15721
  "inputs": {},
15722
- "bytes": 3615535
15722
+ "bytes": 3617010
15723
15723
  },
15724
15724
  "dist/index.cjs.js": {
15725
15725
  "imports": [
@@ -19052,7 +19052,7 @@
19052
19052
  "cssBundle": "dist/index.cjs.css",
19053
19053
  "inputs": {
19054
19054
  "<define:process.env>": {
19055
- "bytesInOutput": 18054
19055
+ "bytesInOutput": 18025
19056
19056
  },
19057
19057
  "../../node_modules/lodash/lodash.js": {
19058
19058
  "bytesInOutput": 224308
@@ -19133,7 +19133,7 @@
19133
19133
  "bytesInOutput": 3715
19134
19134
  },
19135
19135
  "src/Theme/ThemeProvider.tsx": {
19136
- "bytesInOutput": 2121
19136
+ "bytesInOutput": 2005
19137
19137
  },
19138
19138
  "src/Theme/useSSR.tsx": {
19139
19139
  "bytesInOutput": 455
@@ -19334,7 +19334,7 @@
19334
19334
  "bytesInOutput": 925
19335
19335
  },
19336
19336
  "src/Prebuilt/App.tsx": {
19337
- "bytesInOutput": 8605
19337
+ "bytesInOutput": 8561
19338
19338
  },
19339
19339
  "src/Prebuilt/components/AppData/AppData.tsx": {
19340
19340
  "bytesInOutput": 6918
@@ -19382,7 +19382,7 @@
19382
19382
  "bytesInOutput": 599
19383
19383
  },
19384
19384
  "src/Prebuilt/AppStateContext.tsx": {
19385
- "bytesInOutput": 3289
19385
+ "bytesInOutput": 3384
19386
19386
  },
19387
19387
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19388
19388
  "bytesInOutput": 4676
@@ -19400,7 +19400,7 @@
19400
19400
  "bytesInOutput": 1053
19401
19401
  },
19402
19402
  "src/Prebuilt/components/ConferenceScreen.tsx": {
19403
- "bytesInOutput": 7820
19403
+ "bytesInOutput": 7859
19404
19404
  },
19405
19405
  "src/Prebuilt/components/Footer/Footer.tsx": {
19406
19406
  "bytesInOutput": 3740
@@ -19544,7 +19544,7 @@
19544
19544
  "bytesInOutput": 8368
19545
19545
  },
19546
19546
  "src/Prebuilt/components/StatsForNerds.jsx": {
19547
- "bytesInOutput": 15259
19547
+ "bytesInOutput": 15803
19548
19548
  },
19549
19549
  "src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
19550
19550
  "bytesInOutput": 5478
@@ -19930,7 +19930,7 @@
19930
19930
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19931
19931
  "bytesInOutput": 3051
19932
19932
  },
19933
- "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css": {
19933
+ "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css": {
19934
19934
  "bytesInOutput": 0
19935
19935
  },
19936
19936
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20039,7 +20039,7 @@
20039
20039
  "bytesInOutput": 11234
20040
20040
  },
20041
20041
  "src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx": {
20042
- "bytesInOutput": 1429
20042
+ "bytesInOutput": 1925
20043
20043
  },
20044
20044
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
20045
20045
  "bytesInOutput": 3179
@@ -20165,7 +20165,7 @@
20165
20165
  "bytesInOutput": 2777
20166
20166
  }
20167
20167
  },
20168
- "bytes": 1502931
20168
+ "bytes": 1503916
20169
20169
  },
20170
20170
  "dist/index.cjs.css.map": {
20171
20171
  "imports": [],
@@ -20227,10 +20227,10 @@
20227
20227
  }
20228
20228
  ],
20229
20229
  "inputs": {
20230
- "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb6713/tldraw.css": {
20230
+ "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc2482d53/tldraw.css": {
20231
20231
  "bytesInOutput": 75223
20232
20232
  },
20233
- "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css": {
20233
+ "../../../../../../../tmp/tmp-2742-7046AemPVhFa/192dc24826a0/index.css": {
20234
20234
  "bytesInOutput": 401
20235
20235
  }
20236
20236
  },
@@ -94,7 +94,7 @@
94
94
  "format": "esm"
95
95
  },
96
96
  "src/Theme/ThemeProvider.tsx": {
97
- "bytes": 2984,
97
+ "bytes": 2846,
98
98
  "imports": [
99
99
  {
100
100
  "path": "react",
@@ -2525,7 +2525,7 @@
2525
2525
  "format": "esm"
2526
2526
  },
2527
2527
  "src/Prebuilt/AppStateContext.tsx": {
2528
- "bytes": 3531,
2528
+ "bytes": 3590,
2529
2529
  "imports": [
2530
2530
  {
2531
2531
  "path": "react",
@@ -4734,7 +4734,7 @@
4734
4734
  "format": "esm"
4735
4735
  },
4736
4736
  "src/Prebuilt/components/StatsForNerds.jsx": {
4737
- "bytes": 13008,
4737
+ "bytes": 13474,
4738
4738
  "imports": [
4739
4739
  {
4740
4740
  "path": "react",
@@ -5774,7 +5774,7 @@
5774
5774
  "format": "cjs"
5775
5775
  },
5776
5776
  "../hms-video-store/dist/index.js": {
5777
- "bytes": 372756,
5777
+ "bytes": 372809,
5778
5778
  "imports": [
5779
5779
  {
5780
5780
  "path": "../../node_modules/reselect/es/index.js",
@@ -11316,7 +11316,7 @@
11316
11316
  ],
11317
11317
  "format": "esm"
11318
11318
  },
11319
- "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb6082/tldraw.css": {
11319
+ "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482d42/tldraw.css": {
11320
11320
  "bytes": 80111,
11321
11321
  "imports": [
11322
11322
  {
@@ -11366,7 +11366,7 @@
11366
11366
  }
11367
11367
  ]
11368
11368
  },
11369
- "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css": {
11369
+ "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css": {
11370
11370
  "bytes": 597,
11371
11371
  "imports": [
11372
11372
  {
@@ -11375,7 +11375,7 @@
11375
11375
  "external": true
11376
11376
  },
11377
11377
  {
11378
- "path": "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb6082/tldraw.css",
11378
+ "path": "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482d42/tldraw.css",
11379
11379
  "kind": "import-rule",
11380
11380
  "original": "@tldraw/tldraw/tldraw.css"
11381
11381
  }
@@ -11450,7 +11450,7 @@
11450
11450
  "original": "../../common/constants"
11451
11451
  },
11452
11452
  {
11453
- "path": "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css",
11453
+ "path": "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css",
11454
11454
  "kind": "import-statement",
11455
11455
  "original": "@100mslive/hms-whiteboard/index.css"
11456
11456
  },
@@ -12808,7 +12808,7 @@
12808
12808
  "format": "esm"
12809
12809
  },
12810
12810
  "src/Prebuilt/components/ConferenceScreen.tsx": {
12811
- "bytes": 8221,
12811
+ "bytes": 8262,
12812
12812
  "imports": [
12813
12813
  {
12814
12814
  "path": "react",
@@ -13149,7 +13149,7 @@
13149
13149
  "format": "esm"
13150
13150
  },
13151
13151
  "src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx": {
13152
- "bytes": 1229,
13152
+ "bytes": 1674,
13153
13153
  "imports": [
13154
13154
  {
13155
13155
  "path": "react",
@@ -14591,7 +14591,7 @@
14591
14591
  "format": "esm"
14592
14592
  },
14593
14593
  "src/Prebuilt/App.tsx": {
14594
- "bytes": 11106,
14594
+ "bytes": 11054,
14595
14595
  "imports": [
14596
14596
  {
14597
14597
  "path": "react",
@@ -15719,7 +15719,7 @@
15719
15719
  "imports": [],
15720
15720
  "exports": [],
15721
15721
  "inputs": {},
15722
- "bytes": 3655285
15722
+ "bytes": 3656840
15723
15723
  },
15724
15724
  "dist/index.js": {
15725
15725
  "imports": [
@@ -19118,7 +19118,7 @@
19118
19118
  "cssBundle": "dist/index.css",
19119
19119
  "inputs": {
19120
19120
  "<define:process.env>": {
19121
- "bytesInOutput": 18054
19121
+ "bytesInOutput": 18025
19122
19122
  },
19123
19123
  "../../node_modules/lodash/lodash.js": {
19124
19124
  "bytesInOutput": 224303
@@ -19199,7 +19199,7 @@
19199
19199
  "bytesInOutput": 3613
19200
19200
  },
19201
19201
  "src/Theme/ThemeProvider.tsx": {
19202
- "bytesInOutput": 2042
19202
+ "bytesInOutput": 1926
19203
19203
  },
19204
19204
  "src/Theme/useSSR.tsx": {
19205
19205
  "bytesInOutput": 424
@@ -19400,7 +19400,7 @@
19400
19400
  "bytesInOutput": 887
19401
19401
  },
19402
19402
  "src/Prebuilt/App.tsx": {
19403
- "bytesInOutput": 8105
19403
+ "bytesInOutput": 8061
19404
19404
  },
19405
19405
  "src/Prebuilt/components/AppData/AppData.tsx": {
19406
19406
  "bytesInOutput": 6633
@@ -19448,7 +19448,7 @@
19448
19448
  "bytesInOutput": 577
19449
19449
  },
19450
19450
  "src/Prebuilt/AppStateContext.tsx": {
19451
- "bytesInOutput": 2958
19451
+ "bytesInOutput": 3017
19452
19452
  },
19453
19453
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19454
19454
  "bytesInOutput": 4450
@@ -19466,7 +19466,7 @@
19466
19466
  "bytesInOutput": 1028
19467
19467
  },
19468
19468
  "src/Prebuilt/components/ConferenceScreen.tsx": {
19469
- "bytesInOutput": 7400
19469
+ "bytesInOutput": 7439
19470
19470
  },
19471
19471
  "src/Prebuilt/components/Footer/Footer.tsx": {
19472
19472
  "bytesInOutput": 3306
@@ -19610,7 +19610,7 @@
19610
19610
  "bytesInOutput": 7700
19611
19611
  },
19612
19612
  "src/Prebuilt/components/StatsForNerds.jsx": {
19613
- "bytesInOutput": 13967
19613
+ "bytesInOutput": 14466
19614
19614
  },
19615
19615
  "src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
19616
19616
  "bytesInOutput": 5008
@@ -19996,7 +19996,7 @@
19996
19996
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19997
19997
  "bytesInOutput": 2830
19998
19998
  },
19999
- "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css": {
19999
+ "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css": {
20000
20000
  "bytesInOutput": 0
20001
20001
  },
20002
20002
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20105,7 +20105,7 @@
20105
20105
  "bytesInOutput": 10585
20106
20106
  },
20107
20107
  "src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx": {
20108
- "bytesInOutput": 1289
20108
+ "bytesInOutput": 1785
20109
20109
  },
20110
20110
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
20111
20111
  "bytesInOutput": 2928
@@ -20231,7 +20231,7 @@
20231
20231
  "bytesInOutput": 2632
20232
20232
  }
20233
20233
  },
20234
- "bytes": 1448113
20234
+ "bytes": 1449017
20235
20235
  },
20236
20236
  "dist/index.css.map": {
20237
20237
  "imports": [],
@@ -20293,10 +20293,10 @@
20293
20293
  }
20294
20294
  ],
20295
20295
  "inputs": {
20296
- "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb6082/tldraw.css": {
20296
+ "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482d42/tldraw.css": {
20297
20297
  "bytesInOutput": 75223
20298
20298
  },
20299
- "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css": {
20299
+ "../../../../../../../tmp/tmp-2742-hKYrv3hvQoeS/192dc2482be1/index.css": {
20300
20300
  "bytesInOutput": 401
20301
20301
  }
20302
20302
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.24-alpha.2",
13
+ "version": "0.3.24-alpha.4",
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.24-alpha.2",
78
+ "@100mslive/hls-player": "0.3.24-alpha.4",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.24-alpha.2",
81
- "@100mslive/hms-whiteboard": "0.0.14-alpha.2",
82
- "@100mslive/react-icons": "0.10.24-alpha.2",
83
- "@100mslive/react-sdk": "0.10.24-alpha.2",
80
+ "@100mslive/hms-virtual-background": "1.13.24-alpha.4",
81
+ "@100mslive/hms-whiteboard": "0.0.14-alpha.4",
82
+ "@100mslive/react-icons": "0.10.24-alpha.4",
83
+ "@100mslive/react-sdk": "0.10.24-alpha.4",
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": "e4156f3df2ca373cfc388e1dcad98d242b026367"
120
+ "gitHead": "73e8ffadcba71e5b6c48fedf53923518066c4504"
121
121
  }
@@ -221,7 +221,6 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
221
221
  sans: fontFamily,
222
222
  },
223
223
  }}
224
- container={containerSelector}
225
224
  >
226
225
  <PIPProvider>
227
226
  <Init />
@@ -67,6 +67,7 @@ export const useAppStateManager = () => {
67
67
  [HMSRoomState.Disconnected, HMSRoomState.Connected],
68
68
  [HMSRoomState.Disconnected, HMSRoomState.Connecting],
69
69
  [HMSRoomState.Disconnected, HMSRoomState.Reconnecting],
70
+ [HMSRoomState.Disconnected, HMSRoomState.Preview],
70
71
  () => {
71
72
  setActiveState(prevState => {
72
73
  return match({ isLeaveScreenEnabled, isPreviewScreenEnabled, prevState })
@@ -95,6 +95,7 @@ export const ConferenceScreen = () => {
95
95
  userName: userName || uuid(),
96
96
  authToken: authTokenInAppData,
97
97
  initEndpoint: endpoints?.init,
98
+ rememberDeviceSelection: true,
98
99
  settings: {
99
100
  isAudioMuted: !isPreviewScreenEnabled,
100
101
  isVideoMuted: !isPreviewScreenEnabled,
@@ -1,12 +1,18 @@
1
- import React from 'react';
1
+ import React, { useState } from 'react';
2
2
  import { useMedia } from 'react-use';
3
- import { UserMusicIcon } from '@100mslive/react-icons';
3
+ import { CrossIcon, UserMusicIcon } from '@100mslive/react-icons';
4
4
  import { Flex } from '../../../Layout';
5
5
  import { Text } from '../../../Text';
6
6
  import { config as cssConfig } from '../../../Theme';
7
7
 
8
8
  export const ThankyouView = () => {
9
+ const [isVisible, setIsVisible] = useState(true);
9
10
  const isMobile = useMedia(cssConfig.media.md);
11
+
12
+ if (!isVisible) {
13
+ return null;
14
+ }
15
+
10
16
  return (
11
17
  <Flex
12
18
  direction={isMobile ? 'column' : 'row'}
@@ -25,6 +31,20 @@ export const ThankyouView = () => {
25
31
  },
26
32
  }}
27
33
  >
34
+ {isMobile && (
35
+ <CrossIcon
36
+ width="24px"
37
+ height="24px"
38
+ color="white"
39
+ onClick={() => setIsVisible(false)}
40
+ style={{
41
+ position: 'absolute',
42
+ top: '8px',
43
+ right: '16px',
44
+ cursor: 'pointer',
45
+ }}
46
+ />
47
+ )}
28
48
  <UserMusicIcon width="64px" height="64px" />
29
49
  <Flex direction="column" align={isMobile ? 'center' : 'start'}>
30
50
  <Text variant="h5">Thank you for your feedback</Text>
@@ -54,8 +54,8 @@ export const StatsForNerds = ({ open, onOpenChange }) => {
54
54
  <Sheet.Content
55
55
  css={{
56
56
  bg: '$surface_dim',
57
- overflowY: 'auto',
58
57
  px: '$4',
58
+ pb: '$4',
59
59
  }}
60
60
  >
61
61
  <Sheet.Title css={{ py: '$10', px: '$8', alignItems: 'center' }}>
@@ -69,62 +69,76 @@ export const StatsForNerds = ({ open, onOpenChange }) => {
69
69
  </Flex>
70
70
  </Sheet.Title>
71
71
  <HorizontalDivider />
72
- <Flex justify="start" gap={4} css={{ m: '$10 0' }}>
73
- <Switch checked={showStatsOnTiles} onCheckedChange={setShowStatsOnTiles} />
74
- <Text variant="body2" css={{ fontWeight: '$semiBold' }}>
75
- Show Stats on Tiles
76
- </Text>
77
- </Flex>
78
- {/* Select */}
79
72
  <Flex
80
73
  direction="column"
81
74
  css={{
82
- mb: '$12',
83
- position: 'relative',
84
- minWidth: 0,
75
+ mr: '-$2',
76
+ overflowY: 'auto',
77
+ maxHeight: '65vh',
78
+ pr: '$6',
79
+ pl: '$4',
85
80
  }}
86
81
  >
87
- <Label variant="body2" css={{ c: '$on_surface_high' }}>
88
- Stats For
89
- </Label>
90
- <Dropdown.Root data-testid="dialog_select_Stats For" open={openDropdown} onOpenChange={setOpenDropdown}>
91
- <DialogDropdownTrigger
92
- title={selectedStat.label || 'Select Stats'}
93
- css={{ mt: '$4' }}
94
- titleCSS={{ mx: 0 }}
95
- open={openDropdown}
96
- ref={ref}
97
- />
98
- <Dropdown.Portal>
99
- <Dropdown.Content align="start" sideOffset={8} css={{ w: ref.current?.clientWidth, zIndex: 1000 }}>
100
- {statsOptions.map(option => {
101
- const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
102
- return (
103
- <Dropdown.Item
104
- key={`${option.id}-${option.layer || ''}`}
105
- onClick={() => {
106
- setSelectedStat(option);
107
- }}
108
- css={{
109
- px: '$9',
110
- bg: isSelected ? selectionBg : undefined,
111
- c: isSelected ? '$on_primary_high' : '$on_primary_high',
112
- }}
113
- >
114
- {option.label}
115
- </Dropdown.Item>
116
- );
117
- })}
118
- </Dropdown.Content>
119
- </Dropdown.Portal>
120
- </Dropdown.Root>
82
+ <Flex justify="start" gap={4} css={{ m: '$10 0' }}>
83
+ <Switch checked={showStatsOnTiles} onCheckedChange={setShowStatsOnTiles} />
84
+ <Text variant="body2" css={{ fontWeight: '$semiBold' }}>
85
+ Show Stats on Tiles
86
+ </Text>
87
+ </Flex>
88
+ {/* Select */}
89
+ <Flex
90
+ direction="column"
91
+ css={{
92
+ mb: '$12',
93
+ position: 'relative',
94
+ minWidth: 0,
95
+ }}
96
+ >
97
+ <Label variant="body2" css={{ c: '$on_surface_high' }}>
98
+ Stats For
99
+ </Label>
100
+ <Dropdown.Root data-testid="dialog_select_Stats For" open={openDropdown} onOpenChange={setOpenDropdown}>
101
+ <DialogDropdownTrigger
102
+ title={selectedStat.label || 'Select Stats'}
103
+ css={{ mt: '$4' }}
104
+ titleCSS={{ mx: 0 }}
105
+ open={openDropdown}
106
+ ref={ref}
107
+ />
108
+ <Dropdown.Portal>
109
+ <Dropdown.Content align="start" sideOffset={8} css={{ w: ref.current?.clientWidth, zIndex: 1000 }}>
110
+ {statsOptions.map(option => {
111
+ const isSelected = option.id === selectedStat.id && option.layer === selectedStat.layer;
112
+ return (
113
+ <Dropdown.Item
114
+ key={`${option.id}-${option.layer || ''}`}
115
+ onClick={() => {
116
+ setSelectedStat(option);
117
+ }}
118
+ css={{
119
+ px: '$9',
120
+ bg: isSelected ? selectionBg : undefined,
121
+ c: isSelected ? '$on_primary_high' : '$on_primary_high',
122
+ }}
123
+ >
124
+ {option.label}
125
+ </Dropdown.Item>
126
+ );
127
+ })}
128
+ </Dropdown.Content>
129
+ </Dropdown.Portal>
130
+ </Dropdown.Root>
131
+ </Flex>
132
+ {/* Stats */}
133
+ {selectedStat.id === 'local-peer' ? (
134
+ <LocalPeerStats />
135
+ ) : (
136
+ <TrackStats trackID={selectedStat.id} layer={selectedStat.layer} local={selectedStat.local} />
137
+ )}
138
+ <Flex justify="start" gap={4} css={{ m: '$10 0', w: '100%' }}>
139
+ <DebugInfo details={details} />
140
+ </Flex>
121
141
  </Flex>
122
- {/* Stats */}
123
- {selectedStat.id === 'local-peer' ? (
124
- <LocalPeerStats />
125
- ) : (
126
- <TrackStats trackID={selectedStat.id} layer={selectedStat.layer} local={selectedStat.local} />
127
- )}
128
142
  </Sheet.Content>
129
143
  </Sheet.Root>
130
144
  ) : (
@@ -30,7 +30,6 @@ export type ThemeProviderProps = {
30
30
  themeType?: string;
31
31
  theme?: Theme;
32
32
  aspectRatio?: { width: number; height: number };
33
- container?: string;
34
33
  };
35
34
 
36
35
  const defaultContext = {
@@ -54,7 +53,6 @@ export const HMSThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderPro
54
53
  themeType,
55
54
  theme: userTheme,
56
55
  aspectRatio = defaultAspectRatio,
57
- container = '',
58
56
  children,
59
57
  }) => {
60
58
  const systemTheme = ThemeTypes.default;
@@ -66,17 +64,13 @@ export const HMSThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderPro
66
64
  if (!isBrowser) {
67
65
  return updatedTheme;
68
66
  }
69
- let element = document.querySelector(container);
70
- if (!element) {
71
- element = document.documentElement;
72
- }
73
67
  if (previousClassName.current) {
74
- element.classList.remove(previousClassName.current);
68
+ document.documentElement.classList.remove(previousClassName.current);
75
69
  }
76
70
  previousClassName.current = updatedTheme.className;
77
- element.classList.add(updatedTheme);
71
+ document.documentElement.classList.add(updatedTheme);
78
72
  return updatedTheme;
79
- }, [userTheme, container, currentTheme, isBrowser]);
73
+ }, [userTheme, currentTheme, isBrowser]);
80
74
 
81
75
  const toggleTheme = useCallback((themeToUpdateTo?: ThemeTypes) => {
82
76
  if (themeToUpdateTo) {