@redneckz/wildless-cms-uni-blocks 0.14.56 → 0.14.57
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.56.js +33 -0
- package/bundle/bundle.umd.js +4 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +3 -1
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +3 -1
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +3 -1
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +3 -1
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/src/components/Footer/Footer.tsx +6 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +3 -1
- package/package.json +1 -1
- package/src/components/Footer/Footer.mobile.tsx +6 -1
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +7 -2
- package/src/components/RollupItem/RollupItem.fixture.tsx +1 -0
- package/src/components/RollupItem/RollupItem.tsx +3 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +4 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +3 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const description = 'v0.14.56';
|
|
2
|
+
|
|
3
|
+
export default (uniPath, content) => {
|
|
4
|
+
if (!content?.blocks) {
|
|
5
|
+
return content;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const block of content.blocks) {
|
|
9
|
+
adjustRollupItemFoldButtonVersion(block);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return { ...content };
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function adjustRollupItemFoldButtonVersion(block) {
|
|
16
|
+
if (block.blocks) {
|
|
17
|
+
for (const childBlock of block.blocks) {
|
|
18
|
+
adjustRollupItemFoldButtonVersion(childBlock);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (block.type === 'RollupItem') {
|
|
23
|
+
setRollupItemFoldButtonVersion(block.content);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function setRollupItemFoldButtonVersion(content = {}) {
|
|
28
|
+
if (!content.version || content.version === 'primary') {
|
|
29
|
+
content.foldButtonVersion = 'accordion';
|
|
30
|
+
} else {
|
|
31
|
+
content.foldButtonVersion = 'default';
|
|
32
|
+
}
|
|
33
|
+
}
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -5033,7 +5033,9 @@
|
|
|
5033
5033
|
|
|
5034
5034
|
const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
|
|
5035
5035
|
|
|
5036
|
-
const RollupItem = JSX(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = '
|
|
5036
|
+
const RollupItem = JSX(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = 'default',
|
|
5037
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5038
|
+
version, ...rest }) => (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren({
|
|
5037
5039
|
...rest,
|
|
5038
5040
|
extraProps: { className: 'w-full', padding: 'p-0' },
|
|
5039
5041
|
}) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
@@ -5808,7 +5810,7 @@
|
|
|
5808
5810
|
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" }) }));
|
|
5809
5811
|
}
|
|
5810
5812
|
|
|
5811
|
-
const packageVersion = "0.14.
|
|
5813
|
+
const packageVersion = "0.14.56";
|
|
5812
5814
|
|
|
5813
5815
|
exports.Blocks = Blocks;
|
|
5814
5816
|
exports.ContentPage = ContentPage;
|