@redneckz/wildless-cms-uni-blocks 0.14.366 → 0.14.367

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.
@@ -6167,7 +6167,7 @@
6167
6167
 
6168
6168
  const COOKIE_DIALOG_ID = 'cookie';
6169
6169
  const DIALOG_INITIAL_DELAY = 3 * 1000;
6170
- const CookiePopup = JSX(({ __html = '' }) => {
6170
+ const CookiePopup = JSX(({ __html }) => {
6171
6171
  const [opened, { setTrue: open, setFalse: close }] = useBool();
6172
6172
  useDebouncedEffect(() => {
6173
6173
  if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
@@ -6178,7 +6178,7 @@
6178
6178
  globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
6179
6179
  close();
6180
6180
  }, []);
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;
6181
+ 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
6182
  });
6183
6183
 
6184
6184
  function useList(initialList = []) {
@@ -6307,14 +6307,14 @@
6307
6307
  }), 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
6308
  ...options,
6309
6309
  slotName: STICKY_FOOTER_SLOT,
6310
- }) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { __html: resolvedPageContent.cookieContent?.__html })] }));
6310
+ }) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { __html: resolvedPageContent?.cookieContent?.__html })] }));
6311
6311
  });
6312
6312
  Object.assign(ContentPage, {
6313
6313
  childrenTypes: [],
6314
6314
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6315
6315
  });
6316
6316
 
6317
- const packageVersion = "0.14.365";
6317
+ const packageVersion = "0.14.366";
6318
6318
 
6319
6319
  exports.Blocks = Blocks;
6320
6320
  exports.ContentPage = ContentPage;