@100mslive/roomkit-react 0.3.5-alpha.0 → 0.3.5-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-7O27GQEH.js";
65
+ } from "./chunk-MXPCXPZQ.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -4696,7 +4696,7 @@
4696
4696
  "format": "cjs"
4697
4697
  },
4698
4698
  "../hms-video-store/dist/index.js": {
4699
- "bytes": 329600,
4699
+ "bytes": 329654,
4700
4700
  "imports": [
4701
4701
  {
4702
4702
  "path": "../../node_modules/reselect/es/index.js",
@@ -5873,7 +5873,7 @@
5873
5873
  "format": "esm"
5874
5874
  },
5875
5875
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
5876
- "bytes": 3582,
5876
+ "bytes": 3707,
5877
5877
  "imports": [
5878
5878
  {
5879
5879
  "path": "react",
@@ -6164,7 +6164,7 @@
6164
6164
  "format": "esm"
6165
6165
  },
6166
6166
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
6167
- "bytes": 12936,
6167
+ "bytes": 12898,
6168
6168
  "imports": [
6169
6169
  {
6170
6170
  "path": "react",
@@ -8059,7 +8059,7 @@
8059
8059
  "format": "esm"
8060
8060
  },
8061
8061
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
8062
- "bytes": 6998,
8062
+ "bytes": 7068,
8063
8063
  "imports": [
8064
8064
  {
8065
8065
  "path": "react",
@@ -13785,7 +13785,7 @@
13785
13785
  "imports": [],
13786
13786
  "exports": [],
13787
13787
  "inputs": {},
13788
- "bytes": 3299608
13788
+ "bytes": 3299924
13789
13789
  },
13790
13790
  "dist/index.cjs.js": {
13791
13791
  "imports": [
@@ -16739,7 +16739,7 @@
16739
16739
  "entryPoint": "src/index.ts",
16740
16740
  "inputs": {
16741
16741
  "<define:process.env>": {
16742
- "bytesInOutput": 18225
16742
+ "bytesInOutput": 18248
16743
16743
  },
16744
16744
  "src/Theme/base.config.ts": {
16745
16745
  "bytesInOutput": 6104
@@ -17306,7 +17306,7 @@
17306
17306
  "bytesInOutput": 974
17307
17307
  },
17308
17308
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
17309
- "bytesInOutput": 4490
17309
+ "bytesInOutput": 4653
17310
17310
  },
17311
17311
  "src/Prebuilt/components/RemoveParticipant.tsx": {
17312
17312
  "bytesInOutput": 1694
@@ -17324,7 +17324,7 @@
17324
17324
  "bytesInOutput": 2181
17325
17325
  },
17326
17326
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
17327
- "bytesInOutput": 14946
17327
+ "bytesInOutput": 14891
17328
17328
  },
17329
17329
  "src/Prebuilt/components/Footer/PollsToggle.tsx": {
17330
17330
  "bytesInOutput": 1521
@@ -17447,7 +17447,7 @@
17447
17447
  "bytesInOutput": 17543
17448
17448
  },
17449
17449
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
17450
- "bytesInOutput": 8560
17450
+ "bytesInOutput": 8614
17451
17451
  },
17452
17452
  "src/Prebuilt/components/Chat/ChatSelectorContainer.tsx": {
17453
17453
  "bytesInOutput": 6701
@@ -17792,7 +17792,7 @@
17792
17792
  "bytesInOutput": 2980
17793
17793
  }
17794
17794
  },
17795
- "bytes": 1570953
17795
+ "bytes": 1571138
17796
17796
  }
17797
17797
  }
17798
17798
  }
@@ -4696,7 +4696,7 @@
4696
4696
  "format": "cjs"
4697
4697
  },
4698
4698
  "../hms-video-store/dist/index.js": {
4699
- "bytes": 329600,
4699
+ "bytes": 329654,
4700
4700
  "imports": [
4701
4701
  {
4702
4702
  "path": "../../node_modules/reselect/es/index.js",
@@ -5873,7 +5873,7 @@
5873
5873
  "format": "esm"
5874
5874
  },
5875
5875
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
5876
- "bytes": 3582,
5876
+ "bytes": 3707,
5877
5877
  "imports": [
5878
5878
  {
5879
5879
  "path": "react",
@@ -6164,7 +6164,7 @@
6164
6164
  "format": "esm"
6165
6165
  },
6166
6166
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
6167
- "bytes": 12936,
6167
+ "bytes": 12898,
6168
6168
  "imports": [
6169
6169
  {
6170
6170
  "path": "react",
@@ -8059,7 +8059,7 @@
8059
8059
  "format": "esm"
8060
8060
  },
8061
8061
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
8062
- "bytes": 6998,
8062
+ "bytes": 7068,
8063
8063
  "imports": [
8064
8064
  {
8065
8065
  "path": "react",
@@ -13790,7 +13790,7 @@
13790
13790
  "dist/index.js": {
13791
13791
  "imports": [
13792
13792
  {
13793
- "path": "dist/chunk-7O27GQEH.js",
13793
+ "path": "dist/chunk-MXPCXPZQ.js",
13794
13794
  "kind": "import-statement"
13795
13795
  }
13796
13796
  ],
@@ -13863,16 +13863,16 @@
13863
13863
  "inputs": {},
13864
13864
  "bytes": 1822
13865
13865
  },
13866
- "dist/HLSView-GF23J3TJ.js.map": {
13866
+ "dist/HLSView-YAR57OPP.js.map": {
13867
13867
  "imports": [],
13868
13868
  "exports": [],
13869
13869
  "inputs": {},
13870
13870
  "bytes": 99469
13871
13871
  },
13872
- "dist/HLSView-GF23J3TJ.js": {
13872
+ "dist/HLSView-YAR57OPP.js": {
13873
13873
  "imports": [
13874
13874
  {
13875
- "path": "dist/chunk-7O27GQEH.js",
13875
+ "path": "dist/chunk-MXPCXPZQ.js",
13876
13876
  "kind": "import-statement"
13877
13877
  },
13878
13878
  {
@@ -14108,13 +14108,13 @@
14108
14108
  },
14109
14109
  "bytes": 61339
14110
14110
  },
14111
- "dist/chunk-7O27GQEH.js.map": {
14111
+ "dist/chunk-MXPCXPZQ.js.map": {
14112
14112
  "imports": [],
14113
14113
  "exports": [],
14114
14114
  "inputs": {},
14115
- "bytes": 3195440
14115
+ "bytes": 3195905
14116
14116
  },
14117
- "dist/chunk-7O27GQEH.js": {
14117
+ "dist/chunk-MXPCXPZQ.js": {
14118
14118
  "imports": [
14119
14119
  {
14120
14120
  "path": "react",
@@ -16507,7 +16507,7 @@
16507
16507
  "external": true
16508
16508
  },
16509
16509
  {
16510
- "path": "dist/HLSView-GF23J3TJ.js",
16510
+ "path": "dist/HLSView-YAR57OPP.js",
16511
16511
  "kind": "dynamic-import"
16512
16512
  },
16513
16513
  {
@@ -16988,7 +16988,7 @@
16988
16988
  ],
16989
16989
  "inputs": {
16990
16990
  "<define:process.env>": {
16991
- "bytesInOutput": 18225
16991
+ "bytesInOutput": 18248
16992
16992
  },
16993
16993
  "../../node_modules/lodash/lodash.js": {
16994
16994
  "bytesInOutput": 224300
@@ -17528,10 +17528,10 @@
17528
17528
  "bytesInOutput": 1445
17529
17529
  },
17530
17530
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
17531
- "bytesInOutput": 12180
17531
+ "bytesInOutput": 12161
17532
17532
  },
17533
17533
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
17534
- "bytesInOutput": 3749
17534
+ "bytesInOutput": 3876
17535
17535
  },
17536
17536
  "src/Prebuilt/components/Connection/connectionQualityUtils.js": {
17537
17537
  "bytesInOutput": 700
@@ -17690,7 +17690,7 @@
17690
17690
  "bytesInOutput": 5318
17691
17691
  },
17692
17692
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
17693
- "bytesInOutput": 6999
17693
+ "bytesInOutput": 7066
17694
17694
  },
17695
17695
  "src/Prebuilt/components/AppData/useChatState.js": {
17696
17696
  "bytesInOutput": 666
@@ -17720,7 +17720,7 @@
17720
17720
  "bytesInOutput": 6608
17721
17721
  },
17722
17722
  "src/Prebuilt/components/Connection/TileConnection.tsx": {
17723
- "bytesInOutput": 2380
17723
+ "bytesInOutput": 2404
17724
17724
  },
17725
17725
  "src/Prebuilt/components/TileMenu/TileMenu.tsx": {
17726
17726
  "bytesInOutput": 4507
@@ -17948,7 +17948,7 @@
17948
17948
  "bytesInOutput": 651
17949
17949
  }
17950
17950
  },
17951
- "bytes": 1309155
17951
+ "bytes": 1309377
17952
17952
  }
17953
17953
  }
17954
17954
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.5-alpha.0",
13
+ "version": "0.3.5-alpha.1",
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.0",
85
+ "@100mslive/hls-player": "0.3.5-alpha.1",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.1",
87
- "@100mslive/hms-virtual-background": "1.13.5-alpha.0",
88
- "@100mslive/react-icons": "0.10.5-alpha.0",
89
- "@100mslive/react-sdk": "0.10.5-alpha.0",
87
+ "@100mslive/hms-virtual-background": "1.13.5-alpha.1",
88
+ "@100mslive/react-icons": "0.10.5-alpha.1",
89
+ "@100mslive/react-sdk": "0.10.5-alpha.1",
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": "ff505981427628881b2c9c601640319966773bd2"
125
+ "gitHead": "cbc32d4a832f2752887e91de078493454a49d69f"
126
126
  }
@@ -2,6 +2,7 @@ import React, { useMemo, useState } from 'react';
2
2
  import { useMedia } from 'react-use';
3
3
  import {
4
4
  HMSPeer,
5
+ HMSPeerType,
5
6
  selectMessagesUnreadCountByPeerID,
6
7
  selectMessagesUnreadCountByRole,
7
8
  selectRemotePeers,
@@ -158,7 +159,9 @@ const VirtualizedSelectItemList = ({
158
159
  () =>
159
160
  peers.filter(
160
161
  // search should be empty or search phrase should be included in name
161
- peer => !searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase()),
162
+ peer =>
163
+ (!searchValue || peer.name.toLowerCase().includes(searchValue.toLowerCase())) &&
164
+ peer.type !== HMSPeerType.SIP,
162
165
  ),
163
166
  [peers, searchValue],
164
167
  );
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { selectConnectionQualityByPeerID, useHMSStore } from '@100mslive/react-sdk';
2
+ import { HMSPeerType, selectConnectionQualityByPeerID, selectPeerTypeByID, useHMSStore } from '@100mslive/react-sdk';
3
3
  import { PoorConnectivityIcon } from '@100mslive/react-icons';
4
4
  import { styled, Tooltip, useTheme } from '../../..';
5
5
  // @ts-ignore
@@ -32,9 +32,10 @@ export const ConnectionIndicator = ({
32
32
  hideBg?: boolean;
33
33
  }) => {
34
34
  const downlinkQuality = useHMSStore(selectConnectionQualityByPeerID(peerId))?.downlinkQuality;
35
+ const peerType = useHMSStore(selectPeerTypeByID(peerId));
35
36
  const { theme } = useTheme();
36
37
  const defaultColor = theme.colors.on_surface_low;
37
- if (downlinkQuality === -1 || downlinkQuality === undefined) {
38
+ if (downlinkQuality === -1 || downlinkQuality === undefined || peerType === HMSPeerType.SIP) {
38
39
  return null;
39
40
  }
40
41
  if (downlinkQuality === 0) {
@@ -295,7 +295,7 @@ const ParticipantActions = React.memo(
295
295
  <HandRaisedAccordionParticipantActions peerId={peerId} role={role} />
296
296
  ) : (
297
297
  <>
298
- {peerType === HMSPeerType.REGULAR && <ConnectionIndicator peerId={peerId} />}
298
+ <ConnectionIndicator peerId={peerId} />
299
299
  {peerType === HMSPeerType.SIP && (
300
300
  <Flex
301
301
  align="center"