@gravity-ui/page-constructor 7.0.0-beta.2 → 7.0.0-beta.3
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/README.md +98 -10
- 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.d.ts +76 -0
- 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.d.ts +76 -0
- 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/FoldableList/FoldableList.css +13 -0
- package/build/cjs/blocks/FoldableList/FoldableList.d.ts +3 -0
- package/build/cjs/blocks/FoldableList/FoldableList.js +31 -0
- package/build/cjs/blocks/FoldableList/FoldableList.js.map +1 -0
- package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.css +100 -0
- package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.d.ts +2 -0
- package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js +22 -0
- package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js.map +1 -0
- package/build/cjs/blocks/FoldableList/schema.d.ts +140 -0
- package/build/cjs/blocks/FoldableList/schema.js +39 -0
- package/build/cjs/blocks/FoldableList/schema.js.map +1 -0
- 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.css +12 -1
- package/build/cjs/blocks/Header/Header.js +15 -9
- package/build/cjs/blocks/Header/Header.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +10 -0
- package/build/cjs/blocks/Header/schema.js +14 -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.d.ts +5 -0
- package/build/cjs/blocks/HeaderSlider/schema.js +8 -5
- 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/Share.css +3 -2
- package/build/cjs/blocks/Share/Share.js +3 -4
- package/build/cjs/blocks/Share/Share.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/Arrow/Arrow.css +13 -13
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/cjs/blocks/Slider/Arrow/Arrow.js.map +1 -1
- package/build/cjs/blocks/Slider/Slider.css +2 -2
- package/build/cjs/blocks/Slider/Slider.js +6 -3
- 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/useSlider.js +1 -2
- package/build/cjs/blocks/Slider/useSlider.js.map +1 -1
- package/build/cjs/blocks/Slider/utils.js +6 -2
- package/build/cjs/blocks/Slider/utils.js.map +1 -1
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.css +1 -1
- package/build/cjs/blocks/SliderOld/SliderOld.js +17 -14
- package/build/cjs/blocks/SliderOld/SliderOld.js.map +1 -1
- package/build/cjs/blocks/SliderOld/schema.js +6 -1
- package/build/cjs/blocks/SliderOld/schema.js.map +1 -1
- package/build/cjs/blocks/SliderOld/utils.js +8 -5
- package/build/cjs/blocks/SliderOld/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/TabContent/TabContent.css +78 -0
- package/build/cjs/blocks/Tabs/TabContent/TabContent.d.ts +12 -0
- package/build/cjs/blocks/Tabs/TabContent/TabContent.js +70 -0
- package/build/cjs/blocks/Tabs/TabContent/TabContent.js.map +1 -0
- package/build/cjs/blocks/Tabs/Tabs.css +0 -72
- package/build/cjs/blocks/Tabs/Tabs.js +13 -59
- 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/blocks/index.d.ts +1 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/blocks/index.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 +2 -2
- 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.d.ts +1 -0
- 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/ButtonTabs/ButtonTabs.d.ts +2 -0
- package/build/cjs/components/ButtonTabs/ButtonTabs.js +3 -2
- package/build/cjs/components/ButtonTabs/ButtonTabs.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.css +3 -0
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +1 -3
- package/build/cjs/components/HTML/HTML.js +7 -3
- package/build/cjs/components/HTML/HTML.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/Image.d.ts +4 -2
- package/build/cjs/components/Image/Image.js +22 -8
- package/build/cjs/components/Image/Image.js.map +1 -1
- package/build/cjs/components/Image/schema.d.ts +95 -0
- package/build/cjs/components/Image/schema.js +55 -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 +14 -13
- 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.css +1 -0
- 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 +7 -4
- package/build/cjs/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/cjs/components/YFMWrapper/YFMWrapper.js +3 -4
- package/build/cjs/components/YFMWrapper/YFMWrapper.js.map +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js +21 -6
- 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/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/constructor-items.js.map +1 -1
- package/build/cjs/containers/Loadable/Loadable.js +4 -4
- 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/projectSettingsContext/ProjectSettingsContext.d.ts +2 -0
- package/build/cjs/context/projectSettingsContext/ProjectSettingsContext.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 +5 -2
- 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/editor/widget/utils.js +1 -1
- package/build/cjs/editor/widget/utils.js.map +1 -1
- package/build/cjs/grid/Col/Col.d.ts +3 -2
- package/build/cjs/grid/Col/Col.js +2 -2
- package/build/cjs/grid/Col/Col.js.map +1 -1
- package/build/cjs/grid/Row/Row.d.ts +4 -3
- package/build/cjs/grid/Row/Row.js +2 -2
- package/build/cjs/grid/Row/Row.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/internal-typings/global.d.ts +1 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +21 -3
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +16 -6
- package/build/cjs/models/constructor-items/common.js +8 -1
- package/build/cjs/models/constructor-items/common.js.map +1 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/cjs/models/constructor-items/sub-blocks.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/Navigation/Navigation.d.ts +1 -0
- package/build/cjs/navigation/components/Navigation/Navigation.js +2 -2
- package/build/cjs/navigation/components/Navigation/Navigation.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 +3 -4
- 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/NavigationPopup/NavigationPopup.css +2 -0
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +13 -5
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.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/models.d.ts +1 -0
- package/build/cjs/navigation/models.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.d.ts +19 -0
- package/build/cjs/schema/constants.js +34 -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/blocks.d.ts +2 -0
- package/build/cjs/schema/validators/blocks.js +2 -0
- package/build/cjs/schema/validators/blocks.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.d.ts +19 -0
- 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/HubspotFormContainer.d.ts +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +5 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js.map +1 -1
- package/build/cjs/sub-blocks/HubspotForm/index.js +5 -5
- 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/HubspotForm/setHubspotDefaultValues.d.ts +2 -0
- package/build/cjs/sub-blocks/HubspotForm/setHubspotDefaultValues.js +51 -0
- package/build/cjs/sub-blocks/HubspotForm/setHubspotDefaultValues.js.map +1 -0
- 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 +30 -21
- package/build/cjs/text-transform/common.js.map +1 -1
- package/build/cjs/text-transform/config.js +58 -24
- 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 +11 -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.d.ts +1 -0
- 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.d.ts +76 -0
- 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.d.ts +76 -0
- 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/FoldableList/FoldableList.css +13 -0
- package/build/esm/blocks/FoldableList/FoldableList.d.ts +4 -0
- package/build/esm/blocks/FoldableList/FoldableList.js +29 -0
- package/build/esm/blocks/FoldableList/FoldableList.js.map +1 -0
- package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.css +100 -0
- package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.d.ts +3 -0
- package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js +18 -0
- package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js.map +1 -0
- package/build/esm/blocks/FoldableList/schema.d.ts +140 -0
- package/build/esm/blocks/FoldableList/schema.js +35 -0
- package/build/esm/blocks/FoldableList/schema.js.map +1 -0
- 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.css +12 -1
- package/build/esm/blocks/Header/Header.js +15 -9
- package/build/esm/blocks/Header/Header.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +10 -0
- package/build/esm/blocks/Header/schema.js +14 -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.d.ts +5 -0
- package/build/esm/blocks/HeaderSlider/schema.js +7 -4
- 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/Share.css +3 -2
- package/build/esm/blocks/Share/Share.js +3 -4
- package/build/esm/blocks/Share/Share.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/Arrow/Arrow.css +13 -13
- package/build/esm/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/esm/blocks/Slider/Arrow/Arrow.js.map +1 -1
- package/build/esm/blocks/Slider/Slider.css +2 -2
- package/build/esm/blocks/Slider/Slider.d.ts +1 -1
- package/build/esm/blocks/Slider/Slider.js +7 -4
- 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/useSlider.d.ts +1 -1
- package/build/esm/blocks/Slider/useSlider.js +1 -3
- package/build/esm/blocks/Slider/useSlider.js.map +1 -1
- package/build/esm/blocks/Slider/useSliderPagination.d.ts +1 -1
- package/build/esm/blocks/Slider/utils.d.ts +1 -1
- package/build/esm/blocks/Slider/utils.js +6 -2
- package/build/esm/blocks/Slider/utils.js.map +1 -1
- package/build/esm/blocks/SliderOld/Arrow/Arrow.css +1 -1
- package/build/esm/blocks/SliderOld/SliderOld.js +17 -14
- package/build/esm/blocks/SliderOld/SliderOld.js.map +1 -1
- package/build/esm/blocks/SliderOld/schema.js +6 -1
- package/build/esm/blocks/SliderOld/schema.js.map +1 -1
- package/build/esm/blocks/SliderOld/utils.js +8 -5
- package/build/esm/blocks/SliderOld/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/TabContent/TabContent.css +78 -0
- package/build/esm/blocks/Tabs/TabContent/TabContent.d.ts +13 -0
- package/build/esm/blocks/Tabs/TabContent/TabContent.js +66 -0
- package/build/esm/blocks/Tabs/TabContent/TabContent.js.map +1 -0
- package/build/esm/blocks/Tabs/Tabs.css +0 -72
- package/build/esm/blocks/Tabs/Tabs.js +13 -59
- 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/blocks/index.d.ts +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/blocks/index.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 +2 -2
- 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.d.ts +1 -0
- 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/ButtonTabs/ButtonTabs.d.ts +2 -0
- package/build/esm/components/ButtonTabs/ButtonTabs.js +3 -2
- package/build/esm/components/ButtonTabs/ButtonTabs.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.css +3 -0
- package/build/esm/components/FullscreenImage/FullscreenImage.js +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -3
- package/build/esm/components/HTML/HTML.js +7 -4
- package/build/esm/components/HTML/HTML.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/Image.d.ts +4 -2
- package/build/esm/components/Image/Image.js +21 -8
- package/build/esm/components/Image/Image.js.map +1 -1
- package/build/esm/components/Image/schema.d.ts +95 -0
- package/build/esm/components/Image/schema.js +55 -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 +14 -13
- 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.css +1 -0
- 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 +7 -4
- package/build/esm/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/esm/components/YFMWrapper/YFMWrapper.js +3 -5
- package/build/esm/components/YFMWrapper/YFMWrapper.js.map +1 -1
- package/build/esm/components/YandexForm/YandexForm.js +21 -6
- 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/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/constructor-items.js.map +1 -1
- package/build/esm/containers/Loadable/Loadable.js +4 -4
- 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/projectSettingsContext/ProjectSettingsContext.d.ts +2 -0
- package/build/esm/context/projectSettingsContext/ProjectSettingsContext.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 +5 -2
- 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/editor/widget/utils.js +1 -1
- package/build/esm/editor/widget/utils.js.map +1 -1
- package/build/esm/grid/Col/Col.d.ts +3 -2
- package/build/esm/grid/Col/Col.js +2 -3
- package/build/esm/grid/Col/Col.js.map +1 -1
- package/build/esm/grid/Row/Row.d.ts +4 -3
- package/build/esm/grid/Row/Row.js +2 -2
- package/build/esm/grid/Row/Row.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/internal-typings/global.d.ts +1 -0
- package/build/esm/models/constructor-items/blocks.d.ts +21 -3
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor-items/common.d.ts +16 -6
- package/build/esm/models/constructor-items/common.js +7 -0
- package/build/esm/models/constructor-items/common.js.map +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/esm/models/constructor-items/sub-blocks.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/Navigation/Navigation.d.ts +1 -0
- package/build/esm/navigation/components/Navigation/Navigation.js +2 -2
- package/build/esm/navigation/components/Navigation/Navigation.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 +3 -4
- 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/NavigationPopup/NavigationPopup.css +2 -0
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +13 -5
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.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/models.d.ts +1 -0
- package/build/esm/navigation/models.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.d.ts +19 -0
- package/build/esm/schema/constants.js +35 -3
- 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/blocks.d.ts +2 -0
- package/build/esm/schema/validators/blocks.js +2 -0
- package/build/esm/schema/validators/blocks.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.d.ts +19 -0
- 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/HubspotFormContainer.d.ts +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js +5 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js.map +1 -1
- package/build/esm/sub-blocks/HubspotForm/index.js +5 -5
- 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/HubspotForm/setHubspotDefaultValues.d.ts +2 -0
- package/build/esm/sub-blocks/HubspotForm/setHubspotDefaultValues.js +47 -0
- package/build/esm/sub-blocks/HubspotForm/setHubspotDefaultValues.js.map +1 -0
- 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 +30 -21
- package/build/esm/text-transform/common.js.map +1 -1
- package/build/esm/text-transform/config.js +59 -25
- 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 +11 -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.d.ts +1 -0
- 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 +19 -21
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +21 -3
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/models/constructor-items/common.d.ts +16 -6
- package/server/models/constructor-items/common.js +8 -1
- package/server/models/constructor-items/sub-blocks.d.ts +2 -1
- package/server/text-transform/config.js +25 -1
- package/server/text-transform/utils.js +4 -1
- package/server/utils/hubspot.d.ts +1 -0
- package/widget/{5287.index.js → 1092.index.js} +1 -1
- package/widget/{8092.index.js → 1130.index.js} +1 -1
- package/widget/1219.index.js +1 -0
- package/widget/{2390.index.js → 122.index.js} +1 -1
- package/widget/{6817.index.js → 1289.index.js} +1 -1
- package/widget/{2921.index.js → 1335.index.js} +1 -1
- package/widget/{1876.index.js → 1340.index.js} +1 -1
- package/widget/{3901.index.js → 1349.index.js} +1 -1
- package/widget/1532.index.js +1 -0
- package/widget/{2957.index.js → 1750.index.js} +1 -1
- package/widget/{5105.index.js → 1995.index.js} +1 -1
- package/widget/{5418.index.js → 2010.index.js} +1 -1
- package/widget/{9517.index.js → 2026.index.js} +1 -1
- package/widget/2042.index.js +1 -0
- package/widget/{1794.index.js → 2187.index.js} +1 -1
- package/widget/{7548.index.js → 2218.index.js} +1 -1
- package/widget/225.index.js +1 -0
- package/widget/2338.index.js +1 -0
- package/widget/{4653.index.js → 2355.index.js} +1 -1
- package/widget/{5001.index.js → 2369.index.js} +1 -1
- package/widget/{4127.index.js → 2487.index.js} +1 -1
- package/widget/{6165.index.js → 2498.index.js} +1 -1
- package/widget/{5254.index.js → 2509.index.js} +1 -1
- package/widget/2544.index.js +1 -1
- package/widget/2619.index.js +1 -0
- package/widget/{5941.index.js → 2673.index.js} +1 -1
- package/widget/{4717.index.js → 2698.index.js} +1 -1
- package/widget/{7427.index.js → 2706.index.js} +1 -1
- package/widget/2723.index.js +1 -0
- package/widget/{8602.index.js → 2739.index.js} +1 -1
- package/widget/2745.index.js +1 -0
- package/widget/2796.index.js +1 -0
- package/widget/{7573.index.js → 2830.index.js} +1 -1
- package/widget/{3237.index.js → 2878.index.js} +1 -1
- package/widget/292.index.js +1 -0
- package/widget/2979.index.js +1 -0
- package/widget/3187.index.js +1 -0
- package/widget/321.index.js +1 -0
- package/widget/{5437.index.js → 3222.index.js} +1 -1
- package/widget/{1987.index.js → 3225.index.js} +1 -1
- package/widget/{7719.index.js → 3309.index.js} +1 -1
- package/widget/3392.index.js +1 -0
- package/widget/{4254.index.js → 3433.index.js} +1 -1
- package/widget/{2722.index.js → 3473.index.js} +1 -1
- package/widget/3532.index.js +1 -0
- package/widget/3562.index.js +1 -0
- package/widget/{6148.index.js → 3672.index.js} +1 -1
- package/widget/{4990.index.js → 3713.index.js} +1 -1
- package/widget/{8894.index.js → 3860.index.js} +1 -1
- package/widget/{5551.index.js → 3900.index.js} +1 -1
- package/widget/{6629.index.js → 4007.index.js} +1 -1
- package/widget/{7467.index.js → 4061.index.js} +1 -1
- package/widget/{5423.index.js → 4072.index.js} +1 -1
- package/widget/{4144.index.js → 4173.index.js} +1 -1
- package/widget/4288.index.js +1 -0
- package/widget/{8242.index.js → 4309.index.js} +1 -1
- package/widget/{8146.index.js → 4334.index.js} +1 -1
- package/widget/{9339.index.js → 4405.index.js} +1 -1
- package/widget/4457.index.js +1 -0
- package/widget/{8768.index.js → 4485.index.js} +1 -1
- package/widget/4509.index.js +1 -0
- package/widget/{4067.index.js → 4608.index.js} +1 -1
- package/widget/465.index.js +1 -0
- package/widget/{7118.index.js → 4719.index.js} +1 -1
- package/widget/4734.index.js +1 -0
- package/widget/4780.index.js +1 -0
- package/widget/4895.index.js +1 -0
- package/widget/{790.index.js → 494.index.js} +1 -1
- package/widget/5012.index.js +1 -0
- package/widget/{4722.index.js → 5084.index.js} +1 -1
- package/widget/5285.index.js +1 -0
- package/widget/5376.index.js +1 -0
- package/widget/539.index.js +1 -0
- package/widget/5414.index.js +1 -0
- package/widget/{8980.index.js → 5513.index.js} +1 -1
- package/widget/5530.index.js +1 -0
- package/widget/5571.index.js +1 -0
- package/widget/{8540.index.js → 5592.index.js} +1 -1
- package/widget/5616.index.js +1 -0
- package/widget/{5903.index.js → 5662.index.js} +1 -1
- package/widget/{7109.index.js → 5665.index.js} +1 -1
- package/widget/{8792.index.js → 5681.index.js} +1 -1
- package/widget/5760.index.js +1 -0
- package/widget/{6257.index.js → 5811.index.js} +1 -1
- package/widget/{5054.index.js → 5826.index.js} +1 -1
- package/widget/{1560.index.js → 5877.index.js} +1 -1
- package/widget/{9149.index.js → 5944.index.js} +1 -1
- package/widget/{8341.index.js → 5977.index.js} +1 -1
- package/widget/{3646.index.js → 5993.index.js} +1 -1
- package/widget/{2009.index.js → 6007.index.js} +1 -1
- package/widget/{3852.index.js → 6033.index.js} +1 -1
- package/widget/{5567.index.js → 6101.index.js} +1 -1
- package/widget/6173.index.js +1 -0
- package/widget/623.index.js +1 -0
- package/widget/{7989.index.js → 6290.index.js} +1 -1
- package/widget/6328.index.js +1 -0
- package/widget/6353.index.js +1 -0
- package/widget/6364.index.js +1 -0
- package/widget/{7387.index.js → 6400.index.js} +1 -1
- package/widget/{5473.index.js → 6462.index.js} +1 -1
- package/widget/6463.index.js +1 -0
- package/widget/6467.index.js +1 -0
- package/widget/{6622.index.js → 6481.index.js} +1 -1
- package/widget/{4888.index.js → 6605.index.js} +1 -1
- package/widget/{2966.index.js → 6803.index.js} +1 -1
- package/widget/{5627.index.js → 6847.index.js} +1 -1
- package/widget/6887.index.js +1 -0
- package/widget/{2019.index.js → 7081.index.js} +1 -1
- package/widget/7205.index.js +1 -0
- package/widget/{5596.index.js → 7250.index.js} +1 -1
- package/widget/{7763.index.js → 7317.index.js} +1 -1
- package/widget/7329.index.js +1 -0
- package/widget/{5159.index.js → 7406.index.js} +1 -1
- package/widget/{7632.index.js → 7409.index.js} +1 -1
- package/widget/{3783.index.js → 7420.index.js} +1 -1
- package/widget/{7101.index.js → 7439.index.js} +1 -1
- package/widget/7458.index.js +1 -0
- package/widget/7570.index.js +1 -0
- package/widget/7627.index.js +1 -0
- package/widget/{9197.index.js → 7674.index.js} +1 -1
- package/widget/{5805.index.js → 7690.index.js} +1 -1
- package/widget/{2641.index.js → 7741.index.js} +1 -1
- package/widget/{4724.index.js → 7933.index.js} +1 -1
- package/widget/{9132.index.js → 8003.index.js} +1 -1
- package/widget/813.index.js +1 -0
- package/widget/{6513.index.js → 8142.index.js} +1 -1
- package/widget/{8562.index.js → 8298.index.js} +1 -1
- package/widget/{7200.index.js → 8361.index.js} +1 -1
- package/widget/{4855.index.js → 8418.index.js} +1 -1
- package/widget/8446.index.js +1 -0
- package/widget/860.index.js +1 -0
- package/widget/{1796.index.js → 8615.index.js} +1 -1
- package/widget/{6312.index.js → 8660.index.js} +1 -1
- package/widget/880.index.js +1 -0
- package/widget/8804.index.js +1 -0
- package/widget/8809.index.js +1 -0
- package/widget/{9157.index.js → 8928.index.js} +1 -1
- package/widget/912.index.js +1 -0
- package/widget/9160.index.js +1 -0
- package/widget/{5914.index.js → 9252.index.js} +1 -1
- package/widget/{3706.index.js → 9286.index.js} +1 -1
- package/widget/{2502.index.js → 9294.index.js} +1 -1
- package/widget/9340.index.js +1 -0
- package/widget/{9182.index.js → 9423.index.js} +1 -1
- package/widget/{8477.index.js → 9464.index.js} +1 -1
- package/widget/950.index.js +1 -0
- package/widget/952.index.js +1 -0
- package/widget/9677.index.js +1 -0
- package/widget/9751.index.js +1 -0
- package/widget/{3220.index.js → 9836.index.js} +1 -1
- package/widget/{2376.index.js → 9865.index.js} +1 -1
- package/widget/{5109.index.js → 9881.index.js} +1 -1
- package/widget/9911.index.js +1 -1
- package/widget/{7822.index.js → 9964.index.js} +1 -1
- package/widget/9979.index.js +1 -0
- package/widget/{9091.index.js → 9990.index.js} +1 -1
- package/widget/9998.index.js +1 -0
- package/widget/index.js +1 -1
- package/widget/1113.index.js +0 -1
- package/widget/123.index.js +0 -1
- package/widget/1573.index.js +0 -1
- package/widget/2030.index.js +0 -1
- package/widget/229.index.js +0 -1
- package/widget/261.index.js +0 -1
- package/widget/302.index.js +0 -1
- package/widget/3035.index.js +0 -1
- package/widget/313.index.js +0 -1
- package/widget/3521.index.js +0 -1
- package/widget/3864.index.js +0 -1
- package/widget/3939.index.js +0 -1
- package/widget/4017.index.js +0 -1
- package/widget/4149.index.js +0 -1
- package/widget/4502.index.js +0 -1
- package/widget/466.index.js +0 -1
- package/widget/504.index.js +0 -1
- package/widget/5321.index.js +0 -1
- package/widget/5742.index.js +0 -1
- package/widget/5817.index.js +0 -1
- package/widget/600.index.js +0 -1
- package/widget/6023.index.js +0 -1
- package/widget/6159.index.js +0 -1
- package/widget/617.index.js +0 -1
- package/widget/6183.index.js +0 -1
- package/widget/6509.index.js +0 -1
- package/widget/6636.index.js +0 -1
- package/widget/6831.index.js +0 -1
- package/widget/6953.index.js +0 -1
- package/widget/7296.index.js +0 -1
- package/widget/7486.index.js +0 -1
- package/widget/7496.index.js +0 -1
- package/widget/7553.index.js +0 -1
- package/widget/758.index.js +0 -1
- package/widget/772.index.js +0 -1
- package/widget/7797.index.js +0 -1
- package/widget/8066.index.js +0 -1
- package/widget/8507.index.js +0 -1
- package/widget/8529.index.js +0 -1
- package/widget/8727.index.js +0 -1
- package/widget/8864.index.js +0 -1
- package/widget/8889.index.js +0 -1
- package/widget/953.index.js +0 -1
- package/widget/9670.index.js +0 -1
- package/widget/9682.index.js +0 -1
- package/widget/9928.index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"../../../../src","sources":["schema/validators/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,KAAK,GACR,8BAAqB;AAEtB,OAAO,EAA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AE,EAAC,IAAI,EAAE,QAAQ,EAAC;SAC1B;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;QACD,KAAK,EAAE,eAAe;KACzB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;KACjB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,QAAQ;KACjB;IACD,EAAE,EAAE;QACA,IAAI,EAAE,QAAQ;KACjB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,UAAU;KACpB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,MAAM,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,KAAK,EAAE;QACH,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,MAAM;aACrB;4CAEM,UAAU,KACb,UAAU,EAAE,SAAS;SAE5B;KACJ;IACD,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,UAAU;KACxB;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n CustomControlsButtonPositioning,\n CustomControlsType,\n MediaVideoControlsType,\n QuoteType,\n Theme,\n} from '../../models';\n\nimport {AnalyticsEventSchema} from './event';\n\nexport const mediaDirection = ['media-content', 'content-media'];\nexport const textSize = ['s', 'm', 'l'];\nexport const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];\nexport const sliderSizesArray = ['sm', 'md', 'lg', 'xl'];\nexport const contentSizes = ['s', 'm', 'l'];\nexport const contentTextWidth = ['s', 'm', 'l'];\n\nexport const videoTypes = ['default', 'player'];\nexport const playIconTypes = ['default', 'text'];\nexport const playIconThemes = ['blue', 'grey'];\nexport const videoControlsTypes = [MediaVideoControlsType.Default, MediaVideoControlsType.Custom];\nexport const fileLinkTypes = ['vertical', 'horizontal'];\n\nexport const dividerEnum = {enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']};\nexport const sizeNumber = {type: 'number', maximum: 12, minimum: 1};\nexport const contentThemes = ['default', 'dark', 'light'];\nexport const quoteTypes = Object.values(QuoteType);\nexport const mediaView = ['fit', 'full'];\nexport const customControlsType = [\n CustomControlsType.WithMuteButton,\n CustomControlsType.WithPlayPauseButton,\n];\nexport const customControlsButtonPositioning = [\n CustomControlsButtonPositioning.Center,\n CustomControlsButtonPositioning.Left,\n CustomControlsButtonPositioning.Right,\n];\n\nexport const BaseProps = {\n type: {},\n when: {\n type: 'string',\n },\n};\n\nexport const CardLayoutProps = {\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n};\n\nexport const containerSizesObject = {\n type: 'object',\n additionalProperties: false,\n properties: containerSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n};\n\nexport const sliderSizesObject = {\n oneOf: [\n {\n type: 'object',\n additionalProperties: false,\n properties: sliderSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n optionName: 'custom',\n },\n {\n type: 'number',\n optionName: 'constant',\n },\n ],\n};\n\nexport const AnimatableProps = {\n animated: {\n type: 'boolean',\n },\n};\n\nexport const ChildrenProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/children'},\n};\n\nexport const ChildrenCardsProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/cards'},\n};\n\nexport const LoopProps = {\n type: 'object',\n additionalProperties: false,\n required: ['start'],\n properties: {\n start: {\n type: 'number',\n },\n end: {\n type: 'number',\n },\n },\n};\n\nexport const PlayButtonProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: playIconTypes,\n },\n theme: {\n type: 'string',\n enum: playIconThemes,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport const CustomControlsOptionsProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: customControlsType,\n },\n muteButtonShown: {\n type: 'boolean',\n },\n positioning: {\n type: 'string',\n enum: customControlsButtonPositioning,\n },\n },\n};\n\nexport const VideoProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n loop: {\n oneOf: [\n {\n ...LoopProps,\n optionName: 'options',\n },\n {\n type: 'boolean',\n optionName: 'enabled',\n },\n ],\n },\n type: {\n type: 'string',\n enum: videoTypes,\n },\n muted: {\n type: 'boolean',\n },\n autoplay: {\n type: 'boolean',\n },\n elapsedTime: {\n type: 'number',\n },\n playButton: PlayButtonProps,\n controls: {\n type: 'string',\n enum: videoControlsTypes,\n },\n customControlsOptions: CustomControlsOptionsProps,\n ariaLabel: {\n type: 'string',\n },\n contain: {\n type: 'boolean',\n },\n },\n};\n\nexport const ThemeProps = {\n type: 'string',\n enum: ['light', 'dark'],\n};\n\nexport const JustifyProps = {\n type: 'string',\n enum: ['start', 'center', 'end'],\n};\n\nexport const DataLensObjectProps = {\n type: 'object',\n additionalProperties: false,\n required: ['id'],\n properties: {\n id: {\n type: 'string',\n },\n theme: ThemeProps,\n },\n};\n\nexport const DataLensProps = {\n oneOf: [\n {\n type: 'string',\n optionName: 'id',\n },\n {\n ...DataLensObjectProps,\n optionName: 'options',\n },\n ],\n};\n\nexport const BackgroundProps = {\n additionalProperties: false,\n properties: {\n ...AnimatableProps,\n image: ImageProps,\n color: {\n type: 'string',\n },\n video: VideoProps,\n height: {\n type: 'number',\n },\n size: {\n type: 'string',\n enum: ['contain', 'cover'],\n },\n parallax: {\n type: 'boolean',\n },\n fullWidthMedia: {\n type: 'boolean',\n },\n },\n};\n\nexport const LinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n ...BaseProps,\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n arrow: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: ['back', 'file-link', 'normal'],\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n\nexport const FileLinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['href', 'text'],\n properties: {\n href: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n type: {\n type: 'string',\n enum: fileLinkTypes,\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n },\n};\n\nexport const authorItem = {\n type: 'object',\n required: ['firstName', 'secondName'],\n properties: {\n firstName: {\n type: 'string',\n contentType: 'text',\n },\n secondName: {\n type: 'string',\n contentType: 'text',\n },\n avatar: ImageProps,\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nexport const ButtonProps = {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n primary: {\n type: 'boolean',\n },\n size: {\n type: 'string',\n enum: [\n 'xs', // deprecated, use 's'\n 'ns', // deprecated, use 's'\n 's',\n 'n', // deprecated, use 'l'\n 'm',\n 'l',\n 'xl',\n 'head', // deprecated, use 'l'\n 'promo', // deprecated, use 'xl'\n ],\n },\n theme: {\n type: 'string',\n enum: [\n 'normal',\n 'action',\n 'outlined',\n 'outlined-info',\n 'outlined-danger',\n 'raised',\n 'flat',\n 'flat-info',\n 'flat-danger',\n 'flat-secondary',\n 'clear',\n 'normal-contrast',\n 'outlined-contrast',\n 'flat-contrast',\n 'link', // deprecated, use 'outlined-info'\n 'pseudo', // deprecated, use 'outlined'\n 'pseudo-special', // deprecated, use 'outlined-contrast'\n 'websearch', // deprecated, use 'action'\n 'normal-dark', // deprecated, use 'outlined-contrast'\n 'normal-special', // deprecated, use 'normal-contrast'\n 'accent', // deprecated, use 'action'\n 'dark-grey', // deprecated, use 'github'\n 'app-store',\n 'google-play',\n 'scale',\n 'github',\n 'monochrome',\n ],\n },\n img: {\n oneOf: [\n {\n type: 'string',\n optionName: 'url',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: ['data'],\n properties: {\n data: {\n type: 'string',\n },\n position: {\n type: 'string',\n enum: ['left', 'right'],\n },\n alt: {\n type: 'string',\n contentType: 'text',\n },\n },\n optionName: 'options',\n },\n ],\n },\n analyticsEvents: {\n oneOf: [\n {...AnalyticsEventSchema, optionName: 'single'},\n {type: 'array', items: AnalyticsEventSchema, optionName: 'list'},\n ],\n },\n target: {\n type: 'string',\n enum: ['_self', '_blank', '_parent', '_top'],\n },\n width: {\n type: 'string',\n enum: ['auto', 'max'],\n },\n};\n\nexport const MenuProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport function withTheme<T extends object>(value: T) {\n return {\n oneOf: [\n {\n ...value,\n optionName: 'no theme',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: [Theme.Light],\n properties: Object.values(Theme).reduce(\n (result, themeName) => ({\n ...result,\n [themeName]: value,\n }),\n {},\n ),\n optionName: 'themes',\n },\n ],\n };\n}\n\nexport const AnchorProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n },\n};\n\nexport const BlockBaseProps = {\n ...BaseProps,\n anchor: AnchorProps,\n visible: {\n type: 'string',\n enum: containerSizesArray,\n },\n resetPaddings: {\n type: 'boolean',\n },\n context: {\n type: 'string',\n },\n indent: {\n type: 'object',\n additionalProperties: false,\n properties: {\n top: dividerEnum,\n bottom: dividerEnum,\n },\n },\n};\n\nexport const TitleProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n resetMargin: {\n type: 'boolean',\n },\n },\n};\n\nexport const ButtonBlock = {\n type: 'object',\n additionalProperties: false,\n properties: ButtonProps,\n if: {\n properties: {\n theme: {\n enum: ['app-store', 'google-play'],\n },\n },\n },\n then: {\n required: ['url'],\n },\n else: {\n required: ['text', 'url'],\n },\n};\n\nconst IframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'string',\n },\n name: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n height: {\n type: 'number',\n },\n width: {\n type: 'number',\n },\n },\n};\n\nexport const MediaProps = {\n color: {\n type: 'string',\n },\n image: {\n oneOf: [\n {...ImageProps, optionName: 'single'},\n {type: 'array', items: ImageProps, optionName: 'list'},\n ],\n },\n disableImageSliderForArrayInput: {\n type: 'boolean',\n },\n video: VideoProps,\n youtube: {\n type: 'string',\n },\n videoIframe: {\n type: 'string',\n },\n autoplay: {\n type: 'boolean',\n },\n parallax: {\n type: 'boolean',\n },\n height: {\n type: 'number',\n },\n previewImg: {\n type: 'string',\n },\n dataLens: DataLensProps,\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n anyOf: [AnalyticsEventSchema, {type: 'array', items: AnalyticsEventSchema}],\n },\n ratio: {\n type: ['number', 'string'],\n pattern: '^auto$',\n },\n iframe: {\n ...IframeProps,\n },\n margins: {\n type: 'boolean',\n },\n};\n\nexport const YMapMarkerLabel = {\n type: 'object',\n required: [],\n properties: {\n iconCaption: {\n type: 'string',\n },\n iconContent: {\n type: 'string',\n },\n iconColor: {\n type: 'string',\n },\n preset: {\n type: 'string',\n },\n },\n};\n\nexport const YMapMarker = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n coordinate: {\n type: 'array',\n items: {type: 'number'},\n },\n address: {\n type: 'string',\n },\n label: YMapMarkerLabel,\n },\n};\n\nexport const MapProps = {\n zoom: {\n type: 'number',\n },\n address: {\n type: 'string',\n },\n id: {\n type: 'string',\n },\n markers: {\n type: 'array',\n items: YMapMarker,\n },\n};\n\nexport const BorderProps = {\n type: 'string',\n enum: ['line', 'shadow', 'none'],\n};\n\nexport const CardBase = {\n border: BorderProps,\n};\n\nexport const BlockHeaderProps = {\n title: {\n oneOf: [\n {\n type: 'string',\n optionName: 'text',\n },\n {\n ...TitleProps,\n optionName: 'options',\n },\n ],\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"../../../../src","sources":["schema/validators/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,KAAK,GACR,8BAAqB;AAEtB,OAAO,EAAC,oBAAoB,EAAC,mBAAgB;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,GAAG,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ACjB;IACD,EAAE,EAAE;QACA,IAAI,EAAE,QAAQ;KACjB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,UAAU;KACpB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,MAAM,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,KAAK,EAAE;QACH,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,MAAM;aACrB;YACD;gBACI,GAAG,UAAU;gBACb,UAAU,EAAE,SAAS;aACxB;SACJ;KACJ;IACD,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,UAAU;KACxB;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n CustomControlsButtonPositioning,\n CustomControlsType,\n MediaVideoControlsType,\n QuoteType,\n Theme,\n} from '../../models';\n\nimport {AnalyticsEventSchema} from './event';\n\nexport const mediaDirection = ['media-content', 'content-media'];\nexport const textSize = ['s', 'm', 'l'];\nexport const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];\nexport const sliderSizesArray = ['sm', 'md', 'lg', 'xl'];\nexport const contentSizes = ['s', 'm', 'l'];\nexport const contentTextWidth = ['s', 'm', 'l'];\n\nexport const videoTypes = ['default', 'player'];\nexport const playIconTypes = ['default', 'text'];\nexport const playIconThemes = ['blue', 'grey'];\nexport const videoControlsTypes = [MediaVideoControlsType.Default, MediaVideoControlsType.Custom];\nexport const fileLinkTypes = ['vertical', 'horizontal'];\n\nexport const dividerEnum = {enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']};\nexport const sizeNumber = {type: 'number', maximum: 12, minimum: 1};\nexport const contentThemes = ['default', 'dark', 'light'];\nexport const quoteTypes = Object.values(QuoteType);\nexport const mediaView = ['fit', 'full'];\nexport const customControlsType = [\n CustomControlsType.WithMuteButton,\n CustomControlsType.WithPlayPauseButton,\n];\nexport const customControlsButtonPositioning = [\n CustomControlsButtonPositioning.Center,\n CustomControlsButtonPositioning.Left,\n CustomControlsButtonPositioning.Right,\n];\n\nexport const BaseProps = {\n type: {},\n when: {\n type: 'string',\n },\n};\n\nexport const CardLayoutProps = {\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n};\n\nexport const containerSizesObject = {\n type: 'object',\n additionalProperties: false,\n properties: containerSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n};\n\nexport const sliderSizesObject = {\n oneOf: [\n {\n type: 'object',\n additionalProperties: false,\n properties: sliderSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n optionName: 'custom',\n },\n {\n type: 'number',\n optionName: 'constant',\n },\n ],\n};\n\nexport const AnimatableProps = {\n animated: {\n type: 'boolean',\n },\n};\n\nexport const ChildrenProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/children'},\n};\n\nexport const ChildrenCardsProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/cards'},\n};\n\nexport const LoopProps = {\n type: 'object',\n additionalProperties: false,\n required: ['start'],\n properties: {\n start: {\n type: 'number',\n },\n end: {\n type: 'number',\n },\n },\n};\n\nexport const PlayButtonProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: playIconTypes,\n },\n theme: {\n type: 'string',\n enum: playIconThemes,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport const CustomControlsOptionsProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: customControlsType,\n },\n muteButtonShown: {\n type: 'boolean',\n },\n positioning: {\n type: 'string',\n enum: customControlsButtonPositioning,\n },\n },\n};\n\nexport const VideoProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n loop: {\n oneOf: [\n {\n ...LoopProps,\n optionName: 'options',\n },\n {\n type: 'boolean',\n optionName: 'enabled',\n },\n ],\n },\n type: {\n type: 'string',\n enum: videoTypes,\n },\n muted: {\n type: 'boolean',\n },\n autoplay: {\n type: 'boolean',\n },\n elapsedTime: {\n type: 'number',\n },\n playButton: PlayButtonProps,\n controls: {\n type: 'string',\n enum: videoControlsTypes,\n },\n customControlsOptions: CustomControlsOptionsProps,\n ariaLabel: {\n type: 'string',\n },\n contain: {\n type: 'boolean',\n },\n },\n};\n\nexport const ThemeProps = {\n type: 'string',\n enum: ['light', 'dark'],\n};\n\nexport const JustifyProps = {\n type: 'string',\n enum: ['start', 'center', 'end'],\n};\n\nexport const DataLensObjectProps = {\n type: 'object',\n additionalProperties: false,\n required: ['id'],\n properties: {\n id: {\n type: 'string',\n },\n theme: ThemeProps,\n },\n};\n\nexport const DataLensProps = {\n oneOf: [\n {\n type: 'string',\n optionName: 'id',\n },\n {\n ...DataLensObjectProps,\n optionName: 'options',\n },\n ],\n};\n\nexport const BackgroundProps = {\n additionalProperties: false,\n properties: {\n ...AnimatableProps,\n image: ImageProps,\n color: {\n type: 'string',\n },\n video: VideoProps,\n height: {\n type: 'number',\n },\n size: {\n type: 'string',\n enum: ['contain', 'cover'],\n },\n parallax: {\n type: 'boolean',\n },\n fullWidthMedia: {\n type: 'boolean',\n },\n },\n};\n\nexport const LinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n ...BaseProps,\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n arrow: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: ['back', 'file-link', 'normal'],\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n\nexport const FileLinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['href', 'text'],\n properties: {\n href: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n type: {\n type: 'string',\n enum: fileLinkTypes,\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n },\n};\n\nexport const authorItem = {\n type: 'object',\n required: ['firstName', 'secondName'],\n properties: {\n firstName: {\n type: 'string',\n contentType: 'text',\n },\n secondName: {\n type: 'string',\n contentType: 'text',\n },\n avatar: ImageProps,\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nexport const ButtonProps = {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n primary: {\n type: 'boolean',\n },\n size: {\n type: 'string',\n enum: [\n 'xs', // deprecated, use 's'\n 'ns', // deprecated, use 's'\n 's',\n 'n', // deprecated, use 'l'\n 'm',\n 'l',\n 'xl',\n 'head', // deprecated, use 'l'\n 'promo', // deprecated, use 'xl'\n ],\n },\n theme: {\n type: 'string',\n enum: [\n 'normal',\n 'action',\n 'outlined',\n 'outlined-info',\n 'outlined-danger',\n 'raised',\n 'flat',\n 'flat-info',\n 'flat-danger',\n 'flat-secondary',\n 'clear',\n 'normal-contrast',\n 'outlined-contrast',\n 'flat-contrast',\n 'link', // deprecated, use 'outlined-info'\n 'pseudo', // deprecated, use 'outlined'\n 'pseudo-special', // deprecated, use 'outlined-contrast'\n 'websearch', // deprecated, use 'action'\n 'normal-dark', // deprecated, use 'outlined-contrast'\n 'normal-special', // deprecated, use 'normal-contrast'\n 'accent', // deprecated, use 'action'\n 'dark-grey', // deprecated, use 'github'\n 'app-store',\n 'google-play',\n 'scale',\n 'github',\n 'monochrome',\n ],\n },\n img: {\n oneOf: [\n {\n type: 'string',\n optionName: 'url',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: ['data'],\n properties: {\n data: {\n type: 'string',\n },\n position: {\n type: 'string',\n enum: ['left', 'right'],\n },\n alt: {\n type: 'string',\n contentType: 'text',\n },\n },\n optionName: 'options',\n },\n ],\n },\n analyticsEvents: {\n oneOf: [\n {...AnalyticsEventSchema, optionName: 'single'},\n {type: 'array', items: AnalyticsEventSchema, optionName: 'list'},\n ],\n },\n target: {\n type: 'string',\n enum: ['_self', '_blank', '_parent', '_top'],\n },\n width: {\n type: 'string',\n enum: ['auto', 'max'],\n },\n};\n\nexport const MenuProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport function withTheme<T extends object>(value: T) {\n return {\n oneOf: [\n {\n ...value,\n optionName: 'no theme',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: [Theme.Light],\n properties: Object.values(Theme).reduce(\n (result, themeName) => ({\n ...result,\n [themeName]: value,\n }),\n {},\n ),\n optionName: 'themes',\n },\n ],\n };\n}\n\nexport const AnchorProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n },\n};\n\nexport const BlockBaseProps = {\n ...BaseProps,\n anchor: AnchorProps,\n visible: {\n type: 'string',\n enum: containerSizesArray,\n },\n resetPaddings: {\n type: 'boolean',\n },\n context: {\n type: 'string',\n },\n indent: {\n type: 'object',\n additionalProperties: false,\n properties: {\n top: dividerEnum,\n bottom: dividerEnum,\n },\n },\n};\n\nexport const TitleProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n resetMargin: {\n type: 'boolean',\n },\n },\n};\n\nexport const ButtonBlock = {\n type: 'object',\n additionalProperties: false,\n properties: ButtonProps,\n if: {\n properties: {\n theme: {\n enum: ['app-store', 'google-play'],\n },\n },\n },\n then: {\n required: ['url'],\n },\n else: {\n required: ['text', 'url'],\n },\n};\n\nconst IframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'string',\n },\n name: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n height: {\n type: 'number',\n },\n width: {\n type: 'number',\n },\n },\n};\n\nexport const MediaProps = {\n color: {\n type: 'string',\n },\n image: {\n oneOf: [\n {...ImageProps, optionName: 'single'},\n {type: 'array', items: ImageProps, optionName: 'list'},\n ],\n },\n disableImageSliderForArrayInput: {\n type: 'boolean',\n },\n video: VideoProps,\n youtube: {\n type: 'string',\n },\n videoIframe: {\n type: 'string',\n },\n autoplay: {\n type: 'boolean',\n },\n parallax: {\n type: 'boolean',\n },\n height: {\n type: 'number',\n },\n previewImg: {\n type: 'string',\n },\n dataLens: DataLensProps,\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n anyOf: [AnalyticsEventSchema, {type: 'array', items: AnalyticsEventSchema}],\n },\n ratio: {\n type: ['number', 'string'],\n pattern: '^auto$',\n },\n iframe: {\n ...IframeProps,\n },\n margins: {\n type: 'boolean',\n },\n};\n\nexport const YMapMarkerLabel = {\n type: 'object',\n required: [],\n properties: {\n iconCaption: {\n type: 'string',\n },\n iconContent: {\n type: 'string',\n },\n iconColor: {\n type: 'string',\n },\n preset: {\n type: 'string',\n },\n },\n};\n\nexport const YMapMarker = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n coordinate: {\n type: 'array',\n items: {type: 'number'},\n },\n address: {\n type: 'string',\n },\n label: YMapMarkerLabel,\n },\n};\n\nexport const MapProps = {\n zoom: {\n type: 'number',\n },\n address: {\n type: 'string',\n },\n id: {\n type: 'string',\n },\n markers: {\n type: 'array',\n items: YMapMarker,\n },\n};\n\nexport const BorderProps = {\n type: 'string',\n enum: ['line', 'shadow', 'none'],\n};\n\nexport const CardBase = {\n border: BorderProps,\n};\n\nexport const BlockHeaderProps = {\n title: {\n oneOf: [\n {\n type: 'string',\n optionName: 'text',\n },\n {\n ...TitleProps,\n optionName: 'options',\n },\n ],\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n};\n"]}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
export const filteredItem = (itemsSchema) => (
|
|
1
|
+
export const filteredItem = (itemsSchema) => ({
|
|
2
|
+
...itemsSchema,
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
when: {
|
|
2
6
|
type: 'string',
|
|
3
|
-
}
|
|
7
|
+
},
|
|
8
|
+
...itemsSchema.properties,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
4
11
|
export const filteredArray = (itemsSchema) => ({
|
|
5
12
|
type: 'array',
|
|
6
13
|
items: filteredItem(itemsSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"../../../../src","sources":["schema/validators/utils.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,WAAyB,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"../../../../src","sources":["schema/validators/utils.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,WAAyB,EAAE,EAAE,CAAC,CAAC;IACxD,GAAG,WAAW;IACd,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,GAAG,WAAW,CAAC,UAAU;KAC5B;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,WAAyB,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC;CACnC,CAAC,CAAC","sourcesContent":["export interface ObjectSchema extends Record<string, unknown> {\n properties: object;\n}\n\nexport const filteredItem = (itemsSchema: ObjectSchema) => ({\n ...itemsSchema,\n type: 'object',\n properties: {\n when: {\n type: 'string',\n },\n ...itemsSchema.properties,\n },\n});\n\nexport const filteredArray = (itemsSchema: ObjectSchema) => ({\n type: 'array',\n items: filteredItem(itemsSchema),\n});\n"]}
|
|
@@ -13,7 +13,7 @@ const BackgroundCard = (props) => {
|
|
|
13
13
|
const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
|
|
14
14
|
const borderType = hasBackgroundColor ? 'none' : border;
|
|
15
15
|
const areControlsInFooter = !paddingBottom && controlPosition === 'footer';
|
|
16
|
-
return (_jsx(CardBase, { className: b({ padding: paddingBottom, theme: cardTheme }), contentClassName: b('content'), url: url, border: borderType, analyticsEvents: analyticsEvents, urlTitle: urlTitle, children: _jsxs(CardBase.Content, { children: [_jsx(BackgroundImage,
|
|
16
|
+
return (_jsx(CardBase, { className: b({ padding: paddingBottom, theme: cardTheme }), contentClassName: b('content'), url: url, border: borderType, analyticsEvents: analyticsEvents, urlTitle: urlTitle, children: _jsxs(CardBase.Content, { children: [_jsx(BackgroundImage, { className: b('image'), ...getThemedValue(background, theme), style: { backgroundColor } }), _jsx(Content, { titleId: titleId, title: title, text: text, additionalInfo: additionalInfo, size: "s", theme: cardTheme, links: links, buttons: buttons, list: list, colSizes: { all: 12, md: 12 }, controlPosition: areControlsInFooter ? 'bottom' : 'default' })] }) }));
|
|
17
17
|
};
|
|
18
18
|
export default BackgroundCard;
|
|
19
19
|
//# sourceMappingURL=BackgroundCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/BackgroundCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA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AE,QAAQ,YAElB,MAAC,QAAQ,CAAC,OAAO,eACb,KAAC,eAAe,IACZ,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,KACjB,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,EACrC,KAAK,EAAE,EAAC,eAAe,EAAC,GAC1B,EACF,KAAC,OAAO,IACJ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,EAC9B,IAAI,EAAC,GAAG,EACR,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAC3B,eAAe,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAC7D,IACa,GACZ,CACd,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {BackgroundImage, CardBase} from '../../components/';\nimport {useTheme} from '../../context/theme';\nimport {BackgroundCardProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\nimport Content from '../Content/Content';\n\nimport './BackgroundCard.scss';\n\nconst b = block('background-card');\n\nconst BackgroundCard = (props: BackgroundCardProps) => {\n const {\n url,\n title,\n text,\n border,\n background,\n paddingBottom,\n backgroundColor,\n additionalInfo,\n theme: cardTheme = 'default',\n links,\n buttons,\n analyticsEvents,\n urlTitle,\n controlPosition = 'content',\n list,\n } = props;\n\n const titleId = useUniqId();\n\n const theme = useTheme();\n const hasBackgroundColor = backgroundColor || cardTheme !== 'default';\n const borderType = hasBackgroundColor ? 'none' : border;\n const areControlsInFooter = !paddingBottom && controlPosition === 'footer';\n\n return (\n <CardBase\n className={b({padding: paddingBottom, theme: cardTheme})}\n contentClassName={b('content')}\n url={url}\n border={borderType}\n analyticsEvents={analyticsEvents}\n urlTitle={urlTitle}\n >\n <CardBase.Content>\n <BackgroundImage\n className={b('image')}\n {...getThemedValue(background, theme)}\n style={{backgroundColor}}\n />\n <Content\n titleId={titleId}\n title={title}\n text={text}\n additionalInfo={additionalInfo}\n size=\"s\"\n theme={cardTheme}\n links={links}\n buttons={buttons}\n list={list}\n colSizes={{all: 12, md: 12}}\n controlPosition={areControlsInFooter ? 'bottom' : 'default'}\n />\n </CardBase.Content>\n </CardBase>\n );\n};\n\nexport default BackgroundCard;\n"]}
|
|
@@ -53,6 +53,25 @@ export declare const BackgroundCard: {
|
|
|
53
53
|
type: string;
|
|
54
54
|
enum: string[];
|
|
55
55
|
};
|
|
56
|
+
hide: {
|
|
57
|
+
oneOf: ({
|
|
58
|
+
type: string;
|
|
59
|
+
properties?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
type: string;
|
|
62
|
+
properties: {
|
|
63
|
+
mobile: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
tablet: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
desktop: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
})[];
|
|
74
|
+
};
|
|
56
75
|
};
|
|
57
76
|
} & {
|
|
58
77
|
optionName: string;
|
|
@@ -8,28 +8,43 @@ export const BackgroundCard = {
|
|
|
8
8
|
'background-card': {
|
|
9
9
|
additionalProperties: false,
|
|
10
10
|
required: ['title', 'text'],
|
|
11
|
-
properties:
|
|
11
|
+
properties: {
|
|
12
|
+
...BaseProps,
|
|
13
|
+
...CardBase,
|
|
14
|
+
...CardLayoutProps,
|
|
15
|
+
...BackgroundCardContentProps,
|
|
16
|
+
url: {
|
|
12
17
|
type: 'string',
|
|
13
|
-
},
|
|
18
|
+
},
|
|
19
|
+
urlTitle: {
|
|
14
20
|
type: 'string',
|
|
15
|
-
},
|
|
21
|
+
},
|
|
22
|
+
background: withTheme(ImageObjectProps),
|
|
23
|
+
backgroundColor: {
|
|
16
24
|
type: 'string',
|
|
17
|
-
},
|
|
25
|
+
},
|
|
26
|
+
paddingBottom: {
|
|
18
27
|
type: 'string',
|
|
19
28
|
enum: ['s', 'm', 'l', 'xl'],
|
|
20
|
-
},
|
|
29
|
+
},
|
|
30
|
+
analyticsEvents: {
|
|
21
31
|
oneOf: [
|
|
22
|
-
|
|
32
|
+
{
|
|
33
|
+
...AnalyticsEventSchema,
|
|
34
|
+
optionName: 'single',
|
|
35
|
+
},
|
|
23
36
|
{
|
|
24
37
|
type: 'array',
|
|
25
38
|
items: AnalyticsEventSchema,
|
|
26
39
|
optionName: 'list',
|
|
27
40
|
},
|
|
28
41
|
],
|
|
29
|
-
},
|
|
42
|
+
},
|
|
43
|
+
controlPosition: {
|
|
30
44
|
type: 'string',
|
|
31
45
|
enum: ['content', 'footer'],
|
|
32
|
-
}
|
|
46
|
+
},
|
|
47
|
+
},
|
|
33
48
|
},
|
|
34
49
|
};
|
|
35
50
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,gBAAgB,EAAC,yCAAsC;AAC/D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAC,0CAAuC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,iBAAiB,EAAE;QACf,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,
|
|
1
|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AC;aAC9B;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageObjectProps} from '../../components/Image/schema';\nimport {BaseProps, CardBase, CardLayoutProps, withTheme} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../Content/schema';\n\nconst BackgroundCardContentProps = omit(ContentBase, ['size', 'controlPosition']);\n\nexport const BackgroundCard = {\n 'background-card': {\n additionalProperties: false,\n required: ['title', 'text'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...BackgroundCardContentProps,\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n background: withTheme(ImageObjectProps),\n backgroundColor: {\n type: 'string',\n },\n paddingBottom: {\n type: 'string',\n enum: ['s', 'm', 'l', 'xl'],\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n },\n },\n};\n"]}
|
|
@@ -13,7 +13,7 @@ export const BannerCard = (props) => {
|
|
|
13
13
|
}
|
|
14
14
|
return (_jsx("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: _jsxs("div", { className: b('content'), style: contentStyle, children: [_jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('text'), children: [_jsx(YFMWrapper, { tagName: "h2", contentClassName: b('title'), content: title, modifiers: {
|
|
15
15
|
constructor: true,
|
|
16
|
-
} }), subtitle && (_jsx(YFMWrapper, { contentClassName: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))] }), url && (_jsx(RouterLink, { href: url, children: _jsx(Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text
|
|
16
|
+
} }), subtitle && (_jsx(YFMWrapper, { contentClassName: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))] }), url && (_jsx(RouterLink, { href: url, children: _jsx(Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text ?? '', url: url, target: target }) }))] }), _jsx(BackgroundImage, { className: b('image'), src: getThemedValue(image, theme), disableCompress: disableCompress })] }) }));
|
|
17
17
|
};
|
|
18
18
|
export default BannerCard;
|
|
19
19
|
//# sourceMappingURL=BannerCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAC,kCAAyB;AACjF,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EAAE,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,QAAQ,EAAC,GAAG,EAAE,EAC/D,KAAK,EACL,KAAK,EAAE,SAAS,GAAG,OAAO,EAC1B,KAAK,EACL,eAAe,EACf,SAAS,GAAG,MAAM,GACrB,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAA2B,EAAE,CAAC;IAEhD,IAAI,KAAK,EAAE,CAAC;QACR,YAAY,CAAC,eAAe,GAAG,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAC,CAAC,YAC5D,eAAK,SAAS,EAAE,CAA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CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACjC,eAAe,EAAE,eAAe,GAClC,IACA,GACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import {BackgroundImage, Button, RouterLink, YFMWrapper} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {BannerCardProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './BannerCard.scss';\n\nconst b = block('banner-card');\n\nexport const BannerCard = (props: BannerCardProps) => {\n const {\n title,\n subtitle,\n button: {url, text, target, theme: buttonTheme = 'raised'} = {},\n color,\n theme: textTheme = 'light',\n image,\n disableCompress,\n mediaView = 'full',\n } = props;\n const theme = useTheme();\n const contentStyle: Record<string, string> = {};\n\n if (color) {\n contentStyle.backgroundColor = getThemedValue(color, theme);\n }\n\n return (\n <div className={b({theme: textTheme, ['media-view']: mediaView})}>\n <div className={b('content')} style={contentStyle}>\n <div className={b('info')}>\n <div className={b('text')}>\n <YFMWrapper\n tagName=\"h2\"\n contentClassName={b('title')}\n content={title}\n modifiers={{\n constructor: true,\n }}\n />\n {subtitle && (\n <YFMWrapper\n contentClassName={b('subtitle')}\n content={subtitle}\n modifiers={{constructor: true}}\n />\n )}\n </div>\n\n {url && (\n <RouterLink href={url}>\n <Button\n className={b('button')}\n theme={buttonTheme}\n size=\"xl\"\n text={text ?? ''}\n url={url}\n target={target}\n />\n </RouterLink>\n )}\n </div>\n <BackgroundImage\n className={b('image')}\n src={getThemedValue(image, theme)}\n disableCompress={disableCompress}\n />\n </div>\n </div>\n );\n};\n\nexport default BannerCard;\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import { useUniqId } from '@gravity-ui/uikit';
|
|
4
3
|
import { CardBase, IconWrapper } from "../../components/index.js";
|
|
@@ -9,13 +8,13 @@ import Content from "../Content/Content.js";
|
|
|
9
8
|
import './BasicCard.css';
|
|
10
9
|
const b = block('basic-card');
|
|
11
10
|
const BasicCard = (props) => {
|
|
12
|
-
const { title, text, icon, additionalInfo, links, list, buttons, iconPosition = IconPosition.Top, controlPosition = 'content'
|
|
11
|
+
const { title, text, icon, additionalInfo, links, list, buttons, iconPosition = IconPosition.Top, controlPosition = 'content', ...cardParams } = props;
|
|
13
12
|
const titleId = useUniqId();
|
|
14
13
|
const descriptionId = useUniqId();
|
|
15
14
|
const areControlsInFooter = controlPosition === 'footer';
|
|
16
15
|
const theme = useTheme();
|
|
17
16
|
const themedIcon = getThemedValue(icon, theme);
|
|
18
|
-
return (_jsx(CardBase,
|
|
17
|
+
return (_jsx(CardBase, { className: b(), contentClassName: b('content'), ...cardParams, extraProps: { 'aria-describedby': descriptionId, 'aria-labelledby': titleId }, children: _jsx(CardBase.Content, { children: _jsx(IconWrapper, { icon: themedIcon ? { value: themedIcon, position: iconPosition } : undefined, className: b('wrapper'), children: _jsx(Content, { title: title, titleId: titleId, text: text, textId: descriptionId, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, size: "s", colSizes: { all: 12, md: 12 }, controlPosition: areControlsInFooter ? 'bottom' : 'default' }) }) }) }));
|
|
19
18
|
};
|
|
20
19
|
export default BasicCard;
|
|
21
20
|
//# sourceMappingURL=BasicCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/BasicCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BasicCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/BasicCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,QAAQ,EAAE,WAAW,EAAC,kCAAyB;AACvD,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,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E,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,GAAG,EACR,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAC3B,eAAe,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAC7D,GACQ,GACC,GACZ,CACd,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {CardBase, IconWrapper} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {BasicCardProps} from '../../models';\nimport {IconPosition} from '../../models/constructor-items/sub-blocks';\nimport {block, getThemedValue} from '../../utils';\nimport Content from '../Content/Content';\n\nimport './BasicCard.scss';\n\nconst b = block('basic-card');\n\nconst BasicCard = (props: BasicCardProps) => {\n const {\n title,\n text,\n icon,\n additionalInfo,\n links,\n list,\n buttons,\n iconPosition = IconPosition.Top,\n controlPosition = 'content',\n ...cardParams\n } = props;\n const titleId = useUniqId();\n const descriptionId = useUniqId();\n const areControlsInFooter = controlPosition === 'footer';\n const theme = useTheme();\n const themedIcon = getThemedValue(icon, theme);\n\n return (\n <CardBase\n className={b()}\n contentClassName={b('content')}\n {...cardParams}\n extraProps={{'aria-describedby': descriptionId, 'aria-labelledby': titleId}}\n >\n <CardBase.Content>\n <IconWrapper\n icon={themedIcon ? {value: themedIcon, position: iconPosition} : undefined}\n className={b('wrapper')}\n >\n <Content\n title={title}\n titleId={titleId}\n text={text}\n textId={descriptionId}\n additionalInfo={additionalInfo}\n links={links}\n list={list}\n buttons={buttons}\n size=\"s\"\n colSizes={{all: 12, md: 12}}\n controlPosition={areControlsInFooter ? 'bottom' : 'default'}\n />\n </IconWrapper>\n </CardBase.Content>\n </CardBase>\n );\n};\n\nexport default BasicCard;\n"]}
|
|
@@ -7,20 +7,31 @@ export const BasicCard = {
|
|
|
7
7
|
'basic-card': {
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
required: [],
|
|
10
|
-
properties:
|
|
10
|
+
properties: {
|
|
11
|
+
...BaseProps,
|
|
12
|
+
...CardBase,
|
|
13
|
+
...CardLayoutProps,
|
|
14
|
+
...BasicCardContentProps,
|
|
15
|
+
url: {
|
|
11
16
|
type: 'string',
|
|
12
|
-
},
|
|
17
|
+
},
|
|
18
|
+
urlTitle: {
|
|
13
19
|
type: 'string',
|
|
14
|
-
},
|
|
20
|
+
},
|
|
21
|
+
icon: ImageProps,
|
|
22
|
+
target: {
|
|
15
23
|
type: 'string',
|
|
16
24
|
enum: ['_blank', '_parent', '_top', '_self'],
|
|
17
|
-
},
|
|
25
|
+
},
|
|
26
|
+
iconPosition: {
|
|
18
27
|
type: 'string',
|
|
19
28
|
enum: ['top', 'left'],
|
|
20
|
-
},
|
|
29
|
+
},
|
|
30
|
+
controlPosition: {
|
|
21
31
|
type: 'string',
|
|
22
32
|
enum: ['content', 'footer'],
|
|
23
|
-
}
|
|
33
|
+
},
|
|
34
|
+
},
|
|
24
35
|
},
|
|
25
36
|
};
|
|
26
37
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAC,0CAAuC;AACpF,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEtF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAC,0CAAuC;AACpF,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEtF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,GAAG,eAAe;YAClB,GAAG,qBAAqB;YACxB,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB;YACD,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;aAC/C;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;aACxB;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;aAC9B;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageProps} from '../../components/Image/schema';\nimport {BaseProps, CardBase, CardLayoutProps} from '../../schema/validators/common';\nimport {ContentBase} from '../Content/schema';\n\nconst BasicCardContentProps = omit(ContentBase, ['size', 'theme', 'controlPosition']);\n\nexport const BasicCard = {\n 'basic-card': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...BasicCardContentProps,\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n icon: ImageProps,\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\n },\n iconPosition: {\n type: 'string',\n enum: ['top', 'left'],\n },\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n },\n },\n};\n"]}
|
|
@@ -26,7 +26,7 @@ const Content = (props) => {
|
|
|
26
26
|
const hasTitle = Boolean(title);
|
|
27
27
|
const defaultTitleId = useUniqId();
|
|
28
28
|
const titleId = titleIdFromProps || defaultTitleId;
|
|
29
|
-
return (_jsxs(Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && (_jsx(Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && (_jsx("div", { className: b('text', { ['without-title']: !hasTitle }), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId, qa: qaAttributes.list }) })),
|
|
29
|
+
return (_jsxs(Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && (_jsx(Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && (_jsx("div", { className: b('text', { ['without-title']: !hasTitle }), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId, qa: qaAttributes.list }) })), list?.length ? (_jsx("div", { className: b('list'), children: _jsx(ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && (_jsx("div", { className: b('notice'), children: _jsx(YFMWrapper, { content: additionalInfo, modifiers: {
|
|
30
30
|
constructor: true,
|
|
31
31
|
'constructor-notice': true,
|
|
32
32
|
[`constructor-size-${size}`]: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-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AC,CAAC,OAAO,EAAE,EAAC,IAAI,EAAC,CAAC,EAC7B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,YAAY,CAAC,KAAK,EACtB,MAAM,EAAE,YAAY,CAAC,IAAI,GAC3B,CACL,EACA,OAAO,IAAI,CACR,KAAC,OAAO,IACJ,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,CAAC,EAC/B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,YAAY,CAAC,OAAO,EACxB,QAAQ,EAAE,YAAY,CAAC,MAAM,GAC/B,CACL,IACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {Buttons, ContentList, Links, Title, YFMWrapper} from '../../components';\nimport {Col} from '../../grid';\nimport {\n ClassNameProps,\n ContentBlockProps,\n ContentSize,\n TextSize,\n TitleItemProps,\n} from '../../models';\nimport {QAProps} from '../../models/common';\nimport {block} from '../../utils';\nimport {getQaAttrubutes} from '../../utils/blocks';\n\nimport './Content.scss';\n\nconst b = block('content');\n\nfunction getTextSize(size: ContentSize): TextSize {\n switch (size) {\n case 's':\n return 's';\n case 'm':\n return 'sm';\n case 'l':\n default:\n return 'm';\n }\n}\n\nexport type ContentProps = ContentBlockProps & ClassNameProps & QAProps;\n\nconst Content = (props: ContentProps) => {\n const {\n title,\n titleId: titleIdFromProps,\n text,\n textId,\n additionalInfo,\n size = 'l',\n links,\n buttons,\n colSizes = {all: 12, sm: 8},\n centered,\n theme,\n className,\n list,\n qa,\n controlPosition,\n } = props;\n const qaAttributes = getQaAttrubutes(qa, ['links', 'link', 'buttons', 'button', 'list']);\n\n const titleProps =\n !title || typeof title === 'string'\n ? ({text: title, textSize: getTextSize(size)} as TitleItemProps)\n : title;\n\n const hasTitle = Boolean(title);\n const defaultTitleId = useUniqId();\n const titleId = titleIdFromProps || defaultTitleId;\n\n return (\n <Col\n className={b({size, centered, theme, 'control-position': controlPosition}, className)}\n reset\n sizes={colSizes}\n qa={qaAttributes.container}\n >\n {title && (\n <Title\n className={b('title')}\n title={titleProps}\n colSizes={{all: 12}}\n id={titleId}\n />\n )}\n {text && (\n <div className={b('text', {['without-title']: !hasTitle})}>\n <YFMWrapper\n content={text}\n modifiers={{constructor: true, [`constructor-size-${size}`]: true}}\n id={textId}\n qa={qaAttributes.list}\n />\n </div>\n )}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList list={list} size={size} qa={qaAttributes.list} theme={theme} />\n </div>\n ) : null}\n {additionalInfo && (\n <div className={b('notice')}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n 'constructor-notice': true,\n [`constructor-size-${size}`]: true,\n }}\n />\n </div>\n )}\n {links && (\n <Links\n className={b('links', {size})}\n size={size}\n links={links}\n titleId={titleId}\n qa={qaAttributes.links}\n linkQa={qaAttributes.link}\n />\n )}\n {buttons && (\n <Buttons\n className={b('buttons', {size})}\n size={size}\n buttons={buttons}\n titleId={titleId}\n qa={qaAttributes.buttons}\n buttonQa={qaAttributes.button}\n />\n )}\n </Col>\n );\n};\n\nexport default Content;\n"]}
|
|
@@ -24,7 +24,10 @@ export const ContentBase = {
|
|
|
24
24
|
contentType: 'text',
|
|
25
25
|
optionName: 'text',
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
{
|
|
28
|
+
...TitleProps,
|
|
29
|
+
optionName: 'options',
|
|
30
|
+
},
|
|
28
31
|
],
|
|
29
32
|
},
|
|
30
33
|
text: {
|
|
@@ -55,9 +58,13 @@ export const ContentBase = {
|
|
|
55
58
|
export const ContentBlock = {
|
|
56
59
|
content: {
|
|
57
60
|
additionalProperties: false,
|
|
58
|
-
properties:
|
|
61
|
+
properties: {
|
|
62
|
+
...ContentBase,
|
|
63
|
+
colSizes: containerSizesArray.reduce((acc, size) => ({ ...acc, [size]: sizeNumber }), {}),
|
|
64
|
+
centered: {
|
|
59
65
|
type: 'boolean',
|
|
60
|
-
}
|
|
66
|
+
},
|
|
67
|
+
},
|
|
61
68
|
},
|
|
62
69
|
};
|
|
63
70
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,WAAW,EACX,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,KAAK;SACrB;QACD,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC;KAC9B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,KAAK,EAAE;QACH,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE,MAAM;aACrB;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,WAAW,EACX,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,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AAmB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,EAAC,CAAC,EAAE,EAAE,CAAC;YACvF,QAAQ,EAAE;gBACN,IAAI,EAAE,SAAS;aAClB;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n ButtonBlock,\n LinkProps,\n TitleProps,\n containerSizesArray,\n contentSizes,\n contentThemes,\n sizeNumber,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const ContentItem = {\n additionalProperties: false,\n required: ['icon'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n icon: withTheme(ImageProps),\n },\n};\n\nexport const ContentBase = {\n title: {\n oneOf: [\n {\n type: 'string',\n contentType: 'text',\n optionName: 'text',\n },\n {\n ...TitleProps,\n optionName: 'options',\n },\n ],\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n additionalInfo: {\n type: 'string',\n contentType: 'yfm',\n },\n size: {\n type: 'string',\n enum: contentSizes,\n },\n links: filteredArray(LinkProps),\n buttons: filteredArray(ButtonBlock),\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n list: filteredArray(ContentItem),\n controlPosition: {\n type: 'string',\n enum: ['default', 'bottom'],\n },\n};\n\nexport const ContentBlock = {\n content: {\n additionalProperties: false,\n properties: {\n ...ContentBase,\n colSizes: containerSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n centered: {\n type: 'boolean',\n },\n },\n },\n};\n"]}
|
|
@@ -2,9 +2,13 @@ import { BaseProps, dividerEnum } from "../../schema/validators/common.js";
|
|
|
2
2
|
export const Divider = {
|
|
3
3
|
divider: {
|
|
4
4
|
additionalProperties: false,
|
|
5
|
-
properties:
|
|
5
|
+
properties: {
|
|
6
|
+
...BaseProps,
|
|
7
|
+
border: {
|
|
6
8
|
type: 'boolean',
|
|
7
|
-
},
|
|
9
|
+
},
|
|
10
|
+
size: dividerEnum,
|
|
11
|
+
},
|
|
8
12
|
},
|
|
9
13
|
};
|
|
10
14
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Divider/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,0CAAuC;AAEtE,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,OAAO,EAAE;QACL,oBAAoB,EAAE,KAAK;QAC3B,UAAU,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/Divider/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,0CAAuC;AAEtE,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,OAAO,EAAE;QACL,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,SAAS;YACZ,MAAM,EAAE;gBACJ,IAAI,EAAE,SAAS;aAClB;YACD,IAAI,EAAE,WAAW;SACpB;KACJ;CACJ,CAAC","sourcesContent":["import {BaseProps, dividerEnum} from '../../schema/validators/common';\n\nexport const Divider = {\n divider: {\n additionalProperties: false,\n properties: {\n ...BaseProps,\n border: {\n type: 'boolean',\n },\n size: dividerEnum,\n },\n },\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HubspotFormProps } from "../../models/index.js";
|
|
3
|
-
type HubspotFormContainerPropsKeys = 'className' | 'formId' | 'formInstanceId' | 'portalId' | 'region' | 'formClassName' | 'createDOMElement';
|
|
3
|
+
type HubspotFormContainerPropsKeys = 'className' | 'formId' | 'formInstanceId' | 'portalId' | 'region' | 'formClassName' | 'createDOMElement' | 'defaultValues';
|
|
4
4
|
type HubspotFormContainerProps = Pick<HubspotFormProps, HubspotFormContainerPropsKeys>;
|
|
5
5
|
declare const HubspotFormContainer: React.ForwardRefExoticComponent<HubspotFormContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export default HubspotFormContainer;
|