@mindly/ui-components 5.104.2 → 5.105.1-dev.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.
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
- package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +1 -1
- package/dist/cjs/lib2/features/ReviewCardFeature/ReviewCardFeature.d.ts +4 -1
- package/dist/cjs/lib2/features/ReviewCardFeature/styles.d.ts +109 -20
- package/dist/cjs/lib2/features/ReviewListFeature/ReviewListFeature.d.ts +3 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/ReviewSubscriptionSessionFeature.d.ts +3 -2
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/SpecialistReview.d.ts +2 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
- package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
- package/dist/cjs/lib2/shared/types/review.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
- package/dist/cjs/lib2/shared/ui/Input/Input.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/Input/types.d.ts +4 -0
- package/dist/cjs/lib2/shared/utils/matching.d.ts +2 -1
- package/dist/cjs/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/cjs/lib2/shared/utils/session.d.ts +2 -1
- package/dist/cjs/lib2/widgets/SpecialistDetailWidget/types.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +7 -0
- package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +1 -1
- package/dist/esm/lib2/features/ReviewCardFeature/ReviewCardFeature.d.ts +4 -1
- package/dist/esm/lib2/features/ReviewCardFeature/styles.d.ts +109 -20
- package/dist/esm/lib2/features/ReviewListFeature/ReviewListFeature.d.ts +3 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/ReviewSubscriptionSessionFeature.d.ts +3 -2
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/SpecialistReview.d.ts +2 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
- package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
- package/dist/esm/lib2/shared/types/review.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
- package/dist/esm/lib2/shared/ui/Input/Input.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/Input/types.d.ts +4 -0
- package/dist/esm/lib2/shared/utils/matching.d.ts +2 -1
- package/dist/esm/lib2/shared/utils/mock.d.ts +2 -1
- package/dist/esm/lib2/shared/utils/session.d.ts +2 -1
- package/dist/esm/lib2/widgets/SpecialistDetailWidget/types.d.ts +1 -0
- package/dist/index.d.ts +15 -5
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, SVGAttributes, KeyboardEvent, InputHTMLAttributes, KeyboardEventHandler, RefObject, EffectCallback, SVGProps, PropsWithChildren, ReactText, ReactElement, ChangeEvent } from 'react';
|
|
4
4
|
import { JSX as JSX$1 } from '@ionic/core/components';
|
|
5
|
-
import * as react_i18next from 'react-i18next';
|
|
6
5
|
import { WithTranslation } from 'react-i18next';
|
|
7
6
|
import { RatingComponentProps } from 'react-rating';
|
|
8
7
|
import { ScrollDetail, ScrollBaseDetail, RefresherEventDetail } from '@ionic/react';
|
|
@@ -1859,6 +1858,7 @@ type SpecialistReview$1 = {
|
|
|
1859
1858
|
*/
|
|
1860
1859
|
created_at: number;
|
|
1861
1860
|
review_status: 'on_review' | 'approved' | 'rejected';
|
|
1861
|
+
is_editable?: boolean;
|
|
1862
1862
|
};
|
|
1863
1863
|
type MindlyReview = {
|
|
1864
1864
|
id: string;
|
|
@@ -2412,7 +2412,7 @@ declare const CircleRatingContext: React__default.Context<CircleRatingContextDat
|
|
|
2412
2412
|
declare const CircleRatingProvider: ({ children, data, t, }: {
|
|
2413
2413
|
children: JSX.Element;
|
|
2414
2414
|
data: CircleRatingContextProps;
|
|
2415
|
-
t:
|
|
2415
|
+
t: WithTranslation['t'];
|
|
2416
2416
|
}) => JSX.Element | null;
|
|
2417
2417
|
|
|
2418
2418
|
type VideoContextValue = {
|
|
@@ -3177,6 +3177,7 @@ declare function GoogleCalendarModalFeature({ status, isOpen, onSync, isLoading,
|
|
|
3177
3177
|
|
|
3178
3178
|
type ReviewCardFeatureVariantType = 'default' | 'outlined' | 'full' | 'store';
|
|
3179
3179
|
declare const _default$u: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
|
|
3180
|
+
id?: string | undefined;
|
|
3180
3181
|
avatarSrc?: string | undefined;
|
|
3181
3182
|
name: string;
|
|
3182
3183
|
date: number;
|
|
@@ -3189,6 +3190,8 @@ declare const _default$u: React__default.MemoExoticComponent<React__default.Forw
|
|
|
3189
3190
|
className?: string | undefined;
|
|
3190
3191
|
useDate?: boolean | undefined;
|
|
3191
3192
|
locale?: string | undefined;
|
|
3193
|
+
isEditable?: boolean | undefined;
|
|
3194
|
+
onEditReview?: ((review: Pick<SpecialistReview$1, "id" | "review_rating" | "text_of_review">) => void) | undefined;
|
|
3192
3195
|
} & TranslationType & React__default.RefAttributes<HTMLDivElement>>>;
|
|
3193
3196
|
|
|
3194
3197
|
declare const ReviewsCardFeatureSkeleton: React__default.MemoExoticComponent<() => JSX.Element>;
|
|
@@ -3465,6 +3468,9 @@ type Props$1 = {
|
|
|
3465
3468
|
t?: WithTranslation['t'];
|
|
3466
3469
|
onLoadMore?(): void;
|
|
3467
3470
|
presentingElement?: HTMLElement;
|
|
3471
|
+
onEditSpecialistReview?: (review: Pick<SpecialistReview$1, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
3472
|
+
specialistName: string;
|
|
3473
|
+
specialistAvatar: string;
|
|
3468
3474
|
};
|
|
3469
3475
|
interface ReviewListFeatureRef {
|
|
3470
3476
|
openModalReviews: () => void;
|
|
@@ -3710,6 +3716,8 @@ declare const SessionReview: React__default.FC<SessionReviewProps>;
|
|
|
3710
3716
|
type SpecialistReviewProps = {
|
|
3711
3717
|
specialistName: string;
|
|
3712
3718
|
specialistAvatar: string;
|
|
3719
|
+
currentRate?: number;
|
|
3720
|
+
currentComment?: string;
|
|
3713
3721
|
specialistReviewNeeded?: boolean;
|
|
3714
3722
|
onSubmit: (data: {
|
|
3715
3723
|
rate: number;
|
|
@@ -3727,8 +3735,8 @@ type ReviewSubscriptionSessionFeatureProps = {
|
|
|
3727
3735
|
specialistName: string;
|
|
3728
3736
|
specialistAvatar: string;
|
|
3729
3737
|
isOpen: boolean;
|
|
3730
|
-
specialistReviewNeeded
|
|
3731
|
-
sessionReviewProps
|
|
3738
|
+
specialistReviewNeeded?: boolean;
|
|
3739
|
+
sessionReviewProps?: React__default.ComponentProps<typeof SessionReview> & {
|
|
3732
3740
|
onModalAppeared?: () => void;
|
|
3733
3741
|
};
|
|
3734
3742
|
specialistReviewProps: React__default.ComponentProps<typeof SpecialistReview> & {
|
|
@@ -3737,6 +3745,7 @@ type ReviewSubscriptionSessionFeatureProps = {
|
|
|
3737
3745
|
onClose: () => void;
|
|
3738
3746
|
onCloseClick: (step: 'session' | 'specialist') => void;
|
|
3739
3747
|
t?: WithTranslation['t'];
|
|
3748
|
+
initialStep?: 'session' | 'specialist';
|
|
3740
3749
|
};
|
|
3741
3750
|
declare const ReviewSubscriptionSessionFeature: React__default.FC<ReviewSubscriptionSessionFeatureProps>;
|
|
3742
3751
|
|
|
@@ -3850,7 +3859,7 @@ declare const getSessionsByYear: (sessions: Session[]) => Map<number, Session[]>
|
|
|
3850
3859
|
declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
|
|
3851
3860
|
declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
|
|
3852
3861
|
declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
|
|
3853
|
-
declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t:
|
|
3862
|
+
declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
|
|
3854
3863
|
declare const canManageSession: (sessionDate?: Date) => boolean;
|
|
3855
3864
|
|
|
3856
3865
|
declare const ONBOARDING_THEME_DEFAULT_COLORS: Record<OnboardingVariant, {
|
|
@@ -4290,6 +4299,7 @@ type SpecialistDetailWidgetProps = {
|
|
|
4290
4299
|
onRateSession?(): void;
|
|
4291
4300
|
onOpenSuperSpecialistArticle?(): void;
|
|
4292
4301
|
onOpenNewSpecialistArticle?(): void;
|
|
4302
|
+
onEditSpecialistReview?: (review: Pick<SpecialistReview$1, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
4293
4303
|
};
|
|
4294
4304
|
|
|
4295
4305
|
declare const _default$1: React__default.NamedExoticComponent<SpecialistDetailWidgetProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.105.1-dev.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rimraf dist",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/polyfill": "7.12.1",
|
|
18
|
-
"@capacitor/clipboard": "
|
|
19
|
-
"@capacitor/haptics": "
|
|
20
|
-
"@capacitor/
|
|
18
|
+
"@capacitor/clipboard": "7.0.1",
|
|
19
|
+
"@capacitor/haptics": "7.0.1",
|
|
20
|
+
"@capacitor/keyboard": "7.0.1",
|
|
21
|
+
"@capacitor/share": "7.0.1",
|
|
21
22
|
"@fontsource/inter": "5.0.8",
|
|
22
23
|
"@fontsource/inter-tight": "5.0.12",
|
|
23
24
|
"@ionic/react": "6.7.5",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"classnames": "2.3.2",
|
|
28
29
|
"date-fns": "2.30.0",
|
|
29
30
|
"html-react-parser": "3.0.16",
|
|
31
|
+
"i18next": "~23.11.5",
|
|
30
32
|
"luxon": "2.5.2",
|
|
31
33
|
"markdown-to-jsx": "7.5.0",
|
|
32
34
|
"react": "17.0.2",
|
|
@@ -50,9 +52,9 @@
|
|
|
50
52
|
},
|
|
51
53
|
"peerDependencies": {
|
|
52
54
|
"@babel/polyfill": "7.12.1",
|
|
53
|
-
"@capacitor/core": "
|
|
54
|
-
"@capacitor/haptics": "
|
|
55
|
-
"@capacitor/keyboard": "
|
|
55
|
+
"@capacitor/core": "7.4.1",
|
|
56
|
+
"@capacitor/haptics": "7.0.1",
|
|
57
|
+
"@capacitor/keyboard": "7.0.1",
|
|
56
58
|
"@fontsource/inter": "5.0.8",
|
|
57
59
|
"@fontsource/inter-tight": "5.0.12",
|
|
58
60
|
"@ionic/react": "6.7.5",
|
|
@@ -99,7 +101,6 @@
|
|
|
99
101
|
"@babel/core": "7.22.20",
|
|
100
102
|
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
|
|
101
103
|
"@babel/preset-typescript": "7.22.15",
|
|
102
|
-
"@capacitor/keyboard": "^6.0.1",
|
|
103
104
|
"@ionic/lab": "3.2.10",
|
|
104
105
|
"@rollup/plugin-commonjs": "20.0.0",
|
|
105
106
|
"@rollup/plugin-image": "2.1.1",
|