@redneckz/wildless-cms-uni-blocks 0.14.24 → 0.14.25
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/bundle.umd.js +10 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/utils/deleteAllCookie.d.ts +1 -0
- package/dist/components/Footer/Footer.js +3 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +3 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/utils/deleteAllCookie.d.ts +1 -0
- package/dist/utils/deleteAllCookie.js +11 -0
- package/dist/utils/deleteAllCookie.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Footer/Footer.js +3 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +3 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/utils/deleteAllCookie.d.ts +1 -0
- package/lib/utils/deleteAllCookie.js +8 -0
- package/lib/utils/deleteAllCookie.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +10 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/utils/deleteAllCookie.d.ts +1 -0
- package/mobile/dist/components/Footer/Footer.js +3 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/utils/deleteAllCookie.d.ts +1 -0
- package/mobile/dist/utils/deleteAllCookie.js +11 -0
- package/mobile/dist/utils/deleteAllCookie.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Footer/Footer.js +3 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/utils/deleteAllCookie.d.ts +1 -0
- package/mobile/lib/utils/deleteAllCookie.js +8 -0
- package/mobile/lib/utils/deleteAllCookie.js.map +1 -0
- package/mobile/src/components/Footer/Footer.tsx +10 -0
- package/mobile/src/utils/deleteAllCookie.ts +8 -0
- package/package.json +1 -1
- package/src/components/Footer/Footer.mobile.tsx +10 -0
- package/src/components/Footer/Footer.tsx +10 -0
- package/src/utils/deleteAllCookie.ts +8 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -3791,6 +3791,14 @@
|
|
|
3791
3791
|
});
|
|
3792
3792
|
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
3793
3793
|
|
|
3794
|
+
const deleteAllCookies = () => {
|
|
3795
|
+
const cookies = globalThis.document?.cookie.split(';') ?? [];
|
|
3796
|
+
for (const cookie of cookies) {
|
|
3797
|
+
const [name] = cookie.split('=');
|
|
3798
|
+
globalThis.document.cookie = `${name}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
|
|
3799
|
+
}
|
|
3800
|
+
};
|
|
3801
|
+
|
|
3794
3802
|
const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://old.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
|
|
3795
3803
|
const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { children: item.items?.map(renderContact) })] }, String(i)));
|
|
3796
3804
|
const renderContact = (item, index) => (jsxs("div", { className: "mb-m", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-2xs text-s font-light text-secondary-text", children: item.description })] }, String(index)));
|
|
@@ -3832,7 +3840,7 @@
|
|
|
3832
3840
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
|
|
3833
3841
|
fallback: rest.options?.page?.fallback,
|
|
3834
3842
|
});
|
|
3835
|
-
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 })] }));
|
|
3843
|
+
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(Button, { version: "link", href: "https://old.rshb.ru", className: "!text-left text-s font-light", onClick: deleteAllCookies, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3836
3844
|
});
|
|
3837
3845
|
|
|
3838
3846
|
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] })));
|
|
@@ -5680,7 +5688,7 @@
|
|
|
5680
5688
|
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" }) }));
|
|
5681
5689
|
}
|
|
5682
5690
|
|
|
5683
|
-
const packageVersion = "0.14.
|
|
5691
|
+
const packageVersion = "0.14.25";
|
|
5684
5692
|
|
|
5685
5693
|
exports.Blocks = Blocks;
|
|
5686
5694
|
exports.ContentPage = ContentPage;
|