@mindly/ui-components 3.5.6 → 3.6.0
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/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/lib/Container/Container.d.ts +2 -2
- package/dist/cjs/types/lib/SwitchDeviceCard/ListItem/ListItem.d.ts +8 -0
- package/dist/cjs/types/lib/SwitchDeviceCard/SwitchDeviceCard.d.ts +33 -0
- package/dist/cjs/types/lib/SwitchDeviceCard/index.d.ts +1 -0
- package/dist/esm/index.js +20 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/lib/Container/Container.d.ts +2 -2
- package/dist/esm/types/lib/SwitchDeviceCard/ListItem/ListItem.d.ts +8 -0
- package/dist/esm/types/lib/SwitchDeviceCard/SwitchDeviceCard.d.ts +33 -0
- package/dist/esm/types/lib/SwitchDeviceCard/index.d.ts +1 -0
- package/dist/index.d.ts +34 -2
- package/package.json +1 -1
|
@@ -67,3 +67,5 @@ export { default as LouseConnect } from './lib/Chat/LouseConnect';
|
|
|
67
67
|
export * from './lib/Chat/LouseConnect';
|
|
68
68
|
export { default as UpdatesCard } from './lib/UpdatesCard';
|
|
69
69
|
export * from './lib/UpdatesCard';
|
|
70
|
+
export { default as SwitchDeviceCard } from './lib/SwitchDeviceCard';
|
|
71
|
+
export * from './lib/SwitchDeviceCard';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
2
|
declare type ContainerProps = {
|
|
3
3
|
style?: CSSProperties;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const Container:
|
|
6
|
+
declare const Container: FC<ContainerProps>;
|
|
7
7
|
export default Container;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type VideoCallSwitchDevice = {
|
|
3
|
+
/**
|
|
4
|
+
* Modal heading
|
|
5
|
+
*/
|
|
6
|
+
heading?: string;
|
|
7
|
+
/**
|
|
8
|
+
* List of available devices(to get call AgoraRTC.getDevices()
|
|
9
|
+
*/
|
|
10
|
+
deviceList?: MediaDeviceInfo[];
|
|
11
|
+
/**
|
|
12
|
+
* Device which active for this moment
|
|
13
|
+
*/
|
|
14
|
+
activeDeviceID?: string;
|
|
15
|
+
/**
|
|
16
|
+
* On click handler that triggers when user click to any button in list
|
|
17
|
+
*/
|
|
18
|
+
onClickDeviceHandler?: (deviceID: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Type of device for switching
|
|
21
|
+
*/
|
|
22
|
+
deviceType: 'audio' | 'video';
|
|
23
|
+
/**
|
|
24
|
+
* Handler that trigger disables audio or video tracks, if not specify last button in modal won`t showing
|
|
25
|
+
*/
|
|
26
|
+
disableDeviceHandler?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* If device enabled: true, if muted: false
|
|
29
|
+
*/
|
|
30
|
+
isActive?: boolean;
|
|
31
|
+
};
|
|
32
|
+
declare const SwitchDeviceCard: React.FC<VideoCallSwitchDevice>;
|
|
33
|
+
export default SwitchDeviceCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SwitchDeviceCard';
|