profinansy-ui-lib 3.0.29 → 3.0.30
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/components/header/components/HeaderCenter/HeaderCenter.d.ts +1 -2
- package/dist/components/header/contstants/authLinks.d.ts +10 -1
- package/dist/components/header/contstants/links.d.ts +1 -1
- package/dist/components/header/contstants/paidLinks.d.ts +10 -1
- package/dist/index.js +4 -31
- package/package.json +1 -1
- package/dist/components/header/components/PartnerButton/PartnerButton.d.ts +0 -8
- package/dist/components/header/components/PartnerButton/PartnerButton.styled.d.ts +0 -2
|
@@ -5,7 +5,6 @@ interface IProps {
|
|
|
5
5
|
userRole: UserRole;
|
|
6
6
|
leaderBoardPermission: boolean;
|
|
7
7
|
clubAccess: boolean;
|
|
8
|
-
isPartner: boolean;
|
|
9
8
|
isLmsMirror: boolean;
|
|
10
9
|
isConfirmPartner: boolean;
|
|
11
10
|
isPossibleTrial: boolean;
|
|
@@ -17,5 +16,5 @@ interface IProps {
|
|
|
17
16
|
SearchBox: () => JSX.Element;
|
|
18
17
|
setOffer: (val: boolean) => void;
|
|
19
18
|
}
|
|
20
|
-
declare const HeaderCenter: ({ hostname, hostnameLenta, userRole, leaderBoardPermission, clubAccess, isLmsMirror,
|
|
19
|
+
declare const HeaderCenter: ({ hostname, hostnameLenta, userRole, leaderBoardPermission, clubAccess, isLmsMirror, isPossibleTrial, burgerOpened, isConfirmPartner, handleRouteChange, setBurgerOpened, onLogout, onCloseBurger, SearchBox, setOffer }: IProps) => JSX.Element;
|
|
21
20
|
export { HeaderCenter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const authorizedLinks: (hostname: string, hostnameLenta: string, leaderBoardPermission: boolean) => ({
|
|
1
|
+
export declare const authorizedLinks: (hostname: string, hostnameLenta: string, leaderBoardPermission: boolean, isConfirmPartner: boolean) => ({
|
|
2
2
|
name: string;
|
|
3
3
|
Icon: any;
|
|
4
4
|
href: string;
|
|
@@ -39,4 +39,13 @@ export declare const authorizedLinks: (hostname: string, hostnameLenta: string,
|
|
|
39
39
|
href: string;
|
|
40
40
|
})[];
|
|
41
41
|
innerPages?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
name: string;
|
|
44
|
+
Icon: any;
|
|
45
|
+
subPages: {
|
|
46
|
+
name: string;
|
|
47
|
+
href: string;
|
|
48
|
+
}[];
|
|
49
|
+
href?: undefined;
|
|
50
|
+
innerPages?: undefined;
|
|
42
51
|
})[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HeaderLinkType, UserRole } from '../../../common.types';
|
|
2
2
|
export declare const ABOUT_LINK = "https://sites.profinansy.ru/about_profinansyru";
|
|
3
|
-
export declare const getMainLinks: (hostname: string, hostnameLenta: string, isLmsMirror: boolean, leaderBoardPermission: boolean, clubPermission: boolean) => Record<UserRole, HeaderLinkType[]>;
|
|
3
|
+
export declare const getMainLinks: (hostname: string, hostnameLenta: string, isLmsMirror: boolean, leaderBoardPermission: boolean, clubPermission: boolean, isConfirmPartner: boolean) => Record<UserRole, HeaderLinkType[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const paidLinks: (hostname: string, hostnameLenta: string, leaderBoardPermission: boolean) => ({
|
|
1
|
+
export declare const paidLinks: (hostname: string, hostnameLenta: string, leaderBoardPermission: boolean, isConfirmPartner: boolean) => ({
|
|
2
2
|
name: string;
|
|
3
3
|
Icon: any;
|
|
4
4
|
href: string;
|
|
@@ -26,4 +26,13 @@ export declare const paidLinks: (hostname: string, hostnameLenta: string, leader
|
|
|
26
26
|
available: boolean;
|
|
27
27
|
})[];
|
|
28
28
|
innerPages: string[];
|
|
29
|
+
} | {
|
|
30
|
+
name: string;
|
|
31
|
+
Icon: any;
|
|
32
|
+
subPages: {
|
|
33
|
+
name: string;
|
|
34
|
+
href: string;
|
|
35
|
+
}[];
|
|
36
|
+
href?: undefined;
|
|
37
|
+
innerPages?: undefined;
|
|
29
38
|
})[];
|