@100mslive/roomkit-react 0.3.2-alpha.4 → 0.3.2
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/{HLSView-NWO5Z7HM.js → HLSView-IN3HFCHT.js} +20 -11
- package/dist/HLSView-IN3HFCHT.js.map +7 -0
- package/dist/{chunk-ZSDUMADN.js → chunk-ORCLDJ5D.js} +39 -52
- package/dist/chunk-ORCLDJ5D.js.map +7 -0
- package/dist/index.cjs.js +24 -29
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +11 -16
- package/dist/meta.esbuild.json +20 -25
- package/package.json +6 -6
- package/src/Prebuilt/components/Footer/ParticipantList.tsx +8 -14
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +8 -4
- package/src/Prebuilt/layouts/HLSView.jsx +20 -9
- package/dist/HLSView-NWO5Z7HM.js.map +0 -7
- package/dist/chunk-ZSDUMADN.js.map +0 -7
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
|
@@ -4691,7 +4691,7 @@
|
|
|
4691
4691
|
"format": "cjs"
|
|
4692
4692
|
},
|
|
4693
4693
|
"../hms-video-store/dist/index.js": {
|
|
4694
|
-
"bytes":
|
|
4694
|
+
"bytes": 326163,
|
|
4695
4695
|
"imports": [
|
|
4696
4696
|
{
|
|
4697
4697
|
"path": "../../node_modules/reselect/es/index.js",
|
|
@@ -6042,7 +6042,7 @@
|
|
|
6042
6042
|
"format": "esm"
|
|
6043
6043
|
},
|
|
6044
6044
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx": {
|
|
6045
|
-
"bytes":
|
|
6045
|
+
"bytes": 5714,
|
|
6046
6046
|
"imports": [
|
|
6047
6047
|
{
|
|
6048
6048
|
"path": "react",
|
|
@@ -6154,7 +6154,7 @@
|
|
|
6154
6154
|
"format": "esm"
|
|
6155
6155
|
},
|
|
6156
6156
|
"src/Prebuilt/components/Footer/ParticipantList.tsx": {
|
|
6157
|
-
"bytes":
|
|
6157
|
+
"bytes": 12431,
|
|
6158
6158
|
"imports": [
|
|
6159
6159
|
{
|
|
6160
6160
|
"path": "react",
|
|
@@ -6181,11 +6181,6 @@
|
|
|
6181
6181
|
"kind": "import-statement",
|
|
6182
6182
|
"original": "../../.."
|
|
6183
6183
|
},
|
|
6184
|
-
{
|
|
6185
|
-
"path": "src/IconButton/index.tsx",
|
|
6186
|
-
"kind": "import-statement",
|
|
6187
|
-
"original": "../../../IconButton"
|
|
6188
|
-
},
|
|
6189
6184
|
{
|
|
6190
6185
|
"path": "src/Prebuilt/IconButton.tsx",
|
|
6191
6186
|
"kind": "import-statement",
|
|
@@ -11417,7 +11412,7 @@
|
|
|
11417
11412
|
"format": "esm"
|
|
11418
11413
|
},
|
|
11419
11414
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
11420
|
-
"bytes":
|
|
11415
|
+
"bytes": 27530,
|
|
11421
11416
|
"imports": [
|
|
11422
11417
|
{
|
|
11423
11418
|
"path": "react",
|
|
@@ -13709,7 +13704,7 @@
|
|
|
13709
13704
|
"imports": [],
|
|
13710
13705
|
"exports": [],
|
|
13711
13706
|
"inputs": {},
|
|
13712
|
-
"bytes":
|
|
13707
|
+
"bytes": 3274467
|
|
13713
13708
|
},
|
|
13714
13709
|
"dist/index.cjs.js": {
|
|
13715
13710
|
"imports": [
|
|
@@ -16638,7 +16633,7 @@
|
|
|
16638
16633
|
"entryPoint": "src/index.ts",
|
|
16639
16634
|
"inputs": {
|
|
16640
16635
|
"<define:process.env>": {
|
|
16641
|
-
"bytesInOutput":
|
|
16636
|
+
"bytesInOutput": 18169
|
|
16642
16637
|
},
|
|
16643
16638
|
"src/Theme/base.config.ts": {
|
|
16644
16639
|
"bytesInOutput": 6104
|
|
@@ -17127,7 +17122,7 @@
|
|
|
17127
17122
|
"bytesInOutput": 615
|
|
17128
17123
|
},
|
|
17129
17124
|
"../hms-video-store/dist/index.js": {
|
|
17130
|
-
"bytesInOutput":
|
|
17125
|
+
"bytesInOutput": 53127
|
|
17131
17126
|
},
|
|
17132
17127
|
"src/Prebuilt/components/hooks/usePlaylistMusic.js": {
|
|
17133
17128
|
"bytesInOutput": 1384
|
|
@@ -17217,13 +17212,13 @@
|
|
|
17217
17212
|
"bytesInOutput": 2258
|
|
17218
17213
|
},
|
|
17219
17214
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx": {
|
|
17220
|
-
"bytesInOutput":
|
|
17215
|
+
"bytesInOutput": 6489
|
|
17221
17216
|
},
|
|
17222
17217
|
"src/Prebuilt/components/hooks/usePeerOnStageActions.tsx": {
|
|
17223
17218
|
"bytesInOutput": 2181
|
|
17224
17219
|
},
|
|
17225
17220
|
"src/Prebuilt/components/Footer/ParticipantList.tsx": {
|
|
17226
|
-
"bytesInOutput":
|
|
17221
|
+
"bytesInOutput": 14347
|
|
17227
17222
|
},
|
|
17228
17223
|
"src/Prebuilt/components/Footer/PollsToggle.tsx": {
|
|
17229
17224
|
"bytesInOutput": 1521
|
|
@@ -17550,7 +17545,7 @@
|
|
|
17550
17545
|
"bytesInOutput": 2886
|
|
17551
17546
|
},
|
|
17552
17547
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
17553
|
-
"bytesInOutput":
|
|
17548
|
+
"bytesInOutput": 32398
|
|
17554
17549
|
},
|
|
17555
17550
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx": {
|
|
17556
17551
|
"bytesInOutput": 5017
|
|
@@ -17688,7 +17683,7 @@
|
|
|
17688
17683
|
"bytesInOutput": 2980
|
|
17689
17684
|
}
|
|
17690
17685
|
},
|
|
17691
|
-
"bytes":
|
|
17686
|
+
"bytes": 1558616
|
|
17692
17687
|
}
|
|
17693
17688
|
}
|
|
17694
17689
|
}
|
package/dist/meta.esbuild.json
CHANGED
|
@@ -4691,7 +4691,7 @@
|
|
|
4691
4691
|
"format": "cjs"
|
|
4692
4692
|
},
|
|
4693
4693
|
"../hms-video-store/dist/index.js": {
|
|
4694
|
-
"bytes":
|
|
4694
|
+
"bytes": 326163,
|
|
4695
4695
|
"imports": [
|
|
4696
4696
|
{
|
|
4697
4697
|
"path": "../../node_modules/reselect/es/index.js",
|
|
@@ -6042,7 +6042,7 @@
|
|
|
6042
6042
|
"format": "esm"
|
|
6043
6043
|
},
|
|
6044
6044
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx": {
|
|
6045
|
-
"bytes":
|
|
6045
|
+
"bytes": 5714,
|
|
6046
6046
|
"imports": [
|
|
6047
6047
|
{
|
|
6048
6048
|
"path": "react",
|
|
@@ -6154,7 +6154,7 @@
|
|
|
6154
6154
|
"format": "esm"
|
|
6155
6155
|
},
|
|
6156
6156
|
"src/Prebuilt/components/Footer/ParticipantList.tsx": {
|
|
6157
|
-
"bytes":
|
|
6157
|
+
"bytes": 12431,
|
|
6158
6158
|
"imports": [
|
|
6159
6159
|
{
|
|
6160
6160
|
"path": "react",
|
|
@@ -6181,11 +6181,6 @@
|
|
|
6181
6181
|
"kind": "import-statement",
|
|
6182
6182
|
"original": "../../.."
|
|
6183
6183
|
},
|
|
6184
|
-
{
|
|
6185
|
-
"path": "src/IconButton/index.tsx",
|
|
6186
|
-
"kind": "import-statement",
|
|
6187
|
-
"original": "../../../IconButton"
|
|
6188
|
-
},
|
|
6189
6184
|
{
|
|
6190
6185
|
"path": "src/Prebuilt/IconButton.tsx",
|
|
6191
6186
|
"kind": "import-statement",
|
|
@@ -11417,7 +11412,7 @@
|
|
|
11417
11412
|
"format": "esm"
|
|
11418
11413
|
},
|
|
11419
11414
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
11420
|
-
"bytes":
|
|
11415
|
+
"bytes": 27530,
|
|
11421
11416
|
"imports": [
|
|
11422
11417
|
{
|
|
11423
11418
|
"path": "react",
|
|
@@ -13714,7 +13709,7 @@
|
|
|
13714
13709
|
"dist/index.js": {
|
|
13715
13710
|
"imports": [
|
|
13716
13711
|
{
|
|
13717
|
-
"path": "dist/chunk-
|
|
13712
|
+
"path": "dist/chunk-ORCLDJ5D.js",
|
|
13718
13713
|
"kind": "import-statement"
|
|
13719
13714
|
}
|
|
13720
13715
|
],
|
|
@@ -13787,16 +13782,16 @@
|
|
|
13787
13782
|
"inputs": {},
|
|
13788
13783
|
"bytes": 1822
|
|
13789
13784
|
},
|
|
13790
|
-
"dist/HLSView-
|
|
13785
|
+
"dist/HLSView-IN3HFCHT.js.map": {
|
|
13791
13786
|
"imports": [],
|
|
13792
13787
|
"exports": [],
|
|
13793
13788
|
"inputs": {},
|
|
13794
|
-
"bytes":
|
|
13789
|
+
"bytes": 90585
|
|
13795
13790
|
},
|
|
13796
|
-
"dist/HLSView-
|
|
13791
|
+
"dist/HLSView-IN3HFCHT.js": {
|
|
13797
13792
|
"imports": [
|
|
13798
13793
|
{
|
|
13799
|
-
"path": "dist/chunk-
|
|
13794
|
+
"path": "dist/chunk-ORCLDJ5D.js",
|
|
13800
13795
|
"kind": "import-statement"
|
|
13801
13796
|
},
|
|
13802
13797
|
{
|
|
@@ -13961,7 +13956,7 @@
|
|
|
13961
13956
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
|
13962
13957
|
"inputs": {
|
|
13963
13958
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
13964
|
-
"bytesInOutput":
|
|
13959
|
+
"bytesInOutput": 26628
|
|
13965
13960
|
},
|
|
13966
13961
|
"src/Prebuilt/components/HlsStatsOverlay.jsx": {
|
|
13967
13962
|
"bytesInOutput": 3521
|
|
@@ -14012,15 +14007,15 @@
|
|
|
14012
14007
|
"bytesInOutput": 2101
|
|
14013
14008
|
}
|
|
14014
14009
|
},
|
|
14015
|
-
"bytes":
|
|
14010
|
+
"bytes": 55694
|
|
14016
14011
|
},
|
|
14017
|
-
"dist/chunk-
|
|
14012
|
+
"dist/chunk-ORCLDJ5D.js.map": {
|
|
14018
14013
|
"imports": [],
|
|
14019
14014
|
"exports": [],
|
|
14020
14015
|
"inputs": {},
|
|
14021
|
-
"bytes":
|
|
14016
|
+
"bytes": 3179402
|
|
14022
14017
|
},
|
|
14023
|
-
"dist/chunk-
|
|
14018
|
+
"dist/chunk-ORCLDJ5D.js": {
|
|
14024
14019
|
"imports": [
|
|
14025
14020
|
{
|
|
14026
14021
|
"path": "react",
|
|
@@ -16408,7 +16403,7 @@
|
|
|
16408
16403
|
"external": true
|
|
16409
16404
|
},
|
|
16410
16405
|
{
|
|
16411
|
-
"path": "dist/HLSView-
|
|
16406
|
+
"path": "dist/HLSView-IN3HFCHT.js",
|
|
16412
16407
|
"kind": "dynamic-import"
|
|
16413
16408
|
},
|
|
16414
16409
|
{
|
|
@@ -16883,7 +16878,7 @@
|
|
|
16883
16878
|
],
|
|
16884
16879
|
"inputs": {
|
|
16885
16880
|
"<define:process.env>": {
|
|
16886
|
-
"bytesInOutput":
|
|
16881
|
+
"bytesInOutput": 18169
|
|
16887
16882
|
},
|
|
16888
16883
|
"../../node_modules/lodash/lodash.js": {
|
|
16889
16884
|
"bytesInOutput": 224291
|
|
@@ -17321,7 +17316,7 @@
|
|
|
17321
17316
|
"bytesInOutput": 10031
|
|
17322
17317
|
},
|
|
17323
17318
|
"../hms-video-store/dist/index.js": {
|
|
17324
|
-
"bytesInOutput":
|
|
17319
|
+
"bytesInOutput": 48556
|
|
17325
17320
|
},
|
|
17326
17321
|
"../../node_modules/reselect/es/index.js": {
|
|
17327
17322
|
"bytesInOutput": 2539
|
|
@@ -17423,7 +17418,7 @@
|
|
|
17423
17418
|
"bytesInOutput": 1404
|
|
17424
17419
|
},
|
|
17425
17420
|
"src/Prebuilt/components/Footer/ParticipantList.tsx": {
|
|
17426
|
-
"bytesInOutput":
|
|
17421
|
+
"bytesInOutput": 11695
|
|
17427
17422
|
},
|
|
17428
17423
|
"src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
|
|
17429
17424
|
"bytesInOutput": 3749
|
|
@@ -17435,7 +17430,7 @@
|
|
|
17435
17430
|
"bytesInOutput": 1290
|
|
17436
17431
|
},
|
|
17437
17432
|
"src/Prebuilt/components/Footer/RoleAccordion.tsx": {
|
|
17438
|
-
"bytesInOutput":
|
|
17433
|
+
"bytesInOutput": 5163
|
|
17439
17434
|
},
|
|
17440
17435
|
"src/Prebuilt/components/Footer/RoleOptions.tsx": {
|
|
17441
17436
|
"bytesInOutput": 7326
|
|
@@ -17843,7 +17838,7 @@
|
|
|
17843
17838
|
"bytesInOutput": 651
|
|
17844
17839
|
}
|
|
17845
17840
|
},
|
|
17846
|
-
"bytes":
|
|
17841
|
+
"bytes": 1304772
|
|
17847
17842
|
}
|
|
17848
17843
|
}
|
|
17849
17844
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"prebuilt",
|
|
11
11
|
"roomkit"
|
|
12
12
|
],
|
|
13
|
-
"version": "0.3.2
|
|
13
|
+
"version": "0.3.2",
|
|
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.2
|
|
85
|
+
"@100mslive/hls-player": "0.3.2",
|
|
86
86
|
"@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
|
|
87
|
-
"@100mslive/hms-virtual-background": "1.13.2
|
|
88
|
-
"@100mslive/react-icons": "0.10.2
|
|
89
|
-
"@100mslive/react-sdk": "0.10.2
|
|
87
|
+
"@100mslive/hms-virtual-background": "1.13.2",
|
|
88
|
+
"@100mslive/react-icons": "0.10.2",
|
|
89
|
+
"@100mslive/react-sdk": "0.10.2",
|
|
90
90
|
"@100mslive/types-prebuilt": "0.12.7",
|
|
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": "8aafe5f7eea1ac66fb48451a5948cdfd4cf2cc1a"
|
|
126
126
|
}
|
|
@@ -22,8 +22,7 @@ import {
|
|
|
22
22
|
SearchIcon,
|
|
23
23
|
VerticalMenuIcon,
|
|
24
24
|
} from '@100mslive/react-icons';
|
|
25
|
-
import { Accordion, Box, config as cssConfig, Dropdown, Flex, Input, Text, textEllipsis } from '../../..';
|
|
26
|
-
import { IconButton as BaseIconButton } from '../../../IconButton';
|
|
25
|
+
import { Accordion, Box, Button, config as cssConfig, Dropdown, Flex, Input, Text, textEllipsis } from '../../..';
|
|
27
26
|
// @ts-ignore: No implicit Any
|
|
28
27
|
import IconButton from '../../IconButton';
|
|
29
28
|
import { ConnectionIndicator } from '../Connection/ConnectionIndicator';
|
|
@@ -319,6 +318,7 @@ const ParticipantActions = React.memo(
|
|
|
319
318
|
},
|
|
320
319
|
);
|
|
321
320
|
|
|
321
|
+
const quickActionStyle = { p: '$1', borderRadius: '$round' };
|
|
322
322
|
const HandRaisedAccordionParticipantActions = ({ peerId, role }: { peerId: string; role: string }) => {
|
|
323
323
|
const { handleStageAction, lowerPeerHand, shouldShowStageRoleChange, isInStage } = usePeerOnStageActions({
|
|
324
324
|
peerId,
|
|
@@ -326,19 +326,13 @@ const HandRaisedAccordionParticipantActions = ({ peerId, role }: { peerId: strin
|
|
|
326
326
|
});
|
|
327
327
|
return (
|
|
328
328
|
<>
|
|
329
|
-
<
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
>
|
|
333
|
-
<CrossIcon height={19} width={19} />
|
|
334
|
-
</BaseIconButton>
|
|
329
|
+
<Button variant="standard" css={quickActionStyle} onClick={lowerPeerHand}>
|
|
330
|
+
<CrossIcon height={18} width={18} />
|
|
331
|
+
</Button>
|
|
335
332
|
{shouldShowStageRoleChange && !isInStage && (
|
|
336
|
-
<
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
>
|
|
340
|
-
<AddIcon height={19} width={19} />
|
|
341
|
-
</BaseIconButton>
|
|
333
|
+
<Button variant="primary" onClick={handleStageAction} css={quickActionStyle}>
|
|
334
|
+
<AddIcon height={18} width={18} />
|
|
335
|
+
</Button>
|
|
342
336
|
)}
|
|
343
337
|
</>
|
|
344
338
|
);
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import { useMeasure } from 'react-use';
|
|
3
3
|
import { FixedSizeList } from 'react-window';
|
|
4
4
|
import { HMSPeer, selectIsLargeRoom, useHMSStore, usePaginatedParticipants } from '@100mslive/react-sdk';
|
|
5
|
-
import { ChevronRightIcon } from '@100mslive/react-icons';
|
|
5
|
+
import { AddIcon, ChevronRightIcon, CrossIcon } from '@100mslive/react-icons';
|
|
6
6
|
import { Accordion } from '../../../Accordion';
|
|
7
7
|
import { Button } from '../../../Button';
|
|
8
8
|
import { HorizontalDivider } from '../../../Divider';
|
|
@@ -152,10 +152,14 @@ export const RoleAccordion = ({
|
|
|
152
152
|
<>
|
|
153
153
|
<HorizontalDivider />
|
|
154
154
|
<Flex css={{ w: '100%', p: '$6', gap: '$4' }} justify="center">
|
|
155
|
-
<Button variant="standard" onClick={
|
|
156
|
-
Lower All Hands
|
|
155
|
+
<Button variant="standard" onClick={lowerAllHands} icon css={{ pl: '$2' }}>
|
|
156
|
+
<CrossIcon /> Lower All Hands
|
|
157
157
|
</Button>
|
|
158
|
-
{canBringToStage &&
|
|
158
|
+
{canBringToStage && (
|
|
159
|
+
<Button onClick={bringAllToStage} icon css={{ pl: '$2' }}>
|
|
160
|
+
<AddIcon /> {bring_to_stage_label}
|
|
161
|
+
</Button>
|
|
162
|
+
)}
|
|
159
163
|
</Flex>
|
|
160
164
|
</>
|
|
161
165
|
)}
|
|
@@ -336,15 +336,26 @@ const HLSView = () => {
|
|
|
336
336
|
},
|
|
337
337
|
[hlsState?.variants, isLandscape, isMobile, onSeekTo],
|
|
338
338
|
);
|
|
339
|
-
const onClickHandler = useCallback(() => {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
const onClickHandler = useCallback(async () => {
|
|
340
|
+
match({ isMobile, isLandscape, playlist_type: hlsState?.variants[0]?.playlist_type })
|
|
341
|
+
.with({ playlist_type: HLSPlaylistType.DVR, isMobile: false, isLandscape: false }, async () => {
|
|
342
|
+
if (isPaused) {
|
|
343
|
+
await hlsPlayer?.play();
|
|
344
|
+
} else {
|
|
345
|
+
hlsPlayer?.pause();
|
|
346
|
+
}
|
|
347
|
+
})
|
|
348
|
+
.when(
|
|
349
|
+
({ isMobile, isLandscape }) => isMobile || isLandscape,
|
|
350
|
+
() => {
|
|
351
|
+
setControlsVisible(value => !value);
|
|
352
|
+
if (controlsTimerRef.current) {
|
|
353
|
+
clearTimeout(controlsTimerRef.current);
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
)
|
|
357
|
+
.otherwise(() => null);
|
|
358
|
+
}, [hlsState?.variants, isLandscape, isMobile, isPaused]);
|
|
348
359
|
const onHoverHandler = useCallback(
|
|
349
360
|
event => {
|
|
350
361
|
event.preventDefault();
|