@gravity-ui/page-constructor 2.4.0 → 2.5.0
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/CHANGELOG.md +7 -0
- package/build/cjs/blocks/Banner/Banner.js +1 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -2
- package/build/cjs/blocks/Companies/Companies.js +2 -2
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +3 -3
- package/build/cjs/blocks/ContentLayout/schema.js +5 -5
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +7 -7
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +4 -4
- package/build/cjs/blocks/Header/Header.js +13 -13
- package/build/cjs/blocks/Header/schema.js +1 -1
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +3 -3
- package/build/cjs/blocks/Icons/Icons.js +1 -1
- package/build/cjs/blocks/Info/Info.js +2 -2
- package/build/cjs/blocks/Info/schema.js +1 -1
- package/build/cjs/blocks/LinkTable/LinkTable.js +3 -3
- package/build/cjs/blocks/LinkTable/schema.js +1 -1
- package/build/cjs/blocks/Media/Media.js +1 -1
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.d.ts +1 -1
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.js +3 -3
- package/build/cjs/blocks/Preview/MediaContent/PreviewContent.js +1 -1
- package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.js +1 -1
- package/build/cjs/blocks/Preview/Preview.js +4 -4
- package/build/cjs/blocks/Preview/schema.js +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +6 -6
- package/build/cjs/blocks/Questions/Questions.js +2 -2
- package/build/cjs/blocks/Security/Security.js +1 -1
- package/build/cjs/blocks/Security/schema.js +1 -1
- package/build/cjs/blocks/Share/Share.js +5 -5
- package/build/cjs/blocks/Simple/Simple.js +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/cjs/blocks/Slider/Slider.d.ts +1 -1
- package/build/cjs/blocks/Slider/Slider.js +10 -10
- package/build/cjs/blocks/Slider/utils.js +1 -1
- package/build/cjs/blocks/Table/Table.js +2 -2
- package/build/cjs/blocks/Tabs/Tabs.js +9 -9
- package/build/cjs/blocks/Tabs/schema.js +3 -3
- package/build/cjs/components/Author/Author.js +1 -1
- package/build/cjs/components/BackLink/BackLink.js +1 -1
- package/build/cjs/components/BackLink/__tests__/BackLink.test.js +1 -1
- package/build/cjs/components/BackgroundMedia/BackgroundMedia.d.ts +1 -1
- package/build/cjs/components/BackgroundMedia/BackgroundMedia.js +2 -2
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/cjs/components/BlockBase/BlockBase.js +1 -1
- package/build/cjs/components/BlockHeader/BlockHeader.d.ts +1 -1
- package/build/cjs/components/BlockHeader/BlockHeader.js +2 -2
- package/build/cjs/components/Button/Button.js +4 -4
- package/build/cjs/components/Button/__tests__/Button.test.js +1 -1
- package/build/cjs/components/CardBase/CardBase.d.ts +1 -1
- package/build/cjs/components/CardBase/CardBase.js +3 -3
- package/build/cjs/components/FileLink/FileLink.js +1 -1
- package/build/cjs/components/Foldable/Foldable.js +1 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.d.ts +1 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/cjs/components/FullscreenMedia/FullScreenMedia.js +2 -2
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -3
- package/build/cjs/components/Image/Image.js +1 -1
- package/build/cjs/components/Link/Link.d.ts +1 -1
- package/build/cjs/components/Link/Link.js +6 -6
- package/build/cjs/components/Link/Links.d.ts +1 -1
- package/build/cjs/components/Map/GoogleMap.js +3 -3
- package/build/cjs/components/Map/Map.js +1 -1
- package/build/cjs/components/Map/YMap/YMap.d.ts +1 -1
- package/build/cjs/components/Map/YMap/YandexMap.js +4 -4
- package/build/cjs/components/Map/YMap/YandexMapApiLoader.js +1 -1
- package/build/cjs/components/Media/Image/Image.js +8 -8
- package/build/cjs/components/Media/Media.js +2 -2
- package/build/cjs/components/Media/Video/Video.js +4 -4
- package/build/cjs/components/MediaBase/MediaBase.js +2 -2
- package/build/cjs/components/MediaBase/MediaBaseContent.js +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +5 -5
- package/build/cjs/components/Table/Table.d.ts +1 -1
- package/build/cjs/components/Table/Table.js +1 -1
- package/build/cjs/components/Title/Title.d.ts +1 -1
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/components/ToggleArrow/ToggleArrow.js +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +1 -1
- package/build/cjs/components/YFMWrapper/YFMWrapper.d.ts +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js +4 -4
- package/build/cjs/constructor-items.js +1 -1
- package/build/cjs/containers/Loadable/Loadable.js +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +7 -7
- package/build/cjs/containers/PageConstructor/Provider.d.ts +3 -3
- package/build/cjs/containers/PageConstructor/Provider.js +5 -5
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -4
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -2
- package/build/cjs/context/theme/ThemeProvider.js +1 -1
- package/build/cjs/grid/Col/Col.d.ts +2 -2
- package/build/cjs/grid/Row/Row.d.ts +1 -1
- package/build/cjs/grid/utils.d.ts +1 -1
- package/build/cjs/hooks/useAnalytics.js +2 -2
- package/build/cjs/hooks/useFocus.js +1 -1
- package/build/cjs/hooks/useWindowBreakpoint.js +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -2
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -2
- package/build/cjs/models/constructor.d.ts +1 -1
- package/build/cjs/models/navigation.d.ts +1 -1
- package/build/cjs/navigation/components/Header/Header.js +5 -5
- package/build/cjs/navigation/components/Logo/Logo.js +6 -6
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +1 -1
- package/build/cjs/navigation/components/Navigation/Navigation.js +2 -2
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +2 -2
- package/build/cjs/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +5 -5
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +7 -7
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js +1 -1
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +2 -2
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js +4 -4
- package/build/cjs/navigation/schema.js +2 -2
- package/build/cjs/schema/index.js +2 -2
- package/build/cjs/schema/validators/common.js +2 -2
- package/build/cjs/schema/validators/index.d.ts +2 -2
- package/build/cjs/schema/validators/index.js +2 -2
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +5 -5
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +5 -5
- package/build/cjs/sub-blocks/BasicCard/schema.js +4 -4
- package/build/cjs/sub-blocks/CardWithImage/CardWithImage.js +2 -2
- package/build/cjs/sub-blocks/Content/Content.d.ts +1 -1
- package/build/cjs/sub-blocks/Content/Content.js +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +1 -1
- package/build/cjs/sub-blocks/HubspotForm/index.js +3 -3
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +2 -2
- package/build/cjs/sub-blocks/LayoutItem/schema.js +3 -3
- package/build/cjs/sub-blocks/MediaCard/MediaCard.js +1 -1
- package/build/cjs/sub-blocks/NewsCard/NewsCard.js +1 -1
- package/build/cjs/sub-blocks/Partner/Partner.js +1 -1
- package/build/cjs/sub-blocks/Partner/schema.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +3 -3
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +2 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/List.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.d.ts +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/Quote/Quote.js +6 -6
- package/build/cjs/sub-blocks/Quote/schema.js +1 -1
- package/build/cjs/sub-blocks/TutorialCard/TutorialCard.js +5 -5
- package/build/cjs/sub-blocks/TutorialCard/schema.js +1 -1
- package/build/cjs/text-transform/blocks.d.ts +1 -1
- package/build/cjs/text-transform/blocks.js +8 -0
- package/build/cjs/text-transform/utils.js +2 -1
- package/build/cjs/utils/blocks.d.ts +1 -1
- package/build/cjs/utils/scroll.js +1 -0
- package/build/esm/blocks/Banner/Banner.js +1 -1
- package/build/esm/blocks/Banner/schema.js +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +2 -2
- package/build/esm/blocks/CardLayout/schema.js +1 -1
- package/build/esm/blocks/Companies/Companies.js +2 -2
- package/build/esm/blocks/Companies/schema.js +1 -1
- package/build/esm/blocks/ContentLayout/ContentLayout.js +3 -3
- package/build/esm/blocks/ContentLayout/schema.js +3 -3
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +4 -4
- package/build/esm/blocks/ExtendedFeatures/schema.js +1 -1
- package/build/esm/blocks/FilterBlock/FilterBlock.js +5 -5
- package/build/esm/blocks/Header/Header.js +7 -7
- package/build/esm/blocks/Header/schema.js +2 -2
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js +3 -3
- package/build/esm/blocks/Icons/Icons.js +1 -1
- package/build/esm/blocks/Info/Info.js +2 -2
- package/build/esm/blocks/Info/schema.js +1 -1
- package/build/esm/blocks/LinkTable/LinkTable.js +3 -3
- package/build/esm/blocks/LinkTable/schema.js +1 -1
- package/build/esm/blocks/Media/Media.js +1 -1
- package/build/esm/blocks/Media/schema.js +1 -1
- package/build/esm/blocks/Preview/MediaContent/MediaContent.d.ts +1 -1
- package/build/esm/blocks/Preview/MediaContent/MediaContent.js +4 -4
- package/build/esm/blocks/Preview/MediaContent/PreviewContent.js +1 -1
- package/build/esm/blocks/Preview/MediaContent/PreviewMedia.js +1 -1
- package/build/esm/blocks/Preview/Preview.js +4 -4
- package/build/esm/blocks/Preview/schema.js +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +6 -6
- package/build/esm/blocks/Questions/Questions.js +3 -3
- package/build/esm/blocks/Questions/schema.js +1 -1
- package/build/esm/blocks/Security/Security.js +2 -2
- package/build/esm/blocks/Security/schema.js +1 -1
- package/build/esm/blocks/Share/Share.js +7 -7
- package/build/esm/blocks/Simple/Simple.js +1 -1
- package/build/esm/blocks/Simple/schema.js +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/esm/blocks/Slider/Slider.d.ts +2 -2
- package/build/esm/blocks/Slider/Slider.js +11 -11
- package/build/esm/blocks/Slider/schema.js +1 -1
- package/build/esm/blocks/Slider/utils.js +1 -1
- package/build/esm/blocks/Table/Table.js +2 -2
- package/build/esm/blocks/Table/schema.js +1 -1
- package/build/esm/blocks/Tabs/Tabs.js +5 -5
- package/build/esm/blocks/Tabs/schema.js +3 -3
- package/build/esm/components/Author/Author.js +1 -1
- package/build/esm/components/BackLink/BackLink.js +1 -1
- package/build/esm/components/BackLink/__tests__/BackLink.test.js +1 -1
- package/build/esm/components/BackgroundMedia/BackgroundMedia.d.ts +1 -1
- package/build/esm/components/BackgroundMedia/BackgroundMedia.js +2 -2
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +2 -2
- package/build/esm/components/BlockBase/BlockBase.js +1 -1
- package/build/esm/components/BlockHeader/BlockHeader.d.ts +1 -1
- package/build/esm/components/BlockHeader/BlockHeader.js +2 -2
- package/build/esm/components/Button/Button.js +5 -5
- package/build/esm/components/Button/__tests__/Button.test.js +1 -1
- package/build/esm/components/CardBase/CardBase.d.ts +1 -1
- package/build/esm/components/CardBase/CardBase.js +3 -3
- package/build/esm/components/FileLink/FileLink.js +1 -1
- package/build/esm/components/Foldable/Foldable.js +2 -2
- package/build/esm/components/FullWidthBackground/FullWidthBackground.d.ts +1 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.js +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/esm/components/FullscreenMedia/FullScreenMedia.js +2 -2
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -3
- package/build/esm/components/HeightCalculator/HeightCalculator.js +1 -1
- package/build/esm/components/Image/Image.js +2 -2
- package/build/esm/components/Link/Link.d.ts +1 -1
- package/build/esm/components/Link/Link.js +6 -6
- package/build/esm/components/Link/Links.d.ts +1 -1
- package/build/esm/components/Map/GoogleMap.js +4 -4
- package/build/esm/components/Map/Map.js +2 -2
- package/build/esm/components/Map/YMap/YMap.d.ts +1 -1
- package/build/esm/components/Map/YMap/YandexMap.js +6 -6
- package/build/esm/components/Map/YMap/YandexMapApiLoader.js +1 -1
- package/build/esm/components/Media/Image/Image.js +4 -4
- package/build/esm/components/Media/Media.js +2 -2
- package/build/esm/components/Media/Video/Video.js +1 -1
- package/build/esm/components/MediaBase/MediaBase.js +2 -2
- package/build/esm/components/MediaBase/MediaBaseContent.js +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.js +5 -5
- package/build/esm/components/Table/Table.d.ts +1 -1
- package/build/esm/components/Table/Table.js +1 -1
- package/build/esm/components/Title/Title.d.ts +1 -1
- package/build/esm/components/Title/Title.js +3 -3
- package/build/esm/components/ToggleArrow/ToggleArrow.js +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +2 -2
- package/build/esm/components/YFMWrapper/YFMWrapper.d.ts +1 -1
- package/build/esm/components/YandexForm/YandexForm.js +4 -4
- package/build/esm/constructor-items.js +2 -2
- package/build/esm/containers/Loadable/Loadable.js +2 -2
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.js +7 -7
- package/build/esm/containers/PageConstructor/Provider.d.ts +3 -3
- package/build/esm/containers/PageConstructor/Provider.js +5 -5
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -4
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.d.ts +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -2
- package/build/esm/context/mapsContext/mapsProvider.js +1 -1
- package/build/esm/context/theme/ThemeProvider.js +1 -1
- package/build/esm/grid/Col/Col.d.ts +2 -2
- package/build/esm/grid/Row/Row.d.ts +1 -1
- package/build/esm/grid/utils.d.ts +1 -1
- package/build/esm/grid/utils.js +1 -1
- package/build/esm/hooks/useAnalytics.js +2 -2
- package/build/esm/hooks/useFocus.js +1 -1
- package/build/esm/hooks/useHeightCalculator.js +1 -1
- package/build/esm/hooks/useIntersection.js +1 -1
- package/build/esm/hooks/useWindowBreakpoint.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +2 -2
- package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -2
- package/build/esm/models/constructor.d.ts +1 -1
- package/build/esm/models/navigation.d.ts +1 -1
- package/build/esm/navigation/components/Header/Header.js +5 -5
- package/build/esm/navigation/components/Logo/Logo.js +3 -3
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js +2 -2
- package/build/esm/navigation/components/Navigation/Navigation.js +2 -2
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +2 -2
- package/build/esm/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js +1 -1
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +2 -2
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +2 -2
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +2 -2
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +3 -3
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js +1 -1
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +2 -2
- package/build/esm/navigation/components/SocialIcon/SocialIcon.js +1 -1
- package/build/esm/navigation/schema.js +2 -2
- package/build/esm/schema/index.js +3 -3
- package/build/esm/schema/validators/common.js +2 -2
- package/build/esm/schema/validators/index.d.ts +2 -2
- package/build/esm/schema/validators/index.js +2 -2
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
- package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -2
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +2 -2
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +2 -2
- package/build/esm/sub-blocks/BasicCard/schema.js +1 -1
- package/build/esm/sub-blocks/CardWithImage/CardWithImage.js +2 -2
- package/build/esm/sub-blocks/Content/Content.d.ts +1 -1
- package/build/esm/sub-blocks/Content/Content.js +2 -2
- package/build/esm/sub-blocks/Content/schema.js +1 -1
- package/build/esm/sub-blocks/Divider/schema.js +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js +1 -1
- package/build/esm/sub-blocks/HubspotForm/index.js +3 -3
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +2 -2
- package/build/esm/sub-blocks/LayoutItem/schema.js +1 -1
- package/build/esm/sub-blocks/MediaCard/MediaCard.js +1 -1
- package/build/esm/sub-blocks/MediaCard/schema.js +1 -1
- package/build/esm/sub-blocks/NewsCard/NewsCard.js +1 -1
- package/build/esm/sub-blocks/Partner/Partner.js +1 -1
- package/build/esm/sub-blocks/Partner/schema.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +3 -3
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +2 -2
- package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/List.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.d.ts +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +1 -1
- package/build/esm/sub-blocks/Quote/Quote.js +4 -4
- package/build/esm/sub-blocks/Quote/schema.js +1 -1
- package/build/esm/sub-blocks/TutorialCard/TutorialCard.js +2 -2
- package/build/esm/sub-blocks/TutorialCard/schema.js +1 -1
- package/build/esm/text-transform/blocks.d.ts +1 -1
- package/build/esm/text-transform/blocks.js +8 -0
- package/build/esm/text-transform/utils.js +2 -1
- package/build/esm/utils/blocks.d.ts +1 -1
- package/build/esm/utils/scroll.js +1 -0
- package/build/esm/utils/url.js +1 -1
- package/package.json +4 -3
- package/server/models/constructor-items/blocks.d.ts +2 -2
- package/server/models/constructor-items/sub-blocks.d.ts +2 -2
- package/server/models/constructor.d.ts +1 -1
- package/server/models/navigation.d.ts +1 -1
- package/server/text-transform/blocks.d.ts +1 -1
- package/server/text-transform/blocks.js +8 -0
- package/server/text-transform/utils.js +2 -1
- package/server/utils/blocks.d.ts +1 -1
- package/server/utils/scroll.js +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { block } from '../../utils';
|
|
4
|
-
import { BlockType } from '../../models';
|
|
5
|
-
import { Row, Col } from '../../grid';
|
|
6
|
-
import { BlockHeader, AnimateBlock } from '../../components';
|
|
2
|
+
import { AnimateBlock, BlockHeader } from '../../components';
|
|
7
3
|
import ButtonTabs from '../../components/ButtonTabs/ButtonTabs';
|
|
8
4
|
import { ConstructorBlocks } from '../../containers/PageConstructor/components/ConstructorBlocks';
|
|
5
|
+
import { Col, Row } from '../../grid';
|
|
6
|
+
import { BlockType } from '../../models';
|
|
7
|
+
import { block } from '../../utils';
|
|
8
|
+
import i18n from './i18n';
|
|
9
9
|
import './FilterBlock.css';
|
|
10
10
|
const b = block('filter-block');
|
|
11
11
|
const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items, colSizes, centered, animated, }) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Button, Media, RouterLink, HTML } from '../../components';
|
|
4
|
-
import { Grid, Row, Col } from '../../grid';
|
|
5
|
-
import { getImageSize, getTitleSizes, titleWithImageSizes } from './utils';
|
|
6
|
-
import { MobileContext } from '../../context/mobileContext';
|
|
7
|
-
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
2
|
+
import { Button, HTML, Media, RouterLink } from '../../components';
|
|
8
3
|
import HeaderBreadcrumbs from '../../components/HeaderBreadcrumbs/HeaderBreadcrumbs';
|
|
9
|
-
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
10
4
|
import { getMediaImage } from '../../components/Media/Image/utils';
|
|
5
|
+
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
6
|
+
import { MobileContext } from '../../context/mobileContext';
|
|
7
|
+
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
8
|
+
import { Col, Grid, Row } from '../../grid';
|
|
9
|
+
import { block, getThemedValue } from '../../utils';
|
|
10
|
+
import { getImageSize, getTitleSizes, titleWithImageSizes } from './utils';
|
|
11
11
|
import './Header.css';
|
|
12
12
|
const b = block('header-block');
|
|
13
13
|
const Background = ({ background, isMobile }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VideoProps, withTheme, BlockBaseProps, ButtonBlock, MediaProps, } from '../../schema/validators/common';
|
|
2
|
-
import { filteredArray } from '../../schema/validators/utils';
|
|
3
1
|
import { ImageProps } from '../../components/Image/schema';
|
|
2
|
+
import { BlockBaseProps, ButtonBlock, MediaProps, VideoProps, withTheme, } from '../../schema/validators/common';
|
|
3
|
+
import { filteredArray } from '../../schema/validators/utils';
|
|
4
4
|
export const HeaderBackgroundProps = {
|
|
5
5
|
type: 'object',
|
|
6
6
|
additionalProperties: false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { MobileContext } from '../../context/mobileContext';
|
|
4
4
|
import { SliderType } from '../../models';
|
|
5
|
-
import {
|
|
5
|
+
import { block } from '../../utils';
|
|
6
6
|
import Header from '../Header/Header';
|
|
7
|
-
import {
|
|
7
|
+
import { SliderBlock } from '../index';
|
|
8
8
|
import './HeaderSlider.css';
|
|
9
9
|
const b = block('header-slider-block');
|
|
10
10
|
export const HeaderSliderBlock = (_a) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { block, getLinkProps } from '../../utils';
|
|
3
2
|
import { BlockHeader, Image } from '../../components';
|
|
4
3
|
import { LocationContext } from '../../context/locationContext';
|
|
4
|
+
import { block, getLinkProps } from '../../utils';
|
|
5
5
|
import './Icons.css';
|
|
6
6
|
const b = block('icons-block');
|
|
7
7
|
const Icons = ({ title, size = 's', items }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { block, getThemedValue } from '../../utils';
|
|
3
|
-
import { Grid, Row, Col } from '../../grid';
|
|
4
2
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
3
|
+
import { Col, Grid, Row } from '../../grid';
|
|
5
4
|
import Content from '../../sub-blocks/Content/Content';
|
|
5
|
+
import { block, getThemedValue } from '../../utils';
|
|
6
6
|
import './Info.css';
|
|
7
7
|
const b = block('info-block');
|
|
8
8
|
const sizes = { md: 6, all: 12 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
+
import { BaseProps, ButtonBlock, LinkProps, ThemeProps, withTheme, } from '../../schema/validators/common';
|
|
2
3
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
|
-
import { BaseProps, LinkProps, ThemeProps, withTheme, ButtonBlock, } from '../../schema/validators/common';
|
|
4
4
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
5
5
|
const ContentProps = {
|
|
6
6
|
additionalProperties: false,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { block } from '../../utils';
|
|
4
|
-
import { Row, Col, GridColumnSize } from '../../grid';
|
|
5
|
-
import Link from '../../components/Link/Link';
|
|
6
3
|
import BlockHeader from '../../components/BlockHeader/BlockHeader';
|
|
4
|
+
import Link from '../../components/Link/Link';
|
|
5
|
+
import { Col, GridColumnSize, Row } from '../../grid';
|
|
6
|
+
import { block } from '../../utils';
|
|
7
7
|
import './LinkTable.css';
|
|
8
8
|
const b = block('LinkTable');
|
|
9
9
|
const LinkTable = ({ items, title, description, linkTheme = 'normal' }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { BlockBaseProps, BlockHeaderProps, LinkProps } from '../../schema/validators/common';
|
|
1
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
2
|
-
import { LinkProps, BlockBaseProps, BlockHeaderProps } from '../../schema/validators/common';
|
|
3
3
|
export const LinkTableBlock = {
|
|
4
4
|
'link-table-block': {
|
|
5
5
|
additionalProperties: false,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext, useState } from 'react';
|
|
2
|
-
import { getThemedValue } from '../../utils';
|
|
3
2
|
import Media from '../../components/Media/Media';
|
|
4
3
|
import MediaBase from '../../components/MediaBase/MediaBase';
|
|
5
4
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
5
|
+
import { getThemedValue } from '../../utils';
|
|
6
6
|
export const MediaBlock = (props) => {
|
|
7
7
|
const { media } = props;
|
|
8
8
|
const [play, setPlay] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { omit } from 'lodash';
|
|
2
|
-
import { BlockBaseProps, ButtonBlock, MediaProps,
|
|
2
|
+
import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection, } from '../../schema/validators/common';
|
|
3
3
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
4
4
|
export const Media = {
|
|
5
5
|
type: 'object',
|
|
@@ -10,5 +10,5 @@ interface MediaContentProps extends Refable<HTMLDivElement> {
|
|
|
10
10
|
isActiveBlock: (id: number, isMediaBlock?: boolean) => boolean;
|
|
11
11
|
showMediaContent: (id: number) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const MediaContent: React.ForwardRefExoticComponent<Pick<MediaContentProps, "title" | "
|
|
13
|
+
declare const MediaContent: React.ForwardRefExoticComponent<Pick<MediaContentProps, "title" | "description" | "items" | "ratioMediaContent" | "switching" | "isActiveBlock" | "showMediaContent"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export default MediaContent;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, { Fragment, forwardRef, useContext, useEffect, useState } from 'react';
|
|
2
|
+
import { HTML, YFMWrapper } from '../../../components/';
|
|
3
|
+
import { ThemeValueContext } from '../../../context/theme/ThemeValueContext';
|
|
3
4
|
import { Col, GridColumnSize } from '../../../grid';
|
|
4
|
-
import {
|
|
5
|
+
import { block, getThemedValue } from '../../../utils';
|
|
5
6
|
import PreviewContent from './PreviewContent';
|
|
6
7
|
import PreviewMedia from './PreviewMedia';
|
|
7
|
-
import { ThemeValueContext } from '../../../context/theme/ThemeValueContext';
|
|
8
8
|
import './MediaContent.css';
|
|
9
9
|
const b = block('preview-media-content-block');
|
|
10
10
|
const MediaContent = forwardRef((props, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import YFMWrapper from '../../../components/YFMWrapper/YFMWrapper';
|
|
3
|
+
import { block } from '../../../utils';
|
|
4
4
|
import './PreviewContent.css';
|
|
5
5
|
const b = block('preview-content-block');
|
|
6
6
|
const PreviewContent = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import Media from '../../../components/Media/Media';
|
|
3
|
+
import { block } from '../../../utils';
|
|
4
4
|
import './PreviewMedia.css';
|
|
5
5
|
const b = block('preview-media-block');
|
|
6
6
|
const PreviewMedia = (props) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { block, doSmoothScroll } from '../../utils';
|
|
2
1
|
import React, { useCallback, useContext, useEffect, useState } from 'react';
|
|
3
|
-
import { BreakpointContext } from '../../context/breakpointContext';
|
|
4
2
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
5
|
-
import MediaContent from './MediaContent/MediaContent';
|
|
6
|
-
import { Row } from '../../grid';
|
|
7
3
|
import { BREAKPOINTS } from '../../constants';
|
|
4
|
+
import { BreakpointContext } from '../../context/breakpointContext';
|
|
5
|
+
import { Row } from '../../grid';
|
|
8
6
|
import { useIntersection } from '../../hooks/useIntersection';
|
|
7
|
+
import { block, doSmoothScroll } from '../../utils';
|
|
8
|
+
import MediaContent from './MediaContent/MediaContent';
|
|
9
9
|
import './Preview.css';
|
|
10
10
|
const b = block('preview-block');
|
|
11
11
|
const SWITCHING_INTERVAL = 5 * 1000;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { filteredArray } from '../../schema/validators/utils';
|
|
2
1
|
import { AnimatableProps, BaseProps, mediaDirection, withTheme, } from '../../schema/validators/common';
|
|
2
|
+
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
import { Media } from '../Media/schema';
|
|
4
4
|
const previewRatioMediaContent = ['2-1', '1-1'];
|
|
5
5
|
const PreviewContentItem = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
3
|
-
import { BREAKPOINTS } from '../../constants';
|
|
4
|
-
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
5
|
-
import Media from '../../components/Media/Media';
|
|
6
|
-
import BlockHeader from '../../components/BlockHeader/BlockHeader';
|
|
7
2
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
8
|
-
import FullWidthBackground from '../../components/FullWidthBackground/FullWidthBackground';
|
|
9
3
|
import BalancedMasonry from '../../components/BalancedMasonry/BalancedMasonry';
|
|
4
|
+
import BlockHeader from '../../components/BlockHeader/BlockHeader';
|
|
5
|
+
import FullWidthBackground from '../../components/FullWidthBackground/FullWidthBackground';
|
|
6
|
+
import Media from '../../components/Media/Media';
|
|
7
|
+
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
8
|
+
import { BREAKPOINTS } from '../../constants';
|
|
9
|
+
import { block } from '../../utils';
|
|
10
10
|
import './PromoFeaturesBlock.css';
|
|
11
11
|
const b = block('PromoFeaturesBlock');
|
|
12
12
|
const breakpointColumns = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Foldable, HTML, ToggleArrow, YFMWrapper } from '../../components';
|
|
3
3
|
import Link from '../../components/Link/Link';
|
|
4
|
-
import {
|
|
5
|
-
import { Row, Col } from '../../grid';
|
|
4
|
+
import { Col, Row } from '../../grid';
|
|
6
5
|
import { Content } from '../../sub-blocks';
|
|
6
|
+
import { block } from '../../utils';
|
|
7
7
|
import './Questions.css';
|
|
8
8
|
const b = block('QuestionsBlock');
|
|
9
9
|
const QuestionsBlock = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import {
|
|
2
|
+
import { BlockBaseProps, LinkProps } from '../../schema/validators/common';
|
|
3
3
|
import { filteredArray } from '../../schema/validators/utils';
|
|
4
4
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
5
5
|
const QuestionsBlockContentProps = _.omit(ContentBase, ['size', 'theme']);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AnimateBlock, FullWidthBackground, HTML, Link, Media } from '../../components';
|
|
3
|
+
import { Col, Grid, Row } from '../../grid';
|
|
2
4
|
import { block } from '../../utils';
|
|
3
|
-
import { FullWidthBackground, HTML, Media, Link, AnimateBlock } from '../../components';
|
|
4
|
-
import { Grid, Row, Col } from '../../grid';
|
|
5
5
|
import './Security.css';
|
|
6
6
|
const b = block('SecurityBlock');
|
|
7
7
|
export const SecurityBlock = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
+
import { AnimatableProps, BaseProps, LinkProps, ThemeProps } from '../../schema/validators/common';
|
|
2
3
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
|
-
import { BaseProps, AnimatableProps, LinkProps, ThemeProps } from '../../schema/validators/common';
|
|
4
4
|
import { Media } from '../Media/schema';
|
|
5
5
|
export const SecurityBlock = {
|
|
6
6
|
'security-block': {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import { block, getAbsolutePath, getShareLink } from '../../utils';
|
|
4
|
-
import { DefaultEventNames } from '../../models';
|
|
1
|
+
import React, { useCallback, useContext } from 'react';
|
|
2
|
+
import { Button, Icon } from '@gravity-ui/uikit';
|
|
5
3
|
import { LocationContext } from '../../context/locationContext';
|
|
6
|
-
import i18n from './i18n';
|
|
7
4
|
import { useAnalytics } from '../../hooks';
|
|
8
5
|
import { Facebook } from '../../icons/Facebook';
|
|
9
|
-
import { Twitter } from '../../icons/Twitter';
|
|
10
6
|
import { Linkedin } from '../../icons/Linkedin';
|
|
11
|
-
import { Vk } from '../../icons/Vk';
|
|
12
7
|
import { Telegram } from '../../icons/Telegram';
|
|
8
|
+
import { Twitter } from '../../icons/Twitter';
|
|
9
|
+
import { Vk } from '../../icons/Vk';
|
|
10
|
+
import { DefaultEventNames } from '../../models';
|
|
11
|
+
import { block, getAbsolutePath, getShareLink } from '../../utils';
|
|
12
|
+
import i18n from './i18n';
|
|
13
13
|
import './Share.css';
|
|
14
14
|
const icons = {
|
|
15
15
|
facebook: Facebook,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
3
2
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
4
3
|
import BlockHeader from '../../components/BlockHeader/BlockHeader';
|
|
5
4
|
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
5
|
+
import { block } from '../../utils';
|
|
6
6
|
import './Simple.css';
|
|
7
7
|
const b = block('simple-block');
|
|
8
8
|
export const SimpleBlock = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnimatableProps, BlockBaseProps, ChildrenProps, TitleProps, } from '../../schema/validators/common';
|
|
2
2
|
export const SimpleBlock = {
|
|
3
3
|
'simple-block': {
|
|
4
4
|
additionalProperties: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import ToggleArrow from '../../../components/ToggleArrow/ToggleArrow';
|
|
3
|
+
import { block } from '../../../utils';
|
|
4
4
|
import './Arrow.css';
|
|
5
5
|
const b = block('slider-block-arrow');
|
|
6
6
|
const Arrow = ({ type, handleClick, className, size = 16 }) => (React.createElement("div", { className: b({ type }, className) },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Settings } from 'react-slick';
|
|
2
|
-
import { Refable, SliderProps as SliderParams,
|
|
3
|
-
import './slick.css';
|
|
2
|
+
import { ClassNameProps, Refable, SliderProps as SliderParams, WithChildren } from '../../models';
|
|
4
3
|
import './Slider.css';
|
|
4
|
+
import './slick.css';
|
|
5
5
|
export interface SliderProps extends Omit<SliderParams, 'children'>, Refable<HTMLDivElement>, ClassNameProps, Pick<Settings, 'lazyLoad'> {
|
|
6
6
|
type?: string;
|
|
7
7
|
anchorId?: string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import SlickSlider from 'react-slick';
|
|
3
2
|
import _ from 'lodash';
|
|
4
|
-
import
|
|
5
|
-
import { SliderType, } from '../../models';
|
|
6
|
-
import Arrow from './Arrow/Arrow';
|
|
7
|
-
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
3
|
+
import SlickSlider from 'react-slick';
|
|
8
4
|
import Anchor from '../../components/Anchor/Anchor';
|
|
9
|
-
import
|
|
10
|
-
import { BREAKPOINTS } from '../../constants';
|
|
5
|
+
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
11
6
|
import BlockHeader from '../../components/BlockHeader/BlockHeader';
|
|
12
|
-
import { StylesContext } from '../../context/stylesContext/StylesContext';
|
|
13
|
-
import { MobileContext } from '../../context/mobileContext';
|
|
14
7
|
import OutsideClick from '../../components/OutsideClick/OutsideClick';
|
|
8
|
+
import { BREAKPOINTS } from '../../constants';
|
|
9
|
+
import { MobileContext } from '../../context/mobileContext';
|
|
10
|
+
import { SSRContext } from '../../context/ssrContext';
|
|
11
|
+
import { StylesContext } from '../../context/stylesContext/StylesContext';
|
|
15
12
|
import useFocus from '../../hooks/useFocus';
|
|
16
|
-
import '
|
|
13
|
+
import { SliderType, } from '../../models';
|
|
14
|
+
import { block } from '../../utils';
|
|
15
|
+
import Arrow from './Arrow/Arrow';
|
|
16
|
+
import { getSliderResponsiveParams, getSlidesCountByBreakpoint, getSlidesToShowCount, getSlidesToShowWithDefaults, } from './utils';
|
|
17
17
|
import './Slider.css';
|
|
18
|
-
import
|
|
18
|
+
import './slick.css';
|
|
19
19
|
const b = block('SliderBlock');
|
|
20
20
|
const slick = block('slick-origin');
|
|
21
21
|
const DOT_WIDTH = 8;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockBaseProps,
|
|
1
|
+
import { AnimatableProps, BlockBaseProps, BlockHeaderProps, ChildrenCardsProps, sliderSizesObject, textSize, } from '../../schema/validators/common';
|
|
2
2
|
const LoadableProps = {
|
|
3
3
|
additionalProperties: false,
|
|
4
4
|
required: ['source'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
3
|
-
import { Grid, Row, Col, GridColumnSize } from '../../grid';
|
|
4
2
|
import { Table } from '../../components';
|
|
3
|
+
import { Col, Grid, GridColumnSize, Row } from '../../grid';
|
|
4
|
+
import { block } from '../../utils';
|
|
5
5
|
import './Table.css';
|
|
6
6
|
const b = block('table-block');
|
|
7
7
|
export const TableBlock = (props) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React, { Fragment, useContext, useRef, useState } from 'react';
|
|
2
|
-
import { block, getThemedValue } from '../../utils';
|
|
3
|
-
import { Row, Col, GridColumnOrderClasses } from '../../grid';
|
|
4
2
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
5
3
|
import BlockHeader from '../../components/BlockHeader/BlockHeader';
|
|
4
|
+
import ButtonTabs from '../../components/ButtonTabs/ButtonTabs';
|
|
6
5
|
import FullScreenImage from '../../components/FullscreenImage/FullscreenImage';
|
|
6
|
+
import { getMediaImage } from '../../components/Media/Image/utils';
|
|
7
7
|
import Media from '../../components/Media/Media';
|
|
8
|
+
import { getHeight } from '../../components/VideoBlock/VideoBlock';
|
|
8
9
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
9
|
-
import {
|
|
10
|
-
import ButtonTabs from '../../components/ButtonTabs/ButtonTabs';
|
|
10
|
+
import { Col, GridColumnOrderClasses, Row } from '../../grid';
|
|
11
11
|
import { Content } from '../../sub-blocks';
|
|
12
|
-
import {
|
|
12
|
+
import { block, getThemedValue } from '../../utils';
|
|
13
13
|
import './Tabs.css';
|
|
14
14
|
const b = block('tabs-block');
|
|
15
15
|
export const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered, direction = 'media-content', }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { filteredArray } from '../../schema/validators/utils';
|
|
2
|
-
import { LinkProps, withTheme, BlockBaseProps, BlockHeaderProps, MediaProps, containerSizesArray, sizeNumber, mediaDirection, } from '../../schema/validators/common';
|
|
3
|
-
import { ImageProps } from '../../components/Image/schema';
|
|
4
1
|
import _ from 'lodash';
|
|
2
|
+
import { ImageProps } from '../../components/Image/schema';
|
|
3
|
+
import { BlockBaseProps, BlockHeaderProps, LinkProps, MediaProps, containerSizesArray, mediaDirection, sizeNumber, withTheme, } from '../../schema/validators/common';
|
|
4
|
+
import { filteredArray } from '../../schema/validators/utils';
|
|
5
5
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
6
6
|
const TabsItemContentProps = _.omit(ContentBase, ['size', 'colSizes', 'centered', 'theme']);
|
|
7
7
|
export const tabsItem = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Image } from '../index';
|
|
3
2
|
import { AuthorType } from '../../models';
|
|
4
3
|
import { block } from '../../utils';
|
|
4
|
+
import { Image } from '../index';
|
|
5
5
|
import './Author.css';
|
|
6
6
|
const b = block('author');
|
|
7
7
|
const Author = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
2
|
import { Button, Icon } from '@gravity-ui/uikit';
|
|
3
|
-
import { ArrowSidebar } from '../../icons';
|
|
4
3
|
import { LocationContext } from '../../context/locationContext';
|
|
5
4
|
import { useAnalytics } from '../../hooks';
|
|
5
|
+
import { ArrowSidebar } from '../../icons';
|
|
6
6
|
import { DefaultEventNames } from '../../models';
|
|
7
7
|
export default function BackLink(props) {
|
|
8
8
|
const { history } = useContext(LocationContext);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import userEvent from '@testing-library/user-event';
|
|
4
|
-
import BackLink from '../BackLink';
|
|
5
4
|
import { LocationContext } from '../../../context/locationContext';
|
|
5
|
+
import BackLink from '../BackLink';
|
|
6
6
|
const backLinkProps = {
|
|
7
7
|
url: '#',
|
|
8
8
|
title: 'Button Title',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
|
+
import { MobileContext } from '../../context/mobileContext';
|
|
3
4
|
import { block } from '../../utils';
|
|
4
|
-
import Media from '../Media/Media';
|
|
5
5
|
import AnimateBlock from '../AnimateBlock/AnimateBlock';
|
|
6
|
-
import
|
|
6
|
+
import Media from '../Media/Media';
|
|
7
7
|
import './BackgroundMedia.css';
|
|
8
8
|
const b = block('BackgroundMedia');
|
|
9
9
|
const BackgroundMedia = (_a) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import { block } from '../../utils';
|
|
4
3
|
import { SSRContext } from '../../context/ssrContext';
|
|
4
|
+
import { block } from '../../utils';
|
|
5
5
|
import './BalancedMasonry.css';
|
|
6
6
|
const b = block('BalancedMasonry');
|
|
7
7
|
const BalancedMasonry = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Col } from '../../grid';
|
|
2
3
|
import { block } from '../../utils';
|
|
3
4
|
import Anchor from '../Anchor/Anchor';
|
|
4
|
-
import { Col } from '../../grid';
|
|
5
5
|
import './BlockBase.css';
|
|
6
6
|
const b = block('block-base');
|
|
7
7
|
const BlockBase = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BlockHeaderProps as BlockHeaderParams, ClassNameProps } from '../../models';
|
|
2
1
|
import { GridColumnSizesType } from '../../grid';
|
|
2
|
+
import { BlockHeaderProps as BlockHeaderParams, ClassNameProps } from '../../models';
|
|
3
3
|
import './BlockHeader.css';
|
|
4
4
|
export interface BlockHeaderProps extends BlockHeaderParams {
|
|
5
5
|
colSizes?: GridColumnSizesType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { block } from '../../utils';
|
|
4
|
-
import { Col } from '../../grid';
|
|
5
3
|
import { Title } from '../';
|
|
4
|
+
import { Col } from '../../grid';
|
|
5
|
+
import { block } from '../../utils';
|
|
6
6
|
import YFMWrapper from '../YFMWrapper/YFMWrapper';
|
|
7
7
|
import './BlockHeader.css';
|
|
8
8
|
const b = block('block-header');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useCallback, useContext } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { block, setUrlTld } from '../../utils';
|
|
5
|
-
import { DefaultEventNames } from '../../models';
|
|
6
|
-
import { toCommonSize, toCommonView, ICON_QA } from './utils';
|
|
3
|
+
import { Button as CommonButton, Icon, Platform, StoreBadge } from '@gravity-ui/uikit';
|
|
7
4
|
import { LocaleContext } from '../../context/localeContext/localeContext';
|
|
8
|
-
import { useMetrika } from '../../hooks/useMetrika';
|
|
9
5
|
import { useAnalytics } from '../../hooks';
|
|
6
|
+
import { useMetrika } from '../../hooks/useMetrika';
|
|
10
7
|
import { Github } from '../../icons';
|
|
8
|
+
import { DefaultEventNames } from '../../models';
|
|
9
|
+
import { block, setUrlTld } from '../../utils';
|
|
10
|
+
import { ICON_QA, toCommonSize, toCommonView } from './utils';
|
|
11
11
|
import './Button.css';
|
|
12
12
|
const b = block('button-block');
|
|
13
13
|
const Button = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import userEvent from '@testing-library/user-event';
|
|
4
|
-
import { ICON_QA } from '../utils';
|
|
5
4
|
import Button from '../Button';
|
|
5
|
+
import { ICON_QA } from '../utils';
|
|
6
6
|
const qaId = 'button-component';
|
|
7
7
|
const buttonProps = {
|
|
8
8
|
text: 'Button Text',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { HTMLAttributeAnchorTarget, ReactElement } from 'react';
|
|
2
2
|
import { ButtonPixel, CardBaseProps as CardBaseParams, ImageProps, MetrikaGoal, WithChildren } from '../../models';
|
|
3
3
|
import { AnalyticsEventsBase } from '../../models/common';
|
|
4
4
|
import './CardBase.css';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Children, Fragment } from 'react';
|
|
2
|
+
import { useAnalytics } from '../../hooks';
|
|
3
|
+
import { useMetrika } from '../../hooks/useMetrika';
|
|
4
|
+
import { DefaultEventNames } from '../../models/common';
|
|
2
5
|
import { block } from '../../utils';
|
|
3
6
|
import BackgroundImage from '../BackgroundImage/BackgroundImage';
|
|
4
7
|
import RouterLink from '../RouterLink/RouterLink';
|
|
5
|
-
import { useMetrika } from '../../hooks/useMetrika';
|
|
6
|
-
import { DefaultEventNames } from '../../models/common';
|
|
7
|
-
import { useAnalytics } from '../../hooks';
|
|
8
8
|
import './CardBase.css';
|
|
9
9
|
const b = block('card-base-block');
|
|
10
10
|
const Header = () => null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { block, getLinkProps } from '../../utils';
|
|
2
1
|
import React, { useContext } from 'react';
|
|
3
2
|
import { LocationContext } from '../../context/locationContext';
|
|
3
|
+
import { block, getLinkProps } from '../../utils';
|
|
4
4
|
import './FileLink.css';
|
|
5
5
|
const b = block('file-link');
|
|
6
6
|
const FIGMA_URL = 'https://www.figma.com';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { block } from '../../utils';
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
2
|
import useHeightCalculator from '../../hooks/useHeightCalculator';
|
|
3
|
+
import { block } from '../../utils';
|
|
4
4
|
import './Foldable.css';
|
|
5
5
|
const b = block('foldable-block');
|
|
6
6
|
const Foldable = ({ isOpened, children, className }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, Component, PropsWithChildren } from 'react';
|
|
2
2
|
import { ClassNameProps } from '../../models';
|
|
3
3
|
import './FullWidthBackground.css';
|
|
4
4
|
export interface FullWidthBackgroundProps extends ClassNameProps {
|