@scbt-ecom/ui 0.114.0 → 0.115.1
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/lib/next/utils/hideWidgetsWithQueryParams.js +1 -1
- package/dist/lib/next/utils/hideWidgetsWithQueryParams.js.map +1 -1
- package/dist/lib/next/utils/isEmptyWidgetList.js.map +1 -1
- package/dist/lib/next/utils/orderWidgetWithQueryParams.js +1 -1
- package/dist/lib/next/utils/orderWidgetWithQueryParams.js.map +1 -1
- package/dist/lib/shared/style.css +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js.map +1 -1
- package/dist/lib/shared/ui/modal/Modal.js +1 -1
- package/dist/lib/shared/ui/modal/Modal.js.map +1 -1
- package/dist/lib/shared/ui/modal/ui/ModalHeader.js +1 -1
- package/dist/lib/shared/ui/modal/ui/ModalHeader.js.map +1 -1
- package/dist/lib/widgets/banner/ui/banners/BannerWithSeparateImg.js +1 -1
- package/dist/lib/widgets/banner/ui/banners/BannerWithSeparateImg.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/query.js +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/query.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/retryer.js +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/retryer.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/utils.js +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/utils.js.map +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/suspense.js +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/suspense.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types/lib/next/utils/hideWidgetsWithQueryParams.d.ts +2 -2
- package/dist/types/lib/next/utils/isEmptyWidgetList.d.ts +1 -1
- package/dist/types/lib/next/utils/orderWidgetWithQueryParams.d.ts +7 -7
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { WidgetsListDTO } from '
|
|
1
|
+
import { WidgetsListDTO } from '../../../widgets';
|
|
2
2
|
/**
|
|
3
3
|
* Скрытие виджетов по query параметрам в URL
|
|
4
4
|
* @extends searchParams наследуется от URLSearchParams, но использует ReadonlyURLSearchParams от next.js !!!
|
|
5
5
|
* @example hidden widgets
|
|
6
|
-
* sovcombank.ru/apply/credit/some-page?hide=
|
|
6
|
+
* sovcombank.ru/apply/credit/some-page?hide=0-2 (скрыть виджеты с индексами 0 и 2)
|
|
7
7
|
* @returns WidgetsListDTO если в URL странице передан параметр hide, возвращается новый список исключающий скрытые виджеты, иначе исходный список
|
|
8
8
|
*/
|
|
9
9
|
export declare const hideWidgetsWithQueryParams: <Params extends URLSearchParams>(widgetsList: WidgetsListDTO, searchParams: Params) => WidgetsListDTO;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WidgetsListDTO } from '
|
|
1
|
+
import { WidgetsListDTO } from '../../../widgets';
|
|
2
2
|
export declare const isEmptyWidgetList: (widgetsList: WidgetsListDTO) => boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { WidgetsListDTO } from '
|
|
1
|
+
import { WidgetsListDTO } from '../../../widgets';
|
|
2
2
|
/**
|
|
3
3
|
* Смена расположения виджетов по query параметрам в URL
|
|
4
4
|
* @extends searchParams наследуется от URLSearchParams, но использует ReadonlyURLSearchParams от next.js !!!
|
|
5
5
|
* @example order widgets
|
|
6
|
-
* sovcombank.ru/apply/credit/some-page?order=
|
|
6
|
+
* sovcombank.ru/apply/credit/some-page?order=3-4-1
|
|
7
7
|
*
|
|
8
8
|
* ['header', {}],
|
|
9
9
|
* ['banner', {}],
|
|
@@ -13,11 +13,11 @@ import { WidgetsListDTO } from '../../widgets';
|
|
|
13
13
|
* ---------------------
|
|
14
14
|
* Вернется новый список
|
|
15
15
|
* ---------------------
|
|
16
|
-
* ['
|
|
17
|
-
* ['
|
|
18
|
-
* ['
|
|
19
|
-
* ['
|
|
20
|
-
* ['
|
|
16
|
+
* 0: ['personalForm', {}], (индекс 3)
|
|
17
|
+
* 1: ['stepper', {}], (индекс 4)
|
|
18
|
+
* 2: ['banner', {}], (индекс 1)
|
|
19
|
+
* 3: ['header', {}], (индекс 0)
|
|
20
|
+
* 4: ['calculator', {}], (индекс 2)
|
|
21
21
|
* @returns WidgetsListDTO если в URL странице передан параметр order, возвращается новый список,
|
|
22
22
|
* список выстраивается в приоритете переданных виджетов в query, в конец возвращает остальные виджеты
|
|
23
23
|
*/
|