@gravity-ui/page-constructor 2.1.1 → 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 +14 -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/ReactPlayer.js +3 -1
- package/build/cjs/components/ReactPlayer/utils.d.ts +1 -0
- package/build/cjs/components/ReactPlayer/utils.js +24 -0
- 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/ReactPlayer.js +3 -1
- package/build/esm/components/ReactPlayer/utils.d.ts +1 -0
- package/build/esm/components/ReactPlayer/utils.js +20 -0
- 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 +5 -2
- 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
|
@@ -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'],
|
package/build/cjs/utils/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
tslib_1.__exportStar(require("./common"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./analytics"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./blocks"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./scroll"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./url"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./cn"), exports);
|
|
11
10
|
tslib_1.__exportStar(require("./url"), exports);
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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;
|
|
@@ -10,6 +10,7 @@ import { MetrikaContext } from '../../context/metrikaContext';
|
|
|
10
10
|
import { MobileContext } from '../../context/mobileContext';
|
|
11
11
|
import { useAnalytics } from '../../hooks';
|
|
12
12
|
import { PlayVideo } from '../../icons';
|
|
13
|
+
import { checkYoutubeVideos } from './utils';
|
|
13
14
|
import './ReactPlayer.css';
|
|
14
15
|
const b = block('ReactPlayer');
|
|
15
16
|
const FPS = 60;
|
|
@@ -32,6 +33,7 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
|
|
|
32
33
|
const [started, setStarted] = useState(autoPlay);
|
|
33
34
|
const [paused, setPaused] = useState(false);
|
|
34
35
|
const [ended, setEnded] = useState(false);
|
|
36
|
+
const videoSrc = useMemo(() => checkYoutubeVideos(src), [src]);
|
|
35
37
|
const eventsArray = useMemo(() => {
|
|
36
38
|
if (analyticsEvents) {
|
|
37
39
|
return Array.isArray(analyticsEvents) ? analyticsEvents : [analyticsEvents];
|
|
@@ -190,7 +192,7 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
|
|
|
190
192
|
}, elapsedTimePercent: elapsedTimePercent }));
|
|
191
193
|
}, [controls, isPlaying, customBarControlsClassName, changeMute]);
|
|
192
194
|
return (React.createElement("div", { className: b({ wrapper: !currentHeight }, className), ref: ref, onClick: handleClick },
|
|
193
|
-
React.createElement(ReactPlayer, { className: b('player'), url:
|
|
195
|
+
React.createElement(ReactPlayer, { className: b('player'), url: videoSrc, muted: muted, controls: controls === MediaVideoControlsType.Default, height: currentHeight || '100%', width: width || '100%', light: previewImgUrl, playing: isPlaying, playIcon: playIcon, progressInterval: FPS, onClickPreview: handleClickPreview, onStart: onStart, onReady: setPlayerRef, onPlay: onPlay, onPause: onPause, onProgress: onProgress, onEnded: onEnded }),
|
|
194
196
|
renderCustomBarControls(muted, playedPercent)));
|
|
195
197
|
});
|
|
196
198
|
function getHeight(width) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkYoutubeVideos: (src: string | string[]) => string | string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// the file serves to support live video with react-player@2.9
|
|
2
|
+
const LIVE_YUOTUBE_VIDEO_REGEX = /(?:youtu\.be\/live\/|youtube(?:-nocookie)?\.com\/(?:live\/))((\w|-){11})/;
|
|
3
|
+
const YOUTUBE_VIDEO_TEMPLATE = 'https://www.youtube.com/watch?v=';
|
|
4
|
+
const transformYoutubeUrl = (src) => {
|
|
5
|
+
var _a;
|
|
6
|
+
if (LIVE_YUOTUBE_VIDEO_REGEX.test(src)) {
|
|
7
|
+
const youtubeLiveId = (_a = src.match(LIVE_YUOTUBE_VIDEO_REGEX)) === null || _a === void 0 ? void 0 : _a[1];
|
|
8
|
+
if (!youtubeLiveId) {
|
|
9
|
+
return src;
|
|
10
|
+
}
|
|
11
|
+
return `${YOUTUBE_VIDEO_TEMPLATE}${youtubeLiveId}`;
|
|
12
|
+
}
|
|
13
|
+
return src;
|
|
14
|
+
};
|
|
15
|
+
export const checkYoutubeVideos = (src) => {
|
|
16
|
+
if (Array.isArray(src)) {
|
|
17
|
+
return src.map((videoUrl) => transformYoutubeUrl(videoUrl));
|
|
18
|
+
}
|
|
19
|
+
return transformYoutubeUrl(src);
|
|
20
|
+
};
|
|
@@ -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;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { BlockType, SubBlockType } from './models';
|
|
2
|
-
import { Partner, PriceDetailed, MediaCard, NewsCard, TutorialCard,
|
|
3
|
-
import { BannerBlock, CompaniesBlock,
|
|
2
|
+
import { Partner, PriceDetailed, MediaCard, NewsCard, TutorialCard, LayoutItem, BackgroundCard, Content, Quote, Divider, BannerCard, BasicCard, } from './sub-blocks';
|
|
3
|
+
import { BannerBlock, CompaniesBlock, MediaBlock, MapBlock, InfoBlock, SecurityBlock, SliderBlock, ExtendedFeaturesBlock, PromoFeaturesBlock, QuestionsBlock, TableBlock, TabsBlock, LinkTableBlock, HeaderBlock, IconsBlock, HeaderSliderBlock, CardLayoutBlock, ContentLayoutBlock, ShareBlock, FilterBlock, } from './blocks';
|
|
4
4
|
export const blockMap = {
|
|
5
5
|
[BlockType.SliderBlock]: SliderBlock,
|
|
6
|
-
[BlockType.SimpleBlock]: SimpleBlock,
|
|
7
6
|
[BlockType.ExtendedFeaturesBlock]: ExtendedFeaturesBlock,
|
|
8
7
|
[BlockType.PromoFeaturesBlock]: PromoFeaturesBlock,
|
|
9
8
|
[BlockType.QuestionsBlock]: QuestionsBlock,
|
|
10
9
|
[BlockType.BannerBlock]: BannerBlock,
|
|
11
10
|
[BlockType.CompaniesBlock]: CompaniesBlock,
|
|
12
11
|
[BlockType.MediaBlock]: MediaBlock,
|
|
13
|
-
[BlockType.PreviewBlock]: PreviewBlock,
|
|
14
12
|
[BlockType.InfoBlock]: InfoBlock,
|
|
15
13
|
[BlockType.SecurityBlock]: SecurityBlock,
|
|
16
14
|
[BlockType.TableBlock]: TableBlock,
|
|
@@ -40,10 +38,6 @@ export const subBlockMap = {
|
|
|
40
38
|
[SubBlockType.BannerCard]: BannerCard,
|
|
41
39
|
[SubBlockType.NewsCard]: NewsCard,
|
|
42
40
|
[SubBlockType.LayoutItem]: LayoutItem,
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use LayoutItem
|
|
45
|
-
*/
|
|
46
|
-
[SubBlockType.CardWithImage]: CardWithImage,
|
|
47
41
|
[SubBlockType.BackgroundCard]: BackgroundCard,
|
|
48
42
|
[SubBlockType.BasicCard]: BasicCard,
|
|
49
43
|
[SubBlockType.Content]: 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/esm/hooks/index.js
CHANGED
|
@@ -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';
|
|
@@ -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 {};
|
|
@@ -9,12 +9,10 @@ export var BlockType;
|
|
|
9
9
|
BlockType["BannerBlock"] = "banner-block";
|
|
10
10
|
BlockType["CompaniesBlock"] = "companies-block";
|
|
11
11
|
BlockType["MediaBlock"] = "media-block";
|
|
12
|
-
BlockType["PreviewBlock"] = "preview-block";
|
|
13
12
|
BlockType["InfoBlock"] = "info-block";
|
|
14
13
|
BlockType["SecurityBlock"] = "security-block";
|
|
15
14
|
BlockType["TableBlock"] = "table-block";
|
|
16
15
|
BlockType["TabsBlock"] = "tabs-block";
|
|
17
|
-
BlockType["SimpleBlock"] = "simple-block";
|
|
18
16
|
BlockType["HeaderSliderBlock"] = "header-slider-block";
|
|
19
17
|
BlockType["LinkTableBlock"] = "link-table-block";
|
|
20
18
|
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;
|
|
@@ -17,11 +17,6 @@ export var PriceLabelColor;
|
|
|
17
17
|
PriceLabelColor["PURPLE"] = "purple";
|
|
18
18
|
PriceLabelColor["RED"] = "red";
|
|
19
19
|
})(PriceLabelColor || (PriceLabelColor = {}));
|
|
20
|
-
export var PreviewItemType;
|
|
21
|
-
(function (PreviewItemType) {
|
|
22
|
-
PreviewItemType["Video"] = "video";
|
|
23
|
-
PreviewItemType["Image"] = "image";
|
|
24
|
-
})(PreviewItemType || (PreviewItemType = {}));
|
|
25
20
|
export var PlayButtonType;
|
|
26
21
|
(function (PlayButtonType) {
|
|
27
22
|
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;
|
|
@@ -4,27 +4,26 @@ export var SubBlockType;
|
|
|
4
4
|
SubBlockType["Quote"] = "quote";
|
|
5
5
|
SubBlockType["NewsCard"] = "news-card";
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated Will be
|
|
7
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
8
8
|
*/
|
|
9
9
|
SubBlockType["Partner"] = "partner";
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Will be removed
|
|
12
|
+
*/
|
|
10
13
|
SubBlockType["PriceDetailed"] = "price-detailed";
|
|
11
14
|
SubBlockType["MediaCard"] = "media-card";
|
|
12
15
|
SubBlockType["BannerCard"] = "banner-card";
|
|
13
16
|
/**
|
|
14
|
-
* @deprecated Will be
|
|
17
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
15
18
|
*/
|
|
16
19
|
SubBlockType["TutorialCard"] = "tutoral-card";
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use LayoutItem
|
|
19
|
-
*/
|
|
20
|
-
SubBlockType["CardWithImage"] = "card-with-image";
|
|
21
20
|
SubBlockType["LayoutItem"] = "layout-item";
|
|
22
21
|
SubBlockType["BackgroundCard"] = "background-card";
|
|
23
22
|
SubBlockType["BasicCard"] = "basic-card";
|
|
24
23
|
SubBlockType["Content"] = "content";
|
|
25
24
|
SubBlockType["HubspotForm"] = "hubspot-form";
|
|
26
25
|
/**
|
|
27
|
-
* @deprecated Will be
|
|
26
|
+
* @deprecated Will be removed, use BasicCard instead
|
|
28
27
|
*/
|
|
29
28
|
SubBlockType["Card"] = "card";
|
|
30
29
|
})(SubBlockType || (SubBlockType = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { validators } from './validators';
|
|
2
|
-
import { TabsBlock, BannerCard, SliderBlock, ExtendedFeaturesBlock, HeaderBlock, BannerBlock, CompaniesBlock, MediaBlock, InfoBlock, QuestionsBlock, SecurityBlock, TableBlock,
|
|
3
|
-
import { PartnerBlock, MediaCardBlock, TutorialCard, BackgroundCard, NewsCard,
|
|
2
|
+
import { TabsBlock, BannerCard, SliderBlock, ExtendedFeaturesBlock, HeaderBlock, BannerBlock, CompaniesBlock, MediaBlock, InfoBlock, QuestionsBlock, SecurityBlock, TableBlock, LinkTableBlock, PromoFeaturesBlock, ContentLayoutBlock, HeaderSliderBlock, IconsBlock, CardLayoutBlock, ShareBlock, MapBlock, } from './validators/blocks';
|
|
3
|
+
import { PartnerBlock, MediaCardBlock, TutorialCard, BackgroundCard, NewsCard, PriceDetailedBlock, Quote, Divider, BasicCard, } from './validators/sub-blocks';
|
|
4
4
|
import { AnimatableProps, BackgroundProps, MenuProps, withTheme } from './validators/common';
|
|
5
5
|
import { filteredItem } from './validators/utils';
|
|
6
6
|
import { LogoProps, NavigationHeaderProps } from './validators/navigation';
|
|
@@ -9,8 +9,8 @@ export const getBlocksCases = (blocks) => {
|
|
|
9
9
|
};
|
|
10
10
|
export function generateDefaultSchema(config) {
|
|
11
11
|
const { cards = {}, blocks = {}, extensions = {} } = config !== null && config !== void 0 ? config : {};
|
|
12
|
-
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(
|
|
13
|
-
const cardValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(
|
|
12
|
+
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({}, Divider), ExtendedFeaturesBlock), PromoFeaturesBlock), SliderBlock), QuestionsBlock), HeaderBlock), BannerBlock), CompaniesBlock), MediaBlock), MapBlock), InfoBlock), SecurityBlock), TableBlock), TabsBlock), LinkTableBlock), HeaderSliderBlock), IconsBlock), CardLayoutBlock), ContentLayoutBlock), ShareBlock);
|
|
13
|
+
const cardValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, PartnerBlock), MediaCardBlock), BannerCard), PriceDetailedBlock), TutorialCard), BackgroundCard), NewsCard), Quote), BasicCard);
|
|
14
14
|
const constructorBlockSchemaNames = [
|
|
15
15
|
'divider',
|
|
16
16
|
'quote',
|
|
@@ -29,7 +29,6 @@ export function generateDefaultSchema(config) {
|
|
|
29
29
|
'security-block',
|
|
30
30
|
'table-block',
|
|
31
31
|
'tabs-block',
|
|
32
|
-
'simple-block',
|
|
33
32
|
'link-table-block',
|
|
34
33
|
'preview-block',
|
|
35
34
|
'price-detailed',
|
|
@@ -48,7 +47,6 @@ export function generateDefaultSchema(config) {
|
|
|
48
47
|
'tutoral-card',
|
|
49
48
|
'background-card',
|
|
50
49
|
'news-card',
|
|
51
|
-
'card-with-image',
|
|
52
50
|
'quote',
|
|
53
51
|
'basic-card',
|
|
54
52
|
'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';
|
|
@@ -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 @@ 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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|