@gravity-ui/page-constructor 2.4.0 → 2.6.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 +14 -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.d.ts +1 -1
- package/build/cjs/hooks/useAnalytics.js +7 -4
- 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.d.ts +1 -1
- package/build/esm/hooks/useAnalytics.js +7 -4
- 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
|
@@ -4,10 +4,10 @@ exports.validators = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const blocks = tslib_1.__importStar(require("./blocks"));
|
|
6
6
|
const common = tslib_1.__importStar(require("./common"));
|
|
7
|
-
const
|
|
7
|
+
const navigation = tslib_1.__importStar(require("./navigation"));
|
|
8
8
|
const pixel = tslib_1.__importStar(require("./pixel"));
|
|
9
|
+
const subBlocks = tslib_1.__importStar(require("./sub-blocks"));
|
|
9
10
|
const utils = tslib_1.__importStar(require("./utils"));
|
|
10
|
-
const navigation = tslib_1.__importStar(require("./navigation"));
|
|
11
11
|
exports.validators = {
|
|
12
12
|
blocks,
|
|
13
13
|
common,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
5
|
const components_1 = require("../../components/");
|
|
7
|
-
const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
|
|
8
6
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
|
|
9
9
|
const b = (0, utils_1.block)('background-card');
|
|
10
10
|
const BackgroundCard = (props) => {
|
|
11
11
|
const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, } = props;
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BackgroundCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("../../schema/validators/common");
|
|
6
|
-
const schema_1 = require("../Content/schema");
|
|
7
|
-
const schema_2 = require("../../components/Image/schema");
|
|
8
5
|
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
9
|
-
const
|
|
6
|
+
const schema_1 = require("../../components/Image/schema");
|
|
7
|
+
const common_1 = require("../../schema/validators/common");
|
|
8
|
+
const schema_2 = require("../Content/schema");
|
|
9
|
+
const BackgroundCardContentProps = lodash_1.default.omit(schema_2.ContentBase, ['size']);
|
|
10
10
|
exports.BackgroundCard = {
|
|
11
11
|
'background-card': {
|
|
12
12
|
additionalProperties: false,
|
|
13
13
|
required: ['title', 'text'],
|
|
14
14
|
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.CardBase), BackgroundCardContentProps), { url: {
|
|
15
15
|
type: 'string',
|
|
16
|
-
}, background: (0, common_1.withTheme)(
|
|
16
|
+
}, background: (0, common_1.withTheme)(schema_1.ImageObjectProps), backgroundColor: {
|
|
17
17
|
type: 'string',
|
|
18
18
|
}, paddingBottom: {
|
|
19
19
|
type: 'string',
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BannerCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
7
6
|
const components_1 = require("../../components");
|
|
8
7
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
9
|
const b = (0, utils_1.block)('banner-card');
|
|
10
10
|
const BannerCard = (props) => {
|
|
11
11
|
const { title, subtitle, button: { url, text, target }, color, theme: textTheme = 'light', image, disableCompress, } = props;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const
|
|
5
|
+
const __1 = require("../");
|
|
6
6
|
const CardBase_1 = tslib_1.__importDefault(require("../../components/CardBase/CardBase"));
|
|
7
7
|
const Image_1 = tslib_1.__importDefault(require("../../components/Image/Image"));
|
|
8
|
-
const
|
|
9
|
-
const utils_2 = require("../../
|
|
10
|
-
const b = (0,
|
|
8
|
+
const utils_1 = require("../../components/Media/Image/utils");
|
|
9
|
+
const utils_2 = require("../../utils");
|
|
10
|
+
const b = (0, utils_2.block)('basic-card');
|
|
11
11
|
const BasicCard = (props) => {
|
|
12
12
|
const { title, text, icon, additionalInfo, links, buttons } = props, cardParams = tslib_1.__rest(props, ["title", "text", "icon", "additionalInfo", "links", "buttons"]);
|
|
13
|
-
const iconProps = icon && (0,
|
|
13
|
+
const iconProps = icon && (0, utils_1.getMediaImage)(icon);
|
|
14
14
|
return (react_1.default.createElement(CardBase_1.default, Object.assign({ className: b() }, cardParams),
|
|
15
15
|
react_1.default.createElement(CardBase_1.default.Content, null,
|
|
16
16
|
iconProps && react_1.default.createElement(Image_1.default, Object.assign({}, iconProps, { className: b('icon') })),
|
|
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BasicCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
|
+
const schema_1 = require("../../components/Image/schema");
|
|
6
7
|
const common_1 = require("../../schema/validators/common");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const BasicCardContentProps = lodash_1.default.omit(schema_1.ContentBase, ['size', 'theme']);
|
|
8
|
+
const schema_2 = require("../Content/schema");
|
|
9
|
+
const BasicCardContentProps = lodash_1.default.omit(schema_2.ContentBase, ['size', 'theme']);
|
|
10
10
|
exports.BasicCard = {
|
|
11
11
|
'basic-card': {
|
|
12
12
|
additionalProperties: false,
|
|
13
13
|
required: ['url'],
|
|
14
14
|
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.CardBase), BasicCardContentProps), { url: {
|
|
15
15
|
type: 'string',
|
|
16
|
-
}, icon:
|
|
16
|
+
}, icon: schema_1.ImageProps, target: {
|
|
17
17
|
type: 'string',
|
|
18
18
|
enum: ['_blank', '_parent', '_top', '_self'],
|
|
19
19
|
} }),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
|
-
const components_1 = require("../../components");
|
|
7
5
|
const __1 = require("../");
|
|
6
|
+
const components_1 = require("../../components");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
8
|
const b = (0, utils_1.block)('card-with-image');
|
|
9
9
|
const CardWithImage = ({ title, description, image, disableCompress, links, border, fullScreen, className, additionalInfo, buttons, }) => {
|
|
10
10
|
const unifiedLinks = links === null || links === void 0 ? void 0 : links.map((link) => (Object.assign(Object.assign({ theme: 'normal' }, link), { text: link.title, url: link.link })));
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
5
|
const components_1 = require("../../components");
|
|
7
6
|
const Link_1 = tslib_1.__importDefault(require("../../components/Link/Link"));
|
|
8
7
|
const grid_1 = require("../../grid");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
9
|
const b = (0, utils_1.block)('content');
|
|
10
10
|
function getTextSize(size) {
|
|
11
11
|
switch (size) {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const loadHubspotScript_1 = tslib_1.__importDefault(require("./loadHubspotScript"));
|
|
6
5
|
const hooks_1 = require("../../hooks");
|
|
6
|
+
const loadHubspotScript_1 = tslib_1.__importDefault(require("./loadHubspotScript"));
|
|
7
7
|
const HubspotFormContainer = (props) => {
|
|
8
8
|
const { className, formId, formInstanceId, portalId, region, formClassName, createDOMElement, } = props;
|
|
9
9
|
const containerRef = (0, react_1.useRef)(null);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
|
-
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
7
5
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
6
|
+
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
7
|
+
const hooks_1 = require("../../hooks");
|
|
8
8
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
9
9
|
const models_1 = require("../../models");
|
|
10
|
-
const
|
|
10
|
+
const utils_1 = require("../../utils");
|
|
11
11
|
const HubspotFormContainer_1 = tslib_1.__importDefault(require("./HubspotFormContainer"));
|
|
12
12
|
const b = (0, utils_1.block)('hubspot-form');
|
|
13
13
|
const HubspotForm = (props) => {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const
|
|
5
|
+
const __1 = require("..");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
7
8
|
const utils_2 = require("./utils");
|
|
8
|
-
const __1 = require("..");
|
|
9
9
|
const b = (0, utils_1.block)('layout-item');
|
|
10
10
|
const LayoutItem = (_a) => {
|
|
11
11
|
var _b = _a.content, { links } = _b, content = tslib_1.__rest(_b, ["links"]), { metaInfo, media, border, fullScreen, className } = _a;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LayoutItem = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const lodash_1 = require("lodash");
|
|
6
|
+
const schema_1 = tslib_1.__importDefault(require("../../components/MetaInfo/schema"));
|
|
6
7
|
const common_1 = require("../../schema/validators/common");
|
|
7
|
-
const
|
|
8
|
-
const schema_2 = tslib_1.__importDefault(require("../../components/MetaInfo/schema"));
|
|
8
|
+
const schema_2 = require("../../sub-blocks/Content/schema");
|
|
9
9
|
exports.LayoutItem = {
|
|
10
10
|
type: 'object',
|
|
11
11
|
additionalProperties: false,
|
|
12
12
|
required: ['content', 'media'],
|
|
13
|
-
properties: Object.assign(Object.assign({}, common_1.BaseProps), { media: common_1.MediaProps, content: (0, lodash_1.omit)(
|
|
13
|
+
properties: Object.assign(Object.assign({}, common_1.BaseProps), { media: common_1.MediaProps, content: (0, lodash_1.omit)(schema_2.ContentBase, ['colSize', 'size', 'centered']), metaInfo: schema_1.default, border: {
|
|
14
14
|
type: 'boolean',
|
|
15
15
|
}, fullScreen: {
|
|
16
16
|
type: 'boolean',
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
5
|
const components_1 = require("../../components");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('MediaCard');
|
|
8
8
|
const MediaCard = (_a) => {
|
|
9
9
|
var { border } = _a, mediaProps = tslib_1.__rest(_a, ["border"]);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
5
|
const components_1 = require("../../components");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('news-card');
|
|
8
8
|
const NewsCard = (props) => {
|
|
9
9
|
const { date, isoDate, title, border, url } = props;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
5
|
const components_1 = require("../../components");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('partner-block');
|
|
8
8
|
const Partner = ({ text, logo, url, border }) => {
|
|
9
9
|
const logoData = typeof logo === 'string' ? { src: logo } : logo;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PartnerBlock = void 0;
|
|
4
|
-
const common_1 = require("../../schema/validators/common");
|
|
5
4
|
const schema_1 = require("../../components/Image/schema");
|
|
5
|
+
const common_1 = require("../../schema/validators/common");
|
|
6
6
|
exports.PartnerBlock = {
|
|
7
7
|
partner: {
|
|
8
8
|
additionalProperties: false,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
5
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
7
6
|
const components_1 = require("../../../components");
|
|
8
|
-
const grid_1 = require("../../../grid");
|
|
9
7
|
const constants_1 = require("../../../constants");
|
|
8
|
+
const grid_1 = require("../../../grid");
|
|
9
|
+
const utils_1 = require("../../../utils");
|
|
10
10
|
const b = (0, utils_1.block)('combined-price-detailed-block');
|
|
11
11
|
const CombinedPricesGroupSize = {
|
|
12
12
|
[grid_1.GridColumnSize.Sm]: 1,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../../utils");
|
|
6
|
-
const stylesContext_1 = require("../../../context/stylesContext");
|
|
7
5
|
const components_1 = require("../../../components");
|
|
6
|
+
const stylesContext_1 = require("../../../context/stylesContext");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
8
|
const b = (0, utils_1.block)('price-description');
|
|
9
9
|
const PriceDescription = (props) => {
|
|
10
10
|
const { title, detailedTitle = '', description, titleSize = 'l', descriptionSize = 'm', colorTitle = 'cornflower', label, labelsDefaultText, className, } = props;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
+
const CombinedPriceDetailed_1 = tslib_1.__importDefault(require("./CombinedPriceDetailed/CombinedPriceDetailed"));
|
|
6
7
|
const PriceDescription_1 = tslib_1.__importDefault(require("./PriceDescription/PriceDescription"));
|
|
7
8
|
const PriceDetails_1 = tslib_1.__importDefault(require("./PriceDetails/PriceDetails"));
|
|
8
|
-
const CombinedPriceDetailed_1 = tslib_1.__importDefault(require("./CombinedPriceDetailed/CombinedPriceDetailed"));
|
|
9
9
|
const SeparatePriceDetailed_1 = tslib_1.__importDefault(require("./SeparatePriceDetailed/SeparatePriceDetailed"));
|
|
10
10
|
const PriceDetailed = (props) => {
|
|
11
11
|
const { priceType = models_1.PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../../../utils");
|
|
6
5
|
const components_1 = require("../../../../components");
|
|
6
|
+
const utils_1 = require("../../../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('marked-list');
|
|
8
8
|
const List = (props) => {
|
|
9
9
|
const { items = [], titleSize = 's' } = props;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../../../utils");
|
|
6
5
|
const components_1 = require("../../../../components");
|
|
6
|
+
const utils_1 = require("../../../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('settings-list');
|
|
8
8
|
const Settings = (props) => {
|
|
9
9
|
const { items = [], titleSize = 's', descriptionSize = 'm' } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PriceDetailsProps, PriceDetailsType, PriceFoldableDetailsProps, TextSize } from '../../../models';
|
|
2
2
|
interface PriceDetailsExtendProps extends PriceDetailsProps {
|
|
3
3
|
type: PriceDetailsType;
|
|
4
4
|
titleSize?: TextSize;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../../utils");
|
|
6
5
|
const components_1 = require("../../../components");
|
|
7
6
|
const models_1 = require("../../../models");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
8
|
const List_1 = tslib_1.__importDefault(require("./Details/List"));
|
|
9
9
|
const Settings_1 = tslib_1.__importDefault(require("./Details/Settings"));
|
|
10
10
|
const b = (0, utils_1.block)('price-details');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
-
const utils_1 = require("../../../utils");
|
|
6
5
|
const components_1 = require("../../../components");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('separate-price-detailed-block');
|
|
8
8
|
const SeparatePriceDetailed = (props) => {
|
|
9
9
|
const { items, border, getDescriptionComponent, getDetailsComponent } = props;
|
|
@@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
7
|
-
const models_1 = require("../../models");
|
|
8
6
|
const components_1 = require("../../components");
|
|
7
|
+
const utils_1 = require("../../components/Media/Image/utils");
|
|
9
8
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
10
|
-
const utils_2 = require("../../components/Media/Image/utils");
|
|
11
9
|
const hooks_1 = require("../../hooks");
|
|
12
|
-
const
|
|
10
|
+
const models_1 = require("../../models");
|
|
11
|
+
const utils_2 = require("../../utils");
|
|
12
|
+
const b = (0, utils_2.block)('quote');
|
|
13
13
|
const Quote = (props) => {
|
|
14
14
|
const { theme: textTheme = 'light', color, image, border = 'shadow', text, logo, author, url, buttonText, } = props;
|
|
15
15
|
const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
|
|
16
|
-
const imageThemed = (0,
|
|
17
|
-
const imageData = (0,
|
|
16
|
+
const imageThemed = (0, utils_2.getThemedValue)(image, theme);
|
|
17
|
+
const imageData = (0, utils_1.getMediaImage)(imageThemed);
|
|
18
18
|
const handleAnalytics = (0, hooks_1.useAnalytics)(models_1.DefaultEventNames.QuoteButton, url);
|
|
19
19
|
const handleButtonClick = (0, react_1.useCallback)(() => handleAnalytics(), [handleAnalytics]);
|
|
20
20
|
const renderFooter = Boolean(author || url) && (react_1.default.createElement("div", { className: b('author-wrapper') },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Quote = void 0;
|
|
4
|
-
const common_1 = require("../../schema/validators/common");
|
|
5
4
|
const schema_1 = require("../../components/Image/schema");
|
|
5
|
+
const common_1 = require("../../schema/validators/common");
|
|
6
6
|
exports.Quote = {
|
|
7
7
|
quote: {
|
|
8
8
|
additionalProperties: false,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
|
-
const CardBase_1 = tslib_1.__importDefault(require("../../components/CardBase/CardBase"));
|
|
7
5
|
const components_1 = require("../../components/");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
6
|
+
const CardBase_1 = tslib_1.__importDefault(require("../../components/CardBase/CardBase"));
|
|
7
|
+
const utils_1 = require("../../components/Media/Image/utils");
|
|
8
|
+
const utils_2 = require("../../utils");
|
|
9
|
+
const b = (0, utils_2.block)('tutorial-card');
|
|
10
10
|
function iconElement(icon, title) {
|
|
11
|
-
const image = (0,
|
|
11
|
+
const image = (0, utils_1.getMediaImage)(icon !== null && icon !== void 0 ? icon : {});
|
|
12
12
|
return react_1.default.createElement(components_1.Image, Object.assign({}, image, { alt: image.alt || title, className: b('icon') }));
|
|
13
13
|
}
|
|
14
14
|
const TutorialCard = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TutorialCard = void 0;
|
|
4
|
-
const common_1 = require("../../schema/validators/common");
|
|
5
4
|
const schema_1 = require("../../components/Image/schema");
|
|
5
|
+
const common_1 = require("../../schema/validators/common");
|
|
6
6
|
exports.TutorialCard = {
|
|
7
7
|
'tutorial-card': {
|
|
8
8
|
additionalProperties: false,
|
|
@@ -47,6 +47,7 @@ const parseItemsTitle = (transformer, items) => items.map((_a) => {
|
|
|
47
47
|
});
|
|
48
48
|
function parsePriceDetailedBlock(transformer, block) {
|
|
49
49
|
const { priceType } = block;
|
|
50
|
+
/* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */
|
|
50
51
|
block.items = block.items.map((item) => {
|
|
51
52
|
const { description, items: details = [] } = item;
|
|
52
53
|
if (priceType === 'marked-list') {
|
|
@@ -64,23 +65,27 @@ function parsePriceDetailedBlock(transformer, block) {
|
|
|
64
65
|
item.description = transformer(description);
|
|
65
66
|
return item;
|
|
66
67
|
});
|
|
68
|
+
/* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */
|
|
67
69
|
return block;
|
|
68
70
|
}
|
|
69
71
|
const parseContentLayout = (transformer, content) => {
|
|
70
72
|
if (content) {
|
|
71
73
|
const { text, additionalInfo } = content;
|
|
74
|
+
/* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */
|
|
72
75
|
if (text) {
|
|
73
76
|
content.text = transformer(text);
|
|
74
77
|
}
|
|
75
78
|
if (additionalInfo) {
|
|
76
79
|
content.additionalInfo = transformer(additionalInfo);
|
|
77
80
|
}
|
|
81
|
+
/* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */
|
|
78
82
|
}
|
|
79
83
|
return content;
|
|
80
84
|
};
|
|
81
85
|
function parseContentLayoutTitle(transformer, content) {
|
|
82
86
|
if (content === null || content === void 0 ? void 0 : content.title) {
|
|
83
87
|
const { title } = content;
|
|
88
|
+
// eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign
|
|
84
89
|
content.title = title && parseTitle(transformer, title);
|
|
85
90
|
}
|
|
86
91
|
return content;
|
|
@@ -356,6 +361,7 @@ const config = {
|
|
|
356
361
|
function addRandomOrder(block) {
|
|
357
362
|
if (block) {
|
|
358
363
|
if ('randomOrder' in block && block.randomOrder && 'children' in block && block.children) {
|
|
364
|
+
// eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign
|
|
359
365
|
block.children = lodash_1.default.shuffle(block.children);
|
|
360
366
|
}
|
|
361
367
|
}
|
|
@@ -370,6 +376,7 @@ function transformBlock(lang, blocksConfig, block) {
|
|
|
370
376
|
const transformer = transformerRaw.bind(null, lang);
|
|
371
377
|
if (fields) {
|
|
372
378
|
fields.forEach((field) => {
|
|
379
|
+
/* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */
|
|
373
380
|
if (block[field]) {
|
|
374
381
|
if (parser) {
|
|
375
382
|
block[field] = parser(transformer, block[field]);
|
|
@@ -378,6 +385,7 @@ function transformBlock(lang, blocksConfig, block) {
|
|
|
378
385
|
block[field] = transformer(block[field]);
|
|
379
386
|
}
|
|
380
387
|
}
|
|
388
|
+
/* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */
|
|
381
389
|
});
|
|
382
390
|
}
|
|
383
391
|
else if (parser) {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.typografEntity = exports.fullTransform = exports.transformMarkdown = exports.typografToText = exports.typografToHTML = exports.sanitizeHtml = exports.typograf = exports.sanitizeStripOptions = exports.typografConfig = exports.DEFAULT_ALLOWED_TAGS = exports.TransformType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const typograf_1 = tslib_1.__importDefault(require("typograf"));
|
|
6
5
|
const sanitize_html_1 = tslib_1.__importDefault(require("sanitize-html"));
|
|
6
|
+
const typograf_1 = tslib_1.__importDefault(require("typograf"));
|
|
7
7
|
const transform_1 = tslib_1.__importDefault(require("@doc-tools/transform"));
|
|
8
8
|
const configure_1 = require("../utils/configure");
|
|
9
9
|
var TransformType;
|
|
@@ -107,6 +107,7 @@ function typografEntity({ entity, fields, lang = configure_1.Lang.Ru, transformT
|
|
|
107
107
|
const transformer = transformTypeMap[transformType];
|
|
108
108
|
fields.forEach((fieldName) => {
|
|
109
109
|
if (entity[fieldName]) {
|
|
110
|
+
// eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign
|
|
110
111
|
entity[fieldName] = transformer(entity[fieldName], lang);
|
|
111
112
|
}
|
|
112
113
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CustomConfig, PCShareSocialNetwork, TextSize } from '../models';
|
|
1
2
|
import { ConstructorBlock } from '../models/constructor';
|
|
2
|
-
import { TextSize, CustomConfig, PCShareSocialNetwork } from '../models';
|
|
3
3
|
export declare function getHeaderTag(size: TextSize): "h1" | "h2" | "h4" | "h5";
|
|
4
4
|
export declare function getBlockKey(block: ConstructorBlock, index: number): string;
|
|
5
5
|
export declare const getCustomBlockTypes: ({ blocks, headers }?: CustomConfig) => string[];
|
|
@@ -22,6 +22,7 @@ function doSmoothScroll(element, startPosition, scrollOptions) {
|
|
|
22
22
|
exports.doSmoothScroll = doSmoothScroll;
|
|
23
23
|
function getChangeScrollFunction(direction, isReverse) {
|
|
24
24
|
return (element, scrollPosition, startPosition) => {
|
|
25
|
+
// eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign
|
|
25
26
|
element[direction] = isReverse
|
|
26
27
|
? startPosition - scrollPosition
|
|
27
28
|
: startPosition + scrollPosition;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { block } from '../../utils';
|
|
4
3
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
5
4
|
import { BannerCard } from '../../sub-blocks';
|
|
5
|
+
import { block } from '../../utils';
|
|
6
6
|
import './Banner.css';
|
|
7
7
|
const b = block('banner-block');
|
|
8
8
|
export const BannerBlock = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseProps,
|
|
1
|
+
import { AnimatableProps, BaseProps, ButtonBlock, ThemeProps, withTheme, } from '../../schema/validators/common';
|
|
2
2
|
export const BannerCardProps = {
|
|
3
3
|
additionalProperties: false,
|
|
4
4
|
required: ['title', 'button'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AnimateBlock, BlockHeader } from '../../components';
|
|
3
3
|
import { Col, Row } from '../../grid';
|
|
4
|
-
import {
|
|
4
|
+
import { block } from '../../utils';
|
|
5
5
|
import './CardLayout.css';
|
|
6
6
|
const DEFAULT_SIZES = {
|
|
7
7
|
all: 12,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimatableProps,
|
|
1
|
+
import { AnimatableProps, BlockBaseProps, BlockHeaderProps, ChildrenCardsProps, containerSizesObject, } from '../../schema/validators/common';
|
|
2
2
|
export const CardLayoutProps = {
|
|
3
3
|
additionalProperties: false,
|
|
4
4
|
required: ['title'],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Image } from '../../components';
|
|
3
3
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
4
4
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
5
|
-
import {
|
|
5
|
+
import { block, getThemedValue } from '../../utils';
|
|
6
6
|
import './Companies.css';
|
|
7
7
|
const b = block('companies-block');
|
|
8
8
|
export const CompaniesBlock = ({ title, images, animated }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { block } from '../../utils';
|
|
3
|
-
import { Content } from '../../sub-blocks';
|
|
4
2
|
import { BackgroundImage, FileLink } from '../../components';
|
|
5
|
-
import { Col } from '../../grid';
|
|
6
3
|
import { MobileContext } from '../../context/mobileContext';
|
|
4
|
+
import { Col } from '../../grid';
|
|
5
|
+
import { Content } from '../../sub-blocks';
|
|
6
|
+
import { block } from '../../utils';
|
|
7
7
|
import './ContentLayout.css';
|
|
8
8
|
const b = block('content-layout-block');
|
|
9
9
|
function getFileTextSize(size) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContentBlock } from '../../sub-blocks/Content/schema';
|
|
2
|
-
import { filteredArray } from '../../schema/validators/utils';
|
|
3
|
-
import { contentSizes, contentTextWidth, contentThemes, FileLinkProps, BlockBaseProps, } from '../../schema/validators/common';
|
|
4
1
|
import { ImageObjectProps } from '../../components/Image/schema';
|
|
2
|
+
import { BlockBaseProps, FileLinkProps, contentSizes, contentTextWidth, contentThemes, } from '../../schema/validators/common';
|
|
3
|
+
import { filteredArray } from '../../schema/validators/utils';
|
|
4
|
+
import { ContentBlock } from '../../sub-blocks/Content/schema';
|
|
5
5
|
export const ContentLayoutBlock = {
|
|
6
6
|
'content-layout-block': {
|
|
7
7
|
additionalProperties: false,
|