@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.
@@ -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 React, { CSSProperties } from 'react';
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: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const Container: FC<ContainerProps>;
7
7
  export default Container;
@@ -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';
package/dist/index.d.ts CHANGED
@@ -385,7 +385,7 @@ declare type ContainerProps = {
385
385
  style?: CSSProperties;
386
386
  className?: string;
387
387
  };
388
- declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
388
+ declare const Container: FC<ContainerProps>;
389
389
 
390
390
  declare type SegmentType = {
391
391
  id: string;
@@ -502,4 +502,36 @@ declare type UpdatesPopupPropsType = {
502
502
  };
503
503
  declare const UpdatesCard: React.FC<UpdatesPopupPropsType>;
504
504
 
505
- export { AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, ChatListItem, ChatListSkeleton, ChatMessage, ChatMessageSkeleton, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, EmptyChatList, EmptyChatMessages, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$2 as LetterAvatar, ListButton, ListSelect, LouseConnect, AgoraMediaPlayer as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotesCardText, NotesEditor, _default$1 as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, Segment, SegmentType, _default as SelectImpressionEmoji, StatusTag, TabBar, Textarea, TherapistCard, TherapistInformationComponent, Toggle, UpdatesCard, UsersPsychologistScrollList, YourLocalTimeBlock, toast };
505
+ declare type VideoCallSwitchDevice = {
506
+ /**
507
+ * Modal heading
508
+ */
509
+ heading?: string;
510
+ /**
511
+ * List of available devices(to get call AgoraRTC.getDevices()
512
+ */
513
+ deviceList?: MediaDeviceInfo[];
514
+ /**
515
+ * Device which active for this moment
516
+ */
517
+ activeDeviceID?: string;
518
+ /**
519
+ * On click handler that triggers when user click to any button in list
520
+ */
521
+ onClickDeviceHandler?: (deviceID: string) => void;
522
+ /**
523
+ * Type of device for switching
524
+ */
525
+ deviceType: 'audio' | 'video';
526
+ /**
527
+ * Handler that trigger disables audio or video tracks, if not specify last button in modal won`t showing
528
+ */
529
+ disableDeviceHandler?: () => void;
530
+ /**
531
+ * If device enabled: true, if muted: false
532
+ */
533
+ isActive?: boolean;
534
+ };
535
+ declare const SwitchDeviceCard: React.FC<VideoCallSwitchDevice>;
536
+
537
+ export { AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, ChatListItem, ChatListSkeleton, ChatMessage, ChatMessageSkeleton, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, EmptyChatList, EmptyChatMessages, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$2 as LetterAvatar, ListButton, ListSelect, LouseConnect, AgoraMediaPlayer as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotesCardText, NotesEditor, _default$1 as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, Segment, SegmentType, _default as SelectImpressionEmoji, StatusTag, SwitchDeviceCard, TabBar, Textarea, TherapistCard, TherapistInformationComponent, Toggle, UpdatesCard, UsersPsychologistScrollList, YourLocalTimeBlock, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.5.6",
3
+ "version": "3.6.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",