@100mslive/roomkit-react 0.3.8-alpha.2 → 0.3.8-alpha.3

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-SQPIZNW2.js";
65
+ } from "./chunk-AJQ4OUGM.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -2241,7 +2241,7 @@
2241
2241
  "format": "esm"
2242
2242
  },
2243
2243
  "src/Prebuilt/components/AppData/AppData.tsx": {
2244
- "bytes": 5963,
2244
+ "bytes": 6020,
2245
2245
  "imports": [
2246
2246
  {
2247
2247
  "path": "react",
@@ -12021,7 +12021,7 @@
12021
12021
  "format": "esm"
12022
12022
  },
12023
12023
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
12024
- "bytes": 5541,
12024
+ "bytes": 5558,
12025
12025
  "imports": [
12026
12026
  {
12027
12027
  "path": "react",
@@ -12052,7 +12052,7 @@
12052
12052
  "format": "esm"
12053
12053
  },
12054
12054
  "src/Prebuilt/components/ConferenceScreen.tsx": {
12055
- "bytes": 9357,
12055
+ "bytes": 9362,
12056
12056
  "imports": [
12057
12057
  {
12058
12058
  "path": "react",
@@ -13892,7 +13892,7 @@
13892
13892
  "imports": [],
13893
13893
  "exports": [],
13894
13894
  "inputs": {},
13895
- "bytes": 3323602
13895
+ "bytes": 3323718
13896
13896
  },
13897
13897
  "dist/index.cjs.js": {
13898
13898
  "imports": [
@@ -16871,7 +16871,7 @@
16871
16871
  "entryPoint": "src/index.ts",
16872
16872
  "inputs": {
16873
16873
  "<define:process.env>": {
16874
- "bytesInOutput": 18290
16874
+ "bytesInOutput": 18308
16875
16875
  },
16876
16876
  "src/Theme/base.config.ts": {
16877
16877
  "bytesInOutput": 6104
@@ -17168,7 +17168,7 @@
17168
17168
  "bytesInOutput": 3258
17169
17169
  },
17170
17170
  "src/Prebuilt/components/AppData/AppData.tsx": {
17171
- "bytesInOutput": 6644
17171
+ "bytesInOutput": 6705
17172
17172
  },
17173
17173
  "src/Prebuilt/AppContext.tsx": {
17174
17174
  "bytesInOutput": 840
@@ -17810,10 +17810,10 @@
17810
17810
  "bytesInOutput": 1024
17811
17811
  },
17812
17812
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
17813
- "bytesInOutput": 6104
17813
+ "bytesInOutput": 6185
17814
17814
  },
17815
17815
  "src/Prebuilt/components/ConferenceScreen.tsx": {
17816
- "bytesInOutput": 10300
17816
+ "bytesInOutput": 10305
17817
17817
  },
17818
17818
  "src/Prebuilt/components/ErrorBoundary.jsx": {
17819
17819
  "bytesInOutput": 4366
@@ -17930,7 +17930,7 @@
17930
17930
  "bytesInOutput": 2980
17931
17931
  }
17932
17932
  },
17933
- "bytes": 1583130
17933
+ "bytes": 1583295
17934
17934
  }
17935
17935
  }
17936
17936
  }
@@ -2241,7 +2241,7 @@
2241
2241
  "format": "esm"
2242
2242
  },
2243
2243
  "src/Prebuilt/components/AppData/AppData.tsx": {
2244
- "bytes": 5963,
2244
+ "bytes": 6020,
2245
2245
  "imports": [
2246
2246
  {
2247
2247
  "path": "react",
@@ -12021,7 +12021,7 @@
12021
12021
  "format": "esm"
12022
12022
  },
12023
12023
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
12024
- "bytes": 5541,
12024
+ "bytes": 5558,
12025
12025
  "imports": [
12026
12026
  {
12027
12027
  "path": "react",
@@ -12052,7 +12052,7 @@
12052
12052
  "format": "esm"
12053
12053
  },
12054
12054
  "src/Prebuilt/components/ConferenceScreen.tsx": {
12055
- "bytes": 9357,
12055
+ "bytes": 9362,
12056
12056
  "imports": [
12057
12057
  {
12058
12058
  "path": "react",
@@ -13897,7 +13897,7 @@
13897
13897
  "dist/index.js": {
13898
13898
  "imports": [
13899
13899
  {
13900
- "path": "dist/chunk-SQPIZNW2.js",
13900
+ "path": "dist/chunk-AJQ4OUGM.js",
13901
13901
  "kind": "import-statement"
13902
13902
  }
13903
13903
  ],
@@ -13970,16 +13970,16 @@
13970
13970
  "inputs": {},
13971
13971
  "bytes": 1822
13972
13972
  },
13973
- "dist/HLSView-XZDT3RRC.js.map": {
13973
+ "dist/HLSView-XPK2JCMJ.js.map": {
13974
13974
  "imports": [],
13975
13975
  "exports": [],
13976
13976
  "inputs": {},
13977
13977
  "bytes": 100708
13978
13978
  },
13979
- "dist/HLSView-XZDT3RRC.js": {
13979
+ "dist/HLSView-XPK2JCMJ.js": {
13980
13980
  "imports": [
13981
13981
  {
13982
- "path": "dist/chunk-SQPIZNW2.js",
13982
+ "path": "dist/chunk-AJQ4OUGM.js",
13983
13983
  "kind": "import-statement"
13984
13984
  },
13985
13985
  {
@@ -14215,13 +14215,13 @@
14215
14215
  },
14216
14216
  "bytes": 61939
14217
14217
  },
14218
- "dist/chunk-SQPIZNW2.js.map": {
14218
+ "dist/chunk-AJQ4OUGM.js.map": {
14219
14219
  "imports": [],
14220
14220
  "exports": [],
14221
14221
  "inputs": {},
14222
- "bytes": 3218955
14222
+ "bytes": 3219071
14223
14223
  },
14224
- "dist/chunk-SQPIZNW2.js": {
14224
+ "dist/chunk-AJQ4OUGM.js": {
14225
14225
  "imports": [
14226
14226
  {
14227
14227
  "path": "react",
@@ -16629,7 +16629,7 @@
16629
16629
  "external": true
16630
16630
  },
16631
16631
  {
16632
- "path": "dist/HLSView-XZDT3RRC.js",
16632
+ "path": "dist/HLSView-XPK2JCMJ.js",
16633
16633
  "kind": "dynamic-import"
16634
16634
  },
16635
16635
  {
@@ -17120,7 +17120,7 @@
17120
17120
  ],
17121
17121
  "inputs": {
17122
17122
  "<define:process.env>": {
17123
- "bytesInOutput": 18290
17123
+ "bytesInOutput": 18308
17124
17124
  },
17125
17125
  "../../node_modules/lodash/lodash.js": {
17126
17126
  "bytesInOutput": 224310
@@ -17375,7 +17375,7 @@
17375
17375
  "bytesInOutput": 7828
17376
17376
  },
17377
17377
  "src/Prebuilt/components/AppData/AppData.tsx": {
17378
- "bytesInOutput": 5539
17378
+ "bytesInOutput": 5596
17379
17379
  },
17380
17380
  "src/Prebuilt/components/Settings/LayoutSettings.tsx": {
17381
17381
  "bytesInOutput": 2705
@@ -17420,7 +17420,7 @@
17420
17420
  "bytesInOutput": 4698
17421
17421
  },
17422
17422
  "src/Prebuilt/components/ConferenceScreen.tsx": {
17423
- "bytesInOutput": 8351
17423
+ "bytesInOutput": 8356
17424
17424
  },
17425
17425
  "src/Prebuilt/components/Footer/Footer.tsx": {
17426
17426
  "bytesInOutput": 3306
@@ -17978,7 +17978,7 @@
17978
17978
  "bytesInOutput": 754
17979
17979
  },
17980
17980
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
17981
- "bytesInOutput": 5070
17981
+ "bytesInOutput": 5132
17982
17982
  },
17983
17983
  "src/Prebuilt/components/ErrorBoundary.jsx": {
17984
17984
  "bytesInOutput": 3509
@@ -18086,7 +18086,7 @@
18086
18086
  "bytesInOutput": 651
18087
18087
  }
18088
18088
  },
18089
- "bytes": 1318999
18089
+ "bytes": 1319141
18090
18090
  }
18091
18091
  }
18092
18092
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.8-alpha.2",
13
+ "version": "0.3.8-alpha.3",
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.8-alpha.2",
85
+ "@100mslive/hls-player": "0.3.8-alpha.3",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.1",
87
- "@100mslive/hms-virtual-background": "1.13.8-alpha.2",
88
- "@100mslive/react-icons": "0.10.8-alpha.2",
89
- "@100mslive/react-sdk": "0.10.8-alpha.2",
87
+ "@100mslive/hms-virtual-background": "1.13.8-alpha.3",
88
+ "@100mslive/react-icons": "0.10.8-alpha.3",
89
+ "@100mslive/react-sdk": "0.10.8-alpha.3",
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": "43ee35cc85faabb5a827f7f41a5affebffcfca18"
125
+ "gitHead": "6ee28a277707cea9f9d2733c2b334d35bae73333"
126
126
  }
@@ -68,7 +68,8 @@ const initialAppData = {
68
68
  [POLL_STATE.pollInView]: '',
69
69
  [POLL_STATE.view]: '',
70
70
  },
71
- [APP_DATA.caption]: true,
71
+ // by default off, so it will not appear in beam bots
72
+ [APP_DATA.caption]: false,
72
73
  };
73
74
 
74
75
  export const AppData = React.memo(() => {
@@ -66,7 +66,7 @@ export const ConferenceScreen = () => {
66
66
  const isCaptionEnabled = useIsCaptionEnabled();
67
67
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
68
68
 
69
- const showCaptionAtTop = screenProps.elements?.chat?.is_overlay && isChatOpen;
69
+ const showCaptionAtTop = screenProps.elements?.chat?.is_overlay && isChatOpen && isMobile;
70
70
 
71
71
  const toggleControls = () => {
72
72
  if (dropdownListRef.current?.length === 0 && isMobileDevice && !isMwebHLSStream) {
@@ -138,7 +138,7 @@ export const ConferenceScreen = () => {
138
138
  <Box
139
139
  css={{
140
140
  position: 'fixed',
141
- maxWidth: isMobile ? '100%' : '40%',
141
+ w: isMobile ? '100%' : '40%',
142
142
  bottom: showCaptionAtTop ? '' : hideControlsForStreaming ? '5%' : '10%',
143
143
  top: showCaptionAtTop ? (hideControlsForStreaming ? '5%' : '10%') : '',
144
144
  left: isMobile ? 0 : '50%',
@@ -135,7 +135,7 @@ class CaptionMaintainerQueue {
135
135
  }
136
136
  }
137
137
  const TranscriptView = ({ peer_id, data }: { peer_id: string; data: string }) => {
138
- const peerName = useHMSStore(selectPeerNameByID(peer_id));
138
+ const peerName = useHMSStore(selectPeerNameByID(peer_id)) || 'Participant';
139
139
  data = data.trim();
140
140
  if (!data) return null;
141
141
  return (
@@ -145,7 +145,8 @@ const TranscriptView = ({ peer_id, data }: { peer_id: string; data: string }) =>
145
145
  fontWeight: '$normal',
146
146
  }}
147
147
  >
148
- {`${peerName}: ${data}`}
148
+ <b>{peerName}: </b>
149
+ {data}
149
150
  </Text>
150
151
  );
151
152
  };
@@ -181,7 +182,7 @@ export const CaptionsViewer = () => {
181
182
  return null;
182
183
  }
183
184
  return (
184
- <Flex direction="column" gap={1}>
185
+ <Flex direction="column">
185
186
  {dataToShow.map((data: { [key: string]: string }, index: number) => {
186
187
  const key = Object.keys(data)[0];
187
188
  return <TranscriptView key={index} peer_id={key} data={data[key]} />;