@gravity-ui/page-constructor 1.10.7 → 1.11.0
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 +18 -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 +11 -8
- 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 +6 -4
- package/build/cjs/models/react.d.ts +1 -1
- package/build/cjs/navigation/components/Header/Header.d.ts +2 -2
- package/build/cjs/navigation/components/Header/Header.js +7 -7
- package/build/cjs/navigation/components/Logo/Logo.d.ts +3 -3
- package/build/cjs/navigation/components/Logo/Logo.js +11 -7
- 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 +9 -6
- 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 +6 -4
- package/build/esm/models/react.d.ts +1 -1
- package/build/esm/navigation/components/Header/Header.d.ts +2 -2
- package/build/esm/navigation/components/Logo/Logo.d.ts +3 -3
- package/build/esm/navigation/components/Logo/Logo.js +11 -7
- 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 +6 -4
- 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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const react_2 = require("@testing-library/react");
|
|
6
|
+
const Anchor_1 = tslib_1.__importDefault(require("../Anchor"));
|
|
7
|
+
const testId = 'anchor';
|
|
8
|
+
const anchorId = 'anchorId';
|
|
9
|
+
describe('Anchor', () => {
|
|
10
|
+
test('Has id', async () => {
|
|
11
|
+
(0, react_2.render)(react_1.default.createElement(Anchor_1.default, { id: anchorId, dataQa: testId }));
|
|
12
|
+
const anchor = react_2.screen.getByTestId(testId);
|
|
13
|
+
expect(anchor).toHaveAttribute('id', anchorId);
|
|
14
|
+
});
|
|
15
|
+
test('Has custom class', async () => {
|
|
16
|
+
const className = 'custom-anchor-class';
|
|
17
|
+
(0, react_2.render)(react_1.default.createElement(Anchor_1.default, { id: anchorId, className: className, dataQa: testId }));
|
|
18
|
+
const anchor = react_2.screen.getByTestId(testId);
|
|
19
|
+
expect(anchor).toHaveClass(className);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -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 react_waypoint_1 = require("react-waypoint");
|
|
6
6
|
const AnimateContext_1 = require("../../context/animateContext/AnimateContext");
|
|
7
7
|
const utils_1 = require("../../utils");
|
|
@@ -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 index_1 = require("../index");
|
|
6
6
|
const models_1 = require("../../models");
|
|
7
7
|
const utils_1 = require("../../utils");
|
|
@@ -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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const icons_1 = require("../../icons");
|
|
7
7
|
const locationContext_1 = require("../../context/locationContext");
|
|
@@ -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 Image_1 =
|
|
6
|
+
const Image_1 = tslib_1.__importDefault(require("../Image/Image"));
|
|
7
7
|
const b = (0, utils_1.block)('storage-background-image');
|
|
8
8
|
const BackgroundImage = (props) => {
|
|
9
9
|
const { children, src, desktop, className, imageClassName, style, hide } = props;
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
const Media_1 =
|
|
7
|
-
const AnimateBlock_1 =
|
|
6
|
+
const Media_1 = tslib_1.__importDefault(require("../Media/Media"));
|
|
7
|
+
const AnimateBlock_1 = tslib_1.__importDefault(require("../AnimateBlock/AnimateBlock"));
|
|
8
8
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
9
9
|
const b = (0, utils_1.block)('BackgroundMedia');
|
|
10
10
|
const BackgroundMedia = (_a) => {
|
|
11
|
-
var { className, color, animated, parallax = true, video, mediaClassName } = _a, props =
|
|
11
|
+
var { className, color, animated, parallax = true, video, mediaClassName } = _a, props = tslib_1.__rest(_a, ["className", "color", "animated", "parallax", "video", "mediaClassName"]);
|
|
12
12
|
const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
|
|
13
13
|
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(null, className), style: { backgroundColor: color }, animate: animated },
|
|
14
14
|
react_1.default.createElement(Media_1.default, Object.assign({ className: b('media', mediaClassName), imageClassName: b('image'), videoClassName: b('video'), isBackground: true }, Object.assign({ height: 720, color,
|
|
@@ -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 lodash_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const ssrContext_1 = require("../../context/ssrContext");
|
|
8
8
|
const b = (0, utils_1.block)('BalancedMasonry');
|
|
@@ -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 Anchor_1 =
|
|
6
|
+
const Anchor_1 = tslib_1.__importDefault(require("../Anchor/Anchor"));
|
|
7
7
|
const grid_1 = require("../../grid");
|
|
8
8
|
const b = (0, utils_1.block)('block-base');
|
|
9
9
|
const BlockBase = (props) => {
|
|
@@ -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 grid_1 = require("../../grid");
|
|
7
7
|
const __1 = require("../");
|
|
@@ -10,7 +10,7 @@ const BlockHeader = ({ title, description, className, colSizes = { all: 12, sm:
|
|
|
10
10
|
if (!title && !description) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
|
-
const _a = !title || typeof title === 'string' ? { text: title } : title, { text } = _a, titleProps =
|
|
13
|
+
const _a = !title || typeof title === 'string' ? { text: title } : title, { text } = _a, titleProps = tslib_1.__rest(_a, ["text"]);
|
|
14
14
|
return (react_1.default.createElement("div", { className: b(null, className) },
|
|
15
15
|
text && (react_1.default.createElement(grid_1.Col, { reset: true, sizes: colSizes },
|
|
16
16
|
react_1.default.createElement(__1.Title, Object.assign({ text: text }, titleProps)))),
|
|
@@ -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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const utils_2 = require("./utils");
|
|
@@ -12,7 +12,7 @@ const b = (0, utils_1.block)('button-block');
|
|
|
12
12
|
const Button = (props) => {
|
|
13
13
|
const handleMetrika = (0, useMetrika_1.useMetrika)();
|
|
14
14
|
const { lang, tld } = (0, react_1.useContext)(localeContext_1.LocaleContext);
|
|
15
|
-
const { className, metrikaGoals, pixelEvents, size = 'l', theme = 'normal', url, img, onClick: onClickOrigin, text } = props, rest =
|
|
15
|
+
const { className, metrikaGoals, pixelEvents, size = 'l', theme = 'normal', url, img, onClick: onClickOrigin, text } = props, rest = tslib_1.__rest(props, ["className", "metrikaGoals", "pixelEvents", "size", "theme", "url", "img", "onClick", "text"]);
|
|
16
16
|
const defaultImgPosition = 'left';
|
|
17
17
|
const onClick = (0, react_1.useCallback)(() => {
|
|
18
18
|
handleMetrika({ metrikaGoals, pixelEvents });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonSize, ButtonView } from '@gravity-ui/uikit';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type OldButtonTheme = 'normal' | 'action' | 'flat' | 'light' | 'clear' | 'raised' | 'pseudo' | 'link' | 'accent' | 'websearch' | 'flat-special' | 'normal-special' | 'normal-dark' | 'pseudo-special';
|
|
3
|
+
export type OldButtonSize = 'xs' | 'ns' | 's' | 'm' | 'l' | 'n' | 'head' | 'promo';
|
|
4
4
|
export declare const toCommonView: (theme: OldButtonTheme) => ButtonView;
|
|
5
5
|
export declare const toCommonSize: (size: OldButtonSize) => ButtonSize;
|
|
@@ -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 index_1 = require("../index");
|
|
7
7
|
const b = (0, utils_1.block)('button-tabs');
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Layout = 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
|
-
const BackgroundImage_1 =
|
|
8
|
-
const RouterLink_1 =
|
|
7
|
+
const BackgroundImage_1 = tslib_1.__importDefault(require("../BackgroundImage/BackgroundImage"));
|
|
8
|
+
const RouterLink_1 = tslib_1.__importDefault(require("../RouterLink/RouterLink"));
|
|
9
9
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
10
10
|
const b = (0, utils_1.block)('card-base-block');
|
|
11
11
|
const Header = () => null;
|
|
@@ -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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('control');
|
|
@@ -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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('ErrorWrapper');
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getFileExt = exports.FileExtension = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const react_1 =
|
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
7
7
|
const locationContext_1 = require("../../context/locationContext");
|
|
8
8
|
const b = (0, utils_1.block)('file-link');
|
|
9
9
|
const FIGMA_URL = 'https://www.figma.com';
|
|
@@ -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.__importStar(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const HeightCalculator_1 =
|
|
6
|
+
const HeightCalculator_1 = tslib_1.__importDefault(require("../../components/HeightCalculator/HeightCalculator"));
|
|
7
7
|
const b = (0, utils_1.block)('foldable-block');
|
|
8
8
|
const Foldable = ({ isOpened, children, className }) => {
|
|
9
9
|
const contentRef = (0, react_1.useRef)(null);
|
|
@@ -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 lodash_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const constants_1 = require("../../constants");
|
|
8
8
|
const b = (0, utils_1.block)('FullWidthBackground');
|
|
@@ -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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
|
-
const Image_1 =
|
|
7
|
+
const Image_1 = tslib_1.__importDefault(require("../Image/Image"));
|
|
8
8
|
const icons_1 = require("../../icons");
|
|
9
9
|
const b = (0, utils_1.block)('FullScreenImage');
|
|
10
10
|
const FullScreenImage = (props) => {
|
|
@@ -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 HTML = ({ children, block = false, className }) => {
|
|
6
6
|
if (!children) {
|
|
7
7
|
return null;
|
|
@@ -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 useMetrika_1 = require("../../hooks/useMetrika");
|
|
7
7
|
const b = (0, utils_1.block)('header-breadcrumbs');
|
|
@@ -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 lodash_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const b = (0, utils_1.block)('height-calculator');
|
|
8
8
|
const HeightCalculator = ({ onCalculate, children }) => {
|
|
@@ -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 projectSettingsContext_1 = require("../../context/projectSettingsContext");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const checkWebP = (src) => {
|
|
@@ -24,10 +24,17 @@ unpredictable css rules order in build */
|
|
|
24
24
|
.pc-link-block__link_theme_dark:hover {
|
|
25
25
|
color: var(--yc-color-text-light-secondary);
|
|
26
26
|
}
|
|
27
|
+
.pc-link-block__link_has-arrow {
|
|
28
|
+
display: inherit;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
27
31
|
.pc-link-block__link_has-arrow:hover, .pc-link-block__link_has-arrow:active {
|
|
28
32
|
--pc-text-header-color: inherit;
|
|
29
33
|
color: var(--yc-color-text-link);
|
|
30
34
|
}
|
|
35
|
+
.pc-link-block__link_has-arrow .pc-link-block__content {
|
|
36
|
+
white-space: normal;
|
|
37
|
+
}
|
|
31
38
|
.pc-link-block__link:hover .pc-link-block__arrow {
|
|
32
39
|
transform: translateX(5px) rotate(-90deg);
|
|
33
40
|
}
|
|
@@ -36,7 +43,7 @@ unpredictable css rules order in build */
|
|
|
36
43
|
}
|
|
37
44
|
.pc-link-block__arrow {
|
|
38
45
|
position: relative;
|
|
39
|
-
|
|
46
|
+
top: 2px;
|
|
40
47
|
transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
41
48
|
transform: rotate(-90deg);
|
|
42
49
|
}
|
|
@@ -48,6 +55,9 @@ unpredictable css rules order in build */
|
|
|
48
55
|
font-size: var(--yc-text-body-2-font-size);
|
|
49
56
|
line-height: var(--yc-text-body-2-line-height);
|
|
50
57
|
}
|
|
58
|
+
.pc-link-block_size_m .pc-link-block__arrow {
|
|
59
|
+
top: 1px;
|
|
60
|
+
}
|
|
51
61
|
.pc-link-block_size_s {
|
|
52
62
|
font-size: var(--yc-text-body-1-font-size);
|
|
53
63
|
line-height: var(--yc-text-body-1-line-height);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LinkProps, ClassNameProps, WithChildren } from '../../models';
|
|
2
|
-
export
|
|
2
|
+
export type LinkFullProps = LinkProps & ClassNameProps;
|
|
3
3
|
declare const LinkBlock: (props: WithChildren<LinkFullProps>) => JSX.Element;
|
|
4
4
|
export default LinkBlock;
|
|
@@ -1,16 +1,17 @@
|
|
|
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
7
|
const icons_1 = require("../../icons");
|
|
8
|
-
const FileLink_1 =
|
|
9
|
-
const BackLink_1 =
|
|
8
|
+
const FileLink_1 = tslib_1.__importDefault(require("../FileLink/FileLink"));
|
|
9
|
+
const BackLink_1 = tslib_1.__importDefault(require("../BackLink/BackLink"));
|
|
10
10
|
const localeContext_1 = require("../../context/localeContext/localeContext");
|
|
11
11
|
const locationContext_1 = require("../../context/locationContext/locationContext");
|
|
12
12
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
13
13
|
const b = (0, utils_1.block)('link-block');
|
|
14
|
+
const WORD_JOINER_SYM = '\u200b';
|
|
14
15
|
function getArrowSize(size) {
|
|
15
16
|
switch (size) {
|
|
16
17
|
case 'l':
|
|
@@ -18,9 +19,9 @@ function getArrowSize(size) {
|
|
|
18
19
|
case 'm':
|
|
19
20
|
return 18;
|
|
20
21
|
case 's':
|
|
21
|
-
return
|
|
22
|
+
return 14;
|
|
22
23
|
default:
|
|
23
|
-
return
|
|
24
|
+
return 14;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
const LinkBlock = (props) => {
|
|
@@ -42,9 +43,11 @@ const LinkBlock = (props) => {
|
|
|
42
43
|
return (react_1.default.createElement(FileLink_1.default, { text: children || text, href: href, type: "horizontal", textSize: textSize, onClick: onClick }));
|
|
43
44
|
case 'normal': {
|
|
44
45
|
const linkProps = (0, utils_1.getLinkProps)(url, hostname, target);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
const content = children || text;
|
|
47
|
+
return (react_1.default.createElement("a", Object.assign({ className: b('link', { theme: colorTheme, 'has-arrow': arrow }), href: href, onClick: onClick }, linkProps), arrow ? (react_1.default.createElement(react_1.Fragment, null,
|
|
48
|
+
react_1.default.createElement("span", { className: b('content') }, content),
|
|
49
|
+
WORD_JOINER_SYM,
|
|
50
|
+
react_1.default.createElement(uikit_1.Icon, { className: b('arrow'), data: icons_1.Chevron, size: getArrowSize(textSize) }))) : (content)));
|
|
48
51
|
}
|
|
49
52
|
default:
|
|
50
53
|
return null;
|
|
@@ -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 Link_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const Link_1 = tslib_1.__importDefault(require("./Link"));
|
|
6
6
|
const Links = (props) => {
|
|
7
7
|
const { links, className } = props;
|
|
8
8
|
if (!links) {
|
|
@@ -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 utils_2 = require("./utils");
|
|
7
7
|
const b = (0, utils_1.block)('media-component-data-lens');
|
|
@@ -6,6 +6,6 @@ export interface ImageAdditionProps {
|
|
|
6
6
|
interface InnerImageProps {
|
|
7
7
|
hasVideoFallback: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type ImageAllProps = ImageAdditionProps & MediaComponentImageProps & InnerImageProps;
|
|
10
10
|
declare const Image: (props: ImageAllProps) => JSX.Element;
|
|
11
11
|
export default Image;
|
|
@@ -1,16 +1,16 @@
|
|
|
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 react_spring_1 = require("react-spring");
|
|
6
|
-
const lodash_1 =
|
|
7
|
-
const Slider_1 =
|
|
6
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
7
|
+
const Slider_1 = tslib_1.__importDefault(require("../../../blocks/Slider/Slider"));
|
|
8
8
|
const models_1 = require("../../../models");
|
|
9
9
|
const utils_1 = require("./utils");
|
|
10
|
-
const FullscreenImage_1 =
|
|
11
|
-
const BackgroundImage_1 =
|
|
10
|
+
const FullscreenImage_1 = tslib_1.__importDefault(require("../../FullscreenImage/FullscreenImage"));
|
|
11
|
+
const BackgroundImage_1 = tslib_1.__importDefault(require("../../BackgroundImage/BackgroundImage"));
|
|
12
12
|
const utils_2 = require("../../../utils");
|
|
13
|
-
const Image_1 =
|
|
13
|
+
const Image_1 = tslib_1.__importDefault(require("../../Image/Image"));
|
|
14
14
|
const b = (0, utils_2.block)('media-component-image');
|
|
15
15
|
const Image = (props) => {
|
|
16
16
|
const { parallax, image, height, imageClassName, isBackground, hasVideoFallback, video } = props;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Media = 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
|
-
const Image_1 =
|
|
8
|
-
const DataLens_1 =
|
|
9
|
-
const Video_1 =
|
|
10
|
-
const VideoBlock_1 =
|
|
7
|
+
const Image_1 = tslib_1.__importDefault(require("./Image/Image"));
|
|
8
|
+
const DataLens_1 = tslib_1.__importDefault(require("./DataLens/DataLens"));
|
|
9
|
+
const Video_1 = tslib_1.__importDefault(require("./Video/Video"));
|
|
10
|
+
const VideoBlock_1 = tslib_1.__importDefault(require("../VideoBlock/VideoBlock"));
|
|
11
11
|
const b = (0, utils_1.block)('Media');
|
|
12
12
|
const Media = (props) => {
|
|
13
13
|
const { image, video, youtube, dataLens, color, height, previewImg, parallax = false, metrika, } = props;
|
|
@@ -10,6 +10,6 @@ interface InnerVideoProps {
|
|
|
10
10
|
setHasVideoFallback: React.Dispatch<boolean>;
|
|
11
11
|
hasVideoFallback: boolean;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type VideoAllProps = VideoAdditionProps & MediaComponentVideoProps & InnerVideoProps;
|
|
14
14
|
declare const Video: (props: VideoAllProps) => JSX.Element | null;
|
|
15
15
|
export default Video;
|
|
@@ -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.__importStar(require("react"));
|
|
5
5
|
const models_1 = require("../../../models");
|
|
6
|
-
const ReactPlayer_1 =
|
|
6
|
+
const ReactPlayer_1 = tslib_1.__importDefault(require("../../ReactPlayer/ReactPlayer"));
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
8
|
const utils_2 = require("../../../utils");
|
|
9
9
|
const b = (0, utils_2.block)('media-component-video');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
//TODO move into cloud components?
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
class OutsideClick extends react_1.default.Component {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
@@ -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 lodash_1 =
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const __1 = require("..");
|
|
8
8
|
const b = (0, utils_1.block)('overflow-scroller');
|
|
@@ -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 b = (0, utils_1.block)('CircleProgress');
|
|
7
7
|
const CircleProgress = (props) => {
|
|
@@ -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.__importStar(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
|
-
const CircleProgress_1 =
|
|
6
|
+
const CircleProgress_1 = tslib_1.__importDefault(require("./CircleProgress"));
|
|
7
7
|
const b = (0, utils_1.block)('CustomBarControls');
|
|
8
8
|
const CustomBarControls = (props) => {
|
|
9
9
|
const { mute, elapsedTimePercent = 0, className } = props;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReactPlayerBlock = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const lodash_1 =
|
|
6
|
-
const react_player_1 =
|
|
7
|
-
const react_1 =
|
|
5
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
|
+
const react_player_1 = tslib_1.__importDefault(require("react-player"));
|
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
8
8
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
9
9
|
const utils_1 = require("../../utils");
|
|
10
10
|
const models_1 = require("../../models");
|
|
11
|
-
const CustomBarControls_1 =
|
|
11
|
+
const CustomBarControls_1 = tslib_1.__importDefault(require("./CustomBarControls"));
|
|
12
12
|
const videoContext_1 = require("../../context/videoContext");
|
|
13
13
|
const metrikaContext_1 = require("../../context/metrikaContext");
|
|
14
14
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
@@ -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 locationContext_1 = require("../../context/locationContext");
|
|
6
6
|
const RouterLink = ({ href, children }) => {
|
|
7
7
|
const { Link } = (0, react_1.useContext)(locationContext_1.LocationContext);
|
|
@@ -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 __1 = require("../");
|
|
7
7
|
const b = (0, utils_1.block)('table');
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getArrowSize = 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
|
-
const Anchor_1 =
|
|
7
|
+
const Anchor_1 = tslib_1.__importDefault(require("../Anchor/Anchor"));
|
|
8
8
|
const __1 = require("../");
|
|
9
9
|
const locationContext_1 = require("../../context/locationContext");
|
|
10
10
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
@@ -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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const icons_1 = require("../../icons");
|