@gravity-ui/page-constructor 2.2.0 → 2.2.1-alpha.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 +7 -0
- package/build/cjs/blocks/index.d.ts +0 -2
- package/build/cjs/blocks/index.js +1 -5
- package/build/cjs/blocks/validators.d.ts +0 -2
- package/build/cjs/blocks/validators.js +0 -2
- package/build/cjs/components/HTML/HTML.d.ts +1 -1
- package/build/cjs/components/ReactPlayer/utils.js +13 -12
- package/build/cjs/constructor-items.d.ts +0 -6
- package/build/cjs/constructor-items.js +0 -6
- package/build/cjs/hooks/index.d.ts +0 -1
- package/build/cjs/hooks/index.js +1 -3
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -23
- package/build/cjs/models/constructor-items/blocks.js +0 -2
- package/build/cjs/models/constructor-items/common.d.ts +0 -14
- package/build/cjs/models/constructor-items/common.js +1 -6
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +9 -25
- package/build/cjs/models/constructor-items/sub-blocks.js +6 -7
- package/build/cjs/schema/index.js +2 -4
- package/build/cjs/schema/validators/blocks.d.ts +0 -2
- package/build/cjs/schema/validators/blocks.js +0 -2
- package/build/cjs/schema/validators/sub-blocks.d.ts +0 -1
- package/build/cjs/schema/validators/sub-blocks.js +0 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +0 -1
- package/build/cjs/sub-blocks/index.d.ts +0 -1
- package/build/cjs/sub-blocks/index.js +1 -3
- package/build/cjs/text-transform/blocks.js +0 -32
- package/build/cjs/utils/index.d.ts +0 -1
- package/build/cjs/utils/index.js +0 -1
- package/build/esm/blocks/index.d.ts +0 -2
- package/build/esm/blocks/index.js +0 -2
- package/build/esm/blocks/validators.d.ts +0 -2
- package/build/esm/blocks/validators.js +0 -2
- package/build/esm/components/HTML/HTML.d.ts +1 -1
- package/build/esm/components/ReactPlayer/utils.js +13 -12
- package/build/esm/constructor-items.d.ts +0 -6
- package/build/esm/constructor-items.js +2 -8
- package/build/esm/hooks/index.d.ts +0 -1
- package/build/esm/hooks/index.js +0 -1
- package/build/esm/models/constructor-items/blocks.d.ts +2 -23
- package/build/esm/models/constructor-items/blocks.js +0 -2
- package/build/esm/models/constructor-items/common.d.ts +0 -14
- package/build/esm/models/constructor-items/common.js +0 -5
- package/build/esm/models/constructor-items/sub-blocks.d.ts +9 -25
- package/build/esm/models/constructor-items/sub-blocks.js +6 -7
- package/build/esm/schema/index.js +4 -6
- package/build/esm/schema/validators/blocks.d.ts +0 -2
- package/build/esm/schema/validators/blocks.js +0 -2
- package/build/esm/schema/validators/sub-blocks.d.ts +0 -1
- package/build/esm/schema/validators/sub-blocks.js +0 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +0 -1
- package/build/esm/sub-blocks/index.d.ts +0 -1
- package/build/esm/sub-blocks/index.js +0 -1
- package/build/esm/text-transform/blocks.js +0 -32
- package/build/esm/utils/index.d.ts +0 -1
- package/build/esm/utils/index.js +0 -1
- package/package.json +4 -1
- package/server/models/constructor-items/blocks.d.ts +2 -23
- package/server/models/constructor-items/blocks.js +0 -2
- package/server/models/constructor-items/common.d.ts +0 -14
- package/server/models/constructor-items/common.js +1 -6
- package/server/models/constructor-items/sub-blocks.d.ts +9 -25
- package/server/models/constructor-items/sub-blocks.js +6 -7
- package/server/text-transform/blocks.js +0 -32
- package/server/utils/index.d.ts +0 -1
- package/server/utils/index.js +0 -1
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.css +0 -50
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.d.ts +0 -13
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.js +0 -49
- package/build/cjs/blocks/Preview/MediaContent/PreviewContent.css +0 -106
- package/build/cjs/blocks/Preview/MediaContent/PreviewContent.d.ts +0 -11
- package/build/cjs/blocks/Preview/MediaContent/PreviewContent.js +0 -17
- package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.css +0 -54
- package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.d.ts +0 -9
- package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.js +0 -13
- package/build/cjs/blocks/Preview/Preview.css +0 -50
- package/build/cjs/blocks/Preview/Preview.d.ts +0 -3
- package/build/cjs/blocks/Preview/Preview.js +0 -130
- package/build/cjs/blocks/Preview/schema.d.ts +0 -40
- package/build/cjs/blocks/Preview/schema.js +0 -53
- package/build/cjs/blocks/Simple/Simple.css +0 -22
- package/build/cjs/blocks/Simple/Simple.d.ts +0 -3
- package/build/cjs/blocks/Simple/Simple.js +0 -22
- package/build/cjs/blocks/Simple/schema.d.ts +0 -68
- package/build/cjs/blocks/Simple/schema.js +0 -14
- package/build/cjs/context/breakpointContext/breakpointContext.d.ts +0 -2
- package/build/cjs/context/breakpointContext/breakpointContext.js +0 -7
- package/build/cjs/context/breakpointContext/index.d.ts +0 -1
- package/build/cjs/context/breakpointContext/index.js +0 -4
- package/build/cjs/hooks/useIntersection.d.ts +0 -1
- package/build/cjs/hooks/useIntersection.js +0 -21
- package/build/cjs/sub-blocks/CardWithImage/CardWithImage.css +0 -19
- package/build/cjs/sub-blocks/CardWithImage/CardWithImage.d.ts +0 -3
- package/build/cjs/sub-blocks/CardWithImage/CardWithImage.js +0 -16
- package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +0 -154
- package/build/cjs/sub-blocks/CardWithImage/schema.js +0 -46
- package/build/cjs/utils/scroll.d.ts +0 -15
- package/build/cjs/utils/scroll.js +0 -34
- package/build/esm/blocks/Preview/MediaContent/MediaContent.css +0 -50
- package/build/esm/blocks/Preview/MediaContent/MediaContent.d.ts +0 -14
- package/build/esm/blocks/Preview/MediaContent/MediaContent.js +0 -47
- package/build/esm/blocks/Preview/MediaContent/PreviewContent.css +0 -106
- package/build/esm/blocks/Preview/MediaContent/PreviewContent.d.ts +0 -12
- package/build/esm/blocks/Preview/MediaContent/PreviewContent.js +0 -15
- package/build/esm/blocks/Preview/MediaContent/PreviewMedia.css +0 -54
- package/build/esm/blocks/Preview/MediaContent/PreviewMedia.d.ts +0 -10
- package/build/esm/blocks/Preview/MediaContent/PreviewMedia.js +0 -11
- package/build/esm/blocks/Preview/Preview.css +0 -50
- package/build/esm/blocks/Preview/Preview.d.ts +0 -4
- package/build/esm/blocks/Preview/Preview.js +0 -126
- package/build/esm/blocks/Preview/schema.d.ts +0 -40
- package/build/esm/blocks/Preview/schema.js +0 -50
- package/build/esm/blocks/Simple/Simple.css +0 -22
- package/build/esm/blocks/Simple/Simple.d.ts +0 -4
- package/build/esm/blocks/Simple/Simple.js +0 -18
- package/build/esm/blocks/Simple/schema.d.ts +0 -68
- package/build/esm/blocks/Simple/schema.js +0 -11
- package/build/esm/context/breakpointContext/breakpointContext.d.ts +0 -2
- package/build/esm/context/breakpointContext/breakpointContext.js +0 -3
- package/build/esm/context/breakpointContext/index.d.ts +0 -1
- package/build/esm/context/breakpointContext/index.js +0 -1
- package/build/esm/hooks/useIntersection.d.ts +0 -1
- package/build/esm/hooks/useIntersection.js +0 -17
- package/build/esm/sub-blocks/CardWithImage/CardWithImage.css +0 -19
- package/build/esm/sub-blocks/CardWithImage/CardWithImage.d.ts +0 -4
- package/build/esm/sub-blocks/CardWithImage/CardWithImage.js +0 -14
- package/build/esm/sub-blocks/CardWithImage/schema.d.ts +0 -154
- package/build/esm/sub-blocks/CardWithImage/schema.js +0 -43
- package/build/esm/utils/scroll.d.ts +0 -15
- package/build/esm/utils/scroll.js +0 -30
- package/server/utils/scroll.d.ts +0 -15
- package/server/utils/scroll.js +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.1](https://github.com/gravity-ui/page-constructor/compare/v2.2.0...v2.2.1) (2023-03-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ReactPlayer:** transform youtube url for single video src ([#262](https://github.com/gravity-ui/page-constructor/issues/262)) ([5bd86fd](https://github.com/gravity-ui/page-constructor/commit/5bd86fd0e5b62e309fcf656f251007cd8e4efd68))
|
|
9
|
+
|
|
3
10
|
## [2.2.0](https://github.com/gravity-ui/page-constructor/compare/v2.1.1...v2.2.0) (2023-03-29)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export { default as BannerBlock } from './Banner/Banner';
|
|
2
2
|
export { default as CompaniesBlock } from './Companies/Companies';
|
|
3
|
-
export { default as SimpleBlock } from './Simple/Simple';
|
|
4
3
|
export { default as InfoBlock } from './Info/Info';
|
|
5
4
|
export { default as MediaBlock } from './Media/Media';
|
|
6
5
|
export { default as MapBlock } from './Map/Map';
|
|
7
|
-
export { default as PreviewBlock } from './Preview/Preview';
|
|
8
6
|
export { default as SecurityBlock } from './Security/Security';
|
|
9
7
|
export { default as SliderBlock } from './Slider/Slider';
|
|
10
8
|
export { default as ExtendedFeaturesBlock } from './ExtendedFeatures/ExtendedFeatures';
|
|
@@ -3,21 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FilterBlock = exports.ShareBlock = exports.ContentLayoutBlock = exports.CardLayoutBlock = exports.HeaderSliderBlock = exports.IconsBlock = exports.HeaderBlock = exports.LinkTableBlock = exports.TabsBlock = exports.TableBlock = exports.QuestionsBlock = exports.PromoFeaturesBlock = exports.ExtendedFeaturesBlock = exports.SliderBlock = exports.SecurityBlock = exports.
|
|
6
|
+
exports.FilterBlock = exports.ShareBlock = exports.ContentLayoutBlock = exports.CardLayoutBlock = exports.HeaderSliderBlock = exports.IconsBlock = exports.HeaderBlock = exports.LinkTableBlock = exports.TabsBlock = exports.TableBlock = exports.QuestionsBlock = exports.PromoFeaturesBlock = exports.ExtendedFeaturesBlock = exports.SliderBlock = exports.SecurityBlock = exports.MapBlock = exports.MediaBlock = exports.InfoBlock = exports.CompaniesBlock = exports.BannerBlock = void 0;
|
|
7
7
|
var Banner_1 = require("./Banner/Banner");
|
|
8
8
|
Object.defineProperty(exports, "BannerBlock", { enumerable: true, get: function () { return __importDefault(Banner_1).default; } });
|
|
9
9
|
var Companies_1 = require("./Companies/Companies");
|
|
10
10
|
Object.defineProperty(exports, "CompaniesBlock", { enumerable: true, get: function () { return __importDefault(Companies_1).default; } });
|
|
11
|
-
var Simple_1 = require("./Simple/Simple");
|
|
12
|
-
Object.defineProperty(exports, "SimpleBlock", { enumerable: true, get: function () { return __importDefault(Simple_1).default; } });
|
|
13
11
|
var Info_1 = require("./Info/Info");
|
|
14
12
|
Object.defineProperty(exports, "InfoBlock", { enumerable: true, get: function () { return __importDefault(Info_1).default; } });
|
|
15
13
|
var Media_1 = require("./Media/Media");
|
|
16
14
|
Object.defineProperty(exports, "MediaBlock", { enumerable: true, get: function () { return __importDefault(Media_1).default; } });
|
|
17
15
|
var Map_1 = require("./Map/Map");
|
|
18
16
|
Object.defineProperty(exports, "MapBlock", { enumerable: true, get: function () { return __importDefault(Map_1).default; } });
|
|
19
|
-
var Preview_1 = require("./Preview/Preview");
|
|
20
|
-
Object.defineProperty(exports, "PreviewBlock", { enumerable: true, get: function () { return __importDefault(Preview_1).default; } });
|
|
21
17
|
var Security_1 = require("./Security/Security");
|
|
22
18
|
Object.defineProperty(exports, "SecurityBlock", { enumerable: true, get: function () { return __importDefault(Security_1).default; } });
|
|
23
19
|
var Slider_1 = require("./Slider/Slider");
|
|
@@ -9,11 +9,9 @@ export * from './Icons/schema';
|
|
|
9
9
|
export * from './Info/schema';
|
|
10
10
|
export * from './LinkTable/schema';
|
|
11
11
|
export * from './Media/schema';
|
|
12
|
-
export * from './Preview/schema';
|
|
13
12
|
export * from './PromoFeaturesBlock/schema';
|
|
14
13
|
export * from './Questions/schema';
|
|
15
14
|
export * from './Security/schema';
|
|
16
|
-
export * from './Simple/schema';
|
|
17
15
|
export * from './Slider/schema';
|
|
18
16
|
export * from './Table/schema';
|
|
19
17
|
export * from './Share/schema';
|
|
@@ -12,11 +12,9 @@ tslib_1.__exportStar(require("./Icons/schema"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./Info/schema"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./LinkTable/schema"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./Media/schema"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./Preview/schema"), exports);
|
|
16
15
|
tslib_1.__exportStar(require("./PromoFeaturesBlock/schema"), exports);
|
|
17
16
|
tslib_1.__exportStar(require("./Questions/schema"), exports);
|
|
18
17
|
tslib_1.__exportStar(require("./Security/schema"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./Simple/schema"), exports);
|
|
20
18
|
tslib_1.__exportStar(require("./Slider/schema"), exports);
|
|
21
19
|
tslib_1.__exportStar(require("./Table/schema"), exports);
|
|
22
20
|
tslib_1.__exportStar(require("./Share/schema"), exports);
|
|
@@ -7,7 +7,7 @@ export interface HTMLProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare const HTML: ({ children, block, className }: WithChildren<HTMLProps>) => React.DetailedReactHTMLElement<{
|
|
9
9
|
dangerouslySetInnerHTML: {
|
|
10
|
-
__html: string
|
|
10
|
+
__html: string & (boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null);
|
|
11
11
|
};
|
|
12
12
|
className: string | undefined;
|
|
13
13
|
}, HTMLElement> | null;
|
|
@@ -4,20 +4,21 @@ exports.checkYoutubeVideos = void 0;
|
|
|
4
4
|
// the file serves to support live video with react-player@2.9
|
|
5
5
|
const LIVE_YUOTUBE_VIDEO_REGEX = /(?:youtu\.be\/live\/|youtube(?:-nocookie)?\.com\/(?:live\/))((\w|-){11})/;
|
|
6
6
|
const YOUTUBE_VIDEO_TEMPLATE = 'https://www.youtube.com/watch?v=';
|
|
7
|
+
const transformYoutubeUrl = (src) => {
|
|
8
|
+
var _a;
|
|
9
|
+
if (LIVE_YUOTUBE_VIDEO_REGEX.test(src)) {
|
|
10
|
+
const youtubeLiveId = (_a = src.match(LIVE_YUOTUBE_VIDEO_REGEX)) === null || _a === void 0 ? void 0 : _a[1];
|
|
11
|
+
if (!youtubeLiveId) {
|
|
12
|
+
return src;
|
|
13
|
+
}
|
|
14
|
+
return `${YOUTUBE_VIDEO_TEMPLATE}${youtubeLiveId}`;
|
|
15
|
+
}
|
|
16
|
+
return src;
|
|
17
|
+
};
|
|
7
18
|
const checkYoutubeVideos = (src) => {
|
|
8
19
|
if (Array.isArray(src)) {
|
|
9
|
-
return src.map((videoUrl) =>
|
|
10
|
-
var _a;
|
|
11
|
-
if (LIVE_YUOTUBE_VIDEO_REGEX.test(videoUrl)) {
|
|
12
|
-
const youtubeLiveId = (_a = videoUrl.match(LIVE_YUOTUBE_VIDEO_REGEX)) === null || _a === void 0 ? void 0 : _a[1];
|
|
13
|
-
if (!youtubeLiveId) {
|
|
14
|
-
return videoUrl;
|
|
15
|
-
}
|
|
16
|
-
return `${YOUTUBE_VIDEO_TEMPLATE}${youtubeLiveId}`;
|
|
17
|
-
}
|
|
18
|
-
return videoUrl;
|
|
19
|
-
});
|
|
20
|
+
return src.map((videoUrl) => transformYoutubeUrl(videoUrl));
|
|
20
21
|
}
|
|
21
|
-
return src;
|
|
22
|
+
return transformYoutubeUrl(src);
|
|
22
23
|
};
|
|
23
24
|
exports.checkYoutubeVideos = checkYoutubeVideos;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
export declare const blockMap: {
|
|
2
2
|
"slider-block": (props: import("./models").WithChildren<import("./blocks/Slider/Slider").SliderProps>) => JSX.Element;
|
|
3
|
-
"simple-block": (props: import("./models").WithChildren<import("./models").SimpleBlockProps>) => JSX.Element;
|
|
4
3
|
"extended-features-block": ({ title, description, items, colSizes, animated, }: import("./models").ExtendedFeaturesProps) => JSX.Element;
|
|
5
4
|
"promo-features-block": (props: import("./models").PromoFeaturesProps) => JSX.Element;
|
|
6
5
|
"questions-block": (props: import("./models").QuestionsProps) => JSX.Element;
|
|
7
6
|
"banner-block": (props: import("./models").BannerBlockProps) => JSX.Element;
|
|
8
7
|
"companies-block": ({ title, images, animated }: import("./models").CompaniesBlockProps) => JSX.Element;
|
|
9
8
|
"media-block": (props: import("./models").MediaBlockProps) => JSX.Element;
|
|
10
|
-
"preview-block": (props: import("./models").PreviewBlockProps) => JSX.Element;
|
|
11
9
|
"info-block": (props: import("./models").InfoBlockProps) => JSX.Element;
|
|
12
10
|
"security-block": (props: import("./models").SecurityBlockProps) => JSX.Element;
|
|
13
11
|
"table-block": (props: import("./models").TableBlockProps) => JSX.Element;
|
|
@@ -37,10 +35,6 @@ export declare const subBlockMap: {
|
|
|
37
35
|
"banner-card": (props: import("./models").BannerCardProps) => JSX.Element;
|
|
38
36
|
"news-card": (props: import("./models").NewsCardProps) => JSX.Element;
|
|
39
37
|
"layout-item": ({ content: { links, ...content }, metaInfo, media, border, fullScreen, className, }: import("./models").LayoutItemProps) => JSX.Element;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated Use LayoutItem
|
|
42
|
-
*/
|
|
43
|
-
"card-with-image": ({ title, description, image, disableCompress, links, border, fullScreen, className, additionalInfo, buttons, }: import("./models").CardWithImageProps) => JSX.Element;
|
|
44
38
|
"background-card": (props: import("./models").BackgroundCardProps) => JSX.Element;
|
|
45
39
|
"basic-card": (props: import("./models").BasicCardProps) => JSX.Element;
|
|
46
40
|
content: (props: import("./models").ContentBlockProps & import("./models").ClassNameProps) => JSX.Element;
|
|
@@ -6,14 +6,12 @@ const sub_blocks_1 = require("./sub-blocks");
|
|
|
6
6
|
const blocks_1 = require("./blocks");
|
|
7
7
|
exports.blockMap = {
|
|
8
8
|
[models_1.BlockType.SliderBlock]: blocks_1.SliderBlock,
|
|
9
|
-
[models_1.BlockType.SimpleBlock]: blocks_1.SimpleBlock,
|
|
10
9
|
[models_1.BlockType.ExtendedFeaturesBlock]: blocks_1.ExtendedFeaturesBlock,
|
|
11
10
|
[models_1.BlockType.PromoFeaturesBlock]: blocks_1.PromoFeaturesBlock,
|
|
12
11
|
[models_1.BlockType.QuestionsBlock]: blocks_1.QuestionsBlock,
|
|
13
12
|
[models_1.BlockType.BannerBlock]: blocks_1.BannerBlock,
|
|
14
13
|
[models_1.BlockType.CompaniesBlock]: blocks_1.CompaniesBlock,
|
|
15
14
|
[models_1.BlockType.MediaBlock]: blocks_1.MediaBlock,
|
|
16
|
-
[models_1.BlockType.PreviewBlock]: blocks_1.PreviewBlock,
|
|
17
15
|
[models_1.BlockType.InfoBlock]: blocks_1.InfoBlock,
|
|
18
16
|
[models_1.BlockType.SecurityBlock]: blocks_1.SecurityBlock,
|
|
19
17
|
[models_1.BlockType.TableBlock]: blocks_1.TableBlock,
|
|
@@ -43,10 +41,6 @@ exports.subBlockMap = {
|
|
|
43
41
|
[models_1.SubBlockType.BannerCard]: sub_blocks_1.BannerCard,
|
|
44
42
|
[models_1.SubBlockType.NewsCard]: sub_blocks_1.NewsCard,
|
|
45
43
|
[models_1.SubBlockType.LayoutItem]: sub_blocks_1.LayoutItem,
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Use LayoutItem
|
|
48
|
-
*/
|
|
49
|
-
[models_1.SubBlockType.CardWithImage]: sub_blocks_1.CardWithImage,
|
|
50
44
|
[models_1.SubBlockType.BackgroundCard]: sub_blocks_1.BackgroundCard,
|
|
51
45
|
[models_1.SubBlockType.BasicCard]: sub_blocks_1.BasicCard,
|
|
52
46
|
[models_1.SubBlockType.Content]: sub_blocks_1.Content,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as useFocus } from './useFocus';
|
|
2
2
|
export { default as useWindowBreakpoint } from './useWindowBreakpoint';
|
|
3
|
-
export { useIntersection } from './useIntersection';
|
|
4
3
|
export { default as useMount } from './useMount';
|
|
5
4
|
export * from './useAnalytics';
|
|
6
5
|
export * from './hubspot';
|
package/build/cjs/hooks/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useMount = exports.
|
|
3
|
+
exports.useMount = exports.useWindowBreakpoint = exports.useFocus = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var useFocus_1 = require("./useFocus");
|
|
6
6
|
Object.defineProperty(exports, "useFocus", { enumerable: true, get: function () { return tslib_1.__importDefault(useFocus_1).default; } });
|
|
7
7
|
var useWindowBreakpoint_1 = require("./useWindowBreakpoint");
|
|
8
8
|
Object.defineProperty(exports, "useWindowBreakpoint", { enumerable: true, get: function () { return tslib_1.__importDefault(useWindowBreakpoint_1).default; } });
|
|
9
|
-
var useIntersection_1 = require("./useIntersection");
|
|
10
|
-
Object.defineProperty(exports, "useIntersection", { enumerable: true, get: function () { return useIntersection_1.useIntersection; } });
|
|
11
9
|
var useMount_1 = require("./useMount");
|
|
12
10
|
Object.defineProperty(exports, "useMount", { enumerable: true, get: function () { return tslib_1.__importDefault(useMount_1).default; } });
|
|
13
11
|
tslib_1.__exportStar(require("./useAnalytics"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonSize } from '@gravity-ui/uikit';
|
|
3
|
-
import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, MapProps,
|
|
3
|
+
import { BackgroundImageProps, ButtonProps, ContentSize, ContentTextSize, ContentTheme, FileLinkProps, HeaderBreadCrumbsProps, HeaderImageSize, HeaderOffset, HeaderWidth, Justify, LinkProps, LinkTheme, MediaDirection, MediaProps, MapProps, TextSize, TextTheme, ThemedImage, ThemedMediaProps, ThemedMediaVideoProps, TitleProps, LegendTableMarkerType, AnchorProps, TitleBaseProps, Animatable, BlockHeaderProps, ImageDeviceProps } from './common';
|
|
4
4
|
import { ThemeSupporting } from '../../utils';
|
|
5
5
|
import { GridColumnSize, GridColumnSizesType } from '../../grid/types';
|
|
6
6
|
import { BannerCardProps, SubBlock, SubBlockModels } from './sub-blocks';
|
|
@@ -14,12 +14,10 @@ export declare enum BlockType {
|
|
|
14
14
|
BannerBlock = "banner-block",
|
|
15
15
|
CompaniesBlock = "companies-block",
|
|
16
16
|
MediaBlock = "media-block",
|
|
17
|
-
PreviewBlock = "preview-block",
|
|
18
17
|
InfoBlock = "info-block",
|
|
19
18
|
SecurityBlock = "security-block",
|
|
20
19
|
TableBlock = "table-block",
|
|
21
20
|
TabsBlock = "tabs-block",
|
|
22
|
-
SimpleBlock = "simple-block",
|
|
23
21
|
HeaderSliderBlock = "header-slider-block",
|
|
24
22
|
LinkTableBlock = "link-table-block",
|
|
25
23
|
HeaderBlock = "header-block",
|
|
@@ -114,10 +112,6 @@ export interface HeaderBlockProps {
|
|
|
114
112
|
status?: JSX.Element;
|
|
115
113
|
}
|
|
116
114
|
export type CalculatorProps = Animatable;
|
|
117
|
-
export interface SimpleBlockProps extends Animatable, Childable {
|
|
118
|
-
title: TitleBaseProps;
|
|
119
|
-
description: string;
|
|
120
|
-
}
|
|
121
115
|
export interface ExtendedFeaturesItem extends Omit<ContentBlockProps, 'theme' | 'centered' | 'colSizes' | 'size' | 'title'> {
|
|
122
116
|
title: string;
|
|
123
117
|
label?: string;
|
|
@@ -180,15 +174,6 @@ export interface MediaBlockProps extends MediaBaseBlockProps {
|
|
|
180
174
|
export interface MapBlockProps extends MediaBaseBlockProps {
|
|
181
175
|
map: MapProps;
|
|
182
176
|
}
|
|
183
|
-
export interface PreviewBlockProps extends Animatable {
|
|
184
|
-
title: string;
|
|
185
|
-
items: PreviewItemProps[];
|
|
186
|
-
description?: string;
|
|
187
|
-
direction?: MediaDirection;
|
|
188
|
-
ratioMediaContent?: PreviewRatioMediaContent;
|
|
189
|
-
stopVideo?: boolean;
|
|
190
|
-
showImmediately?: boolean;
|
|
191
|
-
}
|
|
192
177
|
export interface InfoBlockProps {
|
|
193
178
|
theme?: TextTheme;
|
|
194
179
|
backgroundColor?: ThemeSupporting<string>;
|
|
@@ -346,9 +331,6 @@ export type MediaBlockModel = {
|
|
|
346
331
|
export type MapBlockModel = {
|
|
347
332
|
type: BlockType.MapBlock;
|
|
348
333
|
} & MapBlockProps;
|
|
349
|
-
export type PreviewBlockModel = {
|
|
350
|
-
type: BlockType.PreviewBlock;
|
|
351
|
-
} & PreviewBlockProps;
|
|
352
334
|
export type InfoBlockModel = {
|
|
353
335
|
type: BlockType.InfoBlock;
|
|
354
336
|
} & InfoBlockProps;
|
|
@@ -361,9 +343,6 @@ export type TableBlockModel = {
|
|
|
361
343
|
export type TabsBlockModel = {
|
|
362
344
|
type: BlockType.TabsBlock;
|
|
363
345
|
} & TabsBlockProps;
|
|
364
|
-
export type SimpleBlockModel = {
|
|
365
|
-
type: BlockType.SimpleBlock;
|
|
366
|
-
} & SimpleBlockProps;
|
|
367
346
|
export type LinkTableBlockModel = {
|
|
368
347
|
type: BlockType.LinkTableBlock;
|
|
369
348
|
} & LinkTableBlockProps;
|
|
@@ -385,6 +364,6 @@ export type ContentLayoutBlockModel = {
|
|
|
385
364
|
export type ShareBLockModel = {
|
|
386
365
|
type: BlockType.ShareBlock;
|
|
387
366
|
} & ShareBlockProps;
|
|
388
|
-
type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | MapBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel |
|
|
367
|
+
type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | MapBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | LinkTableBlockModel | HeaderBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel | FilterBlockModel;
|
|
389
368
|
export type Block = BlockModels & BlockBaseProps;
|
|
390
369
|
export {};
|
|
@@ -12,12 +12,10 @@ var BlockType;
|
|
|
12
12
|
BlockType["BannerBlock"] = "banner-block";
|
|
13
13
|
BlockType["CompaniesBlock"] = "companies-block";
|
|
14
14
|
BlockType["MediaBlock"] = "media-block";
|
|
15
|
-
BlockType["PreviewBlock"] = "preview-block";
|
|
16
15
|
BlockType["InfoBlock"] = "info-block";
|
|
17
16
|
BlockType["SecurityBlock"] = "security-block";
|
|
18
17
|
BlockType["TableBlock"] = "table-block";
|
|
19
18
|
BlockType["TabsBlock"] = "tabs-block";
|
|
20
|
-
BlockType["SimpleBlock"] = "simple-block";
|
|
21
19
|
BlockType["HeaderSliderBlock"] = "header-slider-block";
|
|
22
20
|
BlockType["LinkTableBlock"] = "link-table-block";
|
|
23
21
|
BlockType["HeaderBlock"] = "header-block";
|
|
@@ -17,10 +17,6 @@ export declare enum PriceLabelColor {
|
|
|
17
17
|
PURPLE = "purple",
|
|
18
18
|
RED = "red"
|
|
19
19
|
}
|
|
20
|
-
export declare enum PreviewItemType {
|
|
21
|
-
Video = "video",
|
|
22
|
-
Image = "image"
|
|
23
|
-
}
|
|
24
20
|
export declare enum PlayButtonType {
|
|
25
21
|
Default = "default",
|
|
26
22
|
Text = "text"
|
|
@@ -49,7 +45,6 @@ export type LegendTableMarkerType = 'disk';
|
|
|
49
45
|
export type LinkTheme = 'file-link' | 'normal' | 'back' | 'underline';
|
|
50
46
|
export type MediaDirection = 'media-content' | 'content-media';
|
|
51
47
|
export type PriceDescriptionColor = 'cornflower' | 'black';
|
|
52
|
-
export type PreviewRatioMediaContent = '2-1' | '1-1';
|
|
53
48
|
export type ContentSize = 's' | 'l';
|
|
54
49
|
export type ContentTextSize = 's' | 'm' | 'l';
|
|
55
50
|
export type ContentTheme = 'default' | 'dark' | 'light';
|
|
@@ -249,15 +244,6 @@ export interface HeaderBreadCrumbsProps extends ClassNameProps {
|
|
|
249
244
|
metrikaGoals?: MetrikaGoal;
|
|
250
245
|
pixelEvents?: ButtonPixel;
|
|
251
246
|
}
|
|
252
|
-
export interface PreviewContentItemProps {
|
|
253
|
-
title: string;
|
|
254
|
-
description?: string;
|
|
255
|
-
}
|
|
256
|
-
export interface PreviewItemProps {
|
|
257
|
-
type: PreviewItemType;
|
|
258
|
-
media: ThemedMediaProps;
|
|
259
|
-
content: PreviewContentItemProps;
|
|
260
|
-
}
|
|
261
247
|
export interface TitleProps extends Justifyable, TitleBaseProps {
|
|
262
248
|
navTitle?: string;
|
|
263
249
|
anchor?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaVideoControlsType = exports.MediaVideoType = exports.PlayButtonThemes = exports.PlayButtonType = exports.
|
|
3
|
+
exports.MediaVideoControlsType = exports.MediaVideoType = exports.PlayButtonThemes = exports.PlayButtonType = exports.PriceLabelColor = exports.PriceDetailsType = exports.AuthorType = void 0;
|
|
4
4
|
// enums
|
|
5
5
|
var AuthorType;
|
|
6
6
|
(function (AuthorType) {
|
|
@@ -20,11 +20,6 @@ var PriceLabelColor;
|
|
|
20
20
|
PriceLabelColor["PURPLE"] = "purple";
|
|
21
21
|
PriceLabelColor["RED"] = "red";
|
|
22
22
|
})(PriceLabelColor = exports.PriceLabelColor || (exports.PriceLabelColor = {}));
|
|
23
|
-
var PreviewItemType;
|
|
24
|
-
(function (PreviewItemType) {
|
|
25
|
-
PreviewItemType["Video"] = "video";
|
|
26
|
-
PreviewItemType["Image"] = "image";
|
|
27
|
-
})(PreviewItemType = exports.PreviewItemType || (exports.PreviewItemType = {}));
|
|
28
23
|
var PlayButtonType;
|
|
29
24
|
(function (PlayButtonType) {
|
|
30
25
|
PlayButtonType["Default"] = "default";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassNameProps } from '../../models';
|
|
2
2
|
import { ThemeSupporting } from '../../utils';
|
|
3
3
|
import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
|
|
4
|
-
import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageObjectProps, ImageProps,
|
|
4
|
+
import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageObjectProps, ImageProps, MediaProps, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
|
|
5
5
|
import { ContentBlockProps } from './blocks';
|
|
6
6
|
import { AnalyticsEventsBase, PixelEvent } from '../common';
|
|
7
7
|
export declare enum SubBlockType {
|
|
@@ -9,27 +9,26 @@ export declare enum SubBlockType {
|
|
|
9
9
|
Quote = "quote",
|
|
10
10
|
NewsCard = "news-card",
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated Will be
|
|
12
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
13
13
|
*/
|
|
14
14
|
Partner = "partner",
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Will be removed
|
|
17
|
+
*/
|
|
15
18
|
PriceDetailed = "price-detailed",
|
|
16
19
|
MediaCard = "media-card",
|
|
17
20
|
BannerCard = "banner-card",
|
|
18
21
|
/**
|
|
19
|
-
* @deprecated Will be
|
|
22
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
20
23
|
*/
|
|
21
24
|
TutorialCard = "tutoral-card",
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use LayoutItem
|
|
24
|
-
*/
|
|
25
|
-
CardWithImage = "card-with-image",
|
|
26
25
|
LayoutItem = "layout-item",
|
|
27
26
|
BackgroundCard = "background-card",
|
|
28
27
|
BasicCard = "basic-card",
|
|
29
28
|
Content = "content",
|
|
30
29
|
HubspotForm = "hubspot-form",
|
|
31
30
|
/**
|
|
32
|
-
* @deprecated Will be
|
|
31
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
33
32
|
*/
|
|
34
33
|
Card = "card"
|
|
35
34
|
}
|
|
@@ -119,18 +118,6 @@ export interface BannerCardProps {
|
|
|
119
118
|
}
|
|
120
119
|
export interface MediaCardProps extends MediaProps, CardBaseProps {
|
|
121
120
|
}
|
|
122
|
-
export interface CardWithImageLinkProps extends Omit<LinkProps, 'text' | 'url'> {
|
|
123
|
-
title: string;
|
|
124
|
-
link: string;
|
|
125
|
-
}
|
|
126
|
-
export interface CardWithImageProps extends ClassNameProps, Pick<ContentBlockProps, 'title' | 'additionalInfo' | 'buttons' | 'theme'> {
|
|
127
|
-
image: string;
|
|
128
|
-
description?: string;
|
|
129
|
-
disableCompress?: boolean;
|
|
130
|
-
border?: boolean;
|
|
131
|
-
fullScreen?: boolean;
|
|
132
|
-
links?: CardWithImageLinkProps[];
|
|
133
|
-
}
|
|
134
121
|
export interface LayoutItemProps extends ClassNameProps {
|
|
135
122
|
content: Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size'>;
|
|
136
123
|
media: MediaProps;
|
|
@@ -147,11 +134,8 @@ export type QuoteModel = {
|
|
|
147
134
|
export type NewsCardModel = {
|
|
148
135
|
type: SubBlockType.NewsCard;
|
|
149
136
|
} & NewsCardProps;
|
|
150
|
-
export type CardWithImageModel = {
|
|
151
|
-
type: SubBlockType.CardWithImage;
|
|
152
|
-
} & CardWithImageProps;
|
|
153
137
|
export type LayoutItemModel = {
|
|
154
|
-
type: SubBlockType.
|
|
138
|
+
type: SubBlockType.LayoutItem;
|
|
155
139
|
} & LayoutItemProps;
|
|
156
140
|
export type TutorialCardModel = {
|
|
157
141
|
type: SubBlockType.TutorialCard;
|
|
@@ -177,5 +161,5 @@ export type BannerCardModel = {
|
|
|
177
161
|
export type BasicCardModel = {
|
|
178
162
|
type: SubBlockType.BasicCard;
|
|
179
163
|
} & BasicCardProps;
|
|
180
|
-
export type SubBlockModels = DividerModel | QuoteModel | NewsCardModel | PartnerModel | PriceDetailedModel | MediaCardModel | TutorialCardModel |
|
|
164
|
+
export type SubBlockModels = DividerModel | QuoteModel | NewsCardModel | PartnerModel | PriceDetailedModel | MediaCardModel | TutorialCardModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel | LayoutItemModel;
|
|
181
165
|
export type SubBlock = SubBlockModels;
|
|
@@ -7,27 +7,26 @@ var SubBlockType;
|
|
|
7
7
|
SubBlockType["Quote"] = "quote";
|
|
8
8
|
SubBlockType["NewsCard"] = "news-card";
|
|
9
9
|
/**
|
|
10
|
-
* @deprecated Will be
|
|
10
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
11
11
|
*/
|
|
12
12
|
SubBlockType["Partner"] = "partner";
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Will be removed
|
|
15
|
+
*/
|
|
13
16
|
SubBlockType["PriceDetailed"] = "price-detailed";
|
|
14
17
|
SubBlockType["MediaCard"] = "media-card";
|
|
15
18
|
SubBlockType["BannerCard"] = "banner-card";
|
|
16
19
|
/**
|
|
17
|
-
* @deprecated Will be
|
|
20
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
18
21
|
*/
|
|
19
22
|
SubBlockType["TutorialCard"] = "tutoral-card";
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use LayoutItem
|
|
22
|
-
*/
|
|
23
|
-
SubBlockType["CardWithImage"] = "card-with-image";
|
|
24
23
|
SubBlockType["LayoutItem"] = "layout-item";
|
|
25
24
|
SubBlockType["BackgroundCard"] = "background-card";
|
|
26
25
|
SubBlockType["BasicCard"] = "basic-card";
|
|
27
26
|
SubBlockType["Content"] = "content";
|
|
28
27
|
SubBlockType["HubspotForm"] = "hubspot-form";
|
|
29
28
|
/**
|
|
30
|
-
* @deprecated Will be
|
|
29
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
31
30
|
*/
|
|
32
31
|
SubBlockType["Card"] = "card";
|
|
33
32
|
})(SubBlockType = exports.SubBlockType || (exports.SubBlockType = {}));
|
|
@@ -14,8 +14,8 @@ const getBlocksCases = (blocks) => {
|
|
|
14
14
|
exports.getBlocksCases = getBlocksCases;
|
|
15
15
|
function generateDefaultSchema(config) {
|
|
16
16
|
const { cards = {}, blocks = {}, extensions = {} } = config !== null && config !== void 0 ? config : {};
|
|
17
|
-
const blockValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(
|
|
18
|
-
const cardValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(
|
|
17
|
+
const blockValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.SecurityBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.LinkTableBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock);
|
|
18
|
+
const cardValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.PartnerBlock), sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.TutorialCard), sub_blocks_1.BackgroundCard), sub_blocks_1.NewsCard), sub_blocks_1.Quote), sub_blocks_1.BasicCard);
|
|
19
19
|
const constructorBlockSchemaNames = [
|
|
20
20
|
'divider',
|
|
21
21
|
'quote',
|
|
@@ -34,7 +34,6 @@ function generateDefaultSchema(config) {
|
|
|
34
34
|
'security-block',
|
|
35
35
|
'table-block',
|
|
36
36
|
'tabs-block',
|
|
37
|
-
'simple-block',
|
|
38
37
|
'link-table-block',
|
|
39
38
|
'preview-block',
|
|
40
39
|
'price-detailed',
|
|
@@ -53,7 +52,6 @@ function generateDefaultSchema(config) {
|
|
|
53
52
|
'tutoral-card',
|
|
54
53
|
'background-card',
|
|
55
54
|
'news-card',
|
|
56
|
-
'card-with-image',
|
|
57
55
|
'quote',
|
|
58
56
|
'basic-card',
|
|
59
57
|
'layout-item',
|
|
@@ -2,7 +2,6 @@ export * from '../../blocks/Banner/schema';
|
|
|
2
2
|
export * from '../../blocks/Companies/schema';
|
|
3
3
|
export * from '../../blocks/ExtendedFeatures/schema';
|
|
4
4
|
export * from '../../blocks/PromoFeaturesBlock/schema';
|
|
5
|
-
export * from '../../blocks/Simple/schema';
|
|
6
5
|
export * from '../../blocks/Header/schema';
|
|
7
6
|
export * from '../../blocks/Info/schema';
|
|
8
7
|
export * from '../../blocks/Media/schema';
|
|
@@ -13,7 +12,6 @@ export * from '../../blocks/Slider/schema';
|
|
|
13
12
|
export * from '../../blocks/Table/schema';
|
|
14
13
|
export * from '../../blocks/LinkTable/schema';
|
|
15
14
|
export * from '../../blocks/Tabs/schema';
|
|
16
|
-
export * from '../../blocks/Preview/schema';
|
|
17
15
|
export * from '../../blocks/HeaderSlider/schema';
|
|
18
16
|
export * from '../../blocks/Icons/schema';
|
|
19
17
|
export * from '../../blocks/CardLayout/schema';
|
|
@@ -5,7 +5,6 @@ tslib_1.__exportStar(require("../../blocks/Banner/schema"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("../../blocks/Companies/schema"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("../../blocks/ExtendedFeatures/schema"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("../../blocks/PromoFeaturesBlock/schema"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("../../blocks/Simple/schema"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("../../blocks/Header/schema"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("../../blocks/Info/schema"), exports);
|
|
11
10
|
tslib_1.__exportStar(require("../../blocks/Media/schema"), exports);
|
|
@@ -16,7 +15,6 @@ tslib_1.__exportStar(require("../../blocks/Slider/schema"), exports);
|
|
|
16
15
|
tslib_1.__exportStar(require("../../blocks/Table/schema"), exports);
|
|
17
16
|
tslib_1.__exportStar(require("../../blocks/LinkTable/schema"), exports);
|
|
18
17
|
tslib_1.__exportStar(require("../../blocks/Tabs/schema"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("../../blocks/Preview/schema"), exports);
|
|
20
18
|
tslib_1.__exportStar(require("../../blocks/HeaderSlider/schema"), exports);
|
|
21
19
|
tslib_1.__exportStar(require("../../blocks/Icons/schema"), exports);
|
|
22
20
|
tslib_1.__exportStar(require("../../blocks/CardLayout/schema"), exports);
|
|
@@ -5,7 +5,6 @@ export * from '../../sub-blocks/MediaCard/schema';
|
|
|
5
5
|
export * from '../../sub-blocks/NewsCard/schema';
|
|
6
6
|
export * from '../../sub-blocks/Partner/schema';
|
|
7
7
|
export * from '../../sub-blocks/TutorialCard/schema';
|
|
8
|
-
export * from '../../sub-blocks/CardWithImage/schema';
|
|
9
8
|
export * from '../../sub-blocks/LayoutItem/schema';
|
|
10
9
|
export * from '../../sub-blocks/Quote/schema';
|
|
11
10
|
export * from '../../sub-blocks/Divider/schema';
|
|
@@ -8,7 +8,6 @@ tslib_1.__exportStar(require("../../sub-blocks/MediaCard/schema"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("../../sub-blocks/NewsCard/schema"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("../../sub-blocks/Partner/schema"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("../../sub-blocks/TutorialCard/schema"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("../../sub-blocks/CardWithImage/schema"), exports);
|
|
12
11
|
tslib_1.__exportStar(require("../../sub-blocks/LayoutItem/schema"), exports);
|
|
13
12
|
tslib_1.__exportStar(require("../../sub-blocks/Quote/schema"), exports);
|
|
14
13
|
tslib_1.__exportStar(require("../../sub-blocks/Divider/schema"), exports);
|
|
@@ -6,7 +6,6 @@ export { default as PriceDetailed } from './PriceDetailed/PriceDetailed';
|
|
|
6
6
|
export { default as MediaCard } from './MediaCard/MediaCard';
|
|
7
7
|
export { default as BannerCard } from './BannerCard/BannerCard';
|
|
8
8
|
export { default as TutorialCard } from './TutorialCard/TutorialCard';
|
|
9
|
-
export { default as CardWithImage } from './CardWithImage/CardWithImage';
|
|
10
9
|
export { default as LayoutItem } from './LayoutItem/LayoutItem';
|
|
11
10
|
export { default as BackgroundCard } from './BackgroundCard/BackgroundCard';
|
|
12
11
|
export { default as BasicCard } from './BasicCard/BasicCard';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.HubspotForm = exports.Content = exports.BasicCard = exports.BackgroundCard = exports.LayoutItem = exports.
|
|
6
|
+
exports.HubspotForm = exports.Content = exports.BasicCard = exports.BackgroundCard = exports.LayoutItem = exports.TutorialCard = exports.BannerCard = exports.MediaCard = exports.PriceDetailed = exports.Partner = exports.NewsCard = exports.Quote = exports.Divider = void 0;
|
|
7
7
|
var Divider_1 = require("./Divider/Divider");
|
|
8
8
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return __importDefault(Divider_1).default; } });
|
|
9
9
|
var Quote_1 = require("./Quote/Quote");
|
|
@@ -20,8 +20,6 @@ var BannerCard_1 = require("./BannerCard/BannerCard");
|
|
|
20
20
|
Object.defineProperty(exports, "BannerCard", { enumerable: true, get: function () { return __importDefault(BannerCard_1).default; } });
|
|
21
21
|
var TutorialCard_1 = require("./TutorialCard/TutorialCard");
|
|
22
22
|
Object.defineProperty(exports, "TutorialCard", { enumerable: true, get: function () { return __importDefault(TutorialCard_1).default; } });
|
|
23
|
-
var CardWithImage_1 = require("./CardWithImage/CardWithImage");
|
|
24
|
-
Object.defineProperty(exports, "CardWithImage", { enumerable: true, get: function () { return __importDefault(CardWithImage_1).default; } });
|
|
25
23
|
var LayoutItem_1 = require("./LayoutItem/LayoutItem");
|
|
26
24
|
Object.defineProperty(exports, "LayoutItem", { enumerable: true, get: function () { return __importDefault(LayoutItem_1).default; } });
|
|
27
25
|
var BackgroundCard_1 = require("./BackgroundCard/BackgroundCard");
|
|
@@ -134,16 +134,6 @@ const config = {
|
|
|
134
134
|
transformer: typografTransformer,
|
|
135
135
|
},
|
|
136
136
|
],
|
|
137
|
-
[models_1.SubBlockType.CardWithImage]: [
|
|
138
|
-
{
|
|
139
|
-
fields: ['description', 'additionalInfo'],
|
|
140
|
-
transformer: yfmTransformer,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
fields: ['title'],
|
|
144
|
-
transformer: typografTransformer,
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
137
|
[models_1.SubBlockType.LayoutItem]: [
|
|
148
138
|
{
|
|
149
139
|
fields: ['content'],
|
|
@@ -268,17 +258,6 @@ const config = {
|
|
|
268
258
|
parser: (0, exports.createItemsParser)(['description']),
|
|
269
259
|
},
|
|
270
260
|
],
|
|
271
|
-
[models_1.BlockType.SimpleBlock]: [
|
|
272
|
-
{
|
|
273
|
-
fields: ['title'],
|
|
274
|
-
transformer: typografTransformer,
|
|
275
|
-
parser: parseTitle,
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
fields: ['description'],
|
|
279
|
-
transformer: yfmTransformer,
|
|
280
|
-
},
|
|
281
|
-
],
|
|
282
261
|
[models_1.SubBlockType.PriceDetailed]: [
|
|
283
262
|
{
|
|
284
263
|
transformer: yfmTransformer,
|
|
@@ -314,17 +293,6 @@ const config = {
|
|
|
314
293
|
parser: parseTitle,
|
|
315
294
|
},
|
|
316
295
|
],
|
|
317
|
-
[models_1.BlockType.PreviewBlock]: [
|
|
318
|
-
{
|
|
319
|
-
fields: ['description'],
|
|
320
|
-
transformer: yfmTransformer,
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
fields: ['title'],
|
|
324
|
-
transformer: typografTransformer,
|
|
325
|
-
parser: parseTitle,
|
|
326
|
-
},
|
|
327
|
-
],
|
|
328
296
|
[models_1.BlockType.InfoBlock]: [
|
|
329
297
|
{
|
|
330
298
|
fields: ['rightContent', 'leftContent'],
|