@redneckz/wildless-cms-uni-blocks 0.14.458 → 0.14.460
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.454.js +101 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +25 -61
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +5 -20
- package/bundle/components/StepsBlock/renderStep.d.ts +2 -2
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +5 -5
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +11 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/dist/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -19
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -20
- package/dist/components/StepsBlock/renderStep.d.ts +2 -2
- package/dist/components/StepsBlock/renderStep.js +3 -17
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
- package/dist/components/TariffsTable/EmbeddableCellData.js +3 -3
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -5
- package/dist/components/TariffsTable/dataFixture.js +11 -6
- package/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
- package/dist/ui-kit/RichText/RichText.js +3 -2
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/RichText/RichTextProps.d.ts +11 -3
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/lib/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -19
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -20
- package/lib/components/StepsBlock/renderStep.d.ts +2 -2
- package/lib/components/StepsBlock/renderStep.js +3 -17
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
- package/lib/components/TariffsTable/EmbeddableCellData.js +3 -3
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -5
- package/lib/components/TariffsTable/dataFixture.js +11 -6
- package/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
- package/lib/ui-kit/RichText/RichText.fixture.d.ts +4 -0
- package/lib/ui-kit/RichText/RichText.js +3 -2
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/RichTextProps.d.ts +11 -3
- package/mobile/bundle/bundle.umd.js +25 -65
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +5 -20
- package/mobile/bundle/components/StepsBlock/renderStep.d.ts +2 -2
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +5 -5
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +11 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -19
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +5 -20
- package/mobile/dist/components/StepsBlock/renderStep.d.ts +2 -2
- package/mobile/dist/components/StepsBlock/renderStep.js +3 -17
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +3 -3
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -5
- package/mobile/dist/components/TariffsTable/dataFixture.js +11 -6
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
- package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +11 -3
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -19
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +5 -20
- package/mobile/lib/components/StepsBlock/renderStep.d.ts +2 -2
- package/mobile/lib/components/StepsBlock/renderStep.js +3 -17
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -3
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +3 -3
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -5
- package/mobile/lib/components/TariffsTable/dataFixture.js +11 -6
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -10
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +1 -2
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
- package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +11 -3
- package/mobile/src/common.css +30 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -3
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -3
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +6 -10
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -1
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +0 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +28 -50
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -24
- package/mobile/src/components/StepsBlock/renderStep.tsx +5 -33
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +8 -10
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +6 -6
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +5 -5
- package/mobile/src/components/TariffsTable/dataFixture.tsx +13 -7
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -17
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +0 -2
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -2
- package/mobile/src/ui-kit/RichText/RichText.tsx +11 -2
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +13 -3
- package/package.json +1 -1
- package/src/common.css +30 -1
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +16 -15
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +15 -8
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +17 -10
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -3
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +7 -5
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +6 -10
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +2 -2
- package/src/components/MobileAppTile/MobileAppTile.example.json +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +9 -7
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +11 -9
- package/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
- package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
- package/src/components/ProductBlock/ProductBlock.example.json +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +9 -7
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +8 -6
- package/src/components/ProductGallery/ProductGallery.example.json +2 -2
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +16 -13
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +16 -13
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.example.json +0 -3
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +4 -19
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +17 -16
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +28 -50
- package/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/src/components/StepsBlock/StepsBlockContent.ts +9 -24
- package/src/components/StepsBlock/renderStep.tsx +5 -33
- package/src/components/TariffsTable/EmbeddableCellData.tsx +8 -10
- package/src/components/TariffsTable/TariffsTable.example.json +6 -6
- package/src/components/TariffsTable/TariffsTableContent.ts +5 -5
- package/src/components/TariffsTable/dataFixture.tsx +13 -7
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -17
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +0 -2
- package/src/ui-kit/InputRange/InputRangeProps.ts +1 -2
- package/src/ui-kit/RichText/RichText.fixture.tsx +45 -0
- package/src/ui-kit/RichText/RichText.tsx +11 -2
- package/src/ui-kit/RichText/RichTextProps.ts +13 -3
- package/bundle/model/RichTextItem.d.ts +0 -8
- package/bundle/ui-kit/List/List.d.ts +0 -7
- package/bundle/ui-kit/List/ListContent.d.ts +0 -21
- package/bundle/ui-kit/List/ListItem.d.ts +0 -10
- package/dist/model/RichTextItem.d.ts +0 -8
- package/dist/model/RichTextItem.js +0 -2
- package/dist/model/RichTextItem.js.map +0 -1
- package/dist/ui-kit/List/List.d.ts +0 -7
- package/dist/ui-kit/List/List.js +0 -28
- package/dist/ui-kit/List/List.js.map +0 -1
- package/dist/ui-kit/List/ListContent.d.ts +0 -21
- package/dist/ui-kit/List/ListContent.js +0 -2
- package/dist/ui-kit/List/ListContent.js.map +0 -1
- package/dist/ui-kit/List/ListItem.d.ts +0 -10
- package/dist/ui-kit/List/ListItem.js +0 -7
- package/dist/ui-kit/List/ListItem.js.map +0 -1
- package/lib/model/RichTextItem.d.ts +0 -8
- package/lib/model/RichTextItem.js +0 -2
- package/lib/model/RichTextItem.js.map +0 -1
- package/lib/ui-kit/List/List.d.ts +0 -7
- package/lib/ui-kit/List/List.fixture.d.ts +0 -9
- package/lib/ui-kit/List/List.js +0 -26
- package/lib/ui-kit/List/List.js.map +0 -1
- package/lib/ui-kit/List/ListContent.d.ts +0 -21
- package/lib/ui-kit/List/ListContent.js +0 -2
- package/lib/ui-kit/List/ListContent.js.map +0 -1
- package/lib/ui-kit/List/ListItem.d.ts +0 -10
- package/lib/ui-kit/List/ListItem.js +0 -5
- package/lib/ui-kit/List/ListItem.js.map +0 -1
- package/mobile/bundle/model/RichTextItem.d.ts +0 -8
- package/mobile/bundle/ui-kit/List/List.d.ts +0 -7
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +0 -21
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +0 -10
- package/mobile/dist/model/RichTextItem.d.ts +0 -8
- package/mobile/dist/model/RichTextItem.js +0 -2
- package/mobile/dist/model/RichTextItem.js.map +0 -1
- package/mobile/dist/ui-kit/List/List.d.ts +0 -7
- package/mobile/dist/ui-kit/List/List.js +0 -28
- package/mobile/dist/ui-kit/List/List.js.map +0 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +0 -21
- package/mobile/dist/ui-kit/List/ListContent.js +0 -2
- package/mobile/dist/ui-kit/List/ListContent.js.map +0 -1
- package/mobile/dist/ui-kit/List/ListItem.d.ts +0 -10
- package/mobile/dist/ui-kit/List/ListItem.js +0 -7
- package/mobile/dist/ui-kit/List/ListItem.js.map +0 -1
- package/mobile/lib/model/RichTextItem.d.ts +0 -8
- package/mobile/lib/model/RichTextItem.js +0 -2
- package/mobile/lib/model/RichTextItem.js.map +0 -1
- package/mobile/lib/ui-kit/List/List.d.ts +0 -7
- package/mobile/lib/ui-kit/List/List.js +0 -26
- package/mobile/lib/ui-kit/List/List.js.map +0 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +0 -21
- package/mobile/lib/ui-kit/List/ListContent.js +0 -2
- package/mobile/lib/ui-kit/List/ListContent.js.map +0 -1
- package/mobile/lib/ui-kit/List/ListItem.d.ts +0 -10
- package/mobile/lib/ui-kit/List/ListItem.js +0 -5
- package/mobile/lib/ui-kit/List/ListItem.js.map +0 -1
- package/mobile/src/model/RichTextItem.ts +0 -9
- package/mobile/src/ui-kit/List/List.tsx +0 -56
- package/mobile/src/ui-kit/List/ListContent.ts +0 -25
- package/mobile/src/ui-kit/List/ListItem.tsx +0 -28
- package/src/model/RichTextItem.ts +0 -9
- package/src/ui-kit/List/List.fixture.tsx +0 -28
- package/src/ui-kit/List/List.tsx +0 -56
- package/src/ui-kit/List/ListContent.ts +0 -25
- package/src/ui-kit/List/ListItem.tsx +0 -28
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { deleteProp, traversePageBlocks } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
export const description = 'v0.14.454';
|
|
4
|
+
|
|
5
|
+
export default traversePageBlocks(adjustList);
|
|
6
|
+
|
|
7
|
+
function adjustList(block) {
|
|
8
|
+
const content = block?.content;
|
|
9
|
+
|
|
10
|
+
if (!content || !block?.type || !blockTypesArray.includes(block.type)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (content?.items?.length === 0) {
|
|
14
|
+
deleteProp(content, 'items');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (block.type === 'BenefitsBlock' && content?.benefitList?.length) {
|
|
18
|
+
content.benefitList = listToHtml(content.benefitList);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (block.type === 'ProductGallery' && content?.slides?.length) {
|
|
22
|
+
content.slides = listToHtml(content.slides);
|
|
23
|
+
for (const item of content.slides) {
|
|
24
|
+
if (item?.productBlock) {
|
|
25
|
+
item.productBlock = listToHtml(item.productBlock);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (
|
|
31
|
+
block.type === 'AdTile' ||
|
|
32
|
+
block.type === 'CarouselRecommendationCard' ||
|
|
33
|
+
block.type === 'InvestmentInfo' ||
|
|
34
|
+
block.type === 'MobileAppTile' ||
|
|
35
|
+
block.type === 'ProductBlock' ||
|
|
36
|
+
block.type === 'MobileAppBlock'
|
|
37
|
+
) {
|
|
38
|
+
block.content = listToHtml(content);
|
|
39
|
+
if (block?.mobile?.content?.items) {
|
|
40
|
+
block.mobile.content = listToHtml(content.mobile.content);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (block.type === 'StepsBlock' && content?.steps) {
|
|
45
|
+
for (let step of content.steps) {
|
|
46
|
+
if (!step?.items) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
step = listToHtml(step);
|
|
50
|
+
deleteProp(step, 'type');
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (block.type === 'TariffsTable' && content?.tariffsColumns?.length) {
|
|
55
|
+
for (const column of content.tariffsColumns) {
|
|
56
|
+
for (const item of column?.data ?? []) {
|
|
57
|
+
for (let _ of item ?? []) {
|
|
58
|
+
if (_?.tableCellType === 'List' && _.items?.length) {
|
|
59
|
+
_ = listToHtml(_);
|
|
60
|
+
_.tableCellType = 'RichText';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const blockTypesArray = [
|
|
69
|
+
'AdTile',
|
|
70
|
+
'BenefitsBlock',
|
|
71
|
+
'CarouselRecommendationCard',
|
|
72
|
+
'InvestmentInfo',
|
|
73
|
+
'MobileAppTile',
|
|
74
|
+
'ProductBlock',
|
|
75
|
+
'ProductGallery',
|
|
76
|
+
'StepsBlock',
|
|
77
|
+
'TariffsTable',
|
|
78
|
+
'MobileAppBlock',
|
|
79
|
+
];
|
|
80
|
+
|
|
81
|
+
const EMPTY_HTML = '<p><br></p>';
|
|
82
|
+
|
|
83
|
+
const createList = (items) => `<ul><li>${items.join('</li><li>')}</li></ul>`;
|
|
84
|
+
|
|
85
|
+
const listToHtml = (content) => {
|
|
86
|
+
if (Array.isArray(content)) {
|
|
87
|
+
for (let _ of content) {
|
|
88
|
+
_ = listToHtml(_);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (content?.items?.length) {
|
|
92
|
+
const html = content?.__html;
|
|
93
|
+
content.__html =
|
|
94
|
+
content?.__html === EMPTY_HTML || !html
|
|
95
|
+
? createList(content?.items)
|
|
96
|
+
: `${createList(content?.items)}${content?.__html}`;
|
|
97
|
+
}
|
|
98
|
+
deleteProp(content, 'items');
|
|
99
|
+
|
|
100
|
+
return content;
|
|
101
|
+
};
|