@mindly/ui-components 5.98.8 → 5.98.10
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 +6 -6
- package/dist/cjs/lib2/features/CardModal/CardModal.d.ts +1 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/ReviewSubscriptionSessionFeature.d.ts +1 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/ReviewTrialSessionFeature.d.ts +6 -5
- package/dist/esm/index.js +6 -6
- package/dist/esm/lib2/features/CardModal/CardModal.d.ts +1 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/ReviewSubscriptionSessionFeature.d.ts +1 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/ReviewTrialSessionFeature.d.ts +6 -5
- package/dist/index.d.ts +8 -5
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export type ReviewSubscriptionSessionFeatureProps = {
|
|
|
14
14
|
onModalAppeared?: () => void;
|
|
15
15
|
};
|
|
16
16
|
onClose: () => void;
|
|
17
|
+
onCloseClick: (step: 'session' | 'specialist') => void;
|
|
17
18
|
t?: WithTranslation['t'];
|
|
18
19
|
};
|
|
19
20
|
declare const ReviewSubscriptionSessionFeature: React.FC<ReviewSubscriptionSessionFeatureProps>;
|
|
@@ -4,6 +4,11 @@ export type ReviewTrialSessionFeatureProps = {
|
|
|
4
4
|
specialistName: string;
|
|
5
5
|
specialistAvatar: string;
|
|
6
6
|
isOpen: boolean;
|
|
7
|
+
onModalAppeared?: () => void;
|
|
8
|
+
onStarsClick?: (rate: number) => void;
|
|
9
|
+
onReasonClick?: (rate: number, reasons: string[]) => void;
|
|
10
|
+
onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
|
|
11
|
+
onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
|
|
7
12
|
onSubmit: (data: {
|
|
8
13
|
rate: number;
|
|
9
14
|
reasons: string[];
|
|
@@ -11,11 +16,7 @@ export type ReviewTrialSessionFeatureProps = {
|
|
|
11
16
|
}) => void;
|
|
12
17
|
showMotivation?: () => void;
|
|
13
18
|
continueTherapy?: () => void;
|
|
14
|
-
|
|
15
|
-
onStarsClick?: (rate: number) => void;
|
|
16
|
-
onReasonClick?: (rate: number, reasons: string[]) => void;
|
|
17
|
-
onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
|
|
18
|
-
onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
|
|
19
|
+
onCloseClick?: () => void;
|
|
19
20
|
onClose?: () => void;
|
|
20
21
|
t?: WithTranslation['t'];
|
|
21
22
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2730,6 +2730,7 @@ type CardModalProps = {
|
|
|
2730
2730
|
canDismiss?: boolean;
|
|
2731
2731
|
isShowHandle?: boolean;
|
|
2732
2732
|
isShowCloseButton?: boolean;
|
|
2733
|
+
onCloseClick?: () => void;
|
|
2733
2734
|
renderHeader?: (props: {
|
|
2734
2735
|
backButton?: boolean;
|
|
2735
2736
|
onClose: () => void;
|
|
@@ -3361,6 +3362,11 @@ type ReviewTrialSessionFeatureProps = {
|
|
|
3361
3362
|
specialistName: string;
|
|
3362
3363
|
specialistAvatar: string;
|
|
3363
3364
|
isOpen: boolean;
|
|
3365
|
+
onModalAppeared?: () => void;
|
|
3366
|
+
onStarsClick?: (rate: number) => void;
|
|
3367
|
+
onReasonClick?: (rate: number, reasons: string[]) => void;
|
|
3368
|
+
onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
|
|
3369
|
+
onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
|
|
3364
3370
|
onSubmit: (data: {
|
|
3365
3371
|
rate: number;
|
|
3366
3372
|
reasons: string[];
|
|
@@ -3368,11 +3374,7 @@ type ReviewTrialSessionFeatureProps = {
|
|
|
3368
3374
|
}) => void;
|
|
3369
3375
|
showMotivation?: () => void;
|
|
3370
3376
|
continueTherapy?: () => void;
|
|
3371
|
-
|
|
3372
|
-
onStarsClick?: (rate: number) => void;
|
|
3373
|
-
onReasonClick?: (rate: number, reasons: string[]) => void;
|
|
3374
|
-
onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
|
|
3375
|
-
onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
|
|
3377
|
+
onCloseClick?: () => void;
|
|
3376
3378
|
onClose?: () => void;
|
|
3377
3379
|
t?: WithTranslation['t'];
|
|
3378
3380
|
};
|
|
@@ -3423,6 +3425,7 @@ type ReviewSubscriptionSessionFeatureProps = {
|
|
|
3423
3425
|
onModalAppeared?: () => void;
|
|
3424
3426
|
};
|
|
3425
3427
|
onClose: () => void;
|
|
3428
|
+
onCloseClick: (step: 'session' | 'specialist') => void;
|
|
3426
3429
|
t?: WithTranslation['t'];
|
|
3427
3430
|
};
|
|
3428
3431
|
declare const ReviewSubscriptionSessionFeature: React__default.FC<ReviewSubscriptionSessionFeatureProps>;
|