@mindly/ui-components 3.21.0 → 3.21.1

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.
@@ -5,11 +5,12 @@ export declare enum ConsultationCardType {
5
5
  }
6
6
  export declare type ConsultationCardProps = {
7
7
  type: ConsultationCardType;
8
+ sessionId: string;
8
9
  name: string;
9
10
  avatar?: string;
10
11
  time: number;
11
12
  timeZone?: string;
12
- onClick?: () => void;
13
+ onClick?: (sessionId: string) => void;
13
14
  isLoading?: boolean;
14
- onAvatarClick?: () => void;
15
+ onVideoCall?: (sessionId: string) => void;
15
16
  };
@@ -1,16 +1,18 @@
1
1
  import React from 'react';
2
2
  declare type ConsultationModalProps = {
3
3
  isOpen: boolean;
4
+ sessionId: string;
5
+ userId: string;
4
6
  isSessionFinish?: boolean;
5
7
  time: number;
6
8
  timeZone?: string;
7
9
  name: string;
8
10
  avatar?: string;
9
- onAvatarClick?: () => void;
10
- onWriteClick?: () => void;
11
- onSessionStartClick?: () => void;
12
- onCancel?: () => void;
13
- onReschedule?: () => void;
11
+ onAvatarClick?: (userId: string) => void;
12
+ onWriteClick?: (userId: string) => void;
13
+ onSessionStartClick?: (sessionId: string) => void;
14
+ onCancel?: (sessionId: string) => void;
15
+ onReschedule?: (sessionId: string) => void;
14
16
  onModalClose?: () => void;
15
17
  };
16
18
  declare const _default: React.NamedExoticComponent<ConsultationModalProps>;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export declare type SignUpSessionButtonProps = {
3
3
  label: string;
4
4
  isLoading?: boolean;
5
+ onClick?: () => void;
5
6
  };
6
7
  declare const _default: React.NamedExoticComponent<SignUpSessionButtonProps>;
7
8
  export default _default;
package/dist/index.d.ts CHANGED
@@ -697,13 +697,14 @@ declare enum ConsultationCardType {
697
697
  }
698
698
  declare type ConsultationCardProps = {
699
699
  type: ConsultationCardType;
700
+ sessionId: string;
700
701
  name: string;
701
702
  avatar?: string;
702
703
  time: number;
703
704
  timeZone?: string;
704
- onClick?: () => void;
705
+ onClick?: (sessionId: string) => void;
705
706
  isLoading?: boolean;
706
- onAvatarClick?: () => void;
707
+ onVideoCall?: (sessionId: string) => void;
707
708
  };
708
709
 
709
710
  declare const _default$5: React.NamedExoticComponent<ConsultationCardProps>;
@@ -711,6 +712,7 @@ declare const _default$5: React.NamedExoticComponent<ConsultationCardProps>;
711
712
  declare type SignUpSessionButtonProps = {
712
713
  label: string;
713
714
  isLoading?: boolean;
715
+ onClick?: () => void;
714
716
  };
715
717
  declare const _default$4: React.NamedExoticComponent<SignUpSessionButtonProps>;
716
718
 
@@ -724,16 +726,18 @@ declare const _default$3: React.NamedExoticComponent<EmptyConsultationsProps>;
724
726
 
725
727
  declare type ConsultationModalProps = {
726
728
  isOpen: boolean;
729
+ sessionId: string;
730
+ userId: string;
727
731
  isSessionFinish?: boolean;
728
732
  time: number;
729
733
  timeZone?: string;
730
734
  name: string;
731
735
  avatar?: string;
732
- onAvatarClick?: () => void;
733
- onWriteClick?: () => void;
734
- onSessionStartClick?: () => void;
735
- onCancel?: () => void;
736
- onReschedule?: () => void;
736
+ onAvatarClick?: (userId: string) => void;
737
+ onWriteClick?: (userId: string) => void;
738
+ onSessionStartClick?: (sessionId: string) => void;
739
+ onCancel?: (sessionId: string) => void;
740
+ onReschedule?: (sessionId: string) => void;
737
741
  onModalClose?: () => void;
738
742
  };
739
743
  declare const _default$2: React.NamedExoticComponent<ConsultationModalProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",