@100mslive/roomkit-react 0.2.7-alpha.3 → 0.2.7-alpha.4

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-AGREPSFA.js";
65
+ } from "./chunk-LZKKW4D6.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -7999,7 +7999,7 @@
7999
7999
  "format": "esm"
8000
8000
  },
8001
8001
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
8002
- "bytes": 9157,
8002
+ "bytes": 9288,
8003
8003
  "imports": [
8004
8004
  {
8005
8005
  "path": "react",
@@ -13193,7 +13193,7 @@
13193
13193
  "imports": [],
13194
13194
  "exports": [],
13195
13195
  "inputs": {},
13196
- "bytes": 3216780
13196
+ "bytes": 3217019
13197
13197
  },
13198
13198
  "dist/index.cjs.js": {
13199
13199
  "imports": [
@@ -15987,7 +15987,7 @@
15987
15987
  "entryPoint": "src/index.ts",
15988
15988
  "inputs": {
15989
15989
  "<define:process.env>": {
15990
- "bytesInOutput": 18236
15990
+ "bytesInOutput": 18254
15991
15991
  },
15992
15992
  "src/Theme/base.config.ts": {
15993
15993
  "bytesInOutput": 6104
@@ -16695,7 +16695,7 @@
16695
16695
  "bytesInOutput": 1440
16696
16696
  },
16697
16697
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
16698
- "bytesInOutput": 10385
16698
+ "bytesInOutput": 10609
16699
16699
  },
16700
16700
  "src/Prebuilt/components/Chat/ChatStates.tsx": {
16701
16701
  "bytesInOutput": 3529
@@ -17019,7 +17019,7 @@
17019
17019
  "bytesInOutput": 2980
17020
17020
  }
17021
17021
  },
17022
- "bytes": 1515879
17022
+ "bytes": 1516121
17023
17023
  }
17024
17024
  }
17025
17025
  }
@@ -7999,7 +7999,7 @@
7999
7999
  "format": "esm"
8000
8000
  },
8001
8001
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
8002
- "bytes": 9157,
8002
+ "bytes": 9288,
8003
8003
  "imports": [
8004
8004
  {
8005
8005
  "path": "react",
@@ -13198,7 +13198,7 @@
13198
13198
  "dist/index.js": {
13199
13199
  "imports": [
13200
13200
  {
13201
- "path": "dist/chunk-AGREPSFA.js",
13201
+ "path": "dist/chunk-LZKKW4D6.js",
13202
13202
  "kind": "import-statement"
13203
13203
  }
13204
13204
  ],
@@ -13271,16 +13271,16 @@
13271
13271
  "inputs": {},
13272
13272
  "bytes": 1822
13273
13273
  },
13274
- "dist/HLSView-NDCESLVD.js.map": {
13274
+ "dist/HLSView-AP53XUDF.js.map": {
13275
13275
  "imports": [],
13276
13276
  "exports": [],
13277
13277
  "inputs": {},
13278
13278
  "bytes": 58854
13279
13279
  },
13280
- "dist/HLSView-NDCESLVD.js": {
13280
+ "dist/HLSView-AP53XUDF.js": {
13281
13281
  "imports": [
13282
13282
  {
13283
- "path": "dist/chunk-AGREPSFA.js",
13283
+ "path": "dist/chunk-LZKKW4D6.js",
13284
13284
  "kind": "import-statement"
13285
13285
  },
13286
13286
  {
@@ -13444,13 +13444,13 @@
13444
13444
  },
13445
13445
  "bytes": 36972
13446
13446
  },
13447
- "dist/chunk-AGREPSFA.js.map": {
13447
+ "dist/chunk-LZKKW4D6.js.map": {
13448
13448
  "imports": [],
13449
13449
  "exports": [],
13450
13450
  "inputs": {},
13451
- "bytes": 3153242
13451
+ "bytes": 3153481
13452
13452
  },
13453
- "dist/chunk-AGREPSFA.js": {
13453
+ "dist/chunk-LZKKW4D6.js": {
13454
13454
  "imports": [
13455
13455
  {
13456
13456
  "path": "react",
@@ -15753,7 +15753,7 @@
15753
15753
  "external": true
15754
15754
  },
15755
15755
  {
15756
- "path": "dist/HLSView-NDCESLVD.js",
15756
+ "path": "dist/HLSView-AP53XUDF.js",
15757
15757
  "kind": "dynamic-import"
15758
15758
  },
15759
15759
  {
@@ -16210,7 +16210,7 @@
16210
16210
  ],
16211
16211
  "inputs": {
16212
16212
  "<define:process.env>": {
16213
- "bytesInOutput": 18236
16213
+ "bytesInOutput": 18254
16214
16214
  },
16215
16215
  "../../node_modules/lodash/lodash.js": {
16216
16216
  "bytesInOutput": 224276
@@ -16894,7 +16894,7 @@
16894
16894
  "bytesInOutput": 704
16895
16895
  },
16896
16896
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
16897
- "bytesInOutput": 8636
16897
+ "bytesInOutput": 8852
16898
16898
  },
16899
16899
  "src/Prebuilt/components/Chat/ChatSelectorContainer.tsx": {
16900
16900
  "bytesInOutput": 5318
@@ -17161,7 +17161,7 @@
17161
17161
  "bytesInOutput": 651
17162
17162
  }
17163
17163
  },
17164
- "bytes": 1283281
17164
+ "bytes": 1283515
17165
17165
  }
17166
17166
  }
17167
17167
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.7-alpha.3",
13
+ "version": "0.2.7-alpha.4",
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.7-alpha.3",
85
+ "@100mslive/hls-player": "0.2.7-alpha.4",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.12.7-alpha.3",
88
- "@100mslive/react-icons": "0.9.7-alpha.3",
89
- "@100mslive/react-sdk": "0.9.7-alpha.3",
87
+ "@100mslive/hms-virtual-background": "1.12.7-alpha.4",
88
+ "@100mslive/react-icons": "0.9.7-alpha.4",
89
+ "@100mslive/react-sdk": "0.9.7-alpha.4",
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": "696d255e5bbde485a185ef420c2f00fefdb85426"
124
+ "gitHead": "fe6292513fff670053581f4bfd630ae348be4aff"
125
125
  }
@@ -92,9 +92,13 @@ export const ChatFooter = ({ onSend, children }: { onSend: (count: number) => vo
92
92
  if (!selectedPeer.id && !selectedRole && !['Everyone', ''].includes(defaultSelection)) {
93
93
  setRoleSelector(defaultSelection);
94
94
  } else {
95
- inputRef.current?.focus();
95
+ // @ts-ignore
96
+ if (!elements?.chat?.disable_autofocus) {
97
+ inputRef.current?.focus();
98
+ }
96
99
  }
97
- }, [defaultSelection, selectedPeer, selectedRole, setRoleSelector]);
100
+ // @ts-ignore
101
+ }, [defaultSelection, elements?.chat?.disable_autofocus, selectedPeer, selectedRole, setRoleSelector]);
98
102
  const sendMessage = useCallback(async () => {
99
103
  const message = inputRef?.current?.value;
100
104
  if (!message || !message.trim().length) {