@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,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonSize } from '@gravity-ui/uikit';
|
|
3
|
-
import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, MapProps, PreviewItemProps, PreviewRatioMediaContent, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleProps, LegendTableMarkerType, AnchorProps, TitleBaseProps, Animatable, BlockHeaderProps, ImageDeviceProps } from './common';
|
|
4
|
-
import { ThemeSupporting } from '../../utils';
|
|
5
3
|
import { GridColumnSize, GridColumnSizesType } from '../../grid/types';
|
|
4
|
+
import { ThemeSupporting } from '../../utils';
|
|
5
|
+
import { AnchorProps, Animatable, BackgroundImageProps, BlockHeaderProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, ImageDeviceProps, Justify, LegendTableMarkerType, LinkProps, LinkTheme, MapProps, MediaDirection, MediaProps, PreviewItemProps, PreviewRatioMediaContent, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleBaseProps, TitleProps } from './common';
|
|
6
6
|
import { BannerCardProps, SubBlock, SubBlockModels } from './sub-blocks';
|
|
7
7
|
export declare enum BlockType {
|
|
8
8
|
PromoFeaturesBlock = "promo-features-block",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ClassNameProps } from '../../models';
|
|
2
2
|
import { ThemeSupporting } from '../../utils';
|
|
3
3
|
import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
|
|
4
|
-
import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageObjectProps, ImageProps, LinkProps, MediaProps, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
|
|
5
|
-
import { ContentBlockProps } from './blocks';
|
|
6
4
|
import { AnalyticsEventsBase, PixelEvent } from '../common';
|
|
5
|
+
import { ContentBlockProps } from './blocks';
|
|
6
|
+
import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageObjectProps, ImageProps, LinkProps, MediaProps, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
|
|
7
7
|
export declare enum SubBlockType {
|
|
8
8
|
Divider = "divider",
|
|
9
9
|
Quote = "quote",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Animatable,
|
|
2
|
+
import { Animatable, Block, ConstructorItem, ThemedMediaProps, WithChildren } from './';
|
|
3
3
|
export interface PageData {
|
|
4
4
|
content: PageContent;
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
|
-
import { Col, Grid, Row } from '../../../grid';
|
|
4
|
-
import OutsideClick from '../../../components/OutsideClick/OutsideClick';
|
|
5
2
|
import Control from '../../../components/Control/Control';
|
|
3
|
+
import OutsideClick from '../../../components/OutsideClick/OutsideClick';
|
|
4
|
+
import { Col, Grid, Row } from '../../../grid';
|
|
6
5
|
import { NavigationClose, NavigationOpen } from '../../../icons';
|
|
6
|
+
import { block } from '../../../utils';
|
|
7
7
|
import { ItemColumnName } from '../../constants';
|
|
8
|
-
import Navigation from '../Navigation/Navigation';
|
|
9
|
-
import MobileNavigation from '../MobileNavigation/MobileNavigation';
|
|
10
8
|
import Logo from '../Logo/Logo';
|
|
9
|
+
import MobileNavigation from '../MobileNavigation/MobileNavigation';
|
|
10
|
+
import Navigation from '../Navigation/Navigation';
|
|
11
11
|
import { NavigationListItem } from '../NavigationListItem/NavigationListItem';
|
|
12
12
|
import './Header.css';
|
|
13
13
|
const b = block('header');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import RouterLink from '../../../components/RouterLink/RouterLink';
|
|
2
|
+
import { Image } from '../../../components';
|
|
4
3
|
import { getMediaImage } from '../../../components/Media/Image/utils';
|
|
4
|
+
import RouterLink from '../../../components/RouterLink/RouterLink';
|
|
5
5
|
import { ThemeValueContext } from '../../../context/theme/ThemeValueContext';
|
|
6
|
-
import {
|
|
6
|
+
import { block, getThemedValue } from '../../../utils';
|
|
7
7
|
import './Logo.css';
|
|
8
8
|
const b = block('logo');
|
|
9
9
|
const Logo = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useCallback, useRef } from 'react';
|
|
2
2
|
import { Popup, Portal } from '@gravity-ui/uikit';
|
|
3
|
-
import { block } from '../../../utils';
|
|
4
3
|
import Foldable from '../../../components/Foldable/Foldable';
|
|
5
4
|
import { NavigationItemType } from '../../../models';
|
|
5
|
+
import { block } from '../../../utils';
|
|
6
6
|
import { ItemColumnName } from '../../constants';
|
|
7
7
|
import NavigationItem from '../NavigationItem/NavigationItem';
|
|
8
8
|
import './MobileNavigation.css';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
|
|
1
2
|
import _ from 'lodash';
|
|
2
|
-
import React, { useState, useEffect, useCallback, useContext, useRef } from 'react';
|
|
3
|
-
import { block } from '../../../utils';
|
|
4
3
|
import OverflowScroller from '../../../components/OverflowScroller/OverflowScroller';
|
|
5
4
|
import { LocationContext } from '../../../context/locationContext';
|
|
5
|
+
import { block } from '../../../utils';
|
|
6
6
|
import { ItemColumnName } from '../../constants';
|
|
7
7
|
import { NavigationListItem } from '../NavigationListItem/NavigationListItem';
|
|
8
8
|
import './Navigation.css';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
+
import { BlockIdContext } from '../../../context/blockIdContext';
|
|
3
4
|
import { NavigationItemType } from '../../../models';
|
|
4
5
|
import SocialIcon from '../SocialIcon/SocialIcon';
|
|
5
|
-
import {
|
|
6
|
+
import { GithubButton } from './components/GithubButton/GithubButton';
|
|
6
7
|
import { NavigationButton } from './components/NavigationButton/NavigationButton';
|
|
7
8
|
import { NavigationDropdown } from './components/NavigationDropdown/NavigationDropdown';
|
|
8
9
|
import { NavigationLink } from './components/NavigationLink/NavigationLink';
|
|
9
|
-
import { GithubButton } from './components/GithubButton/GithubButton';
|
|
10
10
|
const ANALYTICS_ID = 'navigation';
|
|
11
11
|
//todo: add types support form component in map
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/build/esm/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
|
-
import { block } from '../../../../../utils';
|
|
3
2
|
import { Image } from '../../../../../components';
|
|
3
|
+
import { block } from '../../../../../utils';
|
|
4
4
|
import './ContentWrapper.css';
|
|
5
5
|
const b = block('content-wrapper');
|
|
6
6
|
export const ContentWrapper = ({ text, icon }) => (React.createElement(Fragment, null,
|
package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NavigationItemProps } from '../../NavigationItem';
|
|
2
1
|
import { NavigationGithubButton } from '../../../../../models';
|
|
2
|
+
import { NavigationItemProps } from '../../NavigationItem';
|
|
3
3
|
import './GithubButton.css';
|
|
4
4
|
type NavigationGithubButtonProps = NavigationItemProps & NavigationGithubButton;
|
|
5
5
|
export declare const GithubButton: ({ text, url, className, label, size, icon, }: NavigationGithubButtonProps) => JSX.Element;
|
package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { block } from '../../../../../utils';
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
2
|
import { NavigationGithubButtonIcon } from '../../../../../models';
|
|
3
|
+
import { block } from '../../../../../utils';
|
|
4
4
|
import './GithubButton.css';
|
|
5
5
|
const b = block('github-button');
|
|
6
6
|
const DEFAULT_LABEL = 'Stars on GitHub';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { RouterLink, Button } from '../../../../../components';
|
|
2
|
+
import { Button, RouterLink } from '../../../../../components';
|
|
4
3
|
import { BlockIdContext } from '../../../../../context/blockIdContext';
|
|
4
|
+
import { block } from '../../../../../utils';
|
|
5
5
|
import './NavigationButton.css';
|
|
6
6
|
const b = block('navigation-button');
|
|
7
7
|
const ANALYTICS_ID = 'navigation';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NavigationItemProps } from '../../NavigationItem';
|
|
3
2
|
import { DropdownItemData } from '../../../../../models';
|
|
3
|
+
import { NavigationItemProps } from '../../NavigationItem';
|
|
4
4
|
import './NavigationDropdown.css';
|
|
5
5
|
type NavigationDropdownProps = NavigationItemProps & DropdownItemData;
|
|
6
6
|
export declare const NavigationDropdown: React.FC<NavigationDropdownProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ContentWrapper } from '../ContentWrapper/ContentWrapper';
|
|
4
3
|
import { ToggleArrow } from '../../../../../components';
|
|
5
|
-
import { block } from '../../../../../utils';
|
|
6
4
|
import { getMediaImage } from '../../../../../components/Media/Image/utils';
|
|
5
|
+
import { block } from '../../../../../utils';
|
|
6
|
+
import { ContentWrapper } from '../ContentWrapper/ContentWrapper';
|
|
7
7
|
import './NavigationDropdown.css';
|
|
8
8
|
const b = block('navigation-dropdown');
|
|
9
9
|
const TOGGLE_ARROW_SIZE = 12;
|
package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NavigationItemProps } from '../../NavigationItem';
|
|
3
2
|
import { NavigationLinkItem } from '../../../../../models';
|
|
3
|
+
import { NavigationItemProps } from '../../NavigationItem';
|
|
4
4
|
import './NavigationLink.css';
|
|
5
5
|
type NavigationLinkProps = NavigationItemProps & NavigationLinkItem;
|
|
6
6
|
export declare const NavigationLink: React.FC<NavigationLinkProps>;
|
package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { Fragment, useContext } from 'react';
|
|
3
|
-
import { ContentWrapper } from '../ContentWrapper/ContentWrapper';
|
|
4
|
-
import { NavigationArrow } from '../../../../../icons';
|
|
5
3
|
import { RouterLink } from '../../../../../components';
|
|
6
|
-
import { block, getLinkProps } from '../../../../../utils';
|
|
7
4
|
import { getMediaImage } from '../../../../../components/Media/Image/utils';
|
|
8
5
|
import { LocationContext } from '../../../../../context/locationContext';
|
|
6
|
+
import { NavigationArrow } from '../../../../../icons';
|
|
7
|
+
import { block, getLinkProps } from '../../../../../utils';
|
|
8
|
+
import { ContentWrapper } from '../ContentWrapper/ContentWrapper';
|
|
9
9
|
import './NavigationLink.css';
|
|
10
10
|
const b = block('navigation-link');
|
|
11
11
|
export const NavigationLink = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import { NavigationItemType } from '../../../models';
|
|
3
|
+
import { block } from '../../../utils';
|
|
4
4
|
import { getItemClickHandler } from '../../utils';
|
|
5
5
|
import NavigationDropdownItem from '../NavigationDropdownItem/NavigationDropdownItem';
|
|
6
6
|
import NavigationItem from '../NavigationItem/NavigationItem';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
1
2
|
import _ from 'lodash';
|
|
2
|
-
import React, { useRef, useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { Portal } from '@gravity-ui/uikit';
|
|
4
|
-
import { block } from '../../../utils';
|
|
5
4
|
import { OutsideClick } from '../../../components';
|
|
5
|
+
import { block } from '../../../utils';
|
|
6
6
|
import NavigationItem from '../NavigationItem/NavigationItem';
|
|
7
7
|
import './NavigationPopup.css';
|
|
8
8
|
const b = block('navigation-popup');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import { Image } from '../../../components';
|
|
4
3
|
import { getMediaImage } from '../../../components/Media/Image/utils';
|
|
4
|
+
import { block } from '../../../utils';
|
|
5
5
|
import './SocialIcon.css';
|
|
6
6
|
const b = block('social-icon');
|
|
7
7
|
const SocialIcon = ({ icon, url, className }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonProps } from '../schema/validators/common';
|
|
2
|
-
import { ImageProps, urlPattern } from '../components/Image/schema';
|
|
3
1
|
import { omit } from 'lodash';
|
|
2
|
+
import { ImageProps, urlPattern } from '../components/Image/schema';
|
|
3
|
+
import { ButtonProps } from '../schema/validators/common';
|
|
4
4
|
import { filteredArray } from '../schema/validators/utils';
|
|
5
5
|
const NavigationItemType = {
|
|
6
6
|
type: 'string',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { validators } from './validators';
|
|
2
|
-
import {
|
|
3
|
-
import { PartnerBlock, MediaCardBlock, TutorialCard, BackgroundCard, NewsCard, CardWithImage, PriceDetailedBlock, Quote, Divider, BasicCard, } from './validators/sub-blocks';
|
|
2
|
+
import { BannerBlock, BannerCard, CardLayoutBlock, CompaniesBlock, ContentLayoutBlock, ExtendedFeaturesBlock, FilterBlock, HeaderBlock, HeaderSliderBlock, IconsBlock, InfoBlock, LinkTableBlock, MapBlock, MediaBlock, PreviewBlock, PromoFeaturesBlock, QuestionsBlock, SecurityBlock, ShareBlock, SimpleBlock, SliderBlock, TableBlock, TabsBlock, } from './validators/blocks';
|
|
4
3
|
import { AnimatableProps, BackgroundProps, MenuProps, withTheme } from './validators/common';
|
|
5
|
-
import { filteredItem } from './validators/utils';
|
|
6
4
|
import { LogoProps, NavigationHeaderProps } from './validators/navigation';
|
|
5
|
+
import { BackgroundCard, BasicCard, CardWithImage, Divider, MediaCardBlock, NewsCard, PartnerBlock, PriceDetailedBlock, Quote, TutorialCard, } from './validators/sub-blocks';
|
|
6
|
+
import { filteredItem } from './validators/utils';
|
|
7
7
|
export const getBlocksCases = (blocks) => {
|
|
8
8
|
return Object.values(blocks).reduce((acc, block) => (Object.assign(Object.assign({}, acc), block)));
|
|
9
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { pixelEvents } from './pixel';
|
|
2
|
-
import { Theme } from '../../models';
|
|
3
1
|
import { ImageProps, urlPattern } from '../../components/Image/schema';
|
|
2
|
+
import { Theme } from '../../models';
|
|
4
3
|
import { AnalyticsEventSchema } from './event';
|
|
4
|
+
import { pixelEvents } from './pixel';
|
|
5
5
|
export const mediaDirection = ['media-content', 'content-media'];
|
|
6
6
|
export const textSize = ['s', 'm', 'l'];
|
|
7
7
|
export const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as blocks from './blocks';
|
|
2
2
|
import * as common from './common';
|
|
3
|
-
import * as
|
|
3
|
+
import * as navigation from './navigation';
|
|
4
4
|
import * as pixel from './pixel';
|
|
5
|
+
import * as subBlocks from './sub-blocks';
|
|
5
6
|
import * as utils from './utils';
|
|
6
|
-
import * as navigation from './navigation';
|
|
7
7
|
export declare const validators: {
|
|
8
8
|
blocks: typeof blocks;
|
|
9
9
|
common: typeof common;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as blocks from './blocks';
|
|
2
2
|
import * as common from './common';
|
|
3
|
-
import * as
|
|
3
|
+
import * as navigation from './navigation';
|
|
4
4
|
import * as pixel from './pixel';
|
|
5
|
+
import * as subBlocks from './sub-blocks';
|
|
5
6
|
import * as utils from './utils';
|
|
6
|
-
import * as navigation from './navigation';
|
|
7
7
|
export const validators = {
|
|
8
8
|
blocks,
|
|
9
9
|
common,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
+
import { BackgroundImage, CardBase } from '../../components/';
|
|
3
|
+
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
2
4
|
import { block, getThemedValue } from '../../utils';
|
|
3
|
-
import { CardBase, BackgroundImage } from '../../components/';
|
|
4
5
|
import Content from '../Content/Content';
|
|
5
|
-
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
6
6
|
import './BackgroundCard.css';
|
|
7
7
|
const b = block('background-card');
|
|
8
8
|
const BackgroundCard = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import { ImageObjectProps } from '../../components/Image/schema';
|
|
1
3
|
import { BaseProps, CardBase, withTheme } from '../../schema/validators/common';
|
|
2
4
|
import { ContentBase } from '../Content/schema';
|
|
3
|
-
import { ImageObjectProps } from '../../components/Image/schema';
|
|
4
|
-
import _ from 'lodash';
|
|
5
5
|
const BackgroundCardContentProps = _.omit(ContentBase, ['size']);
|
|
6
6
|
export const BackgroundCard = {
|
|
7
7
|
'background-card': {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Button, YFMWrapper, BackgroundImage, HTML, RouterLink } from '../../components';
|
|
2
|
+
import { BackgroundImage, Button, HTML, RouterLink, YFMWrapper } from '../../components';
|
|
4
3
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
4
|
+
import { block, getThemedValue } from '../../utils';
|
|
5
5
|
import './BannerCard.css';
|
|
6
6
|
const b = block('banner-card');
|
|
7
7
|
export const BannerCard = (props) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Content } from '../';
|
|
4
4
|
import CardBase from '../../components/CardBase/CardBase';
|
|
5
5
|
import Image from '../../components/Image/Image';
|
|
6
|
-
import { Content } from '../';
|
|
7
6
|
import { getMediaImage } from '../../components/Media/Image/utils';
|
|
7
|
+
import { block } from '../../utils';
|
|
8
8
|
import './BasicCard.css';
|
|
9
9
|
const b = block('basic-card');
|
|
10
10
|
const BasicCard = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
+
import { ImageProps } from '../../components/Image/schema';
|
|
2
3
|
import { BaseProps, CardBase } from '../../schema/validators/common';
|
|
3
4
|
import { ContentBase } from '../Content/schema';
|
|
4
|
-
import { ImageProps } from '../../components/Image/schema';
|
|
5
5
|
const BasicCardContentProps = _.omit(ContentBase, ['size', 'theme']);
|
|
6
6
|
export const BasicCard = {
|
|
7
7
|
'basic-card': {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
3
|
-
import { Image, FullscreenImage } from '../../components';
|
|
4
2
|
import { Content } from '../';
|
|
3
|
+
import { FullscreenImage, Image } from '../../components';
|
|
4
|
+
import { block } from '../../utils';
|
|
5
5
|
import './CardWithImage.css';
|
|
6
6
|
const b = block('card-with-image');
|
|
7
7
|
const CardWithImage = ({ title, description, image, disableCompress, links, border, fullScreen, className, additionalInfo, buttons, }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { Title, YFMWrapper, Button } from '../../components';
|
|
3
|
+
import { Button, Title, YFMWrapper } from '../../components';
|
|
5
4
|
import LinkBlock from '../../components/Link/Link';
|
|
6
5
|
import { Col } from '../../grid';
|
|
6
|
+
import { block } from '../../utils';
|
|
7
7
|
import './Content.css';
|
|
8
8
|
const b = block('content');
|
|
9
9
|
function getTextSize(size) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonBlock, LinkProps, TitleProps, containerSizesArray, contentSizes, contentThemes, sizeNumber, } from '../../schema/validators/common';
|
|
2
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
export const ContentBase = {
|
|
4
4
|
title: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
|
-
import loadHubspotScript from './loadHubspotScript';
|
|
3
2
|
import { useMount } from '../../hooks';
|
|
3
|
+
import loadHubspotScript from './loadHubspotScript';
|
|
4
4
|
const HubspotFormContainer = (props) => {
|
|
5
5
|
const { className, formId, formInstanceId, portalId, region, formClassName, createDOMElement, } = props;
|
|
6
6
|
const containerRef = useRef(null);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
3
|
-
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
4
2
|
import { MobileContext } from '../../context/mobileContext';
|
|
3
|
+
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
4
|
+
import { useAnalytics, useHandleHubspotEvents } from '../../hooks';
|
|
5
5
|
import { useMetrika } from '../../hooks/useMetrika';
|
|
6
6
|
import { DefaultEventNames } from '../../models';
|
|
7
|
-
import {
|
|
7
|
+
import { block } from '../../utils';
|
|
8
8
|
import HubspotFormContainer from './HubspotFormContainer';
|
|
9
9
|
import './HubspotForm.css';
|
|
10
10
|
const b = block('hubspot-form');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Content } from '..';
|
|
4
4
|
import { FullScreenMedia, Media, MetaInfo } from '../../components';
|
|
5
|
+
import { block } from '../../utils';
|
|
5
6
|
import { getLayoutItemLinks, hasFullScreen, showFullScreenIcon } from './utils';
|
|
6
|
-
import { Content } from '..';
|
|
7
7
|
import './LayoutItem.css';
|
|
8
8
|
const b = block('layout-item');
|
|
9
9
|
const LayoutItem = (_a) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { omit } from 'lodash';
|
|
2
|
+
import metaInfo from '../../components/MetaInfo/schema';
|
|
2
3
|
import { BaseProps, MediaProps } from '../../schema/validators/common';
|
|
3
4
|
import { ContentBase } from '../../sub-blocks/Content/schema';
|
|
4
|
-
import metaInfo from '../../components/MetaInfo/schema';
|
|
5
5
|
export const LayoutItem = {
|
|
6
6
|
type: 'object',
|
|
7
7
|
additionalProperties: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { CardBase, Media } from '../../components';
|
|
3
4
|
import { block } from '../../utils';
|
|
4
|
-
import { Media, CardBase } from '../../components';
|
|
5
5
|
import './MediaCard.css';
|
|
6
6
|
const b = block('MediaCard');
|
|
7
7
|
const MediaCard = (_a) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CardBase, HTML, Image } from '../../components';
|
|
2
3
|
import { block } from '../../utils';
|
|
3
|
-
import { CardBase, Image, HTML } from '../../components';
|
|
4
4
|
import './Partner.css';
|
|
5
5
|
const b = block('partner-block');
|
|
6
6
|
const Partner = ({ text, logo, url, border }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import _ from 'lodash';
|
|
2
1
|
import React, { Fragment, useCallback, useEffect, useState } from 'react';
|
|
3
|
-
import
|
|
2
|
+
import _ from 'lodash';
|
|
4
3
|
import { CardBase } from '../../../components';
|
|
5
|
-
import { Grid, Row, Col, GridColumnSize } from '../../../grid';
|
|
6
4
|
import { BREAKPOINTS } from '../../../constants';
|
|
5
|
+
import { Col, Grid, GridColumnSize, Row } from '../../../grid';
|
|
6
|
+
import { block } from '../../../utils';
|
|
7
7
|
import './CombinedPriceDetailed.css';
|
|
8
8
|
const b = block('combined-price-detailed-block');
|
|
9
9
|
const CombinedPricesGroupSize = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useEffect, useMemo } from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
|
-
import { StylesContext } from '../../../context/stylesContext';
|
|
4
2
|
import { YFMWrapper } from '../../../components';
|
|
3
|
+
import { StylesContext } from '../../../context/stylesContext';
|
|
4
|
+
import { block } from '../../../utils';
|
|
5
5
|
import './PriceDescription.css';
|
|
6
6
|
const b = block('price-description');
|
|
7
7
|
const PriceDescription = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import { PriceDetailsType, } from '../../models';
|
|
3
|
+
import CombinedPriceDetailed from './CombinedPriceDetailed/CombinedPriceDetailed';
|
|
3
4
|
import PriceDescription from './PriceDescription/PriceDescription';
|
|
4
5
|
import PriceDetails from './PriceDetails/PriceDetails';
|
|
5
|
-
import CombinedPriceDetailed from './CombinedPriceDetailed/CombinedPriceDetailed';
|
|
6
6
|
import SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed';
|
|
7
7
|
const PriceDetailed = (props) => {
|
|
8
8
|
const { priceType = PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
|
-
import { block } from '../../../../utils';
|
|
3
2
|
import { YFMWrapper } from '../../../../components';
|
|
3
|
+
import { block } from '../../../../utils';
|
|
4
4
|
import './List.css';
|
|
5
5
|
const b = block('marked-list');
|
|
6
6
|
const List = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
|
-
import { block } from '../../../../utils';
|
|
3
2
|
import { YFMWrapper } from '../../../../components';
|
|
3
|
+
import { block } from '../../../../utils';
|
|
4
4
|
import './Settings.css';
|
|
5
5
|
const b = block('settings-list');
|
|
6
6
|
const Settings = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PriceDetailsProps, PriceDetailsType, PriceFoldableDetailsProps, TextSize } from '../../../models';
|
|
2
2
|
import './PriceDetails.css';
|
|
3
3
|
interface PriceDetailsExtendProps extends PriceDetailsProps {
|
|
4
4
|
type: PriceDetailsType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Fragment, useCallback, useState } from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import { Foldable, ToggleArrow } from '../../../components';
|
|
4
3
|
import { PriceDetailsType, } from '../../../models';
|
|
4
|
+
import { block } from '../../../utils';
|
|
5
5
|
import List from './Details/List';
|
|
6
6
|
import Settings from './Details/Settings';
|
|
7
7
|
import './PriceDetails.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
|
-
import { block } from '../../../utils';
|
|
3
2
|
import { CardBase } from '../../../components';
|
|
3
|
+
import { block } from '../../../utils';
|
|
4
4
|
import './SeparatePriceDetailed.css';
|
|
5
5
|
const b = block('separate-price-detailed-block');
|
|
6
6
|
const SeparatePriceDetailed = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnimatableProps, BaseProps, textSize } from '../../schema/validators/common';
|
|
2
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
const PriceDetailedDetailsType = ['marked-list', 'settings'];
|
|
4
4
|
const PriceDetailedDescriptionColor = ['cornflower', 'black'];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
2
|
import { Button } from '@gravity-ui/uikit';
|
|
3
|
-
import {
|
|
4
|
-
import { AuthorType, DefaultEventNames } from '../../models';
|
|
5
|
-
import { Author, Image, HTML } from '../../components';
|
|
6
|
-
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
3
|
+
import { Author, HTML, Image } from '../../components';
|
|
7
4
|
import { getMediaImage } from '../../components/Media/Image/utils';
|
|
5
|
+
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
8
6
|
import { useAnalytics } from '../../hooks';
|
|
7
|
+
import { AuthorType, DefaultEventNames } from '../../models';
|
|
8
|
+
import { block, getThemedValue } from '../../utils';
|
|
9
9
|
import './Quote.css';
|
|
10
10
|
const b = block('quote');
|
|
11
11
|
const Quote = (props) => {
|