@100mslive/roomkit-react 0.3.11-alpha.5 → 0.3.11-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-TEDNZN52.js → HLSView-6WWKBVGS.js} +2 -2
- package/dist/{HLSView-WKNIOI6B.css → HLSView-QAQYL76T.css} +3 -3
- package/dist/{HLSView-WKNIOI6B.css.map → HLSView-QAQYL76T.css.map} +1 -1
- package/dist/{chunk-PHQZKIIP.js → chunk-QYLNZM7J.js} +8 -51
- package/dist/chunk-QYLNZM7J.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +8 -34
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +16 -16
- package/dist/meta.esbuild.json +28 -28
- package/package.json +7 -7
- package/src/Prebuilt/components/AppData/AppData.tsx +2 -2
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +3 -36
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -16
- package/dist/chunk-PHQZKIIP.js.map +0 -7
- /package/dist/{HLSView-TEDNZN52.js.map → HLSView-6WWKBVGS.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -2157,7 +2157,7 @@
|
|
2157
2157
|
"format": "esm"
|
2158
2158
|
},
|
2159
2159
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
2160
|
-
"bytes":
|
2160
|
+
"bytes": 5935,
|
2161
2161
|
"imports": [
|
2162
2162
|
{
|
2163
2163
|
"path": "react",
|
@@ -4167,7 +4167,7 @@
|
|
4167
4167
|
"format": "esm"
|
4168
4168
|
},
|
4169
4169
|
"src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
|
4170
|
-
"bytes":
|
4170
|
+
"bytes": 8447,
|
4171
4171
|
"imports": [
|
4172
4172
|
{
|
4173
4173
|
"path": "react",
|
@@ -5115,7 +5115,7 @@
|
|
5115
5115
|
"format": "esm"
|
5116
5116
|
},
|
5117
5117
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
5118
|
-
"bytes":
|
5118
|
+
"bytes": 12430,
|
5119
5119
|
"imports": [
|
5120
5120
|
{
|
5121
5121
|
"path": "react",
|
@@ -10449,7 +10449,7 @@
|
|
10449
10449
|
],
|
10450
10450
|
"format": "esm"
|
10451
10451
|
},
|
10452
|
-
"../../../../../../../tmp/tmp-
|
10452
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css": {
|
10453
10453
|
"bytes": 80111,
|
10454
10454
|
"imports": [
|
10455
10455
|
{
|
@@ -10499,7 +10499,7 @@
|
|
10499
10499
|
}
|
10500
10500
|
]
|
10501
10501
|
},
|
10502
|
-
"../../../../../../../tmp/tmp-
|
10502
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
|
10503
10503
|
"bytes": 597,
|
10504
10504
|
"imports": [
|
10505
10505
|
{
|
@@ -10508,7 +10508,7 @@
|
|
10508
10508
|
"external": true
|
10509
10509
|
},
|
10510
10510
|
{
|
10511
|
-
"path": "../../../../../../../tmp/tmp-
|
10511
|
+
"path": "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css",
|
10512
10512
|
"kind": "import-rule",
|
10513
10513
|
"original": "@tldraw/tldraw/tldraw.css"
|
10514
10514
|
}
|
@@ -10583,7 +10583,7 @@
|
|
10583
10583
|
"original": "../../common/constants"
|
10584
10584
|
},
|
10585
10585
|
{
|
10586
|
-
"path": "../../../../../../../tmp/tmp-
|
10586
|
+
"path": "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css",
|
10587
10587
|
"kind": "import-statement",
|
10588
10588
|
"original": "@100mslive/hms-whiteboard/index.css"
|
10589
10589
|
},
|
@@ -13671,7 +13671,7 @@
|
|
13671
13671
|
"dist/index.js": {
|
13672
13672
|
"imports": [
|
13673
13673
|
{
|
13674
|
-
"path": "dist/chunk-
|
13674
|
+
"path": "dist/chunk-QYLNZM7J.js",
|
13675
13675
|
"kind": "import-statement"
|
13676
13676
|
}
|
13677
13677
|
],
|
@@ -13745,16 +13745,16 @@
|
|
13745
13745
|
"inputs": {},
|
13746
13746
|
"bytes": 1822
|
13747
13747
|
},
|
13748
|
-
"dist/HLSView-
|
13748
|
+
"dist/HLSView-6WWKBVGS.js.map": {
|
13749
13749
|
"imports": [],
|
13750
13750
|
"exports": [],
|
13751
13751
|
"inputs": {},
|
13752
13752
|
"bytes": 99904
|
13753
13753
|
},
|
13754
|
-
"dist/HLSView-
|
13754
|
+
"dist/HLSView-6WWKBVGS.js": {
|
13755
13755
|
"imports": [
|
13756
13756
|
{
|
13757
|
-
"path": "dist/chunk-
|
13757
|
+
"path": "dist/chunk-QYLNZM7J.js",
|
13758
13758
|
"kind": "import-statement"
|
13759
13759
|
},
|
13760
13760
|
{
|
@@ -13932,7 +13932,7 @@
|
|
13932
13932
|
"default"
|
13933
13933
|
],
|
13934
13934
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
13935
|
-
"cssBundle": "dist/HLSView-
|
13935
|
+
"cssBundle": "dist/HLSView-QAQYL76T.css",
|
13936
13936
|
"inputs": {
|
13937
13937
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
13938
13938
|
"bytesInOutput": 25793
|
@@ -13991,13 +13991,13 @@
|
|
13991
13991
|
},
|
13992
13992
|
"bytes": 58515
|
13993
13993
|
},
|
13994
|
-
"dist/chunk-
|
13994
|
+
"dist/chunk-QYLNZM7J.js.map": {
|
13995
13995
|
"imports": [],
|
13996
13996
|
"exports": [],
|
13997
13997
|
"inputs": {},
|
13998
|
-
"bytes":
|
13998
|
+
"bytes": 3249458
|
13999
13999
|
},
|
14000
|
-
"dist/chunk-
|
14000
|
+
"dist/chunk-QYLNZM7J.js": {
|
14001
14001
|
"imports": [
|
14002
14002
|
{
|
14003
14003
|
"path": "react",
|
@@ -16475,7 +16475,7 @@
|
|
16475
16475
|
"external": true
|
16476
16476
|
},
|
16477
16477
|
{
|
16478
|
-
"path": "dist/HLSView-
|
16478
|
+
"path": "dist/HLSView-6WWKBVGS.js",
|
16479
16479
|
"kind": "dynamic-import"
|
16480
16480
|
},
|
16481
16481
|
{
|
@@ -16953,7 +16953,7 @@
|
|
16953
16953
|
],
|
16954
16954
|
"inputs": {
|
16955
16955
|
"<define:process.env>": {
|
16956
|
-
"bytesInOutput":
|
16956
|
+
"bytesInOutput": 17870
|
16957
16957
|
},
|
16958
16958
|
"../../node_modules/lodash/lodash.js": {
|
16959
16959
|
"bytesInOutput": 224301
|
@@ -17211,7 +17211,7 @@
|
|
17211
17211
|
"bytesInOutput": 7306
|
17212
17212
|
},
|
17213
17213
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
17214
|
-
"bytesInOutput":
|
17214
|
+
"bytesInOutput": 5366
|
17215
17215
|
},
|
17216
17216
|
"src/Prebuilt/components/Settings/LayoutSettings.tsx": {
|
17217
17217
|
"bytesInOutput": 2671
|
@@ -17337,7 +17337,7 @@
|
|
17337
17337
|
"bytesInOutput": 474
|
17338
17338
|
},
|
17339
17339
|
"src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
|
17340
|
-
"bytesInOutput":
|
17340
|
+
"bytesInOutput": 7090
|
17341
17341
|
},
|
17342
17342
|
"src/Prebuilt/components/PIP/index.jsx": {
|
17343
17343
|
"bytesInOutput": 178
|
@@ -17397,7 +17397,7 @@
|
|
17397
17397
|
"bytesInOutput": 1651
|
17398
17398
|
},
|
17399
17399
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
17400
|
-
"bytesInOutput":
|
17400
|
+
"bytesInOutput": 10844
|
17401
17401
|
},
|
17402
17402
|
"src/Prebuilt/components/Header/StreamActions.tsx": {
|
17403
17403
|
"bytesInOutput": 9080
|
@@ -17795,7 +17795,7 @@
|
|
17795
17795
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
17796
17796
|
"bytesInOutput": 2656
|
17797
17797
|
},
|
17798
|
-
"../../../../../../../tmp/tmp-
|
17798
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
|
17799
17799
|
"bytesInOutput": 0
|
17800
17800
|
},
|
17801
17801
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -17934,7 +17934,7 @@
|
|
17934
17934
|
"bytesInOutput": 651
|
17935
17935
|
}
|
17936
17936
|
},
|
17937
|
-
"bytes":
|
17937
|
+
"bytes": 1301773
|
17938
17938
|
},
|
17939
17939
|
"dist/index.css.map": {
|
17940
17940
|
"imports": [],
|
@@ -17996,22 +17996,22 @@
|
|
17996
17996
|
}
|
17997
17997
|
],
|
17998
17998
|
"inputs": {
|
17999
|
-
"../../../../../../../tmp/tmp-
|
17999
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css": {
|
18000
18000
|
"bytesInOutput": 75223
|
18001
18001
|
},
|
18002
|
-
"../../../../../../../tmp/tmp-
|
18002
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
|
18003
18003
|
"bytesInOutput": 401
|
18004
18004
|
}
|
18005
18005
|
},
|
18006
18006
|
"bytes": 75901
|
18007
18007
|
},
|
18008
|
-
"dist/HLSView-
|
18008
|
+
"dist/HLSView-QAQYL76T.css.map": {
|
18009
18009
|
"imports": [],
|
18010
18010
|
"exports": [],
|
18011
18011
|
"inputs": {},
|
18012
18012
|
"bytes": 122402
|
18013
18013
|
},
|
18014
|
-
"dist/HLSView-
|
18014
|
+
"dist/HLSView-QAQYL76T.css": {
|
18015
18015
|
"imports": [
|
18016
18016
|
{
|
18017
18017
|
"path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
|
@@ -18065,10 +18065,10 @@
|
|
18065
18065
|
}
|
18066
18066
|
],
|
18067
18067
|
"inputs": {
|
18068
|
-
"../../../../../../../tmp/tmp-
|
18068
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css": {
|
18069
18069
|
"bytesInOutput": 75223
|
18070
18070
|
},
|
18071
|
-
"../../../../../../../tmp/tmp-
|
18071
|
+
"../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
|
18072
18072
|
"bytesInOutput": 401
|
18073
18073
|
}
|
18074
18074
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.11-alpha.
|
13
|
+
"version": "0.3.11-alpha.7",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -74,12 +74,12 @@
|
|
74
74
|
"react": ">=17.0.2 <19.0.0"
|
75
75
|
},
|
76
76
|
"dependencies": {
|
77
|
-
"@100mslive/hls-player": "0.3.11-alpha.
|
77
|
+
"@100mslive/hls-player": "0.3.11-alpha.7",
|
78
78
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
79
|
-
"@100mslive/hms-virtual-background": "1.13.11-alpha.
|
80
|
-
"@100mslive/hms-whiteboard": "0.0.1-alpha.
|
81
|
-
"@100mslive/react-icons": "0.10.11-alpha.
|
82
|
-
"@100mslive/react-sdk": "0.10.11-alpha.
|
79
|
+
"@100mslive/hms-virtual-background": "1.13.11-alpha.7",
|
80
|
+
"@100mslive/hms-whiteboard": "0.0.1-alpha.7",
|
81
|
+
"@100mslive/react-icons": "0.10.11-alpha.7",
|
82
|
+
"@100mslive/react-sdk": "0.10.11-alpha.7",
|
83
83
|
"@100mslive/types-prebuilt": "0.12.8",
|
84
84
|
"@emoji-mart/data": "^1.0.6",
|
85
85
|
"@emoji-mart/react": "^1.0.1",
|
@@ -115,5 +115,5 @@
|
|
115
115
|
"uuid": "^8.3.2",
|
116
116
|
"worker-timers": "^7.0.40"
|
117
117
|
},
|
118
|
-
"gitHead": "
|
118
|
+
"gitHead": "361d36f30fc8719e81d889901337ef3936cd88bc"
|
119
119
|
}
|
@@ -66,8 +66,8 @@ const initialAppData = {
|
|
66
66
|
[POLL_STATE.pollInView]: '',
|
67
67
|
[POLL_STATE.view]: '',
|
68
68
|
},
|
69
|
-
// by default on because of on demand now
|
70
|
-
[APP_DATA.caption]:
|
69
|
+
// by default on because of on demand now, for beam disabled
|
70
|
+
[APP_DATA.caption]: false,
|
71
71
|
};
|
72
72
|
|
73
73
|
export const AppData = React.memo(() => {
|
@@ -6,23 +6,9 @@ import {
|
|
6
6
|
HLSLiveStreamingScreen_Elements,
|
7
7
|
} from '@100mslive/types-prebuilt';
|
8
8
|
import { match } from 'ts-pattern';
|
9
|
-
import {
|
10
|
-
|
11
|
-
|
12
|
-
selectLocalPeerID,
|
13
|
-
useHMSActions,
|
14
|
-
useHMSStore,
|
15
|
-
} from '@100mslive/react-sdk';
|
16
|
-
import {
|
17
|
-
BrbIcon,
|
18
|
-
CheckIcon,
|
19
|
-
HamburgerMenuIcon,
|
20
|
-
InfoIcon,
|
21
|
-
OpenCaptionIcon,
|
22
|
-
PipIcon,
|
23
|
-
SettingsIcon,
|
24
|
-
} from '@100mslive/react-icons';
|
25
|
-
import { Checkbox, Dropdown, Flex, Switch, Text, Tooltip } from '../../../..';
|
9
|
+
import { selectAppData, selectLocalPeerID, useHMSActions, useHMSStore } from '@100mslive/react-sdk';
|
10
|
+
import { BrbIcon, CheckIcon, HamburgerMenuIcon, InfoIcon, PipIcon, SettingsIcon } from '@100mslive/react-icons';
|
11
|
+
import { Checkbox, Dropdown, Flex, Text, Tooltip } from '../../../..';
|
26
12
|
import IconButton from '../../../IconButton';
|
27
13
|
// @ts-ignore: No implicit any
|
28
14
|
import { PIP } from '../../PIP';
|
@@ -75,7 +61,6 @@ export const DesktopOptions = ({
|
|
75
61
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
76
62
|
const isPipOn = PictureInPicture.isOn();
|
77
63
|
const isBRBEnabled = !!elements?.brb;
|
78
|
-
const isTranscriptionEnabled = useHMSStore(selectIsTranscriptionEnabled);
|
79
64
|
|
80
65
|
useDropdownList({ open: openModals.size > 0, name: 'MoreSettings' });
|
81
66
|
|
@@ -131,24 +116,6 @@ export const DesktopOptions = ({
|
|
131
116
|
</Flex>
|
132
117
|
</Dropdown.Item>
|
133
118
|
) : null}
|
134
|
-
|
135
|
-
<Dropdown.Item
|
136
|
-
data-testid="closed_caption_admin"
|
137
|
-
onClick={() => {
|
138
|
-
updateState(MODALS.CAPTION, true);
|
139
|
-
}}
|
140
|
-
>
|
141
|
-
<OpenCaptionIcon />
|
142
|
-
<Flex direction="column" css={{ flexGrow: '1' }}>
|
143
|
-
<Text variant="sm" css={{ ml: '$4', color: '$on_surface_high' }}>
|
144
|
-
Closed Captions
|
145
|
-
</Text>
|
146
|
-
<Text variant="caption" css={{ ml: '$4', color: '$on_surface_medium' }}>
|
147
|
-
{isTranscriptionEnabled ? 'Enabled' : 'Disabled'}
|
148
|
-
</Text>
|
149
|
-
</Flex>
|
150
|
-
<Switch id="closed_caption_start_stop" checked={isTranscriptionEnabled} disabled={false} />
|
151
|
-
</Dropdown.Item>
|
152
119
|
{screenType !== 'hls_live_streaming' ? (
|
153
120
|
<Dropdown.Item css={{ p: 0, '&:empty': { display: 'none' } }}>
|
154
121
|
<PIP
|
@@ -5,7 +5,6 @@ import { match } from 'ts-pattern';
|
|
5
5
|
import {
|
6
6
|
selectIsConnectedToRoom,
|
7
7
|
selectIsLocalVideoEnabled,
|
8
|
-
selectIsTranscriptionEnabled,
|
9
8
|
selectPeerCount,
|
10
9
|
selectPermissions,
|
11
10
|
useHMSActions,
|
@@ -14,14 +13,12 @@ import {
|
|
14
13
|
} from '@100mslive/react-sdk';
|
15
14
|
import {
|
16
15
|
BrbIcon,
|
17
|
-
ClosedCaptionIcon,
|
18
16
|
CrossIcon,
|
19
17
|
EmojiIcon,
|
20
18
|
HamburgerMenuIcon,
|
21
19
|
HandIcon,
|
22
20
|
HandRaiseSlashedIcon,
|
23
21
|
InfoIcon,
|
24
|
-
OpenCaptionIcon,
|
25
22
|
PeopleIcon,
|
26
23
|
QuizActiveIcon,
|
27
24
|
QuizIcon,
|
@@ -53,7 +50,7 @@ import { useSheetToggle } from '../../AppData/useSheet';
|
|
53
50
|
// @ts-ignore: No implicit any
|
54
51
|
import { usePollViewToggle, useSidepaneToggle } from '../../AppData/useSidepane';
|
55
52
|
// @ts-ignore: No implicit Any
|
56
|
-
import {
|
53
|
+
import { useShowPolls } from '../../AppData/useUISettings';
|
57
54
|
// @ts-ignore: No implicit any
|
58
55
|
import { useDropdownList } from '../../hooks/useDropdownList';
|
59
56
|
import { useMyMetadata } from '../../hooks/useMetadata';
|
@@ -108,9 +105,6 @@ export const MwebOptions = ({
|
|
108
105
|
const isLocalVideoEnabled = useHMSStore(selectIsLocalVideoEnabled);
|
109
106
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
110
107
|
|
111
|
-
const isTranscriptionEnabled = useHMSStore(selectIsTranscriptionEnabled);
|
112
|
-
|
113
|
-
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
114
108
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: 'MoreSettings' });
|
115
109
|
|
116
110
|
const updateState = (modalName: string, value: boolean) => {
|
@@ -195,15 +189,6 @@ export const MwebOptions = ({
|
|
195
189
|
<ActionTile.Title>{isHandRaised ? 'Lower' : 'Raise'} Hand</ActionTile.Title>
|
196
190
|
</ActionTile.Root>
|
197
191
|
) : null}
|
198
|
-
<ActionTile.Root
|
199
|
-
onClick={() => {
|
200
|
-
setOpenOptionsSheet(false);
|
201
|
-
updateState(MODALS.CAPTION, true);
|
202
|
-
}}
|
203
|
-
>
|
204
|
-
{isTranscriptionEnabled && isCaptionEnabled ? <ClosedCaptionIcon /> : <OpenCaptionIcon />}
|
205
|
-
<ActionTile.Title>Closed Caption</ActionTile.Title>
|
206
|
-
</ActionTile.Root>
|
207
192
|
{isLocalVideoEnabled && !!elements?.virtual_background ? (
|
208
193
|
<ActionTile.Root
|
209
194
|
onClick={() => {
|