@redneckz/wildless-cms-uni-blocks 0.14.366 → 0.14.368
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 +8 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/utils/url.d.ts +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/utils/url.d.ts +1 -1
- package/dist/utils/url.js +4 -1
- package/dist/utils/url.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/utils/url.d.ts +1 -1
- package/lib/utils/url.js +4 -1
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/utils/url.d.ts +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/utils/url.d.ts +1 -1
- package/mobile/dist/utils/url.js +4 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/utils/url.d.ts +1 -1
- package/mobile/lib/utils/url.js +4 -1
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +2 -2
- package/mobile/src/utils/url.ts +6 -1
- package/package.json +1 -1
- package/src/components/ContentPage/ContentPage.tsx +1 -1
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +2 -2
- package/src/utils/url.ts +6 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -297,7 +297,10 @@
|
|
|
297
297
|
const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
298
298
|
const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
|
|
299
299
|
const joinPath = (...path) => path.filter(Boolean).join('/').replace(/\/+/g, '/');
|
|
300
|
-
const hasPrefix = (href, prefix) => prefix &&
|
|
300
|
+
const hasPrefix = (href, prefix) => Boolean(prefix &&
|
|
301
|
+
href &&
|
|
302
|
+
href.startsWith(prefix) &&
|
|
303
|
+
[prefix === '/', href === prefix, href[prefix.length] === '/'].some(Boolean));
|
|
301
304
|
|
|
302
305
|
var url = /*#__PURE__*/Object.freeze({
|
|
303
306
|
__proto__: null,
|
|
@@ -6167,7 +6170,7 @@
|
|
|
6167
6170
|
|
|
6168
6171
|
const COOKIE_DIALOG_ID = 'cookie';
|
|
6169
6172
|
const DIALOG_INITIAL_DELAY = 3 * 1000;
|
|
6170
|
-
const CookiePopup = JSX(({ __html
|
|
6173
|
+
const CookiePopup = JSX(({ __html }) => {
|
|
6171
6174
|
const [opened, { setTrue: open, setFalse: close }] = useBool();
|
|
6172
6175
|
useDebouncedEffect(() => {
|
|
6173
6176
|
if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
|
|
@@ -6178,7 +6181,7 @@
|
|
|
6178
6181
|
globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
|
|
6179
6182
|
close();
|
|
6180
6183
|
}, []);
|
|
6181
|
-
return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm:flex-1", children: jsx(RichText, { __html: __html }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
6184
|
+
return opened && __html ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm:flex-1", children: jsx(RichText, { __html: __html }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
6182
6185
|
});
|
|
6183
6186
|
|
|
6184
6187
|
function useList(initialList = []) {
|
|
@@ -6307,14 +6310,14 @@
|
|
|
6307
6310
|
}), renderBlocksList(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), slots?.[STICKY_FOOTER_SLOT]?.length ? (jsx("div", { className: "fixed w-full bottom-0 left-0 z-[100]", children: renderBlocksList(slots?.[STICKY_FOOTER_SLOT], {
|
|
6308
6311
|
...options,
|
|
6309
6312
|
slotName: STICKY_FOOTER_SLOT,
|
|
6310
|
-
}) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { __html: resolvedPageContent
|
|
6313
|
+
}) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { __html: resolvedPageContent?.cookieContent?.__html })] }));
|
|
6311
6314
|
});
|
|
6312
6315
|
Object.assign(ContentPage, {
|
|
6313
6316
|
childrenTypes: [],
|
|
6314
6317
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6315
6318
|
});
|
|
6316
6319
|
|
|
6317
|
-
const packageVersion = "0.14.
|
|
6320
|
+
const packageVersion = "0.14.367";
|
|
6318
6321
|
|
|
6319
6322
|
exports.Blocks = Blocks;
|
|
6320
6323
|
exports.ContentPage = ContentPage;
|