@gravity-ui/page-constructor 1.10.7-alpha.0 → 1.10.7-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/cjs/blocks/Banner/Banner.js +3 -3
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -2
- package/build/cjs/blocks/Companies/Companies.js +2 -2
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/cjs/blocks/Header/Header.d.ts +1 -1
- package/build/cjs/blocks/Header/Header.js +3 -3
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +3 -3
- package/build/cjs/blocks/Icons/Icons.js +2 -2
- package/build/cjs/blocks/Info/Info.js +2 -2
- package/build/cjs/blocks/Info/schema.js +1 -1
- package/build/cjs/blocks/LinkTable/LinkTable.js +5 -5
- package/build/cjs/blocks/Media/Media.js +7 -7
- package/build/cjs/blocks/Media/MediaContent.js +1 -1
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.js +3 -3
- package/build/cjs/blocks/Preview/MediaContent/PreviewContent.js +2 -2
- package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.js +2 -2
- package/build/cjs/blocks/Preview/Preview.js +3 -3
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +8 -8
- package/build/cjs/blocks/Questions/Questions.js +2 -2
- package/build/cjs/blocks/Questions/schema.js +1 -1
- package/build/cjs/blocks/Security/Security.js +1 -1
- package/build/cjs/blocks/Security/schema.js +1 -1
- package/build/cjs/blocks/Share/Share.js +2 -2
- package/build/cjs/blocks/Share/i18n/index.js +2 -2
- package/build/cjs/blocks/Simple/Simple.js +5 -5
- package/build/cjs/blocks/Slider/Arrow/Arrow.d.ts +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/cjs/blocks/Slider/Slider.js +10 -10
- package/build/cjs/blocks/Slider/models.d.ts +2 -2
- package/build/cjs/blocks/Table/Table.js +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +7 -7
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/validators.js +19 -19
- package/build/cjs/components/Anchor/Anchor.d.ts +1 -2
- package/build/cjs/components/Anchor/Anchor.js +2 -2
- package/build/cjs/components/AnimateBlock/AnimateBlock.js +1 -1
- package/build/cjs/components/Author/Author.js +1 -1
- package/build/cjs/components/BackLink/BackLink.d.ts +1 -1
- package/build/cjs/components/BackLink/BackLink.js +1 -1
- package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
- package/build/cjs/components/BackgroundMedia/BackgroundMedia.js +4 -4
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +2 -2
- package/build/cjs/components/BlockBase/BlockBase.js +2 -2
- package/build/cjs/components/Button/Button.js +2 -2
- package/build/cjs/components/Button/utils.d.ts +2 -2
- package/build/cjs/components/ButtonTabs/ButtonTabs.js +1 -1
- package/build/cjs/components/CardBase/CardBase.js +3 -3
- package/build/cjs/components/Control/Control.js +1 -1
- package/build/cjs/components/ErrorWrapper/ErrorWrapper.js +1 -1
- package/build/cjs/components/FileLink/FileLink.js +1 -1
- package/build/cjs/components/Foldable/Foldable.js +2 -2
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js +2 -2
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +2 -2
- package/build/cjs/components/HTML/HTML.js +1 -1
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/cjs/components/HeaderComponent/HeaderComponent.css +16 -0
- package/build/cjs/components/HeaderComponent/HeaderComponent.d.ts +7 -0
- package/build/cjs/components/{BlockHeader/BlockHeader.js → HeaderComponent/HeaderComponent.js} +8 -7
- package/build/cjs/components/HeightCalculator/HeightCalculator.js +2 -2
- package/build/cjs/components/Image/Image.js +1 -1
- package/build/cjs/components/Link/Link.d.ts +1 -1
- package/build/cjs/components/Link/Link.js +3 -3
- package/build/cjs/components/Link/Links.js +2 -2
- package/build/cjs/components/Media/DataLens/DataLens.js +1 -1
- package/build/cjs/components/Media/Image/Image.d.ts +1 -1
- package/build/cjs/components/Media/Image/Image.js +6 -6
- package/build/cjs/components/Media/Media.js +5 -5
- package/build/cjs/components/Media/Video/Video.d.ts +1 -1
- package/build/cjs/components/Media/Video/Video.js +2 -2
- package/build/cjs/components/OutsideClick/OutsideClick.js +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.d.ts +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
- package/build/cjs/components/ReactPlayer/CircleProgress.js +1 -1
- package/build/cjs/components/ReactPlayer/CustomBarControls.js +2 -2
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +4 -4
- package/build/cjs/components/RouterLink/RouterLink.js +1 -1
- package/build/cjs/components/Table/Table.js +1 -1
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/components/ToggleArrow/ToggleArrow.js +1 -1
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.d.ts +1 -1
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
- package/build/cjs/components/UnpublishedLabel/i18n/index.js +2 -2
- package/build/cjs/components/VideoBlock/VideoBlock.js +3 -3
- package/build/cjs/components/YFMWrapper/YFMWrapper.js +3 -3
- package/build/cjs/components/YandexForm/YandexForm.js +1 -1
- package/build/cjs/components/index.d.ts +1 -1
- package/build/cjs/components/index.js +3 -3
- package/build/cjs/containers/Loadable/Loadable.js +4 -4
- package/build/cjs/containers/Loadable/i18n/index.js +2 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +4 -4
- package/build/cjs/containers/PageConstructor/Provider.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/index.js +1 -1
- package/build/cjs/context/animateContext/AnimateContext.js +1 -1
- package/build/cjs/context/animateContext/index.js +1 -1
- package/build/cjs/context/breakpointContext/breakpointContext.js +1 -1
- package/build/cjs/context/breakpointContext/index.js +1 -1
- package/build/cjs/context/innerContext/InnerContext.js +1 -1
- package/build/cjs/context/innerContext/index.js +1 -1
- package/build/cjs/context/localeContext/index.js +1 -1
- package/build/cjs/context/localeContext/localeContext.d.ts +1 -1
- package/build/cjs/context/localeContext/localeContext.js +1 -1
- package/build/cjs/context/locationContext/index.js +1 -1
- package/build/cjs/context/locationContext/locationContext.d.ts +2 -2
- package/build/cjs/context/locationContext/locationContext.js +1 -1
- package/build/cjs/context/metrikaContext/index.js +1 -1
- package/build/cjs/context/metrikaContext/metrikaContext.js +1 -1
- package/build/cjs/context/mobileContext/MobileContext.js +1 -1
- package/build/cjs/context/mobileContext/index.js +1 -1
- package/build/cjs/context/projectSettingsContext/ProjectSettingsContext.js +1 -1
- package/build/cjs/context/projectSettingsContext/index.js +1 -1
- package/build/cjs/context/ssrContext/SSRContext.js +1 -1
- package/build/cjs/context/ssrContext/index.js +1 -1
- package/build/cjs/context/stylesContext/StylesContext.js +1 -1
- package/build/cjs/context/stylesContext/index.js +1 -1
- package/build/cjs/context/theme/ThemeContext.js +1 -1
- package/build/cjs/context/theme/ThemeProvider.js +1 -1
- package/build/cjs/context/theme/ThemeValueContext.d.ts +1 -1
- package/build/cjs/context/theme/ThemeValueContext.js +1 -1
- package/build/cjs/context/theme/index.js +4 -4
- package/build/cjs/context/theme/useTheme.js +1 -1
- package/build/cjs/context/theme/useThemeValue.js +1 -1
- package/build/cjs/context/theme/withTheme.js +1 -1
- package/build/cjs/context/videoContext/VideoContext.js +1 -1
- package/build/cjs/context/videoContext/index.js +1 -1
- package/build/cjs/grid/Break/Break.js +1 -1
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/grid/Col/Col.js +2 -2
- package/build/cjs/grid/Grid/Grid.js +1 -1
- package/build/cjs/grid/Row/Row.js +1 -1
- package/build/cjs/grid/index.js +6 -6
- package/build/cjs/grid/types.d.ts +2 -2
- package/build/cjs/hooks/index.js +4 -4
- package/build/cjs/hooks/useFocus.js +1 -1
- package/build/cjs/hooks/useIntersection.d.ts +1 -1
- package/build/cjs/hooks/useMetrika.d.ts +1 -1
- package/build/cjs/hooks/useMount.d.ts +1 -1
- package/build/cjs/hooks/useWindowBreakpoint.js +1 -1
- package/build/cjs/icons/ArrowConstructor.js +1 -1
- package/build/cjs/icons/ArrowSidebar.js +1 -1
- package/build/cjs/icons/Chevron.js +1 -1
- package/build/cjs/icons/Facebook.js +1 -1
- package/build/cjs/icons/FullScreen.js +1 -1
- package/build/cjs/icons/Github.js +1 -1
- package/build/cjs/icons/Linkedin.js +1 -1
- package/build/cjs/icons/NavigationArrow.js +1 -1
- package/build/cjs/icons/NavigationChevron.js +1 -1
- package/build/cjs/icons/NavigationClose.js +1 -1
- package/build/cjs/icons/NavigationOpen.js +1 -1
- package/build/cjs/icons/PlayVideo.js +1 -1
- package/build/cjs/icons/PreviewClose.js +1 -1
- package/build/cjs/icons/Telegram.js +1 -1
- package/build/cjs/icons/Twitter.js +1 -1
- package/build/cjs/icons/Vk.js +1 -1
- package/build/cjs/icons/index.js +11 -11
- package/build/cjs/index.js +11 -11
- package/build/cjs/models/common.d.ts +3 -3
- package/build/cjs/models/components.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +32 -32
- package/build/cjs/models/constructor-items/common.d.ts +26 -26
- package/build/cjs/models/constructor-items/index.d.ts +1 -1
- package/build/cjs/models/constructor-items/index.js +3 -3
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +15 -15
- package/build/cjs/models/constructor.d.ts +10 -10
- package/build/cjs/models/index.js +7 -7
- package/build/cjs/models/navigation.d.ts +3 -3
- package/build/cjs/models/react.d.ts +1 -1
- package/build/cjs/navigation/components/Header/Header.js +7 -7
- package/build/cjs/navigation/components/Logo/Logo.js +2 -2
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +3 -3
- package/build/cjs/navigation/components/Navigation/Navigation.js +6 -6
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +6 -6
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +3 -3
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js +1 -1
- package/build/cjs/navigation/containers/Layout/Layout.js +2 -2
- package/build/cjs/schema/index.d.ts +1 -1
- package/build/cjs/schema/validators/blocks.js +20 -20
- package/build/cjs/schema/validators/index.js +5 -5
- package/build/cjs/schema/validators/sub-blocks.js +11 -11
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +1 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +3 -3
- package/build/cjs/sub-blocks/BasicCard/schema.js +1 -1
- package/build/cjs/sub-blocks/CardWithImage/CardWithImage.js +1 -1
- package/build/cjs/sub-blocks/Content/Content.js +3 -3
- package/build/cjs/sub-blocks/Divider/Divider.js +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +2 -2
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +2 -2
- package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
- package/build/cjs/sub-blocks/MediaCard/MediaCard.js +2 -2
- package/build/cjs/sub-blocks/NewsCard/NewsCard.js +1 -1
- package/build/cjs/sub-blocks/Partner/Partner.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +2 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +5 -5
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/List.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.js +3 -3
- package/build/cjs/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/Quote/Quote.js +1 -1
- package/build/cjs/sub-blocks/TutorialCard/TutorialCard.js +2 -2
- package/build/cjs/text-transform/blocks.d.ts +5 -5
- package/build/cjs/text-transform/blocks.js +73 -20
- package/build/cjs/text-transform/index.js +2 -2
- package/build/cjs/text-transform/utils.js +4 -4
- package/build/cjs/utils/blocks.d.ts +1 -1
- package/build/cjs/utils/cn.d.ts +1 -1
- package/build/cjs/utils/cn.js +1 -1
- package/build/cjs/utils/configure.d.ts +1 -1
- package/build/cjs/utils/hubspot.d.ts +1 -1
- package/build/cjs/utils/hubspot.js +2 -1
- package/build/cjs/utils/index.js +6 -6
- package/build/cjs/utils/registerKeyset.d.ts +1 -1
- package/build/cjs/utils/theme.d.ts +1 -1
- package/build/cjs/utils/url.d.ts +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/esm/blocks/Header/Header.d.ts +1 -1
- package/build/esm/blocks/Icons/Icons.js +2 -2
- package/build/esm/blocks/LinkTable/LinkTable.js +2 -2
- package/build/esm/blocks/Media/Media.js +2 -2
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +2 -2
- package/build/esm/blocks/Simple/Simple.js +2 -2
- package/build/esm/blocks/Slider/Arrow/Arrow.d.ts +1 -1
- package/build/esm/blocks/Slider/Slider.js +2 -2
- package/build/esm/blocks/Slider/models.d.ts +2 -2
- package/build/esm/blocks/Tabs/Tabs.js +2 -2
- package/build/esm/components/Anchor/Anchor.d.ts +1 -2
- package/build/esm/components/Anchor/Anchor.js +1 -1
- package/build/esm/components/BackLink/BackLink.d.ts +1 -1
- package/build/esm/components/Button/utils.d.ts +2 -2
- package/build/esm/components/HeaderComponent/HeaderComponent.css +16 -0
- package/build/esm/components/HeaderComponent/HeaderComponent.d.ts +8 -0
- package/build/esm/components/{BlockHeader/BlockHeader.js → HeaderComponent/HeaderComponent.js} +8 -7
- package/build/esm/components/Link/Link.d.ts +1 -1
- package/build/esm/components/Media/Image/Image.d.ts +1 -1
- package/build/esm/components/Media/Video/Video.d.ts +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.d.ts +1 -1
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.d.ts +1 -1
- package/build/esm/components/index.d.ts +1 -1
- package/build/esm/components/index.js +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/esm/context/localeContext/localeContext.d.ts +1 -1
- package/build/esm/context/locationContext/locationContext.d.ts +2 -2
- package/build/esm/context/theme/ThemeValueContext.d.ts +1 -1
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/grid/types.d.ts +2 -2
- package/build/esm/hooks/useIntersection.d.ts +1 -1
- package/build/esm/hooks/useMetrika.d.ts +1 -1
- package/build/esm/hooks/useMount.d.ts +1 -1
- package/build/esm/models/common.d.ts +3 -3
- package/build/esm/models/components.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +32 -32
- package/build/esm/models/constructor-items/common.d.ts +26 -26
- package/build/esm/models/constructor-items/index.d.ts +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +15 -15
- package/build/esm/models/constructor.d.ts +10 -10
- package/build/esm/models/navigation.d.ts +3 -3
- package/build/esm/models/react.d.ts +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -1
- package/build/esm/schema/index.d.ts +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +2 -2
- package/build/esm/text-transform/blocks.d.ts +5 -5
- package/build/esm/text-transform/blocks.js +69 -16
- package/build/esm/utils/blocks.d.ts +1 -1
- package/build/esm/utils/cn.d.ts +1 -1
- package/build/esm/utils/configure.d.ts +1 -1
- package/build/esm/utils/hubspot.d.ts +1 -1
- package/build/esm/utils/hubspot.js +2 -1
- package/build/esm/utils/registerKeyset.d.ts +1 -1
- package/build/esm/utils/theme.d.ts +1 -1
- package/build/esm/utils/url.d.ts +1 -1
- package/package.json +3 -15
- package/server/grid/types.d.ts +2 -2
- package/server/index.js +1 -5
- package/server/models/common.d.ts +3 -3
- package/server/models/components.d.ts +1 -1
- package/server/models/constructor-items/blocks.d.ts +32 -32
- package/server/models/constructor-items/common.d.ts +26 -26
- package/server/models/constructor-items/index.d.ts +1 -1
- package/server/models/constructor-items/index.js +1 -5
- package/server/models/constructor-items/sub-blocks.d.ts +15 -15
- package/server/models/constructor.d.ts +10 -10
- package/server/models/index.js +1 -5
- package/server/models/navigation.d.ts +3 -3
- package/server/models/react.d.ts +1 -1
- package/server/text-transform/blocks.d.ts +5 -5
- package/server/text-transform/blocks.js +69 -16
- package/server/text-transform/index.js +1 -5
- package/server/utils/blocks.d.ts +1 -1
- package/server/utils/cn.d.ts +1 -1
- package/server/utils/configure.d.ts +1 -1
- package/server/utils/hubspot.d.ts +1 -1
- package/server/utils/hubspot.js +2 -1
- package/server/utils/index.js +1 -5
- package/server/utils/theme.d.ts +1 -1
- package/server/utils/url.d.ts +1 -1
- package/build/cjs/components/Anchor/__tests__/Anchor.test.d.ts +0 -1
- package/build/cjs/components/Anchor/__tests__/Anchor.test.js +0 -21
- package/build/cjs/components/BlockHeader/BlockHeader.css +0 -27
- package/build/cjs/components/BlockHeader/BlockHeader.d.ts +0 -7
- package/build/esm/components/Anchor/__tests__/Anchor.test.d.ts +0 -1
- package/build/esm/components/Anchor/__tests__/Anchor.test.js +0 -18
- package/build/esm/components/BlockHeader/BlockHeader.css +0 -27
- package/build/esm/components/BlockHeader/BlockHeader.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, PreviewItemProps, PreviewRatioMediaContent, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleProps, LegendTableMarkerType, AnchorProps, TitleBaseProps, Animatable,
|
|
2
|
+
import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, PreviewItemProps, PreviewRatioMediaContent, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleProps, LegendTableMarkerType, AnchorProps, TitleBaseProps, Animatable, HeaderComponentProps, ImageDeviceProps } from './common';
|
|
3
3
|
import { ThemeSupporting } from '../../utils';
|
|
4
4
|
import { GridColumnSize, GridColumnSizesType } from '../../grid/types';
|
|
5
5
|
import { BannerCardProps, SubBlock } from './sub-blocks';
|
|
@@ -48,7 +48,7 @@ export interface LoadableProps {
|
|
|
48
48
|
export interface LoadableChildren {
|
|
49
49
|
loadable?: LoadableProps;
|
|
50
50
|
}
|
|
51
|
-
export type ServiceDemoProps = Animatable;
|
|
51
|
+
export declare type ServiceDemoProps = Animatable;
|
|
52
52
|
export declare enum SliderBreakpointNames {
|
|
53
53
|
Sm = "sm",
|
|
54
54
|
Md = "md",
|
|
@@ -59,8 +59,8 @@ export declare enum SliderType {
|
|
|
59
59
|
MediaCard = "media-card",
|
|
60
60
|
HeaderCard = "header-card"
|
|
61
61
|
}
|
|
62
|
-
export type SliderBreakpointParams = Record<SliderBreakpointNames, number>;
|
|
63
|
-
export type SlidesToShow = Partial<SliderBreakpointParams> | number;
|
|
62
|
+
export declare type SliderBreakpointParams = Record<SliderBreakpointNames, number>;
|
|
63
|
+
export declare type SlidesToShow = Partial<SliderBreakpointParams> | number;
|
|
64
64
|
export interface SliderProps extends Childable, Animatable, LoadableChildren {
|
|
65
65
|
dots?: boolean;
|
|
66
66
|
arrows?: boolean;
|
|
@@ -88,7 +88,7 @@ export interface HeaderBlockBackground extends Partial<HeaderBackgroundProps>, P
|
|
|
88
88
|
fullWidth?: boolean;
|
|
89
89
|
fullWidthMedia?: boolean;
|
|
90
90
|
}
|
|
91
|
-
export type ThemedHeaderBlockBackground = ThemeSupporting<HeaderBlockBackground>;
|
|
91
|
+
export declare type ThemedHeaderBlockBackground = ThemeSupporting<HeaderBlockBackground>;
|
|
92
92
|
export interface HeaderBlockProps {
|
|
93
93
|
title: string;
|
|
94
94
|
overtitle?: string;
|
|
@@ -110,7 +110,7 @@ export interface HeaderBlockProps {
|
|
|
110
110
|
breadcrumbs?: HeaderBreadCrumbsProps;
|
|
111
111
|
status?: JSX.Element;
|
|
112
112
|
}
|
|
113
|
-
export type CalculatorProps = Animatable;
|
|
113
|
+
export declare type CalculatorProps = Animatable;
|
|
114
114
|
export interface SimpleBlockProps extends Animatable, Childable {
|
|
115
115
|
title: TitleBaseProps;
|
|
116
116
|
description: string;
|
|
@@ -230,13 +230,13 @@ export interface TabsBlockItem extends Omit<ContentBlockProps, 'size' | 'colSize
|
|
|
230
230
|
caption?: string;
|
|
231
231
|
media?: ThemedMediaProps;
|
|
232
232
|
}
|
|
233
|
-
export interface TabsBlockProps extends
|
|
233
|
+
export interface TabsBlockProps extends HeaderComponentProps, Animatable {
|
|
234
234
|
tabsColSizes?: GridColumnSizesType;
|
|
235
235
|
centered?: boolean;
|
|
236
236
|
direction?: MediaDirection;
|
|
237
237
|
items: TabsBlockItem[];
|
|
238
238
|
}
|
|
239
|
-
export interface LinkTableBlockProps extends
|
|
239
|
+
export interface LinkTableBlockProps extends HeaderComponentProps {
|
|
240
240
|
items: LinkProps[][];
|
|
241
241
|
linkTheme?: LinkTheme;
|
|
242
242
|
}
|
|
@@ -287,72 +287,72 @@ export interface ShareBlockProps {
|
|
|
287
287
|
items: PCShareSocialNetwork[];
|
|
288
288
|
title?: string;
|
|
289
289
|
}
|
|
290
|
-
export type HeaderBlockModel = {
|
|
290
|
+
export declare type HeaderBlockModel = {
|
|
291
291
|
type: BlockType.HeaderBlock;
|
|
292
292
|
} & HeaderBlockProps;
|
|
293
|
-
export type CalculatorBlockModel = {
|
|
293
|
+
export declare type CalculatorBlockModel = {
|
|
294
294
|
type: BlockType.CalculatorBlock;
|
|
295
295
|
} & CalculatorProps;
|
|
296
|
-
export type SliderBlockModel = {
|
|
296
|
+
export declare type SliderBlockModel = {
|
|
297
297
|
type: BlockType.SliderBlock;
|
|
298
298
|
} & SliderProps;
|
|
299
|
-
export type ServiceDemoBlockModel = {
|
|
299
|
+
export declare type ServiceDemoBlockModel = {
|
|
300
300
|
type: BlockType.ServiceDemoBlock;
|
|
301
301
|
} & ServiceDemoProps;
|
|
302
|
-
export type ExtendedFeaturesBlockModel = {
|
|
302
|
+
export declare type ExtendedFeaturesBlockModel = {
|
|
303
303
|
type: BlockType.ExtendedFeaturesBlock;
|
|
304
304
|
} & ExtendedFeaturesProps;
|
|
305
|
-
export type PromoFeaturesBlockModel = {
|
|
305
|
+
export declare type PromoFeaturesBlockModel = {
|
|
306
306
|
type: BlockType.PromoFeaturesBlock;
|
|
307
307
|
} & PromoFeaturesProps;
|
|
308
|
-
export type QuestionsBlockModel = {
|
|
308
|
+
export declare type QuestionsBlockModel = {
|
|
309
309
|
type: BlockType.QuestionsBlock;
|
|
310
310
|
} & QuestionsProps;
|
|
311
|
-
export type BannerBlockModel = {
|
|
311
|
+
export declare type BannerBlockModel = {
|
|
312
312
|
type: BlockType.BannerBlock;
|
|
313
313
|
} & BannerBlockProps;
|
|
314
|
-
export type CompaniesBlockModel = {
|
|
314
|
+
export declare type CompaniesBlockModel = {
|
|
315
315
|
type: BlockType.CompaniesBlock;
|
|
316
316
|
} & CompaniesBlockProps;
|
|
317
|
-
export type MediaBlockModel = {
|
|
317
|
+
export declare type MediaBlockModel = {
|
|
318
318
|
type: BlockType.MediaBlock;
|
|
319
319
|
} & MediaBlockProps;
|
|
320
|
-
export type PreviewBlockModel = {
|
|
320
|
+
export declare type PreviewBlockModel = {
|
|
321
321
|
type: BlockType.PreviewBlock;
|
|
322
322
|
} & PreviewBlockProps;
|
|
323
|
-
export type InfoBlockModel = {
|
|
323
|
+
export declare type InfoBlockModel = {
|
|
324
324
|
type: BlockType.InfoBlock;
|
|
325
325
|
} & InfoBlockProps;
|
|
326
|
-
export type SecurityBlockModel = {
|
|
326
|
+
export declare type SecurityBlockModel = {
|
|
327
327
|
type: BlockType.SecurityBlock;
|
|
328
328
|
} & SecurityBlockProps;
|
|
329
|
-
export type TableBlockModel = {
|
|
329
|
+
export declare type TableBlockModel = {
|
|
330
330
|
type: BlockType.TableBlock;
|
|
331
331
|
} & TableBlockProps;
|
|
332
|
-
export type TabsBlockModel = {
|
|
332
|
+
export declare type TabsBlockModel = {
|
|
333
333
|
type: BlockType.TabsBlock;
|
|
334
334
|
} & TabsBlockProps;
|
|
335
|
-
export type SimpleBlockModel = {
|
|
335
|
+
export declare type SimpleBlockModel = {
|
|
336
336
|
type: BlockType.SimpleBlock;
|
|
337
337
|
} & SimpleBlockProps;
|
|
338
|
-
export type LinkTableBlockModel = {
|
|
338
|
+
export declare type LinkTableBlockModel = {
|
|
339
339
|
type: BlockType.LinkTableBlock;
|
|
340
340
|
} & LinkTableBlockProps;
|
|
341
|
-
export type CardLayoutBlockModel = {
|
|
341
|
+
export declare type CardLayoutBlockModel = {
|
|
342
342
|
type: BlockType.CardLayoutBlock;
|
|
343
343
|
} & CardLayoutBlockProps;
|
|
344
|
-
export type IconsBlockModel = {
|
|
344
|
+
export declare type IconsBlockModel = {
|
|
345
345
|
type: BlockType.IconsBlock;
|
|
346
346
|
} & IconsBlockProps;
|
|
347
|
-
export type HeaderSliderBlockModel = {
|
|
347
|
+
export declare type HeaderSliderBlockModel = {
|
|
348
348
|
type: BlockType.HeaderSliderBlock;
|
|
349
349
|
} & HeaderSliderBlockProps;
|
|
350
|
-
export type ContentLayoutBlockModel = {
|
|
350
|
+
export declare type ContentLayoutBlockModel = {
|
|
351
351
|
type: BlockType.ContentLayoutBlock;
|
|
352
352
|
} & ContentLayoutBlockProps;
|
|
353
|
-
export type ShareBLockModel = {
|
|
353
|
+
export declare type ShareBLockModel = {
|
|
354
354
|
type: BlockType.ShareBlock;
|
|
355
355
|
} & ShareBlockProps;
|
|
356
|
-
type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel;
|
|
357
|
-
export type Block = BlockModels & BlockBaseProps;
|
|
356
|
+
declare type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel;
|
|
357
|
+
export declare type Block = BlockModels & BlockBaseProps;
|
|
358
358
|
export {};
|
|
@@ -37,23 +37,23 @@ export declare enum MediaVideoControlsType {
|
|
|
37
37
|
Default = "default",
|
|
38
38
|
Custom = "custom"
|
|
39
39
|
}
|
|
40
|
-
export type TextTheme = 'light' | 'dark';
|
|
41
|
-
export type TextSize = 's' | 'm' | 'l';
|
|
42
|
-
export type DividerSize = '0' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
43
|
-
export type HeaderWidth = 's' | 'm' | 'l';
|
|
44
|
-
export type HeaderImageSize = 's' | 'm';
|
|
45
|
-
export type HeaderOffset = 'default' | 'large';
|
|
46
|
-
export type Justify = 'start' | 'center' | 'end';
|
|
47
|
-
export type ColumnsCount = 1 | 2 | 3 | 4;
|
|
48
|
-
export type LegendTableMarkerType = 'disk';
|
|
49
|
-
export type LinkTheme = 'file-link' | 'normal' | 'back' | 'underline';
|
|
50
|
-
export type MediaDirection = 'media-content' | 'content-media';
|
|
51
|
-
export type PriceDescriptionColor = 'cornflower' | 'black';
|
|
52
|
-
export type PreviewRatioMediaContent = '2-1' | '1-1';
|
|
53
|
-
export type ContentSize = 's' | 'l';
|
|
54
|
-
export type ContentTextSize = 's' | 'm' | 'l';
|
|
55
|
-
export type ContentTheme = 'default' | 'dark' | 'light';
|
|
56
|
-
export type FileLinkType = 'vertical' | 'horizontal';
|
|
40
|
+
export declare type TextTheme = 'light' | 'dark';
|
|
41
|
+
export declare type TextSize = 's' | 'm' | 'l';
|
|
42
|
+
export declare type DividerSize = '0' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
43
|
+
export declare type HeaderWidth = 's' | 'm' | 'l';
|
|
44
|
+
export declare type HeaderImageSize = 's' | 'm';
|
|
45
|
+
export declare type HeaderOffset = 'default' | 'large';
|
|
46
|
+
export declare type Justify = 'start' | 'center' | 'end';
|
|
47
|
+
export declare type ColumnsCount = 1 | 2 | 3 | 4;
|
|
48
|
+
export declare type LegendTableMarkerType = 'disk';
|
|
49
|
+
export declare type LinkTheme = 'file-link' | 'normal' | 'back' | 'underline';
|
|
50
|
+
export declare type MediaDirection = 'media-content' | 'content-media';
|
|
51
|
+
export declare type PriceDescriptionColor = 'cornflower' | 'black';
|
|
52
|
+
export declare type PreviewRatioMediaContent = '2-1' | '1-1';
|
|
53
|
+
export declare type ContentSize = 's' | 'l';
|
|
54
|
+
export declare type ContentTextSize = 's' | 'm' | 'l';
|
|
55
|
+
export declare type ContentTheme = 'default' | 'dark' | 'light';
|
|
56
|
+
export declare type FileLinkType = 'vertical' | 'horizontal';
|
|
57
57
|
export interface Themable {
|
|
58
58
|
theme?: TextTheme;
|
|
59
59
|
}
|
|
@@ -93,8 +93,8 @@ export interface ImageDeviceProps extends ImageInfoProps {
|
|
|
93
93
|
mobile: string;
|
|
94
94
|
tablet?: string;
|
|
95
95
|
}
|
|
96
|
-
export type ImageProps = string | ImageObjectProps | ImageDeviceProps;
|
|
97
|
-
export type ThemedImage = ThemeSupporting<ImageProps>;
|
|
96
|
+
export declare type ImageProps = string | ImageObjectProps | ImageDeviceProps;
|
|
97
|
+
export declare type ThemedImage = ThemeSupporting<ImageProps>;
|
|
98
98
|
export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps> {
|
|
99
99
|
style?: CSSProperties;
|
|
100
100
|
imageClassName?: string;
|
|
@@ -162,7 +162,7 @@ export interface MediaVideoProps {
|
|
|
162
162
|
controls?: MediaVideoControlsType;
|
|
163
163
|
metrika?: MetrikaVideo;
|
|
164
164
|
}
|
|
165
|
-
export type ThemedMediaVideoProps = ThemeSupporting<MediaVideoProps>;
|
|
165
|
+
export declare type ThemedMediaVideoProps = ThemeSupporting<MediaVideoProps>;
|
|
166
166
|
export interface MediaComponentVideoProps {
|
|
167
167
|
video: MediaVideoProps;
|
|
168
168
|
height?: number;
|
|
@@ -185,14 +185,14 @@ export interface MediaComponentDataLensProps {
|
|
|
185
185
|
export interface MediaProps extends Animatable, Partial<MediaComponentDataLensProps>, Partial<MediaComponentYoutubeProps>, Partial<MediaComponentImageProps>, Partial<MediaComponentVideoProps> {
|
|
186
186
|
color?: string;
|
|
187
187
|
}
|
|
188
|
-
export type ThemedMediaProps = ThemeSupporting<MediaProps>;
|
|
188
|
+
export declare type ThemedMediaProps = ThemeSupporting<MediaProps>;
|
|
189
189
|
export interface NewMetrikaGoal {
|
|
190
190
|
name: string;
|
|
191
191
|
isCrossSite?: boolean;
|
|
192
192
|
counterName?: string;
|
|
193
193
|
params?: Record<string, string>;
|
|
194
194
|
}
|
|
195
|
-
export type MetrikaGoal = string | string[] | NewMetrikaGoal[];
|
|
195
|
+
export declare type MetrikaGoal = string | string[] | NewMetrikaGoal[];
|
|
196
196
|
export interface MetrikaVideo {
|
|
197
197
|
counterName?: string;
|
|
198
198
|
play?: MetrikaGoal;
|
|
@@ -202,12 +202,12 @@ export interface ButtonPixelEvent {
|
|
|
202
202
|
name: PixelEventType;
|
|
203
203
|
data?: Object;
|
|
204
204
|
}
|
|
205
|
-
export type ButtonPixel = ButtonPixelEvent[];
|
|
205
|
+
export declare type ButtonPixel = ButtonPixelEvent[];
|
|
206
206
|
export interface DataLensObjectProps {
|
|
207
207
|
id: string;
|
|
208
208
|
theme: 'dark' | 'light';
|
|
209
209
|
}
|
|
210
|
-
export type DataLensProps = string | DataLensObjectProps;
|
|
210
|
+
export declare type DataLensProps = string | DataLensObjectProps;
|
|
211
211
|
export interface AuthorItem {
|
|
212
212
|
firstName: string;
|
|
213
213
|
secondName: string;
|
|
@@ -256,7 +256,7 @@ export interface CardData {
|
|
|
256
256
|
};
|
|
257
257
|
links?: LinkProps[];
|
|
258
258
|
}
|
|
259
|
-
export type CardBorder = 'shadow' | 'line' | 'none';
|
|
259
|
+
export declare type CardBorder = 'shadow' | 'line' | 'none';
|
|
260
260
|
export interface CardBaseProps {
|
|
261
261
|
border?: CardBorder;
|
|
262
262
|
}
|
|
@@ -333,7 +333,7 @@ export interface AuthorProps {
|
|
|
333
333
|
authorContainerClassName?: string;
|
|
334
334
|
type?: AuthorType;
|
|
335
335
|
}
|
|
336
|
-
export interface
|
|
336
|
+
export interface HeaderComponentProps {
|
|
337
337
|
title?: TitleProps | string;
|
|
338
338
|
description?: string;
|
|
339
339
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -85,7 +85,7 @@ export interface NewsCardData {
|
|
|
85
85
|
url: string;
|
|
86
86
|
isoDate?: string;
|
|
87
87
|
}
|
|
88
|
-
export type NewsCardProps = Pick<NewsCardData, 'title' | 'url' | 'date' | 'isoDate'> & CardBaseProps;
|
|
88
|
+
export declare type NewsCardProps = Pick<NewsCardData, 'title' | 'url' | 'date' | 'isoDate'> & CardBaseProps;
|
|
89
89
|
export interface TutorialCardProps extends CardBaseProps {
|
|
90
90
|
url: string;
|
|
91
91
|
title: string;
|
|
@@ -125,41 +125,41 @@ export interface CardWithImageProps extends ClassNameProps, Pick<ContentBlockPro
|
|
|
125
125
|
fullScreen?: boolean;
|
|
126
126
|
links?: CardWithImageLinkProps[];
|
|
127
127
|
}
|
|
128
|
-
export type DividerModel = {
|
|
128
|
+
export declare type DividerModel = {
|
|
129
129
|
type: SubBlockType.Divider;
|
|
130
130
|
} & DividerProps;
|
|
131
|
-
export type QuoteModel = {
|
|
131
|
+
export declare type QuoteModel = {
|
|
132
132
|
type: SubBlockType.Quote;
|
|
133
133
|
} & QuoteProps;
|
|
134
|
-
export type NewsCardModel = {
|
|
134
|
+
export declare type NewsCardModel = {
|
|
135
135
|
type: SubBlockType.NewsCard;
|
|
136
136
|
} & NewsCardProps;
|
|
137
|
-
export type CardWithImageModel = {
|
|
137
|
+
export declare type CardWithImageModel = {
|
|
138
138
|
type: SubBlockType.CardWithImage;
|
|
139
139
|
} & CardWithImageProps;
|
|
140
|
-
export type TutorialCardModel = {
|
|
140
|
+
export declare type TutorialCardModel = {
|
|
141
141
|
type: SubBlockType.TutorialCard;
|
|
142
142
|
} & TutorialCardProps;
|
|
143
|
-
export type BackgroundCardModel = {
|
|
143
|
+
export declare type BackgroundCardModel = {
|
|
144
144
|
type: SubBlockType.BackgroundCard;
|
|
145
145
|
} & BackgroundCardProps;
|
|
146
|
-
export type PartnerModel = {
|
|
146
|
+
export declare type PartnerModel = {
|
|
147
147
|
type: SubBlockType.Partner;
|
|
148
148
|
} & PartnerProps;
|
|
149
|
-
export type PriceDetailedModel = {
|
|
149
|
+
export declare type PriceDetailedModel = {
|
|
150
150
|
type: SubBlockType.PriceDetailed;
|
|
151
151
|
} & PriceDetailedProps;
|
|
152
|
-
export type MediaCardModel = {
|
|
152
|
+
export declare type MediaCardModel = {
|
|
153
153
|
type: SubBlockType.MediaCard;
|
|
154
154
|
} & MediaCardProps;
|
|
155
|
-
export type HubspotFormModel = {
|
|
155
|
+
export declare type HubspotFormModel = {
|
|
156
156
|
type: SubBlockType.HubspotForm;
|
|
157
157
|
} & HubspotFormProps;
|
|
158
|
-
export type BannerCardModel = {
|
|
158
|
+
export declare type BannerCardModel = {
|
|
159
159
|
type: SubBlockType.BannerCard;
|
|
160
160
|
} & BannerCardProps;
|
|
161
|
-
export type BasicCardModel = {
|
|
161
|
+
export declare type BasicCardModel = {
|
|
162
162
|
type: SubBlockType.BasicCard;
|
|
163
163
|
} & BasicCardProps;
|
|
164
|
-
export type SubBlockModels = DividerModel | QuoteModel | NewsCardModel | PartnerModel | PriceDetailedModel | MediaCardModel | TutorialCardModel | CardWithImageModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel;
|
|
165
|
-
export type SubBlock = SubBlockModels;
|
|
164
|
+
export declare type SubBlockModels = DividerModel | QuoteModel | NewsCardModel | PartnerModel | PriceDetailedModel | MediaCardModel | TutorialCardModel | CardWithImageModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel;
|
|
165
|
+
export declare type SubBlock = SubBlockModels;
|
|
@@ -19,23 +19,23 @@ export interface CustomBlock {
|
|
|
19
19
|
type: string;
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
}
|
|
22
|
-
export type ConstructorBlock = ConstructorItem | CustomBlock;
|
|
23
|
-
export type LoadableData = any;
|
|
24
|
-
export type FetchLoadableDataParams = {
|
|
22
|
+
export declare type ConstructorBlock = ConstructorItem | CustomBlock;
|
|
23
|
+
export declare type LoadableData = any;
|
|
24
|
+
export declare type FetchLoadableDataParams = {
|
|
25
25
|
blockKey: string;
|
|
26
26
|
serviceId?: number;
|
|
27
27
|
};
|
|
28
|
-
export type FetchLoadableData<TData = LoadableData> = (params: FetchLoadableDataParams) => Promise<TData>;
|
|
29
|
-
export type ShouldRenderBlock = (block: ConstructorBlock, blockKey: string) => Boolean;
|
|
30
|
-
export type OnInit = (data: InitConstrucorState) => void;
|
|
31
|
-
type ComponentProps = React.ComponentProps<React.ComponentClass<any>>;
|
|
32
|
-
export type CustomItem = WithChildren<ComponentProps> | React.ComponentType<PropsWithChildren<ComponentProps>>;
|
|
33
|
-
export type CustomItems = Record<string, CustomItem>;
|
|
28
|
+
export declare type FetchLoadableData<TData = LoadableData> = (params: FetchLoadableDataParams) => Promise<TData>;
|
|
29
|
+
export declare type ShouldRenderBlock = (block: ConstructorBlock, blockKey: string) => Boolean;
|
|
30
|
+
export declare type OnInit = (data: InitConstrucorState) => void;
|
|
31
|
+
declare type ComponentProps = React.ComponentProps<React.ComponentClass<any>>;
|
|
32
|
+
export declare type CustomItem = WithChildren<ComponentProps> | React.ComponentType<PropsWithChildren<ComponentProps>>;
|
|
33
|
+
export declare type CustomItems = Record<string, CustomItem>;
|
|
34
34
|
export interface LoadableConfigItem {
|
|
35
35
|
fetch: FetchLoadableData;
|
|
36
36
|
component: CustomItem;
|
|
37
37
|
}
|
|
38
|
-
export type LoadableConfig = Record<string, LoadableConfigItem>;
|
|
38
|
+
export declare type LoadableConfig = Record<string, LoadableConfigItem>;
|
|
39
39
|
export interface CustomConfig {
|
|
40
40
|
blocks?: CustomItems;
|
|
41
41
|
subBlocks?: CustomItems;
|
package/server/models/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -30,9 +30,9 @@ export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
|
|
|
30
30
|
icon: ImageProps;
|
|
31
31
|
url: string;
|
|
32
32
|
}
|
|
33
|
-
export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
|
|
34
|
-
export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
|
|
35
|
-
export type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
|
|
33
|
+
export declare type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
|
|
34
|
+
export declare type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
|
|
35
|
+
export declare type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
|
|
36
36
|
export interface NavigationLogoData {
|
|
37
37
|
icon: ImageProps;
|
|
38
38
|
text?: string;
|
package/server/models/react.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Lang } from '../utils/configure';
|
|
2
2
|
import { ConstructorBlock } from '../models/constructor';
|
|
3
|
-
export type ComplexItem = {
|
|
3
|
+
export declare type ComplexItem = {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
};
|
|
6
|
-
export type Item = string | null | ComplexItem;
|
|
7
|
-
export type TransformerRaw = (lang: Lang, content: string) => string;
|
|
8
|
-
export type Transformer = (text: string) => string;
|
|
9
|
-
export type Parser<T = any> = (transformer: Transformer, block: T) => T;
|
|
6
|
+
export declare type Item = string | null | ComplexItem;
|
|
7
|
+
export declare type TransformerRaw = (lang: Lang, content: string) => string;
|
|
8
|
+
export declare type Transformer = (text: string) => string;
|
|
9
|
+
export declare type Parser<T = any> = (transformer: Transformer, block: T) => T;
|
|
10
10
|
export declare const createItemsParser: (fields: string[]) => (transformer: Transformer, items: Item[]) => (string | {
|
|
11
11
|
[x: string]: string;
|
|
12
12
|
} | null)[];
|
|
@@ -52,13 +52,6 @@ function parsePromoFeatures(transformer, items) {
|
|
|
52
52
|
return (Object.assign({ text: transformer(text) }, rest));
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function parseSlider(transformer, block) {
|
|
56
|
-
const { title, description } = block;
|
|
57
|
-
block.title = Object.assign(Object.assign({}, title), { text: transformer(title ? title.text : '') });
|
|
58
|
-
if (description) {
|
|
59
|
-
block.description = transformer(description);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
55
|
const parseTitle = (transformer, title) => typeof title === 'object' && 'text' in title
|
|
63
56
|
? Object.assign(Object.assign({}, title), { text: transformer(title.text) }) : title && transformer(title);
|
|
64
57
|
const parseItemsTitle = (transformer, items) => items.map((_a) => {
|
|
@@ -178,15 +171,33 @@ const config = {
|
|
|
178
171
|
parser: (0, exports.createItemsParser)(['text', 'additionalInfo']),
|
|
179
172
|
},
|
|
180
173
|
],
|
|
181
|
-
[models_1.BlockType.PromoFeaturesBlock]:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
174
|
+
[models_1.BlockType.PromoFeaturesBlock]: [
|
|
175
|
+
{
|
|
176
|
+
fields: ['title'],
|
|
177
|
+
transformer: typografTransformer,
|
|
178
|
+
parser: parseTitle,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
fields: ['description'],
|
|
182
|
+
transformer: yfmTransformer,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
fields: ['items'],
|
|
186
|
+
transformer: yfmTransformer,
|
|
187
|
+
parser: parsePromoFeatures,
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
[models_1.BlockType.SliderBlock]: [
|
|
191
|
+
{
|
|
192
|
+
fields: ['title'],
|
|
193
|
+
transformer: typografTransformer,
|
|
194
|
+
parser: parseTitle,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
fields: ['description'],
|
|
198
|
+
transformer: yfmTransformer,
|
|
199
|
+
},
|
|
200
|
+
],
|
|
190
201
|
[models_1.BlockType.QuestionsBlock]: [
|
|
191
202
|
{
|
|
192
203
|
fields: ['title'],
|
|
@@ -238,6 +249,10 @@ const config = {
|
|
|
238
249
|
transformer: typografTransformer,
|
|
239
250
|
parser: parseTitle,
|
|
240
251
|
},
|
|
252
|
+
{
|
|
253
|
+
fields: ['description'],
|
|
254
|
+
transformer: yfmTransformer,
|
|
255
|
+
},
|
|
241
256
|
{
|
|
242
257
|
fields: ['items'],
|
|
243
258
|
transformer: yfmTransformer,
|
|
@@ -269,6 +284,11 @@ const config = {
|
|
|
269
284
|
},
|
|
270
285
|
],
|
|
271
286
|
[models_1.BlockType.SimpleBlock]: [
|
|
287
|
+
{
|
|
288
|
+
fields: ['title'],
|
|
289
|
+
transformer: typografTransformer,
|
|
290
|
+
parser: parseTitle,
|
|
291
|
+
},
|
|
272
292
|
{
|
|
273
293
|
fields: ['description'],
|
|
274
294
|
transformer: yfmTransformer,
|
|
@@ -333,6 +353,39 @@ const config = {
|
|
|
333
353
|
transformer: typografTransformer,
|
|
334
354
|
},
|
|
335
355
|
],
|
|
356
|
+
[models_1.BlockType.CardLayoutBlock]: [
|
|
357
|
+
{
|
|
358
|
+
fields: ['title'],
|
|
359
|
+
transformer: typografTransformer,
|
|
360
|
+
parser: parseTitle,
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
fields: ['description'],
|
|
364
|
+
transformer: yfmTransformer,
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
[models_1.BlockType.IconsBlock]: [
|
|
368
|
+
{
|
|
369
|
+
fields: ['title'],
|
|
370
|
+
transformer: typografTransformer,
|
|
371
|
+
parser: parseTitle,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
fields: ['description'],
|
|
375
|
+
transformer: yfmTransformer,
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
[models_1.BlockType.LinkTableBlock]: [
|
|
379
|
+
{
|
|
380
|
+
fields: ['title'],
|
|
381
|
+
transformer: typografTransformer,
|
|
382
|
+
parser: parseTitle,
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
fields: ['description'],
|
|
386
|
+
transformer: yfmTransformer,
|
|
387
|
+
},
|
|
388
|
+
],
|
|
336
389
|
};
|
|
337
390
|
function addRandomOrder(block) {
|
|
338
391
|
if (block) {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
package/server/utils/blocks.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export declare const getCustomItems: ({ blocks, headers, subBlocks }?: CustomCon
|
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
};
|
|
9
9
|
export declare const getCustomHeaderTypes: (customBlocks?: CustomConfig) => string[];
|
|
10
|
-
export declare const getShareLink: (url: string, type: PCShareSocialNetwork, title?: string, text?: string) => string | undefined;
|
|
10
|
+
export declare const getShareLink: (url: string, type: PCShareSocialNetwork, title?: string | undefined, text?: string | undefined) => string | undefined;
|
package/server/utils/cn.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare enum Lang {
|
|
|
5
5
|
interface Config {
|
|
6
6
|
lang?: Lang;
|
|
7
7
|
}
|
|
8
|
-
type Subscriber = (config: Config) => void;
|
|
8
|
+
declare type Subscriber = (config: Config) => void;
|
|
9
9
|
export declare const configure: (newConfig: Config) => void;
|
|
10
10
|
export declare const subscribeConfigure: (sub: Subscriber) => () => void;
|
|
11
11
|
export declare const getConfig: () => Config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type HubspotEventName = 'onBeforeFormInit' | 'onFormReady' | 'onFormSubmit' | 'onFormSubmitted' | `_${string}`;
|
|
1
|
+
export declare type HubspotEventName = 'onBeforeFormInit' | 'onFormReady' | 'onFormSubmit' | 'onFormSubmitted' | `_${string}`;
|
|
2
2
|
export interface HubspotEventData {
|
|
3
3
|
type: HubspotEventName | string;
|
|
4
4
|
eventName: HubspotEventName;
|
package/server/utils/hubspot.js
CHANGED
|
@@ -10,6 +10,7 @@ function isHubspotEventData(maybeData) {
|
|
|
10
10
|
exports.isHubspotEventData = isHubspotEventData;
|
|
11
11
|
function loopBackHabspotEvents(formId) {
|
|
12
12
|
return ({ data, source, origin }) => {
|
|
13
|
+
var _a;
|
|
13
14
|
if (!isHubspotEventData(data)) {
|
|
14
15
|
return;
|
|
15
16
|
}
|
|
@@ -19,7 +20,7 @@ function loopBackHabspotEvents(formId) {
|
|
|
19
20
|
if (source === window) {
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
|
-
source === null ||
|
|
23
|
+
(_a = source) === null || _a === void 0 ? void 0 : _a.postMessage(data, origin);
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
exports.loopBackHabspotEvents = loopBackHabspotEvents;
|
package/server/utils/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
package/server/utils/theme.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { DEFAULT_THEME } from '../components/constants';
|
|
|
2
2
|
export interface ThemedValue<T> extends Partial<Record<string, T>> {
|
|
3
3
|
[DEFAULT_THEME]: T;
|
|
4
4
|
}
|
|
5
|
-
export type ThemeSupporting<T> = T | ThemedValue<T>;
|
|
5
|
+
export declare type ThemeSupporting<T> = T | ThemedValue<T>;
|
|
6
6
|
export declare function isThemedValue<T>(value: ThemeSupporting<T>): value is ThemedValue<T>;
|
|
7
7
|
export declare function getThemedValue<T>(value: ThemeSupporting<T>, theme?: string): T;
|
package/server/utils/url.d.ts
CHANGED