@redneckz/wildless-cms-uni-blocks 0.9.4 → 0.9.5
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.8.29.js +1 -0
- package/bin/migration-scripts/0.9.1.js +5 -4
- package/bundle/bundle.umd.js +4 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/StepsBlock/renderStep.js +3 -7
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/StepsBlock/renderStep.js +3 -7
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +3 -7
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +3 -7
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/src/components/StepsBlock/renderStep.tsx +6 -5
- package/package.json +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +3 -3
- package/src/components/StepsBlock/renderStep.tsx +6 -5
|
@@ -24,6 +24,7 @@ const adjustAccordion = (block) => {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const headlineTitle = block?.content?.title;
|
|
27
|
+
const headlineDescription = block?.content?.description;
|
|
27
28
|
const anchor = block?.anchor;
|
|
28
29
|
|
|
29
30
|
block.content = {
|
|
@@ -43,7 +44,7 @@ const adjustAccordion = (block) => {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
if (headlineTitle) {
|
|
46
|
-
block.blocks.unshift(getHeadlineBlock(headlineTitle,
|
|
47
|
+
block.blocks.unshift(getHeadlineBlock(headlineTitle, headlineDescription));
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
if (anchor) {
|
|
@@ -51,7 +52,7 @@ const adjustAccordion = (block) => {
|
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
|
|
54
|
-
const getHeadlineBlock = (title,
|
|
55
|
+
const getHeadlineBlock = (title, descriptionBlock = null) => {
|
|
55
56
|
const headline = {
|
|
56
57
|
content: {
|
|
57
58
|
title: title,
|
|
@@ -62,8 +63,8 @@ const getHeadlineBlock = (title, description = null) => {
|
|
|
62
63
|
style: ['col-span-12'],
|
|
63
64
|
type: 'Headline',
|
|
64
65
|
};
|
|
65
|
-
if (
|
|
66
|
-
headline.content.description =
|
|
66
|
+
if (descriptionBlock) {
|
|
67
|
+
headline.content.description = descriptionBlock;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
return headline;
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -4212,10 +4212,7 @@
|
|
|
4212
4212
|
const checkCanRenderIcon = (icon) => Boolean(icon?.icon || icon?.src);
|
|
4213
4213
|
|
|
4214
4214
|
// TODO: Create universal function for this case
|
|
4215
|
-
const renderStep = (props) =>
|
|
4216
|
-
// Linter doesn't understand that switch processes all cases
|
|
4217
|
-
// eslint-disable-next-line consistent-return
|
|
4218
|
-
(step, i, arr) => {
|
|
4215
|
+
const renderStep = (props) => (step, i, arr) => {
|
|
4219
4216
|
const { type } = step;
|
|
4220
4217
|
if (!(type === 'default' || type === 'rte')) {
|
|
4221
4218
|
return null;
|
|
@@ -4224,9 +4221,9 @@
|
|
|
4224
4221
|
case 'default':
|
|
4225
4222
|
return renderDefaultStep(props)(step, i, arr);
|
|
4226
4223
|
case 'rte':
|
|
4227
|
-
return jsx(RichText, { __html: step.__html });
|
|
4224
|
+
return (jsx("div", { className: style('text-center', getContainerWidth(arr.length)), children: jsx(RichText, { __html: step.__html }) }, String(i)));
|
|
4228
4225
|
default:
|
|
4229
|
-
|
|
4226
|
+
return null;
|
|
4230
4227
|
}
|
|
4231
4228
|
};
|
|
4232
4229
|
const renderDefaultStep = ({ styleMap, isMainButton, version }) => (step, i, arr) => {
|
|
@@ -4872,7 +4869,7 @@
|
|
|
4872
4869
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4873
4870
|
}
|
|
4874
4871
|
|
|
4875
|
-
const packageVersion = "0.9.
|
|
4872
|
+
const packageVersion = "0.9.5";
|
|
4876
4873
|
|
|
4877
4874
|
exports.Blocks = Blocks;
|
|
4878
4875
|
exports.ContentPage = ContentPage;
|