@mindly/ui-components 5.106.0 → 5.107.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.
Files changed (24) hide show
  1. package/dist/cjs/index.js +4 -4
  2. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +1 -0
  3. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +7 -6
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/OnBoardingProgressFeature.d.ts +1 -0
  5. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
  6. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
  7. package/dist/cjs/lib2/features/TariffFeature/styles.d.ts +0 -14
  8. package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
  9. package/dist/cjs/lib2/shared/utils/matching.d.ts +2 -1
  10. package/dist/cjs/lib2/shared/utils/mock.d.ts +2 -1
  11. package/dist/cjs/lib2/shared/utils/session.d.ts +2 -1
  12. package/dist/esm/index.js +4 -4
  13. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/OnBoardingPaywallScreenPreviewFeature.d.ts +1 -0
  14. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +7 -6
  15. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/OnBoardingProgressFeature.d.ts +1 -0
  16. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +5 -4
  17. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +5 -4
  18. package/dist/esm/lib2/features/TariffFeature/styles.d.ts +0 -14
  19. package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
  20. package/dist/esm/lib2/shared/utils/matching.d.ts +2 -1
  21. package/dist/esm/lib2/shared/utils/mock.d.ts +2 -1
  22. package/dist/esm/lib2/shared/utils/session.d.ts +2 -1
  23. package/dist/index.d.ts +5 -4
  24. package/package.json +9 -8
@@ -11,6 +11,7 @@ type OnBoardingPaywallScreenPreviewFeatureProps = {
11
11
  useAdditionalDiscount?: boolean;
12
12
  onBuyTariff?: (tariffId: string) => void;
13
13
  isLoading?: boolean;
14
+ termsOfUseLink?: string;
14
15
  } & OnBoardingPaywallScreenType;
15
16
  declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps>;
16
17
  export default OnBoardingPaywallScreenPreviewFeature;
@@ -1,9 +1,10 @@
1
+ import { WithTranslation } from 'react-i18next';
1
2
  export declare const images: {
2
3
  after: string;
3
4
  before: string;
4
5
  ccpa: string;
5
- forbes: string;
6
6
  gdpr: string;
7
+ soc2: string;
7
8
  guarantee: string;
8
9
  hipaa: string;
9
10
  mockup1: string;
@@ -11,20 +12,20 @@ export declare const images: {
11
12
  mockup3: string;
12
13
  mockup4: string;
13
14
  nwt: string;
15
+ time: string;
16
+ forbes: string;
17
+ verge: string;
14
18
  present: string;
15
19
  realStories: string;
16
20
  session: string;
17
- soc2: string;
18
- time: string;
19
- verge: string;
20
21
  };
21
- export declare const getCompareItems: (t?: any) => {
22
+ export declare const getCompareItems: (t?: WithTranslation['t']) => {
22
23
  id: string;
23
24
  label: string;
24
25
  hasInMindly: boolean;
25
26
  hasInCompetitors: boolean;
26
27
  }[];
27
- export declare const getHowItWorksItems: (t?: any) => {
28
+ export declare const getHowItWorksItems: (t?: WithTranslation['t']) => {
28
29
  id: string;
29
30
  title: string;
30
31
  description: string;
@@ -9,6 +9,7 @@ type OnBoardingProgressFeatureProps = {
9
9
  contentStyle?: OnBoardingScreenStyleOptions;
10
10
  startAdornment?: React.ReactNode;
11
11
  variant?: OnboardingVariant;
12
+ empty?: boolean;
12
13
  };
13
14
  declare const _default: React.NamedExoticComponent<OnBoardingProgressFeatureProps>;
14
15
  export default _default;
@@ -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?: any) => Tag[];
6
- export declare const TAGS_LIST_2_SUBSCRIPTION: (t?: any) => Tag[];
7
- export declare const TAGS_LIST_3_SUBSCRIPTION: (t?: any) => Tag[];
8
- export declare const TAGS_BY_RATING_SUBSCRIPTION: (t?: any) => Record<number, Tag[]>;
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[]>;
@@ -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?: any) => Tag[];
6
- export declare const TAGS_LIST_2_TRIAL: (t?: any) => Tag[];
7
- export declare const TAGS_LIST_3_TRIAL: (t?: any) => Tag[];
8
- export declare const TAGS_BY_RATING_TRIAL: (t?: any) => Record<number, Tag[]>;
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[]>;
@@ -1,11 +1,9 @@
1
1
  export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnType<{
2
2
  variant: {
3
3
  default: {
4
- label: string;
5
4
  checkbox: string;
6
5
  };
7
6
  blue: {
8
- label: string;
9
7
  checkbox: string;
10
8
  };
11
9
  };
@@ -35,11 +33,9 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
35
33
  }, undefined, import("tailwind-variants/dist/config").TVConfig<{
36
34
  variant: {
37
35
  default: {
38
- label: string;
39
36
  checkbox: string;
40
37
  };
41
38
  blue: {
42
- label: string;
43
39
  checkbox: string;
44
40
  };
45
41
  };
@@ -63,11 +59,9 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
63
59
  }, {
64
60
  variant: {
65
61
  default: {
66
- label: string;
67
62
  checkbox: string;
68
63
  };
69
64
  blue: {
70
- label: string;
71
65
  checkbox: string;
72
66
  };
73
67
  };
@@ -91,11 +85,9 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
91
85
  }>, {
92
86
  variant: {
93
87
  default: {
94
- label: string;
95
88
  checkbox: string;
96
89
  };
97
90
  blue: {
98
- label: string;
99
91
  checkbox: string;
100
92
  };
101
93
  };
@@ -125,11 +117,9 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
125
117
  }, import("tailwind-variants").TVReturnType<{
126
118
  variant: {
127
119
  default: {
128
- label: string;
129
120
  checkbox: string;
130
121
  };
131
122
  blue: {
132
- label: string;
133
123
  checkbox: string;
134
124
  };
135
125
  };
@@ -159,11 +149,9 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
159
149
  }, undefined, import("tailwind-variants/dist/config").TVConfig<{
160
150
  variant: {
161
151
  default: {
162
- label: string;
163
152
  checkbox: string;
164
153
  };
165
154
  blue: {
166
- label: string;
167
155
  checkbox: string;
168
156
  };
169
157
  };
@@ -187,11 +175,9 @@ export declare const tariffFeatureStyle: import("tailwind-variants").TVReturnTyp
187
175
  }, {
188
176
  variant: {
189
177
  default: {
190
- label: string;
191
178
  checkbox: string;
192
179
  };
193
180
  blue: {
194
- label: string;
195
181
  checkbox: string;
196
182
  };
197
183
  };
@@ -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: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
8
+ t: WithTranslation['t'];
9
9
  }) => JSX.Element | null;
@@ -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?: any) => {
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>) => TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
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: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>, locale: string) => string;
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';
@@ -2429,7 +2428,7 @@ declare const CircleRatingContext: React__default.Context<CircleRatingContextDat
2429
2428
  declare const CircleRatingProvider: ({ children, data, t, }: {
2430
2429
  children: JSX.Element;
2431
2430
  data: CircleRatingContextProps;
2432
- t: TFunction<react_i18next.FallbackNs<Ns>, KPrefix>;
2431
+ t: WithTranslation['t'];
2433
2432
  }) => JSX.Element | null;
2434
2433
 
2435
2434
  type VideoContextValue = {
@@ -3399,6 +3398,7 @@ type OnBoardingProgressFeatureProps = {
3399
3398
  contentStyle?: OnBoardingScreenStyleOptions;
3400
3399
  startAdornment?: React__default.ReactNode;
3401
3400
  variant?: OnboardingVariant;
3401
+ empty?: boolean;
3402
3402
  };
3403
3403
  declare const _default$k: React__default.NamedExoticComponent<OnBoardingProgressFeatureProps>;
3404
3404
 
@@ -3438,6 +3438,7 @@ type OnBoardingPaywallScreenPreviewFeatureProps$1 = {
3438
3438
  useAdditionalDiscount?: boolean;
3439
3439
  onBuyTariff?: (tariffId: string) => void;
3440
3440
  isLoading?: boolean;
3441
+ termsOfUseLink?: string;
3441
3442
  } & OnBoardingPaywallScreenType;
3442
3443
  declare const OnBoardingPaywallScreenPreviewFeature: FC<OnBoardingPaywallScreenPreviewFeatureProps$1>;
3443
3444
 
@@ -3885,10 +3886,10 @@ declare const getSessionsByYear: (sessions: Session[]) => Map<number, Session[]>
3885
3886
  declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
3886
3887
  declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
3887
3888
  declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
3888
- declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: TFunction<react_i18next.FallbackNs<Ns>, KPrefix>, locale: string) => string;
3889
+ declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
3889
3890
  declare const canManageSession: (sessionDate?: Date) => boolean;
3890
3891
 
3891
- declare const mockT: (translate?: Record<string, string>) => TFunction<react_i18next.FallbackNs<Ns>, KPrefix>;
3892
+ declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
3892
3893
  declare const specialist: Specialist;
3893
3894
  declare const currentUser: UserType;
3894
3895
  declare const listReviews: SpecialistReview$1[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.106.0",
3
+ "version": "5.107.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": "6.0.1",
19
- "@capacitor/haptics": "^6.0.1",
20
- "@capacitor/share": "6.0.2",
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": "6.1.2",
54
- "@capacitor/haptics": "^6.0.1",
55
- "@capacitor/keyboard": "^6.0.1",
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",