@mindly/ui-components 5.105.2 → 5.105.3-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 +6 -6
- 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/OnBoardingPaywallScreenPreviewFeature.d.ts +3 -2
- package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -4
- 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/onBoardingFlow.type.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/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/OnBoardingPaywallScreenPreviewFeature.d.ts +3 -2
- package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -4
- 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/onBoardingFlow.type.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/index.d.ts +5 -5
- package/package.json +9 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
selections: Record<string, string[]>;
|
|
3
|
+
defaults?: Record<string, string>;
|
|
4
|
+
onChange(value: Record<string, string>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const MobilePickerFeature: ({ selections, defaults, onChange, }: Props) => JSX.Element;
|
|
7
|
+
export default MobilePickerFeature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MobilePickerFeature } from './MobilePickerFeature';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { OnBoardingPaywallScreenType, OnboardingVariant, Specialist
|
|
2
|
+
import { OnBoardingPaywallScreenType, OnboardingVariant, Specialist } from '../../../shared';
|
|
3
3
|
import 'slick-carousel/slick/slick.css';
|
|
4
4
|
import 'slick-carousel/slick/slick-theme.css';
|
|
5
|
+
import { ISpecialistReview } from '../../../..';
|
|
5
6
|
type OnBoardingPaywallScreenPreviewFeatureProps = {
|
|
6
7
|
variant?: OnboardingVariant;
|
|
7
8
|
specialists: Specialist[];
|
|
8
|
-
reviews:
|
|
9
|
+
reviews: ISpecialistReview[];
|
|
9
10
|
locale?: string;
|
|
10
11
|
useAdditionalDiscount?: boolean;
|
|
11
12
|
onBuyTariff?: (tariffId: string) => void;
|
package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const mockEnT: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
2
|
export declare const images: {
|
|
4
3
|
after: string;
|
|
5
4
|
before: string;
|
|
@@ -20,13 +19,13 @@ export declare const images: {
|
|
|
20
19
|
time: string;
|
|
21
20
|
verge: string;
|
|
22
21
|
};
|
|
23
|
-
export declare const getCompareItems: (t?:
|
|
22
|
+
export declare const getCompareItems: (t?: WithTranslation['t']) => {
|
|
24
23
|
id: string;
|
|
25
24
|
label: string;
|
|
26
25
|
hasInMindly: boolean;
|
|
27
26
|
hasInCompetitors: boolean;
|
|
28
27
|
}[];
|
|
29
|
-
export declare const getHowItWorksItems: (t?:
|
|
28
|
+
export declare const getHowItWorksItems: (t?: WithTranslation['t']) => {
|
|
30
29
|
id: string;
|
|
31
30
|
title: string;
|
|
32
31
|
description: string;
|
package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
export type Tag = {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const TAGS_LIST_1_SUBSCRIPTION: (t?:
|
|
6
|
-
export declare const TAGS_LIST_2_SUBSCRIPTION: (t?:
|
|
7
|
-
export declare const TAGS_LIST_3_SUBSCRIPTION: (t?:
|
|
8
|
-
export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?:
|
|
6
|
+
export declare const TAGS_LIST_1_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
7
|
+
export declare const TAGS_LIST_2_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
8
|
+
export declare const TAGS_LIST_3_SUBSCRIPTION: (t?: WithTranslation['t']) => Tag[];
|
|
9
|
+
export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?: WithTranslation['t']) => Record<number, Tag[]>;
|
package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
export type Tag = {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const TAGS_LIST_1_TRIAL: (t?:
|
|
6
|
-
export declare const TAGS_LIST_2_TRIAL: (t?:
|
|
7
|
-
export declare const TAGS_LIST_3_TRIAL: (t?:
|
|
8
|
-
export declare const TAGS_BY_RATING_TRIAL: (t?:
|
|
6
|
+
export declare const TAGS_LIST_1_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
7
|
+
export declare const TAGS_LIST_2_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
8
|
+
export declare const TAGS_LIST_3_TRIAL: (t?: WithTranslation['t']) => Tag[];
|
|
9
|
+
export declare const TAGS_BY_RATING_TRIAL: (t?: WithTranslation['t']) => Record<number, Tag[]>;
|
|
@@ -5,5 +5,5 @@ export declare const CircleRatingContext: React.Context<CircleRatingContextData>
|
|
|
5
5
|
export declare const CircleRatingProvider: ({ children, data, t, }: {
|
|
6
6
|
children: JSX.Element;
|
|
7
7
|
data: CircleRatingContextProps;
|
|
8
|
-
t:
|
|
8
|
+
t: WithTranslation['t'];
|
|
9
9
|
}) => JSX.Element | null;
|
|
@@ -149,6 +149,7 @@ export type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingS
|
|
|
149
149
|
tariffs: Tariff[];
|
|
150
150
|
percentDiscount: number;
|
|
151
151
|
additionalDiscount?: number;
|
|
152
|
+
promocodeDuration?: number;
|
|
152
153
|
};
|
|
153
154
|
export type OnBoardingCompareScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
154
155
|
title: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { SpecialistAreaByMatch } from '../../features/SpecialistAreaListFeature/types';
|
|
2
3
|
import { Specialist, UserType } from '../types';
|
|
3
|
-
export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?:
|
|
4
|
+
export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?: WithTranslation['t']) => {
|
|
4
5
|
matchingByAreas: SpecialistAreaByMatch[];
|
|
5
6
|
matchingBySpecialization: SpecialistAreaByMatch[];
|
|
6
7
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { ClientSpecialistContractStatusEnum } from '../types/contract';
|
|
2
3
|
import { UserType } from '../types/user';
|
|
3
4
|
import { Specialist } from '../types/specialistTypes';
|
|
4
5
|
import { Session, SpecialistReview } from '../types';
|
|
5
|
-
export declare const mockT: (translate?: Record<string, string>) =>
|
|
6
|
+
export declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
|
|
6
7
|
export declare const specialist: Specialist;
|
|
7
8
|
export declare const currentUser: UserType;
|
|
8
9
|
export declare const listReviews: SpecialistReview[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
1
2
|
import { Session, SessionTime, SessionVariant } from '../types';
|
|
2
3
|
export declare const SOON_SESSION_TIME_SECONDS: number;
|
|
3
4
|
export declare const NEAR_SESSION_TIME_SECONDS: number;
|
|
@@ -9,5 +10,5 @@ export declare const getSessionsByYear: (sessions: Session[]) => Map<number, Ses
|
|
|
9
10
|
export declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
|
|
10
11
|
export declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
|
|
11
12
|
export declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
|
|
12
|
-
export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t:
|
|
13
|
+
export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
|
|
13
14
|
export declare const canManageSession: (sessionDate?: Date) => boolean;
|
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';
|
|
@@ -1682,6 +1681,7 @@ type OnBoardingPaywallScreenType = OnBoardingBaseScreenType & OnBoardingScreenBu
|
|
|
1682
1681
|
tariffs: Tariff[];
|
|
1683
1682
|
percentDiscount: number;
|
|
1684
1683
|
additionalDiscount?: number;
|
|
1684
|
+
promocodeDuration?: number;
|
|
1685
1685
|
};
|
|
1686
1686
|
type OnBoardingCompareScreenType = OnBoardingBaseScreenType & OnBoardingScreenButtonType & OnBoardingScreenTranslationsType & OnBoardingScreenErrorsType & {
|
|
1687
1687
|
title: string;
|
|
@@ -2413,7 +2413,7 @@ declare const CircleRatingContext: React__default.Context<CircleRatingContextDat
|
|
|
2413
2413
|
declare const CircleRatingProvider: ({ children, data, t, }: {
|
|
2414
2414
|
children: JSX.Element;
|
|
2415
2415
|
data: CircleRatingContextProps;
|
|
2416
|
-
t:
|
|
2416
|
+
t: WithTranslation['t'];
|
|
2417
2417
|
}) => JSX.Element | null;
|
|
2418
2418
|
|
|
2419
2419
|
type VideoContextValue = {
|
|
@@ -3412,7 +3412,7 @@ declare const OnBoardingCompareScreenPreviewFeature: FC<OnBoardingPaywallScreenP
|
|
|
3412
3412
|
type OnBoardingPaywallScreenPreviewFeatureProps = {
|
|
3413
3413
|
variant?: OnboardingVariant;
|
|
3414
3414
|
specialists: Specialist[];
|
|
3415
|
-
reviews:
|
|
3415
|
+
reviews: ISpecialistReview[];
|
|
3416
3416
|
locale?: string;
|
|
3417
3417
|
useAdditionalDiscount?: boolean;
|
|
3418
3418
|
onBuyTariff?: (tariffId: string) => void;
|
|
@@ -3860,10 +3860,10 @@ declare const getSessionsByYear: (sessions: Session[]) => Map<number, Session[]>
|
|
|
3860
3860
|
declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
|
|
3861
3861
|
declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
|
|
3862
3862
|
declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
|
|
3863
|
-
declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t:
|
|
3863
|
+
declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
|
|
3864
3864
|
declare const canManageSession: (sessionDate?: Date) => boolean;
|
|
3865
3865
|
|
|
3866
|
-
declare const mockT: (translate?: Record<string, string>) =>
|
|
3866
|
+
declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
|
|
3867
3867
|
declare const specialist: Specialist;
|
|
3868
3868
|
declare const currentUser: UserType;
|
|
3869
3869
|
declare const listReviews: SpecialistReview$1[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "5.105.
|
|
3
|
+
"version": "5.105.3-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",
|