@redneckz/wildless-cms-uni-blocks 0.14.100 → 0.14.102
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/bin/migration-scripts/0.6.32.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +10 -11
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/isHrefActive.d.ts +4 -2
- package/bundle/icons/IconName.d.ts +2 -2
- package/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/bundle/ui-kit/SVG.d.ts +4 -2
- package/cosmos-static/icons/NewDocIcon.svg +1 -1
- package/cosmos-static/icons/SignDocsIcon.svg +1 -1
- package/cosmos-static/icons/SoundIcon.svg +1 -1
- package/cosmos-static/icons/sprites.svg +3 -0
- package/dist/api/LeadServiceAPI.js +1 -1
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +0 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Header/isHrefActive.d.ts +4 -2
- package/dist/components/Header/isHrefActive.js +2 -3
- package/dist/components/Header/isHrefActive.js.map +1 -1
- package/dist/components/RollupItem/getIconName.js +1 -1
- package/dist/components/RollupItem/getIconName.js.map +1 -1
- package/dist/components/RollupItem/getIconName.mobile.js +1 -1
- package/dist/components/RollupItem/getIconName.mobile.js.map +1 -1
- package/dist/icons/IconName.d.ts +2 -2
- package/dist/icons/IconName.js +1 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +2 -2
- package/dist/ui-kit/LinkButton/renderArrows.js +5 -1
- package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/dist/ui-kit/SVG.d.ts +4 -2
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/utils/getBorderStyle.js +1 -1
- package/dist/utils/getBorderStyle.js.map +1 -1
- package/lib/api/LeadServiceAPI.js +1 -1
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +0 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Header/isHrefActive.d.ts +4 -2
- package/lib/components/Header/isHrefActive.js +2 -3
- package/lib/components/Header/isHrefActive.js.map +1 -1
- package/lib/components/RollupItem/getIconName.js +1 -1
- package/lib/components/RollupItem/getIconName.js.map +1 -1
- package/lib/components/RollupItem/getIconName.mobile.js +1 -1
- package/lib/components/RollupItem/getIconName.mobile.js.map +1 -1
- package/lib/icons/IconName.d.ts +2 -2
- package/lib/icons/IconName.js +1 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +2 -2
- package/lib/ui-kit/LinkButton/renderArrows.js +5 -1
- package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/lib/ui-kit/SVG.d.ts +4 -2
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/utils/getBorderStyle.js +1 -1
- package/lib/utils/getBorderStyle.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/bundle/icons/IconName.d.ts +2 -2
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/bundle/ui-kit/SVG.d.ts +4 -2
- package/mobile/dist/api/LeadServiceAPI.js +1 -1
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +0 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/dist/components/Header/isHrefActive.js +2 -3
- package/mobile/dist/components/Header/isHrefActive.js.map +1 -1
- package/mobile/dist/components/RollupItem/getIconName.js +1 -1
- package/mobile/dist/components/RollupItem/getIconName.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +2 -2
- package/mobile/dist/icons/IconName.js +1 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/dist/ui-kit/LinkButton/renderArrows.js +5 -1
- package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.d.ts +4 -2
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/utils/getBorderStyle.js +1 -1
- package/mobile/dist/utils/getBorderStyle.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +1 -1
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +0 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/lib/components/Header/isHrefActive.js +2 -3
- package/mobile/lib/components/Header/isHrefActive.js.map +1 -1
- package/mobile/lib/components/RollupItem/getIconName.js +1 -1
- package/mobile/lib/components/RollupItem/getIconName.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +2 -2
- package/mobile/lib/icons/IconName.js +1 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/lib/ui-kit/LinkButton/renderArrows.js +5 -1
- package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.d.ts +4 -2
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/utils/getBorderStyle.js +1 -1
- package/mobile/lib/utils/getBorderStyle.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +0 -3
- package/mobile/src/components/Header/isHrefActive.ts +7 -4
- package/mobile/src/components/RollupItem/getIconName.tsx +1 -1
- package/mobile/src/icons/IconName.ts +2 -2
- package/mobile/src/icons/NewDocIcon.svg +1 -1
- package/mobile/src/icons/SignDocsIcon.svg +1 -1
- package/mobile/src/icons/SoundIcon.svg +1 -1
- package/mobile/src/services/sitemap/SitemapData.ts +2 -2
- package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
- package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
- package/mobile/src/ui-kit/SVG.tsx +5 -2
- package/mobile/src/utils/getBorderStyle.ts +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +1 -1
- package/src/components/Carousel/Carousel.tsx +0 -3
- package/src/components/Header/isHrefActive.ts +7 -4
- package/src/components/RollupItem/getIconName.mobile.tsx +1 -1
- package/src/components/RollupItem/getIconName.tsx +1 -1
- package/src/icons/IconName.ts +2 -2
- package/src/icons/NewDocIcon.svg +1 -1
- package/src/icons/SignDocsIcon.svg +1 -1
- package/src/icons/SoundIcon.svg +1 -1
- package/src/services/sitemap/SitemapData.ts +2 -2
- package/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
- package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
- package/src/ui-kit/SVG.tsx +5 -2
- package/src/utils/getBorderStyle.ts +1 -1
- package/bin/migration-scripts/0.11.0.js +0 -29
- package/bin/migration-scripts/0.12.9.js +0 -30
- package/bin/migration-scripts/0.13.5.js +0 -36
- package/bin/migration-scripts/0.13.6.js +0 -33
- package/bin/migration-scripts/0.14.26.js +0 -55
- package/bin/migration-scripts/0.14.28.js +0 -28
- package/bin/migration-scripts/0.14.29.js +0 -75
- package/bin/migration-scripts/0.14.30.js +0 -54
- package/bin/migration-scripts/0.14.44.js +0 -103
- package/bin/migration-scripts/0.5.14.js +0 -33
- package/bin/migration-scripts/0.6.43.js +0 -32
- package/bin/migration-scripts/0.7.8.js +0 -32
- package/bin/migration-scripts/0.8.10.js +0 -31
- package/bin/migration-scripts/0.8.29.js +0 -42
- package/bin/migration-scripts/0.8.8.js +0 -124
- package/bin/migration-scripts/0.9.1.js +0 -71
- package/bin/migration-scripts/0.9.10.js +0 -30
- package/bin/migration-scripts/0.9.9.js +0 -111
- package/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/dist/components/SafeDepositRental/renderClusterer.js +0 -35
- package/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/lib/components/SafeDepositRental/renderClusterer.js +0 -32
- package/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/renderClusterer.js +0 -35
- package/mobile/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/renderClusterer.js +0 -32
- package/mobile/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/src/components/SafeDepositRental/renderClusterer.ts +0 -51
- package/src/components/SafeDepositRental/renderClusterer.ts +0 -51
package/bundle/bundle.umd.js
CHANGED
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
});
|
|
871
871
|
|
|
872
872
|
function LeadServiceAPI() {
|
|
873
|
-
async function send(body, isIndividualType) {
|
|
873
|
+
async function send(body, isIndividualType = false) {
|
|
874
874
|
const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
|
|
875
875
|
try {
|
|
876
876
|
const response = await fetch(url, {
|
|
@@ -1844,7 +1844,10 @@
|
|
|
1844
1844
|
/** @deprecated */
|
|
1845
1845
|
function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
|
|
1846
1846
|
const isVisible = canDec || canInc;
|
|
1847
|
-
|
|
1847
|
+
if (!isVisible) {
|
|
1848
|
+
return null;
|
|
1849
|
+
}
|
|
1850
|
+
return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
|
|
1848
1851
|
}
|
|
1849
1852
|
|
|
1850
1853
|
const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
|
|
@@ -2912,7 +2915,7 @@
|
|
|
2912
2915
|
: null;
|
|
2913
2916
|
}
|
|
2914
2917
|
|
|
2915
|
-
const getBorderStyle = (showBorder) => showBorder
|
|
2918
|
+
const getBorderStyle = (showBorder = false) => showBorder
|
|
2916
2919
|
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
2917
2920
|
: '';
|
|
2918
2921
|
|
|
@@ -2967,11 +2970,8 @@
|
|
|
2967
2970
|
'CarouselBankHistoryCard',
|
|
2968
2971
|
'CarouselCatalogCard',
|
|
2969
2972
|
'CarouselInvestmentCard',
|
|
2970
|
-
'CarouselProductCard',
|
|
2971
|
-
'CarouselProgramsCard',
|
|
2972
2973
|
'CarouselRecommendationCard',
|
|
2973
2974
|
'CarouselTariffsCard',
|
|
2974
|
-
'CarouselInvestmentCard',
|
|
2975
2975
|
'RichTextBlock',
|
|
2976
2976
|
'ProductBlock',
|
|
2977
2977
|
];
|
|
@@ -4027,9 +4027,8 @@
|
|
|
4027
4027
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
4028
4028
|
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-52 border-r pr-s border-main-divider last:border-r-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
4029
4029
|
|
|
4030
|
-
const isHrefActive = (router) => ({ href }) => !href
|
|
4031
|
-
|
|
4032
|
-
: withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
4030
|
+
const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
|
|
4031
|
+
const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
|
|
4033
4032
|
|
|
4034
4033
|
const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
4035
4034
|
|
|
@@ -5059,7 +5058,7 @@
|
|
|
5059
5058
|
|
|
5060
5059
|
const foldableSectionStyles = 'grid grid-cols-12 [&>*]:pb-m';
|
|
5061
5060
|
|
|
5062
|
-
const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
5061
|
+
const getIconName = (isUnfolded = false) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
5063
5062
|
|
|
5064
5063
|
const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
|
|
5065
5064
|
|
|
@@ -5791,7 +5790,7 @@
|
|
|
5791
5790
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5792
5791
|
}
|
|
5793
5792
|
|
|
5794
|
-
const packageVersion = "0.14.
|
|
5793
|
+
const packageVersion = "0.14.101";
|
|
5795
5794
|
|
|
5796
5795
|
exports.Blocks = Blocks;
|
|
5797
5796
|
exports.ContentPage = ContentPage;
|