@redneckz/wildless-cms-uni-blocks 0.14.115 → 0.14.117

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.
@@ -1,4 +1,4 @@
1
- import { clearImage, deleteEmptyProps, traversePageBlocks } from '../utils.js';
1
+ import { clearImage, deleteEmptyProps, deleteProp, traversePageBlocks } from '../utils.js';
2
2
 
3
3
  export const description = 'v0.14.111';
4
4
 
@@ -9,4 +9,13 @@ function adjustClearBlock(block) {
9
9
  block.content = deleteEmptyProps(block?.content);
10
10
  block.content = clearImage(block.content);
11
11
  }
12
+ if (block?.content?.__html === '<p><br></p>') {
13
+ deleteProp(block.content, '__html');
14
+ }
15
+ if (!('items' in block.content)) {
16
+ deleteProp(block.content, 'isDotted');
17
+ }
18
+ if (block.type === 'TextBlock' && block?.version === 'primary') {
19
+ deleteProp(block.content, 'version');
20
+ }
12
21
  }
package/bin/utils.js CHANGED
@@ -74,7 +74,9 @@ export function clearImage(obj) {
74
74
  const image = obj?.image;
75
75
  if (!image?.src && !image?.icon) {
76
76
  deleteProp(obj, 'image');
77
- deleteProp(obj, 'iconVersion');
77
+ if (obj?.iconVersion !== 'small' && obj?.iconVersion !== 'big') {
78
+ deleteProp(obj, 'iconVersion');
79
+ }
78
80
  }
79
81
 
80
82
  return obj;
@@ -3595,7 +3595,7 @@
3595
3595
  };
3596
3596
 
3597
3597
  const icon = { icon: 'GpsIcon' };
3598
- const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary" }), jsxs("div", { className: "space-y-2xs", children: [address ? jsx("p", { className: "text-primary-main text-l", children: address }) : null, jsx("p", { className: "text-secondary-text text-m", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
3598
+ const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary" }), jsxs("div", { className: "space-y-2xs", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
3599
3599
 
3600
3600
  const roundTo = (value, precision = 2) => {
3601
3601
  const factor = 10 ** precision;
@@ -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.114";
5800
+ const packageVersion = "0.14.116";
5801
5801
 
5802
5802
  exports.Blocks = Blocks;
5803
5803
  exports.ContentPage = ContentPage;