@mindly/ui-components 3.17.0 → 3.17.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.
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
+ import { InAppBrowserOptions } from '@awesome-cordova-plugins/in-app-browser';
2
3
  declare type ChatMessageProps = {
3
4
  message: string;
4
5
  position: 'left' | 'right';
5
6
  time: number;
6
7
  timeZone?: string;
7
8
  status?: 'loading' | 'sent' | 'viewed';
9
+ messageType?: string;
10
+ target?: string;
11
+ options?: InAppBrowserOptions;
8
12
  };
9
13
  declare const _default: React.NamedExoticComponent<ChatMessageProps>;
10
14
  export default _default;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  declare type TextareaProps = {
3
3
  onSend: (value: string) => void;
4
4
  defaultValue?: string;
@@ -7,7 +7,7 @@ declare type TextareaProps = {
7
7
  isOpen: boolean;
8
8
  maxLength: number;
9
9
  onError?: (message: string) => void;
10
- onAttachClick?: () => void;
10
+ onFileSelect?: (files: FileList | null) => void;
11
11
  };
12
- declare const Textarea: FC<TextareaProps>;
13
- export default Textarea;
12
+ declare const _default: React.NamedExoticComponent<TextareaProps>;
13
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  import React, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText } from 'react';
3
3
  import { JSX as JSX$1 } from '@ionic/core/components';
4
4
  import { ILocalVideoTrack, IRemoteVideoTrack, ILocalAudioTrack, IRemoteAudioTrack } from 'agora-rtc-sdk-ng';
5
+ import { InAppBrowserOptions } from '@awesome-cordova-plugins/in-app-browser';
5
6
 
6
7
  interface ButtonProps {
7
8
  buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
@@ -203,7 +204,7 @@ declare type LetterAvatarProps = {
203
204
  fontSize?: number;
204
205
  onClick?: () => void;
205
206
  };
206
- declare const _default$b: React.NamedExoticComponent<LetterAvatarProps>;
207
+ declare const _default$c: React.NamedExoticComponent<LetterAvatarProps>;
207
208
 
208
209
  declare type ImageWithFallbackProps = JSX.IntrinsicElements['img'] & {
209
210
  onErrorContent: React.ReactElement;
@@ -215,7 +216,7 @@ declare type PersonDateTimeCardProps = {
215
216
  name: string;
216
217
  dateTime: Date;
217
218
  };
218
- declare const _default$a: React.NamedExoticComponent<PersonDateTimeCardProps>;
219
+ declare const _default$b: React.NamedExoticComponent<PersonDateTimeCardProps>;
219
220
 
220
221
  declare type PsychologistProfileType = {
221
222
  id: string;
@@ -428,7 +429,7 @@ declare type SelectImpressionEmojiProps = {
428
429
  onChange?: (val: ImpressionEmojiEnum) => void;
429
430
  };
430
431
 
431
- declare const _default$9: React.NamedExoticComponent<SelectImpressionEmojiProps>;
432
+ declare const _default$a: React.NamedExoticComponent<SelectImpressionEmojiProps>;
432
433
 
433
434
  interface FooterForBookingProps {
434
435
  eventHandler: (props?: React.SyntheticEvent) => void;
@@ -457,7 +458,7 @@ declare type MediaPlayerProps = {
457
458
  showControls: boolean;
458
459
  isScreenSharing?: boolean;
459
460
  } & HTMLAttributes<HTMLDivElement>;
460
- declare const _default$8: React.NamedExoticComponent<MediaPlayerProps>;
461
+ declare const _default$9: React.NamedExoticComponent<MediaPlayerProps>;
461
462
 
462
463
  declare type RoundButtonPropsType = {
463
464
  disabled?: boolean;
@@ -481,7 +482,7 @@ declare type ChatListItemProps = {
481
482
  time?: number;
482
483
  timeZone?: string;
483
484
  };
484
- declare const _default$7: React.NamedExoticComponent<ChatListItemProps>;
485
+ declare const _default$8: React.NamedExoticComponent<ChatListItemProps>;
485
486
 
486
487
  declare type ChatMessageProps = {
487
488
  message: string;
@@ -489,12 +490,15 @@ declare type ChatMessageProps = {
489
490
  time: number;
490
491
  timeZone?: string;
491
492
  status?: 'loading' | 'sent' | 'viewed';
493
+ messageType?: string;
494
+ target?: string;
495
+ options?: InAppBrowserOptions;
492
496
  };
493
- declare const _default$6: React.NamedExoticComponent<ChatMessageProps>;
497
+ declare const _default$7: React.NamedExoticComponent<ChatMessageProps>;
494
498
 
495
499
  declare const ChatMessageSkeleton: () => JSX.Element;
496
500
 
497
- declare const _default$5: React.MemoExoticComponent<() => JSX.Element>;
501
+ declare const _default$6: React.MemoExoticComponent<() => JSX.Element>;
498
502
 
499
503
  declare type EmptyChatList = {
500
504
  title?: string;
@@ -504,7 +508,7 @@ declare type EmptyChatList = {
504
508
  onClick?: () => void;
505
509
  };
506
510
  declare const EmptyChatList: FC<EmptyChatList>;
507
- declare const _default$4: React.NamedExoticComponent<EmptyChatList>;
511
+ declare const _default$5: React.NamedExoticComponent<EmptyChatList>;
508
512
 
509
513
  declare type EmptyChatMessagesProps = {
510
514
  title?: string;
@@ -520,9 +524,9 @@ declare type TextareaProps = {
520
524
  isOpen: boolean;
521
525
  maxLength: number;
522
526
  onError?: (message: string) => void;
523
- onAttachClick?: () => void;
527
+ onFileSelect?: (files: FileList | null) => void;
524
528
  };
525
- declare const Textarea: FC<TextareaProps>;
529
+ declare const _default$4: React.NamedExoticComponent<TextareaProps>;
526
530
 
527
531
  declare type LouseConnectProps = {
528
532
  onClick?: () => void;
@@ -673,4 +677,4 @@ declare type VideoCallInfoProps = {
673
677
  };
674
678
  declare const _default: React.NamedExoticComponent<VideoCallInfoProps>;
675
679
 
676
- export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, _default$7 as ChatListItem, _default$5 as ChatListSkeleton, _default$6 as ChatMessage, ChatMessageSkeleton, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, _default$4 as EmptyChatList, EmptyChatMessages, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$b as LetterAvatar, ListButton, ListSelect, LouseConnect, _default$8 as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, _default$a as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$9 as SelectImpressionEmoji, Skeleton, SpecialistAbout, _default$3 as SpecialistEducationCard, _default$2 as SpecialistProfileViewCard, SpecialistStatisticsCard, SpecialistWorkDirections, StatusTag, SwitchDeviceCard, TabBar, Tag, Textarea, TherapistCard, TherapistInformationComponent, Toggle, UpdatesCard, UsersPsychologistScrollList, _default as VideoCallInfo, _default$1 as VideoPlayer, YourLocalTimeBlock, toast };
680
+ export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, _default$8 as ChatListItem, _default$6 as ChatListSkeleton, _default$7 as ChatMessage, ChatMessageSkeleton, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, _default$5 as EmptyChatList, EmptyChatMessages, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$c as LetterAvatar, ListButton, ListSelect, LouseConnect, _default$9 as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, _default$b as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$a as SelectImpressionEmoji, Skeleton, SpecialistAbout, _default$3 as SpecialistEducationCard, _default$2 as SpecialistProfileViewCard, SpecialistStatisticsCard, SpecialistWorkDirections, StatusTag, SwitchDeviceCard, TabBar, Tag, _default$4 as Textarea, TherapistCard, TherapistInformationComponent, Toggle, UpdatesCard, UsersPsychologistScrollList, _default as VideoCallInfo, _default$1 as VideoPlayer, YourLocalTimeBlock, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.17.0",
3
+ "version": "3.17.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -18,6 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "-": "^0.0.1",
21
+ "@awesome-cordova-plugins/core": "^5.45.0",
22
+ "@awesome-cordova-plugins/in-app-browser": "^5.45.0",
21
23
  "@babel/polyfill": "^7.12.1",
22
24
  "@capacitor/keyboard": "^1.2.2",
23
25
  "@ionic/react": "^6.1.11",
@@ -33,6 +35,7 @@
33
35
  "@types/react-dom": "^17.0.9",
34
36
  "agora-rtc-sdk-ng": "^4.12.2",
35
37
  "auto": "^10.32.0",
38
+ "cordova-plugin-inappbrowser": "^5.0.0",
36
39
  "date-fns": "^2.28.0",
37
40
  "luxon": "^2.4.0",
38
41
  "react": "^17.0.2",