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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-43EHUY5K.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -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": 3302043
13784
13784
  },
13785
13785
  "dist/index.cjs.js": {
13786
13786
  "imports": [
@@ -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": 1571007
17786
17786
  }
17787
17787
  }
17788
17788
  }
@@ -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-43EHUY5K.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-PIGBPN6K.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-PIGBPN6K.js": {
13868
13868
  "imports": [
13869
13869
  {
13870
- "path": "dist/chunk-PUFQCJQQ.js",
13870
+ "path": "dist/chunk-43EHUY5K.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-43EHUY5K.js.map": {
14107
14107
  "imports": [],
14108
14108
  "exports": [],
14109
14109
  "inputs": {},
14110
- "bytes": 3198017
14110
+ "bytes": 3198109
14111
14111
  },
14112
- "dist/chunk-PUFQCJQQ.js": {
14112
+ "dist/chunk-43EHUY5K.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-PIGBPN6K.js",
16501
16501
  "kind": "dynamic-import"
16502
16502
  },
16503
16503
  {
@@ -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": 1309342
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-alpha.8",
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-alpha.8",
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-alpha.8",
88
+ "@100mslive/react-icons": "0.10.5-alpha.8",
89
+ "@100mslive/react-sdk": "0.10.5-alpha.8",
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": "aab313829e1a3e05e139941020f828ef295f6e2d"
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);