@100mslive/roomkit-react 0.3.5-alpha.7 → 0.3.5

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-PUFQCJQQ.js";
65
+ } from "./chunk-6EGSZGLA.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": 330632,
4699
+ "bytes": 330624,
4700
4700
  "imports": [
4701
4701
  {
4702
4702
  "path": "../../node_modules/reselect/es/index.js",
@@ -7968,7 +7968,7 @@
7968
7968
  "format": "esm"
7969
7969
  },
7970
7970
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
7971
- "bytes": 15176,
7971
+ "bytes": 15222,
7972
7972
  "imports": [
7973
7973
  {
7974
7974
  "path": "react",
@@ -8548,7 +8548,7 @@
8548
8548
  "format": "esm"
8549
8549
  },
8550
8550
  "src/Prebuilt/components/Chat/Chat.tsx": {
8551
- "bytes": 5393,
8551
+ "bytes": 5421,
8552
8552
  "imports": [
8553
8553
  {
8554
8554
  "path": "react",
@@ -13780,7 +13780,7 @@
13780
13780
  "imports": [],
13781
13781
  "exports": [],
13782
13782
  "inputs": {},
13783
- "bytes": 3301951
13783
+ "bytes": 3302032
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": 18286
16732
+ "bytesInOutput": 18228
16733
16733
  },
16734
16734
  "src/Theme/base.config.ts": {
16735
16735
  "bytesInOutput": 6104
@@ -17218,7 +17218,7 @@
17218
17218
  "bytesInOutput": 615
17219
17219
  },
17220
17220
  "../hms-video-store/dist/index.js": {
17221
- "bytesInOutput": 53501
17221
+ "bytesInOutput": 53493
17222
17222
  },
17223
17223
  "src/Prebuilt/components/hooks/usePlaylistMusic.js": {
17224
17224
  "bytesInOutput": 1384
@@ -17434,7 +17434,7 @@
17434
17434
  "bytesInOutput": 926
17435
17435
  },
17436
17436
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
17437
- "bytesInOutput": 17543
17437
+ "bytesInOutput": 17559
17438
17438
  },
17439
17439
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
17440
17440
  "bytesInOutput": 8614
@@ -17464,7 +17464,7 @@
17464
17464
  "bytesInOutput": 6242
17465
17465
  },
17466
17466
  "src/Prebuilt/components/Chat/Chat.tsx": {
17467
- "bytesInOutput": 6161
17467
+ "bytesInOutput": 6177
17468
17468
  },
17469
17469
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
17470
17470
  "bytesInOutput": 5344
@@ -17782,7 +17782,7 @@
17782
17782
  "bytesInOutput": 2980
17783
17783
  }
17784
17784
  },
17785
- "bytes": 1570975
17785
+ "bytes": 1570941
17786
17786
  }
17787
17787
  }
17788
17788
  }
@@ -4696,7 +4696,7 @@
4696
4696
  "format": "cjs"
4697
4697
  },
4698
4698
  "../hms-video-store/dist/index.js": {
4699
- "bytes": 330632,
4699
+ "bytes": 330624,
4700
4700
  "imports": [
4701
4701
  {
4702
4702
  "path": "../../node_modules/reselect/es/index.js",
@@ -7968,7 +7968,7 @@
7968
7968
  "format": "esm"
7969
7969
  },
7970
7970
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
7971
- "bytes": 15176,
7971
+ "bytes": 15222,
7972
7972
  "imports": [
7973
7973
  {
7974
7974
  "path": "react",
@@ -8548,7 +8548,7 @@
8548
8548
  "format": "esm"
8549
8549
  },
8550
8550
  "src/Prebuilt/components/Chat/Chat.tsx": {
8551
- "bytes": 5393,
8551
+ "bytes": 5421,
8552
8552
  "imports": [
8553
8553
  {
8554
8554
  "path": "react",
@@ -13785,7 +13785,7 @@
13785
13785
  "dist/index.js": {
13786
13786
  "imports": [
13787
13787
  {
13788
- "path": "dist/chunk-PUFQCJQQ.js",
13788
+ "path": "dist/chunk-6EGSZGLA.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-T3PTCMQ4.js.map": {
13861
+ "dist/HLSView-K5AMEE25.js.map": {
13862
13862
  "imports": [],
13863
13863
  "exports": [],
13864
13864
  "inputs": {},
13865
13865
  "bytes": 99604
13866
13866
  },
13867
- "dist/HLSView-T3PTCMQ4.js": {
13867
+ "dist/HLSView-K5AMEE25.js": {
13868
13868
  "imports": [
13869
13869
  {
13870
- "path": "dist/chunk-PUFQCJQQ.js",
13870
+ "path": "dist/chunk-6EGSZGLA.js",
13871
13871
  "kind": "import-statement"
13872
13872
  },
13873
13873
  {
@@ -14103,13 +14103,13 @@
14103
14103
  },
14104
14104
  "bytes": 61412
14105
14105
  },
14106
- "dist/chunk-PUFQCJQQ.js.map": {
14106
+ "dist/chunk-6EGSZGLA.js.map": {
14107
14107
  "imports": [],
14108
14108
  "exports": [],
14109
14109
  "inputs": {},
14110
- "bytes": 3198017
14110
+ "bytes": 3198098
14111
14111
  },
14112
- "dist/chunk-PUFQCJQQ.js": {
14112
+ "dist/chunk-6EGSZGLA.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-T3PTCMQ4.js",
16500
+ "path": "dist/HLSView-K5AMEE25.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": 18286
16981
+ "bytesInOutput": 18228
16982
16982
  },
16983
16983
  "../../node_modules/lodash/lodash.js": {
16984
16984
  "bytesInOutput": 224310
@@ -17416,7 +17416,7 @@
17416
17416
  "bytesInOutput": 10031
17417
17417
  },
17418
17418
  "../hms-video-store/dist/index.js": {
17419
- "bytesInOutput": 48906
17419
+ "bytesInOutput": 48898
17420
17420
  },
17421
17421
  "../../node_modules/reselect/es/index.js": {
17422
17422
  "bytesInOutput": 2537
@@ -17647,10 +17647,10 @@
17647
17647
  "bytesInOutput": 7557
17648
17648
  },
17649
17649
  "src/Prebuilt/components/Chat/Chat.tsx": {
17650
- "bytesInOutput": 4926
17650
+ "bytesInOutput": 4942
17651
17651
  },
17652
17652
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
17653
- "bytesInOutput": 14728
17653
+ "bytesInOutput": 14744
17654
17654
  },
17655
17655
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
17656
17656
  "bytesInOutput": 9785
@@ -17938,7 +17938,7 @@
17938
17938
  "bytesInOutput": 651
17939
17939
  }
17940
17940
  },
17941
- "bytes": 1309310
17941
+ "bytes": 1309276
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.7",
13
+ "version": "0.3.5",
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.7",
85
+ "@100mslive/hls-player": "0.3.5",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.1",
87
- "@100mslive/hms-virtual-background": "1.13.5-alpha.7",
88
- "@100mslive/react-icons": "0.10.5-alpha.7",
89
- "@100mslive/react-sdk": "0.10.5-alpha.7",
87
+ "@100mslive/hms-virtual-background": "1.13.5",
88
+ "@100mslive/react-icons": "0.10.5",
89
+ "@100mslive/react-sdk": "0.10.5",
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": "b5685b9b186d4ad7d826ef99eea2305cf6007074"
125
+ "gitHead": "241ab71aeb92a9c516a30a7c51bc7af2ca80f347"
126
126
  }
@@ -130,7 +130,10 @@ const NewMessageIndicator = ({
130
130
  }
131
131
  // @ts-ignore
132
132
  const outerElement = listRef.current._outerRef;
133
- if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
133
+ if (
134
+ outerElement &&
135
+ outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight
136
+ ) {
134
137
  return null;
135
138
  }
136
139
 
@@ -420,7 +420,10 @@ export const ChatBody = React.forwardRef<VariableSizeList, { scrollToBottom: (co
420
420
  }
421
421
  // @ts-ignore
422
422
  const outerElement = listRef.current._outerRef;
423
- if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
423
+ if (
424
+ outerElement &&
425
+ outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight
426
+ ) {
424
427
  requestAnimationFrame(() => scrollToBottom(1));
425
428
  }
426
429
  }, selectUnreadHMSMessagesCount);