@mindly/ui-components 5.105.2-dev.1 → 5.105.2

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 (30) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -4
  3. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +4 -5
  4. package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +4 -5
  5. package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
  6. package/dist/cjs/lib2/shared/utils/matching.d.ts +1 -2
  7. package/dist/cjs/lib2/shared/utils/mock.d.ts +1 -2
  8. package/dist/cjs/lib2/shared/utils/session.d.ts +1 -2
  9. package/dist/esm/index.js +1 -1
  10. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingPaywallScreenPreviewFeature/conts.d.ts +3 -4
  11. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewSubscriptionSessionFeature/constants.d.ts +4 -5
  12. package/dist/esm/lib2/features/SessionReviewsFeature/ReviewTrialSessionFeature/constants.d.ts +4 -5
  13. package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +1 -1
  14. package/dist/esm/lib2/shared/utils/matching.d.ts +1 -2
  15. package/dist/esm/lib2/shared/utils/mock.d.ts +1 -2
  16. package/dist/esm/lib2/shared/utils/session.d.ts +1 -2
  17. package/dist/index.d.ts +4 -3
  18. package/package.json +8 -9
  19. package/dist/cjs/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +0 -7
  20. package/dist/cjs/lib2/features/MobilePickerFeature/index.d.ts +0 -1
  21. package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +0 -2
  22. package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +0 -2
  23. package/dist/cjs/lib2/shared/ui/Input/Input.d.ts +0 -4
  24. package/dist/cjs/lib2/shared/ui/Input/types.d.ts +0 -4
  25. package/dist/esm/lib2/features/MobilePickerFeature/MobilePickerFeature.d.ts +0 -7
  26. package/dist/esm/lib2/features/MobilePickerFeature/index.d.ts +0 -1
  27. package/dist/esm/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +0 -2
  28. package/dist/esm/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +0 -2
  29. package/dist/esm/lib2/shared/ui/Input/Input.d.ts +0 -4
  30. package/dist/esm/lib2/shared/ui/Input/types.d.ts +0 -4
@@ -1,6 +1,5 @@
1
- import { WithTranslation } from 'react-i18next';
2
1
  export declare const enTranslate: Record<string, string>;
3
- export declare const mockEnT: import("i18next").TFunction<"translation", undefined>;
2
+ export declare const mockEnT: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
4
3
  export declare const images: {
5
4
  after: string;
6
5
  before: string;
@@ -21,13 +20,13 @@ export declare const images: {
21
20
  time: string;
22
21
  verge: string;
23
22
  };
24
- export declare const getCompareItems: (t?: WithTranslation['t']) => {
23
+ export declare const getCompareItems: (t?: any) => {
25
24
  id: string;
26
25
  label: string;
27
26
  hasInMindly: boolean;
28
27
  hasInCompetitors: boolean;
29
28
  }[];
30
- export declare const getHowItWorksItems: (t?: WithTranslation['t']) => {
29
+ export declare const getHowItWorksItems: (t?: any) => {
31
30
  id: string;
32
31
  title: string;
33
32
  description: string;
@@ -1,9 +1,8 @@
1
- import { WithTranslation } from 'react-i18next';
2
1
  export type Tag = {
3
2
  id: string;
4
3
  name: string;
5
4
  };
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[]>;
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[]>;
@@ -1,9 +1,8 @@
1
- import { WithTranslation } from 'react-i18next';
2
1
  export type Tag = {
3
2
  id: string;
4
3
  name: string;
5
4
  };
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
+ 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[]>;
@@ -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: WithTranslation['t'];
8
+ t: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
9
9
  }) => JSX.Element | null;
@@ -1,7 +1,6 @@
1
- import { WithTranslation } from 'react-i18next';
2
1
  import { SpecialistAreaByMatch } from '../../features/SpecialistAreaListFeature/types';
3
2
  import { Specialist, UserType } from '../types';
4
- export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?: WithTranslation['t']) => {
3
+ export declare const getMatchingValues: (specialist: Specialist, user?: UserType, join?: boolean, t?: any) => {
5
4
  matchingByAreas: SpecialistAreaByMatch[];
6
5
  matchingBySpecialization: SpecialistAreaByMatch[];
7
6
  };
@@ -1,9 +1,8 @@
1
- import { WithTranslation } from 'react-i18next';
2
1
  import { ClientSpecialistContractStatusEnum } from '../types/contract';
3
2
  import { UserType } from '../types/user';
4
3
  import { Specialist } from '../types/specialistTypes';
5
4
  import { Session, SpecialistReview } from '../types';
6
- export declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
5
+ export declare const mockT: (translate?: Record<string, string>) => TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>;
7
6
  export declare const specialist: Specialist;
8
7
  export declare const currentUser: UserType;
9
8
  export declare const listReviews: SpecialistReview[];
@@ -1,4 +1,3 @@
1
- import { WithTranslation } from 'react-i18next';
2
1
  import { Session, SessionTime, SessionVariant } from '../types';
3
2
  export declare const SOON_SESSION_TIME_SECONDS: number;
4
3
  export declare const NEAR_SESSION_TIME_SECONDS: number;
@@ -10,5 +9,5 @@ export declare const getSessionsByYear: (sessions: Session[]) => Map<number, Ses
10
9
  export declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
11
10
  export declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
12
11
  export declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
13
- export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
12
+ export declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: TFunction<import("react-i18next").FallbackNs<Ns>, KPrefix>, locale: string) => string;
14
13
  export declare const canManageSession: (sessionDate?: Date) => boolean;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@
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';
5
6
  import { WithTranslation } from 'react-i18next';
6
7
  import { RatingComponentProps } from 'react-rating';
7
8
  import { ScrollDetail, ScrollBaseDetail, RefresherEventDetail } from '@ionic/react';
@@ -2412,7 +2413,7 @@ declare const CircleRatingContext: React__default.Context<CircleRatingContextDat
2412
2413
  declare const CircleRatingProvider: ({ children, data, t, }: {
2413
2414
  children: JSX.Element;
2414
2415
  data: CircleRatingContextProps;
2415
- t: WithTranslation['t'];
2416
+ t: TFunction<react_i18next.FallbackNs<Ns>, KPrefix>;
2416
2417
  }) => JSX.Element | null;
2417
2418
 
2418
2419
  type VideoContextValue = {
@@ -3859,10 +3860,10 @@ declare const getSessionsByYear: (sessions: Session[]) => Map<number, Session[]>
3859
3860
  declare const getSessionsByMonth: (sessions: Session[]) => Map<number, Session[]>;
3860
3861
  declare const getSessionsByDay: (sessions: Session[]) => Map<number, Session[]>;
3861
3862
  declare const splitSessions: (sessions: Session[]) => Map<string, Session[]>;
3862
- declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: WithTranslation['t'], locale: string) => string;
3863
+ declare const getSessionTimeLabel: (variant: SessionVariant, startSessionDate: Date, t: TFunction<react_i18next.FallbackNs<Ns>, KPrefix>, locale: string) => string;
3863
3864
  declare const canManageSession: (sessionDate?: Date) => boolean;
3864
3865
 
3865
- declare const mockT: (translate?: Record<string, string>) => WithTranslation['t'];
3866
+ declare const mockT: (translate?: Record<string, string>) => TFunction<react_i18next.FallbackNs<Ns>, KPrefix>;
3866
3867
  declare const specialist: Specialist;
3867
3868
  declare const currentUser: UserType;
3868
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.2-dev.1",
3
+ "version": "5.105.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -15,10 +15,9 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@babel/polyfill": "7.12.1",
18
- "@capacitor/clipboard": "7.0.1",
19
- "@capacitor/haptics": "7.0.1",
20
- "@capacitor/keyboard": "7.0.1",
21
- "@capacitor/share": "7.0.1",
18
+ "@capacitor/clipboard": "6.0.1",
19
+ "@capacitor/haptics": "^6.0.1",
20
+ "@capacitor/share": "6.0.2",
22
21
  "@fontsource/inter": "5.0.8",
23
22
  "@fontsource/inter-tight": "5.0.12",
24
23
  "@ionic/react": "6.7.5",
@@ -28,7 +27,6 @@
28
27
  "classnames": "2.3.2",
29
28
  "date-fns": "2.30.0",
30
29
  "html-react-parser": "3.0.16",
31
- "i18next": "~23.11.5",
32
30
  "luxon": "2.5.2",
33
31
  "markdown-to-jsx": "7.5.0",
34
32
  "react": "17.0.2",
@@ -52,9 +50,9 @@
52
50
  },
53
51
  "peerDependencies": {
54
52
  "@babel/polyfill": "7.12.1",
55
- "@capacitor/core": "7.4.1",
56
- "@capacitor/haptics": "7.0.1",
57
- "@capacitor/keyboard": "7.0.1",
53
+ "@capacitor/core": "6.1.2",
54
+ "@capacitor/haptics": "^6.0.1",
55
+ "@capacitor/keyboard": "^6.0.1",
58
56
  "@fontsource/inter": "5.0.8",
59
57
  "@fontsource/inter-tight": "5.0.12",
60
58
  "@ionic/react": "6.7.5",
@@ -101,6 +99,7 @@
101
99
  "@babel/core": "7.22.20",
102
100
  "@babel/plugin-proposal-private-property-in-object": "7.21.11",
103
101
  "@babel/preset-typescript": "7.22.15",
102
+ "@capacitor/keyboard": "^6.0.1",
104
103
  "@ionic/lab": "3.2.10",
105
104
  "@rollup/plugin-commonjs": "20.0.0",
106
105
  "@rollup/plugin-image": "2.1.1",
@@ -1,7 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as MobilePickerFeature } from './MobilePickerFeature';
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { TestTypeProps } from './types';
3
- declare const Input: FC<TestTypeProps>;
4
- export default Input;
@@ -1,4 +0,0 @@
1
- import { JSX } from '@ionic/core';
2
- export interface TestTypeProps extends JSX.IonInput {
3
- custom: string;
4
- }
@@ -1,7 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as MobilePickerFeature } from './MobilePickerFeature';
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { TestTypeProps } from './types';
3
- declare const Input: FC<TestTypeProps>;
4
- export default Input;
@@ -1,4 +0,0 @@
1
- import { JSX } from '@ionic/core';
2
- export interface TestTypeProps extends JSX.IonInput {
3
- custom: string;
4
- }