@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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContentItemProps, ContentSize } from '../../../models';
|
|
2
|
+
import './ContentList.css';
|
|
3
|
+
interface ContentListProps {
|
|
4
|
+
list: ContentItemProps[];
|
|
5
|
+
size: ContentSize;
|
|
6
|
+
}
|
|
7
|
+
declare const ContentList: ({ list, size }: ContentListProps) => JSX.Element;
|
|
8
|
+
export default ContentList;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
import { YFMWrapper } from '../../../components';
|
|
4
|
+
import Image from '../../../components/Image/Image';
|
|
5
|
+
import { getMediaImage } from '../../../components/Media/Image/utils';
|
|
6
|
+
import { useTheme } from '../../../context/theme';
|
|
7
|
+
import { block, getThemedValue } from '../../../utils';
|
|
8
|
+
import './ContentList.css';
|
|
9
|
+
const b = block('content-list');
|
|
10
|
+
const ContentList = ({ list, size }) => {
|
|
11
|
+
const theme = useTheme();
|
|
12
|
+
return (React.createElement("div", { className: b({ size }) }, list === null || list === void 0 ? void 0 : list.map((item) => {
|
|
13
|
+
const { icon, title, text } = item;
|
|
14
|
+
const iconThemed = getThemedValue(icon, theme);
|
|
15
|
+
const iconData = getMediaImage(iconThemed);
|
|
16
|
+
return (React.createElement("div", { className: b('item'), key: uuidv4() },
|
|
17
|
+
React.createElement(Image, Object.assign({}, iconData, { className: b('icon') })),
|
|
18
|
+
React.createElement("div", null,
|
|
19
|
+
title && React.createElement("h4", { className: b('title') }, title),
|
|
20
|
+
text && (React.createElement(YFMWrapper, { className: b('text'), content: text, modifiers: { constructor: true } })))));
|
|
21
|
+
})));
|
|
22
|
+
};
|
|
23
|
+
export default ContentList;
|
|
@@ -1,6 +1,49 @@
|
|
|
1
|
+
export declare const ContentItem: {
|
|
2
|
+
additionalProperties: boolean;
|
|
3
|
+
required: string[];
|
|
4
|
+
properties: {
|
|
5
|
+
title: {
|
|
6
|
+
type: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
};
|
|
9
|
+
text: {
|
|
10
|
+
type: string;
|
|
11
|
+
contentType: string;
|
|
12
|
+
};
|
|
13
|
+
icon: {
|
|
14
|
+
oneOf: (({
|
|
15
|
+
oneOf: ({
|
|
16
|
+
type: string;
|
|
17
|
+
properties: {
|
|
18
|
+
when: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
type: string;
|
|
24
|
+
pattern: string;
|
|
25
|
+
optionName: string;
|
|
26
|
+
})[];
|
|
27
|
+
} & {
|
|
28
|
+
optionName: string;
|
|
29
|
+
}) | {
|
|
30
|
+
type: string;
|
|
31
|
+
additionalProperties: boolean;
|
|
32
|
+
required: import("../..").Theme[];
|
|
33
|
+
properties: {};
|
|
34
|
+
optionName: string;
|
|
35
|
+
})[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
1
39
|
export declare const ContentBase: {
|
|
2
40
|
title: {
|
|
3
41
|
oneOf: ({
|
|
42
|
+
type: string;
|
|
43
|
+
contentType: string;
|
|
44
|
+
optionName: string;
|
|
45
|
+
} | {
|
|
46
|
+
optionName: string;
|
|
4
47
|
type: string;
|
|
5
48
|
additionalProperties: boolean;
|
|
6
49
|
required: string[];
|
|
@@ -20,14 +63,13 @@ export declare const ContentBase: {
|
|
|
20
63
|
type: string;
|
|
21
64
|
};
|
|
22
65
|
};
|
|
23
|
-
|
|
24
|
-
type: string;
|
|
25
|
-
contentType: string;
|
|
66
|
+
contentType?: undefined;
|
|
26
67
|
})[];
|
|
27
68
|
};
|
|
28
69
|
text: {
|
|
29
70
|
type: string;
|
|
30
71
|
contentType: string;
|
|
72
|
+
inputType: string;
|
|
31
73
|
};
|
|
32
74
|
additionalInfo: {
|
|
33
75
|
type: string;
|
|
@@ -63,6 +105,17 @@ export declare const ContentBase: {
|
|
|
63
105
|
type: string;
|
|
64
106
|
enum: string[];
|
|
65
107
|
};
|
|
108
|
+
list: {
|
|
109
|
+
type: string;
|
|
110
|
+
items: {
|
|
111
|
+
type: string;
|
|
112
|
+
properties: {
|
|
113
|
+
when: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
66
119
|
};
|
|
67
120
|
export declare const ContentBlock: {
|
|
68
121
|
content: {
|
|
@@ -74,6 +127,11 @@ export declare const ContentBlock: {
|
|
|
74
127
|
};
|
|
75
128
|
title: {
|
|
76
129
|
oneOf: ({
|
|
130
|
+
type: string;
|
|
131
|
+
contentType: string;
|
|
132
|
+
optionName: string;
|
|
133
|
+
} | {
|
|
134
|
+
optionName: string;
|
|
77
135
|
type: string;
|
|
78
136
|
additionalProperties: boolean;
|
|
79
137
|
required: string[];
|
|
@@ -93,14 +151,13 @@ export declare const ContentBlock: {
|
|
|
93
151
|
type: string;
|
|
94
152
|
};
|
|
95
153
|
};
|
|
96
|
-
|
|
97
|
-
type: string;
|
|
98
|
-
contentType: string;
|
|
154
|
+
contentType?: undefined;
|
|
99
155
|
})[];
|
|
100
156
|
};
|
|
101
157
|
text: {
|
|
102
158
|
type: string;
|
|
103
159
|
contentType: string;
|
|
160
|
+
inputType: string;
|
|
104
161
|
};
|
|
105
162
|
additionalInfo: {
|
|
106
163
|
type: string;
|
|
@@ -136,6 +193,17 @@ export declare const ContentBlock: {
|
|
|
136
193
|
type: string;
|
|
137
194
|
enum: string[];
|
|
138
195
|
};
|
|
196
|
+
list: {
|
|
197
|
+
type: string;
|
|
198
|
+
items: {
|
|
199
|
+
type: string;
|
|
200
|
+
properties: {
|
|
201
|
+
when: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
139
207
|
};
|
|
140
208
|
};
|
|
141
209
|
};
|
|
@@ -1,12 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageProps } from '../../components/Image/schema';
|
|
2
|
+
import { ButtonBlock, LinkProps, TitleProps, containerSizesArray, contentSizes, contentThemes, sizeNumber, withTheme, } from '../../schema/validators/common';
|
|
2
3
|
import { filteredArray } from '../../schema/validators/utils';
|
|
4
|
+
export const ContentItem = {
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['icon'],
|
|
7
|
+
properties: {
|
|
8
|
+
title: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
contentType: 'text',
|
|
11
|
+
},
|
|
12
|
+
text: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
contentType: 'yfm',
|
|
15
|
+
},
|
|
16
|
+
icon: withTheme(ImageProps),
|
|
17
|
+
},
|
|
18
|
+
};
|
|
3
19
|
export const ContentBase = {
|
|
4
20
|
title: {
|
|
5
|
-
oneOf: [
|
|
21
|
+
oneOf: [
|
|
22
|
+
{
|
|
23
|
+
type: 'string',
|
|
24
|
+
contentType: 'text',
|
|
25
|
+
optionName: 'text',
|
|
26
|
+
},
|
|
27
|
+
Object.assign(Object.assign({}, TitleProps), { optionName: 'options' }),
|
|
28
|
+
],
|
|
6
29
|
},
|
|
7
30
|
text: {
|
|
8
31
|
type: 'string',
|
|
9
32
|
contentType: 'yfm',
|
|
33
|
+
inputType: 'textarea',
|
|
10
34
|
},
|
|
11
35
|
additionalInfo: {
|
|
12
36
|
type: 'string',
|
|
@@ -22,6 +46,7 @@ export const ContentBase = {
|
|
|
22
46
|
type: 'string',
|
|
23
47
|
enum: contentThemes,
|
|
24
48
|
},
|
|
49
|
+
list: filteredArray(ContentItem),
|
|
25
50
|
};
|
|
26
51
|
export const ContentBlock = {
|
|
27
52
|
content: {
|
|
@@ -8,8 +8,8 @@ unpredictable css rules order in build */
|
|
|
8
8
|
padding-left: 10px;
|
|
9
9
|
}
|
|
10
10
|
.pc-hubspot-form .hs-form-field > label {
|
|
11
|
-
color: var(--
|
|
12
|
-
font-size: var(--
|
|
11
|
+
color: var(--g-color-text-primary);
|
|
12
|
+
font-size: var(--g-text-body-2-font-size);
|
|
13
13
|
display: flex;
|
|
14
14
|
width: 200px;
|
|
15
15
|
max-width: 100%;
|
|
@@ -42,11 +42,11 @@ unpredictable css rules order in build */
|
|
|
42
42
|
font-size: 15px;
|
|
43
43
|
line-height: 16px;
|
|
44
44
|
font-weight: normal;
|
|
45
|
-
font-family: var(--
|
|
46
|
-
color: var(--
|
|
45
|
+
font-family: var(--g-text-body-font-family);
|
|
46
|
+
color: var(--g-color-text-primary);
|
|
47
47
|
background-color: transparent;
|
|
48
|
-
border: 1px solid var(--
|
|
49
|
-
border-radius: var(--
|
|
48
|
+
border: 1px solid var(--g-color-line-generic);
|
|
49
|
+
border-radius: var(--g-border-radius-l);
|
|
50
50
|
}
|
|
51
51
|
.pc-hubspot-form .hs-form-field .input input[type=text]:hover,
|
|
52
52
|
.pc-hubspot-form .hs-form-field .input input[type=number]:hover,
|
|
@@ -54,7 +54,7 @@ unpredictable css rules order in build */
|
|
|
54
54
|
.pc-hubspot-form .hs-form-field .input input[type=email]:hover,
|
|
55
55
|
.pc-hubspot-form .hs-form-field .input textarea:hover,
|
|
56
56
|
.pc-hubspot-form .hs-form-field .input select:hover {
|
|
57
|
-
border: 1px solid var(--
|
|
57
|
+
border: 1px solid var(--g-color-line-generic-hover);
|
|
58
58
|
}
|
|
59
59
|
.pc-hubspot-form .hs-form-field .input input[type=text]::placeholder,
|
|
60
60
|
.pc-hubspot-form .hs-form-field .input input[type=number]::placeholder,
|
|
@@ -62,7 +62,7 @@ unpredictable css rules order in build */
|
|
|
62
62
|
.pc-hubspot-form .hs-form-field .input input[type=email]::placeholder,
|
|
63
63
|
.pc-hubspot-form .hs-form-field .input textarea::placeholder,
|
|
64
64
|
.pc-hubspot-form .hs-form-field .input select::placeholder {
|
|
65
|
-
color: var(--
|
|
65
|
+
color: var(--g-color-text-hint);
|
|
66
66
|
}
|
|
67
67
|
.pc-hubspot-form .hs-form-field .input input[type=text]:focus,
|
|
68
68
|
.pc-hubspot-form .hs-form-field .input input[type=number]:focus,
|
|
@@ -77,7 +77,7 @@ unpredictable css rules order in build */
|
|
|
77
77
|
.pc-hubspot-form .hs-form-field .input input[type=tel]:focus,
|
|
78
78
|
.pc-hubspot-form .hs-form-field .input input[type=email]:focus,
|
|
79
79
|
.pc-hubspot-form .hs-form-field .input textarea:focus {
|
|
80
|
-
border: 2px solid var(--
|
|
80
|
+
border: 2px solid var(--g-color-base-brand);
|
|
81
81
|
outline: none;
|
|
82
82
|
}
|
|
83
83
|
.pc-hubspot-form .hs-form-field .input textarea {
|
|
@@ -97,7 +97,7 @@ unpredictable css rules order in build */
|
|
|
97
97
|
padding-right: 30px;
|
|
98
98
|
}
|
|
99
99
|
.pc-hubspot-form .hs-form-field .input select:focus {
|
|
100
|
-
border: 1px solid var(--
|
|
100
|
+
border: 1px solid var(--g-color-line-generic-active);
|
|
101
101
|
}
|
|
102
102
|
.pc-hubspot-form .hs-form-field:not(.hs-fieldtype-textarea):not(.hs-fieldtype-booleancheckbox) {
|
|
103
103
|
display: flex;
|
|
@@ -129,8 +129,8 @@ unpredictable css rules order in build */
|
|
|
129
129
|
.pc-hubspot-form .hs-form-field .hs-form-checkbox-display span:not(.hs-form-required),
|
|
130
130
|
.pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display span:not(.hs-form-required),
|
|
131
131
|
.pc-hubspot-form .hs-form-field .hs-form-radio-display span:not(.hs-form-required) {
|
|
132
|
-
color: var(--
|
|
133
|
-
font-size: var(--
|
|
132
|
+
color: var(--g-color-text-primary);
|
|
133
|
+
font-size: var(--g-text-body-2-font-size);
|
|
134
134
|
line-height: 16px;
|
|
135
135
|
padding-left: 7px;
|
|
136
136
|
margin: 0;
|
|
@@ -155,7 +155,7 @@ unpredictable css rules order in build */
|
|
|
155
155
|
width: 17px;
|
|
156
156
|
background-color: transparent;
|
|
157
157
|
border-radius: 4px;
|
|
158
|
-
border: 1px solid var(--
|
|
158
|
+
border: 1px solid var(--g-color-line-generic-accent);
|
|
159
159
|
transition: background-color 0.1s linear;
|
|
160
160
|
}
|
|
161
161
|
.pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display span:not(.hs-form-required):after,
|
|
@@ -188,7 +188,7 @@ unpredictable css rules order in build */
|
|
|
188
188
|
width: 17px;
|
|
189
189
|
background-color: transparent;
|
|
190
190
|
border-radius: 50%;
|
|
191
|
-
border: 1px solid var(--
|
|
191
|
+
border: 1px solid var(--g-color-line-generic-accent);
|
|
192
192
|
transition: background-color 0.1s linear;
|
|
193
193
|
}
|
|
194
194
|
.pc-hubspot-form .hs-form-field .hs-form-radio-display span:after {
|
|
@@ -217,18 +217,18 @@ unpredictable css rules order in build */
|
|
|
217
217
|
padding-left: 10px;
|
|
218
218
|
}
|
|
219
219
|
.pc-hubspot-form .hs-richtext p {
|
|
220
|
-
color: var(--
|
|
221
|
-
font-size: var(--
|
|
222
|
-
line-height: var(--
|
|
223
|
-
font-weight: var(--
|
|
220
|
+
color: var(--g-color-text-primary);
|
|
221
|
+
font-size: var(--g-text-body-2-font-size);
|
|
222
|
+
line-height: var(--g-text-body-2-line-height);
|
|
223
|
+
font-weight: var(--g-text-body-font-weight);
|
|
224
224
|
margin: 0 0 20px;
|
|
225
225
|
}
|
|
226
226
|
.pc-hubspot-form .hs_error_rollup {
|
|
227
227
|
padding-left: 10px;
|
|
228
|
-
font-size: var(--
|
|
229
|
-
line-height: var(--
|
|
230
|
-
font-weight: var(--
|
|
231
|
-
color: var(--
|
|
228
|
+
font-size: var(--g-text-body-1-font-size);
|
|
229
|
+
line-height: var(--g-text-body-1-line-height);
|
|
230
|
+
font-weight: var(--g-text-body-font-weight);
|
|
231
|
+
color: var(--g-color-text-danger);
|
|
232
232
|
}
|
|
233
233
|
.pc-hubspot-form .inputs-list {
|
|
234
234
|
list-style: none;
|
|
@@ -236,7 +236,7 @@ unpredictable css rules order in build */
|
|
|
236
236
|
margin: 0;
|
|
237
237
|
}
|
|
238
238
|
.pc-hubspot-form .hs-form-required {
|
|
239
|
-
color: var(--
|
|
239
|
+
color: var(--g-color-text-hint);
|
|
240
240
|
width: 10px;
|
|
241
241
|
order: 1;
|
|
242
242
|
position: absolute;
|
|
@@ -246,8 +246,8 @@ unpredictable css rules order in build */
|
|
|
246
246
|
order: 3;
|
|
247
247
|
padding: 0;
|
|
248
248
|
margin: 3px 0 0;
|
|
249
|
-
font-size: var(--
|
|
250
|
-
color: var(--
|
|
249
|
+
font-size: var(--g-text-body-1-font-size);
|
|
250
|
+
color: var(--g-color-text-complementary);
|
|
251
251
|
}
|
|
252
252
|
.pc-hubspot-form .hs-error-msgs {
|
|
253
253
|
width: 100%;
|
|
@@ -255,10 +255,10 @@ unpredictable css rules order in build */
|
|
|
255
255
|
order: 4;
|
|
256
256
|
}
|
|
257
257
|
.pc-hubspot-form .hs-error-msg {
|
|
258
|
-
font-size: var(--
|
|
259
|
-
line-height: var(--
|
|
260
|
-
font-weight: var(--
|
|
261
|
-
color: var(--
|
|
258
|
+
font-size: var(--g-text-body-1-font-size);
|
|
259
|
+
line-height: var(--g-text-body-1-line-height);
|
|
260
|
+
font-weight: var(--g-text-body-font-weight);
|
|
261
|
+
color: var(--g-color-text-danger);
|
|
262
262
|
display: block;
|
|
263
263
|
}
|
|
264
264
|
.pc-hubspot-form .actions {
|
|
@@ -268,7 +268,7 @@ unpredictable css rules order in build */
|
|
|
268
268
|
.pc-hubspot-form .hs-button.primary {
|
|
269
269
|
margin: 0;
|
|
270
270
|
padding: 0;
|
|
271
|
-
font-family: var(--
|
|
271
|
+
font-family: var(--g-font-family-sans);
|
|
272
272
|
font-size: inherit;
|
|
273
273
|
font-weight: 400;
|
|
274
274
|
color: inherit;
|
|
@@ -282,11 +282,11 @@ unpredictable css rules order in build */
|
|
|
282
282
|
box-sizing: border-box;
|
|
283
283
|
height: 44px;
|
|
284
284
|
padding: 0 20px;
|
|
285
|
-
border-radius: var(--
|
|
286
|
-
background-color: var(--
|
|
287
|
-
color: var(--
|
|
285
|
+
border-radius: var(--g-border-radius-xl);
|
|
286
|
+
background-color: var(--g-color-base-brand);
|
|
287
|
+
color: var(--g-color-text-brand-contrast);
|
|
288
288
|
line-height: 44px;
|
|
289
|
-
font-size: var(--
|
|
289
|
+
font-size: var(--g-text-body-2-font-size);
|
|
290
290
|
font-weight: normal;
|
|
291
291
|
user-select: none;
|
|
292
292
|
text-align: center;
|
|
@@ -294,16 +294,16 @@ unpredictable css rules order in build */
|
|
|
294
294
|
appearance: none;
|
|
295
295
|
}
|
|
296
296
|
.pc-hubspot-form .hs-button.primary:hover {
|
|
297
|
-
background-color: var(--
|
|
297
|
+
background-color: var(--g-color-base-brand-hover);
|
|
298
298
|
}
|
|
299
299
|
.pc-hubspot-form .grecaptcha-badge {
|
|
300
300
|
box-shadow: none !important;
|
|
301
|
-
border: 1px solid var(--
|
|
301
|
+
border: 1px solid var(--g-color-line-generic);
|
|
302
302
|
}
|
|
303
303
|
.pc-hubspot-form .hs_recaptcha div {
|
|
304
|
-
font-size: var(--
|
|
305
|
-
line-height: var(--
|
|
306
|
-
font-weight: var(--
|
|
304
|
+
font-size: var(--g-text-body-2-font-size);
|
|
305
|
+
line-height: var(--g-text-body-2-line-height);
|
|
306
|
+
font-weight: var(--g-text-body-font-weight);
|
|
307
307
|
}
|
|
308
308
|
.pc-hubspot-form_mobile .hs-richtext,
|
|
309
309
|
.pc-hubspot-form_mobile .hs-form-field,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, useContext, useMemo } from 'react';
|
|
2
2
|
import { MobileContext } from '../../context/mobileContext';
|
|
3
|
-
import {
|
|
3
|
+
import { useTheme } from '../../context/theme';
|
|
4
4
|
import { useAnalytics, useHandleHubspotEvents } from '../../hooks';
|
|
5
5
|
import { useMetrika } from '../../hooks/useMetrika';
|
|
6
6
|
import { DefaultEventNames } from '../../models';
|
|
@@ -13,8 +13,8 @@ const HubspotForm = forwardRef((props, ref) => {
|
|
|
13
13
|
// hubspotEvents, // TODO: decide how to handle them
|
|
14
14
|
analyticsEvents, onBeforeSubmit, onSubmit, onBeforeLoad, onLoad, createDOMElement, onSubmitError, } = props;
|
|
15
15
|
const handleMetrika = useMetrika();
|
|
16
|
+
const themeValue = useTheme();
|
|
16
17
|
const handleAnalytics = useAnalytics(DefaultEventNames.HubspotFormSubmit);
|
|
17
|
-
const { themeValue } = useContext(ThemeValueContext);
|
|
18
18
|
const isMobileValue = useContext(MobileContext);
|
|
19
19
|
const theme = themeProp !== null && themeProp !== void 0 ? themeProp : themeValue;
|
|
20
20
|
const mobile = isMobileProp !== null && isMobileProp !== void 0 ? isMobileProp : isMobileValue;
|
|
@@ -6,7 +6,7 @@ unpredictable css rules order in build */
|
|
|
6
6
|
border-radius: var(--pc-border-radius);
|
|
7
7
|
}
|
|
8
8
|
.pc-layout-item__media_border {
|
|
9
|
-
border: 1px solid var(--
|
|
9
|
+
border: 1px solid var(--g-color-line-generic);
|
|
10
10
|
}
|
|
11
11
|
.pc-layout-item__meta-info {
|
|
12
12
|
margin: 16px 0 -8px 0;
|
|
@@ -8,7 +8,8 @@ export declare const LayoutItem: {
|
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
10
|
image: {
|
|
11
|
-
|
|
11
|
+
oneOf: ({
|
|
12
|
+
optionName: string;
|
|
12
13
|
oneOf: ({
|
|
13
14
|
type: string;
|
|
14
15
|
properties: {
|
|
@@ -19,7 +20,10 @@ export declare const LayoutItem: {
|
|
|
19
20
|
} | {
|
|
20
21
|
type: string;
|
|
21
22
|
pattern: string;
|
|
23
|
+
optionName: string;
|
|
22
24
|
})[];
|
|
25
|
+
type?: undefined;
|
|
26
|
+
items?: undefined;
|
|
23
27
|
} | {
|
|
24
28
|
type: string;
|
|
25
29
|
items: {
|
|
@@ -33,8 +37,10 @@ export declare const LayoutItem: {
|
|
|
33
37
|
} | {
|
|
34
38
|
type: string;
|
|
35
39
|
pattern: string;
|
|
40
|
+
optionName: string;
|
|
36
41
|
})[];
|
|
37
42
|
};
|
|
43
|
+
optionName: string;
|
|
38
44
|
})[];
|
|
39
45
|
};
|
|
40
46
|
video: {
|
|
@@ -49,7 +55,8 @@ export declare const LayoutItem: {
|
|
|
49
55
|
};
|
|
50
56
|
};
|
|
51
57
|
loop: {
|
|
52
|
-
|
|
58
|
+
oneOf: ({
|
|
59
|
+
optionName: string;
|
|
53
60
|
type: string;
|
|
54
61
|
additionalProperties: boolean;
|
|
55
62
|
required: string[];
|
|
@@ -63,6 +70,7 @@ export declare const LayoutItem: {
|
|
|
63
70
|
};
|
|
64
71
|
} | {
|
|
65
72
|
type: string;
|
|
73
|
+
optionName: string;
|
|
66
74
|
})[];
|
|
67
75
|
};
|
|
68
76
|
type: {
|
|
@@ -72,13 +80,13 @@ export declare const LayoutItem: {
|
|
|
72
80
|
muted: {
|
|
73
81
|
type: string;
|
|
74
82
|
};
|
|
75
|
-
|
|
83
|
+
autoplay: {
|
|
76
84
|
type: string;
|
|
77
85
|
};
|
|
78
86
|
elapsedTime: {
|
|
79
87
|
type: string;
|
|
80
88
|
};
|
|
81
|
-
|
|
89
|
+
playButton: {
|
|
82
90
|
type: string;
|
|
83
91
|
additionalProperties: boolean;
|
|
84
92
|
properties: {
|
|
@@ -116,6 +124,10 @@ export declare const LayoutItem: {
|
|
|
116
124
|
};
|
|
117
125
|
dataLens: {
|
|
118
126
|
oneOf: ({
|
|
127
|
+
type: string;
|
|
128
|
+
optionName: string;
|
|
129
|
+
} | {
|
|
130
|
+
optionName: string;
|
|
119
131
|
type: string;
|
|
120
132
|
additionalProperties: boolean;
|
|
121
133
|
required: string[];
|
|
@@ -128,17 +140,98 @@ export declare const LayoutItem: {
|
|
|
128
140
|
enum: string[];
|
|
129
141
|
};
|
|
130
142
|
};
|
|
131
|
-
} | {
|
|
132
|
-
type: string;
|
|
133
143
|
})[];
|
|
134
144
|
};
|
|
135
145
|
fullscreen: {
|
|
136
146
|
type: string;
|
|
137
147
|
};
|
|
148
|
+
analyticsEvents: {
|
|
149
|
+
anyOf: ({
|
|
150
|
+
type: string;
|
|
151
|
+
additionalProperties: {
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
required: string[];
|
|
155
|
+
properties: {
|
|
156
|
+
name: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
type: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
counters: {
|
|
163
|
+
type: string;
|
|
164
|
+
additionalProperties: boolean;
|
|
165
|
+
required: never[];
|
|
166
|
+
properties: {
|
|
167
|
+
include: {
|
|
168
|
+
type: string;
|
|
169
|
+
items: {
|
|
170
|
+
type: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
exclude: {
|
|
174
|
+
type: string;
|
|
175
|
+
items: {
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
context: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
} | {
|
|
186
|
+
type: string;
|
|
187
|
+
items: {
|
|
188
|
+
type: string;
|
|
189
|
+
additionalProperties: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
required: string[];
|
|
193
|
+
properties: {
|
|
194
|
+
name: {
|
|
195
|
+
type: string;
|
|
196
|
+
};
|
|
197
|
+
type: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
200
|
+
counters: {
|
|
201
|
+
type: string;
|
|
202
|
+
additionalProperties: boolean;
|
|
203
|
+
required: never[];
|
|
204
|
+
properties: {
|
|
205
|
+
include: {
|
|
206
|
+
type: string;
|
|
207
|
+
items: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
exclude: {
|
|
212
|
+
type: string;
|
|
213
|
+
items: {
|
|
214
|
+
type: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
context: {
|
|
220
|
+
type: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
})[];
|
|
225
|
+
};
|
|
138
226
|
};
|
|
139
227
|
content: Partial<{
|
|
140
228
|
title: {
|
|
141
229
|
oneOf: ({
|
|
230
|
+
type: string;
|
|
231
|
+
contentType: string;
|
|
232
|
+
optionName: string;
|
|
233
|
+
} | {
|
|
234
|
+
optionName: string;
|
|
142
235
|
type: string;
|
|
143
236
|
additionalProperties: boolean;
|
|
144
237
|
required: string[];
|
|
@@ -158,14 +251,13 @@ export declare const LayoutItem: {
|
|
|
158
251
|
type: string;
|
|
159
252
|
};
|
|
160
253
|
};
|
|
161
|
-
|
|
162
|
-
type: string;
|
|
163
|
-
contentType: string;
|
|
254
|
+
contentType?: undefined;
|
|
164
255
|
})[];
|
|
165
256
|
};
|
|
166
257
|
text: {
|
|
167
258
|
type: string;
|
|
168
259
|
contentType: string;
|
|
260
|
+
inputType: string;
|
|
169
261
|
};
|
|
170
262
|
additionalInfo: {
|
|
171
263
|
type: string;
|
|
@@ -201,6 +293,17 @@ export declare const LayoutItem: {
|
|
|
201
293
|
type: string;
|
|
202
294
|
enum: string[];
|
|
203
295
|
};
|
|
296
|
+
list: {
|
|
297
|
+
type: string;
|
|
298
|
+
items: {
|
|
299
|
+
type: string;
|
|
300
|
+
properties: {
|
|
301
|
+
when: {
|
|
302
|
+
type: string;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
204
307
|
}>;
|
|
205
308
|
metaInfo: {
|
|
206
309
|
type: string;
|
|
@@ -216,6 +319,8 @@ export declare const LayoutItem: {
|
|
|
216
319
|
type: string;
|
|
217
320
|
};
|
|
218
321
|
type: {};
|
|
219
|
-
when: {
|
|
322
|
+
when: {
|
|
323
|
+
type: string;
|
|
324
|
+
};
|
|
220
325
|
};
|
|
221
326
|
};
|