profinansy-ui-lib 3.1.6 → 3.1.8
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/api/initial.d.ts +2 -1
- package/dist/api/quiz/quiz.d.ts +8 -1
- package/dist/api/quiz/quiz.tyled.d.ts +10 -0
- package/dist/common.types.d.ts +1 -0
- package/dist/components/blocks/footer/constants.d.ts +1 -64
- package/dist/components/blocks/sideMenu/SideMenu.d.ts +2 -1
- package/dist/components/blocks/sideMenu/components/Premium/Premium.d.ts +1 -4
- package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/Content.d.ts +10 -0
- package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/ModalQuiz.d.ts +4 -2
- package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/Step1/Step1.d.ts +3 -1
- package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/Step2/Step2.d.ts +3 -1
- package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/Step3/Step3.d.ts +1 -1
- package/dist/components/blocks/sideMenu/components/SubPages/SubPages.styled.d.ts +2 -2
- package/dist/hooks/useCurrentPath.d.ts +1 -0
- package/dist/index.js +64 -19
- package/dist/urls/products/education/educationLinks.d.ts +10 -0
- package/dist/urls/products/investments/investments.d.ts +38 -17
- package/package.json +1 -1
package/dist/api/initial.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IApiSettings } from './api';
|
|
2
2
|
type TMethod = 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
3
|
-
|
|
3
|
+
type TBody = Record<string, unknown>;
|
|
4
|
+
export declare const apiHelper: (url: string, method: TMethod, settings: IApiSettings, body?: TBody) => Promise<any>;
|
|
4
5
|
export {};
|
package/dist/api/quiz/quiz.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IApiSettings } from '../api';
|
|
2
|
+
import { IQuiz } from './quiz.tyled';
|
|
2
3
|
export declare const getQuiz: (apiSettings: IApiSettings, code?: string) => Promise<{
|
|
3
|
-
data:
|
|
4
|
+
data: IQuiz;
|
|
5
|
+
ok: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const setAnswerQuiz: (apiSettings: IApiSettings, payload: {
|
|
8
|
+
code: string;
|
|
9
|
+
answer: string;
|
|
10
|
+
}) => Promise<{
|
|
4
11
|
ok: boolean;
|
|
5
12
|
}>;
|
package/dist/common.types.d.ts
CHANGED
|
@@ -6,70 +6,7 @@ export declare const getFooterNavRows: (userRole: UserRole, isMirrorLMS: boolean
|
|
|
6
6
|
name: string;
|
|
7
7
|
href: string;
|
|
8
8
|
}[];
|
|
9
|
-
}[][] | (
|
|
10
|
-
name: string;
|
|
11
|
-
Icon: any;
|
|
12
|
-
href: string;
|
|
13
|
-
subPages: {
|
|
14
|
-
name: string;
|
|
15
|
-
Icon: any;
|
|
16
|
-
href: string;
|
|
17
|
-
}[];
|
|
18
|
-
} | {
|
|
19
|
-
name: string;
|
|
20
|
-
Icon: any;
|
|
21
|
-
href: string;
|
|
22
|
-
subPages: ({
|
|
23
|
-
name: string;
|
|
24
|
-
Icon: any;
|
|
25
|
-
locked: boolean;
|
|
26
|
-
subPages: {
|
|
27
|
-
name: string;
|
|
28
|
-
href: string;
|
|
29
|
-
locked: boolean;
|
|
30
|
-
}[];
|
|
31
|
-
href?: undefined;
|
|
32
|
-
unavailable?: undefined;
|
|
33
|
-
available?: undefined;
|
|
34
|
-
innerPages?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
name: string;
|
|
37
|
-
Icon: any;
|
|
38
|
-
href: string;
|
|
39
|
-
locked: boolean;
|
|
40
|
-
unavailable: boolean;
|
|
41
|
-
available: boolean;
|
|
42
|
-
innerPages: string[];
|
|
43
|
-
subPages?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
name: string;
|
|
46
|
-
Icon: any;
|
|
47
|
-
href: string;
|
|
48
|
-
locked?: undefined;
|
|
49
|
-
subPages?: undefined;
|
|
50
|
-
unavailable?: undefined;
|
|
51
|
-
available?: undefined;
|
|
52
|
-
innerPages?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
name: string;
|
|
55
|
-
Icon: any;
|
|
56
|
-
href: string;
|
|
57
|
-
locked: boolean;
|
|
58
|
-
innerPages: string[];
|
|
59
|
-
subPages?: undefined;
|
|
60
|
-
unavailable?: undefined;
|
|
61
|
-
available?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
name: string;
|
|
64
|
-
Icon: any;
|
|
65
|
-
href: string;
|
|
66
|
-
locked: boolean;
|
|
67
|
-
unavailable: boolean;
|
|
68
|
-
available: boolean;
|
|
69
|
-
subPages?: undefined;
|
|
70
|
-
innerPages?: undefined;
|
|
71
|
-
})[];
|
|
72
|
-
})[] | {
|
|
9
|
+
}[][] | ({
|
|
73
10
|
name: string;
|
|
74
11
|
Icon: any;
|
|
75
12
|
href: string;
|
|
@@ -3,8 +3,9 @@ import { ISideModal } from './SideModal.typed';
|
|
|
3
3
|
export declare const ScrollContext: React.Context<{
|
|
4
4
|
closeSubPagesSide: number;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const SideMenuContext: React.Context<{
|
|
7
7
|
apiSettings: any;
|
|
8
|
+
setShowQuiz: any;
|
|
8
9
|
}>;
|
|
9
10
|
declare const SideMenu: ({ banners, category, isTest, isProfinansy, isLeaderboardPermission, userRole, onRouteChange, apiSettings }: ISideModal) => JSX.Element;
|
|
10
11
|
export { SideMenu };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
interface IProps {
|
|
2
2
|
isShowHint: boolean;
|
|
3
3
|
setIsShowHint: (val: boolean) => void;
|
|
4
|
-
setIsOpenQuiz: (val: boolean) => void;
|
|
5
4
|
isOpenMode: boolean;
|
|
6
|
-
isOpenQuiz: boolean;
|
|
7
|
-
name: string;
|
|
8
5
|
}
|
|
9
|
-
declare const Premium: ({ isShowHint, isOpenMode, setIsShowHint
|
|
6
|
+
declare const Premium: ({ isShowHint, isOpenMode, setIsShowHint }: IProps) => JSX.Element;
|
|
10
7
|
export { Premium };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
setIsOpen: (val: null) => void;
|
|
3
|
+
handleRouteChange: (url: string) => void;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
step: number;
|
|
7
|
+
setStep: (val: number) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Content: ({ step, name, handleRouteChange, setIsOpen, description, setStep }: IProps) => JSX.Element;
|
|
10
|
+
export { Content };
|
package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/ModalQuiz.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
interface IProps {
|
|
2
2
|
isOpen: boolean;
|
|
3
|
-
setIsOpen: (val:
|
|
3
|
+
setIsOpen: (val: null) => void;
|
|
4
|
+
handleRouteChange: (url: string) => void;
|
|
4
5
|
name: string;
|
|
6
|
+
description: string;
|
|
5
7
|
}
|
|
6
|
-
declare const ModalQuiz: ({ isOpen, name, setIsOpen }: IProps) => JSX.Element;
|
|
8
|
+
declare const ModalQuiz: ({ isOpen, name, setIsOpen, description, handleRouteChange }: IProps) => JSX.Element;
|
|
7
9
|
export { ModalQuiz };
|
package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/Step1/Step1.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
interface IProps {
|
|
2
2
|
name: string;
|
|
3
|
+
description: string;
|
|
3
4
|
setStep: (val: number) => void;
|
|
5
|
+
handleRouteChange: (url: string) => void;
|
|
4
6
|
}
|
|
5
|
-
declare const Step1: ({ name, setStep }: IProps) => JSX.Element;
|
|
7
|
+
declare const Step1: ({ name, description, setStep, handleRouteChange }: IProps) => JSX.Element;
|
|
6
8
|
export { Step1 };
|
package/dist/components/blocks/sideMenu/components/Premium/components/ModalQuiz/Step2/Step2.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { IQuiz } from '../../../../../../../../api/quiz/quiz.tyled';
|
|
1
2
|
interface IProps {
|
|
2
3
|
setStep: (val: number) => void;
|
|
4
|
+
data: IQuiz | null;
|
|
3
5
|
}
|
|
4
|
-
declare const Step2: ({ setStep }: IProps) => JSX.Element;
|
|
6
|
+
declare const Step2: ({ setStep, data }: IProps) => JSX.Element;
|
|
5
7
|
export { Step2 };
|
|
@@ -9,6 +9,6 @@ export declare const Lock: import("styled-components").StyledComponent<any, impo
|
|
|
9
9
|
isActive: boolean;
|
|
10
10
|
}, string | number | symbol>;
|
|
11
11
|
export declare const Chevron: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
isMobile: boolean;
|
|
12
|
+
$isOpen: boolean;
|
|
13
|
+
$isMobile: boolean;
|
|
14
14
|
}, string | number | symbol>;
|