profinansy-ui-lib 3.2.63 → 3.2.64
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 +1 -1
- package/dist/api/notifications/notifications.api.d.ts +9 -0
- package/dist/api/notifications/notifications.typed.d.ts +17 -0
- package/dist/components/blocks/header/components/HeaderRight/HeaderRight.d.ts +3 -1
- package/dist/components/blocks/header/components/Notification/Notification.d.ts +3 -1
- package/dist/components/blocks/header/components/Notification/Notification.styled.d.ts +4 -0
- package/dist/components/blocks/header/hooks/useGetNotificationsCount.d.ts +4 -0
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/uikit/FilterButton/Drop/Drop.d.ts +1 -1
- package/dist/components/uikit/Hint/Hint.d.ts +1 -1
- package/dist/components/uikit/Popup/Popup.d.ts +1 -1
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +1 -1
- package/dist/constants/common.d.ts +12 -0
- package/dist/firebase.d.ts +4 -0
- package/dist/index.js +36 -21
- package/dist/index.js.LICENSE.txt +85 -0
- package/package.json +2 -1
package/dist/api/initial.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IApiSettings } from './api';
|
|
2
|
-
type TMethod = 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
2
|
+
export type TMethod = 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
3
3
|
type TBody = Record<string, unknown>;
|
|
4
4
|
export declare const apiHelper: (url: string, method: TMethod, settings: IApiSettings, body?: TBody) => Promise<any>;
|
|
5
5
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiSettings } from '../api';
|
|
2
|
+
import { INotification } from './notifications.typed';
|
|
3
|
+
export declare const notificationsApi: {
|
|
4
|
+
getNotificationsHistory: (apiSettings: IApiSettings) => Promise<{
|
|
5
|
+
data: INotification[];
|
|
6
|
+
next_notification_id: number;
|
|
7
|
+
new_count: number;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface INotification {
|
|
2
|
+
body: string;
|
|
3
|
+
data: {
|
|
4
|
+
instrument_id: number;
|
|
5
|
+
};
|
|
6
|
+
date: number;
|
|
7
|
+
deeplink_msg: string;
|
|
8
|
+
deeplink: string;
|
|
9
|
+
group_name: string;
|
|
10
|
+
group_title: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
id: number;
|
|
13
|
+
is_read: boolean;
|
|
14
|
+
title: string;
|
|
15
|
+
type_name: string;
|
|
16
|
+
type_title: string;
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IUser, UserRole } from '../../../../../common.types';
|
|
2
|
+
import { IApiSettings } from '../../../../../api/api';
|
|
2
3
|
interface IProps {
|
|
3
4
|
user: IUser;
|
|
4
5
|
hostname: string;
|
|
@@ -9,6 +10,7 @@ interface IProps {
|
|
|
9
10
|
handleRouteChange: (val: string) => void;
|
|
10
11
|
setBurgerOpened: (val: boolean) => void;
|
|
11
12
|
onLogout: () => void;
|
|
13
|
+
apiSettings: IApiSettings;
|
|
12
14
|
}
|
|
13
|
-
declare const HeaderRight: ({ user, hostname, userRole, isProfinansy, isPossibleTrial, trial, handleRouteChange, setBurgerOpened, onLogout }: IProps) => JSX.Element;
|
|
15
|
+
declare const HeaderRight: ({ user, hostname, userRole, isProfinansy, isPossibleTrial, trial, handleRouteChange, setBurgerOpened, onLogout, apiSettings }: IProps) => JSX.Element;
|
|
14
16
|
export { HeaderRight };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { UserRole } from '../../../../../common.types';
|
|
2
|
+
import { IApiSettings } from '../../../../../api/api';
|
|
2
3
|
interface IProps {
|
|
3
4
|
hostname: string;
|
|
4
5
|
handleRouteChange: (val: string) => void;
|
|
5
6
|
userRole: UserRole;
|
|
7
|
+
apiSettings: IApiSettings;
|
|
6
8
|
}
|
|
7
|
-
declare const Notification: ({ hostname, handleRouteChange, userRole }: IProps) => JSX.Element;
|
|
9
|
+
declare const Notification: ({ hostname, handleRouteChange, userRole, apiSettings }: IProps) => JSX.Element;
|
|
8
10
|
export { Notification };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const NotificationsCount: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
notificationsCount: number;
|
|
4
|
+
}, never>;
|
|
1
5
|
export declare const NotificationButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
2
6
|
isActive: boolean;
|
|
3
7
|
}, never>;
|
|
@@ -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;
|
|
28
29
|
x: number;
|
|
29
30
|
y: number;
|
|
30
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
31
31
|
middlewareData: import("@floating-ui/core").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;
|
|
27
28
|
x: number;
|
|
28
29
|
y: number;
|
|
29
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
30
30
|
middlewareData: import("@floating-ui/core").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;
|
|
29
30
|
x: number;
|
|
30
31
|
y: number;
|
|
31
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
32
32
|
middlewareData: import("@floating-ui/core").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;
|
|
32
33
|
x: number;
|
|
33
34
|
y: number;
|
|
34
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
35
35
|
middlewareData: import("@floating-ui/core").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;
|
|
29
30
|
x: number;
|
|
30
31
|
y: number;
|
|
31
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
32
32
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
33
33
|
isPositioned: boolean;
|
|
34
34
|
update: () => void;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import { TMethod } from '../api/initial';
|
|
1
2
|
export declare const HEIGHT_HEADER = 64;
|
|
2
3
|
export declare const TABLET_WIDTH = 960;
|
|
3
4
|
export declare const MOBILE_WIDTH = 600;
|
|
5
|
+
export declare const REQUEST_METHOD: Record<TMethod, TMethod>;
|
|
6
|
+
export declare const firebaseConfig: {
|
|
7
|
+
apiKey: string;
|
|
8
|
+
authDomain: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
storageBucket: string;
|
|
11
|
+
messagingSenderId: string;
|
|
12
|
+
appId: string;
|
|
13
|
+
measurementId: string;
|
|
14
|
+
vapidKey: string;
|
|
15
|
+
};
|