@redneckz/wildless-cms-uni-blocks 0.14.449 → 0.14.451

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/utils.js CHANGED
@@ -86,7 +86,7 @@ export const traversePageBlocks =
86
86
  (...handlers) =>
87
87
  (uniPath, content, parent) => {
88
88
  for (const h of handlers) {
89
- h(content, parent);
89
+ h(content, parent, uniPath);
90
90
  }
91
91
  for (const block of content?.blocks || []) {
92
92
  traversePageBlocks(...handlers)(uniPath, block, content);
@@ -127,6 +127,14 @@
127
127
  };
128
128
 
129
129
  const style = (...atoms) => atoms
130
+ .map((_) => {
131
+ if (_ && typeof _ === 'object' && !Array.isArray(_)) {
132
+ return style(Object.entries(_)
133
+ .filter(([, v]) => v)
134
+ .map(([k]) => k));
135
+ }
136
+ return _;
137
+ })
130
138
  .flatMap((_) => _)
131
139
  .filter(Boolean)
132
140
  .join(' ');
@@ -6121,7 +6129,7 @@
6121
6129
  ...rest?.options,
6122
6130
  slotName,
6123
6131
  parent: block,
6124
- extraProps: { className: key === slotName ? '' : 'hidden' },
6132
+ extraProps: { className: key === slotName ? '!block' : 'hidden' }, //? hotfix for https://github.com/redneckz/wcms/issues/1816
6125
6133
  })) })] }));
6126
6134
  }, {
6127
6135
  slots: ({ tabs }) => tabs?.filter((_) => _.type === 'group').map(getSlotName) || [],
@@ -6562,7 +6570,7 @@
6562
6570
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6563
6571
  });
6564
6572
 
6565
- const packageVersion = "0.14.448";
6573
+ const packageVersion = "0.14.450";
6566
6574
 
6567
6575
  exports.Blocks = Blocks;
6568
6576
  exports.ContentPage = ContentPage;