@redneckz/wildless-cms-uni-blocks 0.14.113 → 0.14.115
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.14.114.js +17 -0
- package/bundle/bundle.umd.js +3 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/package.json +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { clearImage, deleteEmptyProps, deleteProp, traversePageBlocks } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
export const description = 'v0.14.114';
|
|
4
|
+
|
|
5
|
+
export default traversePageBlocks(adjustClearBlock);
|
|
6
|
+
|
|
7
|
+
function adjustClearBlock(block) {
|
|
8
|
+
const content = block?.content;
|
|
9
|
+
if (!content) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
block.content = deleteEmptyProps(block?.content);
|
|
13
|
+
block.content = clearImage(block.content);
|
|
14
|
+
if (!('items' in content)) {
|
|
15
|
+
deleteProp(block.content, 'isDotted');
|
|
16
|
+
}
|
|
17
|
+
}
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
ev?.preventDefault();
|
|
637
637
|
router.back();
|
|
638
638
|
}, []);
|
|
639
|
-
return (jsxs("div", { className: getStyle(padding, defaultPadding, className), children: [backwardButton ? renderBackwardButton(version, handleClick) : null, title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl w-full', leftImage ? 'self-start @xl:w-auto' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow', 'h-full', //? fix issue https://github.com/redneckz/temp_wcms/issues/1254
|
|
639
|
+
return (jsxs("div", { className: getStyle(padding, defaultPadding, className), children: [backwardButton ? renderBackwardButton(version, handleClick) : null, title ? jsx("div", { className: "relative h-full", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl w-full', leftImage ? 'self-start @xl:w-auto' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow', 'h-full', //? fix issue https://github.com/redneckz/temp_wcms/issues/1254
|
|
640
640
|
'auto-rows-[max-content_1fr]'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
|
|
641
641
|
className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
|
|
642
642
|
imageAlign,
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
|
|
647
647
|
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'col-start-2 self-center' : '';
|
|
648
648
|
const renderButtons = (buttons) => buttons ? jsx("div", { className: "self-end", children: buttons }) : null;
|
|
649
|
-
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center
|
|
649
|
+
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
650
650
|
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @xl:block' : '';
|
|
651
651
|
|
|
652
652
|
const sum = (list = []) => list.reduce((a, b) => a + b, 0);
|
|
@@ -5797,7 +5797,7 @@
|
|
|
5797
5797
|
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" }) }));
|
|
5798
5798
|
}
|
|
5799
5799
|
|
|
5800
|
-
const packageVersion = "0.14.
|
|
5800
|
+
const packageVersion = "0.14.114";
|
|
5801
5801
|
|
|
5802
5802
|
exports.Blocks = Blocks;
|
|
5803
5803
|
exports.ContentPage = ContentPage;
|