@redneckz/wildless-cms-uni-blocks 0.3.80 → 0.3.82
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +120 -131
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +3 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +2 -2
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +3 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +3 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +3 -2
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +3 -2
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +3 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +0 -10
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Footer.js +3 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +4 -3
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +3 -2
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlock.js +5 -4
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Headline/Headline.js +3 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Insurance/Insurance.js +3 -2
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LikeControl/LikeControl.js +3 -2
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +3 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +3 -2
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +4 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/Navigation/Navigation.js +3 -2
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.js +3 -2
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +3 -2
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +3 -2
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +3 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/dist/components/ProductGallery/ProductGallery.js +4 -3
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +3 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +3 -2
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +4 -3
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -4
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +3 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +3 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +3 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/react/IntersectionObserverTag.d.ts +1 -1
- package/dist/react/IntersectionObserverTag.js +2 -2
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +9 -0
- package/dist/ui-kit/BlockWrapper.js +10 -0
- package/dist/ui-kit/BlockWrapper.js.map +1 -0
- package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -2
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/dist/utils/changeHashOnObserve.d.ts +1 -0
- package/dist/utils/changeHashOnObserve.js +13 -0
- package/dist/utils/changeHashOnObserve.js.map +1 -0
- package/lib/components/Accordion/Accordion.js +3 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +2 -2
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +3 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +3 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +3 -2
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +3 -2
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +3 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +0 -10
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Footer.js +3 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +4 -3
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +3 -2
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlock.js +5 -4
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/lib/components/Header/Header.js +3 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Headline/Headline.js +3 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Insurance/Insurance.js +3 -2
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.js +3 -2
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +3 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkList/LinkList.js +3 -2
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +4 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/Navigation/Navigation.js +3 -2
- package/lib/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/lib/components/OtherProducts/OtherProducts.js +3 -2
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +3 -2
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +3 -2
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +3 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/lib/components/ProductGallery/ProductGallery.js +4 -3
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +3 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +3 -2
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +4 -3
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -4
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +3 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +3 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +3 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/react/IntersectionObserverTag.d.ts +1 -1
- package/lib/react/IntersectionObserverTag.js +2 -2
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +9 -0
- package/lib/ui-kit/BlockWrapper.js +8 -0
- package/lib/ui-kit/BlockWrapper.js.map +1 -0
- package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -2
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/lib/utils/changeHashOnObserve.d.ts +1 -0
- package/lib/utils/changeHashOnObserve.js +10 -0
- package/lib/utils/changeHashOnObserve.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +26 -36
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +3 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +3 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +3 -2
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +3 -2
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +0 -10
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +4 -3
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +3 -2
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.js +5 -4
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/dist/components/Insurance/Insurance.js +3 -2
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js +3 -2
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +3 -2
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/Navigation/Navigation.js +3 -2
- package/mobile/dist/components/Navigation/Navigation.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +3 -2
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +3 -2
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +3 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js +3 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +3 -2
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +4 -3
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +3 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +1 -1
- package/mobile/dist/react/IntersectionObserverTag.js +2 -2
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +9 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +10 -0
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -0
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -2
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/mobile/dist/utils/changeHashOnObserve.d.ts +1 -0
- package/mobile/dist/utils/changeHashOnObserve.js +13 -0
- package/mobile/dist/utils/changeHashOnObserve.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +3 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +3 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +3 -2
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +3 -2
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +0 -10
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +4 -3
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +3 -2
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.js +5 -4
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/lib/components/Insurance/Insurance.js +3 -2
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js +3 -2
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +3 -2
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/Navigation/Navigation.js +3 -2
- package/mobile/lib/components/Navigation/Navigation.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +3 -2
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +3 -2
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +3 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js +3 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +3 -2
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +4 -3
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +3 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +1 -1
- package/mobile/lib/react/IntersectionObserverTag.js +2 -2
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +9 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +8 -0
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -0
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -2
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/mobile/lib/utils/changeHashOnObserve.d.ts +1 -0
- package/mobile/lib/utils/changeHashOnObserve.js +10 -0
- package/mobile/lib/utils/changeHashOnObserve.js.map +1 -0
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -4
- package/mobile/src/components/Bonus/Bonus.tsx +4 -3
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +5 -4
- package/mobile/src/components/Calculator/Calculator.tsx +6 -4
- package/mobile/src/components/Catalog/Catalog.tsx +6 -4
- package/mobile/src/components/ContentPage/ContentPage.tsx +0 -14
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +3 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -4
- package/mobile/src/components/Gallery/GalleryInner.tsx +8 -6
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +4 -3
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +6 -5
- package/mobile/src/components/Insurance/Insurance.tsx +7 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -6
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +5 -5
- package/mobile/src/components/LikeControl/LikeControl.tsx +7 -4
- package/mobile/src/components/LinkList/LinkList.tsx +4 -3
- package/mobile/src/components/Navigation/Navigation.tsx +6 -4
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +13 -13
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +8 -3
- package/mobile/src/components/PictureText/PictureText.tsx +6 -5
- package/mobile/src/components/Placeholder/Placeholder.tsx +6 -4
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +6 -4
- package/mobile/src/components/PromoTile/PromoTile.tsx +6 -4
- package/mobile/src/components/Recommendation/Recommendation.tsx +7 -5
- package/mobile/src/components/Tile/Tile.tsx +6 -6
- package/mobile/src/react/IntersectionObserverTag.tsx +11 -3
- package/mobile/src/react/setup-fixture.ts +0 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +33 -0
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +14 -1
- package/mobile/src/utils/changeHashOnObserve.ts +10 -0
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +9 -4
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -4
- package/src/components/Bonus/Bonus.tsx +4 -3
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +5 -4
- package/src/components/Calculator/Calculator.tsx +6 -4
- package/src/components/Catalog/Catalog.tsx +6 -4
- package/src/components/ComparisonTable/ComparisonTable.tsx +6 -4
- package/src/components/ContentPage/ContentPage.tsx +0 -14
- package/src/components/ContentPage/ContentPageContext.tsx +3 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -4
- package/src/components/Footer/Footer.tsx +9 -3
- package/src/components/Gallery/GalleryInner.tsx +8 -6
- package/src/components/GracePeriod/GracePeriod.tsx +4 -3
- package/src/components/GroupBlock/GroupBlock.tsx +6 -5
- package/src/components/Header/Header.tsx +9 -3
- package/src/components/Headline/Headline.tsx +5 -4
- package/src/components/Insurance/Insurance.tsx +7 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -6
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +5 -5
- package/src/components/LikeControl/LikeControl.tsx +7 -4
- package/src/components/LinkDocs/LinkDocs.tsx +8 -3
- package/src/components/LinkList/LinkList.tsx +4 -3
- package/src/components/MobileAppTile/MobileAppTile.tsx +6 -4
- package/src/components/Navigation/Navigation.tsx +6 -4
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +13 -13
- package/src/components/OtherProducts/OtherProducts.tsx +8 -3
- package/src/components/PictureText/PictureText.tsx +6 -5
- package/src/components/Placeholder/Placeholder.tsx +6 -4
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +5 -4
- package/src/components/ProductBlock/ProductBlockContent.ts +3 -3
- package/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.tsx +6 -4
- package/src/components/ProductTile/ProductTile.tsx +6 -4
- package/src/components/PromoTile/PromoTile.tsx +6 -4
- package/src/components/Recommendation/Recommendation.tsx +7 -5
- package/src/components/StepsBlock/StepsBlock.tsx +7 -5
- package/src/components/TariffsTable/TariffsTable.tsx +6 -13
- package/src/components/TextBlock/TextBlock.tsx +5 -12
- package/src/components/Tile/Tile.tsx +6 -6
- package/src/react/IntersectionObserverTag.tsx +11 -3
- package/src/react/setup-fixture.ts +0 -1
- package/src/ui-kit/BlockWrapper.tsx +33 -0
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/src/ui-kit/Button/ButtonProps.ts +14 -1
- package/src/utils/changeHashOnObserve.ts +10 -0
- package/dist/utils/changeHashOnScroll.d.ts +0 -2
- package/dist/utils/changeHashOnScroll.js +0 -17
- package/dist/utils/changeHashOnScroll.js.map +0 -1
- package/lib/utils/changeHashOnScroll.d.ts +0 -2
- package/lib/utils/changeHashOnScroll.js +0 -14
- package/lib/utils/changeHashOnScroll.js.map +0 -1
- package/mobile/dist/utils/changeHashOnScroll.d.ts +0 -2
- package/mobile/dist/utils/changeHashOnScroll.js +0 -17
- package/mobile/dist/utils/changeHashOnScroll.js.map +0 -1
- package/mobile/lib/utils/changeHashOnScroll.d.ts +0 -2
- package/mobile/lib/utils/changeHashOnScroll.js +0 -14
- package/mobile/lib/utils/changeHashOnScroll.js.map +0 -1
- package/mobile/src/utils/changeHashOnScroll.ts +0 -17
- package/src/utils/changeHashOnScroll.ts +0 -17
|
@@ -3,11 +3,13 @@ import type { UniBlockProps } from '../../types';
|
|
|
3
3
|
import { Button } from '../../ui-kit/Button/Button';
|
|
4
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
+
import { checkIsIconRenderable } from '../../utils/checkIsIconRenderable';
|
|
6
7
|
import { joinList } from '../../utils/joinList';
|
|
7
8
|
import type { Step, StepsBlockContent } from './StepsBlockContent';
|
|
8
9
|
import type { StyleType } from './StepsBlockStyleMaps';
|
|
9
10
|
import { getStyleMap } from './StepsBlockStyleMaps';
|
|
10
|
-
|
|
11
|
+
|
|
12
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
11
13
|
|
|
12
14
|
export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
|
|
13
15
|
|
|
@@ -18,14 +20,14 @@ export const StepsBlock = JSX<StepsBlockProps>(
|
|
|
18
20
|
showLines = true,
|
|
19
21
|
steps = [],
|
|
20
22
|
button,
|
|
21
|
-
anchor = null,
|
|
22
23
|
version = 'primary',
|
|
24
|
+
...rest
|
|
23
25
|
}) => {
|
|
24
26
|
const styleMap = getStyleMap(version);
|
|
25
27
|
const shortGaps = steps.length > 3;
|
|
26
28
|
|
|
27
29
|
return (
|
|
28
|
-
<
|
|
30
|
+
<BlockWrapper
|
|
29
31
|
className={[
|
|
30
32
|
'box-border font-sans text-primary-text bg-white',
|
|
31
33
|
shortGaps ? 'px-20' : 'px-[70px]',
|
|
@@ -34,7 +36,7 @@ export const StepsBlock = JSX<StepsBlockProps>(
|
|
|
34
36
|
styleMap.title,
|
|
35
37
|
className,
|
|
36
38
|
].join(' ')}
|
|
37
|
-
|
|
39
|
+
{...rest}
|
|
38
40
|
>
|
|
39
41
|
<Heading headingType="h2" className="max-w-[47rem] text-center" title={title} />
|
|
40
42
|
{steps?.length ? (
|
|
@@ -54,7 +56,7 @@ export const StepsBlock = JSX<StepsBlockProps>(
|
|
|
54
56
|
{button?.text ? (
|
|
55
57
|
<Button className="mt-8 w-full max-w-[240px]" version="primary" {...button} />
|
|
56
58
|
) : null}
|
|
57
|
-
</
|
|
59
|
+
</BlockWrapper>
|
|
58
60
|
);
|
|
59
61
|
},
|
|
60
62
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useTableArrowScrollControl } from '../../hooks/useTableArrowScrollControl';
|
|
3
3
|
import type { VNode } from '../../model/VNode';
|
|
4
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
5
|
import type { UniBlockProps } from '../../types';
|
|
5
6
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
6
7
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -18,16 +19,7 @@ import { TariffsTableRow } from './TariffsTableRow';
|
|
|
18
19
|
export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {}
|
|
19
20
|
|
|
20
21
|
export const TariffsTable = JSX<TariffsTableProps>(
|
|
21
|
-
({
|
|
22
|
-
className,
|
|
23
|
-
context,
|
|
24
|
-
title,
|
|
25
|
-
description,
|
|
26
|
-
rowHeaders,
|
|
27
|
-
columns,
|
|
28
|
-
anchor = null,
|
|
29
|
-
hiddenRowsNum = 0,
|
|
30
|
-
}) => {
|
|
22
|
+
({ className, context, title, description, rowHeaders, columns, hiddenRowsNum = 0, ...rest }) => {
|
|
31
23
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
32
24
|
|
|
33
25
|
const colData = getColData(columns);
|
|
@@ -50,11 +42,12 @@ export const TariffsTable = JSX<TariffsTableProps>(
|
|
|
50
42
|
));
|
|
51
43
|
|
|
52
44
|
return (
|
|
53
|
-
<
|
|
45
|
+
<BlockWrapper
|
|
46
|
+
context={context}
|
|
54
47
|
className={`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${
|
|
55
48
|
className || ''
|
|
56
49
|
}`}
|
|
57
|
-
|
|
50
|
+
{...rest}
|
|
58
51
|
>
|
|
59
52
|
{title ? (
|
|
60
53
|
<Heading
|
|
@@ -77,7 +70,7 @@ export const TariffsTable = JSX<TariffsTableProps>(
|
|
|
77
70
|
foldButtonLabel="Развернуть"
|
|
78
71
|
/>
|
|
79
72
|
) : null}
|
|
80
|
-
</
|
|
73
|
+
</BlockWrapper>
|
|
81
74
|
);
|
|
82
75
|
},
|
|
83
76
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
6
|
import type { TextBlockContent, TextBlockVersion } from './TextBlockContent';
|
|
@@ -31,21 +32,13 @@ const textBlockStyleMaps: Record<
|
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
export const TextBlock = JSX<TextBlockProps>(
|
|
34
|
-
({
|
|
35
|
-
title,
|
|
36
|
-
description,
|
|
37
|
-
blockVersion = 'primary',
|
|
38
|
-
iconVersion,
|
|
39
|
-
image,
|
|
40
|
-
className,
|
|
41
|
-
anchor = null,
|
|
42
|
-
}) => {
|
|
35
|
+
({ title, description, blockVersion = 'primary', iconVersion, image, className, ...rest }) => {
|
|
43
36
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
44
37
|
|
|
45
38
|
return (
|
|
46
|
-
<
|
|
39
|
+
<BlockWrapper
|
|
47
40
|
className={`font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`}
|
|
48
|
-
|
|
41
|
+
{...rest}
|
|
49
42
|
>
|
|
50
43
|
{iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null}
|
|
51
44
|
{iconVersion === 'big' ? renderImage(image) : null}
|
|
@@ -57,7 +50,7 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
57
50
|
<div className={`text-sm ${textBlockStyleMap.description}`}>{description}</div>
|
|
58
51
|
) : null}
|
|
59
52
|
</div>
|
|
60
|
-
</
|
|
53
|
+
</BlockWrapper>
|
|
61
54
|
);
|
|
62
55
|
},
|
|
63
56
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
4
5
|
import { ButtonSection } from '../../ui-kit/Button/ButtonSection';
|
|
5
6
|
import { Description } from '../../ui-kit/Description/Description';
|
|
@@ -33,17 +34,16 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
33
34
|
isDotted = true,
|
|
34
35
|
className = '',
|
|
35
36
|
version = 'primary',
|
|
36
|
-
|
|
37
|
-
anchor = null,
|
|
37
|
+
...rest
|
|
38
38
|
} = props;
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<BlockWrapper
|
|
42
|
+
context={context}
|
|
42
43
|
className={`overflow-hidden font-sans p-9 pr-3 box-border ${className} ${
|
|
43
44
|
tileStyleMap[version]
|
|
44
45
|
} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `}
|
|
45
|
-
|
|
46
|
-
id={anchor}
|
|
46
|
+
{...rest}
|
|
47
47
|
>
|
|
48
48
|
<BaseTile
|
|
49
49
|
context={context}
|
|
@@ -78,7 +78,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
78
78
|
{children}
|
|
79
79
|
{renderList(items, version, isDotted)}
|
|
80
80
|
</BaseTile>
|
|
81
|
-
</
|
|
81
|
+
</BlockWrapper>
|
|
82
82
|
);
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { useCallback, useRef } from 'react';
|
|
2
|
-
import { IntersectionObserverComponent } from '../components/ContentPage/ContentPageContext';
|
|
2
|
+
import type { IntersectionObserverComponent } from '../components/ContentPage/ContentPageContext';
|
|
3
3
|
|
|
4
4
|
export const IntersectionObserverTag: IntersectionObserverComponent = (props) => {
|
|
5
|
-
const {
|
|
5
|
+
const {
|
|
6
|
+
Tag,
|
|
7
|
+
observerCallback,
|
|
8
|
+
observerOptions,
|
|
9
|
+
className = '',
|
|
10
|
+
anchor = null,
|
|
11
|
+
children,
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
6
14
|
|
|
7
15
|
const intersectionObserver = useRef<IntersectionObserver>();
|
|
8
16
|
const ref = useCallback(
|
|
@@ -16,7 +24,7 @@ export const IntersectionObserverTag: IntersectionObserverComponent = (props) =>
|
|
|
16
24
|
);
|
|
17
25
|
|
|
18
26
|
return (
|
|
19
|
-
<Tag ref={ref} {...rest}>
|
|
27
|
+
<Tag ref={ref} className={className} id={anchor} {...rest}>
|
|
20
28
|
{children}
|
|
21
29
|
</Tag>
|
|
22
30
|
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { ContentPageContext } from '../components/ContentPage/ContentPageContext';
|
|
3
|
+
import { changeHashOnObserve } from '../utils/changeHashOnObserve';
|
|
4
|
+
|
|
5
|
+
interface BlockWrapperProps {
|
|
6
|
+
context: ContentPageContext;
|
|
7
|
+
className?: string;
|
|
8
|
+
anchor?: string;
|
|
9
|
+
Tag?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const BlockWrapper = JSX<BlockWrapperProps>(
|
|
13
|
+
({ anchor, className, context, children, Tag = 'section', ...rest }) => {
|
|
14
|
+
const { IntersectionObserverTag } = context;
|
|
15
|
+
|
|
16
|
+
return anchor ? (
|
|
17
|
+
<IntersectionObserverTag
|
|
18
|
+
Tag={Tag}
|
|
19
|
+
className={className}
|
|
20
|
+
observerCallback={changeHashOnObserve}
|
|
21
|
+
observerOptions={{ threshold: 1 }} // Lower threshold when hash change needed
|
|
22
|
+
anchor={anchor}
|
|
23
|
+
{...rest}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</IntersectionObserverTag>
|
|
27
|
+
) : (
|
|
28
|
+
<Tag className={className} {...rest}>
|
|
29
|
+
{children}
|
|
30
|
+
</Tag>
|
|
31
|
+
);
|
|
32
|
+
},
|
|
33
|
+
);
|
|
@@ -21,15 +21,18 @@ const renderBlock =
|
|
|
21
21
|
if (!type || !(type in EmbeddableBlocks)) {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
const { style, ...rest } = block;
|
|
26
|
+
|
|
27
|
+
const classNameBlock = style2className(style);
|
|
25
28
|
const EmbeddedBlock: JSXBlock = EmbeddableBlocks[type];
|
|
26
29
|
|
|
27
30
|
return (
|
|
28
31
|
<EmbeddedBlock
|
|
29
32
|
key={`block_${i}`}
|
|
30
|
-
context={context}
|
|
31
|
-
{...block}
|
|
32
33
|
className={`${className} ${classNameBlock}`}
|
|
34
|
+
context={context}
|
|
35
|
+
{...rest}
|
|
33
36
|
/>
|
|
34
37
|
);
|
|
35
38
|
};
|
|
@@ -26,7 +26,7 @@ export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
29
|
-
/** @title Иконка */
|
|
29
|
+
/** @title Иконка слева */
|
|
30
30
|
icon?: Picture;
|
|
31
31
|
/** @title Иконка справа */
|
|
32
32
|
iconRight?: Picture;
|
|
@@ -49,3 +49,16 @@ export interface ButtonContent {
|
|
|
49
49
|
*/
|
|
50
50
|
buttons?: ButtonWithIconProps[];
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
export interface BackwardButtonProps extends ButtonProps {
|
|
54
|
+
/** @title Иконка */
|
|
55
|
+
icon?: Picture;
|
|
56
|
+
/** @title Верхний текст */
|
|
57
|
+
aboveText?: string;
|
|
58
|
+
/** @hidden */
|
|
59
|
+
appendLeft?: any;
|
|
60
|
+
/** @title Закругленные углы */
|
|
61
|
+
rounded?: boolean;
|
|
62
|
+
/** @hidden */
|
|
63
|
+
asSVG?: boolean;
|
|
64
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.changeHashOnScroll = void 0;
|
|
3
|
-
const changeHashOnScroll = (router, blocks) => {
|
|
4
|
-
blocks?.forEach((block) => {
|
|
5
|
-
const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
|
|
6
|
-
const anchorHash = `#${block?.id}`;
|
|
7
|
-
if (currentHash === anchorHash) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const position = block?.getBoundingClientRect();
|
|
11
|
-
if (position && position.top > 0 && position.top < 150) {
|
|
12
|
-
router.replace(`#${block?.id}`);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
exports.changeHashOnScroll = changeHashOnScroll;
|
|
17
|
-
//# sourceMappingURL=changeHashOnScroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"changeHashOnScroll.js","sourceRoot":"","sources":["../../src/utils/changeHashOnScroll.ts"],"names":[],"mappings":";;AAEO,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,MAAkC,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,gDAAgD;QAC/F,MAAM,UAAU,GAAG,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC;QAEnC,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,QAAQ,GAAG,KAAK,EAAE,qBAAqB,EAAE,CAAC;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YACtD,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,kBAAkB,sBAc7B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const changeHashOnScroll = (router, blocks) => {
|
|
2
|
-
blocks?.forEach((block) => {
|
|
3
|
-
const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
|
|
4
|
-
const anchorHash = `#${block?.id}`;
|
|
5
|
-
if (currentHash === anchorHash) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
const position = block?.getBoundingClientRect();
|
|
9
|
-
if (position && position.top > 0 && position.top < 150) {
|
|
10
|
-
router.replace(`#${block?.id}`);
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=changeHashOnScroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"changeHashOnScroll.js","sourceRoot":"","sources":["../../src/utils/changeHashOnScroll.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,MAAkC,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,gDAAgD;QAC/F,MAAM,UAAU,GAAG,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC;QAEnC,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,QAAQ,GAAG,KAAK,EAAE,qBAAqB,EAAE,CAAC;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YACtD,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.changeHashOnScroll = void 0;
|
|
3
|
-
const changeHashOnScroll = (router, blocks) => {
|
|
4
|
-
blocks?.forEach((block) => {
|
|
5
|
-
const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
|
|
6
|
-
const anchorHash = `#${block?.id}`;
|
|
7
|
-
if (currentHash === anchorHash) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const position = block?.getBoundingClientRect();
|
|
11
|
-
if (position && position.top > 0 && position.top < 150) {
|
|
12
|
-
router.replace(`#${block?.id}`);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
exports.changeHashOnScroll = changeHashOnScroll;
|
|
17
|
-
//# sourceMappingURL=changeHashOnScroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"changeHashOnScroll.js","sourceRoot":"","sources":["../../src/utils/changeHashOnScroll.ts"],"names":[],"mappings":";;AAEO,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,MAAkC,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,gDAAgD;QAC/F,MAAM,UAAU,GAAG,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC;QAEnC,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,QAAQ,GAAG,KAAK,EAAE,qBAAqB,EAAE,CAAC;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YACtD,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,kBAAkB,sBAc7B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const changeHashOnScroll = (router, blocks) => {
|
|
2
|
-
blocks?.forEach((block) => {
|
|
3
|
-
const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
|
|
4
|
-
const anchorHash = `#${block?.id}`;
|
|
5
|
-
if (currentHash === anchorHash) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
const position = block?.getBoundingClientRect();
|
|
9
|
-
if (position && position.top > 0 && position.top < 150) {
|
|
10
|
-
router.replace(`#${block?.id}`);
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=changeHashOnScroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"changeHashOnScroll.js","sourceRoot":"","sources":["../../src/utils/changeHashOnScroll.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,MAAkC,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,gDAAgD;QAC/F,MAAM,UAAU,GAAG,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC;QAEnC,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,QAAQ,GAAG,KAAK,EAAE,qBAAqB,EAAE,CAAC;QAChD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YACtD,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;SACjC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Router } from '../components/ContentPage/ContentPageContext';
|
|
2
|
-
|
|
3
|
-
export const changeHashOnScroll = (router: Router, blocks: NodeListOf<Element> | null) => {
|
|
4
|
-
blocks?.forEach((block) => {
|
|
5
|
-
const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
|
|
6
|
-
const anchorHash = `#${block?.id}`;
|
|
7
|
-
|
|
8
|
-
if (currentHash === anchorHash) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const position = block?.getBoundingClientRect();
|
|
13
|
-
if (position && position.top > 0 && position.top < 150) {
|
|
14
|
-
router.replace(`#${block?.id}`);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Router } from '../components/ContentPage/ContentPageContext';
|
|
2
|
-
|
|
3
|
-
export const changeHashOnScroll = (router: Router, blocks: NodeListOf<Element> | null) => {
|
|
4
|
-
blocks?.forEach((block) => {
|
|
5
|
-
const currentHash = globalThis.location?.hash; // TODO: remove globalThis, use href from router
|
|
6
|
-
const anchorHash = `#${block?.id}`;
|
|
7
|
-
|
|
8
|
-
if (currentHash === anchorHash) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const position = block?.getBoundingClientRect();
|
|
13
|
-
if (position && position.top > 0 && position.top < 150) {
|
|
14
|
-
router.replace(`#${block?.id}`);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
};
|