@redneckz/wildless-cms-uni-blocks 0.8.26 → 0.8.28
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.17.js +4 -2
- package/bin/migration-scripts/0.8.24.js +24 -0
- package/bundle/EventBus/defaultEventBus.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +230 -64
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/bundle/components/Bonus/BonusContent.d.ts +0 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
- package/bundle/components/Carousel/CarouselContent.d.ts +1 -4
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/bundle/components/Tabs/TabsContent.d.ts +1 -4
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/bundle/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/bundle/components/Tile/TileContent.d.ts +3 -22
- package/bundle/components/Video/VideoContent.d.ts +2 -15
- package/bundle/hooks/useCarouselControls.d.ts +0 -2
- package/{dist/services/sitemap → bundle/hooks}/useSWRResource.d.ts +1 -1
- package/bundle/model/Bullets.d.ts +4 -0
- package/bundle/model/Button.d.ts +15 -0
- package/bundle/model/HeadlineType.d.ts +4 -0
- package/bundle/model/Picture.d.ts +3 -10
- package/{dist/services/sitemap/SitemapProps.d.ts → bundle/services/sitemap/SitemapData.d.ts} +1 -1
- package/bundle/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/bundle/services/sitemap/search/joinMaps.d.ts +1 -0
- package/bundle/services/sitemap/search/search.d.ts +12 -0
- package/bundle/services/sitemap/search/textRank.d.ts +1 -0
- package/bundle/services/sitemap/search/tokenize.d.ts +1 -0
- package/bundle/services/sitemap/useSearch.d.ts +8 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +1 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/bundle/ui-kit/List/ListProps.d.ts +3 -4
- package/bundle/ui-kit/Location/Location.d.ts +1 -18
- package/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/bundle/utils/Comparator.d.ts +4 -0
- package/bundle/utils/maxBy.d.ts +1 -0
- package/bundle/utils/minBy.d.ts +1 -0
- package/bundle/utils/sum.d.ts +1 -0
- package/bundle/utils/unique.d.ts +1 -0
- package/bundle/utils/url.d.ts +1 -1
- package/bundle/utils/zip.d.ts +4 -0
- package/dist/EventBus/defaultEventBus.d.ts +1 -0
- package/dist/EventBus/defaultEventBus.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/dist/components/Bonus/BonusContent.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/dist/components/Calculator/CalculatorContent.d.ts +2 -4
- package/dist/components/Carousel/CarouselContent.d.ts +1 -4
- 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 -10
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/dist/components/ContentPage/ContentPage.js +7 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/dist/components/Footer/Footer.js +22 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/dist/components/Footer/MediaButton.js +5 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -2
- package/dist/components/Footer/Sitemap.js +2 -4
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -0
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/dist/components/PictureText/PictureTextContent.d.ts +3 -21
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/dist/components/Tabs/TabsContent.d.ts +1 -4
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/dist/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/dist/components/Tile/TileContent.d.ts +3 -22
- package/dist/components/VerticalLayout/VerticalLayout.js +5 -3
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +2 -15
- package/dist/hooks/useCarouselControls.d.ts +0 -2
- package/dist/hooks/useCarouselControls.js +7 -15
- package/dist/hooks/useCarouselControls.js.map +1 -1
- package/{lib/services/sitemap → dist/hooks}/useSWRResource.d.ts +1 -1
- package/{mobile/dist/services/sitemap → dist/hooks}/useSWRResource.js +1 -1
- package/dist/hooks/useSWRResource.js.map +1 -0
- package/dist/model/Bullets.d.ts +4 -0
- package/dist/{services/sitemap/SitemapProps.js → model/Bullets.js} +1 -1
- package/dist/model/Bullets.js.map +1 -0
- package/dist/model/Button.d.ts +15 -0
- package/{mobile/dist/services/sitemap/SitemapProps.js → dist/model/Button.js} +1 -1
- package/dist/model/Button.js.map +1 -0
- package/dist/model/HeadlineType.d.ts +4 -0
- package/dist/model/Picture.d.ts +3 -10
- package/{bundle/services/sitemap/SitemapProps.d.ts → dist/services/sitemap/SitemapData.d.ts} +1 -1
- package/dist/services/sitemap/SitemapData.js +2 -0
- package/dist/services/sitemap/SitemapData.js.map +1 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.js +67 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/dist/services/sitemap/search/joinMaps.d.ts +1 -0
- package/dist/services/sitemap/search/joinMaps.js +10 -0
- package/dist/services/sitemap/search/joinMaps.js.map +1 -0
- package/dist/services/sitemap/search/search.d.ts +12 -0
- package/dist/services/sitemap/search/search.js +39 -0
- package/dist/services/sitemap/search/search.js.map +1 -0
- package/dist/services/sitemap/search/textRank.d.ts +1 -0
- package/dist/services/sitemap/search/textRank.js +14 -0
- package/dist/services/sitemap/search/textRank.js.map +1 -0
- package/dist/services/sitemap/search/tokenize.d.ts +1 -0
- package/dist/services/sitemap/search/tokenize.js +9 -0
- package/dist/services/sitemap/search/tokenize.js.map +1 -0
- package/dist/services/sitemap/useSearch.d.ts +8 -0
- package/dist/services/sitemap/useSearch.js +33 -0
- package/dist/services/sitemap/useSearch.js.map +1 -0
- package/dist/ui-kit/BlockWrapper.d.ts +1 -0
- package/dist/ui-kit/BlockWrapper.js +3 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/dist/ui-kit/List/ListProps.d.ts +3 -4
- package/dist/ui-kit/Location/Location.d.ts +1 -18
- package/dist/ui-kit/Location/Location.js +6 -8
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Location/LocationProps.d.ts +16 -0
- package/dist/ui-kit/Location/LocationProps.js +2 -0
- package/dist/ui-kit/Location/LocationProps.js.map +1 -0
- package/dist/ui-kit/Location/SearchBar.js +1 -1
- package/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/utils/Comparator.d.ts +4 -0
- package/dist/utils/Comparator.js +9 -0
- package/dist/utils/Comparator.js.map +1 -0
- package/dist/utils/fetchJSON.js +1 -1
- package/dist/utils/fetchJSON.js.map +1 -1
- package/dist/utils/maxBy.d.ts +1 -0
- package/dist/utils/maxBy.js +2 -1
- package/dist/utils/maxBy.js.map +1 -1
- package/dist/utils/minBy.d.ts +1 -0
- package/dist/utils/minBy.js +2 -1
- package/dist/utils/minBy.js.map +1 -1
- package/dist/utils/sum.d.ts +1 -0
- package/dist/utils/sum.js +5 -0
- package/dist/utils/sum.js.map +1 -0
- package/dist/utils/unique.d.ts +1 -0
- package/dist/utils/unique.js +5 -0
- package/dist/utils/unique.js.map +1 -0
- package/dist/utils/url.d.ts +1 -1
- package/dist/utils/url.js.map +1 -1
- package/dist/utils/zip.d.ts +4 -0
- package/dist/utils/zip.js +7 -0
- package/dist/utils/zip.js.map +1 -0
- package/lib/EventBus/defaultEventBus.d.ts +1 -0
- package/lib/EventBus/defaultEventBus.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/lib/components/Bonus/BonusContent.d.ts +0 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/lib/components/Calculator/CalculatorContent.d.ts +2 -4
- package/lib/components/Carousel/CarouselContent.d.ts +1 -4
- 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 -10
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +4 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/lib/components/ContentPage/ContentPage.js +7 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/lib/components/Footer/Footer.js +22 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/lib/components/Footer/MediaButton.js +5 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -2
- package/lib/components/Footer/Sitemap.js +2 -4
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -0
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/lib/components/PictureText/PictureTextContent.d.ts +3 -21
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/lib/components/Tabs/TabsContent.d.ts +1 -4
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/lib/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/lib/components/Tile/TileContent.d.ts +3 -22
- package/lib/components/VerticalLayout/VerticalLayout.js +5 -3
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +2 -15
- package/lib/hooks/useCarouselControls.d.ts +0 -2
- package/lib/hooks/useCarouselControls.js +7 -15
- package/lib/hooks/useCarouselControls.js.map +1 -1
- package/{bundle/services/sitemap → lib/hooks}/useSWRResource.d.ts +1 -1
- package/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
- package/lib/hooks/useSWRResource.js.map +1 -0
- package/lib/model/Bullets.d.ts +4 -0
- package/lib/model/Bullets.js +2 -0
- package/lib/model/Bullets.js.map +1 -0
- package/lib/model/Button.d.ts +15 -0
- package/lib/model/Button.js +2 -0
- package/lib/model/Button.js.map +1 -0
- package/lib/model/HeadlineType.d.ts +4 -0
- package/lib/model/Picture.d.ts +3 -10
- package/{mobile/bundle/services/sitemap/SitemapProps.d.ts → lib/services/sitemap/SitemapData.d.ts} +1 -1
- package/lib/services/sitemap/SitemapData.js +2 -0
- package/lib/services/sitemap/SitemapData.js.map +1 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.js +64 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/lib/services/sitemap/search/joinMaps.d.ts +1 -0
- package/lib/services/sitemap/search/joinMaps.js +7 -0
- package/lib/services/sitemap/search/joinMaps.js.map +1 -0
- package/lib/services/sitemap/search/search.d.ts +12 -0
- package/lib/services/sitemap/search/search.js +36 -0
- package/lib/services/sitemap/search/search.js.map +1 -0
- package/lib/services/sitemap/search/textRank.d.ts +1 -0
- package/lib/services/sitemap/search/textRank.js +11 -0
- package/lib/services/sitemap/search/textRank.js.map +1 -0
- package/lib/services/sitemap/search/tokenize.d.ts +1 -0
- package/lib/services/sitemap/search/tokenize.js +6 -0
- package/lib/services/sitemap/search/tokenize.js.map +1 -0
- package/lib/services/sitemap/useSearch.d.ts +8 -0
- package/lib/services/sitemap/useSearch.js +30 -0
- package/lib/services/sitemap/useSearch.js.map +1 -0
- package/lib/ui-kit/BlockWrapper.d.ts +1 -0
- package/lib/ui-kit/BlockWrapper.js +3 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/lib/ui-kit/List/ListProps.d.ts +3 -4
- package/lib/ui-kit/Location/Location.d.ts +1 -18
- package/lib/ui-kit/Location/Location.js +7 -9
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Location/LocationProps.d.ts +16 -0
- package/lib/ui-kit/Location/LocationProps.js +2 -0
- package/lib/ui-kit/Location/LocationProps.js.map +1 -0
- package/lib/ui-kit/Location/SearchBar.js +1 -1
- package/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/utils/Comparator.d.ts +4 -0
- package/lib/utils/Comparator.js +4 -0
- package/lib/utils/Comparator.js.map +1 -0
- package/lib/utils/fetchJSON.js +1 -1
- package/lib/utils/fetchJSON.js.map +1 -1
- package/lib/utils/maxBy.d.ts +1 -0
- package/lib/utils/maxBy.js +1 -0
- package/lib/utils/maxBy.js.map +1 -1
- package/lib/utils/minBy.d.ts +1 -0
- package/lib/utils/minBy.js +1 -0
- package/lib/utils/minBy.js.map +1 -1
- package/lib/utils/sum.d.ts +1 -0
- package/lib/utils/sum.js +2 -0
- package/lib/utils/sum.js.map +1 -0
- package/lib/utils/unique.d.ts +1 -0
- package/lib/utils/unique.js +2 -0
- package/lib/utils/unique.js.map +1 -0
- package/lib/utils/url.d.ts +1 -1
- package/lib/utils/url.js.map +1 -1
- package/lib/utils/zip.d.ts +4 -0
- package/lib/utils/zip.js +4 -0
- package/lib/utils/zip.js.map +1 -0
- package/mobile/bundle/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +25 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/bundle/components/Tile/TileContent.d.ts +3 -22
- package/mobile/bundle/components/Video/VideoContent.d.ts +2 -15
- package/mobile/bundle/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/bundle/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
- package/mobile/bundle/model/Bullets.d.ts +4 -0
- package/mobile/bundle/model/Button.d.ts +15 -0
- package/mobile/bundle/model/HeadlineType.d.ts +4 -0
- package/mobile/bundle/model/Picture.d.ts +3 -10
- package/{lib/services/sitemap/SitemapProps.d.ts → mobile/bundle/services/sitemap/SitemapData.d.ts} +1 -1
- package/mobile/bundle/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/search.d.ts +12 -0
- package/mobile/bundle/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/bundle/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/bundle/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/bundle/utils/Comparator.d.ts +4 -0
- package/mobile/bundle/utils/maxBy.d.ts +1 -0
- package/mobile/bundle/utils/minBy.d.ts +1 -0
- package/mobile/bundle/utils/sum.d.ts +1 -0
- package/mobile/bundle/utils/unique.d.ts +1 -0
- package/mobile/bundle/utils/url.d.ts +1 -1
- package/mobile/bundle/utils/zip.d.ts +4 -0
- package/mobile/dist/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/dist/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -4
- 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 -10
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/dist/components/ContentPage/ContentPage.js +7 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/dist/components/Footer/MediaButton.js +5 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/dist/components/Footer/Sitemap.js +2 -4
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/dist/components/Tile/TileContent.d.ts +3 -22
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +5 -3
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +2 -15
- package/mobile/dist/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/dist/hooks/useCarouselControls.js +7 -15
- package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
- package/mobile/dist/hooks/useSWRResource.d.ts +2 -0
- package/{dist/services/sitemap → mobile/dist/hooks}/useSWRResource.js +1 -1
- package/mobile/dist/hooks/useSWRResource.js.map +1 -0
- package/mobile/dist/model/Bullets.d.ts +4 -0
- package/mobile/dist/model/Bullets.js +2 -0
- package/mobile/dist/model/Bullets.js.map +1 -0
- package/mobile/dist/model/Button.d.ts +15 -0
- package/mobile/dist/model/Button.js +2 -0
- package/mobile/dist/model/Button.js.map +1 -0
- package/mobile/dist/model/HeadlineType.d.ts +4 -0
- package/mobile/dist/model/Picture.d.ts +3 -10
- package/mobile/dist/services/sitemap/SitemapData.d.ts +32 -0
- package/mobile/dist/services/sitemap/SitemapData.js +2 -0
- package/mobile/dist/services/sitemap/SitemapData.js.map +1 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js +67 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/dist/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/joinMaps.js +10 -0
- package/mobile/dist/services/sitemap/search/joinMaps.js.map +1 -0
- package/mobile/dist/services/sitemap/search/search.d.ts +12 -0
- package/mobile/dist/services/sitemap/search/search.js +39 -0
- package/mobile/dist/services/sitemap/search/search.js.map +1 -0
- package/mobile/dist/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/textRank.js +14 -0
- package/mobile/dist/services/sitemap/search/textRank.js.map +1 -0
- package/mobile/dist/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/tokenize.js +9 -0
- package/mobile/dist/services/sitemap/search/tokenize.js.map +1 -0
- package/mobile/dist/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/dist/services/sitemap/useSearch.js +33 -0
- package/mobile/dist/services/sitemap/useSearch.js.map +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/dist/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/dist/ui-kit/Location/Location.js +6 -8
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/dist/ui-kit/Location/LocationProps.js +2 -0
- package/mobile/dist/ui-kit/Location/LocationProps.js.map +1 -0
- package/mobile/dist/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/utils/Comparator.d.ts +4 -0
- package/mobile/dist/utils/Comparator.js +9 -0
- package/mobile/dist/utils/Comparator.js.map +1 -0
- package/mobile/dist/utils/fetchJSON.js +1 -1
- package/mobile/dist/utils/fetchJSON.js.map +1 -1
- package/mobile/dist/utils/maxBy.d.ts +1 -0
- package/mobile/dist/utils/maxBy.js +2 -1
- package/mobile/dist/utils/maxBy.js.map +1 -1
- package/mobile/dist/utils/minBy.d.ts +1 -0
- package/mobile/dist/utils/minBy.js +2 -1
- package/mobile/dist/utils/minBy.js.map +1 -1
- package/mobile/dist/utils/sum.d.ts +1 -0
- package/mobile/dist/utils/sum.js +5 -0
- package/mobile/dist/utils/sum.js.map +1 -0
- package/mobile/dist/utils/unique.d.ts +1 -0
- package/mobile/dist/utils/unique.js +5 -0
- package/mobile/dist/utils/unique.js.map +1 -0
- package/mobile/dist/utils/url.d.ts +1 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/dist/utils/zip.d.ts +4 -0
- package/mobile/dist/utils/zip.js +7 -0
- package/mobile/dist/utils/zip.js.map +1 -0
- package/mobile/lib/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/lib/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -4
- 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 -10
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/lib/components/ContentPage/ContentPage.js +7 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/lib/components/Footer/MediaButton.js +5 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/lib/components/Footer/Sitemap.js +2 -4
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/lib/components/Tile/TileContent.d.ts +3 -22
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +5 -3
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +2 -15
- package/mobile/lib/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/lib/hooks/useCarouselControls.js +7 -15
- package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
- package/mobile/lib/hooks/useSWRResource.d.ts +2 -0
- package/mobile/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
- package/mobile/lib/hooks/useSWRResource.js.map +1 -0
- package/mobile/lib/model/Bullets.d.ts +4 -0
- package/mobile/lib/model/Bullets.js +2 -0
- package/mobile/lib/model/Bullets.js.map +1 -0
- package/mobile/lib/model/Button.d.ts +15 -0
- package/mobile/lib/model/Button.js +2 -0
- package/mobile/lib/model/Button.js.map +1 -0
- package/mobile/lib/model/HeadlineType.d.ts +4 -0
- package/mobile/lib/model/Picture.d.ts +3 -10
- package/mobile/lib/services/sitemap/SitemapData.d.ts +32 -0
- package/mobile/lib/services/sitemap/SitemapData.js +2 -0
- package/mobile/lib/services/sitemap/SitemapData.js.map +1 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js +64 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/lib/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/joinMaps.js +7 -0
- package/mobile/lib/services/sitemap/search/joinMaps.js.map +1 -0
- package/mobile/lib/services/sitemap/search/search.d.ts +12 -0
- package/mobile/lib/services/sitemap/search/search.js +36 -0
- package/mobile/lib/services/sitemap/search/search.js.map +1 -0
- package/mobile/lib/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/textRank.js +11 -0
- package/mobile/lib/services/sitemap/search/textRank.js.map +1 -0
- package/mobile/lib/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/tokenize.js +6 -0
- package/mobile/lib/services/sitemap/search/tokenize.js.map +1 -0
- package/mobile/lib/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/lib/services/sitemap/useSearch.js +30 -0
- package/mobile/lib/services/sitemap/useSearch.js.map +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/lib/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/lib/ui-kit/Location/Location.js +7 -9
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/lib/ui-kit/Location/LocationProps.js +2 -0
- package/mobile/lib/ui-kit/Location/LocationProps.js.map +1 -0
- package/mobile/lib/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/utils/Comparator.d.ts +4 -0
- package/mobile/lib/utils/Comparator.js +4 -0
- package/mobile/lib/utils/Comparator.js.map +1 -0
- package/mobile/lib/utils/fetchJSON.js +1 -1
- package/mobile/lib/utils/fetchJSON.js.map +1 -1
- package/mobile/lib/utils/maxBy.d.ts +1 -0
- package/mobile/lib/utils/maxBy.js +1 -0
- package/mobile/lib/utils/maxBy.js.map +1 -1
- package/mobile/lib/utils/minBy.d.ts +1 -0
- package/mobile/lib/utils/minBy.js +1 -0
- package/mobile/lib/utils/minBy.js.map +1 -1
- package/mobile/lib/utils/sum.d.ts +1 -0
- package/mobile/lib/utils/sum.js +2 -0
- package/mobile/lib/utils/sum.js.map +1 -0
- package/mobile/lib/utils/unique.d.ts +1 -0
- package/mobile/lib/utils/unique.js +2 -0
- package/mobile/lib/utils/unique.js.map +1 -0
- package/mobile/lib/utils/url.d.ts +1 -1
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/lib/utils/zip.d.ts +4 -0
- package/mobile/lib/utils/zip.js +4 -0
- package/mobile/lib/utils/zip.js.map +1 -0
- package/mobile/src/EventBus/defaultEventBus.ts +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
- package/mobile/src/components/BaseTile/BaseTileProps.ts +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
- package/mobile/src/components/Bonus/Bonus.example.json +2 -1
- package/mobile/src/components/Bonus/Bonus.ui.json +1 -1
- package/mobile/src/components/Bonus/BonusContent.ts +0 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
- package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
- package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
- package/mobile/src/components/Calculator/CalculatorContent.ts +6 -7
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +1 -4
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +4 -2
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -3
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +3 -10
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
- package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +3 -3
- package/mobile/src/components/ContentPage/ContentPage.tsx +16 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
- package/mobile/src/components/Footer/MediaButton.tsx +13 -7
- package/mobile/src/components/Footer/Sitemap.tsx +4 -7
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +15 -0
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +1 -1
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +3 -14
- package/mobile/src/components/Header/Header.tsx +3 -3
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -1
- package/mobile/src/components/Headline/Headline.tsx +5 -6
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +2 -4
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +9 -2
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +4 -17
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
- package/mobile/src/components/PictureText/PictureText.example.json +9 -1
- package/mobile/src/components/PictureText/PictureTextContent.ts +4 -21
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +10 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +5 -23
- package/mobile/src/components/ProductTile/ProductTile.example.json +10 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +3 -17
- package/mobile/src/components/Recommendation/Recommendation.example.json +5 -1
- package/mobile/src/components/Recommendation/RecommendationContent.ts +2 -28
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +8 -4
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +19 -33
- package/mobile/src/components/Tabs/Tabs.example.json +2 -1
- package/mobile/src/components/Tabs/TabsContent.ts +1 -4
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +4 -9
- package/mobile/src/components/TextBlock/TextBlockContent.ts +5 -5
- package/mobile/src/components/Tile/Tile.example.json +9 -1
- package/mobile/src/components/Tile/TileContent.ts +5 -22
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
- package/mobile/src/components/Video/Video.example.json +7 -1
- package/mobile/src/components/Video/VideoContent.ts +2 -15
- package/mobile/src/hooks/useCarouselControls.ts +7 -30
- package/mobile/src/{services/sitemap → hooks}/useSWRResource.ts +2 -2
- package/mobile/src/model/Bullets.ts +4 -0
- package/mobile/src/model/Button.ts +16 -0
- package/mobile/src/model/HeadlineType.ts +5 -0
- package/mobile/src/model/Picture.ts +3 -10
- package/mobile/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
- package/mobile/src/services/sitemap/search/jaroWinklerDistance.ts +98 -0
- package/mobile/src/services/sitemap/search/joinMaps.ts +9 -0
- package/mobile/src/services/sitemap/search/search.ts +73 -0
- package/mobile/src/services/sitemap/search/textRank.ts +14 -0
- package/mobile/src/services/sitemap/search/tokenize.ts +7 -0
- package/mobile/src/services/sitemap/useSearch.ts +56 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +8 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +4 -4
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/mobile/src/ui-kit/List/ListProps.ts +11 -11
- package/mobile/src/ui-kit/Location/Location.tsx +23 -40
- package/mobile/src/ui-kit/Location/LocationProps.ts +25 -0
- package/mobile/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +59 -56
- package/mobile/src/utils/Comparator.ts +14 -0
- package/mobile/src/utils/fetchJSON.ts +1 -1
- package/mobile/src/utils/maxBy.ts +2 -0
- package/mobile/src/utils/minBy.ts +2 -0
- package/mobile/src/utils/sum.ts +1 -0
- package/mobile/src/utils/unique.ts +1 -0
- package/mobile/src/utils/url.ts +1 -1
- package/mobile/src/utils/zip.ts +8 -0
- package/package.json +1 -1
- package/src/EventBus/defaultEventBus.ts +1 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
- package/src/components/BaseTile/BaseTileProps.ts +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
- package/src/components/Bonus/Bonus.example.json +2 -1
- package/src/components/Bonus/Bonus.ui.json +1 -1
- package/src/components/Bonus/BonusContent.ts +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
- package/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
- package/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
- package/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
- package/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
- package/src/components/Calculator/CalculatorContent.ts +6 -7
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +5 -4
- package/src/components/Carousel/CarouselContent.ts +1 -4
- package/src/components/CarouselCard/CarouselCard.example.json +4 -2
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -0
- package/src/components/CarouselCard/CarouselCard.tsx +4 -3
- package/src/components/CarouselCard/CarouselCardContent.ts +3 -10
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +82 -22
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
- package/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +3 -3
- package/src/components/ContentPage/ContentPage.tsx +16 -1
- package/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
- package/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/Footer.tsx +33 -3
- package/src/components/Footer/FooterDataProps.ts +2 -2
- package/src/components/Footer/MediaButton.tsx +13 -7
- package/src/components/Footer/Sitemap.tsx +4 -7
- package/src/components/Footer/SocialMedia.tsx +11 -2
- package/src/components/GracePeriod/GracePeriod.example.json +15 -0
- package/src/components/GracePeriod/GracePeriod.ui.json +1 -1
- package/src/components/GracePeriod/GracePeriodContent.ts +3 -14
- package/src/components/Header/Header.mobile.tsx +3 -3
- package/src/components/Header/Header.tsx +3 -3
- package/src/components/Header/HeaderSecondaryMenu.tsx +4 -1
- package/src/components/Headline/Headline.fixture.tsx +11 -11
- package/src/components/Headline/Headline.tsx +5 -6
- package/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
- package/src/components/ImgBlock/ImgBlockContent.ts +2 -4
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
- package/src/components/LinkDocs/LinkDocs.example.json +9 -2
- package/src/components/LinkDocs/LinkDocsContent.ts +4 -17
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
- package/src/components/PictureText/PictureText.example.json +9 -1
- package/src/components/PictureText/PictureTextContent.ts +4 -21
- package/src/components/ProductBlock/ProductBlock.example.json +10 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +5 -23
- package/src/components/ProductBlock/ProductBlockInner.tsx +0 -1
- package/src/components/ProductTile/ProductTile.example.json +10 -2
- package/src/components/ProductTile/ProductTileContent.ts +3 -17
- package/src/components/Recommendation/Recommendation.example.json +5 -1
- package/src/components/Recommendation/RecommendationContent.ts +2 -28
- package/src/components/StepsBlock/StepsBlock.example.json +8 -4
- package/src/components/StepsBlock/StepsBlockContent.ts +19 -33
- package/src/components/Tabs/Tabs.example.json +2 -1
- package/src/components/Tabs/TabsContent.ts +1 -4
- package/src/components/TariffsTable/TariffsTableContent.ts +4 -9
- package/src/components/TextBlock/TextBlockContent.ts +5 -5
- package/src/components/Tile/Tile.example.json +9 -1
- package/src/components/Tile/TileContent.ts +5 -22
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -0
- package/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
- package/src/components/Video/Video.example.json +7 -1
- package/src/components/Video/VideoContent.ts +2 -15
- package/src/hooks/useCarouselControls.ts +7 -30
- package/src/{services/sitemap → hooks}/useSWRResource.ts +2 -2
- package/src/model/Bullets.ts +4 -0
- package/src/model/Button.ts +16 -0
- package/src/model/HeadlineType.ts +5 -0
- package/src/model/Picture.ts +3 -10
- package/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
- package/src/services/sitemap/search/jaroWinklerDistance.ts +98 -0
- package/src/services/sitemap/search/joinMaps.ts +9 -0
- package/src/services/sitemap/search/search.ts +73 -0
- package/src/services/sitemap/search/textRank.ts +14 -0
- package/src/services/sitemap/search/tokenize.ts +7 -0
- package/src/services/sitemap/useSearch.ts +56 -0
- package/src/ui-kit/BlockWrapper.tsx +8 -3
- package/src/ui-kit/Button/ButtonProps.ts +4 -4
- package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/src/ui-kit/List/ListProps.ts +11 -11
- package/src/ui-kit/Location/Location.fixture.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +23 -40
- package/src/ui-kit/Location/LocationProps.ts +25 -0
- package/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +59 -56
- package/src/utils/Comparator.ts +14 -0
- package/src/utils/fetchJSON.ts +1 -1
- package/src/utils/maxBy.ts +2 -0
- package/src/utils/minBy.ts +2 -0
- package/src/utils/sum.ts +1 -0
- package/src/utils/unique.ts +1 -0
- package/src/utils/url.ts +1 -1
- package/src/utils/zip.ts +8 -0
- package/bundle/hooks/useSearch.d.ts +0 -4
- package/dist/hooks/useSearch.d.ts +0 -4
- package/dist/hooks/useSearch.js +0 -12
- package/dist/hooks/useSearch.js.map +0 -1
- package/dist/services/sitemap/SitemapProps.js.map +0 -1
- package/dist/services/sitemap/useSWRResource.js.map +0 -1
- package/lib/hooks/useSearch.d.ts +0 -4
- package/lib/hooks/useSearch.js +0 -9
- package/lib/hooks/useSearch.js.map +0 -1
- package/lib/services/sitemap/SitemapProps.js +0 -2
- package/lib/services/sitemap/SitemapProps.js.map +0 -1
- package/lib/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/bundle/hooks/useSearch.d.ts +0 -4
- package/mobile/dist/hooks/useSearch.d.ts +0 -4
- package/mobile/dist/hooks/useSearch.js +0 -12
- package/mobile/dist/hooks/useSearch.js.map +0 -1
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +0 -32
- package/mobile/dist/services/sitemap/SitemapProps.js.map +0 -1
- package/mobile/dist/services/sitemap/useSWRResource.d.ts +0 -2
- package/mobile/dist/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/lib/hooks/useSearch.d.ts +0 -4
- package/mobile/lib/hooks/useSearch.js +0 -9
- package/mobile/lib/hooks/useSearch.js.map +0 -1
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +0 -32
- package/mobile/lib/services/sitemap/SitemapProps.js +0 -2
- package/mobile/lib/services/sitemap/SitemapProps.js.map +0 -1
- package/mobile/lib/services/sitemap/useSWRResource.d.ts +0 -2
- package/mobile/lib/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/src/hooks/useSearch.ts +0 -10
- package/src/hooks/useSearch.ts +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const joinMaps: <K, A, B>(aggregate: (a: A, b: B) => A, emptyVal: A) => (acc: Map<K, A>, map: Map<K, B>) => Map<K, A>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.joinMaps = void 0;
|
|
3
|
+
const joinMaps = (aggregate, emptyVal) => (acc, map) => {
|
|
4
|
+
for (const [key, b] of map) {
|
|
5
|
+
acc.set(key, aggregate(acc.get(key) || emptyVal, b));
|
|
6
|
+
}
|
|
7
|
+
return acc;
|
|
8
|
+
};
|
|
9
|
+
exports.joinMaps = joinMaps;
|
|
10
|
+
//# sourceMappingURL=joinMaps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joinMaps.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/joinMaps.ts"],"names":[],"mappings":";;AAAO,MAAM,QAAQ,GACnB,CAAU,SAA4B,EAAE,QAAW,EAAE,EAAE,CACvD,CAAC,GAAc,EAAE,GAAc,EAAa,EAAE;IAC5C,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,GAAG,EAAE;QAC1B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;KACtD;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AARS,QAAA,QAAQ,YAQjB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CorpusItem {
|
|
2
|
+
uri?: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
declare type Stem = string;
|
|
6
|
+
declare type CorpusItemIndex = number;
|
|
7
|
+
export interface SearchIndex {
|
|
8
|
+
corpus?: CorpusItem[];
|
|
9
|
+
dictionary?: Record<Stem, CorpusItemIndex[]>;
|
|
10
|
+
}
|
|
11
|
+
export declare const search: (query: string | undefined) => (searchIndex: SearchIndex | undefined) => CorpusItem[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.search = void 0;
|
|
3
|
+
const Comparator_1 = require("../../../utils/Comparator");
|
|
4
|
+
const zip_1 = require("../../../utils/zip");
|
|
5
|
+
const jaroWinklerDistance_1 = require("./jaroWinklerDistance");
|
|
6
|
+
const joinMaps_1 = require("./joinMaps");
|
|
7
|
+
const textRank_1 = require("./textRank");
|
|
8
|
+
const tokenize_1 = require("./tokenize");
|
|
9
|
+
const JW_THRESHOLD = 0.8;
|
|
10
|
+
const RANK_EPS = 0.001;
|
|
11
|
+
const search = (query) => (searchIndex) => {
|
|
12
|
+
const { corpus, dictionary } = searchIndex || {};
|
|
13
|
+
if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
const queryTokens = (0, tokenize_1.tokenize)(query);
|
|
17
|
+
if (!queryTokens.length) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
const dictEntries = Object.entries(dictionary);
|
|
21
|
+
const pagesRanking = queryTokens
|
|
22
|
+
.map(computePagesRankingPerToken(dictEntries))
|
|
23
|
+
.reduce((0, joinMaps_1.joinMaps)((a, b) => a + b, 0), new Map());
|
|
24
|
+
const relevantPages = [...pagesRanking.entries()]
|
|
25
|
+
.filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
|
|
26
|
+
.map(([pageIndex]) => corpus[pageIndex]);
|
|
27
|
+
return sortResultsByRank(queryTokens)(relevantPages);
|
|
28
|
+
};
|
|
29
|
+
exports.search = search;
|
|
30
|
+
const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
|
|
31
|
+
.map(([stem, pageIndices]) => [(0, jaroWinklerDistance_1.jaroWinklerDistance)(qToken)(stem), pageIndices])
|
|
32
|
+
.filter(([stemRank]) => stemRank >= JW_THRESHOLD)
|
|
33
|
+
.map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
|
|
34
|
+
.reduce((0, joinMaps_1.joinMaps)(Math.max, 0), new Map());
|
|
35
|
+
const sortResultsByRank = (queryTokens) => (results) => (0, zip_1.zip)(results, results.map(({ title }) => title).map((0, textRank_1.textRank)(queryTokens)))
|
|
36
|
+
.sort((0, Comparator_1.desc)((0, Comparator_1.compareBy)(([, pageTitleRank]) => pageTitleRank)))
|
|
37
|
+
.map(([corpusItem]) => corpusItem);
|
|
38
|
+
const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
|
|
39
|
+
//# source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UAAU,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;AAEzC,MAAM,WAAW,GAAG,CAAO,IAAS,EAAE,KAAQ,EAAa,EAAE,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const textRank: (queryTokens: string[]) => (text: string | undefined) => number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.textRank = void 0;
|
|
3
|
+
const maxBy_1 = require("../../../utils/maxBy");
|
|
4
|
+
const sum_1 = require("../../../utils/sum");
|
|
5
|
+
const jaroWinklerDistance_1 = require("./jaroWinklerDistance");
|
|
6
|
+
const tokenize_1 = require("./tokenize");
|
|
7
|
+
const textRank = (queryTokens) => (text) => {
|
|
8
|
+
const textTokens = (0, tokenize_1.tokenize)(text || '');
|
|
9
|
+
return textTokens.length
|
|
10
|
+
? (0, sum_1.sum)(queryTokens.map((qToken) => (0, maxBy_1.max)(textTokens.map((0, jaroWinklerDistance_1.jaroWinklerDistance)(qToken)))))
|
|
11
|
+
: 0;
|
|
12
|
+
};
|
|
13
|
+
exports.textRank = textRank;
|
|
14
|
+
//# sourceMappingURL=textRank.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textRank.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/textRank.ts"],"names":[],"mappings":";;AAAA,gDAA2C;AAC3C,4CAAyC;AACzC,+DAA4D;AAC5D,yCAAsC;AAE/B,MAAM,QAAQ,GACnB,CAAC,WAAqB,EAAE,EAAE,CAC1B,CAAC,IAAwB,EAAU,EAAE;IACnC,MAAM,UAAU,GAAG,IAAA,mBAAQ,EAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAExC,OAAO,UAAU,CAAC,MAAM;QACtB,CAAC,CAAC,IAAA,SAAG,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,WAAG,EAAC,UAAU,CAAC,GAAG,CAAC,IAAA,yCAAmB,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AARS,QAAA,QAAQ,YAQjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tokenize: (text: string) => string[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.tokenize = void 0;
|
|
3
|
+
const MIN_TERM_LEN = 3;
|
|
4
|
+
const tokenize = (text) => text
|
|
5
|
+
.toLowerCase()
|
|
6
|
+
.split(/[^0-9a-zа-я-]+/)
|
|
7
|
+
.filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
|
|
8
|
+
exports.tokenize = tokenize;
|
|
9
|
+
//# sourceMappingURL=tokenize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenize.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/tokenize.ts"],"names":[],"mappings":";;AAAA,MAAM,YAAY,GAAG,CAAC,CAAC;AAEhB,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CACvC,IAAI;KACD,WAAW,EAAE;KACb,KAAK,CAAC,gBAAgB,CAAC;KACvB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AAJnE,QAAA,QAAQ,YAI2D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CorpusItem } from './search/search';
|
|
2
|
+
export declare type SearchResult = Array<CorpusItem[]>;
|
|
3
|
+
export interface SearchInputProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (query: string) => void;
|
|
6
|
+
onFocus: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useSearch: (basePathList?: string[]) => [SearchResult | null, SearchInputProps];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useSearch = void 0;
|
|
3
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
+
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
5
|
+
const fetchJSON_1 = require("../../utils/fetchJSON");
|
|
6
|
+
const url_1 = require("../../utils/url");
|
|
7
|
+
const search_1 = require("./search/search");
|
|
8
|
+
const SEARCH_INDEX_FILENAME = 'search.index.json';
|
|
9
|
+
const useSearch = (basePathList = ['/']) => {
|
|
10
|
+
const [query, setQuery] = (0, hooks_1.useState)('');
|
|
11
|
+
const [wasQueryFocused, setWasQueryFocused] = (0, hooks_1.useState)(false);
|
|
12
|
+
const handleFocus = (0, hooks_1.useCallback)(() => {
|
|
13
|
+
setWasQueryFocused(true);
|
|
14
|
+
}, []);
|
|
15
|
+
const key = (0, hooks_1.useMemo)(() => basePathList.map((_) => (wasQueryFocused ? _ : null)), // Load search index on input focus
|
|
16
|
+
[wasQueryFocused, ...basePathList]);
|
|
17
|
+
const { data } = (0, useAsyncData_1.useAsyncData)(key, fetchSearchIndex);
|
|
18
|
+
const [result, setResult] = (0, hooks_1.useState)(null);
|
|
19
|
+
(0, hooks_1.useEffect)(() => {
|
|
20
|
+
const timerId = setTimeout(() => {
|
|
21
|
+
if (data) {
|
|
22
|
+
setResult(data.map((0, search_1.search)(query)));
|
|
23
|
+
}
|
|
24
|
+
}, 300);
|
|
25
|
+
return () => {
|
|
26
|
+
clearTimeout(timerId);
|
|
27
|
+
};
|
|
28
|
+
}, [data, query]);
|
|
29
|
+
return [result, { value: query, onChange: setQuery, onFocus: handleFocus }];
|
|
30
|
+
};
|
|
31
|
+
exports.useSearch = useSearch;
|
|
32
|
+
const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => (0, fetchJSON_1.fetchJSON)((0, url_1.joinPath)(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
|
|
33
|
+
//# sourceMappingURL=useSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSearch.js","sourceRoot":"","sources":["../../../src/services/sitemap/useSearch.ts"],"names":[],"mappings":";;AAAA,uDAAwF;AACxF,2EAAwE;AACxE,qDAAkD;AAClD,yCAA2C;AAC3C,4CAAkE;AAElE,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAU3C,MAAM,SAAS,GAAG,CACvB,eAAyB,CAAC,GAAG,CAAC,EACW,EAAE;IAC3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAEvC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,GAAG,GAAG,IAAA,eAAO,EACjB,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,mCAAmC;IAChG,CAAC,eAAe,EAAE,GAAG,YAAY,CAAC,CACnC,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;IAErD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAsB,IAAI,CAAC,CAAC;IAEhE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,IAAI,IAAI,EAAE;gBACR,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACpC;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAElB,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;AAC9E,CAAC,CAAC;AAhCW,QAAA,SAAS,aAgCpB;AAEF,MAAM,gBAAgB,GAAG,KAAK,EAAE,GAAG,YAA+B,EAA0B,EAAE,CAC5F,CACE,MAAM,OAAO,CAAC,UAAU,CACtB,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAC,IAAA,cAAQ,EAAC,QAAQ,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAC1F,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAgB,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { UniBlockProps } from '../model/JSXBlock';
|
|
|
3
3
|
interface BlockWrapperProps extends UniBlockProps {
|
|
4
4
|
tag?: keyof HTMLElementTagNameMap;
|
|
5
5
|
role?: string;
|
|
6
|
+
extraProps?: Record<string, any>;
|
|
6
7
|
}
|
|
7
8
|
export declare const blockStyles: Record<BlockVersion, string>;
|
|
8
9
|
export declare const BlockWrapper: import("@redneckz/uni-jsx").UNIComponent<BlockWrapperProps, any, any>;
|
|
@@ -13,13 +13,14 @@ exports.blockStyles = {
|
|
|
13
13
|
transparent: 'bg-transparent text-primary-text',
|
|
14
14
|
'': '',
|
|
15
15
|
};
|
|
16
|
-
exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, children, }) => {
|
|
16
|
+
exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, extraProps = {}, children, }) => {
|
|
17
17
|
const Tag = tag;
|
|
18
18
|
const ref = (0, useBlockIntersectionObserver_1.useBlockIntersectionObserver)(block);
|
|
19
19
|
const [isHidden, setHidden] = (0, hooks_1.useState)(false);
|
|
20
20
|
(0, hooks_1.useEffect)(() => defaultEventBus_1.defaultEventBus.subscribe('tab', (event) => {
|
|
21
21
|
setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
|
|
22
22
|
}), [block]);
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(Tag, { className: (0, style_1.style)(
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(Tag, { className: (0, style_1.style)(groupStyle(Boolean(version && isTheme)), exports.blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, ...extraProps, children: children }));
|
|
24
24
|
});
|
|
25
|
+
const groupStyle = (isGroup) => (isGroup ? 'group' : '');
|
|
25
26
|
//# sourceMappingURL=BlockWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iEAA8D;
|
|
1
|
+
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src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B,SAAS,CACV,KACG,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACnD,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,KACN,UAAU,YAEb,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAgB,EAAU,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -18,15 +18,15 @@ export interface ButtonAdditionalProps {
|
|
|
18
18
|
* @title Кнопка
|
|
19
19
|
*/
|
|
20
20
|
export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
21
|
-
/**
|
|
22
|
-
* @title Текст
|
|
23
|
-
* @default Кнопка
|
|
24
|
-
*/
|
|
21
|
+
/** @title Текст */
|
|
25
22
|
text?: string;
|
|
26
23
|
/** @title Закругленные углы */
|
|
27
24
|
rounded?: boolean;
|
|
28
25
|
version?: ButtonVersion;
|
|
29
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @title Кнопка
|
|
29
|
+
*/
|
|
30
30
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
31
31
|
/** @title Иконка слева */
|
|
32
32
|
icon?: Picture;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BulletsProps } from '../../model/Bullets';
|
|
1
2
|
import type { ListContent } from './ListContent';
|
|
2
3
|
/**
|
|
3
4
|
* @title Размер пунктов списка
|
|
@@ -7,14 +8,12 @@ export declare type ListItemSize = 'S' | 'M' | 'L';
|
|
|
7
8
|
/**
|
|
8
9
|
* @title Содержимое списка
|
|
9
10
|
*/
|
|
10
|
-
export
|
|
11
|
+
export declare type ListProps = ListContent & BulletsProps & {
|
|
11
12
|
/** @hidden */
|
|
12
13
|
className?: string;
|
|
13
14
|
/** @title Отступ */
|
|
14
15
|
hasIndent?: boolean;
|
|
15
16
|
/** @hidden */
|
|
16
17
|
itemClassName?: string;
|
|
17
|
-
/** @title Буллиты */
|
|
18
|
-
isDotted?: boolean;
|
|
19
18
|
listItemSize?: ListItemSize;
|
|
20
|
-
}
|
|
19
|
+
};
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import type { ForeignOffice } from '../../services/sitemap/SitemapProps';
|
|
4
|
-
interface RegionLinkProps {
|
|
5
|
-
onChangeLocation?: (region: Region) => void;
|
|
6
|
-
}
|
|
7
|
-
interface CloseButtonProps {
|
|
8
|
-
close?: () => void;
|
|
9
|
-
}
|
|
10
|
-
interface CurrentLocationProps {
|
|
11
|
-
currentLocation?: Region;
|
|
12
|
-
}
|
|
13
|
-
interface ForeignOfficeProps {
|
|
14
|
-
foreignOffices?: ForeignOffice[];
|
|
15
|
-
}
|
|
16
|
-
export declare type LocationProps = ForeignOfficeProps & CloseButtonProps & RegionLinkProps & CurrentLocationProps & UniBlockProps;
|
|
1
|
+
import type { LocationProps } from './LocationProps';
|
|
17
2
|
export declare const Location: import("@redneckz/uni-jsx").UNIComponent<LocationProps, any, any>;
|
|
18
|
-
declare const ForeignOffice: import("@redneckz/uni-jsx").UNIComponent<ForeignOffice, any, any>;
|
|
19
|
-
export {};
|
|
@@ -5,28 +5,26 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const useLink_1 = require("../../hooks/useLink");
|
|
7
7
|
const useRegions_1 = require("../../hooks/useRegions");
|
|
8
|
-
const useSearch_1 = require("../../hooks/useSearch");
|
|
9
8
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
10
9
|
const groupBy_1 = require("../../utils/groupBy");
|
|
11
10
|
const Img_1 = require("../Img/Img");
|
|
12
11
|
const SearchBar_1 = require("./SearchBar");
|
|
13
12
|
const SEARCH_TERM_MIN_LENGTH = 3;
|
|
14
13
|
exports.Location = (0, uni_jsx_1.JSX)(({ currentLocation, onChangeLocation, close, foreignOffices }) => {
|
|
15
|
-
const
|
|
16
|
-
const handleSearch = (0, hooks_1.useCallback)((_) => setTerm(_), []);
|
|
14
|
+
const [query, setQuery] = (0, hooks_1.useState)('');
|
|
17
15
|
const regions = cleanUpRegions((0, useRegions_1.useRegions)()).sort((a, b) => a.name.localeCompare(b.name));
|
|
18
16
|
const regionsGroupByLetter = (0, groupBy_1.groupBy)(regions, regionFirstLetter);
|
|
19
|
-
return ((0, jsx_runtime_1.
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "absolute h-full w-full inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll", children: (0, jsx_runtime_1.jsxs)("div", { className: "relative container pt-6 pb-12", children: [(0, jsx_runtime_1.jsxs)("div", { className: "sticky bg-white pt-6 top-0", children: [(0, jsx_runtime_1.jsx)(CloseButton, { close: close }), (0, jsx_runtime_1.jsx)(CurrentLocation, { currentLocation: currentLocation }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { onSearch: setQuery, searchTerm: query, className: "mb-7" })] }), query && query.length >= SEARCH_TERM_MIN_LENGTH ? ((0, jsx_runtime_1.jsx)("div", { children: regions
|
|
18
|
+
.filter((region) => region.name?.startsWith(query))
|
|
19
|
+
.map(renderRegion({ onChangeLocation, close })) })) : ((0, jsx_runtime_1.jsx)("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup({ onChangeLocation, close })) })), (0, jsx_runtime_1.jsx)(ForeignOffices, { foreignOffices: foreignOffices })] }) }));
|
|
22
20
|
});
|
|
23
21
|
const regionFirstLetter = (region) => region.name?.charAt(0) || '';
|
|
24
22
|
const cleanUpRegions = (regions) => regions.map((region) => ({
|
|
25
23
|
...region,
|
|
26
24
|
name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
|
|
27
25
|
}));
|
|
28
|
-
const CurrentLocation = (0, uni_jsx_1.JSX)(({ currentLocation }) => currentLocation ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-4", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), (0, jsx_runtime_1.jsx)("button", { className: "cursor-pointer", onClick: close, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-
|
|
29
|
-
const CloseButton = (0, uni_jsx_1.JSX)(({ close }) => ((0, jsx_runtime_1.jsx)("button", { className: "visible peer-placeholder-shown:invisible absolute top-
|
|
26
|
+
const CurrentLocation = (0, uni_jsx_1.JSX)(({ currentLocation }) => currentLocation ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-4", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), (0, jsx_runtime_1.jsx)("button", { className: "cursor-pointer", onClick: close, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
|
|
27
|
+
const CloseButton = (0, uni_jsx_1.JSX)(({ close }) => ((0, jsx_runtime_1.jsx)("button", { className: "visible peer-placeholder-shown:invisible absolute top-0 -right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
|
|
30
28
|
e.preventDefault();
|
|
31
29
|
close && close();
|
|
32
30
|
}, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Location.js","sourceRoot":"","sources":["../../../src/ui-kit/Location/Location.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"Location.js","sourceRoot":"","sources":["../../../src/ui-kit/Location/Location.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,iDAA8C;AAC9C,uDAAoD;AACpD,iDAA8C;AAC9C,iDAA8C;AAC9C,oCAAiC;AACjC,2CAAwC;AAWxC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAEpB,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,eAAe,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,EAAE;IAC/D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAEvC,MAAM,OAAO,GAAa,cAAc,CAAC,IAAA,uBAAU,GAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACnE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAC7B,CAAC;IACF,MAAM,oBAAoB,GAA0B,IAAA,iBAAO,EAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAExF,OAAO,CACL,gCAAK,SAAS,EAAC,+FAA+F,YAC5G,iCAAK,SAAS,EAAC,+BAA+B,aAC5C,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,WAAW,IAAC,KAAK,EAAE,KAAK,GAAI,EAC7B,uBAAC,eAAe,IAAC,eAAe,EAAE,eAAe,GAAI,EACrD,uBAAC,qBAAS,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IACjE,EAEL,KAAK,IAAI,KAAK,CAAC,MAAM,IAAI,sBAAsB,CAAC,CAAC,CAAC,CACjD,0CACG,OAAO;yBACL,MAAM,CAAC,CA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ap/SitemapData';
|
|
3
|
+
import { UniBlockProps } from '../../model/JSXBlock';
|
|
4
|
+
export interface RegionLinkProps {
|
|
5
|
+
onChangeLocation?: (region: Region) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface CloseButtonProps {
|
|
8
|
+
close?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface CurrentLocationProps {
|
|
11
|
+
currentLocation?: Region;
|
|
12
|
+
}
|
|
13
|
+
export interface ForeignOfficeProps {
|
|
14
|
+
foreignOffices?: ForeignOffice[];
|
|
15
|
+
}
|
|
16
|
+
export declare type LocationProps = ForeignOfficeProps & CloseButtonProps & RegionLinkProps & CurrentLocationProps & UniBlockProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Location/LocationProps.ts"],"names":[],"mappings":""}
|
|
@@ -4,6 +4,6 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
exports.SearchBar = (0, uni_jsx_1.JSX)(({ className, searchTerm, onSearch }) => {
|
|
6
6
|
return ((0, jsx_runtime_1.jsxs)("form", { className: `font-sans relative ${className}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: searchTerm ? null : ((0, jsx_runtime_1.jsx)("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), (0, jsx_runtime_1.jsx)("input", { id: "search-bar-input", className: `h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
7
|
-
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value), type: "text", name: "location-search-bar-input" })] }));
|
|
7
|
+
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=SearchBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/Location/SearchBar.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,SAAS,GAAG,IAAA,aAAG,EAAsB,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxF,OAAO,CACL,kCAAM,SAAS,EAAE,sBAAsB,SAAS,EAAE,aAChD,gCAAK,SAAS,EAAC,yGAAyG,YACrH,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB,kCAAO,OAAO,EAAC,kBAAkB,EAAC,SAAS,EAAE,sBAAsB,6GAE3D,CACT,GACG,EACN,kCACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EAAE;uHACoG,EAC/G,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/Location/SearchBar.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,SAAS,GAAG,IAAA,aAAG,EAAsB,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxF,OAAO,CACL,kCAAM,SAAS,EAAE,sBAAsB,SAAS,EAAE,aAChD,gCAAK,SAAS,EAAC,yGAAyG,YACrH,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB,kCAAO,OAAO,EAAC,kBAAkB,EAAC,SAAS,EAAE,sBAAsB,6GAE3D,CACT,GACG,EACN,kCACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EAAE;uHACoG,EAC/G,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,EAAY,CAAC,EACjE,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,2BAA2B,GAChC,IACG,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export interface SearchBarInnerProps {
|
|
2
2
|
isMobile?: boolean;
|
|
3
3
|
className?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onFocus?: () => void;
|
|
4
7
|
}
|
|
5
8
|
export declare const SearchBarInner: import("@redneckz/uni-jsx").UNIComponent<SearchBarInnerProps, any, any>;
|
|
@@ -2,19 +2,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.SearchBarInner = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useSearch_1 = require("../../hooks/useSearch");
|
|
6
5
|
const Button_1 = require("../Button/Button");
|
|
7
6
|
const Img_1 = require("../Img/Img");
|
|
8
|
-
exports.SearchBarInner = (0, uni_jsx_1.JSX)(({ className, isMobile
|
|
9
|
-
const { term, setTerm } = (0, useSearch_1.useSearch)();
|
|
7
|
+
exports.SearchBarInner = (0, uni_jsx_1.JSX)(({ className, isMobile, value: query, onChange, onFocus }) => {
|
|
10
8
|
const LoupeIconClassName = isMobile ? 'w-5 h-5' : 'w-6 h-6';
|
|
11
9
|
const SearchBarLabelClassName = isMobile ? 'text-s' : 'text-l-light';
|
|
12
10
|
const SearchBarInputClassName = isMobile ? ' placeholder-transparent' : 'h-full';
|
|
13
11
|
const inputPlaceholder = isMobile ? 'some search' : undefined;
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("form", { className: `font-sans relative ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [(0, jsx_runtime_1.jsx)("div", { className: LoupeIconClassName, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }),
|
|
15
|
-
outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`, value:
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("form", { className: `font-sans relative ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [(0, jsx_runtime_1.jsx)("div", { className: LoupeIconClassName, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), query ? null : ((0, jsx_runtime_1.jsx)("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), (0, jsx_runtime_1.jsx)("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
13
|
+
outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`, value: query, onChange: (e) => onChange && onChange(e.target.value || ''), onFocus: onFocus, type: "text", name: "search-bar-input", placeholder: inputPlaceholder }), isMobile ? ((0, jsx_runtime_1.jsx)("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
|
|
16
14
|
e.preventDefault();
|
|
17
|
-
|
|
15
|
+
onChange && onChange('');
|
|
18
16
|
}, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-[3px] right-1", onClick: (ev) => {
|
|
19
17
|
ev?.preventDefault();
|
|
20
18
|
console.log('click');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBarInner.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBarInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"SearchBarInner.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBarInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,oCAAiC;AAUpB,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3D,MAAM,kBAAkB,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5D,MAAM,uBAAuB,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC;IACrE,MAAM,uBAAuB,GAAG,QAAQ,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,QAAQ,CAAC;IACjF,MAAM,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;IAE9D,OAAO,CACL,kCAAM,SAAS,EAAE,sBAAsB,SAAS,EAAE,aAChD,iCAAK,SAAS,EAAC,yGAAyG,aACtH,gCAAK,SAAS,EAAE,kBAAkB,YAChC,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MA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> = (a: T, b: T) => number;
|
|
2
|
+
export declare const compareBy: <T>(indexOf: (a: T) => number) => Comparator<T>;
|
|
3
|
+
export declare const desc: <T>(cmp: Comparator<T>) => Comparator<T>;
|
|
4
|
+
export declare const combineCmps: <T>(comparators: Comparator<T>[], eps?: number) => Comparator<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.combineCmps = exports.desc = exports.compareBy = void 0;
|
|
3
|
+
const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
|
|
4
|
+
exports.compareBy = compareBy;
|
|
5
|
+
const desc = (cmp) => (a, b) => -cmp(a, b);
|
|
6
|
+
exports.desc = desc;
|
|
7
|
+
const combineCmps = (comparators, eps = 0) => comparators.reduce((cmp1, cmp2) => (a, b) => cmp1(a, b) >= eps ? cmp1(a, b) : cmp2(a, b));
|
|
8
|
+
exports.combineCmps = combineCmps;
|
|
9
|
+
//# sourceMappingURL=Comparator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Comparator.js","sourceRoot":"","sources":["../../src/utils/Comparator.ts"],"names":[],"mappings":";;AAEO,MAAM,SAAS,GACpB,CAAI,OAAyB,EAAiB,EAAE,CAChD,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACP,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAHf,QAAA,SAAS,aAGM;AAErB,MAAM,IAAI,GACf,CAAI,GAAkB,EAAiB,EAAE,CACzC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACP,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAHF,QAAA,IAAI,QAGF;AAER,MAAM,WAAW,GAAG,CAAI,WAA4B,EAAE,GAAG,GAAG,CAAC,EAAiB,EAAE,CACrF,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAD/E,QAAA,WAAW,eACoE"}
|
package/dist/utils/fetchJSON.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.fetchJSONUnsafe = exports.fetchJSON = void 0;
|
|
3
3
|
async function fetchJSON(url, options) {
|
|
4
4
|
try {
|
|
5
|
-
return await fetchJSONUnsafe(url, options);
|
|
5
|
+
return url ? await fetchJSONUnsafe(url, options) : null;
|
|
6
6
|
}
|
|
7
7
|
catch (err) {
|
|
8
8
|
console.error(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchJSON.js","sourceRoot":"","sources":["../../src/utils/fetchJSON.ts"],"names":[],"mappings":";;AAAO,KAAK,UAAU,SAAS,CAC7B,GAAW,EACX,OAAqB;IAErB,IAAI;QACF,OAAO,MAAM,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchJSON.js","sourceRoot":"","sources":["../../src/utils/fetchJSON.ts"],"names":[],"mappings":";;AAAO,KAAK,UAAU,SAAS,CAC7B,GAAW,EACX,OAAqB;IAErB,IAAI;QACF,OAAO,GAAG,CAAC,CAAC,CAAC,MAAM,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KACzD;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACpB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,8BAWC;AAEM,KAAK,UAAU,eAAe,CAAc,GAAW,EAAE,OAAqB;IACnF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAChC,GAAG,OAAO;QACV,OAAO,EAAE;YACP,GAAG,OAAO,EAAE,OAAO;YACnB,cAAc,EAAE,kBAAkB;SACnC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAVD,0CAUC"}
|
package/dist/utils/maxBy.d.ts
CHANGED
package/dist/utils/maxBy.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.maxBy = exports.defaultDiscriminator = void 0;
|
|
2
|
+
exports.max = exports.maxBy = exports.defaultDiscriminator = void 0;
|
|
3
3
|
const defaultDiscriminator = (_) => _;
|
|
4
4
|
exports.defaultDiscriminator = defaultDiscriminator;
|
|
5
5
|
const maxBy = (discriminator = exports.defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
6
6
|
exports.maxBy = maxBy;
|
|
7
|
+
exports.max = (0, exports.maxBy)();
|
|
7
8
|
//# sourceMappingURL=maxBy.js.map
|
package/dist/utils/maxBy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maxBy.js","sourceRoot":"","sources":["../../src/utils/maxBy.ts"],"names":[],"mappings":";;AAAO,MAAM,oBAAoB,GAAG,CAAc,CAAO,EAAS,EAAE,CAAC,CAAQ,CAAC;AAAjE,QAAA,oBAAoB,wBAA6C;AAEvE,MAAM,KAAK,GAChB,CAAqB,gBAAuC,4BAAoB,EAAE,EAAE,CACpF,CAAC,IAAY,EAAQ,EAAE,CACrB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAHjE,QAAA,KAAK,SAG4D"}
|
|
1
|
+
{"version":3,"file":"maxBy.js","sourceRoot":"","sources":["../../src/utils/maxBy.ts"],"names":[],"mappings":";;AAAO,MAAM,oBAAoB,GAAG,CAAc,CAAO,EAAS,EAAE,CAAC,CAAQ,CAAC;AAAjE,QAAA,oBAAoB,wBAA6C;AAEvE,MAAM,KAAK,GAChB,CAAqB,gBAAuC,4BAAoB,EAAE,EAAE,CACpF,CAAC,IAAY,EAAQ,EAAE,CACrB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAHjE,QAAA,KAAK,SAG4D;AAEjE,QAAA,GAAG,GAAG,IAAA,aAAK,GAAU,CAAC"}
|
package/dist/utils/minBy.d.ts
CHANGED
package/dist/utils/minBy.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.minBy = void 0;
|
|
2
|
+
exports.min = exports.minBy = void 0;
|
|
3
3
|
const maxBy_1 = require("./maxBy");
|
|
4
4
|
const minBy = (discriminator = maxBy_1.defaultDiscriminator) => (0, maxBy_1.maxBy)((_) => -discriminator(_));
|
|
5
5
|
exports.minBy = minBy;
|
|
6
|
+
exports.min = (0, exports.minBy)();
|
|
6
7
|
//# sourceMappingURL=minBy.js.map
|
package/dist/utils/minBy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minBy.js","sourceRoot":"","sources":["../../src/utils/minBy.ts"],"names":[],"mappings":";;AAAA,mCAAsD;AAE/C,MAAM,KAAK,GAAG,CACnB,gBAAuC,4BAAoB,EAC3D,EAAE,CAAC,IAAA,aAAK,EAAC,CAAC,CAAO,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAF9B,QAAA,KAAK,SAEyB"}
|
|
1
|
+
{"version":3,"file":"minBy.js","sourceRoot":"","sources":["../../src/utils/minBy.ts"],"names":[],"mappings":";;AAAA,mCAAsD;AAE/C,MAAM,KAAK,GAAG,CACnB,gBAAuC,4BAAoB,EAC3D,EAAE,CAAC,IAAA,aAAK,EAAC,CAAC,CAAO,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAF9B,QAAA,KAAK,SAEyB;AAE9B,QAAA,GAAG,GAAG,IAAA,aAAK,GAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sum: (list?: number[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sum.js","sourceRoot":"","sources":["../../src/utils/sum.ts"],"names":[],"mappings":";;AAAO,MAAM,GAAG,GAAG,CAAC,OAAiB,EAAE,EAAU,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAAvE,QAAA,GAAG,OAAoE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const unique: <T>(list: T[]) => T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unique.js","sourceRoot":"","sources":["../../src/utils/unique.ts"],"names":[],"mappings":";;AAAO,MAAM,MAAM,GAAG,CAAI,IAAS,EAAO,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AAAnD,QAAA,MAAM,UAA6C"}
|
package/dist/utils/url.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export declare const isURL: (href?: string) => href is `${string}:${string}`;
|
|
|
3
3
|
export declare const isLocalURL: (href: string | undefined, target?: Target) => boolean;
|
|
4
4
|
export declare const isHash: (href?: string) => href is `#${string}`;
|
|
5
5
|
export declare const withoutQuery: (href?: string) => string;
|
|
6
|
-
export declare const joinPath: (...path: (string | undefined)[]) => string;
|
|
6
|
+
export declare const joinPath: (...path: (string | undefined | null)[]) => string;
|
package/dist/utils/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":";;AAEO,MAAM,KAAK,GAAG,CAAC,IAAa,EAAiC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAAvF,QAAA,KAAK,SAAkF;AAE7F,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CACtE,OAAO,CAAC,IAAI,IAAI,CAAC,IAAA,aAAK,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC;AADtD,QAAA,UAAU,cAC4C;AAE5D,MAAM,MAAM,GAAG,CAAC,IAAa,EAAwB,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAAjF,QAAA,MAAM,UAA2E;AAEvF,MAAM,YAAY,GAAG,CAAC,IAAa,EAAU,EAAE,CACpD,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AADzC,QAAA,YAAY,gBAC6B;AAE/C,MAAM,QAAQ,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":";;AAEO,MAAM,KAAK,GAAG,CAAC,IAAa,EAAiC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAAvF,QAAA,KAAK,SAAkF;AAE7F,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CACtE,OAAO,CAAC,IAAI,IAAI,CAAC,IAAA,aAAK,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC;AADtD,QAAA,UAAU,cAC4C;AAE5D,MAAM,MAAM,GAAG,CAAC,IAAa,EAAwB,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAAjF,QAAA,MAAM,UAA2E;AAEvF,MAAM,YAAY,GAAG,CAAC,IAAa,EAAU,EAAE,CACpD,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AADzC,QAAA,YAAY,gBAC6B;AAE/C,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAmC,EAAU,EAAE,CACzE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AADzC,QAAA,QAAQ,YACiC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function zip<A>(a: A[]): [A][];
|
|
2
|
+
export declare function zip<A, B>(a: A[], b: B[]): [A, B][];
|
|
3
|
+
export declare function zip<A, B, C>(a: A[], b: B[], c: C[]): [A, B, C][];
|
|
4
|
+
export declare function zip<A, B, C, D>(a: A[], b: B[], c: C[], d: D[]): [A, B, C, D][];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.zip = void 0;
|
|
3
|
+
function zip(firstCol, ...restCols) {
|
|
4
|
+
return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
|
|
5
|
+
}
|
|
6
|
+
exports.zip = zip;
|
|
7
|
+
//# sourceMappingURL=zip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../src/utils/zip.ts"],"names":[],"mappings":";;AAKA,SAAgB,GAAG,CAAC,QAAe,EAAE,GAAG,QAAiB;IACvD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACjG,CAAC;AAFD,kBAEC"}
|