profinansy-ui-lib 4.1.75 → 4.1.76
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/blocks/QuizFunnel/constants/QuizFunnel.const.d.ts +2 -2
- package/dist/components/blocks/SupportV2/SupportChatLink.d.ts +4 -0
- package/dist/components/blocks/SupportV2/SupportV2.d.ts +1 -1
- package/dist/components/blocks/SupportV2/SupportV2.events.d.ts +1 -0
- package/dist/components/blocks/SupportV2/SupportV2.typed.d.ts +6 -0
- package/dist/components/blocks/footerNew/components/SocialAndSupport/SocialAndSupport.d.ts +2 -1
- package/dist/components/blocks/footerNew/components/SocialAndSupport/SocialAndSupport.typed.d.ts +3 -0
- package/dist/components/blocks/footerNew/constants.d.ts +318 -2
- package/dist/components/blocks/headerV2/components/header-link-item/components/MoreItemsV2/MoreItemsV2.d.ts +1 -3
- package/dist/components/blocks/headerV2/components/header-link-item/header-link-itemV2.d.ts +0 -2
- package/dist/components/blocks/sideMenuV2/SideMenuV2.const.d.ts +23 -0
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/uikit/FilterButton/components/Drop/Drop.d.ts +1 -1
- package/dist/components/uikit/Hint/Hint.d.ts +1 -1
- package/dist/components/uikit/Popup/components/PopupDesktop.d.ts +1 -1
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/profinansy-ui-lib.cjs +1742 -1781
- package/dist/profinansy-ui-lib.cjs.map +1 -1
- package/dist/profinansy-ui-lib.es.js +16297 -17346
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/dist/urls/constant.d.ts +3 -3
- package/dist/urls/products/education/educationLinks.d.ts +17 -6
- package/dist/urls/products/other/other.d.ts +13 -0
- package/dist/urls/products/profile/profileLinks.d.ts +13 -0
- package/dist/urls/productsV2/club/club.d.ts +7 -0
- package/dist/urls/productsV2/courses/courses.header.d.ts +27 -0
- package/dist/urls/productsV2/courses/courses.sidebar.d.ts +24 -1
- package/dist/urls/productsV2/profile/profile.d.ts +11 -0
- package/dist/utils/supportChat.d.ts +4 -0
- package/package.json +1 -1
|
@@ -57,8 +57,8 @@ export declare const QUIZ_FUNNEL_INTRO_IMAGE_URL = "https://storage.yandexcloud.
|
|
|
57
57
|
export declare const QUIZ_FUNNEL_MANAGER_HINT = "\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B? \u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u0437\u0430\u0431\u043E\u0442\u044B pro.finansy";
|
|
58
58
|
/** Ссылка «задать вопрос» в тултипе службы заботы */
|
|
59
59
|
export declare const QUIZ_FUNNEL_MANAGER_LINKS: readonly [{
|
|
60
|
-
readonly label: "
|
|
61
|
-
readonly href: "
|
|
60
|
+
readonly label: "Написать в поддержку";
|
|
61
|
+
readonly href: "?supportChat=1";
|
|
62
62
|
readonly messenger: "telegram";
|
|
63
63
|
}];
|
|
64
64
|
/** A/B офферы на первом экране квиза */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ISupportChatLink } from './SupportV2.typed';
|
|
3
|
+
/** Ссылка поддержки сохраняет query/hash и работает с клавиатурой и новой вкладкой. */
|
|
4
|
+
export declare const SupportChatLink: React.ForwardRefExoticComponent<ISupportChatLink & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ISupport } from './SupportV2.typed';
|
|
2
|
-
declare const SupportV2: ({ isWithoutBottom, fabOffset, defaultOpen, token, onNeedAuth, onFetchLinkPreview, showUnreadBadge, unreadCount, previewPreset }: ISupport) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SupportV2: ({ isWithoutBottom, hideLauncher, fabOffset, defaultOpen, token, onNeedAuth, onFetchLinkPreview, showUnreadBadge, unreadCount, previewPreset }: ISupport) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { SupportV2 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SUPPORT_CHAT_OPEN_EVENT = "profinansy:open-support-chat";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes } from 'react';
|
|
1
2
|
/** Пейлоад опционального переопределения перехода на авторизацию. */
|
|
2
3
|
export interface ISupportNeedAuthPayload {
|
|
3
4
|
returnQuery: string;
|
|
@@ -25,6 +26,8 @@ export interface ISupportFabOffset {
|
|
|
25
26
|
mobileBottom?: number;
|
|
26
27
|
}
|
|
27
28
|
export interface ISupport {
|
|
29
|
+
/** Скрывать кнопку до явного открытия чата ссылкой или параметром URL. */
|
|
30
|
+
hideLauncher?: boolean;
|
|
28
31
|
/**
|
|
29
32
|
* На узком экране не поднимать кнопку над нижней навигацией.
|
|
30
33
|
*/
|
|
@@ -103,3 +106,6 @@ export interface ISupportLayoutMessage {
|
|
|
103
106
|
dateLabel?: string;
|
|
104
107
|
dayKey?: string;
|
|
105
108
|
}
|
|
109
|
+
export interface ISupportChatLink extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
110
|
+
onRouteChange?: (url: string) => void;
|
|
111
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { ISocialAndSupport } from './SocialAndSupport.typed';
|
|
2
|
+
declare const SocialAndSupport: ({ onRouteChange }: ISocialAndSupport) => import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
export { SocialAndSupport };
|
|
@@ -1,15 +1,331 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UserRole } from '../../../common.types';
|
|
3
3
|
import { IFooterAboutLink } from './components/Navigation/Navigation.typed';
|
|
4
|
-
export declare const getFooterNavRowsNew: (userRole: UserRole, hostname: string,
|
|
4
|
+
export declare const getFooterNavRowsNew: (userRole: UserRole, hostname: string, _leaderboardPermission: boolean) => (({
|
|
5
5
|
name: string;
|
|
6
6
|
Icon: ComponentType<void>;
|
|
7
7
|
href: string;
|
|
8
8
|
subPages: {
|
|
9
9
|
name: string;
|
|
10
|
+
Icon: ComponentType<void>;
|
|
11
|
+
isFill: boolean;
|
|
12
|
+
isForeignAccess: boolean;
|
|
10
13
|
href: string;
|
|
14
|
+
locked: boolean;
|
|
11
15
|
}[];
|
|
12
|
-
}
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
Icon: ComponentType<void>;
|
|
19
|
+
href: string;
|
|
20
|
+
subPages: ({
|
|
21
|
+
name: string;
|
|
22
|
+
Icon: ComponentType<void>;
|
|
23
|
+
isFill: boolean;
|
|
24
|
+
isForeignAccess: boolean;
|
|
25
|
+
href: string;
|
|
26
|
+
locked: boolean;
|
|
27
|
+
unavailable: boolean;
|
|
28
|
+
description: string;
|
|
29
|
+
imagePlug: string;
|
|
30
|
+
imagePlugMob: string;
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
Icon: ComponentType<void>;
|
|
34
|
+
isFill: boolean;
|
|
35
|
+
href: string;
|
|
36
|
+
isForeignAccess?: undefined;
|
|
37
|
+
locked?: undefined;
|
|
38
|
+
unavailable?: undefined;
|
|
39
|
+
description?: undefined;
|
|
40
|
+
imagePlug?: undefined;
|
|
41
|
+
imagePlugMob?: undefined;
|
|
42
|
+
})[];
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
Icon: ComponentType<void>;
|
|
46
|
+
href: string;
|
|
47
|
+
subPages: ({
|
|
48
|
+
name: string;
|
|
49
|
+
Icon: ComponentType<void>;
|
|
50
|
+
isFill: boolean;
|
|
51
|
+
isForeignAccess: boolean;
|
|
52
|
+
href: string;
|
|
53
|
+
locked: boolean;
|
|
54
|
+
subPages: {
|
|
55
|
+
name: string;
|
|
56
|
+
href: string;
|
|
57
|
+
locked: boolean;
|
|
58
|
+
innerPages: string[];
|
|
59
|
+
}[];
|
|
60
|
+
unavailable?: undefined;
|
|
61
|
+
description?: undefined;
|
|
62
|
+
imagePlug?: undefined;
|
|
63
|
+
imagePlugMob?: undefined;
|
|
64
|
+
innerPages?: undefined;
|
|
65
|
+
isNew?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
Icon: ComponentType<void>;
|
|
69
|
+
isFill: boolean;
|
|
70
|
+
href: string;
|
|
71
|
+
isForeignAccess?: undefined;
|
|
72
|
+
locked?: undefined;
|
|
73
|
+
subPages?: undefined;
|
|
74
|
+
unavailable?: undefined;
|
|
75
|
+
description?: undefined;
|
|
76
|
+
imagePlug?: undefined;
|
|
77
|
+
imagePlugMob?: undefined;
|
|
78
|
+
innerPages?: undefined;
|
|
79
|
+
isNew?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
name: string;
|
|
82
|
+
Icon: ComponentType<void>;
|
|
83
|
+
isFill: boolean;
|
|
84
|
+
isForeignAccess: boolean;
|
|
85
|
+
href: string;
|
|
86
|
+
locked: boolean;
|
|
87
|
+
unavailable: boolean;
|
|
88
|
+
description: string;
|
|
89
|
+
imagePlug: string;
|
|
90
|
+
imagePlugMob: string;
|
|
91
|
+
innerPages: string[];
|
|
92
|
+
subPages: ({
|
|
93
|
+
name: string;
|
|
94
|
+
href: string;
|
|
95
|
+
locked: boolean;
|
|
96
|
+
isHit: boolean;
|
|
97
|
+
unavailable: boolean;
|
|
98
|
+
} | {
|
|
99
|
+
name: string;
|
|
100
|
+
href: string;
|
|
101
|
+
locked: boolean;
|
|
102
|
+
unavailable: boolean;
|
|
103
|
+
isHit?: undefined;
|
|
104
|
+
})[];
|
|
105
|
+
isNew?: undefined;
|
|
106
|
+
} | {
|
|
107
|
+
name: string;
|
|
108
|
+
Icon: ComponentType<void>;
|
|
109
|
+
isForeignAccess: boolean;
|
|
110
|
+
isFill: boolean;
|
|
111
|
+
href: string;
|
|
112
|
+
locked: boolean;
|
|
113
|
+
unavailable: boolean;
|
|
114
|
+
description: string;
|
|
115
|
+
imagePlug: string;
|
|
116
|
+
imagePlugMob: string;
|
|
117
|
+
innerPages: string[];
|
|
118
|
+
subPages: ({
|
|
119
|
+
name: string;
|
|
120
|
+
href: string;
|
|
121
|
+
locked: boolean;
|
|
122
|
+
unavailable: boolean;
|
|
123
|
+
isForeignAccess?: undefined;
|
|
124
|
+
} | {
|
|
125
|
+
name: string;
|
|
126
|
+
isForeignAccess: boolean;
|
|
127
|
+
href: string;
|
|
128
|
+
locked: boolean;
|
|
129
|
+
unavailable: boolean;
|
|
130
|
+
})[];
|
|
131
|
+
isNew?: undefined;
|
|
132
|
+
} | {
|
|
133
|
+
name: string;
|
|
134
|
+
href: string;
|
|
135
|
+
Icon: ComponentType<void>;
|
|
136
|
+
isFill: boolean;
|
|
137
|
+
isForeignAccess: boolean;
|
|
138
|
+
locked: boolean;
|
|
139
|
+
unavailable: boolean;
|
|
140
|
+
isNew: boolean;
|
|
141
|
+
description: string;
|
|
142
|
+
imagePlug: string;
|
|
143
|
+
imagePlugMob: string;
|
|
144
|
+
subPages?: undefined;
|
|
145
|
+
innerPages?: undefined;
|
|
146
|
+
} | {
|
|
147
|
+
name: string;
|
|
148
|
+
href: string;
|
|
149
|
+
Icon: ComponentType<void>;
|
|
150
|
+
isFill: boolean;
|
|
151
|
+
locked: boolean;
|
|
152
|
+
subPages: ({
|
|
153
|
+
name: string;
|
|
154
|
+
href: string;
|
|
155
|
+
locked: boolean;
|
|
156
|
+
crownShown?: undefined;
|
|
157
|
+
innerPages?: undefined;
|
|
158
|
+
isNotVisible?: undefined;
|
|
159
|
+
} | {
|
|
160
|
+
name: string;
|
|
161
|
+
href: string;
|
|
162
|
+
locked: boolean;
|
|
163
|
+
crownShown: boolean;
|
|
164
|
+
innerPages?: undefined;
|
|
165
|
+
isNotVisible?: undefined;
|
|
166
|
+
} | {
|
|
167
|
+
name: string;
|
|
168
|
+
href: string;
|
|
169
|
+
locked: boolean;
|
|
170
|
+
crownShown: boolean;
|
|
171
|
+
innerPages: string[];
|
|
172
|
+
isNotVisible?: undefined;
|
|
173
|
+
} | {
|
|
174
|
+
name: string;
|
|
175
|
+
href: string;
|
|
176
|
+
locked: boolean;
|
|
177
|
+
crownShown: boolean;
|
|
178
|
+
isNotVisible: boolean;
|
|
179
|
+
innerPages: string[];
|
|
180
|
+
})[];
|
|
181
|
+
isForeignAccess?: undefined;
|
|
182
|
+
unavailable?: undefined;
|
|
183
|
+
description?: undefined;
|
|
184
|
+
imagePlug?: undefined;
|
|
185
|
+
imagePlugMob?: undefined;
|
|
186
|
+
innerPages?: undefined;
|
|
187
|
+
isNew?: undefined;
|
|
188
|
+
} | {
|
|
189
|
+
name: string;
|
|
190
|
+
Icon: ComponentType<void>;
|
|
191
|
+
isFill: boolean;
|
|
192
|
+
isForeignAccess: boolean;
|
|
193
|
+
href: string;
|
|
194
|
+
locked?: undefined;
|
|
195
|
+
subPages?: undefined;
|
|
196
|
+
unavailable?: undefined;
|
|
197
|
+
description?: undefined;
|
|
198
|
+
imagePlug?: undefined;
|
|
199
|
+
imagePlugMob?: undefined;
|
|
200
|
+
innerPages?: undefined;
|
|
201
|
+
isNew?: undefined;
|
|
202
|
+
} | {
|
|
203
|
+
name: string;
|
|
204
|
+
Icon: ComponentType<void>;
|
|
205
|
+
isFill: boolean;
|
|
206
|
+
isForeignAccess: boolean;
|
|
207
|
+
href: string;
|
|
208
|
+
locked: boolean;
|
|
209
|
+
subPages?: undefined;
|
|
210
|
+
unavailable?: undefined;
|
|
211
|
+
description?: undefined;
|
|
212
|
+
imagePlug?: undefined;
|
|
213
|
+
imagePlugMob?: undefined;
|
|
214
|
+
innerPages?: undefined;
|
|
215
|
+
isNew?: undefined;
|
|
216
|
+
} | {
|
|
217
|
+
name: string;
|
|
218
|
+
Icon: ComponentType<void>;
|
|
219
|
+
isFill: boolean;
|
|
220
|
+
isForeignAccess: boolean;
|
|
221
|
+
href: string;
|
|
222
|
+
locked: boolean;
|
|
223
|
+
unavailable: boolean;
|
|
224
|
+
description: string;
|
|
225
|
+
imagePlug: string;
|
|
226
|
+
imagePlugMob: string;
|
|
227
|
+
subPages?: undefined;
|
|
228
|
+
innerPages?: undefined;
|
|
229
|
+
isNew?: undefined;
|
|
230
|
+
})[];
|
|
231
|
+
footerPages: {
|
|
232
|
+
name: string;
|
|
233
|
+
Icon: ComponentType<void>;
|
|
234
|
+
isFill: boolean;
|
|
235
|
+
isForeignAccess: boolean;
|
|
236
|
+
href: string;
|
|
237
|
+
}[];
|
|
238
|
+
})[] | {
|
|
239
|
+
name: string;
|
|
240
|
+
Icon: ComponentType<void>;
|
|
241
|
+
href: string;
|
|
242
|
+
hiddenFromChildren: boolean;
|
|
243
|
+
subPages: ({
|
|
244
|
+
name: string;
|
|
245
|
+
href: string;
|
|
246
|
+
isNotVisible?: undefined;
|
|
247
|
+
innerPages?: undefined;
|
|
248
|
+
} | {
|
|
249
|
+
name: string;
|
|
250
|
+
isNotVisible: boolean;
|
|
251
|
+
href: string;
|
|
252
|
+
innerPages?: undefined;
|
|
253
|
+
} | {
|
|
254
|
+
name: string;
|
|
255
|
+
isNotVisible: boolean;
|
|
256
|
+
href: string;
|
|
257
|
+
innerPages: string[];
|
|
258
|
+
})[];
|
|
259
|
+
}[] | {
|
|
260
|
+
name: string;
|
|
261
|
+
Icon: ComponentType<void>;
|
|
262
|
+
href: string;
|
|
263
|
+
subPages: ({
|
|
264
|
+
name: string;
|
|
265
|
+
Icon: ComponentType<void>;
|
|
266
|
+
isForeignAccess: boolean;
|
|
267
|
+
href: string;
|
|
268
|
+
isFill?: undefined;
|
|
269
|
+
nowrap?: undefined;
|
|
270
|
+
} | {
|
|
271
|
+
name: string;
|
|
272
|
+
Icon: ComponentType<void>;
|
|
273
|
+
href: string;
|
|
274
|
+
isFill: boolean;
|
|
275
|
+
isForeignAccess: boolean;
|
|
276
|
+
nowrap?: undefined;
|
|
277
|
+
} | {
|
|
278
|
+
name: string;
|
|
279
|
+
Icon: ComponentType<void>;
|
|
280
|
+
href: string;
|
|
281
|
+
nowrap: boolean;
|
|
282
|
+
isForeignAccess: boolean;
|
|
283
|
+
isFill?: undefined;
|
|
284
|
+
} | {
|
|
285
|
+
name: string;
|
|
286
|
+
Icon: ComponentType<void>;
|
|
287
|
+
href: string;
|
|
288
|
+
isForeignAccess?: undefined;
|
|
289
|
+
isFill?: undefined;
|
|
290
|
+
nowrap?: undefined;
|
|
291
|
+
} | {
|
|
292
|
+
name: string;
|
|
293
|
+
Icon: ComponentType<void>;
|
|
294
|
+
isFill: boolean;
|
|
295
|
+
href: string;
|
|
296
|
+
isForeignAccess?: undefined;
|
|
297
|
+
nowrap?: undefined;
|
|
298
|
+
})[];
|
|
299
|
+
}[] | {
|
|
300
|
+
name: string;
|
|
301
|
+
href: string;
|
|
302
|
+
Icon: ComponentType<void>;
|
|
303
|
+
subPages: ({
|
|
304
|
+
name: string;
|
|
305
|
+
href: string;
|
|
306
|
+
isForeignAccess: boolean;
|
|
307
|
+
isNotVisible?: undefined;
|
|
308
|
+
hiddenFromChildren?: undefined;
|
|
309
|
+
} | {
|
|
310
|
+
name: string;
|
|
311
|
+
isNotVisible: boolean;
|
|
312
|
+
href: string;
|
|
313
|
+
hiddenFromChildren: boolean;
|
|
314
|
+
isForeignAccess?: undefined;
|
|
315
|
+
} | {
|
|
316
|
+
name: string;
|
|
317
|
+
isNotVisible: boolean;
|
|
318
|
+
href: string;
|
|
319
|
+
isForeignAccess?: undefined;
|
|
320
|
+
hiddenFromChildren?: undefined;
|
|
321
|
+
} | {
|
|
322
|
+
name: string;
|
|
323
|
+
href: string;
|
|
324
|
+
isForeignAccess: boolean;
|
|
325
|
+
hiddenFromChildren: boolean;
|
|
326
|
+
isNotVisible?: undefined;
|
|
327
|
+
})[];
|
|
328
|
+
}[])[] | {
|
|
13
329
|
subPages: import("../../../common.types").THeaderLinkSubPage[];
|
|
14
330
|
name: string;
|
|
15
331
|
href?: string;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { THeaderLinksV2 } from '../../../../constants/linksV2';
|
|
3
|
-
import { IBannerListItem } from '../../../../../../../api/banner/banner.typed';
|
|
4
3
|
type TProps = {
|
|
5
4
|
isOpen: boolean;
|
|
6
5
|
item: THeaderLinksV2;
|
|
7
6
|
handleClose: () => void;
|
|
8
7
|
itemIndex?: number;
|
|
9
8
|
tabRef?: React.RefObject<HTMLDivElement>;
|
|
10
|
-
bannersMap?: Record<string, IBannerListItem>;
|
|
11
9
|
};
|
|
12
|
-
declare const MoreItemsV2: React.MemoExoticComponent<({ item, isOpen, handleClose, itemIndex, tabRef
|
|
10
|
+
declare const MoreItemsV2: React.MemoExoticComponent<({ item, isOpen, handleClose, itemIndex, tabRef }: TProps) => import("react/jsx-runtime").JSX.Element>;
|
|
13
11
|
export { MoreItemsV2 };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { THeaderLinksV2 } from '../../constants/linksV2';
|
|
3
|
-
import { IBannerListItem } from '../../../../../api/banner/banner.typed';
|
|
4
3
|
interface IProps {
|
|
5
4
|
openItem: string;
|
|
6
5
|
handleOpenItem: (val: string) => void;
|
|
7
6
|
item: THeaderLinksV2;
|
|
8
7
|
itemIndex?: number;
|
|
9
|
-
bannersMap?: Record<string, IBannerListItem>;
|
|
10
8
|
}
|
|
11
9
|
export declare const HeaderLinkItemV2: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
10
|
export {};
|
|
@@ -243,12 +243,14 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
243
243
|
Icon: ComponentType<void>;
|
|
244
244
|
href: string;
|
|
245
245
|
locked: boolean;
|
|
246
|
+
isNotVisible?: undefined;
|
|
246
247
|
isNew?: undefined;
|
|
247
248
|
innerPages?: undefined;
|
|
248
249
|
hiddenFromChildren?: undefined;
|
|
249
250
|
subPages?: undefined;
|
|
250
251
|
} | {
|
|
251
252
|
name: string;
|
|
253
|
+
isNotVisible: boolean;
|
|
252
254
|
Icon: ComponentType<void>;
|
|
253
255
|
isNew: boolean;
|
|
254
256
|
href: string;
|
|
@@ -275,6 +277,7 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
275
277
|
innerPages: string[];
|
|
276
278
|
}[];
|
|
277
279
|
locked?: undefined;
|
|
280
|
+
isNotVisible?: undefined;
|
|
278
281
|
isNew?: undefined;
|
|
279
282
|
innerPages?: undefined;
|
|
280
283
|
} | {
|
|
@@ -317,6 +320,7 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
317
320
|
locked?: undefined;
|
|
318
321
|
})[];
|
|
319
322
|
locked?: undefined;
|
|
323
|
+
isNotVisible?: undefined;
|
|
320
324
|
isNew?: undefined;
|
|
321
325
|
} | {
|
|
322
326
|
name: string;
|
|
@@ -333,10 +337,12 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
333
337
|
locked: boolean;
|
|
334
338
|
})[];
|
|
335
339
|
locked?: undefined;
|
|
340
|
+
isNotVisible?: undefined;
|
|
336
341
|
isNew?: undefined;
|
|
337
342
|
innerPages?: undefined;
|
|
338
343
|
} | {
|
|
339
344
|
name: string;
|
|
345
|
+
isNotVisible: boolean;
|
|
340
346
|
Icon: ComponentType<void>;
|
|
341
347
|
href: string;
|
|
342
348
|
hiddenFromChildren: boolean;
|
|
@@ -344,6 +350,16 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
344
350
|
isNew?: undefined;
|
|
345
351
|
innerPages?: undefined;
|
|
346
352
|
subPages?: undefined;
|
|
353
|
+
} | {
|
|
354
|
+
name: string;
|
|
355
|
+
Icon: ComponentType<void>;
|
|
356
|
+
href: string;
|
|
357
|
+
hiddenFromChildren: boolean;
|
|
358
|
+
locked?: undefined;
|
|
359
|
+
isNotVisible?: undefined;
|
|
360
|
+
isNew?: undefined;
|
|
361
|
+
innerPages?: undefined;
|
|
362
|
+
subPages?: undefined;
|
|
347
363
|
})[];
|
|
348
364
|
} | {
|
|
349
365
|
name: string;
|
|
@@ -796,10 +812,12 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
796
812
|
isForeignAccess: boolean;
|
|
797
813
|
Icon: ComponentType<void>;
|
|
798
814
|
href: string;
|
|
815
|
+
isNotVisible?: undefined;
|
|
799
816
|
hiddenFromChildren?: undefined;
|
|
800
817
|
innerPages?: undefined;
|
|
801
818
|
} | {
|
|
802
819
|
name: string;
|
|
820
|
+
isNotVisible: boolean;
|
|
803
821
|
Icon: ComponentType<void>;
|
|
804
822
|
isFill: boolean;
|
|
805
823
|
href: string;
|
|
@@ -808,6 +826,7 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
808
826
|
innerPages?: undefined;
|
|
809
827
|
} | {
|
|
810
828
|
name: string;
|
|
829
|
+
isNotVisible: boolean;
|
|
811
830
|
Icon: ComponentType<void>;
|
|
812
831
|
href: string;
|
|
813
832
|
isFill?: undefined;
|
|
@@ -816,6 +835,7 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
816
835
|
innerPages?: undefined;
|
|
817
836
|
} | {
|
|
818
837
|
name: string;
|
|
838
|
+
isNotVisible: boolean;
|
|
819
839
|
Icon: ComponentType<void>;
|
|
820
840
|
href: string;
|
|
821
841
|
hiddenFromChildren: boolean;
|
|
@@ -828,6 +848,7 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
828
848
|
isForeignAccess: boolean;
|
|
829
849
|
href: string;
|
|
830
850
|
isFill?: undefined;
|
|
851
|
+
isNotVisible?: undefined;
|
|
831
852
|
hiddenFromChildren?: undefined;
|
|
832
853
|
innerPages?: undefined;
|
|
833
854
|
} | {
|
|
@@ -837,6 +858,7 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
837
858
|
isForeignAccess: boolean;
|
|
838
859
|
href: string;
|
|
839
860
|
hiddenFromChildren: boolean;
|
|
861
|
+
isNotVisible?: undefined;
|
|
840
862
|
innerPages?: undefined;
|
|
841
863
|
} | {
|
|
842
864
|
name: string;
|
|
@@ -846,5 +868,6 @@ export declare const useGetSideMenuData: (category: TSideMenuCategory, hostname:
|
|
|
846
868
|
href: string;
|
|
847
869
|
innerPages: string[];
|
|
848
870
|
hiddenFromChildren: boolean;
|
|
871
|
+
isNotVisible?: undefined;
|
|
849
872
|
})[];
|
|
850
873
|
};
|
|
@@ -43,7 +43,7 @@ export declare function useDrop({ placement, onOpenList }: {
|
|
|
43
43
|
};
|
|
44
44
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
45
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
47
47
|
active?: boolean;
|
|
48
48
|
selected?: boolean;
|
|
49
49
|
}) => Record<string, unknown>;
|
|
@@ -42,7 +42,7 @@ export declare function useDrop({ placement }: {
|
|
|
42
42
|
};
|
|
43
43
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
44
44
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
45
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
45
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
46
46
|
active?: boolean;
|
|
47
47
|
selected?: boolean;
|
|
48
48
|
}) => Record<string, unknown>;
|
|
@@ -44,7 +44,7 @@ export declare function useHint({ placement, isClickMobile }?: HintOptions): {
|
|
|
44
44
|
};
|
|
45
45
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
46
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
48
48
|
active?: boolean;
|
|
49
49
|
selected?: boolean;
|
|
50
50
|
}) => Record<string, unknown>;
|
|
@@ -47,7 +47,7 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
47
47
|
};
|
|
48
48
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
49
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
51
51
|
active?: boolean;
|
|
52
52
|
selected?: boolean;
|
|
53
53
|
}) => Record<string, unknown>;
|
|
@@ -46,7 +46,7 @@ export declare function useTooltip({ placement, isHover, showArrow, onOpenToolti
|
|
|
46
46
|
};
|
|
47
47
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
48
48
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
49
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
49
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
50
50
|
active?: boolean;
|
|
51
51
|
selected?: boolean;
|
|
52
52
|
}) => Record<string, unknown>;
|
package/dist/config.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ interface IConfigProps {
|
|
|
13
13
|
user: IUser | null;
|
|
14
14
|
/** Элемент ссылки. Нужен, чтобы прокидывать некстовый роутинг или роутинг библиотек **/
|
|
15
15
|
LinkWrapper: ElementType;
|
|
16
|
+
/** Обновление адреса поддержки через роутер приложения без перезагрузки. */
|
|
17
|
+
onSupportRouteChange?: (url: string) => void;
|
|
16
18
|
defaultSideMenuOpen?: StateTypeOpenMenu;
|
|
17
19
|
showMethodInvestIdeas?: boolean;
|
|
18
20
|
showNewEducationNavigation?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -114,3 +114,5 @@ export { AnimationFunctions } from './constants/animation/animation';
|
|
|
114
114
|
export { ListItemStyle } from './styles/List';
|
|
115
115
|
export { NotVisibleScroll } from './styles/Scroll';
|
|
116
116
|
export { Scroll } from './styles/Scroll';
|
|
117
|
+
export { SupportChatLink } from './components/blocks/SupportV2/SupportChatLink';
|
|
118
|
+
export { openSupportChat, getSupportChatHref, SUPPORT_CHAT_HREF } from './utils/supportChat';
|