@redneckz/wildless-cms-uni-blocks 0.8.14 → 0.8.16
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.10.js +1 -1
- package/bin/migration-scripts/0.8.15.js +29 -0
- package/bin/migration-scripts/0.8.8.js +115 -0
- package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
- package/bundle/BlockRenderer/renderChildren.d.ts +2 -2
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +37 -121
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/dist/BlockRenderer/renderBlock.js +2 -2
- package/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/dist/BlockRenderer/renderBlockList.d.ts +2 -2
- package/dist/BlockRenderer/renderBlockList.js +1 -1
- package/dist/BlockRenderer/renderChildren.d.ts +2 -2
- package/dist/BlockRenderer/renderChildren.js +2 -2
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +9 -18
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +3 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/lib/BlockRenderer/renderBlock.js +2 -2
- package/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/lib/BlockRenderer/renderBlockList.d.ts +2 -2
- package/lib/BlockRenderer/renderBlockList.js +1 -1
- package/lib/BlockRenderer/renderChildren.d.ts +2 -2
- package/lib/BlockRenderer/renderChildren.js +2 -2
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +9 -18
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +3 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
- package/mobile/bundle/BlockRenderer/renderChildren.d.ts +2 -2
- package/mobile/bundle/bundle.umd.js +11 -44
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
- package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/dist/BlockRenderer/renderBlockList.d.ts +2 -2
- package/mobile/dist/BlockRenderer/renderBlockList.js +1 -1
- package/mobile/dist/BlockRenderer/renderChildren.d.ts +2 -2
- package/mobile/dist/BlockRenderer/renderChildren.js +2 -2
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +9 -18
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/dist/components/Tabs/Tabs.js +1 -1
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +3 -9
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
- package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
- package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/lib/BlockRenderer/renderBlockList.d.ts +2 -2
- package/mobile/lib/BlockRenderer/renderBlockList.js +1 -1
- package/mobile/lib/BlockRenderer/renderChildren.d.ts +2 -2
- package/mobile/lib/BlockRenderer/renderChildren.js +2 -2
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +9 -18
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
- package/mobile/lib/components/Tabs/Tabs.js +1 -1
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +3 -9
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
- package/mobile/src/BlockRenderer/renderBlock.tsx +2 -0
- package/mobile/src/BlockRenderer/renderBlockList.tsx +3 -3
- package/mobile/src/BlockRenderer/renderChildren.ts +3 -3
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Carousel/Carousel.tsx +9 -19
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/mobile/src/components/ProductBlock/ProductBlock.ui.json +3 -0
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/mobile/src/components/Tabs/Tabs.tsx +1 -1
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/package.json +1 -1
- package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
- package/src/BlockRenderer/renderBlock.tsx +2 -0
- package/src/BlockRenderer/renderBlockList.tsx +3 -3
- package/src/BlockRenderer/renderChildren.ts +3 -3
- package/src/components/Accordion/Accordion.fixture.tsx +0 -12
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +0 -6
- package/src/components/Carousel/Carousel.tsx +9 -19
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -18
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.ui.json +3 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +7 -0
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/bundle/components/Catalog/Catalog.d.ts +0 -5
- package/bundle/components/Catalog/CatalogCard.d.ts +0 -7
- package/bundle/components/Catalog/CatalogContent.d.ts +0 -27
- package/bundle/components/Gallery/Gallery.d.ts +0 -2
- package/bundle/components/Gallery/Gallery.mobile.d.ts +0 -2
- package/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
- package/bundle/components/Gallery/GalleryContent.d.ts +0 -71
- package/bundle/components/Gallery/GalleryInner.d.ts +0 -7
- package/bundle/components/Gallery/GalleryProps.d.ts +0 -4
- package/bundle/components/Gallery/constants.d.ts +0 -4
- package/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/bundle/model/GalleryVersion.d.ts +0 -1
- package/dist/components/Catalog/Catalog.d.ts +0 -5
- package/dist/components/Catalog/Catalog.js +0 -24
- package/dist/components/Catalog/Catalog.js.map +0 -1
- package/dist/components/Catalog/CatalogCard.d.ts +0 -7
- package/dist/components/Catalog/CatalogCard.js +0 -14
- package/dist/components/Catalog/CatalogCard.js.map +0 -1
- package/dist/components/Catalog/CatalogContent.d.ts +0 -27
- package/dist/components/Catalog/CatalogContent.js +0 -2
- package/dist/components/Catalog/CatalogContent.js.map +0 -1
- package/dist/components/Gallery/Gallery.d.ts +0 -2
- package/dist/components/Gallery/Gallery.js +0 -7
- package/dist/components/Gallery/Gallery.js.map +0 -1
- package/dist/components/Gallery/Gallery.mobile.d.ts +0 -2
- package/dist/components/Gallery/Gallery.mobile.js +0 -35
- package/dist/components/Gallery/Gallery.mobile.js.map +0 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/dist/components/Gallery/GalleryCardInner.js +0 -20
- package/dist/components/Gallery/GalleryCardInner.js.map +0 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +0 -11
- package/dist/components/Gallery/GalleryContainer.js +0 -15
- package/dist/components/Gallery/GalleryContainer.js.map +0 -1
- package/dist/components/Gallery/GalleryContent.d.ts +0 -71
- package/dist/components/Gallery/GalleryContent.js +0 -2
- package/dist/components/Gallery/GalleryContent.js.map +0 -1
- package/dist/components/Gallery/GalleryInner.d.ts +0 -7
- package/dist/components/Gallery/GalleryInner.js +0 -23
- package/dist/components/Gallery/GalleryInner.js.map +0 -1
- package/dist/components/Gallery/GalleryProps.d.ts +0 -4
- package/dist/components/Gallery/GalleryProps.js +0 -2
- package/dist/components/Gallery/GalleryProps.js.map +0 -1
- package/dist/components/Gallery/constants.d.ts +0 -4
- package/dist/components/Gallery/constants.js +0 -15
- package/dist/components/Gallery/constants.js.map +0 -1
- package/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/dist/components/MiniGallery/MiniGallery.js +0 -7
- package/dist/components/MiniGallery/MiniGallery.js.map +0 -1
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/dist/model/GalleryVersion.d.ts +0 -1
- package/dist/model/GalleryVersion.js +0 -2
- package/dist/model/GalleryVersion.js.map +0 -1
- package/lib/components/Catalog/Catalog.d.ts +0 -5
- package/lib/components/Catalog/Catalog.fixture.d.ts +0 -8
- package/lib/components/Catalog/Catalog.js +0 -22
- package/lib/components/Catalog/Catalog.js.map +0 -1
- package/lib/components/Catalog/CatalogCard.d.ts +0 -7
- package/lib/components/Catalog/CatalogCard.js +0 -12
- package/lib/components/Catalog/CatalogCard.js.map +0 -1
- package/lib/components/Catalog/CatalogContent.d.ts +0 -27
- package/lib/components/Catalog/CatalogContent.js +0 -2
- package/lib/components/Catalog/CatalogContent.js.map +0 -1
- package/lib/components/Gallery/Gallery.d.ts +0 -2
- package/lib/components/Gallery/Gallery.fixture.d.ts +0 -12
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +0 -7
- package/lib/components/Gallery/Gallery.js +0 -5
- package/lib/components/Gallery/Gallery.js.map +0 -1
- package/lib/components/Gallery/Gallery.mobile.d.ts +0 -2
- package/lib/components/Gallery/Gallery.mobile.js +0 -33
- package/lib/components/Gallery/Gallery.mobile.js.map +0 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/lib/components/Gallery/GalleryCardInner.js +0 -18
- package/lib/components/Gallery/GalleryCardInner.js.map +0 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +0 -11
- package/lib/components/Gallery/GalleryContainer.js +0 -13
- package/lib/components/Gallery/GalleryContainer.js.map +0 -1
- package/lib/components/Gallery/GalleryContent.d.ts +0 -71
- package/lib/components/Gallery/GalleryContent.js +0 -2
- package/lib/components/Gallery/GalleryContent.js.map +0 -1
- package/lib/components/Gallery/GalleryInner.d.ts +0 -7
- package/lib/components/Gallery/GalleryInner.js +0 -21
- package/lib/components/Gallery/GalleryInner.js.map +0 -1
- package/lib/components/Gallery/GalleryProps.d.ts +0 -4
- package/lib/components/Gallery/GalleryProps.js +0 -2
- package/lib/components/Gallery/GalleryProps.js.map +0 -1
- package/lib/components/Gallery/constants.d.ts +0 -4
- package/lib/components/Gallery/constants.js +0 -13
- package/lib/components/Gallery/constants.js.map +0 -1
- package/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +0 -11
- package/lib/components/MiniGallery/MiniGallery.js +0 -5
- package/lib/components/MiniGallery/MiniGallery.js.map +0 -1
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/lib/model/GalleryVersion.d.ts +0 -1
- package/lib/model/GalleryVersion.js +0 -2
- package/lib/model/GalleryVersion.js.map +0 -1
- package/mobile/bundle/components/Catalog/Catalog.d.ts +0 -5
- package/mobile/bundle/components/Catalog/CatalogCard.d.ts +0 -7
- package/mobile/bundle/components/Catalog/CatalogContent.d.ts +0 -27
- package/mobile/bundle/components/Gallery/Gallery.d.ts +0 -2
- package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +0 -71
- package/mobile/bundle/components/Gallery/GalleryInner.d.ts +0 -7
- package/mobile/bundle/components/Gallery/GalleryProps.d.ts +0 -4
- package/mobile/bundle/components/Gallery/constants.d.ts +0 -4
- package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/mobile/bundle/model/GalleryVersion.d.ts +0 -1
- package/mobile/dist/components/Catalog/Catalog.d.ts +0 -5
- package/mobile/dist/components/Catalog/Catalog.js +0 -24
- package/mobile/dist/components/Catalog/Catalog.js.map +0 -1
- package/mobile/dist/components/Catalog/CatalogCard.d.ts +0 -7
- package/mobile/dist/components/Catalog/CatalogCard.js +0 -14
- package/mobile/dist/components/Catalog/CatalogCard.js.map +0 -1
- package/mobile/dist/components/Catalog/CatalogContent.d.ts +0 -27
- package/mobile/dist/components/Catalog/CatalogContent.js +0 -2
- package/mobile/dist/components/Catalog/CatalogContent.js.map +0 -1
- package/mobile/dist/components/Gallery/Gallery.d.ts +0 -2
- package/mobile/dist/components/Gallery/Gallery.js +0 -35
- package/mobile/dist/components/Gallery/Gallery.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js +0 -20
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +0 -11
- package/mobile/dist/components/Gallery/GalleryContainer.js +0 -15
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +0 -71
- package/mobile/dist/components/Gallery/GalleryContent.js +0 -2
- package/mobile/dist/components/Gallery/GalleryContent.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryInner.d.ts +0 -7
- package/mobile/dist/components/Gallery/GalleryInner.js +0 -23
- package/mobile/dist/components/Gallery/GalleryInner.js.map +0 -1
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +0 -4
- package/mobile/dist/components/Gallery/GalleryProps.js +0 -2
- package/mobile/dist/components/Gallery/GalleryProps.js.map +0 -1
- package/mobile/dist/components/Gallery/constants.d.ts +0 -4
- package/mobile/dist/components/Gallery/constants.js +0 -15
- package/mobile/dist/components/Gallery/constants.js.map +0 -1
- package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/mobile/dist/components/MiniGallery/MiniGallery.js +0 -7
- package/mobile/dist/components/MiniGallery/MiniGallery.js.map +0 -1
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/mobile/dist/model/GalleryVersion.d.ts +0 -1
- package/mobile/dist/model/GalleryVersion.js +0 -2
- package/mobile/dist/model/GalleryVersion.js.map +0 -1
- package/mobile/lib/components/Catalog/Catalog.d.ts +0 -5
- package/mobile/lib/components/Catalog/Catalog.js +0 -22
- package/mobile/lib/components/Catalog/Catalog.js.map +0 -1
- package/mobile/lib/components/Catalog/CatalogCard.d.ts +0 -7
- package/mobile/lib/components/Catalog/CatalogCard.js +0 -12
- package/mobile/lib/components/Catalog/CatalogCard.js.map +0 -1
- package/mobile/lib/components/Catalog/CatalogContent.d.ts +0 -27
- package/mobile/lib/components/Catalog/CatalogContent.js +0 -2
- package/mobile/lib/components/Catalog/CatalogContent.js.map +0 -1
- package/mobile/lib/components/Gallery/Gallery.d.ts +0 -2
- package/mobile/lib/components/Gallery/Gallery.js +0 -33
- package/mobile/lib/components/Gallery/Gallery.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js +0 -18
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +0 -11
- package/mobile/lib/components/Gallery/GalleryContainer.js +0 -13
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +0 -71
- package/mobile/lib/components/Gallery/GalleryContent.js +0 -2
- package/mobile/lib/components/Gallery/GalleryContent.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryInner.d.ts +0 -7
- package/mobile/lib/components/Gallery/GalleryInner.js +0 -21
- package/mobile/lib/components/Gallery/GalleryInner.js.map +0 -1
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +0 -4
- package/mobile/lib/components/Gallery/GalleryProps.js +0 -2
- package/mobile/lib/components/Gallery/GalleryProps.js.map +0 -1
- package/mobile/lib/components/Gallery/constants.d.ts +0 -4
- package/mobile/lib/components/Gallery/constants.js +0 -13
- package/mobile/lib/components/Gallery/constants.js.map +0 -1
- package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
- package/mobile/lib/components/MiniGallery/MiniGallery.js +0 -5
- package/mobile/lib/components/MiniGallery/MiniGallery.js.map +0 -1
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
- package/mobile/lib/model/GalleryVersion.d.ts +0 -1
- package/mobile/lib/model/GalleryVersion.js +0 -2
- package/mobile/lib/model/GalleryVersion.js.map +0 -1
- package/mobile/src/components/Catalog/Catalog.example.json +0 -59
- package/mobile/src/components/Catalog/Catalog.tsx +0 -49
- package/mobile/src/components/Catalog/Catalog.ui.json +0 -11
- package/mobile/src/components/Catalog/CatalogCard.tsx +0 -47
- package/mobile/src/components/Catalog/CatalogContent.ts +0 -29
- package/mobile/src/components/Gallery/Gallery.example.json +0 -66
- package/mobile/src/components/Gallery/Gallery.tsx +0 -113
- package/mobile/src/components/Gallery/Gallery.ui.json +0 -22
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +0 -78
- package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -61
- package/mobile/src/components/Gallery/GalleryContent.ts +0 -74
- package/mobile/src/components/Gallery/GalleryInner.tsx +0 -50
- package/mobile/src/components/Gallery/GalleryProps.ts +0 -4
- package/mobile/src/components/Gallery/constants.ts +0 -16
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +0 -56
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +0 -10
- package/mobile/src/components/MiniGallery/MiniGallery.ui.json +0 -19
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
- package/mobile/src/model/GalleryVersion.ts +0 -1
- package/src/components/Catalog/Catalog.example.json +0 -59
- package/src/components/Catalog/Catalog.fixture.tsx +0 -50
- package/src/components/Catalog/Catalog.tsx +0 -49
- package/src/components/Catalog/Catalog.ui.json +0 -11
- package/src/components/Catalog/CatalogCard.tsx +0 -47
- package/src/components/Catalog/CatalogContent.ts +0 -29
- package/src/components/Gallery/Gallery.example.json +0 -66
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -83
- package/src/components/Gallery/Gallery.fixture.tsx +0 -225
- package/src/components/Gallery/Gallery.mobile.tsx +0 -113
- package/src/components/Gallery/Gallery.tsx +0 -7
- package/src/components/Gallery/Gallery.ui.json +0 -22
- package/src/components/Gallery/GalleryCardInner.tsx +0 -78
- package/src/components/Gallery/GalleryContainer.tsx +0 -61
- package/src/components/Gallery/GalleryContent.ts +0 -74
- package/src/components/Gallery/GalleryInner.tsx +0 -50
- package/src/components/Gallery/GalleryProps.ts +0 -4
- package/src/components/Gallery/constants.ts +0 -16
- package/src/components/MiniGallery/MiniGallery.example.json +0 -56
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +0 -154
- package/src/components/MiniGallery/MiniGallery.tsx +0 -10
- package/src/components/MiniGallery/MiniGallery.ui.json +0 -19
- package/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
- package/src/model/GalleryVersion.ts +0 -1
|
@@ -26,6 +26,6 @@ function adjustTile(block) {
|
|
|
26
26
|
if (block.content) {
|
|
27
27
|
const { description: oldDesc, ...rest } = block.content;
|
|
28
28
|
|
|
29
|
-
block.content = { ...rest, __html: `<p>${oldDesc}</p>` };
|
|
29
|
+
block.content = { ...rest, ...(oldDesc ? { __html: `<p>${oldDesc}</p>` } : undefined) };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const description = 'v0.8.15';
|
|
2
|
+
|
|
3
|
+
export default (uniPath, content) => {
|
|
4
|
+
if (!content?.blocks) {
|
|
5
|
+
return content;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const block of content.blocks) {
|
|
9
|
+
adjustStepsBlock(block);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return { ...content };
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function adjustStepsBlock(block) {
|
|
16
|
+
if (block.blocks) {
|
|
17
|
+
for (const childBlock of block.blocks) {
|
|
18
|
+
adjustStepsBlock(childBlock);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (block.type !== 'StepsBlock') {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (block.content?.steps?.length) {
|
|
27
|
+
block.content.steps = block.content.steps.map((s) => ({ ...s, type: 'default' }));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { renameProp } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
export const description = 'v0.8.8';
|
|
4
|
+
|
|
5
|
+
export default (unitPath, content) => {
|
|
6
|
+
if (!content?.blocks) {
|
|
7
|
+
return content;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
for (let block of content.blocks) {
|
|
11
|
+
adjustCarouselBlock(block);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return { ...content };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const adjustCarouselBlock = (block) => {
|
|
18
|
+
if (block.type === 'Catalog') {
|
|
19
|
+
adjustCarousel(block, 'CarouselCatalogCard');
|
|
20
|
+
}
|
|
21
|
+
if (block.type === 'Gallery') {
|
|
22
|
+
adjustCarousel(block, 'CarouselProductCard');
|
|
23
|
+
}
|
|
24
|
+
if (block.type === 'MiniGallery') {
|
|
25
|
+
adjustCarousel(block, 'CarouselProductCard', 4);
|
|
26
|
+
}
|
|
27
|
+
if (block.type === 'InvestmentGallery') {
|
|
28
|
+
adjustCarousel(block, 'CarouselInvestmentCard', 2);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const adjustCarousel = (block, type, cardCount) => {
|
|
33
|
+
const cards = block?.content?.cards;
|
|
34
|
+
const headlineTitle = block?.content?.title;
|
|
35
|
+
const button = block?.content?.button;
|
|
36
|
+
const headlineVersion = block?.content?.headlineVersion;
|
|
37
|
+
const anchor = block?.anchor;
|
|
38
|
+
block.blocks = [];
|
|
39
|
+
if (headlineTitle) {
|
|
40
|
+
block.blocks.push(getHeadlineBlock(headlineTitle, headlineVersion));
|
|
41
|
+
}
|
|
42
|
+
if (cards && cards?.length > 0) {
|
|
43
|
+
block.blocks.push(getCarousel(cards, type, cardCount));
|
|
44
|
+
}
|
|
45
|
+
if (button?.text || button?.icon?.icon || button?.icon?.src) {
|
|
46
|
+
block.blocks.push(getButtonBlock(button));
|
|
47
|
+
}
|
|
48
|
+
if (anchor) {
|
|
49
|
+
block.anchor = anchor;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const innerPadding = type === 'CarouselCatalogCard' ? true : false;
|
|
53
|
+
getVerticalLayout(block, innerPadding);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const getVerticalLayout = (block, isInnerPadding = false) => {
|
|
57
|
+
block.content = {
|
|
58
|
+
version: 'primary',
|
|
59
|
+
align: 'center',
|
|
60
|
+
gap: 'L',
|
|
61
|
+
isPadding: true,
|
|
62
|
+
isInnerPadding: isInnerPadding,
|
|
63
|
+
};
|
|
64
|
+
block.style = ['col-span-12'];
|
|
65
|
+
block.type = 'VerticalLayout';
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const getCarousel = (cards, cardType, cardCount = 3) => {
|
|
69
|
+
return {
|
|
70
|
+
content: {
|
|
71
|
+
isBlur: true,
|
|
72
|
+
visibleItemCount: cardCount,
|
|
73
|
+
isCycle: false,
|
|
74
|
+
},
|
|
75
|
+
style: ['col-span-12'],
|
|
76
|
+
type: 'Carousel',
|
|
77
|
+
blocks: cards.map((_) => {
|
|
78
|
+
const newCard = {
|
|
79
|
+
content: _,
|
|
80
|
+
style: ['col-span-12'],
|
|
81
|
+
type: cardType,
|
|
82
|
+
};
|
|
83
|
+
if (cardType === 'CarouselInvestmentCard') {
|
|
84
|
+
const columnsMode = _?.columnsMode === 'double' ? 2 : 1;
|
|
85
|
+
_.columnsMode = columnsMode;
|
|
86
|
+
if ('cardList' in _) {
|
|
87
|
+
for (const card of _.cardList) {
|
|
88
|
+
renameProp(card, 'parametr', 'parameter');
|
|
89
|
+
renameProp(card, 'parametrDesccription', 'parameterDescription');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return newCard;
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const getHeadlineBlock = (title, headlineVersion = 'M') => ({
|
|
99
|
+
content: {
|
|
100
|
+
title: title,
|
|
101
|
+
align: 'center',
|
|
102
|
+
bgColorHeadline: 'transparent',
|
|
103
|
+
headlineVersion: headlineVersion,
|
|
104
|
+
},
|
|
105
|
+
style: ['col-span-12'],
|
|
106
|
+
type: 'Headline',
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
const getButtonBlock = (button) => ({
|
|
110
|
+
content: {
|
|
111
|
+
button: button,
|
|
112
|
+
},
|
|
113
|
+
style: ['col-span-12'],
|
|
114
|
+
type: 'ButtonBlock',
|
|
115
|
+
});
|
|
@@ -4,6 +4,6 @@ import type { VNode } from '../model/VNode';
|
|
|
4
4
|
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
5
|
export interface BlocksListRendererProps extends BlockRendererOptions {
|
|
6
6
|
slotName?: SlotName;
|
|
7
|
-
|
|
7
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName,
|
|
9
|
+
export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderProps, ...options }: BlocksListRendererProps) => VNode[];
|
|
@@ -4,7 +4,7 @@ import type { VNode } from '../model/VNode';
|
|
|
4
4
|
import type { BlockRendererOptions } from './BlockRendererOptions';
|
|
5
5
|
interface ChildrenRendererProps extends UniBlockProps {
|
|
6
6
|
children?: VNode;
|
|
7
|
-
|
|
7
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function renderChildren({ children, block, options,
|
|
9
|
+
export declare function renderChildren({ children, block, options, renderProps, }: ChildrenRendererProps): VNode[] | null;
|
|
10
10
|
export {};
|