@100mslive/roomkit-react 0.2.4-alpha.0 → 0.2.4-alpha.1

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-OGCNZHHH.js";
65
+ } from "./chunk-FSSFZGW6.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -5619,7 +5619,7 @@
5619
5619
  "format": "esm"
5620
5620
  },
5621
5621
  "src/Prebuilt/components/Connection/connectionQualityUtils.js": {
5622
- "bytes": 1222,
5622
+ "bytes": 1146,
5623
5623
  "imports": [
5624
5624
  {
5625
5625
  "path": "<define:process.env>",
@@ -5630,7 +5630,7 @@
5630
5630
  "format": "esm"
5631
5631
  },
5632
5632
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
5633
- "bytes": 3584,
5633
+ "bytes": 3582,
5634
5634
  "imports": [
5635
5635
  {
5636
5636
  "path": "react",
@@ -9623,7 +9623,7 @@
9623
9623
  "format": "esm"
9624
9624
  },
9625
9625
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
9626
- "bytes": 2457,
9626
+ "bytes": 2449,
9627
9627
  "imports": [
9628
9628
  {
9629
9629
  "path": "react",
@@ -9669,7 +9669,7 @@
9669
9669
  "format": "esm"
9670
9670
  },
9671
9671
  "src/Prebuilt/components/SecondaryTiles.tsx": {
9672
- "bytes": 2609,
9672
+ "bytes": 2773,
9673
9673
  "imports": [
9674
9674
  {
9675
9675
  "path": "react",
@@ -12770,7 +12770,7 @@
12770
12770
  "imports": [],
12771
12771
  "exports": [],
12772
12772
  "inputs": {},
12773
- "bytes": 3164317
12773
+ "bytes": 3164450
12774
12774
  },
12775
12775
  "dist/index.cjs.js": {
12776
12776
  "imports": [
@@ -15474,7 +15474,7 @@
15474
15474
  "entryPoint": "src/index.ts",
15475
15475
  "inputs": {
15476
15476
  "<define:process.env>": {
15477
- "bytesInOutput": 18111
15477
+ "bytesInOutput": 18113
15478
15478
  },
15479
15479
  "src/Theme/base.config.ts": {
15480
15480
  "bytesInOutput": 6104
@@ -16029,10 +16029,10 @@
16029
16029
  "bytesInOutput": 1939
16030
16030
  },
16031
16031
  "src/Prebuilt/components/Connection/connectionQualityUtils.js": {
16032
- "bytesInOutput": 1059
16032
+ "bytesInOutput": 974
16033
16033
  },
16034
16034
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
16035
- "bytesInOutput": 4492
16035
+ "bytesInOutput": 4490
16036
16036
  },
16037
16037
  "src/Prebuilt/components/RemoveParticipant.tsx": {
16038
16038
  "bytesInOutput": 1694
@@ -16269,10 +16269,10 @@
16269
16269
  "bytesInOutput": 2453
16270
16270
  },
16271
16271
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
16272
- "bytesInOutput": 2961
16272
+ "bytesInOutput": 2953
16273
16273
  },
16274
16274
  "src/Prebuilt/components/SecondaryTiles.tsx": {
16275
- "bytesInOutput": 2991
16275
+ "bytesInOutput": 3143
16276
16276
  },
16277
16277
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
16278
16278
  "bytesInOutput": 1302
@@ -16482,7 +16482,7 @@
16482
16482
  "bytesInOutput": 2980
16483
16483
  }
16484
16484
  },
16485
- "bytes": 1486444
16485
+ "bytes": 1486503
16486
16486
  }
16487
16487
  }
16488
16488
  }
@@ -5619,7 +5619,7 @@
5619
5619
  "format": "esm"
5620
5620
  },
5621
5621
  "src/Prebuilt/components/Connection/connectionQualityUtils.js": {
5622
- "bytes": 1222,
5622
+ "bytes": 1146,
5623
5623
  "imports": [
5624
5624
  {
5625
5625
  "path": "<define:process.env>",
@@ -5630,7 +5630,7 @@
5630
5630
  "format": "esm"
5631
5631
  },
5632
5632
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
5633
- "bytes": 3584,
5633
+ "bytes": 3582,
5634
5634
  "imports": [
5635
5635
  {
5636
5636
  "path": "react",
@@ -9623,7 +9623,7 @@
9623
9623
  "format": "esm"
9624
9624
  },
9625
9625
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
9626
- "bytes": 2457,
9626
+ "bytes": 2449,
9627
9627
  "imports": [
9628
9628
  {
9629
9629
  "path": "react",
@@ -9669,7 +9669,7 @@
9669
9669
  "format": "esm"
9670
9670
  },
9671
9671
  "src/Prebuilt/components/SecondaryTiles.tsx": {
9672
- "bytes": 2609,
9672
+ "bytes": 2773,
9673
9673
  "imports": [
9674
9674
  {
9675
9675
  "path": "react",
@@ -12775,7 +12775,7 @@
12775
12775
  "dist/index.js": {
12776
12776
  "imports": [
12777
12777
  {
12778
- "path": "dist/chunk-OGCNZHHH.js",
12778
+ "path": "dist/chunk-FSSFZGW6.js",
12779
12779
  "kind": "import-statement"
12780
12780
  }
12781
12781
  ],
@@ -12848,16 +12848,16 @@
12848
12848
  "inputs": {},
12849
12849
  "bytes": 1822
12850
12850
  },
12851
- "dist/HLSView-5I6UAYPZ.js.map": {
12851
+ "dist/HLSView-SPGUNWZM.js.map": {
12852
12852
  "imports": [],
12853
12853
  "exports": [],
12854
12854
  "inputs": {},
12855
12855
  "bytes": 58854
12856
12856
  },
12857
- "dist/HLSView-5I6UAYPZ.js": {
12857
+ "dist/HLSView-SPGUNWZM.js": {
12858
12858
  "imports": [
12859
12859
  {
12860
- "path": "dist/chunk-OGCNZHHH.js",
12860
+ "path": "dist/chunk-FSSFZGW6.js",
12861
12861
  "kind": "import-statement"
12862
12862
  },
12863
12863
  {
@@ -13021,13 +13021,13 @@
13021
13021
  },
13022
13022
  "bytes": 36972
13023
13023
  },
13024
- "dist/chunk-OGCNZHHH.js.map": {
13024
+ "dist/chunk-FSSFZGW6.js.map": {
13025
13025
  "imports": [],
13026
13026
  "exports": [],
13027
13027
  "inputs": {},
13028
- "bytes": 3101121
13028
+ "bytes": 3101252
13029
13029
  },
13030
- "dist/chunk-OGCNZHHH.js": {
13030
+ "dist/chunk-FSSFZGW6.js": {
13031
13031
  "imports": [
13032
13032
  {
13033
13033
  "path": "react",
@@ -15275,7 +15275,7 @@
15275
15275
  "external": true
15276
15276
  },
15277
15277
  {
15278
- "path": "dist/HLSView-5I6UAYPZ.js",
15278
+ "path": "dist/HLSView-SPGUNWZM.js",
15279
15279
  "kind": "dynamic-import"
15280
15280
  },
15281
15281
  {
@@ -15697,7 +15697,7 @@
15697
15697
  ],
15698
15698
  "inputs": {
15699
15699
  "<define:process.env>": {
15700
- "bytesInOutput": 18111
15700
+ "bytesInOutput": 18113
15701
15701
  },
15702
15702
  "../../node_modules/lodash/lodash.js": {
15703
15703
  "bytesInOutput": 224267
@@ -16231,10 +16231,10 @@
16231
16231
  "bytesInOutput": 11538
16232
16232
  },
16233
16233
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
16234
- "bytesInOutput": 3751
16234
+ "bytesInOutput": 3749
16235
16235
  },
16236
16236
  "src/Prebuilt/components/Connection/connectionQualityUtils.js": {
16237
- "bytesInOutput": 777
16237
+ "bytesInOutput": 700
16238
16238
  },
16239
16239
  "src/Prebuilt/components/RemoveParticipant.tsx": {
16240
16240
  "bytesInOutput": 1290
@@ -16474,10 +16474,10 @@
16474
16474
  "bytesInOutput": 1972
16475
16475
  },
16476
16476
  "src/Prebuilt/components/SecondaryTiles.tsx": {
16477
- "bytesInOutput": 2366
16477
+ "bytesInOutput": 2494
16478
16478
  },
16479
16479
  "src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx": {
16480
- "bytesInOutput": 2288
16480
+ "bytesInOutput": 2280
16481
16481
  },
16482
16482
  "src/Prebuilt/components/hooks/useRoleProminencePeers.tsx": {
16483
16483
  "bytesInOutput": 961
@@ -16624,7 +16624,7 @@
16624
16624
  "bytesInOutput": 651
16625
16625
  }
16626
16626
  },
16627
- "bytes": 1264716
16627
+ "bytes": 1264759
16628
16628
  }
16629
16629
  }
16630
16630
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.4-alpha.0",
13
+ "version": "0.2.4-alpha.1",
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.0",
86
- "@100mslive/hms-virtual-background": "1.12.4-alpha.0",
87
- "@100mslive/react-icons": "0.9.4-alpha.0",
88
- "@100mslive/react-sdk": "0.9.4-alpha.0",
85
+ "@100mslive/hls-player": "0.2.4-alpha.1",
86
+ "@100mslive/hms-virtual-background": "1.12.4-alpha.1",
87
+ "@100mslive/react-icons": "0.9.4-alpha.1",
88
+ "@100mslive/react-sdk": "0.9.4-alpha.1",
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": "fd3b1d5dbaa21c6789e6a8ce192a20f6ae416ee5"
123
+ "gitHead": "ae40b4fdc16f86138cb26086f63e4555cc439bba"
124
124
  }
@@ -33,7 +33,7 @@ export const ConnectionIndicator = ({
33
33
  }) => {
34
34
  const downlinkQuality = useHMSStore(selectConnectionQualityByPeerID(peerId))?.downlinkQuality;
35
35
  const { theme } = useTheme();
36
- const defaultColor = theme.colors.surface_brighter;
36
+ const defaultColor = theme.colors.on_surface_low;
37
37
  if (downlinkQuality === -1 || downlinkQuality === undefined) {
38
38
  return null;
39
39
  }
@@ -30,10 +30,8 @@ export const getColor = (position, connectionScore, defaultColor, theme) => {
30
30
  }
31
31
  if (connectionScore >= 4) {
32
32
  return theme.colors.alert_success;
33
- } else if (connectionScore >= 3) {
34
- return theme.colors.alert_warning;
35
33
  } else if (connectionScore >= 1) {
36
- return theme.colors.alert_default;
34
+ return theme.colors.alert_warning;
37
35
  }
38
36
  return defaultColor;
39
37
  };
@@ -21,12 +21,18 @@ export const SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, ha
21
21
  peers:
22
22
  spotlightPeerId || pinnedPeer
23
23
  ? [...peers].sort((p1, p2) => {
24
- const peerIdList = [activeScreensharePeerId, pinnedPeer, spotlightPeerId];
24
+ if (activeScreensharePeerId === p1.id) {
25
+ return -1;
26
+ }
27
+ if (activeScreensharePeerId === p2.id) {
28
+ return 1;
29
+ }
30
+ const peerIdList = [pinnedPeer, spotlightPeerId];
25
31
  // put active screenshare peer, pinned peer, spotlight peer at first
26
- if (peerIdList.includes(p1)) {
32
+ if (peerIdList.includes(p1.id)) {
27
33
  return -1;
28
34
  }
29
- if (peerIdList.includes(p2)) {
35
+ if (peerIdList.includes(p2.id)) {
30
36
  return 1;
31
37
  }
32
38
  return 0;
@@ -68,7 +68,7 @@ const SecondarySection = ({
68
68
  rootCSS={{
69
69
  padding: 0,
70
70
  maxWidth: 240,
71
- maxHeight: '100%',
71
+ h: '100%',
72
72
  aspectRatio: 16 / 9,
73
73
  '@md': { aspectRatio: 1 },
74
74
  }}