profinansy-ui-lib 3.7.7 → 3.7.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.
@@ -30,6 +30,7 @@ export interface IUser {
30
30
  is_confirm_partner: boolean;
31
31
  authorized?: boolean;
32
32
  token: string | null;
33
+ type?: number;
33
34
  }
34
35
  export type UserRole = 'guest' | 'authorized' | 'paid';
35
36
  export type HeaderLinkType = {
@@ -47,6 +48,8 @@ export type HeaderLinkType = {
47
48
  innerPages?: string[];
48
49
  /** Убрать подпункты в хэдере **/
49
50
  isWithoutSubpage?: boolean;
51
+ /** Скрыта ли страница от аккаунтов, заведенных детям от родителей **/
52
+ hiddenFromChildren?: boolean;
50
53
  };
51
54
  export type THeaderLinkSubPage = {
52
55
  /** Название пункта меню **/
@@ -75,6 +78,8 @@ export type THeaderLinkSubPage = {
75
78
  description?: string;
76
79
  /** Доступна ли страница для иностранного сайта **/
77
80
  isForeignAccess?: boolean;
81
+ /** Скрыта ли страница от аккаунтов, заведенных детям от родителей **/
82
+ hiddenFromChildren?: boolean;
78
83
  /** Страницы, которые не нужно отображать (например нет прав) **/
79
84
  isNotVisible?: boolean;
80
85
  /** Убрать пункт в хэдере и футере. (Сейчас это костыль, потому что в боковом меню надо скрывать пункты в зависимости от каких-то условий).
@@ -15,5 +15,6 @@ export declare const getFooterNavRows: (userRole: UserRole, hostname: string, le
15
15
  locked?: boolean;
16
16
  innerPages?: string[];
17
17
  isWithoutSubpage?: boolean;
18
+ hiddenFromChildren?: boolean;
18
19
  }[][];
19
20
  export declare const getFooterDescription: (isMAFK?: boolean) => string;
@@ -24,6 +24,7 @@ export declare const HeaderPaid: {
24
24
  rights: {
25
25
  ext: number;
26
26
  };
27
+ type: number;
27
28
  is_partner: boolean;
28
29
  account_list: {
29
30
  account_id?: number;
@@ -2,5 +2,5 @@ import { HeaderLinkType, THeaderLinkSubPage, UserRole } from '../../../../common
2
2
  export type THeaderLinks = HeaderLinkType & {
3
3
  structure?: THeaderLinkSubPage[][];
4
4
  };
5
- export declare const useGetMainLinks: (hostname: string, hostnameLenta: string, hostnameLMS: string, leaderBoardPermission: boolean, userRole: UserRole) => THeaderLinks[];
5
+ export declare const useGetMainLinks: (hostname: string, hostnameLenta: string, hostnameLMS: string, leaderBoardPermission: boolean, userRole: UserRole, userType: number) => THeaderLinks[];
6
6
  export declare const getMainLinks: (hostname: string, hostnameLenta: string, hostnameLMS: string, leaderBoardPermission: boolean, userRole: UserRole) => THeaderLinks[];
@@ -25,9 +25,9 @@ export declare function useDrop({ placement, onOpenList }: {
25
25
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
26
26
  context: {
27
27
  placement: Placement;
28
- strategy: import("@floating-ui/utils").Strategy;
29
28
  x: number;
30
29
  y: number;
30
+ strategy: import("@floating-ui/utils").Strategy;
31
31
  middlewareData: import("@floating-ui/react").MiddlewareData;
32
32
  isPositioned: boolean;
33
33
  update: () => void;
@@ -24,9 +24,9 @@ export declare function useDrop({ placement }: {
24
24
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
25
25
  context: {
26
26
  placement: Placement;
27
- strategy: import("@floating-ui/utils").Strategy;
28
27
  x: number;
29
28
  y: number;
29
+ strategy: import("@floating-ui/utils").Strategy;
30
30
  middlewareData: import("@floating-ui/react").MiddlewareData;
31
31
  isPositioned: boolean;
32
32
  update: () => void;
@@ -26,9 +26,9 @@ export declare function useHint({ placement, isClickMobile }?: HintOptions): {
26
26
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
27
27
  context: {
28
28
  placement: Placement;
29
- strategy: import("@floating-ui/utils").Strategy;
30
29
  x: number;
31
30
  y: number;
31
+ strategy: import("@floating-ui/utils").Strategy;
32
32
  middlewareData: import("@floating-ui/react").MiddlewareData;
33
33
  isPositioned: boolean;
34
34
  update: () => void;
@@ -29,9 +29,9 @@ export declare function usePopup({ placement, isHover }: {
29
29
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
30
30
  context: {
31
31
  placement: Placement;
32
- strategy: import("@floating-ui/utils").Strategy;
33
32
  x: number;
34
33
  y: number;
34
+ strategy: import("@floating-ui/utils").Strategy;
35
35
  middlewareData: import("@floating-ui/react").MiddlewareData;
36
36
  isPositioned: boolean;
37
37
  update: () => void;
@@ -26,9 +26,9 @@ export declare function useTooltip({ placement, isHover, showArrow }: {
26
26
  } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
27
27
  context: {
28
28
  placement: Placement;
29
- strategy: import("@floating-ui/utils").Strategy;
30
29
  x: number;
31
30
  y: number;
31
+ strategy: import("@floating-ui/utils").Strategy;
32
32
  middlewareData: import("@floating-ui/react").MiddlewareData;
33
33
  isPositioned: boolean;
34
34
  update: () => void;