@gravity-ui/page-constructor 6.1.0 → 6.2.0-beta.1
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/build/cjs/blocks/Banner/Banner.js +2 -2
- package/build/cjs/blocks/Banner/Banner.js.map +1 -1
- package/build/cjs/blocks/Banner/schema.js +20 -8
- package/build/cjs/blocks/Banner/schema.js.map +1 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -2
- package/build/cjs/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/cjs/blocks/CardLayout/schema.js +19 -4
- package/build/cjs/blocks/CardLayout/schema.js.map +1 -1
- package/build/cjs/blocks/Companies/Companies.js +1 -1
- package/build/cjs/blocks/Companies/Companies.js.map +1 -1
- package/build/cjs/blocks/Companies/schema.js +10 -4
- package/build/cjs/blocks/Companies/schema.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -1
- package/build/cjs/blocks/ContentLayout/ContentLayout.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/schema.js +7 -2
- package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/schema.js +7 -1
- package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/cjs/blocks/FilterBlock/schema.js +13 -3
- package/build/cjs/blocks/FilterBlock/schema.js.map +1 -1
- package/build/cjs/blocks/Form/Form.js +3 -4
- package/build/cjs/blocks/Form/Form.js.map +1 -1
- package/build/cjs/blocks/Form/schema.js +14 -6
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/Header.js +8 -5
- package/build/cjs/blocks/Header/Header.js.map +1 -1
- package/build/cjs/blocks/Header/schema.js +9 -2
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +2 -3
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.js +6 -2
- package/build/cjs/blocks/HeaderSlider/schema.js.map +1 -1
- package/build/cjs/blocks/Icons/Icons.js +2 -2
- package/build/cjs/blocks/Icons/Icons.js.map +1 -1
- package/build/cjs/blocks/Icons/schema.js +17 -6
- package/build/cjs/blocks/Icons/schema.js.map +1 -1
- package/build/cjs/blocks/Info/Info.js +8 -4
- package/build/cjs/blocks/Info/Info.js.map +1 -1
- package/build/cjs/blocks/Info/schema.js +14 -4
- package/build/cjs/blocks/Info/schema.js.map +1 -1
- package/build/cjs/blocks/Map/Map.js +2 -3
- package/build/cjs/blocks/Map/Map.js.map +1 -1
- package/build/cjs/blocks/Map/schema.js +4 -1
- package/build/cjs/blocks/Map/schema.js.map +1 -1
- package/build/cjs/blocks/Media/Media.js +1 -1
- package/build/cjs/blocks/Media/Media.js.map +1 -1
- package/build/cjs/blocks/Media/schema.js +24 -9
- package/build/cjs/blocks/Media/schema.js.map +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +8 -2
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js.map +1 -1
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +1 -1
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/cjs/blocks/Questions/schema.js +6 -2
- package/build/cjs/blocks/Questions/schema.js.map +1 -1
- package/build/cjs/blocks/Share/schema.js +7 -3
- package/build/cjs/blocks/Share/schema.js.map +1 -1
- package/build/cjs/blocks/Slider/Slider.js +15 -14
- package/build/cjs/blocks/Slider/Slider.js.map +1 -1
- package/build/cjs/blocks/Slider/schema.js +6 -1
- package/build/cjs/blocks/Slider/schema.js.map +1 -1
- package/build/cjs/blocks/Slider/utils.js +8 -5
- package/build/cjs/blocks/Slider/utils.js.map +1 -1
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.js +1 -1
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.js.map +1 -1
- package/build/cjs/blocks/SliderNew/Slider.js +5 -5
- package/build/cjs/blocks/SliderNew/Slider.js.map +1 -1
- package/build/cjs/blocks/SliderNew/schema.js +6 -1
- package/build/cjs/blocks/SliderNew/schema.js.map +1 -1
- package/build/cjs/blocks/SliderNew/useSlider.js +1 -2
- package/build/cjs/blocks/SliderNew/useSlider.js.map +1 -1
- package/build/cjs/blocks/SliderNew/utils.js +6 -2
- package/build/cjs/blocks/SliderNew/utils.js.map +1 -1
- package/build/cjs/blocks/Table/Table.js +1 -1
- package/build/cjs/blocks/Table/Table.js.map +1 -1
- package/build/cjs/blocks/Table/schema.js +22 -10
- package/build/cjs/blocks/Table/schema.js.map +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +16 -18
- package/build/cjs/blocks/Tabs/Tabs.js.map +1 -1
- package/build/cjs/blocks/Tabs/schema.js +24 -9
- package/build/cjs/blocks/Tabs/schema.js.map +1 -1
- package/build/cjs/components/Author/Author.js +1 -1
- package/build/cjs/components/Author/Author.js.map +1 -1
- package/build/cjs/components/Author/schema.js +5 -1
- package/build/cjs/components/Author/schema.js.map +1 -1
- package/build/cjs/components/BackLink/BackLink.js +1 -1
- package/build/cjs/components/BackLink/BackLink.js.map +1 -1
- package/build/cjs/components/BackgroundImage/BackgroundImage.js +1 -1
- package/build/cjs/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/build/cjs/components/BackgroundMedia/BackgroundMedia.js +4 -4
- package/build/cjs/components/BackgroundMedia/BackgroundMedia.js.map +1 -1
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js.map +1 -1
- package/build/cjs/components/Button/Button.js +9 -5
- package/build/cjs/components/Button/Button.js.map +1 -1
- package/build/cjs/components/Button/utils.js +2 -2
- package/build/cjs/components/Button/utils.js.map +1 -1
- package/build/cjs/components/Buttons/Buttons.js +4 -1
- package/build/cjs/components/Buttons/Buttons.js.map +1 -1
- package/build/cjs/components/CardBase/CardBase.js +6 -2
- package/build/cjs/components/CardBase/CardBase.js.map +1 -1
- package/build/cjs/components/ContentList/ContentList.js +1 -1
- package/build/cjs/components/ContentList/ContentList.js.map +1 -1
- package/build/cjs/components/ContentList/ContentListItemIcon.js +1 -1
- package/build/cjs/components/ContentList/ContentListItemIcon.js.map +1 -1
- package/build/cjs/components/DefaultVideo/DefaultVideo.js +3 -4
- package/build/cjs/components/DefaultVideo/DefaultVideo.js.map +1 -1
- package/build/cjs/components/FileLink/FileLink.js +2 -2
- package/build/cjs/components/FileLink/FileLink.js.map +1 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js +12 -17
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js.map +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js.map +1 -1
- package/build/cjs/components/IconWrapper/IconWrapper.js +2 -2
- package/build/cjs/components/IconWrapper/IconWrapper.js.map +1 -1
- package/build/cjs/components/Image/schema.js +40 -12
- package/build/cjs/components/Image/schema.js.map +1 -1
- package/build/cjs/components/ImageBase/ImageBase.js +3 -4
- package/build/cjs/components/ImageBase/ImageBase.js.map +1 -1
- package/build/cjs/components/InnerForm/InnerForm.js +5 -5
- package/build/cjs/components/InnerForm/InnerForm.js.map +1 -1
- package/build/cjs/components/Link/Link.js +1 -1
- package/build/cjs/components/Link/Link.js.map +1 -1
- package/build/cjs/components/Links/Links.js +4 -1
- package/build/cjs/components/Links/Links.js.map +1 -1
- package/build/cjs/components/Map/Map.js +2 -2
- package/build/cjs/components/Map/Map.js.map +1 -1
- package/build/cjs/components/Map/YMap/YMap.js +6 -5
- package/build/cjs/components/Map/YMap/YMap.js.map +1 -1
- package/build/cjs/components/Map/YMap/YandexMap.js +1 -2
- package/build/cjs/components/Map/YMap/YandexMap.js.map +1 -1
- package/build/cjs/components/Map/YMap/YandexMapApiLoader.js +2 -1
- package/build/cjs/components/Map/YMap/YandexMapApiLoader.js.map +1 -1
- package/build/cjs/components/Media/FullscreenVideo/FullscreenVideo.js +1 -1
- package/build/cjs/components/Media/FullscreenVideo/FullscreenVideo.js.map +1 -1
- package/build/cjs/components/Media/Image/Image.js +3 -3
- package/build/cjs/components/Media/Image/Image.js.map +1 -1
- package/build/cjs/components/Media/Media.js +13 -5
- package/build/cjs/components/Media/Media.js.map +1 -1
- package/build/cjs/components/MediaBase/MediaBase.js +3 -3
- package/build/cjs/components/MediaBase/MediaBase.js.map +1 -1
- package/build/cjs/components/MediaBase/MediaBaseContent.js +1 -1
- package/build/cjs/components/MediaBase/MediaBaseContent.js.map +1 -1
- package/build/cjs/components/OutsideClick/OutsideClick.js +9 -12
- package/build/cjs/components/OutsideClick/OutsideClick.js.map +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +46 -49
- package/build/cjs/components/OverflowScroller/OverflowScroller.js.map +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +10 -12
- package/build/cjs/components/ReactPlayer/ReactPlayer.js.map +1 -1
- package/build/cjs/components/ReactPlayer/utils.js +1 -2
- package/build/cjs/components/ReactPlayer/utils.js.map +1 -1
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/components/Title/Title.js.map +1 -1
- package/build/cjs/components/Title/TitleItem.js +1 -1
- package/build/cjs/components/Title/TitleItem.js.map +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +5 -2
- package/build/cjs/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js +3 -3
- package/build/cjs/components/YandexForm/YandexForm.js.map +1 -1
- package/build/cjs/components/YandexForm/schema.js +7 -3
- package/build/cjs/components/YandexForm/schema.js.map +1 -1
- package/build/cjs/containers/Loadable/Loadable.js +3 -3
- package/build/cjs/containers/Loadable/Loadable.js.map +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +14 -7
- package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
- package/build/cjs/containers/PageConstructor/Provider.js +1 -1
- package/build/cjs/containers/PageConstructor/Provider.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
- package/build/cjs/context/theme/withTheme.js +7 -9
- package/build/cjs/context/theme/withTheme.js.map +1 -1
- package/build/cjs/customization/BlockDecoration.js +3 -5
- package/build/cjs/customization/BlockDecoration.js.map +1 -1
- package/build/cjs/editor/components/AddBlock/AddBlock.js +6 -8
- package/build/cjs/editor/components/AddBlock/AddBlock.js.map +1 -1
- package/build/cjs/editor/components/BlockForm/BlockForm.js +9 -4
- package/build/cjs/editor/components/BlockForm/BlockForm.js.map +1 -1
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +4 -4
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js.map +1 -1
- package/build/cjs/editor/components/EditBlock/EditBlock.js +2 -2
- package/build/cjs/editor/components/EditBlock/EditBlock.js.map +1 -1
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +2 -5
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/build/cjs/editor/components/Layout/Layout.js +3 -3
- package/build/cjs/editor/components/Layout/Layout.js.map +1 -1
- package/build/cjs/editor/components/PageSettings/PageSettings.js +2 -2
- package/build/cjs/editor/components/PageSettings/PageSettings.js.map +1 -1
- package/build/cjs/editor/containers/Editor/Editor.js +1 -1
- package/build/cjs/editor/containers/Editor/Editor.js.map +1 -1
- package/build/cjs/editor/containers/Editor/hooks/useCode.js +2 -4
- package/build/cjs/editor/containers/Editor/hooks/useCode.js.map +1 -1
- package/build/cjs/editor/containers/Editor/hooks/useEditorState.js +10 -7
- package/build/cjs/editor/containers/Editor/hooks/useEditorState.js.map +1 -1
- package/build/cjs/editor/containers/Form/Form.js +5 -2
- package/build/cjs/editor/containers/Form/Form.js.map +1 -1
- package/build/cjs/editor/data/index.js +4 -1
- package/build/cjs/editor/data/index.js.map +1 -1
- package/build/cjs/editor/data/previews/default-preview.js +1 -1
- package/build/cjs/editor/data/previews/default-preview.js.map +1 -1
- package/build/cjs/editor/data/previews/header-block.js +1 -1
- package/build/cjs/editor/data/previews/header-block.js.map +1 -1
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +15 -13
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js.map +1 -1
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +8 -10
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js.map +1 -1
- package/build/cjs/editor/dynamic-forms-custom/parser/index.js +150 -120
- package/build/cjs/editor/dynamic-forms-custom/parser/index.js.map +1 -1
- package/build/cjs/editor/dynamic-forms-custom/parser/views.js +2 -4
- package/build/cjs/editor/dynamic-forms-custom/parser/views.js.map +1 -1
- package/build/cjs/editor/icons/Tablet.js +1 -1
- package/build/cjs/editor/icons/Tablet.js.map +1 -1
- package/build/cjs/editor/store/main/index.js +7 -4
- package/build/cjs/editor/store/main/index.js.map +1 -1
- package/build/cjs/editor/store/main/reducer.js +17 -3
- package/build/cjs/editor/store/main/reducer.js.map +1 -1
- package/build/cjs/editor/store/main/utils.js +1 -1
- package/build/cjs/editor/store/main/utils.js.map +1 -1
- package/build/cjs/editor/store/settings/reducer.js +16 -4
- package/build/cjs/editor/store/settings/reducer.js.map +1 -1
- package/build/cjs/editor/utils/code.js +4 -2
- package/build/cjs/editor/utils/code.js.map +1 -1
- package/build/cjs/editor/utils/index.js +7 -1
- package/build/cjs/editor/utils/index.js.map +1 -1
- package/build/cjs/editor/widget/index.js +8 -8
- package/build/cjs/editor/widget/index.js.map +1 -1
- package/build/cjs/grid/Col/Col.js +1 -1
- package/build/cjs/grid/Col/Col.js.map +1 -1
- package/build/cjs/hooks/useAnalytics.js +4 -1
- package/build/cjs/hooks/useAnalytics.js.map +1 -1
- package/build/cjs/icons/BrandIconDark.js +1 -1
- package/build/cjs/icons/BrandIconDark.js.map +1 -1
- package/build/cjs/icons/BrandIconLight.js +1 -1
- package/build/cjs/icons/BrandIconLight.js.map +1 -1
- package/build/cjs/icons/BrandName.js +1 -1
- package/build/cjs/icons/BrandName.js.map +1 -1
- package/build/cjs/icons/Chevron.js +1 -1
- package/build/cjs/icons/Chevron.js.map +1 -1
- package/build/cjs/icons/Facebook.js +1 -1
- package/build/cjs/icons/Facebook.js.map +1 -1
- package/build/cjs/icons/Github.js +1 -1
- package/build/cjs/icons/Github.js.map +1 -1
- package/build/cjs/icons/Linkedin.js +1 -1
- package/build/cjs/icons/Linkedin.js.map +1 -1
- package/build/cjs/icons/NavigationArrow.js +1 -1
- package/build/cjs/icons/NavigationArrow.js.map +1 -1
- package/build/cjs/icons/NavigationChevron.js +1 -1
- package/build/cjs/icons/NavigationChevron.js.map +1 -1
- package/build/cjs/icons/Telegram.js +1 -1
- package/build/cjs/icons/Telegram.js.map +1 -1
- package/build/cjs/icons/Twitter.js +1 -1
- package/build/cjs/icons/Twitter.js.map +1 -1
- package/build/cjs/icons/Vk.js +1 -1
- package/build/cjs/icons/Vk.js.map +1 -1
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +1 -1
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
- package/build/cjs/navigation/components/Logo/Logo.js +4 -5
- package/build/cjs/navigation/components/Logo/Logo.js.map +1 -1
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +2 -3
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +7 -5
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +2 -3
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +2 -3
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +4 -4
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js.map +1 -1
- package/build/cjs/navigation/components/NavigationList/NavigationList.js +1 -4
- package/build/cjs/navigation/components/NavigationList/NavigationList.js.map +1 -1
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js +2 -3
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js.map +1 -1
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js +1 -1
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js.map +1 -1
- package/build/cjs/navigation/components/Standalone/index.js +1 -1
- package/build/cjs/navigation/components/Standalone/index.js.map +1 -1
- package/build/cjs/navigation/hooks/useActiveNavItem.js +1 -1
- package/build/cjs/navigation/hooks/useActiveNavItem.js.map +1 -1
- package/build/cjs/navigation/schema.js +19 -6
- package/build/cjs/navigation/schema.js.map +1 -1
- package/build/cjs/navigation/utils.js +1 -1
- package/build/cjs/navigation/utils.js.map +1 -1
- package/build/cjs/schema/constants.js +33 -2
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/index.js +23 -6
- package/build/cjs/schema/index.js.map +1 -1
- package/build/cjs/schema/validators/common.js +77 -31
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/schema/validators/utils.js +9 -2
- package/build/cjs/schema/validators/utils.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +23 -8
- package/build/cjs/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +1 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +2 -2
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js +17 -6
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/Content.js +1 -1
- package/build/cjs/sub-blocks/Content/Content.js.map +1 -1
- package/build/cjs/sub-blocks/Content/schema.js +10 -3
- package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Divider/schema.js +6 -2
- package/build/cjs/sub-blocks/Divider/schema.js.map +1 -1
- package/build/cjs/sub-blocks/HubspotForm/index.js +3 -3
- package/build/cjs/sub-blocks/HubspotForm/index.js.map +1 -1
- package/build/cjs/sub-blocks/HubspotForm/loadHubspotScript.js +1 -2
- package/build/cjs/sub-blocks/HubspotForm/loadHubspotScript.js.map +1 -1
- package/build/cjs/sub-blocks/HubspotForm/schema.js +11 -5
- package/build/cjs/sub-blocks/HubspotForm/schema.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -1
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.js +17 -6
- package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +11 -9
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.js +19 -6
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/utils.js +4 -1
- package/build/cjs/sub-blocks/LayoutItem/utils.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/MediaCard.js +1 -5
- package/build/cjs/sub-blocks/MediaCard/MediaCard.js.map +1 -1
- package/build/cjs/sub-blocks/MediaCard/schema.js +12 -3
- package/build/cjs/sub-blocks/MediaCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js +1 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js.map +1 -1
- package/build/cjs/sub-blocks/PriceCard/schema.js +25 -11
- package/build/cjs/sub-blocks/PriceCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +1 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +1 -4
- package/build/cjs/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +44 -12
- package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/Quote.js +6 -3
- package/build/cjs/sub-blocks/Quote/Quote.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/schema.js +21 -8
- package/build/cjs/sub-blocks/Quote/schema.js.map +1 -1
- package/build/cjs/text-transform/common.js +10 -7
- package/build/cjs/text-transform/common.js.map +1 -1
- package/build/cjs/text-transform/config.js +26 -19
- package/build/cjs/text-transform/config.js.map +1 -1
- package/build/cjs/text-transform/filter.js +4 -1
- package/build/cjs/text-transform/filter.js.map +1 -1
- package/build/cjs/text-transform/transformers.js +1 -1
- package/build/cjs/text-transform/transformers.js.map +1 -1
- package/build/cjs/text-transform/utils.js +8 -5
- package/build/cjs/text-transform/utils.js.map +1 -1
- package/build/cjs/utils/analytics.js +2 -3
- package/build/cjs/utils/analytics.js.map +1 -1
- package/build/cjs/utils/common.js +1 -2
- package/build/cjs/utils/common.js.map +1 -1
- package/build/cjs/utils/hubspot.js +6 -7
- package/build/cjs/utils/hubspot.js.map +1 -1
- package/build/cjs/utils/microdata.js +1 -1
- package/build/cjs/utils/microdata.js.map +1 -1
- package/build/cjs/utils/url.js +10 -5
- package/build/cjs/utils/url.js.map +1 -1
- package/build/esm/blocks/Banner/Banner.js +2 -3
- package/build/esm/blocks/Banner/Banner.js.map +1 -1
- package/build/esm/blocks/Banner/schema.js +20 -8
- package/build/esm/blocks/Banner/schema.js.map +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +2 -3
- package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/esm/blocks/CardLayout/schema.js +19 -4
- package/build/esm/blocks/CardLayout/schema.js.map +1 -1
- package/build/esm/blocks/Companies/Companies.js +1 -1
- package/build/esm/blocks/Companies/Companies.js.map +1 -1
- package/build/esm/blocks/Companies/schema.js +10 -4
- package/build/esm/blocks/Companies/schema.js.map +1 -1
- package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -1
- package/build/esm/blocks/ContentLayout/ContentLayout.js.map +1 -1
- package/build/esm/blocks/ContentLayout/schema.js +7 -2
- package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +1 -1
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/schema.js +7 -1
- package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
- package/build/esm/blocks/FilterBlock/schema.js +13 -3
- package/build/esm/blocks/FilterBlock/schema.js.map +1 -1
- package/build/esm/blocks/Form/Form.js +3 -4
- package/build/esm/blocks/Form/Form.js.map +1 -1
- package/build/esm/blocks/Form/schema.js +14 -6
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/Header.js +8 -5
- package/build/esm/blocks/Header/Header.js.map +1 -1
- package/build/esm/blocks/Header/schema.js +9 -2
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js +2 -4
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.js +6 -2
- package/build/esm/blocks/HeaderSlider/schema.js.map +1 -1
- package/build/esm/blocks/Icons/Icons.js +2 -2
- package/build/esm/blocks/Icons/Icons.js.map +1 -1
- package/build/esm/blocks/Icons/schema.js +17 -6
- package/build/esm/blocks/Icons/schema.js.map +1 -1
- package/build/esm/blocks/Info/Info.js +8 -4
- package/build/esm/blocks/Info/Info.js.map +1 -1
- package/build/esm/blocks/Info/schema.js +14 -4
- package/build/esm/blocks/Info/schema.js.map +1 -1
- package/build/esm/blocks/Map/Map.js +2 -4
- package/build/esm/blocks/Map/Map.js.map +1 -1
- package/build/esm/blocks/Map/schema.js +4 -1
- package/build/esm/blocks/Map/schema.js.map +1 -1
- package/build/esm/blocks/Media/Media.js +1 -1
- package/build/esm/blocks/Media/Media.js.map +1 -1
- package/build/esm/blocks/Media/schema.js +24 -9
- package/build/esm/blocks/Media/schema.js.map +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +8 -2
- package/build/esm/blocks/PromoFeaturesBlock/schema.js.map +1 -1
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +1 -1
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/esm/blocks/Questions/schema.js +6 -2
- package/build/esm/blocks/Questions/schema.js.map +1 -1
- package/build/esm/blocks/Share/schema.js +7 -3
- package/build/esm/blocks/Share/schema.js.map +1 -1
- package/build/esm/blocks/Slider/Slider.js +15 -14
- package/build/esm/blocks/Slider/Slider.js.map +1 -1
- package/build/esm/blocks/Slider/schema.js +6 -1
- package/build/esm/blocks/Slider/schema.js.map +1 -1
- package/build/esm/blocks/Slider/utils.js +8 -5
- package/build/esm/blocks/Slider/utils.js.map +1 -1
- package/build/esm/blocks/SliderNew/Arrow/Arrow.js +1 -1
- package/build/esm/blocks/SliderNew/Arrow/Arrow.js.map +1 -1
- package/build/esm/blocks/SliderNew/Slider.js +5 -5
- package/build/esm/blocks/SliderNew/Slider.js.map +1 -1
- package/build/esm/blocks/SliderNew/schema.js +6 -1
- package/build/esm/blocks/SliderNew/schema.js.map +1 -1
- package/build/esm/blocks/SliderNew/useSlider.js +1 -3
- package/build/esm/blocks/SliderNew/useSlider.js.map +1 -1
- package/build/esm/blocks/SliderNew/utils.js +6 -2
- package/build/esm/blocks/SliderNew/utils.js.map +1 -1
- package/build/esm/blocks/Table/Table.js +1 -1
- package/build/esm/blocks/Table/Table.js.map +1 -1
- package/build/esm/blocks/Table/schema.js +22 -10
- package/build/esm/blocks/Table/schema.js.map +1 -1
- package/build/esm/blocks/Tabs/Tabs.js +16 -18
- package/build/esm/blocks/Tabs/Tabs.js.map +1 -1
- package/build/esm/blocks/Tabs/schema.js +24 -9
- package/build/esm/blocks/Tabs/schema.js.map +1 -1
- package/build/esm/components/Author/Author.js +1 -1
- package/build/esm/components/Author/Author.js.map +1 -1
- package/build/esm/components/Author/schema.js +5 -1
- package/build/esm/components/Author/schema.js.map +1 -1
- package/build/esm/components/BackLink/BackLink.js +1 -1
- package/build/esm/components/BackLink/BackLink.js.map +1 -1
- package/build/esm/components/BackgroundImage/BackgroundImage.js +1 -1
- package/build/esm/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/build/esm/components/BackgroundMedia/BackgroundMedia.js +4 -5
- package/build/esm/components/BackgroundMedia/BackgroundMedia.js.map +1 -1
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js.map +1 -1
- package/build/esm/components/Button/Button.js +9 -6
- package/build/esm/components/Button/Button.js.map +1 -1
- package/build/esm/components/Button/utils.js +2 -2
- package/build/esm/components/Button/utils.js.map +1 -1
- package/build/esm/components/Buttons/Buttons.js +4 -1
- package/build/esm/components/Buttons/Buttons.js.map +1 -1
- package/build/esm/components/CardBase/CardBase.js +6 -2
- package/build/esm/components/CardBase/CardBase.js.map +1 -1
- package/build/esm/components/ContentList/ContentList.js +1 -1
- package/build/esm/components/ContentList/ContentList.js.map +1 -1
- package/build/esm/components/ContentList/ContentListItemIcon.js +1 -1
- package/build/esm/components/ContentList/ContentListItemIcon.js.map +1 -1
- package/build/esm/components/DefaultVideo/DefaultVideo.js +3 -4
- package/build/esm/components/DefaultVideo/DefaultVideo.js.map +1 -1
- package/build/esm/components/FileLink/FileLink.js +2 -2
- package/build/esm/components/FileLink/FileLink.js.map +1 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.js +12 -17
- package/build/esm/components/FullWidthBackground/FullWidthBackground.js.map +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js.map +1 -1
- package/build/esm/components/IconWrapper/IconWrapper.js +2 -2
- package/build/esm/components/IconWrapper/IconWrapper.js.map +1 -1
- package/build/esm/components/Image/schema.js +40 -12
- package/build/esm/components/Image/schema.js.map +1 -1
- package/build/esm/components/ImageBase/ImageBase.js +3 -5
- package/build/esm/components/ImageBase/ImageBase.js.map +1 -1
- package/build/esm/components/InnerForm/InnerForm.js +5 -6
- package/build/esm/components/InnerForm/InnerForm.js.map +1 -1
- package/build/esm/components/Link/Link.js +1 -1
- package/build/esm/components/Link/Link.js.map +1 -1
- package/build/esm/components/Links/Links.js +4 -1
- package/build/esm/components/Links/Links.js.map +1 -1
- package/build/esm/components/Map/Map.js +2 -2
- package/build/esm/components/Map/Map.js.map +1 -1
- package/build/esm/components/Map/YMap/YMap.js +6 -5
- package/build/esm/components/Map/YMap/YMap.js.map +1 -1
- package/build/esm/components/Map/YMap/YandexMap.js +1 -2
- package/build/esm/components/Map/YMap/YandexMap.js.map +1 -1
- package/build/esm/components/Map/YMap/YandexMapApiLoader.js +2 -1
- package/build/esm/components/Map/YMap/YandexMapApiLoader.js.map +1 -1
- package/build/esm/components/Media/FullscreenVideo/FullscreenVideo.js +1 -1
- package/build/esm/components/Media/FullscreenVideo/FullscreenVideo.js.map +1 -1
- package/build/esm/components/Media/Image/Image.js +3 -3
- package/build/esm/components/Media/Image/Image.js.map +1 -1
- package/build/esm/components/Media/Media.js +13 -5
- package/build/esm/components/Media/Media.js.map +1 -1
- package/build/esm/components/MediaBase/MediaBase.js +3 -4
- package/build/esm/components/MediaBase/MediaBase.js.map +1 -1
- package/build/esm/components/MediaBase/MediaBaseContent.js +1 -1
- package/build/esm/components/MediaBase/MediaBaseContent.js.map +1 -1
- package/build/esm/components/OutsideClick/OutsideClick.js +9 -12
- package/build/esm/components/OutsideClick/OutsideClick.js.map +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.js +46 -49
- package/build/esm/components/OverflowScroller/OverflowScroller.js.map +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.js +10 -12
- package/build/esm/components/ReactPlayer/ReactPlayer.js.map +1 -1
- package/build/esm/components/ReactPlayer/utils.js +1 -2
- package/build/esm/components/ReactPlayer/utils.js.map +1 -1
- package/build/esm/components/Title/Title.js +2 -3
- package/build/esm/components/Title/Title.js.map +1 -1
- package/build/esm/components/Title/TitleItem.js +1 -1
- package/build/esm/components/Title/TitleItem.js.map +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +5 -2
- package/build/esm/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/esm/components/YandexForm/YandexForm.js +3 -3
- package/build/esm/components/YandexForm/YandexForm.js.map +1 -1
- package/build/esm/components/YandexForm/schema.js +7 -3
- package/build/esm/components/YandexForm/schema.js.map +1 -1
- package/build/esm/containers/Loadable/Loadable.js +3 -3
- package/build/esm/containers/Loadable/Loadable.js.map +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.js +14 -8
- package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
- package/build/esm/containers/PageConstructor/Provider.js +1 -1
- package/build/esm/containers/PageConstructor/Provider.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -3
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
- package/build/esm/context/theme/withTheme.js +7 -9
- package/build/esm/context/theme/withTheme.js.map +1 -1
- package/build/esm/customization/BlockDecoration.js +3 -6
- package/build/esm/customization/BlockDecoration.js.map +1 -1
- package/build/esm/editor/components/AddBlock/AddBlock.js +6 -8
- package/build/esm/editor/components/AddBlock/AddBlock.js.map +1 -1
- package/build/esm/editor/components/BlockForm/BlockForm.js +9 -5
- package/build/esm/editor/components/BlockForm/BlockForm.js.map +1 -1
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +4 -5
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js.map +1 -1
- package/build/esm/editor/components/EditBlock/EditBlock.js +2 -2
- package/build/esm/editor/components/EditBlock/EditBlock.js.map +1 -1
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +2 -5
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/build/esm/editor/components/Layout/Layout.js +3 -3
- package/build/esm/editor/components/Layout/Layout.js.map +1 -1
- package/build/esm/editor/components/PageSettings/PageSettings.js +2 -3
- package/build/esm/editor/components/PageSettings/PageSettings.js.map +1 -1
- package/build/esm/editor/containers/Editor/Editor.js +1 -1
- package/build/esm/editor/containers/Editor/Editor.js.map +1 -1
- package/build/esm/editor/containers/Editor/hooks/useCode.js +2 -4
- package/build/esm/editor/containers/Editor/hooks/useCode.js.map +1 -1
- package/build/esm/editor/containers/Editor/hooks/useEditorState.js +10 -8
- package/build/esm/editor/containers/Editor/hooks/useEditorState.js.map +1 -1
- package/build/esm/editor/containers/Form/Form.js +5 -2
- package/build/esm/editor/containers/Form/Form.js.map +1 -1
- package/build/esm/editor/data/index.js +4 -1
- package/build/esm/editor/data/index.js.map +1 -1
- package/build/esm/editor/data/previews/default-preview.js +1 -1
- package/build/esm/editor/data/previews/default-preview.js.map +1 -1
- package/build/esm/editor/data/previews/header-block.js +1 -1
- package/build/esm/editor/data/previews/header-block.js.map +1 -1
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +15 -13
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js.map +1 -1
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +8 -10
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js.map +1 -1
- package/build/esm/editor/dynamic-forms-custom/parser/index.js +150 -120
- package/build/esm/editor/dynamic-forms-custom/parser/index.js.map +1 -1
- package/build/esm/editor/dynamic-forms-custom/parser/views.js +2 -4
- package/build/esm/editor/dynamic-forms-custom/parser/views.js.map +1 -1
- package/build/esm/editor/icons/Tablet.js +1 -1
- package/build/esm/editor/icons/Tablet.js.map +1 -1
- package/build/esm/editor/store/main/index.js +7 -5
- package/build/esm/editor/store/main/index.js.map +1 -1
- package/build/esm/editor/store/main/reducer.js +17 -3
- package/build/esm/editor/store/main/reducer.js.map +1 -1
- package/build/esm/editor/store/main/utils.js +1 -1
- package/build/esm/editor/store/main/utils.js.map +1 -1
- package/build/esm/editor/store/settings/reducer.js +16 -4
- package/build/esm/editor/store/settings/reducer.js.map +1 -1
- package/build/esm/editor/utils/code.js +4 -2
- package/build/esm/editor/utils/code.js.map +1 -1
- package/build/esm/editor/utils/index.js +7 -1
- package/build/esm/editor/utils/index.js.map +1 -1
- package/build/esm/editor/widget/index.js +8 -8
- package/build/esm/editor/widget/index.js.map +1 -1
- package/build/esm/grid/Col/Col.js +1 -2
- package/build/esm/grid/Col/Col.js.map +1 -1
- package/build/esm/hooks/useAnalytics.js +4 -1
- package/build/esm/hooks/useAnalytics.js.map +1 -1
- package/build/esm/icons/BrandIconDark.js +1 -1
- package/build/esm/icons/BrandIconDark.js.map +1 -1
- package/build/esm/icons/BrandIconLight.js +1 -1
- package/build/esm/icons/BrandIconLight.js.map +1 -1
- package/build/esm/icons/BrandName.js +1 -1
- package/build/esm/icons/BrandName.js.map +1 -1
- package/build/esm/icons/Chevron.js +1 -1
- package/build/esm/icons/Chevron.js.map +1 -1
- package/build/esm/icons/Facebook.js +1 -1
- package/build/esm/icons/Facebook.js.map +1 -1
- package/build/esm/icons/Github.js +1 -1
- package/build/esm/icons/Github.js.map +1 -1
- package/build/esm/icons/Linkedin.js +1 -1
- package/build/esm/icons/Linkedin.js.map +1 -1
- package/build/esm/icons/NavigationArrow.js +1 -1
- package/build/esm/icons/NavigationArrow.js.map +1 -1
- package/build/esm/icons/NavigationChevron.js +1 -1
- package/build/esm/icons/NavigationChevron.js.map +1 -1
- package/build/esm/icons/Telegram.js +1 -1
- package/build/esm/icons/Telegram.js.map +1 -1
- package/build/esm/icons/Twitter.js +1 -1
- package/build/esm/icons/Twitter.js.map +1 -1
- package/build/esm/icons/Vk.js +1 -1
- package/build/esm/icons/Vk.js.map +1 -1
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +1 -1
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
- package/build/esm/navigation/components/Logo/Logo.js +4 -6
- package/build/esm/navigation/components/Logo/Logo.js.map +1 -1
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js +2 -4
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +7 -6
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js +1 -1
- package/build/esm/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +2 -3
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +2 -4
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +4 -5
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js.map +1 -1
- package/build/esm/navigation/components/NavigationList/NavigationList.js +1 -5
- package/build/esm/navigation/components/NavigationList/NavigationList.js.map +1 -1
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js +2 -4
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js.map +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.js +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.js.map +1 -1
- package/build/esm/navigation/components/Standalone/index.js +1 -1
- package/build/esm/navigation/components/Standalone/index.js.map +1 -1
- package/build/esm/navigation/hooks/useActiveNavItem.js +1 -1
- package/build/esm/navigation/hooks/useActiveNavItem.js.map +1 -1
- package/build/esm/navigation/schema.js +19 -6
- package/build/esm/navigation/schema.js.map +1 -1
- package/build/esm/navigation/utils.js +1 -1
- package/build/esm/navigation/utils.js.map +1 -1
- package/build/esm/schema/constants.js +33 -2
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/index.js +23 -6
- package/build/esm/schema/index.js.map +1 -1
- package/build/esm/schema/validators/common.js +77 -31
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/schema/validators/utils.js +9 -2
- package/build/esm/schema/validators/utils.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +1 -1
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.js +23 -8
- package/build/esm/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +1 -1
- package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +2 -3
- package/build/esm/sub-blocks/BasicCard/BasicCard.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.js +17 -6
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/Content.js +1 -1
- package/build/esm/sub-blocks/Content/Content.js.map +1 -1
- package/build/esm/sub-blocks/Content/schema.js +10 -3
- package/build/esm/sub-blocks/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/Divider/schema.js +6 -2
- package/build/esm/sub-blocks/Divider/schema.js.map +1 -1
- package/build/esm/sub-blocks/HubspotForm/index.js +3 -3
- package/build/esm/sub-blocks/HubspotForm/index.js.map +1 -1
- package/build/esm/sub-blocks/HubspotForm/loadHubspotScript.js +1 -2
- package/build/esm/sub-blocks/HubspotForm/loadHubspotScript.js.map +1 -1
- package/build/esm/sub-blocks/HubspotForm/schema.js +11 -5
- package/build/esm/sub-blocks/HubspotForm/schema.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -1
- package/build/esm/sub-blocks/ImageCard/ImageCard.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.js +17 -6
- package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +11 -10
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.js +19 -6
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/utils.js +4 -1
- package/build/esm/sub-blocks/LayoutItem/utils.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/MediaCard.js +1 -5
- package/build/esm/sub-blocks/MediaCard/MediaCard.js.map +1 -1
- package/build/esm/sub-blocks/MediaCard/schema.js +12 -3
- package/build/esm/sub-blocks/MediaCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.js +1 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.js.map +1 -1
- package/build/esm/sub-blocks/PriceCard/schema.js +25 -11
- package/build/esm/sub-blocks/PriceCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +1 -2
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +1 -5
- package/build/esm/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +44 -12
- package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
- package/build/esm/sub-blocks/Quote/Quote.js +6 -3
- package/build/esm/sub-blocks/Quote/Quote.js.map +1 -1
- package/build/esm/sub-blocks/Quote/schema.js +21 -8
- package/build/esm/sub-blocks/Quote/schema.js.map +1 -1
- package/build/esm/text-transform/common.js +10 -7
- package/build/esm/text-transform/common.js.map +1 -1
- package/build/esm/text-transform/config.js +26 -19
- package/build/esm/text-transform/config.js.map +1 -1
- package/build/esm/text-transform/filter.js +4 -1
- package/build/esm/text-transform/filter.js.map +1 -1
- package/build/esm/text-transform/transformers.js +1 -1
- package/build/esm/text-transform/transformers.js.map +1 -1
- package/build/esm/text-transform/utils.js +8 -6
- package/build/esm/text-transform/utils.js.map +1 -1
- package/build/esm/utils/analytics.js +2 -3
- package/build/esm/utils/analytics.js.map +1 -1
- package/build/esm/utils/common.js +1 -2
- package/build/esm/utils/common.js.map +1 -1
- package/build/esm/utils/hubspot.js +6 -7
- package/build/esm/utils/hubspot.js.map +1 -1
- package/build/esm/utils/microdata.js +1 -1
- package/build/esm/utils/microdata.js.map +1 -1
- package/build/esm/utils/url.js +10 -5
- package/build/esm/utils/url.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultVideo.js","sourceRoot":"../../../../src","sources":["components/DefaultVideo/DefaultVideo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,kBAAkB,EAAE,sBAAsB,EAAkB,8BAAqB;AACzF,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,EAAC,yBAAyB,EAAC,gCAA6B;AAC/D,OAAO,iBAAiB,4CAAy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Y,EACzB,eAAe,EAAE,eAAe,EAChC,KAAK,QACL,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE;oBACF,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;oBACzB,UAAU,EAAE,YAAY;iBAC3B,GACH,CACL,IACY,CACpB,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {CustomControlsType, MediaVideoControlsType, MediaVideoProps} from '../../models';\nimport {block} from '../../utils';\nimport {getVideoTypesWithPriority} from '../Media/Video/utils';\nimport CustomBarControls from '../ReactPlayer/CustomBarControls';\n\nimport './DefaultVideo.scss';\n\nconst b = block('default-video');\n\ntype DefaultVideoRefType = HTMLVideoElement | undefined;\n\ninterface DefaultVideoProps {\n video: MediaVideoProps;\n qa?: string;\n customBarControlsClassName?: string;\n className?: string;\n}\n\nexport const DefaultVideo = React.forwardRef<DefaultVideoRefType, DefaultVideoProps>(\n (props, ref) => {\n const {video, qa, customBarControlsClassName} = props;\n const {controls, customControlsOptions, muted: initiallyMuted = true} = video;\n const {\n muteButtonShown,\n positioning,\n type: customControlsType,\n } = customControlsOptions || {};\n const [isPaused, setIsPaused] = React.useState(false);\n const [isMuted, setIsMuted] = React.useState(initiallyMuted);\n const videoRef = React.useRef<HTMLVideoElement>(null);\n\n // one may not use this hook and work with `ref` variable only, but\n // in this case one should support both function type and object type,\n // according to ForwardedRef type.\n // Currently used way with extra ref and useImperativeHandle is more\n // convenient and allows us to work with object typed ref only,\n // avoiding typeof ref === 'function' statements\n React.useImperativeHandle(ref, () => {\n if (!videoRef?.current) {\n return undefined;\n }\n\n return videoRef.current;\n }, [videoRef]);\n const onPlayToggle = React.useCallback(() => {\n setIsPaused((value) => {\n if (value) {\n videoRef?.current?.play();\n } else {\n videoRef?.current?.pause();\n }\n\n return !value;\n });\n }, [videoRef]);\n const onMuteToggle = React.useCallback(() => {\n setIsMuted((value) => !value);\n }, []);\n\n const onClick = React.useCallback(() => {\n if (customControlsType === CustomControlsType.WithPlayPauseButton) {\n onPlayToggle();\n }\n }, [onPlayToggle, customControlsType]);\n\n return (\n <React.Fragment>\n <video\n disablePictureInPicture\n playsInline\n // @ts-ignore\n // eslint-disable-next-line react/no-unknown-property\n pip=\"false\"\n className={b()}\n ref={videoRef}\n preload=\"metadata\"\n muted={isMuted}\n aria-label={video.ariaLabel}\n onClick={onClick}\n >\n {getVideoTypesWithPriority(video.src).map(({src, type}, index) => (\n <source key={index} src={src} type={type} data-qa={qa} />\n ))}\n <track default kind=\"captions\" />\n </video>\n\n {controls === MediaVideoControlsType.Custom && (\n <CustomBarControls\n className={customBarControlsClassName}\n type={customControlsType}\n isPaused={isPaused}\n onPlayClick={onPlayToggle}\n muteButtonShown={muteButtonShown}\n shown\n positioning={positioning}\n mute={{\n isMuted: Boolean(isMuted),\n changeMute: onMuteToggle,\n }}\n />\n )}\n </React.Fragment>\n );\n },\n);\n\nDefaultVideo.displayName = 'DefaultVideo';\n"]}
|
|
@@ -16,7 +16,7 @@ export var FileExtension;
|
|
|
16
16
|
FileExtension["ZIP"] = "zip";
|
|
17
17
|
})(FileExtension || (FileExtension = {}));
|
|
18
18
|
export function getFileExt(name) {
|
|
19
|
-
if (name
|
|
19
|
+
if (name?.includes(FIGMA_URL)) {
|
|
20
20
|
return FileExtension.FIG;
|
|
21
21
|
}
|
|
22
22
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -49,7 +49,7 @@ const FileLink = (props) => {
|
|
|
49
49
|
const fileExt = getFileExt(href);
|
|
50
50
|
const labelTheme = (FileExtensionThemes[fileExt] || 'unknown');
|
|
51
51
|
const labelSize = LabelSizeMap[textSize];
|
|
52
|
-
return (_jsxs("div", { className: b({ ext: fileExt, type, size: getTextSize(textSize), theme }, className), children: [_jsx(Label, { className: b('file-label'), size: labelSize, theme: labelTheme, children: fileExt }), _jsx("div", { className: b('link'), children: _jsx("a",
|
|
52
|
+
return (_jsxs("div", { className: b({ ext: fileExt, type, size: getTextSize(textSize), theme }, className), children: [_jsx(Label, { className: b('file-label'), size: labelSize, theme: labelTheme, children: fileExt }), _jsx("div", { className: b('link'), children: _jsx("a", { href: href, onClick: onClick, tabIndex: tabIndex, title: urlTitle, ...getLinkProps(href, hostname), ...extraProps, children: text }) })] }));
|
|
53
53
|
};
|
|
54
54
|
export default FileLink;
|
|
55
55
|
//# sourceMappingURL=FileLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLink.js","sourceRoot":"../../../../src","sources":["components/FileLink/FileLink.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,KAAK,EAAa,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAE9D,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,6BAAoB;AAEhD,OAAO,gBAAgB,CAAC;AAExB,MAAM,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;AAE7B,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAE1C,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;AACf,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AAED,MAAM,UAAU,UAAU,CAAC,IAAY;IACnC,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"FileLink.js","sourceRoot":"../../../../src","sources":["components/FileLink/FileLink.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,KAAK,EAAa,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAE9D,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,6BAAoB;AAEhD,OA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,GAAG,CAAC,KAA6C,EAAE,EAAE;IAC/D,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IACrD,MAAM,EACF,IAAI,EACJ,IAAI,EACJ,IAAI,GAAG,UAAU,EACjB,QAAQ,GAAG,GAAG,EACd,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,GACb,GAAG,KAAK,CAAC;IACV,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAkB,CAAC;IAClD,MAAM,UAAU,GAAG,CAAC,mBAAmB,CAAC,OAAO,CAAC,IAAI,SAAS,CAAwB,CAAC;IACtF,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAEzC,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,EAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAC,EAAE,SAAS,CAAC,aAClF,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,YAChE,OAAO,GACJ,EACR,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACrB,YACI,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,QAAQ,KACX,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,KAC5B,UAAU,YAEb,IAAI,GACL,GACF,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Label, LabelProps} from '@gravity-ui/uikit';\n\nimport {LocationContext} from '../../context/locationContext';\nimport {FileLinkProps, TextSize} from '../../models';\nimport {block, getLinkProps} from '../../utils';\n\nimport './FileLink.scss';\n\nconst b = block('file-link');\n\nconst FIGMA_URL = 'https://www.figma.com';\n\nexport enum FileExtension {\n PDF = 'pdf',\n DOC = 'doc',\n XLS = 'xls',\n PPT = 'ppt',\n FIG = 'fig',\n ZIP = 'zip',\n}\n\nexport function getFileExt(name: string) {\n if (name?.includes(FIGMA_URL)) {\n return FileExtension.FIG;\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return name && name.split('.').pop()!.toLowerCase();\n}\n\nconst FileExtensionThemes = {\n [FileExtension.PDF]: 'danger',\n [FileExtension.DOC]: 'info',\n [FileExtension.XLS]: 'success',\n [FileExtension.PPT]: 'warning',\n [FileExtension.FIG]: 'normal',\n [FileExtension.ZIP]: 'unknown',\n};\n\nconst LabelSizeMap: Record<TextSize, LabelProps['size']> = {\n l: 's',\n m: 's',\n sm: 's',\n s: 'xs',\n xs: 'xs',\n};\n\nfunction getTextSize(size: TextSize) {\n if (size === 'sm') {\n return 'm';\n }\n\n return size;\n}\n\nconst FileLink = (props: React.PropsWithChildren<FileLinkProps>) => {\n const {hostname} = React.useContext(LocationContext);\n const {\n href,\n text,\n type = 'vertical',\n textSize = 'm',\n className,\n theme = 'default',\n onClick,\n tabIndex,\n urlTitle,\n extraProps,\n } = props;\n const fileExt = getFileExt(href) as FileExtension;\n const labelTheme = (FileExtensionThemes[fileExt] || 'unknown') as LabelProps['theme'];\n const labelSize = LabelSizeMap[textSize];\n\n return (\n <div className={b({ext: fileExt, type, size: getTextSize(textSize), theme}, className)}>\n <Label className={b('file-label')} size={labelSize} theme={labelTheme}>\n {fileExt}\n </Label>\n <div className={b('link')}>\n <a\n href={href}\n onClick={onClick}\n tabIndex={tabIndex}\n title={urlTitle}\n {...getLinkProps(href, hostname)}\n {...extraProps}\n >\n {text}\n </a>\n </div>\n </div>\n );\n};\n\nexport default FileLink;\n"]}
|
|
@@ -9,24 +9,19 @@ function getPadding(width) {
|
|
|
9
9
|
return width > BREAKPOINTS.sm ? 16 : 8;
|
|
10
10
|
}
|
|
11
11
|
export default class FullWidthBackground extends React.Component {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.ref
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
bg.style.left = `-${left - padding}px`;
|
|
24
|
-
}
|
|
25
|
-
}, 100);
|
|
26
|
-
}
|
|
12
|
+
ref = React.createRef();
|
|
13
|
+
setBg = debounce(() => {
|
|
14
|
+
if (this.ref && this.ref.current) {
|
|
15
|
+
const bg = this.ref.current;
|
|
16
|
+
const width = document.documentElement.clientWidth || document.body.clientWidth;
|
|
17
|
+
const padding = this.props.theme === 'rounded' ? getPadding(width) : 0;
|
|
18
|
+
const { left } = bg.parentElement?.getBoundingClientRect() ?? { left: 0 };
|
|
19
|
+
bg.style.width = `${width - padding * 2}px`;
|
|
20
|
+
bg.style.left = `-${left - padding}px`;
|
|
21
|
+
}
|
|
22
|
+
}, 100);
|
|
27
23
|
componentDidMount() {
|
|
28
|
-
|
|
29
|
-
if ((_b = (_a = this === null || this === void 0 ? void 0 : this.ref) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.parentElement) {
|
|
24
|
+
if (this?.ref?.current?.parentElement) {
|
|
30
25
|
this.ref.current.parentElement.style.position = 'relative';
|
|
31
26
|
this.setBg();
|
|
32
27
|
window.addEventListener('resize', this.setBg, { passive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullWidthBackground.js","sourceRoot":"../../../../src","sources":["components/FullWidthBackground/FullWidthBackground.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,QAAQ,2BAAwB;AAEvC,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAE5C,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,2BAA2B,CAAC;AAEnC,MAAM,CAAC,GAAG,KAAK,CAAC,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C,CAAC;YACvE,MAAM,EAAC,IAAI,EAAC,GAAG,EAAE,CAAC,aAAa,EAAE,qBAAqB,EAAE,IAAI,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC;YAEtE,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,KAAK,GAAG,OAAO,GAAG,CAAC,IAAI,CAAC;YAC5C,EAAE,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,IAAI,GAAG,OAAO,IAAI,CAAC;QAC3C,CAAC;IACL,CAAC,EAAE,GAAG,CAAC,CAAC;IAER,iBAAiB;QACb,IAAI,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;YACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;YAC3D,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;IAED,oBAAoB;QAChB,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;QACF,MAAM,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACnE,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,YACrE,QAAQ,GACP,CACT,CAAC;IACN,CAAC;CACJ","sourcesContent":["import * as React from 'react';\n\nimport debounce from 'lodash/debounce';\n\nimport {BREAKPOINTS} from '../../constants';\nimport {ClassNameProps} from '../../models';\nimport {block} from '../../utils';\n\nimport './FullWidthBackground.scss';\n\nconst b = block('FullWidthBackground');\n\nexport interface FullWidthBackgroundProps extends ClassNameProps {\n style?: React.CSSProperties;\n theme?: 'default' | 'rounded';\n}\n\nfunction getPadding(width: number) {\n return width > BREAKPOINTS.sm ? 16 : 8;\n}\n\nexport default class FullWidthBackground extends React.Component<\n React.PropsWithChildren<FullWidthBackgroundProps>\n> {\n private ref = React.createRef<HTMLDivElement>();\n\n private setBg = debounce(() => {\n if (this.ref && this.ref.current) {\n const bg = this.ref.current;\n const width = document.documentElement.clientWidth || document.body.clientWidth;\n const padding = this.props.theme === 'rounded' ? getPadding(width) : 0;\n const {left} = bg.parentElement?.getBoundingClientRect() ?? {left: 0};\n\n bg.style.width = `${width - padding * 2}px`;\n bg.style.left = `-${left - padding}px`;\n }\n }, 100);\n\n componentDidMount() {\n if (this?.ref?.current?.parentElement) {\n this.ref.current.parentElement.style.position = 'relative';\n this.setBg();\n window.addEventListener('resize', this.setBg, {passive: true});\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('resize', this.setBg);\n }\n\n render() {\n const {children, className, style, theme = 'default'} = this.props;\n return (\n <div className={b({[theme]: true}, className)} ref={this.ref} style={style}>\n {children}\n </div>\n );\n }\n}\n"]}
|
|
@@ -14,7 +14,7 @@ const FullscreenImage = (props) => {
|
|
|
14
14
|
const [isOpened, setIsOpened] = React.useState(false);
|
|
15
15
|
const openModal = () => setIsOpened(true);
|
|
16
16
|
const closeModal = () => setIsOpened(false);
|
|
17
|
-
return (_jsxs("div",
|
|
17
|
+
return (_jsxs("div", { className: b(), ...extraProps, children: [_jsxs("div", { className: b('image-wrapper'), children: [_jsx(Image, { ...props, alt: alt, className: b('image', imageClassName), onClick: openModal, style: imageStyle }), _jsx("button", { className: b('icon-wrapper'), onClick: openModal, children: _jsx(Icon, { data: ChevronsExpandUpRight, width: FULL_SCREEN_ICON_SIZE, height: FULL_SCREEN_ICON_SIZE, className: b('icon') }) })] }), isOpened && (_jsxs(Modal, { open: isOpened, onClose: closeModal, className: b('modal'), contentClassName: b('modal-content'), children: [_jsx("button", { className: b('icon-wrapper', { visible: true }), onClick: closeModal, "aria-label": i18n('close'), children: _jsx(Icon, { data: Xmark, width: CLOSE_ICON_SIZE, height: CLOSE_ICON_SIZE, className: b('icon', { hover: true }) }) }), _jsx(Image, { ...props, className: b('modal-image', modalImageClass) })] }))] }));
|
|
18
18
|
};
|
|
19
19
|
export default FullscreenImage;
|
|
20
20
|
//# sourceMappingURL=FullscreenImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullscreenImage.js","sourceRoot":"../../../../src","sources":["components/FullscreenImage/FullscreenImage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,qBAAqB,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,KAAmB,0BAAuB;AAEjD,OAAO,EAAC,IAAI,EAAC,wBAAe;AAE5B,OAAO,uBAAuB,CAAC;AAS/B,MAAM,CAAC,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACpC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IACpD,MAAM,EAAC,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,UAAU,EAAC,GAAG,KAAK,CAAC;IAC/F,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,UA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E,cAAc,CAAC,EACrC,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,UAAU,GACnB,EACF,iBAAQ,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,SAAS,YACpD,KAAC,IAAI,IACD,IAAI,EAAE,qBAAqB,EAC3B,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,qBAAqB,EAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GACtB,GACG,IACP,EACL,QAAQ,IAAI,CACT,MAAC,KAAK,IACF,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EACrB,gBAAgB,EAAE,CAAC,CAAC,eAAe,CAAC,aAEpC,iBACI,SAAS,EAAE,CAAC,CAAC,cAAc,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,EAC7C,OAAO,EAAE,UAAU,gBACP,IAAI,CAAC,OAAO,CAAC,YAEzB,KAAC,IAAI,IACD,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,GACrC,GACG,EACT,KAAC,KAAK,OAAK,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,aAAa,EAAE,eAAe,CAAC,GAAI,IAC9D,CACX,IACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ChevronsExpandUpRight, Xmark} from '@gravity-ui/icons';\nimport {Icon, Modal} from '@gravity-ui/uikit';\n\nimport {block} from '../../utils';\nimport Image, {ImageProps} from '../Image/Image';\n\nimport {i18n} from './i18n';\n\nimport './FullscreenImage.scss';\n\nexport interface FullscreenImageProps extends ImageProps {\n imageClassName?: string;\n modalImageClass?: string;\n imageStyle?: React.CSSProperties;\n extraProps?: React.HTMLProps<HTMLDivElement>;\n}\n\nconst b = block('fullscreen-image');\nconst FULL_SCREEN_ICON_SIZE = 18;\nconst CLOSE_ICON_SIZE = 24;\n\nconst FullscreenImage = (props: FullscreenImageProps) => {\n const {imageClassName, modalImageClass, imageStyle, alt = i18n('img-alt'), extraProps} = props;\n const [isOpened, setIsOpened] = React.useState(false);\n\n const openModal = () => setIsOpened(true);\n const closeModal = () => setIsOpened(false);\n\n return (\n <div className={b()} {...extraProps}>\n <div className={b('image-wrapper')}>\n <Image\n {...props}\n alt={alt}\n className={b('image', imageClassName)}\n onClick={openModal}\n style={imageStyle}\n />\n <button className={b('icon-wrapper')} onClick={openModal}>\n <Icon\n data={ChevronsExpandUpRight}\n width={FULL_SCREEN_ICON_SIZE}\n height={FULL_SCREEN_ICON_SIZE}\n className={b('icon')}\n />\n </button>\n </div>\n {isOpened && (\n <Modal\n open={isOpened}\n onClose={closeModal}\n className={b('modal')}\n contentClassName={b('modal-content')}\n >\n <button\n className={b('icon-wrapper', {visible: true})}\n onClick={closeModal}\n aria-label={i18n('close')}\n >\n <Icon\n data={Xmark}\n width={CLOSE_ICON_SIZE}\n height={CLOSE_ICON_SIZE}\n className={b('icon', {hover: true})}\n />\n </button>\n <Image {...props} className={b('modal-image', modalImageClass)} />\n </Modal>\n )}\n </div>\n );\n};\n\nexport default FullscreenImage;\n"]}
|
|
@@ -12,6 +12,6 @@ export default function HeaderBreadcrumbs(props) {
|
|
|
12
12
|
const onClick = React.useCallback(() => {
|
|
13
13
|
handleAnalytics(analyticsEvents);
|
|
14
14
|
}, [analyticsEvents, handleAnalytics]);
|
|
15
|
-
return (_jsx("nav", { className: b({ theme }, className), "aria-label": i18n('label'), children: _jsx("ol", { className: b('list'), children: items
|
|
15
|
+
return (_jsx("nav", { className: b({ theme }, className), "aria-label": i18n('label'), children: _jsx("ol", { className: b('list'), children: items?.map(({ url, text }) => (_jsxs("li", { className: b('item'), children: [_jsx("a", { href: url, className: b('text'), onClick: onClick, children: text }), _jsx("span", { className: b('separator'), "aria-hidden": true, children: "/" })] }, url))) }) }));
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=HeaderBreadcrumbs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBreadcrumbs.js","sourceRoot":"../../../../src","sources":["components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAC,6BAAoB;AACzC,OAAO,EAAC,iBAAiB,EAAyB,8BAAqB;AACvE,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,EAAC,IAAI,EAAC,wBAAe;AAE5B,OAAO,yBAAyB,CAAC;AAEjC,MAAM,CAAC,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAA6B;IACnE,MAAM,EAAC,KAAK,EAAE,KAAK,GAAG,OAAO,EAAE,SAAS,EAAE,eAAe,EAAC,GAAG,KAAK,CAAC;IACnE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAEnE,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACnC,eAAe,CAAC,eAAe,CAAC,CAAC;IACrC,CAAC,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;IAEvC,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,SAAS,CAAC,gBAAc,IAAI,CAAC,OAAO,CAAC,YAC5D,aAAI,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACnB,KAAK,
|
|
1
|
+
{"version":3,"file":"HeaderBreadcrumbs.js","sourceRoot":"../../../../src","sources":["components/HeaderBreadcrumbs/HeaderBreadcrumbs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO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Props} from '../../models';\nimport {block} from '../../utils';\n\nimport {i18n} from './i18n';\n\nimport './HeaderBreadcrumbs.scss';\n\nconst b = block('header-breadcrumbs');\n\nexport default function HeaderBreadcrumbs(props: HeaderBreadCrumbsProps) {\n const {items, theme = 'light', className, analyticsEvents} = props;\n const handleAnalytics = useAnalytics(DefaultEventNames.Breadcrumb);\n\n const onClick = React.useCallback(() => {\n handleAnalytics(analyticsEvents);\n }, [analyticsEvents, handleAnalytics]);\n\n return (\n <nav className={b({theme}, className)} aria-label={i18n('label')}>\n <ol className={b('list')}>\n {items?.map(({url, text}) => (\n <li className={b('item')} key={url}>\n <a href={url} className={b('text')} onClick={onClick}>\n {text}\n </a>\n <span className={b('separator')} aria-hidden>\n /\n </span>\n </li>\n ))}\n </ol>\n </nav>\n );\n}\n"]}
|
|
@@ -11,8 +11,8 @@ const IconWrapper = (props) => {
|
|
|
11
11
|
return _jsx(React.Fragment, { children: children });
|
|
12
12
|
}
|
|
13
13
|
const iconProps = getMediaImage(icon.value);
|
|
14
|
-
const iconPosition = icon
|
|
15
|
-
return (_jsxs("div", { className: b({ ['icon-position']: iconPosition }, className), children: [iconProps && (_jsx(Image,
|
|
14
|
+
const iconPosition = icon?.position;
|
|
15
|
+
return (_jsxs("div", { className: b({ ['icon-position']: iconPosition }, className), children: [iconProps && (_jsx(Image, { ...iconProps, containerClassName: b('icon-container'), className: b('icon', { ['icon-position']: iconPosition }) })), _jsx("div", { className: b('content', { ['icon-position']: iconPosition }), children: children })] }));
|
|
16
16
|
};
|
|
17
17
|
export default IconWrapper;
|
|
18
18
|
//# sourceMappingURL=IconWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconWrapper.js","sourceRoot":"../../../../src","sources":["components/IconWrapper/IconWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,KAAK,0BAAuB;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,CAAC,aAC1D,SAAS,IAAI,CACV,KAAC,KAAK,OACE,SAAS,EACb,kBAAkB,EAAE,CAAC,CAAC,gBAAgB,CAAC,EACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,CAAC,eAAe,CAAC,EAAE,YAAY,EAAC,CAAC,GACzD,CACL,EACD,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,CAAC,eAAe,CAAC,EAAE,YAAY,EAAC,CAAC,YAAG,QAAQ,GAAO,IAC/E,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import * as React from 'react';\n\nimport type {ClassNameProps, IconWrapperProps} from '../../models';\nimport {block} from '../../utils';\nimport Image from '../Image/Image';\nimport {getMediaImage} from '../Media/Image/utils';\n\nimport './IconWrapper.scss';\n\nconst b = block('icon-wrapper');\n\nconst IconWrapper = (props: React.PropsWithChildren<IconWrapperProps> & ClassNameProps) => {\n const {icon, children, className} = props;\n if (!icon) {\n return <React.Fragment>{children}</React.Fragment>;\n }\n\n const iconProps = getMediaImage(icon.value);\n const iconPosition = icon?.position;\n\n return (\n <div className={b({['icon-position']: iconPosition}, className)}>\n {iconProps && (\n <Image\n {...iconProps}\n containerClassName={b('icon-container')}\n className={b('icon', {['icon-position']: iconPosition})}\n />\n )}\n <div className={b('content', {['icon-position']: iconPosition})}>{children}</div>\n </div>\n );\n};\n\nexport default IconWrapper;\n"]}
|
|
@@ -32,23 +32,35 @@ export const ImageDeviceProps = {
|
|
|
32
32
|
type: 'object',
|
|
33
33
|
additionalProperties: false,
|
|
34
34
|
required: ['desktop', 'mobile'],
|
|
35
|
-
properties:
|
|
35
|
+
properties: {
|
|
36
|
+
...ImageBase,
|
|
37
|
+
desktop: { type: 'string', pattern: imageUrlPattern },
|
|
38
|
+
tablet: {
|
|
36
39
|
type: 'string',
|
|
37
40
|
pattern: imageUrlPattern,
|
|
38
|
-
},
|
|
41
|
+
},
|
|
42
|
+
mobile: {
|
|
39
43
|
type: 'string',
|
|
40
44
|
pattern: imageUrlPattern,
|
|
41
|
-
}
|
|
45
|
+
},
|
|
46
|
+
},
|
|
42
47
|
};
|
|
43
48
|
export const ImageBaseObjectProps = {
|
|
44
49
|
type: 'object',
|
|
45
50
|
additionalProperties: false,
|
|
46
|
-
properties:
|
|
51
|
+
properties: {
|
|
52
|
+
...ImageBase,
|
|
53
|
+
src: {
|
|
47
54
|
type: 'string',
|
|
48
55
|
pattern: imageUrlPattern,
|
|
49
|
-
},
|
|
56
|
+
},
|
|
57
|
+
style: StyleBase,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
export const ImageObjectProps = {
|
|
61
|
+
...ImageBaseObjectProps,
|
|
62
|
+
required: ['src'],
|
|
50
63
|
};
|
|
51
|
-
export const ImageObjectProps = Object.assign(Object.assign({}, ImageBaseObjectProps), { required: ['src'] });
|
|
52
64
|
export const ImageProps = {
|
|
53
65
|
oneOf: [
|
|
54
66
|
{
|
|
@@ -56,24 +68,40 @@ export const ImageProps = {
|
|
|
56
68
|
pattern: imageUrlPattern,
|
|
57
69
|
optionName: 'url',
|
|
58
70
|
},
|
|
59
|
-
filteredItem(
|
|
60
|
-
|
|
71
|
+
filteredItem({
|
|
72
|
+
...ImageObjectProps,
|
|
73
|
+
optionName: 'options',
|
|
74
|
+
}),
|
|
75
|
+
filteredItem({
|
|
76
|
+
...ImageDeviceProps,
|
|
77
|
+
optionName: 'device options',
|
|
78
|
+
}),
|
|
61
79
|
{
|
|
62
80
|
type: 'array',
|
|
63
|
-
items: filteredItem(
|
|
81
|
+
items: filteredItem({
|
|
82
|
+
...ImageObjectProps,
|
|
83
|
+
}),
|
|
64
84
|
optionName: 'options list',
|
|
65
85
|
},
|
|
66
86
|
{
|
|
67
87
|
type: 'array',
|
|
68
|
-
items: filteredItem(
|
|
88
|
+
items: filteredItem({
|
|
89
|
+
...ImageDeviceProps,
|
|
90
|
+
}),
|
|
69
91
|
optionName: 'device options list',
|
|
70
92
|
},
|
|
71
93
|
],
|
|
72
94
|
};
|
|
73
95
|
export const BackgroundImageProps = {
|
|
74
96
|
anyOf: [
|
|
75
|
-
|
|
76
|
-
|
|
97
|
+
{
|
|
98
|
+
...ImageBaseObjectProps,
|
|
99
|
+
optionName: 'options',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
...ImageDeviceProps,
|
|
103
|
+
optionName: 'device options',
|
|
104
|
+
},
|
|
77
105
|
],
|
|
78
106
|
};
|
|
79
107
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["components/Image/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,yCAAsC;AAE3D,MAAM,CAAC,MAAM,eAAe,GACxB,kGAAkG,CAAC;AAEvG,MAAM,SAAS,GAAG;IACd,GAAG,EAAE;QACD,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,MAAM;KACtB;IACD,eAAe,EAAE;QACb,IAAI,EAAE,SAAS;KAClB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC1B;IACD,aAAa,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;KAChC;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,eAAe,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QACjC,MAAM,EAAE,EAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAC;QACpC,KAAK,EAAE,EAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAC;QACnC,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,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AG,oBAAoB;YACvB,UAAU,EAAE,SAAS;SACxB;QACD;YACI,GAAG,gBAAgB;YACnB,UAAU,EAAE,gBAAgB;SAC/B;KACJ;CACJ,CAAC","sourcesContent":["import {filteredItem} from '../../schema/validators/utils';\n\nexport const imageUrlPattern =\n '^((http[s]?|ftp):\\\\/)?\\\\/?([^:\\\\/\\\\s]+)((\\\\/\\\\w+)*\\\\/)([\\\\w\\\\-\\\\.]+[^#?\\\\s]+)(.*)?(#[\\\\w\\\\-]+)?$';\n\nconst ImageBase = {\n alt: {\n type: 'string',\n contentType: 'text',\n },\n disableCompress: {\n type: 'boolean',\n },\n loading: {\n type: 'string',\n enum: ['eager', 'lazy'],\n },\n fetchPriority: {\n type: 'string',\n enum: ['high', 'low', 'auto'],\n },\n};\n\nconst StyleBase = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n backgroundColor: {type: 'string'},\n height: {type: ['string', 'number']},\n width: {type: ['string', 'number']},\n color: {type: 'string'},\n },\n};\n\nexport const ImageDeviceProps = {\n type: 'object',\n additionalProperties: false,\n required: ['desktop', 'mobile'],\n properties: {\n ...ImageBase,\n desktop: {type: 'string', pattern: imageUrlPattern},\n tablet: {\n type: 'string',\n pattern: imageUrlPattern,\n },\n mobile: {\n type: 'string',\n pattern: imageUrlPattern,\n },\n },\n};\n\nexport const ImageBaseObjectProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n ...ImageBase,\n src: {\n type: 'string',\n pattern: imageUrlPattern,\n },\n style: StyleBase,\n },\n};\n\nexport const ImageObjectProps = {\n ...ImageBaseObjectProps,\n required: ['src'],\n};\n\nexport const ImageProps = {\n oneOf: [\n {\n type: 'string',\n pattern: imageUrlPattern,\n optionName: 'url',\n },\n filteredItem({\n ...ImageObjectProps,\n optionName: 'options',\n }),\n filteredItem({\n ...ImageDeviceProps,\n optionName: 'device options',\n }),\n {\n type: 'array',\n items: filteredItem({\n ...ImageObjectProps,\n }),\n optionName: 'options list',\n },\n {\n type: 'array',\n items: filteredItem({\n ...ImageDeviceProps,\n }),\n optionName: 'device options list',\n },\n ],\n};\n\nexport const BackgroundImageProps = {\n anyOf: [\n {\n ...ImageBaseObjectProps,\n optionName: 'options',\n },\n {\n ...ImageDeviceProps,\n optionName: 'device options',\n },\n ],\n};\n"]}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { ImageContext } from "../../context/imageContext/imageContext.js";
|
|
5
|
-
export const ImageBase = (
|
|
6
|
-
var { fetchPriority, alt } = _a, props = __rest(_a, ["fetchPriority", "alt"]);
|
|
4
|
+
export const ImageBase = ({ fetchPriority, alt, ...props }) => {
|
|
7
5
|
const { Image } = React.useContext(ImageContext);
|
|
8
|
-
return Image ? (_jsx(Image,
|
|
6
|
+
return Image ? (_jsx(Image, { fetchPriority: fetchPriority, alt: alt, ...props })) : (
|
|
9
7
|
// There is an issue with fetchpriority attr in img in React.
|
|
10
8
|
// It is still not supported. However it's nice to have ability to manage
|
|
11
9
|
// this prop is good to have to improve Core Web Vitals.
|
|
12
10
|
// So, here is a workaround to assign the attr.
|
|
13
|
-
_jsx("img",
|
|
11
|
+
_jsx("img", { fetchPriority: fetchPriority, alt: alt, ...props }));
|
|
14
12
|
};
|
|
15
13
|
export default ImageBase;
|
|
16
14
|
//# sourceMappingURL=ImageBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBase.js","sourceRoot":"../../../../src","sources":["components/ImageBase/ImageBase.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageBase.js","sourceRoot":"../../../../src","sources":["components/ImageBase/ImageBase.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAC,mDAAgD;AAWrE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAC,aAAa,EAAE,GAAG,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IACxE,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAE/C,OAAO,KAAK,CAAC,CAAC,CAAC,CACX,KAAC,KAAK,IAAC,aAAa,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,KAAM,KAAK,GAAI,CAC/D,CAAC,CAAC,CAAC;IACA,6DAA6D;IAC7D,yEAAyE;IACzE,wDAAwD;IACxD,+CAA+C;IAC/C,cAAU,aAAa,EAAE,aAAa,EAAG,GAAG,EAAE,GAAG,KAAM,KAAK,GAAI,CACnE,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ImageContext} from '../../context/imageContext/imageContext';\nimport {ImageObjectProps} from '../../models';\n\nexport interface ImageBaseProps extends Partial<ImageObjectProps> {\n style?: React.CSSProperties;\n className?: string;\n onClick?: React.MouseEventHandler;\n onLoad?: React.ReactEventHandler<HTMLDivElement>;\n onError?: () => void;\n}\n\nexport const ImageBase = ({fetchPriority, alt, ...props}: ImageBaseProps) => {\n const {Image} = React.useContext(ImageContext);\n\n return Image ? (\n <Image fetchPriority={fetchPriority} alt={alt} {...props} />\n ) : (\n // There is an issue with fetchpriority attr in img in React.\n // It is still not supported. However it's nice to have ability to manage\n // this prop is good to have to improve Core Web Vitals.\n // So, here is a workaround to assign the attr.\n <img {...{fetchPriority: fetchPriority}} alt={alt} {...props} />\n );\n};\n\nexport default ImageBase;\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { YandexForm } from "../index.js";
|
|
@@ -17,15 +16,15 @@ const InnerForm = (props) => {
|
|
|
17
16
|
}
|
|
18
17
|
}, [onContentLoad, formData]);
|
|
19
18
|
if (isYandexDataForm(formData)) {
|
|
20
|
-
const
|
|
21
|
-
return (_jsx("div", { className: className, children: _jsx(YandexForm,
|
|
19
|
+
const { onLoad, ...rest } = getThemedValue(formData.yandex, theme);
|
|
20
|
+
return (_jsx("div", { className: className, children: _jsx(YandexForm, { ...formsConfig.yandex, ...rest, onLoad: () => {
|
|
22
21
|
onContentLoad();
|
|
23
|
-
onLoad
|
|
24
|
-
} })
|
|
22
|
+
onLoad?.();
|
|
23
|
+
} }) }));
|
|
25
24
|
}
|
|
26
25
|
if (isHubspotDataForm(formData)) {
|
|
27
26
|
const themedFormData = getThemedValue(formData.hubspot, theme);
|
|
28
|
-
return (_jsx(HubspotForm,
|
|
27
|
+
return (_jsx(HubspotForm, { createDOMElement: true, ...formsConfig.hubspot, ...themedFormData }));
|
|
29
28
|
}
|
|
30
29
|
return null;
|
|
31
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerForm.js","sourceRoot":"../../../../src","sources":["components/InnerForm/InnerForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InnerForm.js","sourceRoot":"../../../../src","sources":["components/InnerForm/InnerForm.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,UAAU,EAAC,oBAAW;AAC9B,OAAO,EACH,YAAY,GAGf,mDAAgD;AACjD,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAgB,iBAAiB,EAAE,gBAAgB,EAAC,8BAAqB;AAChF,OAAO,EAAC,WAAW,EAAC,kCAAyB;AAC7C,OAAO,EAAC,cAAc,EAAC,6BAAoB;AAQ3C,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE;IAClD,MAAM,EAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAC,GAAG,KAAK,CAAC;IACnD,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACnD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,iBAAiB,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC9B,aAAa,EAAE,CAAC;QACpB,CAAC;IACL,CAAC,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE9B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,MAAM,EAAC,MAAM,EAAE,GAAG,IAAI,EAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAEjE,OAAO,CACH,cAAK,SAAS,EAAE,SAAS,YACrB,KAAC,UAAU,OACF,WAAW,CAAC,MAA8C,KAC3D,IAAI,EACR,MAAM,EAAE,GAAG,EAAE;oBACT,aAAa,EAAE,CAAC;oBAChB,MAAM,EAAE,EAAE,CAAC;gBACf,CAAC,GACH,GACA,CACT,CAAC;IACN,CAAC;IAED,IAAI,iBAAiB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9B,MAAM,cAAc,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAE/D,OAAO,CACH,KAAC,WAAW,IACR,gBAAgB,EAAE,IAAI,KACjB,WAAW,CAAC,OAAgD,KAC7D,cAAc,GACpB,CACL,CAAC;IACN,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {YandexForm} from '..';\nimport {\n FormsContext,\n HubspotFormsContextProps,\n YandexFormsContextProps,\n} from '../../context/formsContext/FormsContext';\nimport {useTheme} from '../../context/theme';\nimport {FormBlockData, isHubspotDataForm, isYandexDataForm} from '../../models';\nimport {HubspotForm} from '../../sub-blocks';\nimport {getThemedValue} from '../../utils';\n\ninterface InnerFormProps {\n formData: FormBlockData;\n onContentLoad: () => void;\n className?: string;\n}\n\nconst InnerForm: React.FC<InnerFormProps> = (props) => {\n const {formData, onContentLoad, className} = props;\n const formsConfig = React.useContext(FormsContext);\n const theme = useTheme();\n\n React.useEffect(() => {\n if (isHubspotDataForm(formData)) {\n onContentLoad();\n }\n }, [onContentLoad, formData]);\n\n if (isYandexDataForm(formData)) {\n const {onLoad, ...rest} = getThemedValue(formData.yandex, theme);\n\n return (\n <div className={className}>\n <YandexForm\n {...(formsConfig.yandex as YandexFormsContextProps | undefined)}\n {...rest}\n onLoad={() => {\n onContentLoad();\n onLoad?.();\n }}\n />\n </div>\n );\n }\n\n if (isHubspotDataForm(formData)) {\n const themedFormData = getThemedValue(formData.hubspot, theme);\n\n return (\n <HubspotForm\n createDOMElement={true}\n {...(formsConfig.hubspot as HubspotFormsContextProps | undefined)}\n {...themedFormData}\n />\n );\n }\n\n return null;\n};\n\nexport default InnerForm;\n"]}
|
|
@@ -54,7 +54,7 @@ const LinkBlock = (props) => {
|
|
|
54
54
|
case 'normal': {
|
|
55
55
|
const linkProps = getLinkProps(url, hostname, target);
|
|
56
56
|
const content = children || text;
|
|
57
|
-
return (_jsx("a",
|
|
57
|
+
return (_jsx("a", { className: b('link', { theme: colorTheme, 'has-arrow': arrow }), href: href, onClick: onClick, tabIndex: tabIndex, title: urlTitle, ...linkProps, "data-qa": qaAttributes.normal, ...extraProps, children: arrow ? (_jsxs(React.Fragment, { children: [_jsx("span", { className: b('content'), children: content }), WORD_JOINER_SYM, _jsx(Icon, { className: b('arrow'), data: ChevronRight, size: getArrowSize(textSize) })] })) : (content) }));
|
|
58
58
|
}
|
|
59
59
|
default:
|
|
60
60
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"../../../../src","sources":["components/Link/Link.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,IAAI,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Q,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,GACxB,CACL,CAAC;YACN,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACZ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;gBACtD,MAAM,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC;gBAEjC,OAAO,CACH,YACI,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAC,CAAC,EAC7D,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,QAAQ,KACX,SAAS,aACJ,YAAY,CAAC,MAAM,KACxB,UAAU,YAEb,KAAK,CAAC,CAAC,CAAC,CACL,MAAC,KAAK,CAAC,QAAQ,eACX,eAAM,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,OAAO,GAAQ,EAC9C,eAAe,EAChB,KAAC,IAAI,IACD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EACrB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,GAC9B,IACW,CACpB,CAAC,CAAC,CAAC,CACA,OAAO,CACV,GACD,CACP,CAAC;YACN,CAAC;YACD;gBACI,OAAO,IAAI,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;IACF,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAE,WAAW,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE,SAAS,CAAC,YACrE,aAAa,EAAE,GACd,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ChevronRight} from '@gravity-ui/icons';\nimport {Icon} from '@gravity-ui/uikit';\n\nimport {LocaleContext} from '../../context/localeContext';\nimport {LocationContext} from '../../context/locationContext';\nimport {useAnalytics} from '../../hooks';\nimport {\n ClassNameProps,\n DefaultEventNames,\n LinkProps,\n LinkTheme,\n Tabbable,\n TextSize,\n} from '../../models';\nimport {QAProps} from '../../models/common';\nimport {block, getLinkProps, getQaAttrubutes, setUrlTld} from '../../utils';\nimport BackLink from '../BackLink/BackLink';\nimport FileLink from '../FileLink/FileLink';\n\nimport './Link.scss';\n\nconst b = block('link-block');\nconst WORD_JOINER_SYM = '\\u200b';\n\nexport type LinkFullProps = LinkProps & ClassNameProps & Tabbable & QAProps;\n\nfunction getArrowSize(size: TextSize) {\n switch (size) {\n case 'l':\n return 20;\n case 'm':\n case 'sm':\n return 18;\n case 's':\n return 14;\n default:\n return 14;\n }\n}\n\nfunction getTextSize({size, theme}: {size?: TextSize; theme: LinkTheme}) {\n if (!size) {\n return theme === 'back' ? 'l' : 'm';\n }\n\n if (size === 'sm') {\n return 'm';\n }\n\n return size;\n}\n\nconst LinkBlock = (props: React.PropsWithChildren<LinkFullProps>) => {\n const {\n text,\n url,\n arrow,\n analyticsEvents,\n theme = 'file-link',\n colorTheme = 'light',\n textSize = 'm',\n className,\n target,\n children,\n tabIndex,\n qa,\n urlTitle,\n extraProps,\n } = props;\n const qaAttributes = getQaAttrubutes(qa, ['normal']);\n\n const handleAnalytics = useAnalytics(DefaultEventNames.Link, url);\n const {hostname} = React.useContext(LocationContext);\n const {tld} = React.useContext(LocaleContext);\n const href = setUrlTld(props.url, tld);\n\n const onClick = () => {\n handleAnalytics(analyticsEvents);\n };\n\n const getLinkByType = () => {\n switch (theme) {\n case 'back':\n return (\n <BackLink\n title={children || text}\n url={href}\n onClick={onClick}\n tabIndex={tabIndex}\n extraProps={extraProps}\n />\n );\n case 'file-link':\n case 'underline':\n return (\n <FileLink\n text={children || text}\n href={href}\n type=\"horizontal\"\n textSize={textSize}\n onClick={onClick}\n tabIndex={tabIndex}\n extraProps={extraProps}\n />\n );\n case 'normal': {\n const linkProps = getLinkProps(url, hostname, target);\n const content = children || text;\n\n return (\n <a\n className={b('link', {theme: colorTheme, 'has-arrow': arrow})}\n href={href}\n onClick={onClick}\n tabIndex={tabIndex}\n title={urlTitle}\n {...linkProps}\n data-qa={qaAttributes.normal}\n {...extraProps}\n >\n {arrow ? (\n <React.Fragment>\n <span className={b('content')}>{content}</span>\n {WORD_JOINER_SYM}\n <Icon\n className={b('arrow')}\n data={ChevronRight}\n size={getArrowSize(textSize)}\n />\n </React.Fragment>\n ) : (\n content\n )}\n </a>\n );\n }\n default:\n return null;\n }\n };\n return (\n <div className={b({size: getTextSize({size: textSize, theme})}, className)}>\n {getLinkByType()}\n </div>\n );\n};\n\nexport default LinkBlock;\n"]}
|
|
@@ -13,6 +13,9 @@ function getLinkSize(size) {
|
|
|
13
13
|
return 'l';
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
const Links = ({ className, titleId, links, size = 's', qa, linkQa }) => links ? (_jsx("div", { className: b({ size }, className), "data-qa": qa, children: links
|
|
16
|
+
const Links = ({ className, titleId, links, size = 's', qa, linkQa }) => links ? (_jsx("div", { className: b({ size }, className), "data-qa": qa, children: links?.map((link) => (_createElement(Link, { className: b('link'), ...link, textSize: getLinkSize(size), key: link.url, qa: linkQa, extraProps: {
|
|
17
|
+
'aria-describedby': link.urlTitle ? undefined : titleId,
|
|
18
|
+
...link.extraProps,
|
|
19
|
+
} }))) })) : null;
|
|
17
20
|
export default Links;
|
|
18
21
|
//# sourceMappingURL=Links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Links.js","sourceRoot":"../../../../src","sources":["components/Links/Links.tsx"],"names":[],"mappings":";;AAGA,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,IAAI,wBAAqB;AAEhC,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEzB,SAAS,WAAW,CAAC,IAAiB;IAClC,QAAQ,IAAI,EAAE,CAAC;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C,GAAG,EACb,EAAE,EAAE,MAAM,EACV,UAAU,EAAE;YACR,kBAAkB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;YACvD,GAAG,IAAI,CAAC,UAAU;SACrB,GACH,CACL,CAAC,GACA,CACT,CAAC,CAAC,CAAC,IAAI,CAAC;AAEb,eAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ContentSize, LinkProps} from '../../models';\nimport {block} from '../../utils';\nimport Link from '../Link/Link';\n\nimport './Links.scss';\n\nconst b = block('links');\n\nfunction getLinkSize(size: ContentSize) {\n switch (size) {\n case 's':\n return 'm';\n case 'l':\n default:\n return 'l';\n }\n}\n\ntype LinksProps = {\n className?: string;\n titleId?: string;\n links?: LinkProps[];\n size?: ContentSize;\n qa?: string;\n linkQa?: string;\n};\n\nconst Links: React.FC<LinksProps> = ({className, titleId, links, size = 's', qa, linkQa}) =>\n links ? (\n <div className={b({size}, className)} data-qa={qa}>\n {links?.map((link) => (\n <Link\n className={b('link')}\n {...link}\n textSize={getLinkSize(size)}\n key={link.url}\n qa={linkQa}\n extraProps={{\n 'aria-describedby': link.urlTitle ? undefined : titleId,\n ...link.extraProps,\n }}\n />\n ))}\n </div>\n ) : null;\n\nexport default Links;\n"]}
|
|
@@ -8,9 +8,9 @@ export const Map = (props) => {
|
|
|
8
8
|
const { type } = React.useContext(MapsContext);
|
|
9
9
|
switch (type) {
|
|
10
10
|
case MapType.Yandex:
|
|
11
|
-
return _jsx(YandexMap,
|
|
11
|
+
return _jsx(YandexMap, { ...props });
|
|
12
12
|
case MapType.Google:
|
|
13
|
-
return _jsx(GoogleMap,
|
|
13
|
+
return _jsx(GoogleMap, { ...props });
|
|
14
14
|
default:
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sourceRoot":"../../../../src","sources":["components/Map/Map.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,iDAA8C;AAG3E,OAAO,SAAS,uBAAoB;AACpC,OAAO,SAAS,4BAAyB;AAEzC,OAAO,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,KAAe,EAAE,EAAE;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAE7C,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,OAAO,CAAC,MAAM;YACf,OAAO,KAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Map.js","sourceRoot":"../../../../src","sources":["components/Map/Map.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,iDAA8C;AAG3E,OAAO,SAAS,uBAAoB;AACpC,OAAO,SAAS,4BAAyB;AAEzC,OAAO,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,KAAe,EAAE,EAAE;IACnC,MAAM,EAAC,IAAI,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAE7C,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,OAAO,CAAC,MAAM;YACf,OAAO,KAAC,SAAS,OAAM,KAAmB,GAAI,CAAC;QACnD,KAAK,OAAO,CAAC,MAAM;YACf,OAAO,KAAC,SAAS,OAAM,KAAmB,GAAI,CAAC;QACnD;YACI,OAAO,IAAI,CAAC;IACpB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {MapType, MapsContext} from '../../context/mapsContext/mapsContext';\nimport {GMapProps, MapProps, YMapProps} from '../../models';\n\nimport GoogleMap from './GoogleMap';\nimport YandexMap from './YMap/YandexMap';\n\nimport './Map.scss';\n\nexport const Map = (props: MapProps) => {\n const {type} = React.useContext(MapsContext);\n\n switch (type) {\n case MapType.Yandex:\n return <YandexMap {...(props as YMapProps)} />;\n case MapType.Google:\n return <GoogleMap {...(props as GMapProps)} />;\n default:\n return null;\n }\n};\n\nexport default Map;\n"]}
|
|
@@ -14,8 +14,10 @@ const geoObjectPropsAndOptions = {
|
|
|
14
14
|
preset: GeoObjectTypes.Options,
|
|
15
15
|
};
|
|
16
16
|
export class YMap {
|
|
17
|
+
ymap;
|
|
18
|
+
mapRef;
|
|
19
|
+
coords = [];
|
|
17
20
|
constructor(ymap, mapRef) {
|
|
18
|
-
this.coords = [];
|
|
19
21
|
this.ymap = ymap;
|
|
20
22
|
this.mapRef = mapRef;
|
|
21
23
|
}
|
|
@@ -40,7 +42,7 @@ export class YMap {
|
|
|
40
42
|
this.drawPlaceMarkStyle(geoObject, marker);
|
|
41
43
|
this.ymap.geoObjects.add(geoObject);
|
|
42
44
|
}
|
|
43
|
-
catch
|
|
45
|
+
catch { } // If error - placemark will not be displayed
|
|
44
46
|
}
|
|
45
47
|
findCoordinate(marker) {
|
|
46
48
|
const geoObject = new window.ymaps.Placemark(marker.coordinate, {});
|
|
@@ -55,7 +57,7 @@ export class YMap {
|
|
|
55
57
|
if (!preset.includes('Stretchy') && !iconColor) {
|
|
56
58
|
localIconColor = DEFAULT_PLACEMARKS_COLOR;
|
|
57
59
|
}
|
|
58
|
-
Object.entries(
|
|
60
|
+
Object.entries({ ...marker.label, iconColor: localIconColor, preset }).forEach(([key, value]) => {
|
|
59
61
|
const geoObjectParamType = geoObjectPropsAndOptions[key];
|
|
60
62
|
if (value && geoObjectParamType) {
|
|
61
63
|
geoObject[geoObjectParamType].set(key, value);
|
|
@@ -63,7 +65,6 @@ export class YMap {
|
|
|
63
65
|
});
|
|
64
66
|
}
|
|
65
67
|
recalcZoomAndCenter(props) {
|
|
66
|
-
var _a, _b;
|
|
67
68
|
const coordsLength = this.coords.length;
|
|
68
69
|
const { zoom = 0 } = props;
|
|
69
70
|
if (!coordsLength) {
|
|
@@ -83,7 +84,7 @@ export class YMap {
|
|
|
83
84
|
newMapParams.center = window.ymaps.util.bounds.getCenter([leftBottom, rightTop]);
|
|
84
85
|
}
|
|
85
86
|
else {
|
|
86
|
-
newMapParams = window.ymaps.util.bounds.getCenterAndZoom([leftBottom, rightTop], [
|
|
87
|
+
newMapParams = window.ymaps.util.bounds.getCenterAndZoom([leftBottom, rightTop], [this.mapRef?.clientWidth, this.mapRef?.clientHeight], undefined, { margin: DEFAULT_MAP_CONTROL_BUTTON_HEIGHT });
|
|
87
88
|
}
|
|
88
89
|
this.ymap.setCenter(newMapParams.center);
|
|
89
90
|
// Use default zoom for one placemark
|