@redneckz/wildless-cms-uni-blocks 0.6.20 → 0.6.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.
@@ -0,0 +1,15 @@
1
+ export const description = 'v0.6.21';
2
+
3
+ export default (unitPath, content) => {
4
+ if (!content?.blocks || !content?.slots) {
5
+ return content;
6
+ }
7
+
8
+ const footer = content.blocks.find(({ type }) => type === 'Footer');
9
+ if (footer) {
10
+ content.slots.footer = [footer];
11
+ content.blocks = content.blocks.filter((block) => block.type !== 'Footer');
12
+ }
13
+
14
+ return { ...content };
15
+ };
@@ -3610,15 +3610,15 @@
3610
3610
  context,
3611
3611
  };
3612
3612
  const pageSlots = renderSlots({ slots, parent: data, options });
3613
- return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [pageSlots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: pageSlots.header })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: renderBlocksList({ blocks, parent: data, options }) })) : null, likeControl ? renderLikeControl(context) : null] }));
3613
+ return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [pageSlots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: pageSlots.header })) : null, blocks?.length ? (jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderBlocksList({ blocks, parent: data, options }), pageSlots?.footer ? pageSlots.footer : null] })) : null, likeControl ? renderLikeControl(context) : null] }));
3614
3614
  });
3615
3615
  ContentPage.childrenTypes = [];
3616
- ContentPage.slots = () => ['header'];
3616
+ ContentPage.slots = () => ['header', 'footer'];
3617
3617
  function renderLikeControl(context) {
3618
3618
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") }));
3619
3619
  }
3620
3620
 
3621
- const packageVersion = "0.6.20";
3621
+ const packageVersion = "0.6.21";
3622
3622
 
3623
3623
  exports.Blocks = Blocks;
3624
3624
  exports.ContentPage = ContentPage;