@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,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 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
|
-
const Link_1 = tslib_1.__importDefault(require("../../components/Link/Link"));
|
|
7
|
+
const Link_1 = (0, 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 = tslib_1.__rest(!title || typeof title === 'string'
|
|
39
|
+
const titleProps = (0, 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 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, 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
|
-
type HubspotFormContainerPropsKeys = 'className' | 'formId' | 'formInstanceId' | 'portalId' | 'region' | 'formClassName';
|
|
3
|
-
type HubspotFormContainerProps = Pick<HubspotFormProps, HubspotFormContainerPropsKeys>;
|
|
2
|
+
declare type HubspotFormContainerPropsKeys = 'className' | 'formId' | 'formInstanceId' | 'portalId' | 'region' | 'formClassName';
|
|
3
|
+
declare 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 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const loadHubspotScript_1 = tslib_1.__importDefault(require("./loadHubspotScript"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
5
|
+
const loadHubspotScript_1 = (0, 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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, 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 = tslib_1.__importDefault(require("./HubspotFormContainer"));
|
|
10
|
+
const HubspotFormContainer_1 = (0, 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 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, 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 = tslib_1.__rest(_a, ["border"]);
|
|
9
|
+
var { border } = _a, mediaProps = (0, 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 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, 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 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, 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 = tslib_1.__importDefault(require("lodash"));
|
|
5
|
-
const react_1 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const lodash_1 = (0, tslib_1.__importDefault)(require("lodash"));
|
|
5
|
+
const react_1 = (0, 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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, 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");
|
|
@@ -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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
-
const PriceDescription_1 = tslib_1.__importDefault(require("./PriceDescription/PriceDescription"));
|
|
7
|
-
const PriceDetails_1 = tslib_1.__importDefault(require("./PriceDetails/PriceDetails"));
|
|
8
|
-
const CombinedPriceDetailed_1 = tslib_1.__importDefault(require("./CombinedPriceDetailed/CombinedPriceDetailed"));
|
|
9
|
-
const SeparatePriceDetailed_1 = tslib_1.__importDefault(require("./SeparatePriceDetailed/SeparatePriceDetailed"));
|
|
6
|
+
const PriceDescription_1 = (0, tslib_1.__importDefault)(require("./PriceDescription/PriceDescription"));
|
|
7
|
+
const PriceDetails_1 = (0, tslib_1.__importDefault)(require("./PriceDetails/PriceDetails"));
|
|
8
|
+
const CombinedPriceDetailed_1 = (0, tslib_1.__importDefault)(require("./CombinedPriceDetailed/CombinedPriceDetailed"));
|
|
9
|
+
const SeparatePriceDetailed_1 = (0, tslib_1.__importDefault)(require("./SeparatePriceDetailed/SeparatePriceDetailed"));
|
|
10
10
|
const PriceDetailed = (props) => {
|
|
11
11
|
const { priceType = models_1.PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
|
|
12
12
|
const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
|
|
@@ -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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
5
|
const utils_1 = require("../../../../utils");
|
|
6
6
|
const components_1 = require("../../../../components");
|
|
7
7
|
const b = (0, utils_1.block)('marked-list');
|
|
@@ -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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
5
|
const utils_1 = require("../../../../utils");
|
|
6
6
|
const components_1 = require("../../../../components");
|
|
7
7
|
const b = (0, utils_1.block)('settings-list');
|
|
@@ -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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
const components_1 = require("../../../components");
|
|
7
7
|
const models_1 = require("../../../models");
|
|
8
|
-
const List_1 = tslib_1.__importDefault(require("./Details/List"));
|
|
9
|
-
const Settings_1 = tslib_1.__importDefault(require("./Details/Settings"));
|
|
8
|
+
const List_1 = (0, tslib_1.__importDefault)(require("./Details/List"));
|
|
9
|
+
const Settings_1 = (0, tslib_1.__importDefault)(require("./Details/Settings"));
|
|
10
10
|
const b = (0, utils_1.block)('price-details');
|
|
11
11
|
const PriceDetails = (props) => {
|
|
12
12
|
const [isOpened, setIsOpened] = (0, react_1.useState)(false);
|
|
@@ -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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
const components_1 = require("../../../components");
|
|
7
7
|
const b = (0, utils_1.block)('separate-price-detailed-block');
|
|
@@ -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 = tslib_1.__importStar(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
5
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const models_1 = require("../../models");
|
|
@@ -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 = tslib_1.__importDefault(require("react"));
|
|
4
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const CardBase_1 = tslib_1.__importDefault(require("../../components/CardBase/CardBase"));
|
|
6
|
+
const CardBase_1 = (0, tslib_1.__importDefault)(require("../../components/CardBase/CardBase"));
|
|
7
7
|
const components_1 = require("../../components/");
|
|
8
8
|
const utils_2 = require("../../components/Media/Image/utils");
|
|
9
9
|
const b = (0, utils_1.block)('tutorial-card');
|
|
@@ -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)[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transformFootnotes = exports.transformBlocks = exports.typografTransformer = exports.yfmTransformer = exports.createItemsParser = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
5
|
+
const lodash_1 = (0, tslib_1.__importDefault)(require("lodash"));
|
|
6
6
|
const models_1 = require("../models");
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
8
|
const createItemsParser = (fields) => (transformer, items) => items.map((item) => {
|
|
@@ -29,27 +29,20 @@ function parseTableBlock(transformer, content) {
|
|
|
29
29
|
}
|
|
30
30
|
function parseFeatures(transformer, items) {
|
|
31
31
|
return items.map((_a) => {
|
|
32
|
-
var { title, text } = _a, rest = tslib_1.__rest(_a, ["title", "text"]);
|
|
32
|
+
var { title, text } = _a, rest = (0, tslib_1.__rest)(_a, ["title", "text"]);
|
|
33
33
|
return (Object.assign({ title: title && transformer(title), text: text && transformer(text) }, rest));
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
function parsePromoFeatures(transformer, items) {
|
|
37
37
|
return items.map((_a) => {
|
|
38
|
-
var { text } = _a, rest = tslib_1.__rest(_a, ["text"]);
|
|
38
|
+
var { text } = _a, rest = (0, tslib_1.__rest)(_a, ["text"]);
|
|
39
39
|
return (Object.assign({ text: transformer(text) }, rest));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function parseSlider(transformer, block) {
|
|
43
|
-
const { title, description } = block;
|
|
44
|
-
block.title = Object.assign(Object.assign({}, title), { text: transformer(title ? title.text : '') });
|
|
45
|
-
if (description) {
|
|
46
|
-
block.description = transformer(description);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
42
|
const parseTitle = (transformer, title) => typeof title === 'object' && 'text' in title
|
|
50
43
|
? Object.assign(Object.assign({}, title), { text: transformer(title.text) }) : title && transformer(title);
|
|
51
44
|
const parseItemsTitle = (transformer, items) => items.map((_a) => {
|
|
52
|
-
var { title } = _a, rest = tslib_1.__rest(_a, ["title"]);
|
|
45
|
+
var { title } = _a, rest = (0, tslib_1.__rest)(_a, ["title"]);
|
|
53
46
|
return (Object.assign({ title: title && parseTitle(transformer, title) }, rest));
|
|
54
47
|
});
|
|
55
48
|
function parsePriceDetailedBlock(transformer, block) {
|
|
@@ -165,15 +158,33 @@ const config = {
|
|
|
165
158
|
parser: (0, exports.createItemsParser)(['text', 'additionalInfo']),
|
|
166
159
|
},
|
|
167
160
|
],
|
|
168
|
-
[models_1.BlockType.PromoFeaturesBlock]:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
161
|
+
[models_1.BlockType.PromoFeaturesBlock]: [
|
|
162
|
+
{
|
|
163
|
+
fields: ['title'],
|
|
164
|
+
transformer: typografTransformer,
|
|
165
|
+
parser: parseTitle,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
fields: ['description'],
|
|
169
|
+
transformer: yfmTransformer,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
fields: ['items'],
|
|
173
|
+
transformer: yfmTransformer,
|
|
174
|
+
parser: parsePromoFeatures,
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
[models_1.BlockType.SliderBlock]: [
|
|
178
|
+
{
|
|
179
|
+
fields: ['title'],
|
|
180
|
+
transformer: typografTransformer,
|
|
181
|
+
parser: parseTitle,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
fields: ['description'],
|
|
185
|
+
transformer: yfmTransformer,
|
|
186
|
+
},
|
|
187
|
+
],
|
|
177
188
|
[models_1.BlockType.QuestionsBlock]: [
|
|
178
189
|
{
|
|
179
190
|
fields: ['title'],
|
|
@@ -225,6 +236,10 @@ const config = {
|
|
|
225
236
|
transformer: typografTransformer,
|
|
226
237
|
parser: parseTitle,
|
|
227
238
|
},
|
|
239
|
+
{
|
|
240
|
+
fields: ['description'],
|
|
241
|
+
transformer: yfmTransformer,
|
|
242
|
+
},
|
|
228
243
|
{
|
|
229
244
|
fields: ['items'],
|
|
230
245
|
transformer: yfmTransformer,
|
|
@@ -256,6 +271,11 @@ const config = {
|
|
|
256
271
|
},
|
|
257
272
|
],
|
|
258
273
|
[models_1.BlockType.SimpleBlock]: [
|
|
274
|
+
{
|
|
275
|
+
fields: ['title'],
|
|
276
|
+
transformer: typografTransformer,
|
|
277
|
+
parser: parseTitle,
|
|
278
|
+
},
|
|
259
279
|
{
|
|
260
280
|
fields: ['description'],
|
|
261
281
|
transformer: yfmTransformer,
|
|
@@ -320,6 +340,39 @@ const config = {
|
|
|
320
340
|
transformer: typografTransformer,
|
|
321
341
|
},
|
|
322
342
|
],
|
|
343
|
+
[models_1.BlockType.CardLayoutBlock]: [
|
|
344
|
+
{
|
|
345
|
+
fields: ['title'],
|
|
346
|
+
transformer: typografTransformer,
|
|
347
|
+
parser: parseTitle,
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
fields: ['description'],
|
|
351
|
+
transformer: yfmTransformer,
|
|
352
|
+
},
|
|
353
|
+
],
|
|
354
|
+
[models_1.BlockType.IconsBlock]: [
|
|
355
|
+
{
|
|
356
|
+
fields: ['title'],
|
|
357
|
+
transformer: typografTransformer,
|
|
358
|
+
parser: parseTitle,
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
fields: ['description'],
|
|
362
|
+
transformer: yfmTransformer,
|
|
363
|
+
},
|
|
364
|
+
],
|
|
365
|
+
[models_1.BlockType.LinkTableBlock]: [
|
|
366
|
+
{
|
|
367
|
+
fields: ['title'],
|
|
368
|
+
transformer: typografTransformer,
|
|
369
|
+
parser: parseTitle,
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
fields: ['description'],
|
|
373
|
+
transformer: yfmTransformer,
|
|
374
|
+
},
|
|
375
|
+
],
|
|
323
376
|
};
|
|
324
377
|
function addRandomOrder(block) {
|
|
325
378
|
if (block) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./utils"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./blocks"), exports);
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./utils"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./blocks"), exports);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.typografEntity = exports.fullTransform = exports.transformMarkdown = exports.typografToText = exports.typografToHTML = exports.sanitizeHtml = exports.typograf = exports.sanitizeStripOptions = exports.typografConfig = exports.DEFAULT_ALLOWED_TAGS = exports.TransformType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const typograf_1 = tslib_1.__importDefault(require("typograf"));
|
|
6
|
-
const sanitize_html_1 = tslib_1.__importDefault(require("sanitize-html"));
|
|
7
|
-
const transform_1 = tslib_1.__importDefault(require("@doc-tools/transform"));
|
|
5
|
+
const typograf_1 = (0, tslib_1.__importDefault)(require("typograf"));
|
|
6
|
+
const sanitize_html_1 = (0, tslib_1.__importDefault)(require("sanitize-html"));
|
|
7
|
+
const transform_1 = (0, tslib_1.__importDefault)(require("@doc-tools/transform"));
|
|
8
8
|
const configure_1 = require("../utils/configure");
|
|
9
9
|
var TransformType;
|
|
10
10
|
(function (TransformType) {
|
|
@@ -93,7 +93,7 @@ const transformMarkdown = (input, options) => {
|
|
|
93
93
|
};
|
|
94
94
|
exports.transformMarkdown = transformMarkdown;
|
|
95
95
|
function fullTransform(input, _a) {
|
|
96
|
-
var { lang } = _a, options = tslib_1.__rest(_a, ["lang"]);
|
|
96
|
+
var { lang } = _a, options = (0, tslib_1.__rest)(_a, ["lang"]);
|
|
97
97
|
const result = (0, exports.transformMarkdown)(input, Object.assign({ lang }, options));
|
|
98
98
|
const { html, title } = result;
|
|
99
99
|
return Object.assign(Object.assign({}, result), { html: typograf(html, lang), title: title && typograf(title, lang) });
|
|
@@ -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/build/cjs/utils/cn.d.ts
CHANGED
package/build/cjs/utils/cn.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.block = exports.NAMESPACE = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const bem_cn_lite_1 = tslib_1.__importDefault(require("bem-cn-lite"));
|
|
5
|
+
const bem_cn_lite_1 = (0, tslib_1.__importDefault)(require("bem-cn-lite"));
|
|
6
6
|
exports.NAMESPACE = 'pc-';
|
|
7
7
|
function block(name) {
|
|
8
8
|
return (0, bem_cn_lite_1.default)(`${exports.NAMESPACE}${name}`);
|
|
@@ -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;
|
|
@@ -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/build/cjs/utils/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isHubspotEventData = exports.configure = exports.Lang = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
tslib_1.__exportStar(require("./blocks"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./scroll"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./url"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./cn"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./url"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./theme"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./blocks"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./scroll"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./url"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./cn"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./url"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./theme"), exports);
|
|
11
11
|
var configure_1 = require("./configure");
|
|
12
12
|
Object.defineProperty(exports, "Lang", { enumerable: true, get: function () { return configure_1.Lang; } });
|
|
13
13
|
Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return configure_1.configure; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from '../i18n';
|
|
2
2
|
import { Lang } from './configure';
|
|
3
|
-
type KeysData = Parameters<typeof i18n.registerKeyset>[2];
|
|
3
|
+
declare type KeysData = Parameters<typeof i18n.registerKeyset>[2];
|
|
4
4
|
export declare function registerKeyset<T extends KeysData>(data: Record<Lang, T>, keysetName: string): (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
|
5
5
|
export {};
|
|
@@ -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/build/cjs/utils/url.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { block } from '../../utils';
|
|
3
3
|
import { Row, Col } from '../../grid';
|
|
4
|
-
import {
|
|
4
|
+
import { HeaderComponent, AnimateBlock } from '../../components';
|
|
5
5
|
import './CardLayout.css';
|
|
6
6
|
const b = block('card-layout-block');
|
|
7
7
|
const DEFAULT_SIZES = {
|
|
@@ -10,7 +10,7 @@ const DEFAULT_SIZES = {
|
|
|
10
10
|
md: 4,
|
|
11
11
|
};
|
|
12
12
|
const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, }) => (React.createElement(AnimateBlock, { className: b(), animate: animated },
|
|
13
|
-
React.createElement(
|
|
13
|
+
React.createElement(HeaderComponent, { title: title, description: description }),
|
|
14
14
|
React.createElement("div", null,
|
|
15
15
|
React.createElement(Row, null, children &&
|
|
16
16
|
React.Children.map(children, (child, i) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { block, getThemedValue } from '../../utils';
|
|
3
3
|
import { Row, Col } from '../../grid';
|
|
4
|
-
import { AnimateBlock,
|
|
4
|
+
import { AnimateBlock, HeaderComponent, HTML } from '../../components/';
|
|
5
5
|
import { Content } from '../../sub-blocks';
|
|
6
6
|
import Image from '../../components/Image/Image';
|
|
7
7
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
@@ -16,7 +16,7 @@ const DEFAULT_SIZES = {
|
|
|
16
16
|
export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
|
|
17
17
|
const { themeValue: theme } = useContext(ThemeValueContext);
|
|
18
18
|
return (React.createElement(AnimateBlock, { className: b(), animate: animated },
|
|
19
|
-
React.createElement(
|
|
19
|
+
React.createElement(HeaderComponent, { title: title, description: description, className: b('header') }),
|
|
20
20
|
React.createElement("div", { className: b('items') },
|
|
21
21
|
React.createElement(Row, null, items.map(({ title: itemTitle, text, link, links, label, icon, buttons, additionalInfo, }) => {
|
|
22
22
|
const itemLinks = links || [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassNameProps, HeaderBlockProps, WithChildren } from '../../models';
|
|
2
2
|
import './Header.css';
|
|
3
|
-
type HeaderBlockFullProps = HeaderBlockProps & ClassNameProps;
|
|
3
|
+
declare type HeaderBlockFullProps = HeaderBlockProps & ClassNameProps;
|
|
4
4
|
export declare const HeaderBlock: (props: WithChildren<HeaderBlockFullProps>) => JSX.Element;
|
|
5
5
|
export default HeaderBlock;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { block, getLinkProps } from '../../utils';
|
|
3
|
-
import {
|
|
3
|
+
import { HeaderComponent, Image } from '../../components';
|
|
4
4
|
import { LocationContext } from '../../context/locationContext';
|
|
5
5
|
import './Icons.css';
|
|
6
6
|
const b = block('icons-block');
|
|
7
7
|
const Icons = ({ title, size = 's', items }) => {
|
|
8
8
|
const { hostname } = useContext(LocationContext);
|
|
9
9
|
return (React.createElement("div", { className: b({ size }) },
|
|
10
|
-
title && React.createElement(
|
|
10
|
+
title && (React.createElement(HeaderComponent, { className: b('header'), title: title, colSizes: { all: 12 } })),
|
|
11
11
|
items.map((item) => (React.createElement("a", Object.assign({ className: b('item'), key: item.url, href: item.url }, getLinkProps(item.url, hostname)),
|
|
12
12
|
React.createElement(Image, { className: b('image'), src: item.src }),
|
|
13
13
|
React.createElement("p", { className: b('text') }, item.text))))));
|
|
@@ -3,12 +3,12 @@ import React from 'react';
|
|
|
3
3
|
import { block } from '../../utils';
|
|
4
4
|
import { Row, Col, GridColumnSize } from '../../grid';
|
|
5
5
|
import Link from '../../components/Link/Link';
|
|
6
|
-
import
|
|
6
|
+
import HeaderComponent from '../../components/HeaderComponent/HeaderComponent';
|
|
7
7
|
import './LinkTable.css';
|
|
8
8
|
const b = block('LinkTable');
|
|
9
9
|
const LinkTable = ({ items, title, description, linkTheme = 'normal' }) => {
|
|
10
10
|
return (React.createElement("div", { className: b() },
|
|
11
|
-
React.createElement(
|
|
11
|
+
React.createElement(HeaderComponent, { title: title, description: description, className: b('block-title') }),
|
|
12
12
|
React.createElement(Row, { className: b('links') }, items.map((column, index) => (React.createElement(Col, { key: (column.length && column[0].url) || index, sizes: {
|
|
13
13
|
[GridColumnSize.Lg]: 4,
|
|
14
14
|
[GridColumnSize.Md]: 6,
|
|
@@ -4,7 +4,7 @@ import { block, getThemedValue } from '../../utils';
|
|
|
4
4
|
import { Grid, Row, Col, GridColumnSize } from '../../grid';
|
|
5
5
|
import Media from '../../components/Media/Media';
|
|
6
6
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
7
|
-
import
|
|
7
|
+
import HeaderComponent from '../../components/HeaderComponent/HeaderComponent';
|
|
8
8
|
import MediaContent from './MediaContent';
|
|
9
9
|
import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
|
|
10
10
|
import './Media.css';
|
|
@@ -25,7 +25,7 @@ export const MediaBlock = (props) => {
|
|
|
25
25
|
}, [largeMedia]);
|
|
26
26
|
const mediaContent = !mediaOnly && React.createElement(MediaContent, Object.assign({}, mediaContentProps));
|
|
27
27
|
return (React.createElement(AnimateBlock, { className: b(), onScroll: () => setPlay(true), animate: animated },
|
|
28
|
-
mediaOnly && (React.createElement(
|
|
28
|
+
mediaOnly && (React.createElement(HeaderComponent, { className: b('header'), title: title, description: description })),
|
|
29
29
|
React.createElement(Grid, null,
|
|
30
30
|
React.createElement(Row, { className: b('row', {
|
|
31
31
|
reverse: direction === 'media-content',
|