@100mslive/roomkit-react 0.2.7 → 0.2.8-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-KPCDHIH2.js → HLSView-37B2YVTC.js} +2 -2
- package/dist/Prebuilt/components/MoreSettings/FullScreenItem.d.ts +2 -0
- package/dist/Prebuilt/components/MoreSettings/MuteAllContent.d.ts +15 -0
- package/dist/Prebuilt/components/MoreSettings/MuteAllModal.d.ts +5 -0
- package/dist/Prebuilt/components/MoreSettings/constants.d.ts +8 -0
- package/dist/Prebuilt/components/hooks/useFullscreen.d.ts +5 -0
- package/dist/{chunk-Q6VWGYM4.js → chunk-72B32WVR.js} +663 -636
- package/dist/chunk-72B32WVR.js.map +7 -0
- package/dist/index.cjs.js +969 -946
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +105 -61
- package/dist/meta.esbuild.json +111 -67
- package/package.json +6 -6
- package/src/Prebuilt/components/Connection/TileConnection.tsx +30 -27
- package/src/Prebuilt/components/Footer/RoleOptions.tsx +81 -38
- package/src/Prebuilt/components/MoreSettings/{FullScreenItem.jsx → FullScreenItem.tsx} +1 -1
- package/src/Prebuilt/components/MoreSettings/MuteAllContent.tsx +81 -0
- package/src/Prebuilt/components/MoreSettings/{MuteAllModal.jsx → MuteAllModal.tsx} +21 -22
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +0 -2
- package/src/Prebuilt/components/MoreSettings/constants.ts +12 -0
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +4 -2
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +2 -2
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +1 -1
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -1
- package/src/Prebuilt/components/VideoLayouts/RoleProminence.tsx +5 -1
- package/src/Prebuilt/components/hooks/{useFullscreen.js → useFullscreen.ts} +5 -3
- package/src/Prebuilt/primitives/DialogContent.jsx +3 -2
- package/dist/chunk-Q6VWGYM4.js.map +0 -7
- package/src/Prebuilt/components/MoreSettings/MuteAllContent.jsx +0 -61
- /package/dist/{HLSView-KPCDHIH2.js.map → HLSView-37B2YVTC.js.map} +0 -0
@@ -1,61 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Button } from '../../../Button';
|
3
|
-
import { Label } from '../../../Label';
|
4
|
-
import { Flex } from '../../../Layout';
|
5
|
-
import { RadioGroup } from '../../../RadioGroup';
|
6
|
-
import { Text } from '../../../Text';
|
7
|
-
import { DialogRow, DialogSelect } from '../../primitives/DialogContent';
|
8
|
-
|
9
|
-
export const MuteAllContent = props => {
|
10
|
-
const roles = props.roles || [];
|
11
|
-
return (
|
12
|
-
<>
|
13
|
-
<DialogSelect
|
14
|
-
title="Role"
|
15
|
-
options={[{ label: 'All Roles', value: '' }, ...roles.map(role => ({ label: role, value: role }))]}
|
16
|
-
selected={props.selectedRole}
|
17
|
-
keyField="value"
|
18
|
-
labelField="label"
|
19
|
-
onChange={props.setRole}
|
20
|
-
/>
|
21
|
-
<DialogSelect
|
22
|
-
title="Track type"
|
23
|
-
options={props.trackTypeOptions}
|
24
|
-
selected={props.trackType}
|
25
|
-
onChange={props.setTrackType}
|
26
|
-
keyField="value"
|
27
|
-
labelField="label"
|
28
|
-
/>
|
29
|
-
<DialogSelect
|
30
|
-
title="Track source"
|
31
|
-
options={props.trackSourceOptions}
|
32
|
-
selected={props.selectedSource}
|
33
|
-
onChange={props.setSource}
|
34
|
-
keyField="value"
|
35
|
-
labelField="label"
|
36
|
-
/>
|
37
|
-
<DialogRow>
|
38
|
-
<Text variant="md">Track status</Text>
|
39
|
-
<RadioGroup.Root value={props.enabled} onValueChange={props.setEnabled}>
|
40
|
-
<Flex align="center" css={{ mr: '$8' }}>
|
41
|
-
<RadioGroup.Item value={false} id="trackDisableRadio" css={{ mr: '$4' }}>
|
42
|
-
<RadioGroup.Indicator />
|
43
|
-
</RadioGroup.Item>
|
44
|
-
<Label htmlFor="trackDisableRadio">Mute</Label>
|
45
|
-
</Flex>
|
46
|
-
<Flex align="center" css={{ cursor: 'pointer' }}>
|
47
|
-
<RadioGroup.Item value={true} id="trackEnableRadio" css={{ mr: '$4' }}>
|
48
|
-
<RadioGroup.Indicator />
|
49
|
-
</RadioGroup.Item>
|
50
|
-
<Label htmlFor="trackEnableRadio">Request Unmute</Label>
|
51
|
-
</Flex>
|
52
|
-
</RadioGroup.Root>
|
53
|
-
</DialogRow>
|
54
|
-
<DialogRow justify="end">
|
55
|
-
<Button variant="primary" onClick={props.muteAll} css={{ w: props?.isMobile ? '100%' : '' }}>
|
56
|
-
Apply
|
57
|
-
</Button>
|
58
|
-
</DialogRow>
|
59
|
-
</>
|
60
|
-
);
|
61
|
-
};
|
File without changes
|