@redneckz/wildless-cms-uni-blocks 0.14.20 → 0.14.21
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.14.21.js +33 -0
- package/bin/migration-scripts/0.14.7.js +1 -4
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +7 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Footer/SocialMedia.d.ts +3 -1
- package/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/bundle/content-page-repository/transformContentPage.d.ts +3 -2
- package/bundle/ui-kit/List/ListContent.d.ts +0 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +3 -1
- package/dist/components/Footer/SocialMedia.js +4 -3
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/dist/content-page-repository/transformAttachmentLink.js +33 -0
- package/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.d.ts +3 -2
- package/dist/content-page-repository/transformContentPage.js +7 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +1 -1
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +0 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +3 -1
- package/lib/components/Footer/SocialMedia.js +4 -3
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/lib/content-page-repository/transformAttachmentLink.js +27 -0
- package/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/lib/content-page-repository/transformContentPage.d.ts +3 -2
- package/lib/content-page-repository/transformContentPage.js +6 -0
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +1 -1
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/bundle/bundle.umd.js +6 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/dist/components/Footer/SocialMedia.js +4 -3
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +33 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/dist/content-page-repository/transformContentPage.js +7 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/lib/components/Footer/SocialMedia.js +4 -3
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +27 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/lib/content-page-repository/transformContentPage.js +6 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/src/components/Bonus/Bonus.ui.json +3 -0
- package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
- package/mobile/src/components/Calculator/Calculator.ui.json +3 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +8 -5
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +3 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +6 -0
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +38 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +13 -4
- package/mobile/src/content-page-repository/transformDocument.ts +1 -1
- package/mobile/src/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/ui-kit/List/ListContent.ts +0 -1
- package/package.json +1 -1
- package/src/components/Bonus/Bonus.ui.json +3 -0
- package/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
- package/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
- package/src/components/Calculator/Calculator.ui.json +3 -0
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
- package/src/components/Footer/Footer.tsx +3 -1
- package/src/components/Footer/SocialMedia.tsx +8 -5
- package/src/components/ProductGallery/ProductGallery.ui.json +3 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
- package/src/components/StepsBlock/StepsBlock.ui.json +6 -0
- package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/src/content-page-repository/transformAttachmentLink.ts +38 -0
- package/src/content-page-repository/transformContentPage.ts +13 -4
- package/src/content-page-repository/transformDocument.ts +1 -1
- package/src/content-page-repository/transformImg.ts +1 -1
- package/src/ui-kit/List/ListContent.ts +0 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -2810,20 +2810,21 @@
|
|
|
2810
2810
|
|
|
2811
2811
|
const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
|
|
2812
2812
|
|
|
2813
|
-
const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
|
|
2813
|
+
const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, version = 'white', children }) => {
|
|
2814
2814
|
const [hasText, setHasText] = useState();
|
|
2815
2815
|
const buttons = media?.map((_) => {
|
|
2816
2816
|
const { href, icon, text } = _;
|
|
2817
2817
|
const { iconMapped } = findIconByHref(href);
|
|
2818
2818
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
2819
|
-
const buttonText = showButtonText ? { text } : {};
|
|
2819
|
+
const buttonText = showButtonText ? { text } : { text: '' };
|
|
2820
2820
|
if (!hasText && text) {
|
|
2821
2821
|
setHasText(true);
|
|
2822
2822
|
}
|
|
2823
2823
|
return {
|
|
2824
|
+
..._,
|
|
2824
2825
|
...buttonText,
|
|
2825
2826
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
2826
|
-
version
|
|
2827
|
+
version,
|
|
2827
2828
|
};
|
|
2828
2829
|
});
|
|
2829
2830
|
const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
@@ -2838,7 +2839,7 @@
|
|
|
2838
2839
|
|
|
2839
2840
|
//TODO: replace SocialMedia with renderButtonSection
|
|
2840
2841
|
const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', isImageAlwaysOnRight = ImageAlwaysOnRight, ...rest }) => {
|
|
2841
|
-
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
2842
|
+
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
2842
2843
|
});
|
|
2843
2844
|
|
|
2844
2845
|
const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
|
|
@@ -3836,7 +3837,7 @@
|
|
|
3836
3837
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
|
|
3837
3838
|
fallback: rest.options?.page?.fallback,
|
|
3838
3839
|
});
|
|
3839
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3840
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, showButtonText: false, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3840
3841
|
});
|
|
3841
3842
|
|
|
3842
3843
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
@@ -5663,7 +5664,7 @@
|
|
|
5663
5664
|
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" }) }));
|
|
5664
5665
|
}
|
|
5665
5666
|
|
|
5666
|
-
const packageVersion = "0.14.
|
|
5667
|
+
const packageVersion = "0.14.21";
|
|
5667
5668
|
|
|
5668
5669
|
exports.Blocks = Blocks;
|
|
5669
5670
|
exports.ContentPage = ContentPage;
|