@gravity-ui/page-constructor 1.10.7 → 1.10.8
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 +7 -0
- package/build/cjs/blocks/Banner/Banner.js +3 -3
- package/build/cjs/blocks/CardLayout/CardLayout.js +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +4 -4
- package/build/cjs/blocks/Media/Media.js +6 -6
- 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 +7 -7
- 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 +4 -4
- 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 +9 -9
- 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 +6 -6
- 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 +2 -1
- package/build/cjs/components/Anchor/Anchor.js +2 -2
- package/build/cjs/components/Anchor/__tests__/Anchor.test.d.ts +1 -0
- package/build/cjs/components/Anchor/__tests__/Anchor.test.js +21 -0
- 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/BlockHeader/BlockHeader.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/HeightCalculator/HeightCalculator.js +2 -2
- package/build/cjs/components/Image/Image.js +1 -1
- package/build/cjs/components/Link/Link.css +11 -1
- package/build/cjs/components/Link/Link.d.ts +1 -1
- package/build/cjs/components/Link/Link.js +10 -7
- 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/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 +29 -29
- package/build/cjs/models/constructor-items/common.d.ts +25 -25
- 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 +4 -4
- 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 +1 -2
- 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/Header/Header.d.ts +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.d.ts +1 -1
- package/build/esm/blocks/Slider/models.d.ts +2 -2
- package/build/esm/components/Anchor/Anchor.d.ts +2 -1
- package/build/esm/components/Anchor/Anchor.js +1 -1
- package/build/esm/components/Anchor/__tests__/Anchor.test.d.ts +1 -0
- package/build/esm/components/Anchor/__tests__/Anchor.test.js +18 -0
- package/build/esm/components/BackLink/BackLink.d.ts +1 -1
- package/build/esm/components/Button/utils.d.ts +2 -2
- package/build/esm/components/Link/Link.css +11 -1
- package/build/esm/components/Link/Link.d.ts +1 -1
- package/build/esm/components/Link/Link.js +8 -5
- 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/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 +29 -29
- package/build/esm/models/constructor-items/common.d.ts +25 -25
- 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/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 +1 -2
- 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 +18 -3
- package/server/grid/types.d.ts +2 -2
- package/server/index.js +5 -1
- package/server/models/common.d.ts +3 -3
- package/server/models/components.d.ts +1 -1
- package/server/models/constructor-items/blocks.d.ts +29 -29
- package/server/models/constructor-items/common.d.ts +25 -25
- package/server/models/constructor-items/index.d.ts +1 -1
- package/server/models/constructor-items/index.js +5 -1
- package/server/models/constructor-items/sub-blocks.d.ts +15 -15
- package/server/models/constructor.d.ts +10 -10
- package/server/models/index.js +5 -1
- 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/index.js +5 -1
- 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 +1 -2
- package/server/utils/index.js +5 -1
- package/server/utils/theme.d.ts +1 -1
- package/server/utils/url.d.ts +1 -1
|
@@ -85,7 +85,7 @@ export interface NewsCardData {
|
|
|
85
85
|
url: string;
|
|
86
86
|
isoDate?: string;
|
|
87
87
|
}
|
|
88
|
-
export
|
|
88
|
+
export 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
|
|
128
|
+
export type DividerModel = {
|
|
129
129
|
type: SubBlockType.Divider;
|
|
130
130
|
} & DividerProps;
|
|
131
|
-
export
|
|
131
|
+
export type QuoteModel = {
|
|
132
132
|
type: SubBlockType.Quote;
|
|
133
133
|
} & QuoteProps;
|
|
134
|
-
export
|
|
134
|
+
export type NewsCardModel = {
|
|
135
135
|
type: SubBlockType.NewsCard;
|
|
136
136
|
} & NewsCardProps;
|
|
137
|
-
export
|
|
137
|
+
export type CardWithImageModel = {
|
|
138
138
|
type: SubBlockType.CardWithImage;
|
|
139
139
|
} & CardWithImageProps;
|
|
140
|
-
export
|
|
140
|
+
export type TutorialCardModel = {
|
|
141
141
|
type: SubBlockType.TutorialCard;
|
|
142
142
|
} & TutorialCardProps;
|
|
143
|
-
export
|
|
143
|
+
export type BackgroundCardModel = {
|
|
144
144
|
type: SubBlockType.BackgroundCard;
|
|
145
145
|
} & BackgroundCardProps;
|
|
146
|
-
export
|
|
146
|
+
export type PartnerModel = {
|
|
147
147
|
type: SubBlockType.Partner;
|
|
148
148
|
} & PartnerProps;
|
|
149
|
-
export
|
|
149
|
+
export type PriceDetailedModel = {
|
|
150
150
|
type: SubBlockType.PriceDetailed;
|
|
151
151
|
} & PriceDetailedProps;
|
|
152
|
-
export
|
|
152
|
+
export type MediaCardModel = {
|
|
153
153
|
type: SubBlockType.MediaCard;
|
|
154
154
|
} & MediaCardProps;
|
|
155
|
-
export
|
|
155
|
+
export type HubspotFormModel = {
|
|
156
156
|
type: SubBlockType.HubspotForm;
|
|
157
157
|
} & HubspotFormProps;
|
|
158
|
-
export
|
|
158
|
+
export type BannerCardModel = {
|
|
159
159
|
type: SubBlockType.BannerCard;
|
|
160
160
|
} & BannerCardProps;
|
|
161
|
-
export
|
|
161
|
+
export type BasicCardModel = {
|
|
162
162
|
type: SubBlockType.BasicCard;
|
|
163
163
|
} & BasicCardProps;
|
|
164
|
-
export
|
|
165
|
-
export
|
|
164
|
+
export type SubBlockModels = DividerModel | QuoteModel | NewsCardModel | PartnerModel | PriceDetailedModel | MediaCardModel | TutorialCardModel | CardWithImageModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel;
|
|
165
|
+
export type SubBlock = SubBlockModels;
|
|
@@ -19,23 +19,23 @@ export interface CustomBlock {
|
|
|
19
19
|
type: string;
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
22
|
+
export type ConstructorBlock = ConstructorItem | CustomBlock;
|
|
23
|
+
export type LoadableData = any;
|
|
24
|
+
export type FetchLoadableDataParams = {
|
|
25
25
|
blockKey: string;
|
|
26
26
|
serviceId?: number;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
export
|
|
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>;
|
|
34
34
|
export interface LoadableConfigItem {
|
|
35
35
|
fetch: FetchLoadableData;
|
|
36
36
|
component: CustomItem;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type LoadableConfig = Record<string, LoadableConfigItem>;
|
|
39
39
|
export interface CustomConfig {
|
|
40
40
|
blocks?: CustomItems;
|
|
41
41
|
subBlocks?: CustomItems;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./constructor"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./constructor-items"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./common"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./components"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./guards"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./react"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./navigation"), exports);
|
|
@@ -30,9 +30,9 @@ export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
|
|
|
30
30
|
icon: ImageProps;
|
|
31
31
|
url: string;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
33
|
+
export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
|
|
34
|
+
export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
|
|
35
|
+
export type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
|
|
36
36
|
export interface NavigationLogoData {
|
|
37
37
|
icon: ImageProps;
|
|
38
38
|
text?: string;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Header = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
const grid_1 = require("../../../grid");
|
|
8
|
-
const OutsideClick_1 =
|
|
9
|
-
const Control_1 =
|
|
10
|
-
const Navigation_1 =
|
|
11
|
-
const MobileNavigation_1 =
|
|
12
|
-
const NavigationItem_1 =
|
|
13
|
-
const Logo_1 =
|
|
8
|
+
const OutsideClick_1 = tslib_1.__importDefault(require("../../../components/OutsideClick/OutsideClick"));
|
|
9
|
+
const Control_1 = tslib_1.__importDefault(require("../../../components/Control/Control"));
|
|
10
|
+
const Navigation_1 = tslib_1.__importDefault(require("../Navigation/Navigation"));
|
|
11
|
+
const MobileNavigation_1 = tslib_1.__importDefault(require("../MobileNavigation/MobileNavigation"));
|
|
12
|
+
const NavigationItem_1 = tslib_1.__importDefault(require("../NavigationItem/NavigationItem"));
|
|
13
|
+
const Logo_1 = tslib_1.__importDefault(require("../Logo/Logo"));
|
|
14
14
|
const icons_1 = require("../../../icons");
|
|
15
15
|
const b = (0, utils_1.block)('header');
|
|
16
16
|
const ICON_SIZE = 36;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
|
-
const RouterLink_1 =
|
|
6
|
+
const RouterLink_1 = tslib_1.__importDefault(require("../../../components/RouterLink/RouterLink"));
|
|
7
7
|
const utils_2 = require("../../../components/Media/Image/utils");
|
|
8
8
|
const components_1 = require("../../../components");
|
|
9
9
|
const b = (0, utils_1.block)('logo');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
|
-
const Foldable_1 =
|
|
7
|
+
const Foldable_1 = tslib_1.__importDefault(require("../../../components/Foldable/Foldable"));
|
|
8
8
|
const models_1 = require("../../../models");
|
|
9
|
-
const NavigationItem_1 =
|
|
9
|
+
const NavigationItem_1 = tslib_1.__importDefault(require("../NavigationItem/NavigationItem"));
|
|
10
10
|
const b = (0, utils_1.block)('mobile-navigation');
|
|
11
11
|
const MobileNavigationDropdown = ({ data, onItemClick, onToggle, isOpened = false, }) => {
|
|
12
12
|
const ref = (0, react_1.useRef)(null);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const lodash_1 =
|
|
5
|
-
const react_1 =
|
|
4
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
|
-
const OverflowScroller_1 =
|
|
7
|
+
const OverflowScroller_1 = tslib_1.__importDefault(require("../../../components/OverflowScroller/OverflowScroller"));
|
|
8
8
|
const navigation_1 = require("../../../models/navigation");
|
|
9
|
-
const NavigationPopup_1 =
|
|
10
|
-
const NavigationItem_1 =
|
|
9
|
+
const NavigationPopup_1 = tslib_1.__importDefault(require("../NavigationPopup/NavigationPopup"));
|
|
10
|
+
const NavigationItem_1 = tslib_1.__importDefault(require("../NavigationItem/NavigationItem"));
|
|
11
11
|
const locationContext_1 = require("../../../context/locationContext");
|
|
12
12
|
const b = (0, utils_1.block)('navigation');
|
|
13
13
|
const NavigationDropdown = ({ data, isActive, position, hidePopup, onClick, }) => {
|
|
14
|
-
const { text, items } = data, popupProps =
|
|
14
|
+
const { text, items } = data, popupProps = tslib_1.__rest(data, ["text", "items"]);
|
|
15
15
|
return (react_1.default.createElement(react_1.Fragment, null,
|
|
16
16
|
react_1.default.createElement(NavigationItem_1.default, { className: b('link'), onClick: onClick, isOpened: isActive, data: { text, type: navigation_1.NavigationItemType.Dropdown } }),
|
|
17
17
|
isActive && (react_1.default.createElement(NavigationPopup_1.default, Object.assign({ left: position, onClose: hidePopup, items: items }, popupProps)))));
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
const components_1 = require("../../../components");
|
|
7
7
|
const locationContext_1 = require("../../../context/locationContext");
|
|
8
8
|
const models_1 = require("../../../models");
|
|
9
9
|
const icons_1 = require("../../../icons");
|
|
10
|
-
const SocialIcon_1 =
|
|
10
|
+
const SocialIcon_1 = tslib_1.__importDefault(require("../SocialIcon/SocialIcon"));
|
|
11
11
|
const utils_2 = require("../../../components/Media/Image/utils");
|
|
12
12
|
const b = (0, utils_1.block)('navigation-item');
|
|
13
13
|
const Content = ({ text, icon }) => (react_1.default.createElement(react_1.Fragment, null,
|
|
14
|
-
icon && react_1.default.createElement(components_1.Image, Object.assign({ className: b('icon') }, icon)),
|
|
14
|
+
icon && typeof icon !== 'string' && react_1.default.createElement(components_1.Image, Object.assign({ className: b('icon') }, icon)),
|
|
15
15
|
react_1.default.createElement("span", { className: b('text') }, text)));
|
|
16
16
|
const NavigationDropdown = (_a) => {
|
|
17
|
-
var { text, icon, isOpened } = _a, props =
|
|
17
|
+
var { text, icon, isOpened } = _a, props = tslib_1.__rest(_a, ["text", "icon", "isOpened"]);
|
|
18
18
|
const iconData = icon && (0, utils_2.getMediaImage)(icon);
|
|
19
19
|
return (react_1.default.createElement("span", Object.assign({}, props),
|
|
20
20
|
react_1.default.createElement(Content, { text: text, icon: iconData }),
|
|
@@ -22,7 +22,7 @@ const NavigationDropdown = (_a) => {
|
|
|
22
22
|
};
|
|
23
23
|
const NavigationLink = (props) => {
|
|
24
24
|
const { hostname, Link } = (0, react_1.useContext)(locationContext_1.LocationContext);
|
|
25
|
-
const { url, text, icon, arrow, target } = props, rest =
|
|
25
|
+
const { url, text, icon, arrow, target } = props, rest = tslib_1.__rest(props, ["url", "text", "icon", "arrow", "target"]);
|
|
26
26
|
const linkExtraProps = (0, utils_1.getLinkProps)(url, hostname, target);
|
|
27
27
|
const iconData = icon && (0, utils_2.getMediaImage)(icon);
|
|
28
28
|
const content = (react_1.default.createElement(react_1.Fragment, null,
|
|
@@ -50,7 +50,7 @@ const NavigationItemsMap = {
|
|
|
50
50
|
[models_1.NavigationItemType.Link]: NavigationLink,
|
|
51
51
|
};
|
|
52
52
|
const NavigationItem = (_a) => {
|
|
53
|
-
var { data, className } = _a, props =
|
|
53
|
+
var { data, className } = _a, props = tslib_1.__rest(_a, ["data", "className"]);
|
|
54
54
|
const { type = models_1.NavigationItemType.Link } = data;
|
|
55
55
|
const Component = NavigationItemsMap[type];
|
|
56
56
|
const componentProps = (0, react_1.useMemo)(() => (Object.assign(Object.assign({ className: b({ type }, className) }, data), props)), [className, data, props, type]);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NavigationPopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const lodash_1 =
|
|
6
|
-
const react_1 =
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
7
7
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
8
8
|
const utils_1 = require("../../../utils");
|
|
9
9
|
const components_1 = require("../../../components");
|
|
10
|
-
const NavigationItem_1 =
|
|
10
|
+
const NavigationItem_1 = tslib_1.__importDefault(require("../NavigationItem/NavigationItem"));
|
|
11
11
|
const b = (0, utils_1.block)('navigation-popup');
|
|
12
12
|
const NavigationPopup = ({ items, left, onClose }) => {
|
|
13
13
|
const [calculatedLeft, setCalculatedLeft] = (0, react_1.useState)(left);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
const components_1 = require("../../../components");
|
|
7
7
|
const utils_2 = require("../../../components/Media/Image/utils");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
|
-
const Header_1 =
|
|
6
|
+
const Header_1 = tslib_1.__importDefault(require("../../components/Header/Header"));
|
|
7
7
|
const b = (0, utils_1.block)('layout');
|
|
8
8
|
const Layout = ({ children, navigation }) => (react_1.default.createElement("div", { className: b() },
|
|
9
9
|
navigation && react_1.default.createElement(Header_1.default, { data: navigation.header, logo: navigation.logo }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { validators } from './validators';
|
|
2
2
|
export type { ObjectSchema } from './validators/utils';
|
|
3
|
-
export
|
|
3
|
+
export type SchemaBlock = object;
|
|
4
4
|
export interface SchemaCustomConfig {
|
|
5
5
|
blocks?: Record<string, SchemaBlock>;
|
|
6
6
|
cards?: Record<string, SchemaBlock>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
tslib_1.__exportStar(require("../../blocks/Banner/schema"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("../../blocks/Companies/schema"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../../blocks/ExtendedFeatures/schema"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../../blocks/PromoFeaturesBlock/schema"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("../../blocks/Simple/schema"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../../blocks/Header/schema"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("../../blocks/Info/schema"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("../../blocks/Media/schema"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("../../blocks/Questions/schema"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("../../blocks/Security/schema"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("../../blocks/Slider/schema"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("../../blocks/Table/schema"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("../../blocks/LinkTable/schema"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("../../blocks/Tabs/schema"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("../../blocks/Preview/schema"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("../../blocks/HeaderSlider/schema"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("../../blocks/Icons/schema"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("../../blocks/CardLayout/schema"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("../../blocks/ContentLayout/schema"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("../../blocks/Share/schema"), exports);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validators = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const blocks =
|
|
6
|
-
const common =
|
|
7
|
-
const subBlocks =
|
|
8
|
-
const pixel =
|
|
9
|
-
const utils =
|
|
5
|
+
const blocks = tslib_1.__importStar(require("./blocks"));
|
|
6
|
+
const common = tslib_1.__importStar(require("./common"));
|
|
7
|
+
const subBlocks = tslib_1.__importStar(require("./sub-blocks"));
|
|
8
|
+
const pixel = tslib_1.__importStar(require("./pixel"));
|
|
9
|
+
const utils = tslib_1.__importStar(require("./utils"));
|
|
10
10
|
exports.validators = {
|
|
11
11
|
blocks,
|
|
12
12
|
common,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
tslib_1.__exportStar(require("../../sub-blocks/PriceDetailed/schema"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("../../sub-blocks/BackgroundCard/schema"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../../sub-blocks/Content/schema"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../../sub-blocks/MediaCard/schema"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("../../sub-blocks/NewsCard/schema"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../../sub-blocks/Partner/schema"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("../../sub-blocks/TutorialCard/schema"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("../../sub-blocks/CardWithImage/schema"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("../../sub-blocks/Quote/schema"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("../../sub-blocks/Divider/schema"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("../../sub-blocks/BasicCard/schema"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components/");
|
|
7
|
-
const Content_1 =
|
|
7
|
+
const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
|
|
8
8
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
9
9
|
const b = (0, utils_1.block)('background-card');
|
|
10
10
|
const BackgroundCard = (props) => {
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const common_1 = require("../../schema/validators/common");
|
|
6
6
|
const schema_1 = require("../Content/schema");
|
|
7
7
|
const schema_2 = require("../../components/Image/schema");
|
|
8
|
-
const lodash_1 =
|
|
8
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
9
9
|
const BackgroundCardContentProps = lodash_1.default.omit(schema_1.ContentBase, ['size']);
|
|
10
10
|
exports.BackgroundCard = {
|
|
11
11
|
'background-card': {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BannerCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const components_1 = require("../../components");
|
|
8
8
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const CardBase_1 =
|
|
7
|
-
const Image_1 =
|
|
6
|
+
const CardBase_1 = tslib_1.__importDefault(require("../../components/CardBase/CardBase"));
|
|
7
|
+
const Image_1 = tslib_1.__importDefault(require("../../components/Image/Image"));
|
|
8
8
|
const __1 = require("../");
|
|
9
9
|
const utils_2 = require("../../components/Media/Image/utils");
|
|
10
10
|
const b = (0, utils_1.block)('basic-card');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BasicCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const lodash_1 =
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
6
|
const common_1 = require("../../schema/validators/common");
|
|
7
7
|
const schema_1 = require("../Content/schema");
|
|
8
8
|
const schema_2 = require("../../components/Image/schema");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const __1 = require("../");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
|
-
const Link_1 =
|
|
7
|
+
const Link_1 = tslib_1.__importDefault(require("../../components/Link/Link"));
|
|
8
8
|
const grid_1 = require("../../grid");
|
|
9
9
|
const b = (0, utils_1.block)('content');
|
|
10
10
|
function getTextSize(size) {
|
|
@@ -36,7 +36,7 @@ function getButtonSize(size) {
|
|
|
36
36
|
}
|
|
37
37
|
const Content = (props) => {
|
|
38
38
|
const { title, text, additionalInfo, size = 'l', links, buttons, colSizes = { all: 12, sm: 8 }, centered, theme, className, } = props;
|
|
39
|
-
const titleProps =
|
|
39
|
+
const titleProps = tslib_1.__rest(!title || typeof title === 'string'
|
|
40
40
|
? { text: title, textSize: getTextSize(size) }
|
|
41
41
|
: title, []);
|
|
42
42
|
const hasTitle = Boolean(title);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const b = (0, utils_1.block)('divider-block');
|
|
7
7
|
const Divider = ({ size = 'm', border }) => react_1.default.createElement("div", { className: b({ size, border }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HubspotFormProps } from '../../models';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type HubspotFormContainerPropsKeys = 'className' | 'formId' | 'formInstanceId' | 'portalId' | 'region' | 'formClassName';
|
|
3
|
+
type HubspotFormContainerProps = Pick<HubspotFormProps, HubspotFormContainerPropsKeys>;
|
|
4
4
|
declare const HubspotFormContainer: (props: HubspotFormContainerProps) => JSX.Element;
|
|
5
5
|
export default HubspotFormContainer;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
5
|
-
const loadHubspotScript_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const loadHubspotScript_1 = tslib_1.__importDefault(require("./loadHubspotScript"));
|
|
6
6
|
const hooks_1 = require("../../hooks");
|
|
7
7
|
const HubspotFormContainer = (props) => {
|
|
8
8
|
const { className, formId, formInstanceId, portalId, region, formClassName, } = props;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
|
|
7
7
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
8
8
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
9
9
|
const hooks_1 = require("../../hooks");
|
|
10
|
-
const HubspotFormContainer_1 =
|
|
10
|
+
const HubspotFormContainer_1 = tslib_1.__importDefault(require("./HubspotFormContainer"));
|
|
11
11
|
const b = (0, utils_1.block)('hubspot-form');
|
|
12
12
|
const HubspotForm = (props) => {
|
|
13
13
|
const { className, theme: themeProp, isMobile: isMobileProp, formId, formInstanceId, portalId, region, formClassName, pixelEvents,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const b = (0, utils_1.block)('MediaCard');
|
|
8
8
|
const MediaCard = (_a) => {
|
|
9
|
-
var { border } = _a, mediaProps =
|
|
9
|
+
var { border } = _a, mediaProps = tslib_1.__rest(_a, ["border"]);
|
|
10
10
|
return (react_1.default.createElement(components_1.CardBase, { className: b(), bodyClassName: b('body'), border: border },
|
|
11
11
|
react_1.default.createElement(components_1.CardBase.Content, null,
|
|
12
12
|
react_1.default.createElement(components_1.Media, Object.assign({}, mediaProps)))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const b = (0, utils_1.block)('news-card');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const b = (0, utils_1.block)('partner-block');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const lodash_1 =
|
|
5
|
-
const react_1 =
|
|
4
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
const components_1 = require("../../../components");
|
|
8
8
|
const grid_1 = require("../../../grid");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
const stylesContext_1 = require("../../../context/stylesContext");
|
|
7
7
|
const components_1 = require("../../../components");
|