@redneckz/wildless-cms-uni-blocks 0.14.975 → 0.14.977
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +17 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/GalleryLayout/utils.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
- package/bundle/model/HeadlineType.d.ts +15 -8
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/dist/components/GalleryLayout/utils.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +15 -10
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
- package/dist/model/HeadlineType.d.ts +15 -8
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/lib/components/GalleryLayout/utils.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +15 -10
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
- package/lib/model/HeadlineType.d.ts +15 -8
- package/mobile/bundle/bundle.umd.js +17 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/GalleryLayout/utils.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
- package/mobile/bundle/model/HeadlineType.d.ts +15 -8
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/utils.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +15 -10
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
- package/mobile/dist/model/HeadlineType.d.ts +15 -8
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/utils.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +15 -10
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
- package/mobile/lib/model/HeadlineType.d.ts +15 -8
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +7 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +26 -17
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -5
- package/mobile/src/model/HeadlineType.ts +16 -8
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +7 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +16 -7
- package/src/components/ProductBlock/ProductBlock.tsx +26 -17
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -5
- package/src/model/HeadlineType.ts +16 -8
package/bundle/bundle.umd.js
CHANGED
|
@@ -986,20 +986,25 @@
|
|
|
986
986
|
return result;
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
-
const ProductBlock = UniBlock(({ className, padding, defaultPadding,
|
|
990
|
-
const
|
|
991
|
-
|
|
989
|
+
const ProductBlock = UniBlock(({ className, padding, defaultPadding, dynamicQueryParamText = {}, dynamicTextSource, description, title, ...rest }) => {
|
|
990
|
+
const { textType } = dynamicQueryParamText;
|
|
991
|
+
const formatText = getFormatDescription(dynamicQueryParamText, dynamicTextSource?.list, textType === 'title' ? title : description);
|
|
992
|
+
const textProps = {
|
|
993
|
+
title: textType === 'title' ? formatText : title,
|
|
994
|
+
description: textType === 'description' ? formatText : description,
|
|
995
|
+
};
|
|
996
|
+
return (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: defaultPadding || 'p-6xl', padding: padding, className: "grow h-full", ...textProps, ...rest }) }));
|
|
992
997
|
});
|
|
993
|
-
const getFormatDescription = (
|
|
994
|
-
const {
|
|
998
|
+
const getFormatDescription = (dynamicQueryParamText = {}, valuesList = [], text = '') => {
|
|
999
|
+
const { queryParam, value } = dynamicQueryParamText;
|
|
995
1000
|
const sessionQuery = saveSessionQuery();
|
|
996
|
-
const utmValue =
|
|
997
|
-
const dynamicValue = valuesList.find((item) => item?.id === utmValue)?.value;
|
|
998
|
-
return dynamicValue ?
|
|
1001
|
+
const utmValue = getQueryParamValue(queryParam ?? 'utm_source', sessionQuery);
|
|
1002
|
+
const dynamicValue = valuesList.find((item) => item?.id?.toLowerCase() === utmValue?.toLowerCase())?.value;
|
|
1003
|
+
return dynamicValue ? text?.replace(String(value), dynamicValue) : text;
|
|
999
1004
|
};
|
|
1000
|
-
const
|
|
1005
|
+
const getQueryParamValue = (queryParam, queryString) => {
|
|
1001
1006
|
const params = new URLSearchParams(queryString);
|
|
1002
|
-
return params.get(
|
|
1007
|
+
return params.get(queryParam);
|
|
1003
1008
|
};
|
|
1004
1009
|
|
|
1005
1010
|
const AdTile = JSX((props) => {
|
|
@@ -3714,7 +3719,7 @@
|
|
|
3714
3719
|
onChangeEsiaStatus(EsiaStatuses.Error);
|
|
3715
3720
|
}
|
|
3716
3721
|
}, [frameLocation]);
|
|
3717
|
-
return (jsxs("div", { className: "flex items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex gap-m flex-col justify-around w-full", children: [jsx("p", { className: "text-xl", children: `Заполните данные через Госуслуги${productType === 'debitCard' ? '
|
|
3722
|
+
return (jsxs("div", { className: "flex items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex gap-m flex-col justify-around w-full", children: [jsx("p", { className: "text-xl", children: `Заполните данные через Госуслуги${productType === 'debitCard' ? ': ' : ''}` }), productType === 'debitCard' ? (jsxs("ul", { className: "list-disc list-inside", children: [jsx("li", { children: "\u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442 \u0432\u0440\u0435\u043C\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438" }), jsx("li", { children: "\u2060\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u043A\u0443\u0440\u044C\u0435\u0440\u0441\u043A\u0430\u044F \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0430 \u0432 \u0433. \u041C\u043E\u0441\u043A\u0432\u0430 (\u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u041C\u041A\u0410\u0414)" })] })) : (jsxs("ul", { className: "list-disc list-inside", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] })), jsx(Img, { className: "block self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), jsx(Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), jsx(Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
|
|
3718
3723
|
});
|
|
3719
3724
|
|
|
3720
3725
|
const NAME_HINTS_LIST_OPTIONS = {
|
|
@@ -13069,7 +13074,7 @@
|
|
|
13069
13074
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
13070
13075
|
});
|
|
13071
13076
|
|
|
13072
|
-
const packageVersion = "0.14.
|
|
13077
|
+
const packageVersion = "0.14.976";
|
|
13073
13078
|
|
|
13074
13079
|
exports.Blocks = Blocks;
|
|
13075
13080
|
exports.ContentPage = ContentPage;
|