@gravity-ui/page-constructor 4.0.0-beta.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -7
- package/build/cjs/blocks/Banner/schema.d.ts +72 -24
- package/build/cjs/blocks/CardLayout/schema.d.ts +16 -6
- package/build/cjs/blocks/Companies/Companies.css +5 -5
- package/build/cjs/blocks/Companies/Companies.js +3 -3
- package/build/cjs/blocks/Companies/schema.d.ts +8 -3
- package/build/cjs/blocks/ContentLayout/ContentLayout.css +4 -7
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -2
- package/build/cjs/blocks/ContentLayout/schema.d.ts +112 -59
- package/build/cjs/blocks/ContentLayout/schema.js +23 -18
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +37 -6
- package/build/cjs/blocks/ExtendedFeatures/schema.js +2 -3
- package/build/cjs/blocks/FilterBlock/schema.d.ts +19 -7
- package/build/cjs/blocks/FilterBlock/schema.js +13 -2
- package/build/cjs/blocks/Header/Header.css +28 -25
- package/build/cjs/blocks/Header/Header.js +6 -7
- package/build/cjs/blocks/Header/schema.d.ts +329 -37
- package/build/cjs/blocks/Header/schema.js +1 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +129 -54
- package/build/cjs/blocks/HeaderSlider/schema.js +3 -1
- package/build/cjs/blocks/Icons/Icons.css +2 -2
- package/build/cjs/blocks/Icons/schema.d.ts +9 -3
- package/build/cjs/blocks/Icons/schema.js +2 -1
- package/build/cjs/blocks/Info/Info.css +1 -1
- package/build/cjs/blocks/Info/Info.js +3 -3
- package/build/cjs/blocks/Info/schema.d.ts +44 -9
- package/build/cjs/blocks/Map/schema.d.ts +31 -7
- package/build/cjs/blocks/Media/Media.js +2 -2
- package/build/cjs/blocks/Media/schema.d.ts +346 -112
- package/build/cjs/blocks/Media/schema.js +1 -1
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +103 -9
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -0
- package/build/cjs/blocks/Questions/Questions.css +12 -12
- package/build/cjs/blocks/Questions/schema.d.ts +21 -4
- package/build/cjs/blocks/Share/Share.css +14 -12
- package/build/cjs/blocks/Share/schema.d.ts +3 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.css +4 -4
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/cjs/blocks/Slider/Slider.css +12 -12
- package/build/cjs/blocks/Slider/Slider.js +3 -3
- package/build/cjs/blocks/Slider/schema.d.ts +16 -19
- package/build/cjs/blocks/Slider/schema.js +4 -5
- package/build/cjs/blocks/Slider/utils.d.ts +2 -2
- package/build/cjs/blocks/Slider/utils.js +3 -1
- package/build/cjs/blocks/Table/Table.css +5 -5
- package/build/cjs/blocks/Table/schema.d.ts +11 -4
- package/build/cjs/blocks/Table/schema.js +12 -2
- package/build/cjs/blocks/Tabs/Tabs.css +6 -6
- package/build/cjs/blocks/Tabs/Tabs.d.ts +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +4 -4
- package/build/cjs/blocks/Tabs/schema.d.ts +142 -18
- package/build/cjs/blocks/Tabs/schema.js +4 -1
- package/build/cjs/components/Anchor/Anchor.d.ts +2 -3
- package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +2 -3
- package/build/cjs/components/Author/Author.css +8 -8
- package/build/cjs/components/Author/Author.js +2 -2
- package/build/cjs/components/Author/schema.d.ts +3 -1
- package/build/cjs/components/BlockBase/BlockBase.css +4 -1
- package/build/cjs/components/BlockBase/BlockBase.d.ts +3 -2
- package/build/cjs/components/BlockBase/BlockBase.js +3 -5
- package/build/cjs/components/Button/Button.css +4 -0
- package/build/cjs/components/Button/Button.d.ts +2 -3
- package/build/cjs/components/Button/Button.js +3 -2
- package/build/cjs/components/ButtonTabs/ButtonTabs.css +4 -0
- package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +2 -3
- package/build/cjs/components/CardBase/CardBase.css +6 -6
- package/build/cjs/components/Control/Control.css +9 -9
- package/build/cjs/components/ErrorWrapper/ErrorWrapper.css +3 -3
- package/build/cjs/components/FileLink/FileLink.css +16 -56
- package/build/cjs/components/FileLink/FileLink.js +18 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.css +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.css +3 -3
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +3 -3
- package/build/cjs/components/HTML/HTML.js +2 -1
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/cjs/components/Image/Image.d.ts +2 -3
- package/build/cjs/components/Image/schema.d.ts +2 -1
- package/build/cjs/components/Image/schema.js +10 -9
- package/build/cjs/components/Link/Link.css +13 -13
- package/build/cjs/components/Media/Image/Image.js +4 -3
- package/build/cjs/components/Media/Media.js +1 -1
- package/build/cjs/components/Media/Video/Video.js +1 -0
- package/build/cjs/components/MediaBase/MediaBaseContent.js +2 -2
- package/build/cjs/components/MetaInfo/MetaInfo.css +2 -2
- package/build/cjs/components/MetaInfo/MetaInfo.js +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.css +1 -1
- package/build/cjs/components/ReactPlayer/CustomBarControls.css +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.css +2 -2
- package/build/cjs/components/Table/Table.css +8 -8
- package/build/cjs/components/Title/Title.css +4 -4
- package/build/cjs/components/Title/TitleItem.css +19 -19
- package/build/cjs/components/Title/TitleItem.d.ts +2 -3
- package/build/cjs/components/Title/TitleItem.js +2 -2
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
- package/build/cjs/components/VideoBlock/VideoBlock.css +2 -2
- package/build/cjs/components/VideoBlock/VideoBlock.d.ts +2 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +6 -2
- package/build/cjs/components/constants.d.ts +3 -1
- package/build/cjs/components/constants.js +4 -2
- package/build/cjs/constructor-items.d.ts +1 -1
- package/build/cjs/containers/Loadable/Loadable.d.ts +2 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.css +50 -30
- package/build/cjs/containers/PageConstructor/PageConstructor.js +6 -3
- package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -3
- package/build/cjs/containers/PageConstructor/Provider.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -3
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +8 -4
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +3 -4
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +3 -3
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -3
- package/build/cjs/containers/PageConstructor/components/index.d.ts +2 -0
- package/build/cjs/containers/PageConstructor/components/index.js +5 -0
- package/build/cjs/containers/PageConstructor/index.d.ts +1 -0
- package/build/cjs/containers/PageConstructor/index.js +2 -0
- package/build/cjs/context/theme/ThemeContext.d.ts +2 -3
- package/build/cjs/context/theme/ThemeContext.js +0 -1
- package/build/cjs/context/theme/index.d.ts +0 -1
- package/build/cjs/context/theme/index.js +0 -1
- package/build/cjs/context/theme/useTheme.d.ts +1 -1
- package/build/cjs/context/theme/useTheme.js +2 -2
- package/build/cjs/context/theme/withTheme.js +1 -1
- package/build/cjs/customization/BlockDecoration.d.ts +1 -1
- package/build/cjs/customization/BlockDecoration.js +8 -14
- package/build/cjs/editor/{Components → components}/AddBlock/AddBlock.css +7 -6
- package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +7 -0
- package/build/cjs/editor/{Components → components}/AddBlock/AddBlock.js +3 -3
- package/build/cjs/editor/components/BlockForm/BlockForm.d.ts +12 -0
- package/build/cjs/editor/components/BlockForm/BlockForm.js +28 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +34 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +10 -0
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +35 -0
- package/build/cjs/editor/components/ControlPanel/i18n/en.json +3 -0
- package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +2 -0
- package/build/cjs/editor/components/ControlPanel/i18n/index.js +8 -0
- package/build/cjs/editor/components/ControlPanel/i18n/ru.json +3 -0
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulation.d.ts +7 -0
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulation.js +10 -0
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.css +33 -0
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.d.ts +8 -0
- package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +41 -0
- package/build/cjs/editor/components/DeviceEmulation/utils.d.ts +4 -0
- package/build/cjs/editor/components/DeviceEmulation/utils.js +7 -0
- package/build/{esm/editor/Components → cjs/editor/components}/EditBlock/EditBlock.css +22 -14
- package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +13 -0
- package/build/cjs/editor/components/EditBlock/EditBlock.js +48 -0
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +13 -0
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +35 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +4 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +8 -0
- package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +4 -0
- package/build/cjs/editor/components/Layout/Layout.css +44 -0
- package/build/cjs/editor/components/Layout/Layout.d.ts +19 -0
- package/build/cjs/editor/components/Layout/Layout.js +38 -0
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.css +21 -0
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.d.ts +2 -0
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +12 -0
- package/build/cjs/editor/components/NotFoundBlock/i18n/en.json +3 -0
- package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +2 -0
- package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +8 -0
- package/build/cjs/editor/components/NotFoundBlock/i18n/ru.json +3 -0
- package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
- package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +17 -0
- package/build/cjs/editor/components/YamlEditor/YamlEditor.css +12 -0
- package/build/cjs/editor/components/YamlEditor/YamlEditor.d.ts +6 -0
- package/build/cjs/editor/components/YamlEditor/YamlEditor.js +34 -0
- package/build/cjs/editor/containers/Editor/Editor.d.ts +2 -0
- package/build/cjs/editor/containers/Editor/Editor.js +67 -0
- package/build/cjs/editor/containers/Form/Form.css +115 -0
- package/build/cjs/editor/containers/Form/Form.d.ts +11 -0
- package/build/cjs/editor/containers/Form/Form.js +54 -0
- package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
- package/build/cjs/editor/context.d.ts +9 -0
- package/build/cjs/editor/context.js +6 -0
- package/build/cjs/editor/data/previews/default-preview.js +1 -1
- package/build/cjs/editor/data/previews/header-block.js +5 -5
- package/build/cjs/editor/data/templates/banner-block.json +25 -0
- package/build/cjs/editor/data/templates/card-layout-block.json +39 -0
- package/build/cjs/editor/data/templates/companies-block.json +20 -0
- package/build/cjs/editor/data/templates/content-layout-block.json +56 -0
- package/build/cjs/editor/data/templates/extended-features-block.json +56 -0
- package/build/cjs/editor/data/templates/filter-block.json +62 -0
- package/build/cjs/editor/data/templates/header-block.json +19 -0
- package/build/cjs/editor/data/templates/header-slider-block.json +69 -0
- package/build/cjs/editor/data/templates/icons-block.json +32 -0
- package/build/cjs/editor/data/templates/info-block.json +40 -0
- package/build/cjs/editor/data/templates/link-table-block.json +10 -0
- package/build/cjs/editor/data/templates/map-block.json +48 -0
- package/build/cjs/editor/data/templates/media-block.json +15 -0
- package/build/cjs/editor/data/templates/preview-block.json +38 -0
- package/build/cjs/editor/data/templates/promo-features-block.json +52 -0
- package/build/cjs/editor/data/templates/questions-block.json +105 -0
- package/build/cjs/editor/data/templates/security-block.json +36 -0
- package/build/cjs/editor/data/templates/share-block.json +6 -0
- package/build/cjs/editor/data/templates/simple-block.json +7 -0
- package/build/cjs/editor/data/templates/slider-block.json +46 -0
- package/build/cjs/editor/data/templates/table-block.json +18 -0
- package/build/cjs/editor/data/templates/tabs-block.json +90 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +19 -0
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +72 -0
- package/build/cjs/editor/dynamic-forms-custom/config.d.ts +2 -0
- package/build/cjs/editor/dynamic-forms-custom/config.js +13 -0
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +75 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +36 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/index.js +187 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +28 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/types.js +2 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
- package/build/cjs/editor/dynamic-forms-custom/parser/views.js +46 -0
- package/build/cjs/editor/hooks/useFormSpec.d.ts +2 -0
- package/build/cjs/editor/hooks/useFormSpec.js +13 -0
- package/build/cjs/editor/hooks/usePreviousValue.d.ts +1 -0
- package/build/cjs/editor/hooks/usePreviousValue.js +11 -0
- package/build/cjs/editor/icons/Tablet.d.ts +2 -0
- package/build/cjs/editor/icons/Tablet.js +9 -0
- package/build/cjs/editor/index.d.ts +1 -1
- package/build/cjs/editor/index.js +1 -1
- package/build/cjs/editor/store/index.d.ts +12 -11
- package/build/cjs/editor/store/index.js +70 -15
- package/build/cjs/editor/store/reducer.d.ts +30 -9
- package/build/cjs/editor/store/reducer.js +20 -31
- package/build/cjs/editor/store/utils.d.ts +6 -5
- package/build/cjs/editor/store/utils.js +6 -2
- package/build/cjs/editor/styles/root.css +7 -0
- package/build/cjs/editor/types/index.d.ts +30 -12
- package/build/cjs/editor/types/index.js +8 -0
- package/build/cjs/editor/utils/index.d.ts +6 -3
- package/build/cjs/editor/utils/index.js +9 -4
- package/build/cjs/editor/widget/constants.d.ts +4 -0
- package/build/cjs/editor/widget/constants.js +8 -0
- package/build/cjs/editor/widget/index.d.ts +21 -0
- package/build/cjs/editor/widget/index.js +76 -0
- package/build/cjs/editor/widget/utils.d.ts +1 -0
- package/build/cjs/editor/widget/utils.js +19 -0
- package/build/cjs/grid/Col/Col.d.ts +3 -4
- package/build/cjs/grid/Col/Col.js +2 -2
- package/build/cjs/grid/Grid/Grid.css +1 -1
- package/build/cjs/hooks/useHeightCalculator.js +1 -1
- package/build/cjs/models/common.d.ts +6 -1
- package/build/cjs/models/common.js +6 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +17 -13
- package/build/cjs/models/constructor-items/common.d.ts +3 -5
- package/build/cjs/models/constructor.d.ts +4 -4
- package/build/cjs/models/customization.d.ts +5 -7
- package/build/cjs/models/navigation.d.ts +4 -2
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +92 -0
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +4 -0
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +21 -0
- package/build/cjs/navigation/components/Logo/Logo.css +3 -3
- package/build/cjs/navigation/components/Logo/Logo.js +3 -3
- package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.css +7 -0
- package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +3 -0
- package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.js +15 -0
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.css +17 -12
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -10
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +11 -31
- package/build/cjs/navigation/components/Navigation/Navigation.css +8 -13
- package/build/cjs/navigation/components/Navigation/Navigation.d.ts +4 -7
- package/build/cjs/navigation/components/Navigation/Navigation.js +37 -15
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +28 -0
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.d.ts +3 -9
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +15 -6
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +5 -4
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +12 -8
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
- package/build/cjs/navigation/components/NavigationList/NavigationList.d.ts +3 -0
- package/build/cjs/navigation/components/NavigationList/NavigationList.js +11 -0
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.d.ts +4 -13
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js +6 -13
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.css +10 -9
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -8
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +6 -6
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.css +3 -3
- package/build/cjs/navigation/containers/Layout/Layout.js +2 -2
- package/build/cjs/navigation/models.d.ts +63 -0
- package/build/cjs/navigation/{constants.js → models.js} +7 -1
- package/build/cjs/navigation/schema.d.ts +1 -0
- package/build/cjs/navigation/schema.js +1 -1
- package/build/cjs/navigation/utils.d.ts +11 -1
- package/build/cjs/navigation/utils.js +19 -1
- package/build/cjs/schema/constants.d.ts +941 -0
- package/build/cjs/schema/constants.js +42 -0
- package/build/cjs/schema/index.d.ts +9 -228
- package/build/cjs/schema/index.js +8 -46
- package/build/cjs/schema/validators/common.d.ts +158 -30
- package/build/cjs/schema/validators/common.js +57 -19
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +26 -6
- package/build/cjs/sub-blocks/BannerCard/BannerCard.css +16 -16
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +22 -4
- package/build/cjs/sub-blocks/Content/Content.css +22 -22
- package/build/cjs/sub-blocks/Content/Content.js +3 -1
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.css +48 -0
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.d.ts +7 -0
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.js +25 -0
- package/build/cjs/sub-blocks/Content/schema.d.ts +74 -6
- package/build/cjs/sub-blocks/Content/schema.js +27 -2
- package/build/cjs/sub-blocks/Divider/Divider.css +1 -1
- package/build/cjs/sub-blocks/Divider/schema.d.ts +3 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +39 -39
- package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +115 -10
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +100 -6
- package/build/cjs/sub-blocks/MediaCard/schema.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +4 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +5 -1
- package/build/cjs/sub-blocks/Quote/Quote.css +10 -10
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
- package/build/cjs/sub-blocks/Quote/schema.d.ts +9 -4
- package/build/cjs/sub-blocks/Quote/schema.js +1 -2
- package/build/cjs/text-transform/config.js +19 -1
- package/build/cjs/text-transform/filter.d.ts +20 -0
- package/build/cjs/text-transform/filter.js +61 -0
- package/build/cjs/text-transform/index.d.ts +1 -0
- package/build/cjs/text-transform/index.js +1 -0
- package/build/cjs/text-transform/transformers.d.ts +2 -0
- package/build/cjs/text-transform/transformers.js +3 -2
- package/build/cjs/text-transform/utils.js +6 -1
- package/build/cjs/utils/blocks.d.ts +4 -5
- package/build/cjs/utils/blocks.js +43 -3
- package/build/cjs/utils/imageCompress.js +1 -1
- package/build/cjs/utils/theme.d.ts +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +72 -24
- package/build/esm/blocks/CardLayout/schema.d.ts +16 -6
- package/build/esm/blocks/Companies/Companies.css +5 -5
- package/build/esm/blocks/Companies/Companies.js +3 -3
- package/build/esm/blocks/Companies/schema.d.ts +8 -3
- package/build/esm/blocks/ContentLayout/ContentLayout.css +4 -7
- package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -2
- package/build/esm/blocks/ContentLayout/schema.d.ts +112 -59
- package/build/esm/blocks/ContentLayout/schema.js +23 -18
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +37 -6
- package/build/esm/blocks/ExtendedFeatures/schema.js +3 -4
- package/build/esm/blocks/FilterBlock/schema.d.ts +19 -7
- package/build/esm/blocks/FilterBlock/schema.js +13 -2
- package/build/esm/blocks/Header/Header.css +28 -25
- package/build/esm/blocks/Header/Header.js +6 -7
- package/build/esm/blocks/Header/schema.d.ts +329 -37
- package/build/esm/blocks/Header/schema.js +1 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +129 -54
- package/build/esm/blocks/HeaderSlider/schema.js +2 -1
- package/build/esm/blocks/Icons/Icons.css +2 -2
- package/build/esm/blocks/Icons/schema.d.ts +9 -3
- package/build/esm/blocks/Icons/schema.js +2 -1
- package/build/esm/blocks/Info/Info.css +1 -1
- package/build/esm/blocks/Info/Info.js +3 -3
- package/build/esm/blocks/Info/schema.d.ts +44 -9
- package/build/esm/blocks/Map/schema.d.ts +31 -7
- package/build/esm/blocks/Media/Media.js +3 -3
- package/build/esm/blocks/Media/schema.d.ts +346 -112
- package/build/esm/blocks/Media/schema.js +2 -2
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +103 -9
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -0
- package/build/esm/blocks/Questions/Questions.css +12 -12
- package/build/esm/blocks/Questions/schema.d.ts +21 -4
- package/build/esm/blocks/Share/Share.css +14 -12
- package/build/esm/blocks/Share/schema.d.ts +3 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.css +4 -4
- package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/esm/blocks/Slider/Slider.css +12 -12
- package/build/esm/blocks/Slider/Slider.js +4 -4
- package/build/esm/blocks/Slider/schema.d.ts +16 -19
- package/build/esm/blocks/Slider/schema.js +4 -5
- package/build/esm/blocks/Slider/utils.d.ts +2 -2
- package/build/esm/blocks/Slider/utils.js +2 -1
- package/build/esm/blocks/Table/Table.css +5 -5
- package/build/esm/blocks/Table/schema.d.ts +11 -4
- package/build/esm/blocks/Table/schema.js +12 -2
- package/build/esm/blocks/Tabs/Tabs.css +6 -6
- package/build/esm/blocks/Tabs/Tabs.d.ts +1 -1
- package/build/esm/blocks/Tabs/Tabs.js +5 -5
- package/build/esm/blocks/Tabs/schema.d.ts +142 -18
- package/build/esm/blocks/Tabs/schema.js +5 -2
- package/build/esm/components/Anchor/Anchor.d.ts +2 -3
- package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +2 -3
- package/build/esm/components/Author/Author.css +8 -8
- package/build/esm/components/Author/Author.js +2 -2
- package/build/esm/components/Author/schema.d.ts +3 -1
- package/build/esm/components/BlockBase/BlockBase.css +4 -1
- package/build/esm/components/BlockBase/BlockBase.d.ts +3 -2
- package/build/esm/components/BlockBase/BlockBase.js +3 -5
- package/build/esm/components/Button/Button.css +4 -0
- package/build/esm/components/Button/Button.d.ts +2 -3
- package/build/esm/components/Button/Button.js +4 -3
- package/build/esm/components/ButtonTabs/ButtonTabs.css +4 -0
- package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +2 -3
- package/build/esm/components/CardBase/CardBase.css +6 -6
- package/build/esm/components/Control/Control.css +9 -9
- package/build/esm/components/ErrorWrapper/ErrorWrapper.css +3 -3
- package/build/esm/components/FileLink/FileLink.css +16 -56
- package/build/esm/components/FileLink/FileLink.js +18 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.css +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.css +3 -3
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -3
- package/build/esm/components/HTML/HTML.js +2 -1
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/esm/components/Image/Image.d.ts +2 -3
- package/build/esm/components/Image/schema.d.ts +2 -1
- package/build/esm/components/Image/schema.js +9 -8
- package/build/esm/components/Link/Link.css +13 -13
- package/build/esm/components/Media/Image/Image.js +4 -3
- package/build/esm/components/Media/Media.js +1 -1
- package/build/esm/components/Media/Video/Video.js +1 -0
- package/build/esm/components/MediaBase/MediaBaseContent.js +2 -2
- package/build/esm/components/MetaInfo/MetaInfo.css +2 -2
- package/build/esm/components/MetaInfo/MetaInfo.js +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.css +1 -1
- package/build/esm/components/ReactPlayer/CustomBarControls.css +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.css +2 -2
- package/build/esm/components/Table/Table.css +8 -8
- package/build/esm/components/Title/Title.css +4 -4
- package/build/esm/components/Title/TitleItem.css +19 -19
- package/build/esm/components/Title/TitleItem.d.ts +2 -3
- package/build/esm/components/Title/TitleItem.js +2 -2
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
- package/build/esm/components/VideoBlock/VideoBlock.css +2 -2
- package/build/esm/components/VideoBlock/VideoBlock.d.ts +2 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +6 -2
- package/build/esm/components/constants.d.ts +3 -1
- package/build/esm/components/constants.js +3 -1
- package/build/esm/constructor-items.d.ts +1 -1
- package/build/esm/containers/Loadable/Loadable.d.ts +2 -2
- package/build/esm/containers/PageConstructor/PageConstructor.css +50 -30
- package/build/esm/containers/PageConstructor/PageConstructor.js +7 -4
- package/build/esm/containers/PageConstructor/Provider.d.ts +2 -3
- package/build/esm/containers/PageConstructor/Provider.js +2 -2
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -3
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +8 -4
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +3 -4
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +3 -3
- package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -3
- package/build/esm/containers/PageConstructor/components/index.d.ts +2 -0
- package/build/esm/containers/PageConstructor/components/index.js +1 -0
- package/build/esm/containers/PageConstructor/index.d.ts +1 -0
- package/build/esm/containers/PageConstructor/index.js +1 -0
- package/build/esm/context/theme/ThemeContext.d.ts +2 -3
- package/build/esm/context/theme/ThemeContext.js +0 -1
- package/build/esm/context/theme/index.d.ts +0 -1
- package/build/esm/context/theme/index.js +0 -1
- package/build/esm/context/theme/useTheme.d.ts +1 -1
- package/build/esm/context/theme/useTheme.js +2 -2
- package/build/esm/context/theme/withTheme.js +1 -1
- package/build/esm/customization/BlockDecoration.d.ts +1 -1
- package/build/esm/customization/BlockDecoration.js +9 -14
- package/build/esm/editor/{Components → components}/AddBlock/AddBlock.css +7 -6
- package/build/esm/editor/components/AddBlock/AddBlock.d.ts +8 -0
- package/build/esm/editor/{Components → components}/AddBlock/AddBlock.js +3 -3
- package/build/esm/editor/components/BlockForm/BlockForm.d.ts +12 -0
- package/build/esm/editor/components/BlockForm/BlockForm.js +25 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +34 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +11 -0
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +33 -0
- package/build/esm/editor/components/ControlPanel/i18n/en.json +3 -0
- package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +2 -0
- package/build/esm/editor/components/ControlPanel/i18n/index.js +5 -0
- package/build/esm/editor/components/ControlPanel/i18n/ru.json +3 -0
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulation.d.ts +7 -0
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulation.js +7 -0
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.css +33 -0
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.d.ts +9 -0
- package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +40 -0
- package/build/esm/editor/components/DeviceEmulation/utils.d.ts +4 -0
- package/build/esm/editor/components/DeviceEmulation/utils.js +3 -0
- package/build/{cjs/editor/Components → esm/editor/components}/EditBlock/EditBlock.css +22 -14
- package/build/esm/editor/components/EditBlock/EditBlock.d.ts +14 -0
- package/build/esm/editor/components/EditBlock/EditBlock.js +45 -0
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +14 -0
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +31 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/en.json +4 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/index.js +5 -0
- package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +4 -0
- package/build/esm/editor/components/Layout/Layout.css +44 -0
- package/build/esm/editor/components/Layout/Layout.d.ts +20 -0
- package/build/esm/editor/components/Layout/Layout.js +36 -0
- package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.css +21 -0
- package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.d.ts +3 -0
- package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +8 -0
- package/build/esm/editor/components/NotFoundBlock/i18n/en.json +3 -0
- package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +2 -0
- package/build/esm/editor/components/NotFoundBlock/i18n/index.js +5 -0
- package/build/esm/editor/components/NotFoundBlock/i18n/ru.json +3 -0
- package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
- package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +13 -0
- package/build/esm/editor/components/YamlEditor/YamlEditor.css +12 -0
- package/build/esm/editor/components/YamlEditor/YamlEditor.d.ts +7 -0
- package/build/esm/editor/components/YamlEditor/YamlEditor.js +30 -0
- package/build/esm/editor/containers/Editor/Editor.d.ts +2 -0
- package/build/esm/editor/containers/Editor/Editor.js +63 -0
- package/build/esm/editor/containers/Form/Form.css +115 -0
- package/build/esm/editor/containers/Form/Form.d.ts +12 -0
- package/build/esm/editor/containers/Form/Form.js +52 -0
- package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
- package/build/esm/editor/context.d.ts +9 -0
- package/build/esm/editor/context.js +2 -0
- package/build/esm/editor/data/previews/default-preview.js +1 -1
- package/build/esm/editor/data/previews/header-block.js +5 -5
- package/build/esm/editor/data/templates/banner-block.json +25 -0
- package/build/esm/editor/data/templates/card-layout-block.json +39 -0
- package/build/esm/editor/data/templates/companies-block.json +20 -0
- package/build/esm/editor/data/templates/content-layout-block.json +56 -0
- package/build/esm/editor/data/templates/extended-features-block.json +56 -0
- package/build/esm/editor/data/templates/filter-block.json +62 -0
- package/build/esm/editor/data/templates/header-block.json +19 -0
- package/build/esm/editor/data/templates/header-slider-block.json +69 -0
- package/build/esm/editor/data/templates/icons-block.json +32 -0
- package/build/esm/editor/data/templates/info-block.json +40 -0
- package/build/esm/editor/data/templates/link-table-block.json +10 -0
- package/build/esm/editor/data/templates/map-block.json +48 -0
- package/build/esm/editor/data/templates/media-block.json +15 -0
- package/build/esm/editor/data/templates/preview-block.json +38 -0
- package/build/esm/editor/data/templates/promo-features-block.json +52 -0
- package/build/esm/editor/data/templates/questions-block.json +105 -0
- package/build/esm/editor/data/templates/security-block.json +36 -0
- package/build/esm/editor/data/templates/share-block.json +6 -0
- package/build/esm/editor/data/templates/simple-block.json +7 -0
- package/build/esm/editor/data/templates/slider-block.json +46 -0
- package/build/esm/editor/data/templates/table-block.json +18 -0
- package/build/esm/editor/data/templates/tabs-block.json +90 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +20 -0
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +68 -0
- package/build/esm/editor/dynamic-forms-custom/config.d.ts +2 -0
- package/build/esm/editor/dynamic-forms-custom/config.js +9 -0
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +69 -0
- package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
- package/build/esm/editor/dynamic-forms-custom/parser/detect.js +32 -0
- package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
- package/build/esm/editor/dynamic-forms-custom/parser/index.js +185 -0
- package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +28 -0
- package/build/esm/editor/dynamic-forms-custom/parser/types.js +1 -0
- package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
- package/build/esm/editor/dynamic-forms-custom/parser/views.js +39 -0
- package/build/esm/editor/hooks/useFormSpec.d.ts +2 -0
- package/build/esm/editor/hooks/useFormSpec.js +9 -0
- package/build/esm/editor/hooks/usePreviousValue.d.ts +1 -0
- package/build/esm/editor/hooks/usePreviousValue.js +8 -0
- package/build/esm/editor/icons/Tablet.d.ts +2 -0
- package/build/esm/editor/icons/Tablet.js +4 -0
- package/build/esm/editor/index.d.ts +1 -1
- package/build/esm/editor/index.js +1 -1
- package/build/esm/editor/store/index.d.ts +12 -11
- package/build/esm/editor/store/index.js +72 -17
- package/build/esm/editor/store/reducer.d.ts +30 -9
- package/build/esm/editor/store/reducer.js +18 -29
- package/build/esm/editor/store/utils.d.ts +6 -5
- package/build/esm/editor/store/utils.js +3 -1
- package/build/esm/editor/styles/root.css +7 -0
- package/build/esm/editor/types/index.d.ts +30 -12
- package/build/esm/editor/types/index.js +7 -1
- package/build/esm/editor/utils/index.d.ts +6 -3
- package/build/esm/editor/utils/index.js +6 -3
- package/build/esm/editor/widget/constants.d.ts +4 -0
- package/build/esm/editor/widget/constants.js +5 -0
- package/build/esm/editor/widget/index.d.ts +21 -0
- package/build/esm/editor/widget/index.js +71 -0
- package/build/esm/editor/widget/utils.d.ts +1 -0
- package/build/esm/editor/widget/utils.js +15 -0
- package/build/esm/grid/Col/Col.d.ts +3 -4
- package/build/esm/grid/Col/Col.js +2 -2
- package/build/esm/grid/Grid/Grid.css +1 -1
- package/build/esm/hooks/useHeightCalculator.js +1 -1
- package/build/esm/models/common.d.ts +6 -1
- package/build/esm/models/common.js +5 -0
- package/build/esm/models/constructor-items/blocks.d.ts +17 -13
- package/build/esm/models/constructor-items/common.d.ts +3 -5
- package/build/esm/models/constructor.d.ts +4 -4
- package/build/esm/models/customization.d.ts +5 -7
- package/build/esm/models/navigation.d.ts +4 -2
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +92 -0
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +5 -0
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +19 -0
- package/build/esm/navigation/components/Logo/Logo.css +3 -3
- package/build/esm/navigation/components/Logo/Logo.js +3 -3
- package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.css +7 -0
- package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +4 -0
- package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.js +11 -0
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.css +17 -12
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -10
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js +13 -32
- package/build/esm/navigation/components/Navigation/Navigation.css +8 -13
- package/build/esm/navigation/components/Navigation/Navigation.d.ts +4 -7
- package/build/esm/navigation/components/Navigation/Navigation.js +35 -15
- package/build/esm/navigation/components/NavigationItem/NavigationItem.css +28 -0
- package/build/esm/navigation/components/NavigationItem/NavigationItem.d.ts +4 -9
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +16 -6
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +5 -4
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +11 -8
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
- package/build/esm/navigation/components/NavigationList/NavigationList.d.ts +3 -0
- package/build/esm/navigation/components/NavigationList/NavigationList.js +7 -0
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.d.ts +4 -14
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js +5 -10
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.css +10 -9
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -8
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +6 -6
- package/build/esm/navigation/components/SocialIcon/SocialIcon.css +3 -3
- package/build/esm/navigation/containers/Layout/Layout.js +2 -2
- package/build/esm/navigation/models.d.ts +63 -0
- package/build/esm/navigation/{constants.js → models.js} +6 -0
- package/build/esm/navigation/schema.d.ts +1 -0
- package/build/esm/navigation/schema.js +2 -2
- package/build/esm/navigation/utils.d.ts +11 -1
- package/build/esm/navigation/utils.js +17 -0
- package/build/esm/schema/constants.d.ts +941 -0
- package/build/esm/schema/constants.js +39 -0
- package/build/esm/schema/index.d.ts +9 -228
- package/build/esm/schema/index.js +4 -42
- package/build/esm/schema/validators/common.d.ts +158 -30
- package/build/esm/schema/validators/common.js +57 -19
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +26 -6
- package/build/esm/sub-blocks/BannerCard/BannerCard.css +16 -16
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +22 -4
- package/build/esm/sub-blocks/Content/Content.css +22 -22
- package/build/esm/sub-blocks/Content/Content.js +3 -1
- package/build/esm/sub-blocks/Content/ContentList/ContentList.css +48 -0
- package/build/esm/sub-blocks/Content/ContentList/ContentList.d.ts +8 -0
- package/build/esm/sub-blocks/Content/ContentList/ContentList.js +23 -0
- package/build/esm/sub-blocks/Content/schema.d.ts +74 -6
- package/build/esm/sub-blocks/Content/schema.js +27 -2
- package/build/esm/sub-blocks/Divider/Divider.css +1 -1
- package/build/esm/sub-blocks/Divider/schema.d.ts +3 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +39 -39
- package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +115 -10
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +100 -6
- package/build/esm/sub-blocks/MediaCard/schema.js +2 -2
- package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +4 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +5 -1
- package/build/esm/sub-blocks/Quote/Quote.css +10 -10
- package/build/esm/sub-blocks/Quote/Quote.js +3 -3
- package/build/esm/sub-blocks/Quote/schema.d.ts +9 -4
- package/build/esm/sub-blocks/Quote/schema.js +2 -3
- package/build/esm/text-transform/config.js +19 -1
- package/build/esm/text-transform/filter.d.ts +20 -0
- package/build/esm/text-transform/filter.js +56 -0
- package/build/esm/text-transform/index.d.ts +1 -0
- package/build/esm/text-transform/index.js +1 -0
- package/build/esm/text-transform/transformers.d.ts +2 -0
- package/build/esm/text-transform/transformers.js +3 -2
- package/build/esm/text-transform/utils.js +6 -1
- package/build/esm/utils/blocks.d.ts +4 -5
- package/build/esm/utils/blocks.js +41 -1
- package/build/esm/utils/imageCompress.js +1 -1
- package/build/esm/utils/theme.d.ts +1 -1
- package/package.json +87 -24
- package/server/components/constants.d.ts +3 -1
- package/server/components/constants.js +4 -2
- package/server/models/common.d.ts +6 -1
- package/server/models/common.js +6 -1
- package/server/models/constructor-items/blocks.d.ts +17 -13
- package/server/models/constructor-items/common.d.ts +3 -5
- package/server/models/constructor.d.ts +4 -4
- package/server/models/customization.d.ts +5 -7
- package/server/models/navigation.d.ts +4 -2
- package/server/text-transform/config.js +19 -1
- package/server/text-transform/filter.d.ts +20 -0
- package/server/text-transform/filter.js +63 -0
- package/server/text-transform/index.d.ts +1 -0
- package/server/text-transform/index.js +1 -0
- package/server/text-transform/transformers.d.ts +2 -0
- package/server/text-transform/transformers.js +3 -2
- package/server/text-transform/utils.js +6 -1
- package/server/utils/blocks.d.ts +4 -5
- package/server/utils/blocks.js +43 -3
- package/server/utils/theme.d.ts +1 -1
- package/styles/colors/dark.scss +6 -0
- package/styles/colors/light.scss +6 -0
- package/styles/colors/social.scss +10 -0
- package/styles/mixins.scss +27 -29
- package/styles/root.scss +28 -14
- package/styles/storybook/common.scss +6 -6
- package/styles/storybook/palette.scss +6 -6
- package/styles/storybook/typography.scss +46 -46
- package/styles/styles.css +15 -15
- package/styles/variables.scss +0 -8
- package/styles/yfm.scss +12 -12
- package/widget/index.js +1 -0
- package/CHANGELOG.md +0 -1266
- package/build/cjs/context/theme/ThemeProvider.d.ts +0 -22
- package/build/cjs/context/theme/ThemeProvider.js +0 -49
- package/build/cjs/context/theme/ThemeValueContext.d.ts +0 -7
- package/build/cjs/context/theme/ThemeValueContext.js +0 -9
- package/build/cjs/context/theme/useThemeValue.d.ts +0 -2
- package/build/cjs/context/theme/useThemeValue.js +0 -11
- package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +0 -7
- package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +0 -4
- package/build/cjs/editor/Components/EditBlock/EditBlock.js +0 -32
- package/build/cjs/editor/Containers/Editor.d.ts +0 -2
- package/build/cjs/editor/Containers/Editor.js +0 -24
- package/build/cjs/navigation/components/Header/Header.css +0 -98
- package/build/cjs/navigation/components/Header/Header.d.ts +0 -8
- package/build/cjs/navigation/components/Header/Header.js +0 -68
- package/build/cjs/navigation/components/NavigationDropdownItem/NavigationDropdownItem.d.ts +0 -11
- package/build/cjs/navigation/components/NavigationDropdownItem/NavigationDropdownItem.js +0 -15
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.css +0 -27
- package/build/cjs/navigation/constants.d.ts +0 -6
- package/build/esm/context/theme/ThemeProvider.d.ts +0 -22
- package/build/esm/context/theme/ThemeProvider.js +0 -44
- package/build/esm/context/theme/ThemeValueContext.d.ts +0 -7
- package/build/esm/context/theme/ThemeValueContext.js +0 -5
- package/build/esm/context/theme/useThemeValue.d.ts +0 -2
- package/build/esm/context/theme/useThemeValue.js +0 -6
- package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +0 -8
- package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +0 -5
- package/build/esm/editor/Components/EditBlock/EditBlock.js +0 -30
- package/build/esm/editor/Containers/Editor.d.ts +0 -2
- package/build/esm/editor/Containers/Editor.js +0 -20
- package/build/esm/navigation/components/Header/Header.css +0 -98
- package/build/esm/navigation/components/Header/Header.d.ts +0 -9
- package/build/esm/navigation/components/Header/Header.js +0 -64
- package/build/esm/navigation/components/NavigationDropdownItem/NavigationDropdownItem.d.ts +0 -11
- package/build/esm/navigation/components/NavigationDropdownItem/NavigationDropdownItem.js +0 -13
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.css +0 -27
- package/build/esm/navigation/constants.d.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.
|
|
3
|
+
exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
|
|
4
4
|
const schema_1 = require("../../components/Image/schema");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
6
|
const event_1 = require("./event");
|
|
@@ -21,7 +21,9 @@ exports.sizeNumber = { type: 'number', maximum: 12, minimum: 1 };
|
|
|
21
21
|
exports.contentThemes = ['default', 'dark', 'light'];
|
|
22
22
|
exports.BaseProps = {
|
|
23
23
|
type: {},
|
|
24
|
-
when: {
|
|
24
|
+
when: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
},
|
|
25
27
|
};
|
|
26
28
|
exports.containerSizesObject = {
|
|
27
29
|
type: 'object',
|
|
@@ -29,14 +31,16 @@ exports.containerSizesObject = {
|
|
|
29
31
|
properties: exports.containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: exports.sizeNumber })), {}),
|
|
30
32
|
};
|
|
31
33
|
exports.sliderSizesObject = {
|
|
32
|
-
|
|
34
|
+
oneOf: [
|
|
33
35
|
{
|
|
34
36
|
type: 'object',
|
|
35
37
|
additionalProperties: false,
|
|
36
38
|
properties: exports.sliderSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: exports.sizeNumber })), {}),
|
|
39
|
+
optionName: 'custom',
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
42
|
type: 'number',
|
|
43
|
+
optionName: 'constant',
|
|
40
44
|
},
|
|
41
45
|
],
|
|
42
46
|
};
|
|
@@ -66,7 +70,7 @@ exports.LoopProps = {
|
|
|
66
70
|
},
|
|
67
71
|
},
|
|
68
72
|
};
|
|
69
|
-
exports.
|
|
73
|
+
exports.PlayButtonProps = {
|
|
70
74
|
type: 'object',
|
|
71
75
|
additionalProperties: false,
|
|
72
76
|
properties: {
|
|
@@ -96,10 +100,11 @@ exports.VideoProps = {
|
|
|
96
100
|
},
|
|
97
101
|
},
|
|
98
102
|
loop: {
|
|
99
|
-
|
|
100
|
-
exports.LoopProps,
|
|
103
|
+
oneOf: [
|
|
104
|
+
Object.assign(Object.assign({}, exports.LoopProps), { optionName: 'options' }),
|
|
101
105
|
{
|
|
102
106
|
type: 'boolean',
|
|
107
|
+
optionName: 'enabled',
|
|
103
108
|
},
|
|
104
109
|
],
|
|
105
110
|
},
|
|
@@ -110,13 +115,13 @@ exports.VideoProps = {
|
|
|
110
115
|
muted: {
|
|
111
116
|
type: 'boolean',
|
|
112
117
|
},
|
|
113
|
-
|
|
118
|
+
autoplay: {
|
|
114
119
|
type: 'boolean',
|
|
115
120
|
},
|
|
116
121
|
elapsedTime: {
|
|
117
122
|
type: 'number',
|
|
118
123
|
},
|
|
119
|
-
|
|
124
|
+
playButton: exports.PlayButtonProps,
|
|
120
125
|
controls: {
|
|
121
126
|
type: 'string',
|
|
122
127
|
enum: exports.videoControlsTypes,
|
|
@@ -143,7 +148,13 @@ exports.DataLensObjectProps = {
|
|
|
143
148
|
},
|
|
144
149
|
};
|
|
145
150
|
exports.DataLensProps = {
|
|
146
|
-
oneOf: [
|
|
151
|
+
oneOf: [
|
|
152
|
+
{
|
|
153
|
+
type: 'string',
|
|
154
|
+
optionName: 'id',
|
|
155
|
+
},
|
|
156
|
+
Object.assign(Object.assign({}, exports.DataLensObjectProps), { optionName: 'options' }),
|
|
157
|
+
],
|
|
147
158
|
};
|
|
148
159
|
exports.BackgroundProps = {
|
|
149
160
|
additionalProperties: false,
|
|
@@ -181,7 +192,14 @@ exports.LinkProps = {
|
|
|
181
192
|
type: 'string',
|
|
182
193
|
enum: ['_blank', '_parent', '_top', '_self'],
|
|
183
194
|
}, analyticsEvents: {
|
|
184
|
-
|
|
195
|
+
oneOf: [
|
|
196
|
+
Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
|
|
197
|
+
{
|
|
198
|
+
type: 'array',
|
|
199
|
+
items: event_1.AnalyticsEventSchema,
|
|
200
|
+
optionName: 'list',
|
|
201
|
+
},
|
|
202
|
+
],
|
|
185
203
|
} }),
|
|
186
204
|
};
|
|
187
205
|
exports.FileLinkProps = {
|
|
@@ -224,7 +242,7 @@ exports.authorItem = {
|
|
|
224
242
|
},
|
|
225
243
|
avatar: {
|
|
226
244
|
type: 'string',
|
|
227
|
-
pattern: schema_1.
|
|
245
|
+
pattern: schema_1.imageUrlPattern,
|
|
228
246
|
},
|
|
229
247
|
description: {
|
|
230
248
|
type: 'string',
|
|
@@ -290,9 +308,10 @@ exports.ButtonProps = {
|
|
|
290
308
|
],
|
|
291
309
|
},
|
|
292
310
|
img: {
|
|
293
|
-
|
|
311
|
+
oneOf: [
|
|
294
312
|
{
|
|
295
313
|
type: 'string',
|
|
314
|
+
optionName: 'url',
|
|
296
315
|
},
|
|
297
316
|
{
|
|
298
317
|
type: 'object',
|
|
@@ -311,6 +330,7 @@ exports.ButtonProps = {
|
|
|
311
330
|
contentType: 'text',
|
|
312
331
|
},
|
|
313
332
|
},
|
|
333
|
+
optionName: 'options',
|
|
314
334
|
},
|
|
315
335
|
],
|
|
316
336
|
},
|
|
@@ -318,9 +338,9 @@ exports.ButtonProps = {
|
|
|
318
338
|
* @deprecated Metrika will be deleted
|
|
319
339
|
*/
|
|
320
340
|
metrikaGoals: {
|
|
321
|
-
|
|
322
|
-
{ type: 'string' },
|
|
323
|
-
{ type: 'array', items: { type: 'string' } },
|
|
341
|
+
oneOf: [
|
|
342
|
+
{ type: 'string', optionName: 'single' },
|
|
343
|
+
{ type: 'array', items: { type: 'string' }, optionName: 'list' },
|
|
324
344
|
{
|
|
325
345
|
type: 'array',
|
|
326
346
|
items: {
|
|
@@ -336,6 +356,7 @@ exports.ButtonProps = {
|
|
|
336
356
|
},
|
|
337
357
|
},
|
|
338
358
|
},
|
|
359
|
+
optionName: 'list-extended',
|
|
339
360
|
},
|
|
340
361
|
],
|
|
341
362
|
},
|
|
@@ -344,7 +365,10 @@ exports.ButtonProps = {
|
|
|
344
365
|
*/
|
|
345
366
|
pixelEvents: pixel_1.pixelEvents,
|
|
346
367
|
analyticsEvents: {
|
|
347
|
-
|
|
368
|
+
oneOf: [
|
|
369
|
+
Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
|
|
370
|
+
{ type: 'array', items: event_1.AnalyticsEventSchema, optionName: 'list' },
|
|
371
|
+
],
|
|
348
372
|
},
|
|
349
373
|
target: {
|
|
350
374
|
type: 'string',
|
|
@@ -364,12 +388,13 @@ exports.MenuProps = {
|
|
|
364
388
|
function withTheme(value) {
|
|
365
389
|
return {
|
|
366
390
|
oneOf: [
|
|
367
|
-
value,
|
|
391
|
+
Object.assign(Object.assign({}, value), { optionName: 'no theme' }),
|
|
368
392
|
{
|
|
369
393
|
type: 'object',
|
|
370
394
|
additionalProperties: false,
|
|
371
395
|
required: [models_1.Theme.Light],
|
|
372
396
|
properties: Object.values(models_1.Theme).reduce((result, themeName) => (Object.assign(Object.assign({}, result), { [themeName]: value })), {}),
|
|
397
|
+
optionName: 'themes',
|
|
373
398
|
},
|
|
374
399
|
],
|
|
375
400
|
};
|
|
@@ -441,7 +466,10 @@ exports.MediaProps = {
|
|
|
441
466
|
type: 'string',
|
|
442
467
|
},
|
|
443
468
|
image: {
|
|
444
|
-
|
|
469
|
+
oneOf: [
|
|
470
|
+
Object.assign(Object.assign({}, schema_1.ImageProps), { optionName: 'single' }),
|
|
471
|
+
{ type: 'array', items: schema_1.ImageProps, optionName: 'list' },
|
|
472
|
+
],
|
|
445
473
|
},
|
|
446
474
|
video: exports.VideoProps,
|
|
447
475
|
youtube: {
|
|
@@ -460,6 +488,9 @@ exports.MediaProps = {
|
|
|
460
488
|
fullscreen: {
|
|
461
489
|
type: 'boolean',
|
|
462
490
|
},
|
|
491
|
+
analyticsEvents: {
|
|
492
|
+
anyOf: [event_1.AnalyticsEventSchema, { type: 'array', items: event_1.AnalyticsEventSchema }],
|
|
493
|
+
},
|
|
463
494
|
};
|
|
464
495
|
exports.YMapMarkerLabel = {
|
|
465
496
|
type: 'object',
|
|
@@ -517,10 +548,17 @@ exports.CardBase = {
|
|
|
517
548
|
};
|
|
518
549
|
exports.BlockHeaderProps = {
|
|
519
550
|
title: {
|
|
520
|
-
oneOf: [
|
|
551
|
+
oneOf: [
|
|
552
|
+
{
|
|
553
|
+
type: 'string',
|
|
554
|
+
optionName: 'text',
|
|
555
|
+
},
|
|
556
|
+
Object.assign(Object.assign({}, exports.TitleProps), { optionName: 'options' }),
|
|
557
|
+
],
|
|
521
558
|
},
|
|
522
559
|
description: {
|
|
523
560
|
type: 'string',
|
|
524
561
|
contentType: 'yfm',
|
|
562
|
+
inputType: 'textarea',
|
|
525
563
|
},
|
|
526
564
|
};
|
|
@@ -4,10 +4,10 @@ unpredictable css rules order in build */
|
|
|
4
4
|
position: relative;
|
|
5
5
|
}
|
|
6
6
|
.pc-background-card_theme_light {
|
|
7
|
-
background-color: var(--
|
|
7
|
+
background-color: var(--pc-color-base-silver);
|
|
8
8
|
}
|
|
9
9
|
.pc-background-card_theme_dark {
|
|
10
|
-
background-color: var(--
|
|
10
|
+
background-color: var(--pc-color-base-asphalt);
|
|
11
11
|
}
|
|
12
12
|
.pc-background-card_padding_s {
|
|
13
13
|
padding-bottom: 80px;
|
|
@@ -39,8 +39,8 @@ unpredictable css rules order in build */
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
a.pc-background-card_theme_light {
|
|
42
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--pc-color-base-silver);
|
|
43
43
|
}
|
|
44
44
|
a.pc-background-card_theme_dark {
|
|
45
|
-
background-color: var(--
|
|
45
|
+
background-color: var(--pc-color-base-asphalt);
|
|
46
46
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const components_1 = require("../../components/");
|
|
6
|
-
const
|
|
6
|
+
const theme_1 = require("../../context/theme");
|
|
7
7
|
const utils_1 = require("../../utils");
|
|
8
8
|
const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
|
|
9
9
|
const b = (0, utils_1.block)('background-card');
|
|
10
10
|
const BackgroundCard = (props) => {
|
|
11
11
|
const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, } = props;
|
|
12
|
-
const
|
|
12
|
+
const theme = (0, theme_1.useTheme)();
|
|
13
13
|
const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
|
|
14
14
|
const link = hasBackgroundColor || border === 'line' ? undefined : url;
|
|
15
15
|
const borderType = hasBackgroundColor ? 'none' : border;
|
|
@@ -7,7 +7,7 @@ export declare const BackgroundCard: {
|
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
9
|
background: {
|
|
10
|
-
oneOf: ({
|
|
10
|
+
oneOf: (({
|
|
11
11
|
type: string;
|
|
12
12
|
additionalProperties: boolean;
|
|
13
13
|
required: string[];
|
|
@@ -24,11 +24,14 @@ export declare const BackgroundCard: {
|
|
|
24
24
|
type: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
}
|
|
27
|
+
} & {
|
|
28
|
+
optionName: string;
|
|
29
|
+
}) | {
|
|
28
30
|
type: string;
|
|
29
31
|
additionalProperties: boolean;
|
|
30
32
|
required: import("../..").Theme[];
|
|
31
33
|
properties: {};
|
|
34
|
+
optionName: string;
|
|
32
35
|
})[];
|
|
33
36
|
};
|
|
34
37
|
backgroundColor: {
|
|
@@ -40,6 +43,11 @@ export declare const BackgroundCard: {
|
|
|
40
43
|
};
|
|
41
44
|
title: {
|
|
42
45
|
oneOf: ({
|
|
46
|
+
type: string;
|
|
47
|
+
contentType: string;
|
|
48
|
+
optionName: string;
|
|
49
|
+
} | {
|
|
50
|
+
optionName: string;
|
|
43
51
|
type: string;
|
|
44
52
|
additionalProperties: boolean;
|
|
45
53
|
required: string[];
|
|
@@ -59,14 +67,13 @@ export declare const BackgroundCard: {
|
|
|
59
67
|
type: string;
|
|
60
68
|
};
|
|
61
69
|
};
|
|
62
|
-
|
|
63
|
-
type: string;
|
|
64
|
-
contentType: string;
|
|
70
|
+
contentType?: undefined;
|
|
65
71
|
})[];
|
|
66
72
|
};
|
|
67
73
|
text: {
|
|
68
74
|
type: string;
|
|
69
75
|
contentType: string;
|
|
76
|
+
inputType: string;
|
|
70
77
|
};
|
|
71
78
|
theme: {
|
|
72
79
|
type: string;
|
|
@@ -98,12 +105,25 @@ export declare const BackgroundCard: {
|
|
|
98
105
|
};
|
|
99
106
|
};
|
|
100
107
|
};
|
|
108
|
+
list: {
|
|
109
|
+
type: string;
|
|
110
|
+
items: {
|
|
111
|
+
type: string;
|
|
112
|
+
properties: {
|
|
113
|
+
when: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
101
119
|
border: {
|
|
102
120
|
type: string;
|
|
103
121
|
enum: string[];
|
|
104
122
|
};
|
|
105
123
|
type: {};
|
|
106
|
-
when: {
|
|
124
|
+
when: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
107
127
|
};
|
|
108
128
|
};
|
|
109
129
|
};
|
|
@@ -6,28 +6,28 @@
|
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
7
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__title,
|
|
8
8
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__subtitle {
|
|
9
|
-
color: var(--
|
|
9
|
+
color: var(--g-color-text-light-primary);
|
|
10
10
|
}
|
|
11
11
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__title p,
|
|
12
12
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__subtitle p {
|
|
13
|
-
color: var(--
|
|
13
|
+
color: var(--g-color-text-light-primary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.pc-banner-card__title {
|
|
17
|
-
font-size: var(--
|
|
18
|
-
line-height: var(--
|
|
17
|
+
font-size: var(--g-text-display-2-font-size);
|
|
18
|
+
line-height: var(--g-text-display-2-line-height);
|
|
19
19
|
color: var(--pc-text-header-color);
|
|
20
|
-
font-weight: var(--
|
|
20
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
21
21
|
}
|
|
22
22
|
@media (max-width: 576px) {
|
|
23
23
|
.pc-banner-card__title {
|
|
24
|
-
font-size: var(--
|
|
25
|
-
line-height: var(--
|
|
24
|
+
font-size: var(--g-text-display-1-font-size);
|
|
25
|
+
line-height: var(--g-text-display-1-line-height);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
.pc-banner-card__title a {
|
|
29
29
|
outline: none;
|
|
30
|
-
color: var(--
|
|
30
|
+
color: var(--g-color-text-link);
|
|
31
31
|
text-decoration: none;
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
@@ -35,8 +35,8 @@ unpredictable css rules order in build */
|
|
|
35
35
|
outline: 2px solid #ffdb4d;
|
|
36
36
|
}
|
|
37
37
|
.pc-banner-card__title a:hover, .pc-banner-card__title a:active {
|
|
38
|
-
--pc-text-header-color: var(--
|
|
39
|
-
color: var(--
|
|
38
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
39
|
+
color: var(--g-color-text-link-hover);
|
|
40
40
|
}
|
|
41
41
|
.pc-banner-card__content {
|
|
42
42
|
width: 100%;
|
|
@@ -57,17 +57,17 @@ unpredictable css rules order in build */
|
|
|
57
57
|
.pc-banner-card__subtitle {
|
|
58
58
|
display: inline-block;
|
|
59
59
|
margin-top: 8px;
|
|
60
|
-
font-size: var(--
|
|
61
|
-
line-height: var(--
|
|
60
|
+
font-size: var(--g-text-body-3-font-size);
|
|
61
|
+
line-height: var(--g-text-body-3-line-height);
|
|
62
62
|
color: var(--pc-text-header-color);
|
|
63
|
-
font-weight: var(--
|
|
63
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
64
64
|
font-weight: normal;
|
|
65
65
|
}
|
|
66
66
|
.pc-banner-card__subtitle p {
|
|
67
|
-
font-size: var(--
|
|
68
|
-
line-height: var(--
|
|
67
|
+
font-size: var(--g-text-body-3-font-size);
|
|
68
|
+
line-height: var(--g-text-body-3-line-height);
|
|
69
69
|
color: var(--pc-text-header-color);
|
|
70
|
-
font-weight: var(--
|
|
70
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
71
71
|
font-weight: normal;
|
|
72
72
|
}
|
|
73
73
|
.pc-banner-card__button.pc-banner-card__button {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BannerCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
|
-
const
|
|
7
|
+
const theme_1 = require("../../context/theme");
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
const b = (0, utils_1.block)('banner-card');
|
|
10
10
|
const BannerCard = (props) => {
|
|
11
11
|
const { title, subtitle, button: { url, text, target }, color, theme: textTheme = 'light', image, disableCompress, } = props;
|
|
12
|
-
const
|
|
12
|
+
const theme = (0, theme_1.useTheme)();
|
|
13
13
|
const contentStyle = {};
|
|
14
14
|
if (color) {
|
|
15
15
|
contentStyle.backgroundColor = (0, utils_1.getThemedValue)(color, theme);
|
|
@@ -17,6 +17,7 @@ export declare const BasicCard: {
|
|
|
17
17
|
} | {
|
|
18
18
|
type: string;
|
|
19
19
|
pattern: string;
|
|
20
|
+
optionName: string;
|
|
20
21
|
})[];
|
|
21
22
|
};
|
|
22
23
|
target: {
|
|
@@ -25,6 +26,11 @@ export declare const BasicCard: {
|
|
|
25
26
|
};
|
|
26
27
|
title: {
|
|
27
28
|
oneOf: ({
|
|
29
|
+
type: string;
|
|
30
|
+
contentType: string;
|
|
31
|
+
optionName: string;
|
|
32
|
+
} | {
|
|
33
|
+
optionName: string;
|
|
28
34
|
type: string;
|
|
29
35
|
additionalProperties: boolean;
|
|
30
36
|
required: string[];
|
|
@@ -44,14 +50,13 @@ export declare const BasicCard: {
|
|
|
44
50
|
type: string;
|
|
45
51
|
};
|
|
46
52
|
};
|
|
47
|
-
|
|
48
|
-
type: string;
|
|
49
|
-
contentType: string;
|
|
53
|
+
contentType?: undefined;
|
|
50
54
|
})[];
|
|
51
55
|
};
|
|
52
56
|
text: {
|
|
53
57
|
type: string;
|
|
54
58
|
contentType: string;
|
|
59
|
+
inputType: string;
|
|
55
60
|
};
|
|
56
61
|
additionalInfo: {
|
|
57
62
|
type: string;
|
|
@@ -79,12 +84,25 @@ export declare const BasicCard: {
|
|
|
79
84
|
};
|
|
80
85
|
};
|
|
81
86
|
};
|
|
87
|
+
list: {
|
|
88
|
+
type: string;
|
|
89
|
+
items: {
|
|
90
|
+
type: string;
|
|
91
|
+
properties: {
|
|
92
|
+
when: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
82
98
|
border: {
|
|
83
99
|
type: string;
|
|
84
100
|
enum: string[];
|
|
85
101
|
};
|
|
86
102
|
type: {};
|
|
87
|
-
when: {
|
|
103
|
+
when: {
|
|
104
|
+
type: string;
|
|
105
|
+
};
|
|
88
106
|
};
|
|
89
107
|
};
|
|
90
108
|
};
|
|
@@ -8,7 +8,7 @@ unpredictable css rules order in build */
|
|
|
8
8
|
.pc-content {
|
|
9
9
|
--pc-monochrome-button-background-color: #262626;
|
|
10
10
|
--pc-monochrome-button-background-color-hover: #393939;
|
|
11
|
-
--pc-monochrome-button-color: var(--
|
|
11
|
+
--pc-monochrome-button-color: var(--g-color-text-light-primary);
|
|
12
12
|
}
|
|
13
13
|
.pc-content__notice .yfm ol,
|
|
14
14
|
.pc-content__notice .yfm ul, .pc-content__text .yfm ol,
|
|
@@ -17,14 +17,14 @@ unpredictable css rules order in build */
|
|
|
17
17
|
}
|
|
18
18
|
.pc-content__notice.pc-content__notice .yfm,
|
|
19
19
|
.pc-content__notice.pc-content__notice .yfm > * {
|
|
20
|
-
color: var(--
|
|
20
|
+
color: var(--g-color-text-secondary);
|
|
21
21
|
}
|
|
22
22
|
.pc-content__notice.pc-content__notice .yfm a {
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--g-color-text-secondary);
|
|
24
24
|
text-decoration: underline;
|
|
25
25
|
}
|
|
26
26
|
.pc-content__notice.pc-content__notice .yfm a:hover {
|
|
27
|
-
color: var(--
|
|
27
|
+
color: var(--g-color-text-primary);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.pc-content__button.pc-content__button {
|
|
@@ -82,8 +82,8 @@ unpredictable css rules order in build */
|
|
|
82
82
|
}
|
|
83
83
|
.pc-content_size_l .pc-content__text .yfm,
|
|
84
84
|
.pc-content_size_l .pc-content__notice .yfm {
|
|
85
|
-
font-size: var(--
|
|
86
|
-
line-height: var(--
|
|
85
|
+
font-size: var(--g-text-body-3-font-size);
|
|
86
|
+
line-height: var(--g-text-body-3-line-height);
|
|
87
87
|
}
|
|
88
88
|
.pc-content_size_l .pc-content__links,
|
|
89
89
|
.pc-content_size_l .pc-content__link,
|
|
@@ -95,63 +95,63 @@ unpredictable css rules order in build */
|
|
|
95
95
|
.pc-content_theme_dark .pc-content__text .yfm,
|
|
96
96
|
.pc-content_theme_dark .pc-content__text .yfm *,
|
|
97
97
|
.pc-content_theme_dark .pc-content__link a {
|
|
98
|
-
color: var(--
|
|
98
|
+
color: var(--g-color-text-light-primary);
|
|
99
99
|
}
|
|
100
100
|
.pc-content_theme_dark .pc-content__notice .yfm,
|
|
101
101
|
.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
102
|
-
color: var(--
|
|
102
|
+
color: var(--g-color-text-light-secondary);
|
|
103
103
|
}
|
|
104
104
|
.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
105
|
-
color: var(--
|
|
105
|
+
color: var(--g-color-text-light-secondary);
|
|
106
106
|
text-decoration: underline;
|
|
107
107
|
}
|
|
108
108
|
.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
109
|
-
color: var(--
|
|
109
|
+
color: var(--g-color-text-light-primary);
|
|
110
110
|
}
|
|
111
111
|
.pc-content_theme_dark .pc-content__text .yfm a {
|
|
112
|
-
color: var(--
|
|
112
|
+
color: var(--g-color-text-light-primary);
|
|
113
113
|
text-decoration: underline;
|
|
114
114
|
}
|
|
115
115
|
.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
116
|
-
color: var(--
|
|
116
|
+
color: var(--g-color-text-light-secondary);
|
|
117
117
|
}
|
|
118
118
|
.pc-content_theme_dark .pc-content__title a {
|
|
119
|
-
color: var(--
|
|
119
|
+
color: var(--g-color-text-light-primary);
|
|
120
120
|
text-decoration: underline;
|
|
121
121
|
text-decoration: none;
|
|
122
122
|
}
|
|
123
123
|
.pc-content_theme_dark .pc-content__title a:hover {
|
|
124
|
-
color: var(--
|
|
124
|
+
color: var(--g-color-text-light-secondary);
|
|
125
125
|
}
|
|
126
126
|
.pc-content_theme_light .pc-content__title *,
|
|
127
127
|
.pc-content_theme_light .pc-content__text .yfm,
|
|
128
128
|
.pc-content_theme_light .pc-content__text .yfm *,
|
|
129
129
|
.pc-content_theme_light .pc-content__link a {
|
|
130
|
-
color: var(--
|
|
130
|
+
color: var(--g-color-text-dark-primary);
|
|
131
131
|
}
|
|
132
132
|
.pc-content_theme_light .pc-content__notice .yfm,
|
|
133
133
|
.pc-content_theme_light .pc-content__notice .yfm * {
|
|
134
|
-
color: var(--
|
|
134
|
+
color: var(--g-color-text-dark-secondary);
|
|
135
135
|
}
|
|
136
136
|
.pc-content_theme_light .pc-content__notice .yfm a {
|
|
137
|
-
color: var(--
|
|
137
|
+
color: var(--g-color-text-dark-secondary);
|
|
138
138
|
text-decoration: underline;
|
|
139
139
|
}
|
|
140
140
|
.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
141
|
-
color: var(--
|
|
141
|
+
color: var(--g-color-text-dark-primary);
|
|
142
142
|
}
|
|
143
143
|
.pc-content_theme_light .pc-content__text .yfm a {
|
|
144
|
-
color: var(--
|
|
144
|
+
color: var(--g-color-text-dark-primary);
|
|
145
145
|
text-decoration: underline;
|
|
146
146
|
}
|
|
147
147
|
.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
148
|
-
color: var(--
|
|
148
|
+
color: var(--g-color-text-dark-secondary);
|
|
149
149
|
}
|
|
150
150
|
.pc-content_theme_light .pc-content__title a {
|
|
151
|
-
color: var(--
|
|
151
|
+
color: var(--g-color-text-dark-primary);
|
|
152
152
|
text-decoration: underline;
|
|
153
153
|
text-decoration: none;
|
|
154
154
|
}
|
|
155
155
|
.pc-content_theme_light .pc-content__title a:hover {
|
|
156
|
-
color: var(--
|
|
156
|
+
color: var(--g-color-text-dark-secondary);
|
|
157
157
|
}
|
|
@@ -6,6 +6,7 @@ const components_1 = require("../../components");
|
|
|
6
6
|
const Link_1 = tslib_1.__importDefault(require("../../components/Link/Link"));
|
|
7
7
|
const grid_1 = require("../../grid");
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
+
const ContentList_1 = tslib_1.__importDefault(require("./ContentList/ContentList"));
|
|
9
10
|
const b = (0, utils_1.block)('content');
|
|
10
11
|
function getTextSize(size) {
|
|
11
12
|
switch (size) {
|
|
@@ -35,7 +36,7 @@ function getButtonSize(size) {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
const Content = (props) => {
|
|
38
|
-
const { title, text, additionalInfo, size = 'l', links, buttons, colSizes = { all: 12, sm: 8 }, centered, theme, className, } = props;
|
|
39
|
+
const { title, text, additionalInfo, size = 'l', links, buttons, colSizes = { all: 12, sm: 8 }, centered, theme, className, list, } = props;
|
|
39
40
|
const titleProps = !title || typeof title === 'string'
|
|
40
41
|
? { text: title, textSize: getTextSize(size) }
|
|
41
42
|
: title;
|
|
@@ -44,6 +45,7 @@ const Content = (props) => {
|
|
|
44
45
|
title && react_1.default.createElement(components_1.Title, { className: b('title'), title: titleProps, colSizes: { all: 12 } }),
|
|
45
46
|
text && (react_1.default.createElement("div", { className: b('text', { ['without-title']: !hasTitle }) },
|
|
46
47
|
react_1.default.createElement(components_1.YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true } }))),
|
|
48
|
+
(list === null || list === void 0 ? void 0 : list.length) ? react_1.default.createElement(ContentList_1.default, { list: list, size: size }) : null,
|
|
47
49
|
additionalInfo && (react_1.default.createElement("div", { className: b('notice') },
|
|
48
50
|
react_1.default.createElement(components_1.YFMWrapper, { content: additionalInfo, modifiers: {
|
|
49
51
|
constructor: true,
|