profinansy-ui-lib 4.1.84 → 4.1.86
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/common.types.d.ts +2 -0
- package/dist/components/blocks/sideMenuV2/SideMenuV2.const.d.ts +23 -0
- package/dist/components/blocks/sideMenuV2/components/Item/Item.styled.d.ts +5 -0
- package/dist/config.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/localization/translations/urls.d.ts +2 -0
- package/dist/profinansy-ui-lib.cjs +1331 -1281
- package/dist/profinansy-ui-lib.cjs.map +1 -1
- package/dist/profinansy-ui-lib.es.js +9213 -9029
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/dist/urls/productsV2/feed/feed.d.ts +24 -0
- package/dist/urls/productsV2/index.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +23 -0
package/dist/common.types.d.ts
CHANGED
|
@@ -678,6 +678,29 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
678
678
|
isNotVisible?: undefined;
|
|
679
679
|
innerPages?: undefined;
|
|
680
680
|
})[];
|
|
681
|
+
} | {
|
|
682
|
+
name: string;
|
|
683
|
+
Icon: ComponentType<void>;
|
|
684
|
+
href: string;
|
|
685
|
+
subPages: ({
|
|
686
|
+
name: string;
|
|
687
|
+
Icon: ComponentType<void>;
|
|
688
|
+
isFill: boolean;
|
|
689
|
+
nowrap: boolean;
|
|
690
|
+
isForeignAccess: boolean;
|
|
691
|
+
href: string;
|
|
692
|
+
iconAccent: string;
|
|
693
|
+
innerPages?: undefined;
|
|
694
|
+
} | {
|
|
695
|
+
name: string;
|
|
696
|
+
Icon: ComponentType<void>;
|
|
697
|
+
isFill: boolean;
|
|
698
|
+
nowrap: boolean;
|
|
699
|
+
isForeignAccess: boolean;
|
|
700
|
+
href: string;
|
|
701
|
+
innerPages: string[];
|
|
702
|
+
iconAccent: string;
|
|
703
|
+
})[];
|
|
681
704
|
} | {
|
|
682
705
|
name: string;
|
|
683
706
|
Icon: ComponentType<void>;
|
|
@@ -10,6 +10,11 @@ export declare const TextContainer: import("styled-components/dist/types").IStyl
|
|
|
10
10
|
$isLocked: boolean;
|
|
11
11
|
$isDisabled: boolean;
|
|
12
12
|
}>> & string;
|
|
13
|
+
export declare const IconAccent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
|
+
$background: string;
|
|
15
|
+
$isStroke: boolean;
|
|
16
|
+
$isActive: boolean;
|
|
17
|
+
}>> & string;
|
|
13
18
|
export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
19
|
$isHoverMode: boolean;
|
|
15
20
|
$nowrap: boolean;
|
package/dist/config.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode, ElementType } from 'react';
|
|
|
2
2
|
import { IUser, UserRole } from './common.types';
|
|
3
3
|
import { StateTypeOpenMenu } from './hooks/sideMenu/useSaveOpenMode';
|
|
4
4
|
export type TProject = 'profinansy' | 'wallet' | 'lms' | 'lenta';
|
|
5
|
+
export type TResolveHref = (href: string) => string;
|
|
5
6
|
interface IConfigProps {
|
|
6
7
|
/** Тестовая или продовая версия собрана **/
|
|
7
8
|
isTest: boolean;
|
|
@@ -15,11 +16,17 @@ interface IConfigProps {
|
|
|
15
16
|
LinkWrapper: ElementType;
|
|
16
17
|
/** Обновление адреса поддержки через роутер приложения без перезагрузки. */
|
|
17
18
|
onSupportRouteChange?: (url: string) => void;
|
|
19
|
+
/** Чистая функция приложения: исходная ссылка → готовый адрес. Без неё ссылки прежние. */
|
|
20
|
+
resolveHref?: TResolveHref;
|
|
21
|
+
/** Готовая ссылка входа (в том числе SSO). Её формирует основное приложение. */
|
|
22
|
+
loginHref?: string;
|
|
18
23
|
defaultSideMenuOpen?: StateTypeOpenMenu;
|
|
19
24
|
showMethodInvestIdeas?: boolean;
|
|
20
25
|
showNewEducationNavigation?: boolean;
|
|
21
26
|
}
|
|
22
27
|
interface IConfig extends IConfigProps {
|
|
28
|
+
/** Для переходов, которые выполняются без LinkWrapper (например, onRouteChange). */
|
|
29
|
+
resolveHref: TResolveHref;
|
|
23
30
|
hostnames: {
|
|
24
31
|
hostname: string;
|
|
25
32
|
hostnameLMS: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export { SelectInput } from './components/uikit/Select';
|
|
|
91
91
|
export { WidgetTitle } from './components/uikit/WidgetTitle';
|
|
92
92
|
export { ScreenerSelectOptions, ScreenerSelect } from './components/uikit/ScreenerSelect';
|
|
93
93
|
export { ConfigLibraryProvider } from './config';
|
|
94
|
-
export type { TProject } from './config';
|
|
94
|
+
export type { TProject, TResolveHref } from './config';
|
|
95
95
|
export { useConfigLibrary } from './config';
|
|
96
96
|
export { Locales } from './common.types';
|
|
97
97
|
export { ThemeProvider } from './theme/ThemeProvider';
|
|
@@ -129,6 +129,7 @@ export declare const Urls_translations: {
|
|
|
129
129
|
courses_youtube: string;
|
|
130
130
|
courses_kfp: string;
|
|
131
131
|
feed: string;
|
|
132
|
+
feed_home: string;
|
|
132
133
|
feed_community: string;
|
|
133
134
|
feed_blog: string;
|
|
134
135
|
feed_news: string;
|
|
@@ -385,6 +386,7 @@ export declare const Urls_translations: {
|
|
|
385
386
|
courses_youtube: string;
|
|
386
387
|
courses_kfp: string;
|
|
387
388
|
feed: string;
|
|
389
|
+
feed_home: string;
|
|
388
390
|
feed_community: string;
|
|
389
391
|
feed_blog: string;
|
|
390
392
|
feed_news: string;
|