@mindly/ui-components 3.5.7 → 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.
@@ -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';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare type ListItemProps = {
3
+ isActive?: boolean;
4
+ icon?: string;
5
+ label?: string;
6
+ } & React.LiHTMLAttributes<HTMLLIElement>;
7
+ declare const ListItem: React.FC<ListItemProps>;
8
+ export default ListItem;
@@ -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';