@redneckz/wildless-cms-uni-blocks 0.13.16 → 0.13.18
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.13.13.js +34 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +13 -21
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
- package/bundle/components/Carousel/Carousel.d.ts +0 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +1 -3
- package/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +0 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.js +3 -5
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/dist/components/ContentPage/toMobileBlock.js +12 -0
- package/dist/components/ContentPage/toMobileBlock.js.map +1 -0
- package/dist/components/ErrorBlock/ErrorBlock.js +3 -4
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -5
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +1 -3
- package/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +0 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.js +3 -5
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/lib/components/ContentPage/toMobileBlock.js +9 -0
- package/lib/components/ContentPage/toMobileBlock.js.map +1 -0
- package/lib/components/ErrorBlock/ErrorBlock.fixture.mobile.d.ts +7 -0
- package/lib/components/ErrorBlock/ErrorBlock.js +3 -4
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -5
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +22 -17
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +1 -3
- package/mobile/bundle/components/Carousel/Carousel.d.ts +0 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -3
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.d.ts +0 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.js +3 -5
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/mobile/dist/components/ContentPage/toMobileBlock.js +12 -0
- package/mobile/dist/components/ContentPage/toMobileBlock.js.map +1 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -4
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -5
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -3
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +2 -3
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +0 -5
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -1
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js +1 -1
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +3 -0
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +0 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.js +3 -5
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +2 -0
- package/mobile/lib/components/ContentPage/toMobileBlock.js +9 -0
- package/mobile/lib/components/ContentPage/toMobileBlock.js.map +1 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -4
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -4
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -5
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +1 -3
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
- package/mobile/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
- package/mobile/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
- package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
- package/mobile/src/components/Carousel/Carousel.tsx +0 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
- package/mobile/src/components/ContentPage/normalizeBlock.ts +3 -10
- package/mobile/src/components/ContentPage/toMobileBlock.ts +11 -0
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
- package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Calculator/Calculator.fixture.tsx +0 -1
- package/src/components/Calculator/CalculatorContent.ts +1 -3
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -9
- package/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +0 -5
- package/src/components/Calculator/getRefinancingCalculatorRateParams.ts +1 -1
- package/src/components/Calculator/useRefinancingCalculatorParams.ts +8 -0
- package/src/components/Carousel/Carousel.tsx +0 -1
- package/src/components/Carousel/CarouselContent.ts +2 -0
- package/src/components/ContentPage/ContentPage.tsx +1 -1
- package/src/components/ContentPage/normalizeBlock.mobile.ts +3 -10
- package/src/components/ContentPage/toMobileBlock.ts +11 -0
- package/src/components/ErrorBlock/ErrorBlock.example.json +2 -2
- package/src/components/ErrorBlock/ErrorBlock.fixture.mobile.tsx +52 -0
- package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +4 -4
- package/src/components/ErrorBlock/ErrorBlock.tsx +8 -14
- package/src/components/ErrorBlock/ErrorBlock.ui.json +1 -1
- package/src/components/ErrorBlock/ErrorBlockContent.ts +4 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -5
- package/src/ui-kit/Button/ButtonInner.tsx +2 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { renameProp } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
export const description = 'v0.13.13';
|
|
4
|
+
|
|
5
|
+
export default (uniPath, content) => {
|
|
6
|
+
if (!content?.blocks) {
|
|
7
|
+
return content;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
for (const block of content.blocks) {
|
|
11
|
+
adjustErrorBlock(block);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return { ...content };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
function adjustErrorBlock(block) {
|
|
18
|
+
if (block.blocks) {
|
|
19
|
+
for (const childBlock of block.blocks) {
|
|
20
|
+
adjustErrorBlock(childBlock);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (block.type === 'ErrorBlock' && block?.content) {
|
|
25
|
+
const content = block.content;
|
|
26
|
+
if (content?.subtitle) {
|
|
27
|
+
renameProp(content, 'subtitle', 'description');
|
|
28
|
+
}
|
|
29
|
+
const error = content?.error;
|
|
30
|
+
if (error) {
|
|
31
|
+
renameProp(error, 'errorContentType', 'contentType');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|