@redneckz/wildless-cms-uni-blocks 0.8.15 → 0.8.17
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.8.js +118 -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/ProjectSettings.d.ts +2 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +78 -151
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/bundle/components/Header/useChatBot.d.ts +1 -2
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/bundle/model/AlignType.d.ts +10 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- 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/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/components/Blocks.js +2 -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 +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/dist/components/CarouselCard/constants.d.ts +3 -3
- package/dist/components/CarouselCard/constants.js +2 -2
- package/dist/components/CarouselCard/constants.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/dist/components/{Catalog/CatalogContent.js → CarouselEventCard/CarouselEventCardContent.js} +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/dist/components/Footer/MediaButton.js +13 -10
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +0 -6
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/useChatBot.d.ts +1 -2
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/dist/components/Video/Video.js +6 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/model/AlignType.d.ts +10 -0
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -3
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/wlc.json +3 -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/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -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.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/lib/components/CarouselCard/constants.d.ts +3 -3
- package/lib/components/CarouselCard/constants.js +2 -2
- package/lib/components/CarouselCard/constants.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/lib/components/Footer/MediaButton.js +13 -10
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +0 -6
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/useChatBot.d.ts +1 -2
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/lib/components/Video/Video.js +6 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/model/AlignType.d.ts +10 -0
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -3
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/wlc.json +3 -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/ProjectSettings.d.ts +2 -0
- package/mobile/bundle/bundle.umd.js +28 -57
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/bundle/model/AlignType.d.ts +10 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- 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/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/dist/components/CarouselCard/constants.js +2 -2
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/{dist/components/Gallery/GalleryContent.js → mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js} +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/dist/components/Footer/MediaButton.js +13 -10
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +1 -1
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/dist/components/Video/Video.js +6 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +10 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/dist/services/sitemap/isTopItemActive.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/dist/wlc.json +3 -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/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +10 -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/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/lib/components/CarouselCard/constants.js +2 -2
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/lib/components/Footer/MediaButton.js +13 -10
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +1 -1
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/lib/components/Video/Video.js +6 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +10 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/lib/services/sitemap/isTopItemActive.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/lib/wlc.json +3 -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/ProjectSettings.ts +4 -0
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Carousel/Carousel.tsx +10 -19
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/mobile/src/components/CarouselCard/constants.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/mobile/src/components/Footer/MediaButton.tsx +19 -14
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/mobile/src/components/Header/HeaderContent.ts +0 -7
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/mobile/src/components/Header/useChatBot.ts +2 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/Tabs/Tabs.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/mobile/src/components/Video/Video.tsx +22 -16
- package/mobile/src/hooks/useLink.ts +1 -1
- package/mobile/src/model/AlignType.ts +11 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/mobile/src/wlc.json +3 -1
- 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/ProjectSettings.ts +4 -0
- package/src/components/Accordion/Accordion.fixture.tsx +0 -12
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +2 -6
- package/src/components/Carousel/Carousel.fixture.tsx +19 -0
- package/src/components/Carousel/Carousel.tsx +10 -19
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/src/components/CarouselCard/constants.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/src/components/Footer/MediaButton.tsx +19 -14
- package/src/components/Header/Header.fixture.tsx +3 -3
- package/src/components/Header/Header.tsx +0 -2
- package/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/src/components/Header/HeaderContent.ts +0 -7
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/src/components/Header/useChatBot.ts +2 -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/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/src/components/Video/Video.tsx +22 -16
- package/src/hooks/useLink.ts +1 -1
- package/src/model/AlignType.ts +11 -0
- package/src/services/sitemap/isTopItemActive.ts +2 -7
- package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
- package/src/wlc.json +3 -1
- 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/CarouselCardVersion.d.ts +0 -1
- 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.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.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/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.js +0 -2
- package/dist/model/CarouselCardVersion.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/CarouselCardVersion.d.ts +0 -1
- package/lib/model/CarouselCardVersion.js +0 -2
- package/lib/model/CarouselCardVersion.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/CarouselCardVersion.d.ts +0 -1
- 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/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.js +0 -2
- package/mobile/dist/model/CarouselCardVersion.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/CarouselCardVersion.d.ts +0 -1
- package/mobile/lib/model/CarouselCardVersion.js +0 -2
- package/mobile/lib/model/CarouselCardVersion.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/CarouselCardVersion.ts +0 -1
- 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/CarouselCardVersion.ts +0 -1
- package/src/model/GalleryVersion.ts +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
3
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
4
|
-
import { style } from '../../utils/style';
|
|
5
|
-
import type { Picture } from '../../model/Picture';
|
|
6
2
|
import type { IconVersion } from '../../model/IconVersion';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
7
4
|
import { Button } from '../../ui-kit/Button/Button';
|
|
8
5
|
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
8
|
+
import { style } from '../../utils/style';
|
|
9
9
|
|
|
10
10
|
const ICONS_MAP: Array<{
|
|
11
11
|
origins: string[];
|
|
12
|
-
|
|
12
|
+
iconMapped: Picture;
|
|
13
13
|
label: string;
|
|
14
14
|
}> = [
|
|
15
15
|
{
|
|
16
16
|
origins: ['t.me', 'telegram.org'],
|
|
17
|
-
|
|
17
|
+
iconMapped: { icon: 'TelegramIcon' },
|
|
18
18
|
label: 'Телеграм',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
origins: ['vk.com'],
|
|
22
|
-
|
|
22
|
+
iconMapped: { icon: 'VKIcon' },
|
|
23
23
|
label: 'ВКонтакте',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
origins: ['ok.ru'],
|
|
27
|
-
|
|
27
|
+
iconMapped: { icon: 'OkIcon' },
|
|
28
28
|
label: 'Одноклассники',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
origins: ['apps.apple.com'],
|
|
32
|
-
|
|
32
|
+
iconMapped: { icon: 'AppleIcon' },
|
|
33
33
|
label: 'App Store',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
origins: ['play.google.com'],
|
|
37
|
-
|
|
37
|
+
iconMapped: { icon: 'PlayMarketIcon' },
|
|
38
38
|
label: 'Google Play',
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
origins: ['youtube.com'],
|
|
42
|
-
|
|
42
|
+
iconMapped: { icon: 'YoutubeIcon' },
|
|
43
43
|
label: 'Youtube',
|
|
44
44
|
},
|
|
45
45
|
];
|
|
@@ -57,12 +57,17 @@ const buttonSizeStyles = {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
export const MediaButton = JSX<MediaButtonProps>(
|
|
60
|
-
({ iconVersion = 'color', buttonSize = 'default', rounded = false, ...rest }) => {
|
|
60
|
+
({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
61
61
|
const { href, version } = rest;
|
|
62
62
|
|
|
63
|
-
const {
|
|
63
|
+
const { iconMapped, label } =
|
|
64
64
|
ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
const iconCustom = icon ?? iconMapped;
|
|
67
|
+
|
|
68
|
+
const iconWithVersion = iconCustom
|
|
69
|
+
? { ...getIconWithVersion(iconCustom), iconVersion }
|
|
70
|
+
: undefined;
|
|
66
71
|
|
|
67
72
|
return (
|
|
68
73
|
<Button
|
|
@@ -2,16 +2,13 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useBool } from '../../hooks/useBool';
|
|
3
3
|
import type { IconVersion } from '../../model/IconVersion';
|
|
4
4
|
import { style } from '../../utils/style';
|
|
5
|
-
import type { ChatBot as ChatBotWithEmptyOption } from './HeaderContent';
|
|
6
5
|
import { HeaderSecondaryMenuButton } from './HeaderSecondaryMenuButton';
|
|
7
6
|
import { useChatBot } from './useChatBot';
|
|
8
7
|
|
|
9
|
-
export type ChatBot = Exclude<ChatBotWithEmptyOption, ''>;
|
|
10
|
-
|
|
11
8
|
interface HeaderChatBotButtonProps {
|
|
12
9
|
className?: string;
|
|
13
10
|
iconVersion?: IconVersion;
|
|
14
|
-
chat?:
|
|
11
|
+
chat?: string;
|
|
15
12
|
onClick?: () => void;
|
|
16
13
|
}
|
|
17
14
|
|
|
@@ -7,12 +7,6 @@ import type { IconProps, Picture } from '../../model/Picture';
|
|
|
7
7
|
*/
|
|
8
8
|
export type SubMenuItem = LinkProps & IconProps;
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* @title Чат-бот
|
|
12
|
-
* @enumNames ["", "Для физических лиц", "Для юридических лиц"]
|
|
13
|
-
*/
|
|
14
|
-
export type ChatBot = '' | 'personal' | 'business';
|
|
15
|
-
|
|
16
10
|
/**
|
|
17
11
|
* @title Ссылка дополнительного меню
|
|
18
12
|
* @required ["text", "href"]
|
|
@@ -40,5 +34,4 @@ export interface HeaderContent {
|
|
|
40
34
|
showSubMenu?: boolean;
|
|
41
35
|
/** @hidden */
|
|
42
36
|
bgColor?: BgColorVersion;
|
|
43
|
-
chat?: ChatBot;
|
|
44
37
|
}
|
|
@@ -8,14 +8,13 @@ import { Location } from '../../ui-kit/Location/Location';
|
|
|
8
8
|
import { TopItem } from '../../ui-kit/TopItem/TopItem';
|
|
9
9
|
import { style } from '../../utils/style';
|
|
10
10
|
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
11
|
-
import
|
|
11
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
12
12
|
|
|
13
13
|
interface HeaderSecondaryMenuContent {
|
|
14
14
|
version?: BlockVersion;
|
|
15
15
|
defaultLocation?: string;
|
|
16
16
|
officesLink?: string;
|
|
17
17
|
foreignOffices?: ForeignOffice[];
|
|
18
|
-
chat?: ChatBot;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export interface HeaderSecondaryMenuProps extends HeaderSecondaryMenuContent {
|
|
@@ -23,7 +22,7 @@ export interface HeaderSecondaryMenuProps extends HeaderSecondaryMenuContent {
|
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
26
|
-
({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices
|
|
25
|
+
({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices }) => {
|
|
27
26
|
const [isShowLocationModal, { setTrue: showLocationModal, setFalse: hideLocationModal }] =
|
|
28
27
|
useBool();
|
|
29
28
|
|
|
@@ -43,8 +42,12 @@ export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
|
43
42
|
{officesLink ? (
|
|
44
43
|
<TopItem className="mr-7" flat={true} href={officesLink} text="Офисы и банкоматы" />
|
|
45
44
|
) : null}
|
|
46
|
-
{
|
|
47
|
-
<HeaderChatBotButton
|
|
45
|
+
{projectSettings.CHAT_BOT ? (
|
|
46
|
+
<HeaderChatBotButton
|
|
47
|
+
className="mr-5"
|
|
48
|
+
iconVersion={iconVersion}
|
|
49
|
+
chat={projectSettings.CHAT_BOT}
|
|
50
|
+
/>
|
|
48
51
|
) : null}
|
|
49
52
|
{isShowLocationModal ? (
|
|
50
53
|
<Location
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { useExternalNS } from '../../hooks/useExternalNS';
|
|
3
|
-
import { ChatBot } from './HeaderChatBotButton';
|
|
4
3
|
|
|
5
4
|
const CHATBOT_NAMESPACE = 'chatbot';
|
|
6
5
|
|
|
7
|
-
const CHATBOT_URL: Record<
|
|
6
|
+
const CHATBOT_URL: Record<string, string> = {
|
|
8
7
|
personal: '//chat.mes.rshb.ru/assets/js/webchat_rshb',
|
|
9
8
|
business: '', //TODO: add url business chat
|
|
10
9
|
};
|
|
11
10
|
|
|
12
|
-
export const useChatBot = (chat:
|
|
11
|
+
export const useChatBot = (chat: string) => {
|
|
13
12
|
useEffect(() => globalThis.localStorage?.setItem('webchat-keep-open', String(Date.now())), []);
|
|
14
13
|
|
|
15
14
|
return useExternalNS(CHATBOT_NAMESPACE, CHATBOT_URL[chat]);
|
|
@@ -2,19 +2,19 @@ import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
3
|
import type { BackwardButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
7
|
export function renderBackwardButton(
|
|
7
8
|
button: BackwardButtonProps,
|
|
8
9
|
version: ButtonVersion,
|
|
9
10
|
className: string,
|
|
10
11
|
) {
|
|
11
|
-
const { text, href, target
|
|
12
|
+
const { text, href, target } = button;
|
|
12
13
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
13
14
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
14
15
|
|
|
15
|
-
// TODO Move click handler to Button
|
|
16
16
|
return (
|
|
17
|
-
<div className={
|
|
17
|
+
<div className={style('flex items-center', className)}>
|
|
18
18
|
<Button
|
|
19
19
|
version={version}
|
|
20
20
|
rounded
|
|
@@ -29,7 +29,9 @@ export function renderBackwardButton(
|
|
|
29
29
|
asSVG
|
|
30
30
|
/>
|
|
31
31
|
</Button>
|
|
32
|
-
{text ?
|
|
32
|
+
{text ? (
|
|
33
|
+
<Button version="link" text={text} href={href} target={target} ariaLabel={text} />
|
|
34
|
+
) : null}
|
|
33
35
|
</div>
|
|
34
36
|
);
|
|
35
37
|
}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"height": 299
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"version": "primary",
|
|
19
18
|
"description": "Описание",
|
|
20
19
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
21
20
|
"benefits": [
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
"height": 299
|
|
51
50
|
}
|
|
52
51
|
},
|
|
53
|
-
"version": "primary",
|
|
54
52
|
"description": "Описание",
|
|
55
53
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
56
54
|
"benefits": [
|
|
@@ -71,6 +69,7 @@
|
|
|
71
69
|
]
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
|
-
]
|
|
72
|
+
],
|
|
73
|
+
"version": "primary"
|
|
75
74
|
}
|
|
76
75
|
}
|
|
@@ -61,7 +61,7 @@ function renderProductBlock(block: ProductBlockInnerContent & UniBlockProps, i:
|
|
|
61
61
|
>
|
|
62
62
|
<div className="flex grow">
|
|
63
63
|
<ProductBlockInner
|
|
64
|
-
className="pl-12 z-10
|
|
64
|
+
className="pl-12 z-10 group-data-secondary:text-white"
|
|
65
65
|
textBlockClassName="mb-[154px]"
|
|
66
66
|
headlineVersion="XXL"
|
|
67
67
|
{...block}
|
|
@@ -35,7 +35,7 @@ export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
|
35
35
|
return (
|
|
36
36
|
<BlockWrapper
|
|
37
37
|
className={`relative box-border flex gap-x-1 w-full ${
|
|
38
|
-
isSticky ? 'sticky top-1 z-20
|
|
38
|
+
isSticky ? 'sticky top-1 z-20' : ''
|
|
39
39
|
} ${className}`}
|
|
40
40
|
role="tablist"
|
|
41
41
|
{...rest}
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
{
|
|
36
36
|
"tableCellType": "List",
|
|
37
37
|
"isDotted": true,
|
|
38
|
+
"listItemSize": "M",
|
|
38
39
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
39
40
|
},
|
|
40
41
|
{
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
{
|
|
46
47
|
"tableCellType": "List",
|
|
47
48
|
"isDotted": false,
|
|
49
|
+
"listItemSize": "M",
|
|
48
50
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
49
51
|
}
|
|
50
52
|
],
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
{
|
|
57
59
|
"tableCellType": "List",
|
|
58
60
|
"isDotted": true,
|
|
61
|
+
"listItemSize": "M",
|
|
59
62
|
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
60
63
|
}
|
|
61
64
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
3
|
-
import type {
|
|
3
|
+
import type { AlignTypeWithStretch } from '../../model/AlignType';
|
|
4
4
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { style } from '../../utils/style';
|
|
@@ -9,7 +9,8 @@ import type { VerticalLayoutContent } from './VerticalLayoutContent';
|
|
|
9
9
|
|
|
10
10
|
export interface VerticalLayoutProps extends VerticalLayoutContent, UniBlockProps {}
|
|
11
11
|
|
|
12
|
-
const alignStyle: Record<
|
|
12
|
+
const alignStyle: Record<AlignTypeWithStretch, string> = {
|
|
13
|
+
stretch: 'items-stretch',
|
|
13
14
|
left: 'items-start',
|
|
14
15
|
center: 'items-center',
|
|
15
16
|
right: 'items-end',
|
|
@@ -19,7 +20,7 @@ export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutP
|
|
|
19
20
|
({
|
|
20
21
|
className = '',
|
|
21
22
|
gap = '',
|
|
22
|
-
align,
|
|
23
|
+
align = 'stretch',
|
|
23
24
|
isPadding = false,
|
|
24
25
|
isInnerPadding = true,
|
|
25
26
|
version = 'transparent',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlignTypeWithStretch } from '../../model/AlignType';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
4
4
|
import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
|
|
@@ -9,7 +9,7 @@ import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
|
|
|
9
9
|
export interface VerticalLayoutContent {
|
|
10
10
|
colorPalette?: ColorPalette;
|
|
11
11
|
version?: BlockVersion;
|
|
12
|
-
align?:
|
|
12
|
+
align?: AlignTypeWithStretch;
|
|
13
13
|
gap?: GapVersion;
|
|
14
14
|
/** @title Внутренний отступ компоновщика */
|
|
15
15
|
isPadding?: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useRouter } from '../../hooks/useRouter';
|
|
2
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
+
import { adjustHref } from '../../utils/adjustHref';
|
|
4
6
|
import { style } from '../../utils/style';
|
|
5
7
|
import { Headline } from '../Headline/Headline';
|
|
6
8
|
import { getPaddings } from './getPaddings';
|
|
@@ -8,19 +10,23 @@ import type { VideoContent } from './VideoContent';
|
|
|
8
10
|
|
|
9
11
|
interface VideoProps extends VideoContent, UniBlockProps {}
|
|
10
12
|
|
|
11
|
-
export const Video = JSX<VideoProps>(({ className, title, src, previewImg, ...rest }) =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export const Video = JSX<VideoProps>(({ className, title, src, previewImg, ...rest }) => {
|
|
14
|
+
const router = useRouter();
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<BlockWrapper className={style(getPaddings(className), className)} {...rest}>
|
|
18
|
+
<Headline title={title} headlineVersion="M" />
|
|
19
|
+
{src ? (
|
|
20
|
+
<video
|
|
21
|
+
className="m-auto w-full object-fill"
|
|
22
|
+
preload="metadata"
|
|
23
|
+
poster={adjustHref(router)(previewImg?.src)}
|
|
24
|
+
style={{ maxHeight: 524 }}
|
|
25
|
+
controls
|
|
26
|
+
>
|
|
27
|
+
<source src={adjustHref(router)(src)} />
|
|
28
|
+
</video>
|
|
29
|
+
) : null}
|
|
30
|
+
</BlockWrapper>
|
|
31
|
+
);
|
|
32
|
+
});
|
|
@@ -12,7 +12,7 @@ interface Clickable {
|
|
|
12
12
|
onClick(ev?: PreventableEvent): void;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export function useLink(isRemote
|
|
15
|
+
export function useLink(isRemote = false) {
|
|
16
16
|
const router = useRouter();
|
|
17
17
|
|
|
18
18
|
return <L extends Partial<LinkProps & Clickable>>(props: L): L & Clickable => ({
|
|
@@ -7,3 +7,14 @@
|
|
|
7
7
|
* ]
|
|
8
8
|
*/
|
|
9
9
|
export type AlignType = 'left' | 'center' | 'right';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @title Выравнивание
|
|
13
|
+
* @enumNames [
|
|
14
|
+
* "Во всю ширину",
|
|
15
|
+
* "По левому краю",
|
|
16
|
+
* "По центру",
|
|
17
|
+
* "По правому краю"
|
|
18
|
+
* ]
|
|
19
|
+
*/
|
|
20
|
+
export type AlignTypeWithStretch = 'stretch' | 'left' | 'center' | 'right';
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { Router } from '../../hooks/useRouter';
|
|
2
2
|
import { projectSettings } from '../../ProjectSettings';
|
|
3
3
|
import { isHrefActive } from './isHrefActive';
|
|
4
|
-
import { TopMenuItem } from './SitemapProps';
|
|
5
4
|
|
|
6
|
-
export const isTopItemActive =
|
|
7
|
-
(
|
|
8
|
-
(topItem: TopMenuItem): boolean =>
|
|
9
|
-
projectSettings.BASE_PATH
|
|
10
|
-
? isHrefActive({ pathname: projectSettings.BASE_PATH })(topItem)
|
|
11
|
-
: topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
|
|
5
|
+
export const isTopItemActive = (router: Router) =>
|
|
6
|
+
isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
@@ -23,7 +23,7 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
23
23
|
.map(({ src, format, media }, index) => (
|
|
24
24
|
<source
|
|
25
25
|
key={`${index}_${src}`}
|
|
26
|
-
srcSet={
|
|
26
|
+
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
27
27
|
type={formatToMimeType(format)}
|
|
28
28
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
29
29
|
{...image.size}
|
|
@@ -32,7 +32,7 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
32
32
|
: null}
|
|
33
33
|
{image?.src
|
|
34
34
|
? renderImg(
|
|
35
|
-
{ ...image, src:
|
|
35
|
+
{ ...image, src: adjustSrc(router, pathPrefix)(image.src) },
|
|
36
36
|
imageClassName,
|
|
37
37
|
isMobile,
|
|
38
38
|
)
|
|
@@ -64,14 +64,8 @@ const renderImg = (image: Picture, imageClassName = '', isMobile = false) => {
|
|
|
64
64
|
);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
?.split(/\s*,\s*/)
|
|
70
|
-
.map((src) => src.trim())
|
|
71
|
-
.filter(Boolean)
|
|
72
|
-
.map((src) => (isURL(src) ? src : joinPath(pathPrefix, src)))
|
|
73
|
-
.map(adjustHref(router))
|
|
74
|
-
.join(', ');
|
|
67
|
+
const adjustSrc = (router: Router, pathPrefix?: string) => (src: string | undefined) =>
|
|
68
|
+
src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
|
|
75
69
|
|
|
76
70
|
const formatToMimeType = (format: ImgSource['format']) =>
|
|
77
71
|
format ? `image/${String(format)}` : undefined;
|
package/mobile/src/wlc.json
CHANGED
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
|
|
|
15
15
|
blocksRegistry = {},
|
|
16
16
|
ancestors = DEFAULT_ANCESTORS,
|
|
17
17
|
className = '',
|
|
18
|
+
extraProps = {},
|
|
18
19
|
} = options;
|
|
19
20
|
const { type } = block;
|
|
20
21
|
|
|
@@ -44,6 +45,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
|
|
|
44
45
|
block={block}
|
|
45
46
|
options={options}
|
|
46
47
|
{...content}
|
|
48
|
+
{...extraProps}
|
|
47
49
|
/>
|
|
48
50
|
) : null;
|
|
49
51
|
},
|
|
@@ -7,7 +7,7 @@ import { renderBlock } from './renderBlock';
|
|
|
7
7
|
|
|
8
8
|
export interface BlocksListRendererProps extends BlockRendererOptions {
|
|
9
9
|
slotName?: SlotName;
|
|
10
|
-
|
|
10
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const EMPTY_ANCESTORS: BlockAncestors = [];
|
|
@@ -18,12 +18,12 @@ export const renderBlocksList = (
|
|
|
18
18
|
key,
|
|
19
19
|
ancestors = EMPTY_ANCESTORS,
|
|
20
20
|
slotName = DEFAULT_SLOT_NAME,
|
|
21
|
-
|
|
21
|
+
renderProps = renderBlock,
|
|
22
22
|
...options
|
|
23
23
|
}: BlocksListRendererProps,
|
|
24
24
|
): VNode[] =>
|
|
25
25
|
(blocks || []).map((_: BlockDef, j: number) =>
|
|
26
|
-
|
|
26
|
+
renderProps(_, {
|
|
27
27
|
...options,
|
|
28
28
|
key: `${key ? key : _.type}-${j}`,
|
|
29
29
|
ancestors: options.parent
|
|
@@ -6,20 +6,20 @@ import { renderBlocksList } from './renderBlockList';
|
|
|
6
6
|
|
|
7
7
|
interface ChildrenRendererProps extends UniBlockProps {
|
|
8
8
|
children?: VNode;
|
|
9
|
-
|
|
9
|
+
renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function renderChildren({
|
|
13
13
|
children,
|
|
14
14
|
block,
|
|
15
15
|
options,
|
|
16
|
-
|
|
16
|
+
renderProps,
|
|
17
17
|
}: ChildrenRendererProps): VNode[] | null {
|
|
18
18
|
if (children) {
|
|
19
19
|
return children;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
return block && options
|
|
23
|
-
? renderBlocksList(block.blocks, { ...options, parent: block,
|
|
23
|
+
? renderBlocksList(block.blocks, { ...options, parent: block, renderProps })
|
|
24
24
|
: null;
|
|
25
25
|
}
|
package/src/ProjectSettings.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface ProjectSettings {
|
|
|
6
6
|
ASSIST_PROJECT_ID?: string;
|
|
7
7
|
SITEMAP?: string;
|
|
8
8
|
FOOTER?: string;
|
|
9
|
+
CHAT_BOT?: string; // "personal" or "business"
|
|
9
10
|
CDN?: string; // Should ends with "/"
|
|
10
11
|
BASE_PATH?: string; // Should ends with "/"
|
|
11
12
|
YANDEX_MAP_API_KEY?: string;
|
|
@@ -42,6 +43,9 @@ export const projectSettings = new (class implements ProjectSettings {
|
|
|
42
43
|
get FOOTER() {
|
|
43
44
|
return this._.FOOTER;
|
|
44
45
|
}
|
|
46
|
+
get CHAT_BOT() {
|
|
47
|
+
return this._.CHAT_BOT;
|
|
48
|
+
}
|
|
45
49
|
get CDN() {
|
|
46
50
|
return appendSlash(this._.CDN);
|
|
47
51
|
}
|
|
@@ -2,10 +2,8 @@ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
|
|
|
2
2
|
import type { BlockDef } from '../../model/ContentPageDef';
|
|
3
3
|
import '../../setup-fixture';
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
|
-
import { defaultProps as GALLERY } from '../Gallery/Gallery.fixture';
|
|
6
5
|
import { HEADLINE } from '../Headline/Headline.fixture';
|
|
7
6
|
import { linkDocsContentExample } from '../LinkDocs/linkDocsContentExample';
|
|
8
|
-
import { defaultProps as MINI_GALLERY } from '../MiniGallery/MiniGallery.fixture';
|
|
9
7
|
import { PICTURE_TEXT } from '../PictureText/PictureText.fixture';
|
|
10
8
|
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
11
9
|
import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
|
|
@@ -67,16 +65,6 @@ export default {
|
|
|
67
65
|
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
68
66
|
],
|
|
69
67
|
},
|
|
70
|
-
{
|
|
71
|
-
type: 'AccordionItem',
|
|
72
|
-
content: { label: 'Accordion label 7' },
|
|
73
|
-
blocks: [{ type: 'Gallery', content: GALLERY }],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'AccordionItem',
|
|
77
|
-
content: { label: 'Accordion label 8' },
|
|
78
|
-
blocks: [{ type: 'MiniGallery', content: MINI_GALLERY }],
|
|
79
|
-
},
|
|
80
68
|
],
|
|
81
69
|
}}
|
|
82
70
|
options={options}
|
|
@@ -3,7 +3,6 @@ import { Accordion } from './Accordion/Accordion';
|
|
|
3
3
|
import { AccordionItem } from './AccordionItem/AccordionItem';
|
|
4
4
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
5
5
|
import { Footer } from './Footer/Footer';
|
|
6
|
-
import { Gallery } from './Gallery/Gallery';
|
|
7
6
|
import { Header } from './Header/Header';
|
|
8
7
|
import { Headline } from './Headline/Headline';
|
|
9
8
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
@@ -20,7 +19,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
20
19
|
AccordionItem,
|
|
21
20
|
ComparisonTable,
|
|
22
21
|
Footer,
|
|
23
|
-
Gallery,
|
|
24
22
|
Header,
|
|
25
23
|
Headline,
|
|
26
24
|
LinkDocs,
|