@100mslive/roomkit-react 0.2.8-alpha.0 → 0.2.8-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-72B32WVR.js";
65
+ } from "./chunk-2Y4FJB25.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -2814,7 +2814,7 @@
2814
2814
  "format": "esm"
2815
2815
  },
2816
2816
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
2817
- "bytes": 9962,
2817
+ "bytes": 9985,
2818
2818
  "imports": [
2819
2819
  {
2820
2820
  "path": "react",
@@ -4636,7 +4636,7 @@
4636
4636
  "format": "cjs"
4637
4637
  },
4638
4638
  "../hms-video-store/dist/index.js": {
4639
- "bytes": 324491,
4639
+ "bytes": 326043,
4640
4640
  "imports": [
4641
4641
  {
4642
4642
  "path": "../../node_modules/reselect/es/index.js",
@@ -5870,7 +5870,7 @@
5870
5870
  "format": "esm"
5871
5871
  },
5872
5872
  "src/Prebuilt/components/Footer/RoleOptions.tsx": {
5873
- "bytes": 6603,
5873
+ "bytes": 6635,
5874
5874
  "imports": [
5875
5875
  {
5876
5876
  "path": "react",
@@ -10001,7 +10001,7 @@
10001
10001
  "format": "esm"
10002
10002
  },
10003
10003
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
10004
- "bytes": 1092,
10004
+ "bytes": 1143,
10005
10005
  "imports": [
10006
10006
  {
10007
10007
  "path": "react",
@@ -10027,7 +10027,7 @@
10027
10027
  "format": "esm"
10028
10028
  },
10029
10029
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
10030
- "bytes": 2562,
10030
+ "bytes": 2591,
10031
10031
  "imports": [
10032
10032
  {
10033
10033
  "path": "react",
@@ -13224,7 +13224,7 @@
13224
13224
  "imports": [],
13225
13225
  "exports": [],
13226
13226
  "inputs": {},
13227
- "bytes": 3203504
13227
+ "bytes": 3206564
13228
13228
  },
13229
13229
  "dist/index.cjs.js": {
13230
13230
  "imports": [
@@ -16028,7 +16028,7 @@
16028
16028
  "entryPoint": "src/index.ts",
16029
16029
  "inputs": {
16030
16030
  "<define:process.env>": {
16031
- "bytesInOutput": 18254
16031
+ "bytesInOutput": 18234
16032
16032
  },
16033
16033
  "src/Theme/base.config.ts": {
16034
16034
  "bytesInOutput": 6104
@@ -16370,7 +16370,7 @@
16370
16370
  "bytesInOutput": 1359
16371
16371
  },
16372
16372
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
16373
- "bytesInOutput": 12588
16373
+ "bytesInOutput": 12611
16374
16374
  },
16375
16375
  "src/Prebuilt/components/Footer/EmojiCard.jsx": {
16376
16376
  "bytesInOutput": 1315
@@ -16478,7 +16478,7 @@
16478
16478
  "bytesInOutput": 1396
16479
16479
  },
16480
16480
  "../../node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js": {
16481
- "bytesInOutput": 22897
16481
+ "bytesInOutput": 22882
16482
16482
  },
16483
16483
  "../../node_modules/webrtc-adapter/src/js/firefox/getusermedia.js": {
16484
16484
  "bytesInOutput": 2280
@@ -16490,13 +16490,13 @@
16490
16490
  "bytesInOutput": 9352
16491
16491
  },
16492
16492
  "../../node_modules/webrtc-adapter/src/js/safari/safari_shim.js": {
16493
- "bytesInOutput": 12026
16493
+ "bytesInOutput": 12019
16494
16494
  },
16495
16495
  "../../node_modules/sdp/sdp.js": {
16496
- "bytesInOutput": 22278
16496
+ "bytesInOutput": 22291
16497
16497
  },
16498
16498
  "../../node_modules/webrtc-adapter/src/js/common_shim.js": {
16499
- "bytesInOutput": 12616
16499
+ "bytesInOutput": 12606
16500
16500
  },
16501
16501
  "../../node_modules/webrtc-adapter/src/js/adapter_factory.js": {
16502
16502
  "bytesInOutput": 4575
@@ -16517,7 +16517,7 @@
16517
16517
  "bytesInOutput": 615
16518
16518
  },
16519
16519
  "../hms-video-store/dist/index.js": {
16520
- "bytesInOutput": 53028
16520
+ "bytesInOutput": 53062
16521
16521
  },
16522
16522
  "src/Prebuilt/components/hooks/usePlaylistMusic.js": {
16523
16523
  "bytesInOutput": 1384
@@ -16601,7 +16601,7 @@
16601
16601
  "bytesInOutput": 1694
16602
16602
  },
16603
16603
  "src/Prebuilt/components/Footer/RoleOptions.tsx": {
16604
- "bytesInOutput": 8344
16604
+ "bytesInOutput": 8376
16605
16605
  },
16606
16606
  "src/Prebuilt/components/Footer/RoleAccordion.tsx": {
16607
16607
  "bytesInOutput": 5338
@@ -16847,10 +16847,10 @@
16847
16847
  "bytesInOutput": 3143
16848
16848
  },
16849
16849
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
16850
- "bytesInOutput": 1302
16850
+ "bytesInOutput": 1387
16851
16851
  },
16852
16852
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
16853
- "bytesInOutput": 2716
16853
+ "bytesInOutput": 2745
16854
16854
  },
16855
16855
  "src/Prebuilt/components/LayoutModeSelector.tsx": {
16856
16856
  "bytesInOutput": 3951
@@ -17015,7 +17015,7 @@
17015
17015
  "bytesInOutput": 2245
17016
17016
  },
17017
17017
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
17018
- "bytesInOutput": 8883
17018
+ "bytesInOutput": 8880
17019
17019
  },
17020
17020
  "src/Prebuilt/components/Notifications/index.tsx": {
17021
17021
  "bytesInOutput": 173
@@ -17063,7 +17063,7 @@
17063
17063
  "bytesInOutput": 2980
17064
17064
  }
17065
17065
  },
17066
- "bytes": 1512065
17066
+ "bytes": 1512226
17067
17067
  }
17068
17068
  }
17069
17069
  }
@@ -2814,7 +2814,7 @@
2814
2814
  "format": "esm"
2815
2815
  },
2816
2816
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
2817
- "bytes": 9962,
2817
+ "bytes": 9985,
2818
2818
  "imports": [
2819
2819
  {
2820
2820
  "path": "react",
@@ -4636,7 +4636,7 @@
4636
4636
  "format": "cjs"
4637
4637
  },
4638
4638
  "../hms-video-store/dist/index.js": {
4639
- "bytes": 324491,
4639
+ "bytes": 326043,
4640
4640
  "imports": [
4641
4641
  {
4642
4642
  "path": "../../node_modules/reselect/es/index.js",
@@ -5870,7 +5870,7 @@
5870
5870
  "format": "esm"
5871
5871
  },
5872
5872
  "src/Prebuilt/components/Footer/RoleOptions.tsx": {
5873
- "bytes": 6603,
5873
+ "bytes": 6635,
5874
5874
  "imports": [
5875
5875
  {
5876
5876
  "path": "react",
@@ -10001,7 +10001,7 @@
10001
10001
  "format": "esm"
10002
10002
  },
10003
10003
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
10004
- "bytes": 1092,
10004
+ "bytes": 1143,
10005
10005
  "imports": [
10006
10006
  {
10007
10007
  "path": "react",
@@ -10027,7 +10027,7 @@
10027
10027
  "format": "esm"
10028
10028
  },
10029
10029
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
10030
- "bytes": 2562,
10030
+ "bytes": 2591,
10031
10031
  "imports": [
10032
10032
  {
10033
10033
  "path": "react",
@@ -13229,7 +13229,7 @@
13229
13229
  "dist/index.js": {
13230
13230
  "imports": [
13231
13231
  {
13232
- "path": "dist/chunk-72B32WVR.js",
13232
+ "path": "dist/chunk-2Y4FJB25.js",
13233
13233
  "kind": "import-statement"
13234
13234
  }
13235
13235
  ],
@@ -13302,16 +13302,16 @@
13302
13302
  "inputs": {},
13303
13303
  "bytes": 1822
13304
13304
  },
13305
- "dist/HLSView-37B2YVTC.js.map": {
13305
+ "dist/HLSView-CEPQ23TO.js.map": {
13306
13306
  "imports": [],
13307
13307
  "exports": [],
13308
13308
  "inputs": {},
13309
13309
  "bytes": 58854
13310
13310
  },
13311
- "dist/HLSView-37B2YVTC.js": {
13311
+ "dist/HLSView-CEPQ23TO.js": {
13312
13312
  "imports": [
13313
13313
  {
13314
- "path": "dist/chunk-72B32WVR.js",
13314
+ "path": "dist/chunk-2Y4FJB25.js",
13315
13315
  "kind": "import-statement"
13316
13316
  },
13317
13317
  {
@@ -13475,13 +13475,13 @@
13475
13475
  },
13476
13476
  "bytes": 36972
13477
13477
  },
13478
- "dist/chunk-72B32WVR.js.map": {
13478
+ "dist/chunk-2Y4FJB25.js.map": {
13479
13479
  "imports": [],
13480
13480
  "exports": [],
13481
13481
  "inputs": {},
13482
- "bytes": 3140675
13482
+ "bytes": 3143729
13483
13483
  },
13484
- "dist/chunk-72B32WVR.js": {
13484
+ "dist/chunk-2Y4FJB25.js": {
13485
13485
  "imports": [
13486
13486
  {
13487
13487
  "path": "react",
@@ -15794,7 +15794,7 @@
15794
15794
  "external": true
15795
15795
  },
15796
15796
  {
15797
- "path": "dist/HLSView-37B2YVTC.js",
15797
+ "path": "dist/HLSView-CEPQ23TO.js",
15798
15798
  "kind": "dynamic-import"
15799
15799
  },
15800
15800
  {
@@ -16251,7 +16251,7 @@
16251
16251
  ],
16252
16252
  "inputs": {
16253
16253
  "<define:process.env>": {
16254
- "bytesInOutput": 18254
16254
+ "bytesInOutput": 18234
16255
16255
  },
16256
16256
  "../../node_modules/lodash/lodash.js": {
16257
16257
  "bytesInOutput": 224269
@@ -16263,7 +16263,7 @@
16263
16263
  "bytesInOutput": 26591
16264
16264
  },
16265
16265
  "../../node_modules/sdp/sdp.js": {
16266
- "bytesInOutput": 22275
16266
+ "bytesInOutput": 22288
16267
16267
  },
16268
16268
  "../../node_modules/sdp-transform/lib/grammar.js": {
16269
16269
  "bytesInOutput": 16120
@@ -16557,7 +16557,7 @@
16557
16557
  "bytesInOutput": 3350
16558
16558
  },
16559
16559
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
16560
- "bytesInOutput": 10265
16560
+ "bytesInOutput": 10284
16561
16561
  },
16562
16562
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx": {
16563
16563
  "bytesInOutput": 3065
@@ -16689,7 +16689,7 @@
16689
16689
  "bytesInOutput": 10019
16690
16690
  },
16691
16691
  "../hms-video-store/dist/index.js": {
16692
- "bytesInOutput": 48465
16692
+ "bytesInOutput": 48495
16693
16693
  },
16694
16694
  "../../node_modules/reselect/es/index.js": {
16695
16695
  "bytesInOutput": 2539
@@ -16704,7 +16704,7 @@
16704
16704
  "bytesInOutput": 6305
16705
16705
  },
16706
16706
  "../../node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js": {
16707
- "bytesInOutput": 22693
16707
+ "bytesInOutput": 22678
16708
16708
  },
16709
16709
  "../../node_modules/webrtc-adapter/src/js/chrome/getusermedia.js": {
16710
16710
  "bytesInOutput": 6078
@@ -16722,10 +16722,10 @@
16722
16722
  "bytesInOutput": 842
16723
16723
  },
16724
16724
  "../../node_modules/webrtc-adapter/src/js/safari/safari_shim.js": {
16725
- "bytesInOutput": 11875
16725
+ "bytesInOutput": 11868
16726
16726
  },
16727
16727
  "../../node_modules/webrtc-adapter/src/js/common_shim.js": {
16728
- "bytesInOutput": 12456
16728
+ "bytesInOutput": 12446
16729
16729
  },
16730
16730
  "src/Prebuilt/components/Header/AdditionalRoomState.jsx": {
16731
16731
  "bytesInOutput": 6823
@@ -16806,7 +16806,7 @@
16806
16806
  "bytesInOutput": 4229
16807
16807
  },
16808
16808
  "src/Prebuilt/components/Footer/RoleOptions.tsx": {
16809
- "bytesInOutput": 7153
16809
+ "bytesInOutput": 7185
16810
16810
  },
16811
16811
  "src/Prebuilt/components/Footer/PollsToggle.tsx": {
16812
16812
  "bytesInOutput": 1073
@@ -17043,7 +17043,7 @@
17043
17043
  "bytesInOutput": 3838
17044
17044
  },
17045
17045
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
17046
- "bytesInOutput": 2154
17046
+ "bytesInOutput": 2183
17047
17047
  },
17048
17048
  "src/Prebuilt/components/SecondaryTiles.tsx": {
17049
17049
  "bytesInOutput": 2494
@@ -17052,7 +17052,7 @@
17052
17052
  "bytesInOutput": 2301
17053
17053
  },
17054
17054
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
17055
- "bytesInOutput": 961
17055
+ "bytesInOutput": 1046
17056
17056
  },
17057
17057
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17058
17058
  "bytesInOutput": 2664
@@ -17127,7 +17127,7 @@
17127
17127
  "bytesInOutput": 27
17128
17128
  },
17129
17129
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
17130
- "bytesInOutput": 7968
17130
+ "bytesInOutput": 7965
17131
17131
  },
17132
17132
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
17133
17133
  "bytesInOutput": 1053
@@ -17205,7 +17205,7 @@
17205
17205
  "bytesInOutput": 651
17206
17206
  }
17207
17207
  },
17208
- "bytes": 1284998
17208
+ "bytes": 1285151
17209
17209
  }
17210
17210
  }
17211
17211
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.8-alpha.0",
13
+ "version": "0.2.8-alpha.2",
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.2.8-alpha.0",
85
+ "@100mslive/hls-player": "0.2.8-alpha.2",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.12.8-alpha.0",
88
- "@100mslive/react-icons": "0.9.8-alpha.0",
89
- "@100mslive/react-sdk": "0.9.8-alpha.0",
87
+ "@100mslive/hms-virtual-background": "1.12.8-alpha.2",
88
+ "@100mslive/react-icons": "0.9.8-alpha.2",
89
+ "@100mslive/react-sdk": "0.9.8-alpha.2",
90
90
  "@100mslive/types-prebuilt": "0.12.7",
91
91
  "@emoji-mart/data": "^1.0.6",
92
92
  "@emoji-mart/react": "^1.0.1",
@@ -121,5 +121,5 @@
121
121
  "uuid": "^8.3.2",
122
122
  "worker-timers": "^7.0.40"
123
123
  },
124
- "gitHead": "9eade912c3121837ed2b09ef0047bfbdb6f7cdf2"
124
+ "gitHead": "ae7569036b49c02d22414e5de343119c48b4aa91"
125
125
  }
@@ -57,11 +57,12 @@ export const Options = ({
57
57
  <Dropdown.Item
58
58
  key={option.label}
59
59
  css={{
60
- backgroundColor: selectedDeviceId === option.deviceId ? '$surface_bright' : '$surface_dim',
60
+ backgroundColor: '$surface_dim',
61
61
  p: '$4 $8',
62
62
  h: '$15',
63
63
  fontSize: '$xs',
64
64
  justifyContent: 'space-between',
65
+ color: selectedDeviceId === option.deviceId ? '$primary_bright' : '',
65
66
  }}
66
67
  onClick={() => {
67
68
  onClick(option.deviceId);
@@ -63,7 +63,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
63
63
  <Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('audio', false)}>
64
64
  <MicOffIcon />
65
65
  <Text variant="sm" css={optionTextCSS}>
66
- Mute Audio
66
+ Mute Audio for All
67
67
  </Text>
68
68
  </Dropdown.Item>
69
69
  ) : null}
@@ -72,7 +72,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
72
72
  <Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('audio', true)}>
73
73
  <MicOnIcon />
74
74
  <Text variant="sm" css={optionTextCSS}>
75
- Unmute Audio
75
+ Unmute Audio for All
76
76
  </Text>
77
77
  </Dropdown.Item>
78
78
  ) : null}
@@ -85,7 +85,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
85
85
  <Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('video', false)}>
86
86
  <VideoOffIcon />
87
87
  <Text variant="sm" css={optionTextCSS}>
88
- Mute Video
88
+ Mute Video for All
89
89
  </Text>
90
90
  </Dropdown.Item>
91
91
  ) : null}
@@ -94,7 +94,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
94
94
  <Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('video', true)}>
95
95
  <VideoOnIcon />
96
96
  <Text variant="sm" css={optionTextCSS}>
97
- Unmute Video
97
+ Unmute Video for All
98
98
  </Text>
99
99
  </Dropdown.Item>
100
100
  ) : null}
@@ -67,7 +67,7 @@ export function RoleProminence({
67
67
  edgeToEdge={edgeToEdge}
68
68
  hasSidebar={layoutMode === LayoutMode.SIDEBAR}
69
69
  />
70
- {isInsetEnabled && localPeer && !prominentPeers.includes(localPeer) && <InsetTile />}
70
+ {isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && <InsetTile />}
71
71
  </ProminenceLayout.Root>
72
72
  );
73
73
  }
@@ -17,7 +17,7 @@ export const useRoleProminencePeers = (prominentRoles: string[], peers: HMSPeer[
17
17
  }
18
18
  return acc;
19
19
  }
20
- if (peer.isLocal && isInsetEnabled) {
20
+ if (peer.isLocal && isInsetEnabled && !prominentRoles?.includes(peer.roleName || '')) {
21
21
  return acc;
22
22
  }
23
23
  if (prominentRoles?.includes(peer.roleName || '')) {
@@ -25,6 +25,7 @@ export const useRoleProminencePeers = (prominentRoles: string[], peers: HMSPeer[
25
25
  } else {
26
26
  acc[1].push(peer);
27
27
  }
28
+
28
29
  return acc;
29
30
  },
30
31
  [[], []],