@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.
@@ -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
+ }
@@ -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 mt-auto @xl:mt-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
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.112";
5800
+ const packageVersion = "0.14.114";
5801
5801
 
5802
5802
  exports.Blocks = Blocks;
5803
5803
  exports.ContentPage = ContentPage;