@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.
- package/bin/migration-scripts/0.6.21.js +15 -0
- package/bundle/bundle.umd.js +3 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +124 -123
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -1
- package/package.json +1 -1
- package/src/components/ContentPage/ContentPage.page.json +124 -123
- package/src/components/ContentPage/ContentPage.tsx +2 -1
- package/bin/migration-scripts/0.4.0.js +0 -3
- package/bin/migration-scripts/0.4.1.js +0 -3
|
@@ -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
|
+
};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -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 ? (
|
|
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.
|
|
3621
|
+
const packageVersion = "0.6.21";
|
|
3622
3622
|
|
|
3623
3623
|
exports.Blocks = Blocks;
|
|
3624
3624
|
exports.ContentPage = ContentPage;
|