@100mslive/roomkit-react 0.3.8-alpha.2 → 0.3.8-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-XZDT3RRC.js → HLSView-XPK2JCMJ.js} +2 -2
- package/dist/{chunk-SQPIZNW2.js → chunk-AJQ4OUGM.js} +12 -10
- package/dist/chunk-AJQ4OUGM.js.map +7 -0
- package/dist/index.cjs.js +10 -8
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +9 -9
- package/dist/meta.esbuild.json +16 -16
- package/package.json +6 -6
- package/src/Prebuilt/components/AppData/AppData.tsx +2 -1
- package/src/Prebuilt/components/ConferenceScreen.tsx +2 -2
- package/src/Prebuilt/plugins/CaptionsViewer.tsx +4 -3
- package/dist/chunk-SQPIZNW2.js.map +0 -7
- /package/dist/{HLSView-XZDT3RRC.js.map → HLSView-XPK2JCMJ.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -2241,7 +2241,7 @@
|
|
2241
2241
|
"format": "esm"
|
2242
2242
|
},
|
2243
2243
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
2244
|
-
"bytes":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
17813
|
+
"bytesInOutput": 6185
|
17814
17814
|
},
|
17815
17815
|
"src/Prebuilt/components/ConferenceScreen.tsx": {
|
17816
|
-
"bytesInOutput":
|
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":
|
17933
|
+
"bytes": 1583295
|
17934
17934
|
}
|
17935
17935
|
}
|
17936
17936
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -2241,7 +2241,7 @@
|
|
2241
2241
|
"format": "esm"
|
2242
2242
|
},
|
2243
2243
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
2244
|
-
"bytes":
|
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":
|
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":
|
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-
|
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-
|
13973
|
+
"dist/HLSView-XPK2JCMJ.js.map": {
|
13974
13974
|
"imports": [],
|
13975
13975
|
"exports": [],
|
13976
13976
|
"inputs": {},
|
13977
13977
|
"bytes": 100708
|
13978
13978
|
},
|
13979
|
-
"dist/HLSView-
|
13979
|
+
"dist/HLSView-XPK2JCMJ.js": {
|
13980
13980
|
"imports": [
|
13981
13981
|
{
|
13982
|
-
"path": "dist/chunk-
|
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-
|
14218
|
+
"dist/chunk-AJQ4OUGM.js.map": {
|
14219
14219
|
"imports": [],
|
14220
14220
|
"exports": [],
|
14221
14221
|
"inputs": {},
|
14222
|
-
"bytes":
|
14222
|
+
"bytes": 3219071
|
14223
14223
|
},
|
14224
|
-
"dist/chunk-
|
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-
|
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":
|
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":
|
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":
|
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":
|
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":
|
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.
|
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.
|
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.
|
88
|
-
"@100mslive/react-icons": "0.10.8-alpha.
|
89
|
-
"@100mslive/react-sdk": "0.10.8-alpha.
|
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": "
|
125
|
+
"gitHead": "6ee28a277707cea9f9d2733c2b334d35bae73333"
|
126
126
|
}
|
@@ -68,7 +68,8 @@ const initialAppData = {
|
|
68
68
|
[POLL_STATE.pollInView]: '',
|
69
69
|
[POLL_STATE.view]: '',
|
70
70
|
},
|
71
|
-
|
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
|
-
|
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
|
-
{
|
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"
|
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]} />;
|