@gravity-ui/page-constructor 1.8.0-alfa.0 → 1.8.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 +16 -0
- package/README.md +58 -36
- package/build/cjs/blocks/Banner/schema.d.ts +0 -12
- package/build/cjs/blocks/Banner/schema.js +0 -2
- package/build/cjs/blocks/CardLayout/schema.d.ts +0 -8
- package/build/cjs/blocks/CardLayout/schema.js +1 -2
- package/build/cjs/blocks/Companies/schema.d.ts +0 -2
- package/build/cjs/blocks/Companies/schema.js +0 -2
- package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -6
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -7
- package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -4
- package/build/cjs/blocks/Header/schema.d.ts +0 -16
- package/build/cjs/blocks/Header/schema.js +0 -5
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -11
- package/build/cjs/blocks/Icons/schema.d.ts +0 -6
- package/build/cjs/blocks/Icons/schema.js +0 -2
- package/build/cjs/blocks/Info/schema.d.ts +0 -10
- package/build/cjs/blocks/Info/schema.js +0 -2
- package/build/cjs/blocks/LinkTable/schema.d.ts +0 -2
- package/build/cjs/blocks/Media/schema.d.ts +0 -9
- package/build/cjs/blocks/Media/schema.js +1 -3
- package/build/cjs/blocks/Preview/schema.d.ts +0 -2
- package/build/cjs/blocks/Preview/schema.js +0 -4
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -4
- package/build/cjs/blocks/Questions/schema.d.ts +0 -5
- package/build/cjs/blocks/Questions/schema.js +0 -2
- package/build/cjs/blocks/Security/schema.d.ts +0 -2
- package/build/cjs/blocks/Security/schema.js +0 -2
- package/build/cjs/blocks/Simple/schema.d.ts +0 -3
- package/build/cjs/blocks/Simple/schema.js +0 -1
- package/build/cjs/blocks/Slider/schema.d.ts +0 -7
- package/build/cjs/blocks/Slider/schema.js +0 -2
- package/build/cjs/blocks/Table/schema.d.ts +0 -4
- package/build/cjs/blocks/Table/schema.js +0 -3
- package/build/cjs/blocks/Tabs/schema.d.ts +0 -8
- package/build/cjs/blocks/Tabs/schema.js +0 -4
- package/build/cjs/components/Author/schema.d.ts +0 -3
- package/build/cjs/components/Image/schema.d.ts +0 -2
- package/build/cjs/components/Image/schema.js +0 -2
- package/build/cjs/components/OverflowScroller/OverflowScroller.css +2 -0
- package/build/cjs/components/RouterLink/RouterLink.d.ts +1 -0
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +40 -39
- package/build/cjs/components/navigation/components/Header/Header.css +85 -0
- package/build/cjs/components/navigation/components/Header/Header.d.ts +8 -0
- package/build/cjs/components/navigation/components/Header/Header.js +55 -0
- package/build/cjs/components/navigation/components/Logo/Logo.css +23 -0
- package/build/cjs/components/navigation/components/Logo/Logo.d.ts +7 -0
- package/build/cjs/components/navigation/components/Logo/Logo.js +17 -0
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.css +64 -0
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +13 -0
- package/build/cjs/components/navigation/components/MobileNavigation/MobileNavigation.js +45 -0
- package/build/cjs/components/navigation/components/Navigation/Navigation.css +43 -0
- package/build/cjs/components/navigation/components/Navigation/Navigation.d.ts +18 -0
- package/build/cjs/components/navigation/components/Navigation/Navigation.js +69 -0
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.css +40 -0
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.d.ts +10 -0
- package/build/cjs/components/navigation/components/NavigationItem/NavigationItem.js +59 -0
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.css +33 -0
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +10 -0
- package/build/cjs/components/navigation/components/NavigationPopup/NavigationPopup.js +45 -0
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.css +20 -0
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.d.ts +7 -0
- package/build/cjs/components/navigation/components/SocialIcon/SocialIcon.js +14 -0
- package/build/cjs/components/navigation/components/index.d.ts +7 -0
- package/build/cjs/components/navigation/components/index.js +20 -0
- package/build/cjs/components/navigation/containers/Layout/Layout.css +10 -0
- package/build/cjs/components/navigation/containers/Layout/Layout.d.ts +8 -0
- package/build/cjs/components/navigation/containers/Layout/Layout.js +11 -0
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +3 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.js +12 -10
- package/build/cjs/context/locationContext/locationContext.d.ts +1 -0
- package/build/cjs/icons/NavigationArrow.d.ts +2 -0
- package/build/cjs/icons/NavigationArrow.js +9 -0
- package/build/cjs/icons/NavigationClose.d.ts +2 -0
- package/build/cjs/icons/NavigationClose.js +9 -0
- package/build/cjs/icons/NavigationOpen.d.ts +2 -0
- package/build/cjs/icons/NavigationOpen.js +11 -0
- package/build/cjs/icons/index.d.ts +3 -0
- package/build/cjs/icons/index.js +3 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +2 -4
- package/build/cjs/models/index.d.ts +1 -0
- package/build/cjs/models/index.js +1 -0
- package/build/cjs/models/navigation.d.ts +62 -0
- package/build/cjs/models/navigation.js +10 -0
- package/build/cjs/schema/index.d.ts +0 -2
- package/build/cjs/schema/validators/common.d.ts +0 -17
- package/build/cjs/schema/validators/common.js +0 -11
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -5
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +0 -4
- package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +0 -8
- package/build/cjs/sub-blocks/CardWithImage/schema.js +1 -4
- package/build/cjs/sub-blocks/Content/schema.d.ts +0 -8
- package/build/cjs/sub-blocks/Content/schema.js +1 -3
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/NewsCard/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/NewsCard/schema.js +0 -1
- package/build/cjs/sub-blocks/Partner/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/Partner/schema.js +0 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +0 -8
- package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -4
- package/build/cjs/sub-blocks/Quote/schema.js +0 -1
- package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +0 -2
- package/build/cjs/sub-blocks/TutorialCard/schema.js +0 -2
- package/build/cjs/text-transform/blocks.js +0 -1
- package/build/esm/blocks/Banner/schema.d.ts +0 -12
- package/build/esm/blocks/Banner/schema.js +0 -2
- package/build/esm/blocks/CardLayout/schema.d.ts +0 -8
- package/build/esm/blocks/CardLayout/schema.js +1 -2
- package/build/esm/blocks/Companies/schema.d.ts +0 -2
- package/build/esm/blocks/Companies/schema.js +0 -2
- package/build/esm/blocks/ContentLayout/schema.d.ts +0 -6
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -7
- package/build/esm/blocks/ExtendedFeatures/schema.js +1 -4
- package/build/esm/blocks/Header/schema.d.ts +0 -16
- package/build/esm/blocks/Header/schema.js +0 -5
- package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -11
- package/build/esm/blocks/Icons/schema.d.ts +0 -6
- package/build/esm/blocks/Icons/schema.js +0 -2
- package/build/esm/blocks/Info/schema.d.ts +0 -10
- package/build/esm/blocks/Info/schema.js +0 -2
- package/build/esm/blocks/LinkTable/schema.d.ts +0 -2
- package/build/esm/blocks/Media/schema.d.ts +0 -9
- package/build/esm/blocks/Media/schema.js +1 -3
- package/build/esm/blocks/Preview/schema.d.ts +0 -2
- package/build/esm/blocks/Preview/schema.js +0 -4
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -7
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -4
- package/build/esm/blocks/Questions/schema.d.ts +0 -5
- package/build/esm/blocks/Questions/schema.js +0 -2
- package/build/esm/blocks/Security/schema.d.ts +0 -2
- package/build/esm/blocks/Security/schema.js +0 -2
- package/build/esm/blocks/Simple/schema.d.ts +0 -3
- package/build/esm/blocks/Simple/schema.js +0 -1
- package/build/esm/blocks/Slider/schema.d.ts +0 -7
- package/build/esm/blocks/Slider/schema.js +0 -2
- package/build/esm/blocks/Table/schema.d.ts +0 -4
- package/build/esm/blocks/Table/schema.js +0 -3
- package/build/esm/blocks/Tabs/schema.d.ts +0 -8
- package/build/esm/blocks/Tabs/schema.js +0 -4
- package/build/esm/components/Author/schema.d.ts +0 -3
- package/build/esm/components/Image/schema.d.ts +0 -2
- package/build/esm/components/Image/schema.js +0 -2
- package/build/esm/components/OverflowScroller/OverflowScroller.css +2 -0
- package/build/esm/components/RouterLink/RouterLink.d.ts +1 -0
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/components/navigation/components/Header/Header.css +85 -0
- package/build/esm/components/navigation/components/Header/Header.d.ts +9 -0
- package/build/esm/components/navigation/components/Header/Header.js +51 -0
- package/build/esm/components/navigation/components/Logo/Logo.css +23 -0
- package/build/esm/components/navigation/components/Logo/Logo.d.ts +8 -0
- package/build/esm/components/navigation/components/Logo/Logo.js +15 -0
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.css +64 -0
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.d.ts +14 -0
- package/build/esm/components/navigation/components/MobileNavigation/MobileNavigation.js +43 -0
- package/build/esm/components/navigation/components/Navigation/Navigation.css +43 -0
- package/build/esm/components/navigation/components/Navigation/Navigation.d.ts +19 -0
- package/build/esm/components/navigation/components/Navigation/Navigation.js +68 -0
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.css +40 -0
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.d.ts +11 -0
- package/build/esm/components/navigation/components/NavigationItem/NavigationItem.js +58 -0
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.css +33 -0
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.d.ts +11 -0
- package/build/esm/components/navigation/components/NavigationPopup/NavigationPopup.js +41 -0
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.css +20 -0
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.d.ts +8 -0
- package/build/esm/components/navigation/components/SocialIcon/SocialIcon.js +12 -0
- package/build/esm/components/navigation/components/index.d.ts +7 -0
- package/build/esm/components/navigation/components/index.js +7 -0
- package/build/esm/components/navigation/containers/Layout/Layout.css +10 -0
- package/build/esm/components/navigation/containers/Layout/Layout.d.ts +9 -0
- package/build/esm/components/navigation/containers/Layout/Layout.js +9 -0
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +3 -2
- package/build/esm/containers/PageConstructor/PageConstructor.js +12 -10
- package/build/esm/context/locationContext/locationContext.d.ts +1 -0
- package/build/esm/icons/NavigationArrow.d.ts +2 -0
- package/build/esm/icons/NavigationArrow.js +4 -0
- package/build/esm/icons/NavigationClose.d.ts +2 -0
- package/build/esm/icons/NavigationClose.js +4 -0
- package/build/esm/icons/NavigationOpen.d.ts +2 -0
- package/build/esm/icons/NavigationOpen.js +6 -0
- package/build/esm/icons/index.d.ts +3 -0
- package/build/esm/icons/index.js +3 -0
- package/build/esm/models/constructor-items/blocks.d.ts +2 -4
- package/build/esm/models/index.d.ts +1 -0
- package/build/esm/models/index.js +1 -0
- package/build/esm/models/navigation.d.ts +62 -0
- package/build/esm/models/navigation.js +7 -0
- package/build/esm/schema/index.d.ts +0 -2
- package/build/esm/schema/validators/common.d.ts +0 -17
- package/build/esm/schema/validators/common.js +0 -11
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -5
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +0 -4
- package/build/esm/sub-blocks/CardWithImage/schema.d.ts +0 -8
- package/build/esm/sub-blocks/CardWithImage/schema.js +1 -4
- package/build/esm/sub-blocks/Content/schema.d.ts +0 -8
- package/build/esm/sub-blocks/Content/schema.js +1 -3
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +0 -1
- package/build/esm/sub-blocks/NewsCard/schema.d.ts +0 -1
- package/build/esm/sub-blocks/NewsCard/schema.js +0 -1
- package/build/esm/sub-blocks/Partner/schema.d.ts +0 -1
- package/build/esm/sub-blocks/Partner/schema.js +0 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
- package/build/esm/sub-blocks/PriceDetailed/schema.js +0 -8
- package/build/esm/sub-blocks/Quote/schema.d.ts +0 -4
- package/build/esm/sub-blocks/Quote/schema.js +0 -1
- package/build/esm/sub-blocks/TutorialCard/schema.d.ts +0 -2
- package/build/esm/sub-blocks/TutorialCard/schema.js +0 -2
- package/build/esm/text-transform/blocks.js +0 -1
- package/package.json +2 -5
- package/server/models/constructor-items/blocks.d.ts +2 -4
- package/server/models/index.d.ts +1 -0
- package/server/models/index.js +1 -0
- package/server/models/navigation.d.ts +62 -0
- package/server/models/navigation.js +10 -0
- package/server/text-transform/blocks.js +0 -1
- package/styles/mixins.scss +38 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ImageProps, ButtonProps } from './constructor-items';
|
|
2
|
+
export declare enum NavigationItemType {
|
|
3
|
+
Link = "link",
|
|
4
|
+
Dropdown = "dropdown",
|
|
5
|
+
Button = "button",
|
|
6
|
+
Social = "social"
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationItemBase {
|
|
9
|
+
text: string;
|
|
10
|
+
icon?: ImageProps;
|
|
11
|
+
url?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NavigationLinkItem extends NavigationItemBase {
|
|
14
|
+
type: NavigationItemType.Link;
|
|
15
|
+
url: string;
|
|
16
|
+
arrow?: boolean;
|
|
17
|
+
target?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface NavigationButtonItem extends ButtonProps {
|
|
20
|
+
type: NavigationItemType.Button;
|
|
21
|
+
url: string;
|
|
22
|
+
target?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface NavigationDropdownItem extends NavigationItemBase {
|
|
25
|
+
type: NavigationItemType.Dropdown;
|
|
26
|
+
items: NavigationLinkItem[];
|
|
27
|
+
}
|
|
28
|
+
export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
|
|
29
|
+
type: NavigationItemType.Social;
|
|
30
|
+
icon: ImageProps;
|
|
31
|
+
url: string;
|
|
32
|
+
}
|
|
33
|
+
export declare type NavigationItem = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
|
|
34
|
+
export declare type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
|
|
35
|
+
export declare type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
|
|
36
|
+
export interface NavigationLogo {
|
|
37
|
+
icon: ImageProps;
|
|
38
|
+
text?: string;
|
|
39
|
+
url?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface HeaderData {
|
|
42
|
+
leftItems: NavigationItem[];
|
|
43
|
+
rightItems?: NavigationItem[];
|
|
44
|
+
}
|
|
45
|
+
export interface FooterColumn {
|
|
46
|
+
title: string;
|
|
47
|
+
links: NavigationItem[];
|
|
48
|
+
}
|
|
49
|
+
export interface FooterUnderline {
|
|
50
|
+
links?: NavigationItem[];
|
|
51
|
+
copyright?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface FooterData {
|
|
54
|
+
columns: FooterColumn[];
|
|
55
|
+
social?: NavigationSocialItem[];
|
|
56
|
+
underline?: FooterUnderline;
|
|
57
|
+
}
|
|
58
|
+
export interface NavigationData {
|
|
59
|
+
logo: NavigationLogo;
|
|
60
|
+
header: HeaderData;
|
|
61
|
+
footer?: FooterData;
|
|
62
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NavigationItemType = void 0;
|
|
4
|
+
var NavigationItemType;
|
|
5
|
+
(function (NavigationItemType) {
|
|
6
|
+
NavigationItemType["Link"] = "link";
|
|
7
|
+
NavigationItemType["Dropdown"] = "dropdown";
|
|
8
|
+
NavigationItemType["Button"] = "button";
|
|
9
|
+
NavigationItemType["Social"] = "social";
|
|
10
|
+
})(NavigationItemType = exports.NavigationItemType || (exports.NavigationItemType = {}));
|
|
@@ -43,7 +43,6 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
|
|
|
43
43
|
properties: {
|
|
44
44
|
title: {
|
|
45
45
|
type: string;
|
|
46
|
-
content: string;
|
|
47
46
|
};
|
|
48
47
|
};
|
|
49
48
|
};
|
|
@@ -122,7 +121,6 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
|
|
|
122
121
|
};
|
|
123
122
|
text: {
|
|
124
123
|
type: string;
|
|
125
|
-
content: string;
|
|
126
124
|
};
|
|
127
125
|
};
|
|
128
126
|
};
|
|
@@ -83,7 +83,6 @@ export declare const PlayIconProps: {
|
|
|
83
83
|
};
|
|
84
84
|
text: {
|
|
85
85
|
type: string;
|
|
86
|
-
content: string;
|
|
87
86
|
};
|
|
88
87
|
};
|
|
89
88
|
};
|
|
@@ -142,7 +141,6 @@ export declare const VideoProps: {
|
|
|
142
141
|
};
|
|
143
142
|
text: {
|
|
144
143
|
type: string;
|
|
145
|
-
content: string;
|
|
146
144
|
};
|
|
147
145
|
};
|
|
148
146
|
};
|
|
@@ -266,7 +264,6 @@ export declare const BackgroundProps: {
|
|
|
266
264
|
};
|
|
267
265
|
text: {
|
|
268
266
|
type: string;
|
|
269
|
-
content: string;
|
|
270
267
|
};
|
|
271
268
|
};
|
|
272
269
|
};
|
|
@@ -298,7 +295,6 @@ export declare const LinkProps: {
|
|
|
298
295
|
properties: {
|
|
299
296
|
text: {
|
|
300
297
|
type: string;
|
|
301
|
-
content: string;
|
|
302
298
|
};
|
|
303
299
|
url: {
|
|
304
300
|
type: string;
|
|
@@ -332,7 +328,6 @@ export declare const FileLinkProps: {
|
|
|
332
328
|
};
|
|
333
329
|
text: {
|
|
334
330
|
type: string;
|
|
335
|
-
content: string;
|
|
336
331
|
};
|
|
337
332
|
type: {
|
|
338
333
|
type: string;
|
|
@@ -354,11 +349,9 @@ export declare const authorItem: {
|
|
|
354
349
|
properties: {
|
|
355
350
|
firstName: {
|
|
356
351
|
type: string;
|
|
357
|
-
content: string;
|
|
358
352
|
};
|
|
359
353
|
secondName: {
|
|
360
354
|
type: string;
|
|
361
|
-
content: string;
|
|
362
355
|
};
|
|
363
356
|
avatar: {
|
|
364
357
|
type: string;
|
|
@@ -366,14 +359,12 @@ export declare const authorItem: {
|
|
|
366
359
|
};
|
|
367
360
|
description: {
|
|
368
361
|
type: string;
|
|
369
|
-
content: string;
|
|
370
362
|
};
|
|
371
363
|
};
|
|
372
364
|
};
|
|
373
365
|
export declare const ButtonProps: {
|
|
374
366
|
text: {
|
|
375
367
|
type: string;
|
|
376
|
-
content: string;
|
|
377
368
|
};
|
|
378
369
|
url: {
|
|
379
370
|
type: string;
|
|
@@ -409,7 +400,6 @@ export declare const ButtonProps: {
|
|
|
409
400
|
};
|
|
410
401
|
alt: {
|
|
411
402
|
type: string;
|
|
412
|
-
content: string;
|
|
413
403
|
};
|
|
414
404
|
};
|
|
415
405
|
})[];
|
|
@@ -510,7 +500,6 @@ export declare const MenuProps: {
|
|
|
510
500
|
properties: {
|
|
511
501
|
title: {
|
|
512
502
|
type: string;
|
|
513
|
-
content: string;
|
|
514
503
|
};
|
|
515
504
|
};
|
|
516
505
|
};
|
|
@@ -529,7 +518,6 @@ export declare const AnchorProps: {
|
|
|
529
518
|
properties: {
|
|
530
519
|
text: {
|
|
531
520
|
type: string;
|
|
532
|
-
content: string;
|
|
533
521
|
};
|
|
534
522
|
url: {
|
|
535
523
|
type: string;
|
|
@@ -544,7 +532,6 @@ export declare const BlockBaseProps: {
|
|
|
544
532
|
properties: {
|
|
545
533
|
text: {
|
|
546
534
|
type: string;
|
|
547
|
-
content: string;
|
|
548
535
|
};
|
|
549
536
|
url: {
|
|
550
537
|
type: string;
|
|
@@ -568,7 +555,6 @@ export declare const TitleProps: {
|
|
|
568
555
|
properties: {
|
|
569
556
|
text: {
|
|
570
557
|
type: string;
|
|
571
|
-
content: string;
|
|
572
558
|
};
|
|
573
559
|
textSize: {
|
|
574
560
|
type: string;
|
|
@@ -588,7 +574,6 @@ export declare const ButtonBlock: {
|
|
|
588
574
|
properties: {
|
|
589
575
|
text: {
|
|
590
576
|
type: string;
|
|
591
|
-
content: string;
|
|
592
577
|
};
|
|
593
578
|
url: {
|
|
594
579
|
type: string;
|
|
@@ -624,7 +609,6 @@ export declare const ButtonBlock: {
|
|
|
624
609
|
};
|
|
625
610
|
alt: {
|
|
626
611
|
type: string;
|
|
627
|
-
content: string;
|
|
628
612
|
};
|
|
629
613
|
};
|
|
630
614
|
})[];
|
|
@@ -822,7 +806,6 @@ export declare const MediaProps: {
|
|
|
822
806
|
};
|
|
823
807
|
text: {
|
|
824
808
|
type: string;
|
|
825
|
-
content: string;
|
|
826
809
|
};
|
|
827
810
|
};
|
|
828
811
|
};
|
|
@@ -79,7 +79,6 @@ exports.PlayIconProps = {
|
|
|
79
79
|
},
|
|
80
80
|
text: {
|
|
81
81
|
type: 'string',
|
|
82
|
-
content: 'string',
|
|
83
82
|
},
|
|
84
83
|
},
|
|
85
84
|
};
|
|
@@ -163,7 +162,6 @@ exports.LinkProps = {
|
|
|
163
162
|
required: ['text', 'url'],
|
|
164
163
|
properties: Object.assign(Object.assign({}, exports.BaseProps), { text: {
|
|
165
164
|
type: 'string',
|
|
166
|
-
content: 'string',
|
|
167
165
|
}, url: {
|
|
168
166
|
type: 'string',
|
|
169
167
|
}, arrow: {
|
|
@@ -189,7 +187,6 @@ exports.FileLinkProps = {
|
|
|
189
187
|
},
|
|
190
188
|
text: {
|
|
191
189
|
type: 'string',
|
|
192
|
-
content: 'string',
|
|
193
190
|
},
|
|
194
191
|
type: {
|
|
195
192
|
type: 'string',
|
|
@@ -211,11 +208,9 @@ exports.authorItem = {
|
|
|
211
208
|
properties: {
|
|
212
209
|
firstName: {
|
|
213
210
|
type: 'string',
|
|
214
|
-
content: 'string',
|
|
215
211
|
},
|
|
216
212
|
secondName: {
|
|
217
213
|
type: 'string',
|
|
218
|
-
content: 'string',
|
|
219
214
|
},
|
|
220
215
|
avatar: {
|
|
221
216
|
type: 'string',
|
|
@@ -223,14 +218,12 @@ exports.authorItem = {
|
|
|
223
218
|
},
|
|
224
219
|
description: {
|
|
225
220
|
type: 'string',
|
|
226
|
-
content: 'yfm',
|
|
227
221
|
},
|
|
228
222
|
},
|
|
229
223
|
};
|
|
230
224
|
exports.ButtonProps = {
|
|
231
225
|
text: {
|
|
232
226
|
type: 'string',
|
|
233
|
-
content: 'string',
|
|
234
227
|
},
|
|
235
228
|
url: {
|
|
236
229
|
type: 'string',
|
|
@@ -303,7 +296,6 @@ exports.ButtonProps = {
|
|
|
303
296
|
},
|
|
304
297
|
alt: {
|
|
305
298
|
type: 'string',
|
|
306
|
-
content: 'string',
|
|
307
299
|
},
|
|
308
300
|
},
|
|
309
301
|
},
|
|
@@ -343,7 +335,6 @@ exports.MenuProps = {
|
|
|
343
335
|
properties: {
|
|
344
336
|
title: {
|
|
345
337
|
type: 'string',
|
|
346
|
-
content: 'string',
|
|
347
338
|
},
|
|
348
339
|
},
|
|
349
340
|
};
|
|
@@ -368,7 +359,6 @@ exports.AnchorProps = {
|
|
|
368
359
|
properties: {
|
|
369
360
|
text: {
|
|
370
361
|
type: 'string',
|
|
371
|
-
content: 'string',
|
|
372
362
|
},
|
|
373
363
|
url: {
|
|
374
364
|
type: 'string',
|
|
@@ -388,7 +378,6 @@ exports.TitleProps = {
|
|
|
388
378
|
properties: {
|
|
389
379
|
text: {
|
|
390
380
|
type: 'string',
|
|
391
|
-
content: 'string',
|
|
392
381
|
},
|
|
393
382
|
textSize: {
|
|
394
383
|
type: 'string',
|
|
@@ -18,7 +18,6 @@ export declare const BackgroundCard: {
|
|
|
18
18
|
};
|
|
19
19
|
alt: {
|
|
20
20
|
type: string;
|
|
21
|
-
content: string;
|
|
22
21
|
};
|
|
23
22
|
disableCompress: {
|
|
24
23
|
type: string;
|
|
@@ -46,7 +45,6 @@ export declare const BackgroundCard: {
|
|
|
46
45
|
properties: {
|
|
47
46
|
text: {
|
|
48
47
|
type: string;
|
|
49
|
-
content: string;
|
|
50
48
|
};
|
|
51
49
|
textSize: {
|
|
52
50
|
type: string;
|
|
@@ -61,12 +59,10 @@ export declare const BackgroundCard: {
|
|
|
61
59
|
};
|
|
62
60
|
} | {
|
|
63
61
|
type: string;
|
|
64
|
-
content: string;
|
|
65
62
|
})[];
|
|
66
63
|
};
|
|
67
64
|
text: {
|
|
68
65
|
type: string;
|
|
69
|
-
content: string;
|
|
70
66
|
};
|
|
71
67
|
theme: {
|
|
72
68
|
type: string;
|
|
@@ -74,7 +70,6 @@ export declare const BackgroundCard: {
|
|
|
74
70
|
};
|
|
75
71
|
additionalInfo: {
|
|
76
72
|
type: string;
|
|
77
|
-
content: string;
|
|
78
73
|
};
|
|
79
74
|
links: {
|
|
80
75
|
type: string;
|
|
@@ -27,7 +27,6 @@ export declare const BasicCard: {
|
|
|
27
27
|
properties: {
|
|
28
28
|
text: {
|
|
29
29
|
type: string;
|
|
30
|
-
content: string;
|
|
31
30
|
};
|
|
32
31
|
textSize: {
|
|
33
32
|
type: string;
|
|
@@ -42,16 +41,13 @@ export declare const BasicCard: {
|
|
|
42
41
|
};
|
|
43
42
|
} | {
|
|
44
43
|
type: string;
|
|
45
|
-
content: string;
|
|
46
44
|
})[];
|
|
47
45
|
};
|
|
48
46
|
text: {
|
|
49
47
|
type: string;
|
|
50
|
-
content: string;
|
|
51
48
|
};
|
|
52
49
|
additionalInfo: {
|
|
53
50
|
type: string;
|
|
54
|
-
content: string;
|
|
55
51
|
};
|
|
56
52
|
links: {
|
|
57
53
|
type: string;
|
|
@@ -13,7 +13,6 @@ export declare const CardWithImageItem: {
|
|
|
13
13
|
properties: {
|
|
14
14
|
text: {
|
|
15
15
|
type: string;
|
|
16
|
-
content: string;
|
|
17
16
|
};
|
|
18
17
|
textSize: {
|
|
19
18
|
type: string;
|
|
@@ -28,16 +27,13 @@ export declare const CardWithImageItem: {
|
|
|
28
27
|
};
|
|
29
28
|
} | {
|
|
30
29
|
type: string;
|
|
31
|
-
content: string;
|
|
32
30
|
})[];
|
|
33
31
|
};
|
|
34
32
|
description: {
|
|
35
33
|
type: string;
|
|
36
|
-
content: string;
|
|
37
34
|
};
|
|
38
35
|
additionalInfo: {
|
|
39
36
|
type: string;
|
|
40
|
-
content: string;
|
|
41
37
|
};
|
|
42
38
|
disableCompress: {
|
|
43
39
|
type: string;
|
|
@@ -90,7 +86,6 @@ export declare const CardWithImage: {
|
|
|
90
86
|
properties: {
|
|
91
87
|
text: {
|
|
92
88
|
type: string;
|
|
93
|
-
content: string;
|
|
94
89
|
};
|
|
95
90
|
textSize: {
|
|
96
91
|
type: string;
|
|
@@ -105,16 +100,13 @@ export declare const CardWithImage: {
|
|
|
105
100
|
};
|
|
106
101
|
} | {
|
|
107
102
|
type: string;
|
|
108
|
-
content: string;
|
|
109
103
|
})[];
|
|
110
104
|
};
|
|
111
105
|
description: {
|
|
112
106
|
type: string;
|
|
113
|
-
content: string;
|
|
114
107
|
};
|
|
115
108
|
additionalInfo: {
|
|
116
109
|
type: string;
|
|
117
|
-
content: string;
|
|
118
110
|
};
|
|
119
111
|
disableCompress: {
|
|
120
112
|
type: string;
|
|
@@ -9,7 +9,6 @@ const CardWithImageLinks = {
|
|
|
9
9
|
required: ['title', 'link'],
|
|
10
10
|
properties: Object.assign(Object.assign({}, common_1.BaseProps), { title: {
|
|
11
11
|
type: 'string',
|
|
12
|
-
content: 'text',
|
|
13
12
|
}, link: {
|
|
14
13
|
type: 'string',
|
|
15
14
|
}, arrow: {
|
|
@@ -28,13 +27,11 @@ exports.CardWithImageItem = {
|
|
|
28
27
|
properties: Object.assign(Object.assign({}, common_1.BaseProps), { image: {
|
|
29
28
|
type: 'string',
|
|
30
29
|
}, title: {
|
|
31
|
-
oneOf: [{ type: 'string'
|
|
30
|
+
oneOf: [{ type: 'string' }, common_1.TitleProps],
|
|
32
31
|
}, description: {
|
|
33
32
|
type: 'string',
|
|
34
|
-
content: 'yfm',
|
|
35
33
|
}, additionalInfo: {
|
|
36
34
|
type: 'string',
|
|
37
|
-
content: 'yfm',
|
|
38
35
|
}, disableCompress: {
|
|
39
36
|
type: 'boolean',
|
|
40
37
|
}, border: {
|
|
@@ -7,7 +7,6 @@ export declare const ContentBase: {
|
|
|
7
7
|
properties: {
|
|
8
8
|
text: {
|
|
9
9
|
type: string;
|
|
10
|
-
content: string;
|
|
11
10
|
};
|
|
12
11
|
textSize: {
|
|
13
12
|
type: string;
|
|
@@ -22,16 +21,13 @@ export declare const ContentBase: {
|
|
|
22
21
|
};
|
|
23
22
|
} | {
|
|
24
23
|
type: string;
|
|
25
|
-
content: string;
|
|
26
24
|
})[];
|
|
27
25
|
};
|
|
28
26
|
text: {
|
|
29
27
|
type: string;
|
|
30
|
-
content: string;
|
|
31
28
|
};
|
|
32
29
|
additionalInfo: {
|
|
33
30
|
type: string;
|
|
34
|
-
content: string;
|
|
35
31
|
};
|
|
36
32
|
size: {
|
|
37
33
|
type: string;
|
|
@@ -80,7 +76,6 @@ export declare const ContentBlock: {
|
|
|
80
76
|
properties: {
|
|
81
77
|
text: {
|
|
82
78
|
type: string;
|
|
83
|
-
content: string;
|
|
84
79
|
};
|
|
85
80
|
textSize: {
|
|
86
81
|
type: string;
|
|
@@ -95,16 +90,13 @@ export declare const ContentBlock: {
|
|
|
95
90
|
};
|
|
96
91
|
} | {
|
|
97
92
|
type: string;
|
|
98
|
-
content: string;
|
|
99
93
|
})[];
|
|
100
94
|
};
|
|
101
95
|
text: {
|
|
102
96
|
type: string;
|
|
103
|
-
content: string;
|
|
104
97
|
};
|
|
105
98
|
additionalInfo: {
|
|
106
99
|
type: string;
|
|
107
|
-
content: string;
|
|
108
100
|
};
|
|
109
101
|
size: {
|
|
110
102
|
type: string;
|
|
@@ -5,15 +5,13 @@ const common_1 = require("../../schema/validators/common");
|
|
|
5
5
|
const utils_1 = require("../../schema/validators/utils");
|
|
6
6
|
exports.ContentBase = {
|
|
7
7
|
title: {
|
|
8
|
-
oneOf: [{ type: 'string'
|
|
8
|
+
oneOf: [{ type: 'string' }, common_1.TitleProps],
|
|
9
9
|
},
|
|
10
10
|
text: {
|
|
11
11
|
type: 'string',
|
|
12
|
-
content: 'yfm',
|
|
13
12
|
},
|
|
14
13
|
additionalInfo: {
|
|
15
14
|
type: 'string',
|
|
16
|
-
content: 'yfm',
|
|
17
15
|
},
|
|
18
16
|
size: {
|
|
19
17
|
type: 'string',
|
|
@@ -22,7 +22,6 @@ const PriceDetailedFoldableDetailsProps = {
|
|
|
22
22
|
properties: {
|
|
23
23
|
title: {
|
|
24
24
|
type: 'string',
|
|
25
|
-
content: 'text',
|
|
26
25
|
},
|
|
27
26
|
size: {
|
|
28
27
|
type: 'string',
|
|
@@ -76,7 +75,6 @@ const PriceDescriptionLabelProps = {
|
|
|
76
75
|
},
|
|
77
76
|
text: {
|
|
78
77
|
type: 'string',
|
|
79
|
-
content: 'text',
|
|
80
78
|
},
|
|
81
79
|
size: {
|
|
82
80
|
type: 'string',
|
|
@@ -87,15 +85,12 @@ const PriceDescriptionLabelProps = {
|
|
|
87
85
|
const PriceDescriptionProps = {
|
|
88
86
|
title: {
|
|
89
87
|
type: 'string',
|
|
90
|
-
content: 'text',
|
|
91
88
|
},
|
|
92
89
|
description: {
|
|
93
90
|
type: 'string',
|
|
94
|
-
content: 'yfm',
|
|
95
91
|
},
|
|
96
92
|
detailedTitle: {
|
|
97
93
|
type: 'string',
|
|
98
|
-
content: 'text',
|
|
99
94
|
},
|
|
100
95
|
label: PriceDescriptionLabelProps,
|
|
101
96
|
};
|
|
@@ -106,11 +101,9 @@ const PriceDetailsSettingsProps = {
|
|
|
106
101
|
properties: {
|
|
107
102
|
title: {
|
|
108
103
|
type: 'string',
|
|
109
|
-
content: 'text',
|
|
110
104
|
},
|
|
111
105
|
description: {
|
|
112
106
|
type: 'string',
|
|
113
|
-
content: 'yfm',
|
|
114
107
|
},
|
|
115
108
|
},
|
|
116
109
|
};
|
|
@@ -121,7 +114,6 @@ const PriceDetailsListProps = {
|
|
|
121
114
|
properties: {
|
|
122
115
|
text: {
|
|
123
116
|
type: 'string',
|
|
124
|
-
content: 'yfm',
|
|
125
117
|
},
|
|
126
118
|
},
|
|
127
119
|
};
|
|
@@ -5,7 +5,6 @@ export declare const Quote: {
|
|
|
5
5
|
properties: {
|
|
6
6
|
text: {
|
|
7
7
|
type: string;
|
|
8
|
-
content: string;
|
|
9
8
|
};
|
|
10
9
|
image: {
|
|
11
10
|
oneOf: ({
|
|
@@ -48,11 +47,9 @@ export declare const Quote: {
|
|
|
48
47
|
properties: {
|
|
49
48
|
firstName: {
|
|
50
49
|
type: string;
|
|
51
|
-
content: string;
|
|
52
50
|
};
|
|
53
51
|
secondName: {
|
|
54
52
|
type: string;
|
|
55
|
-
content: string;
|
|
56
53
|
};
|
|
57
54
|
avatar: {
|
|
58
55
|
type: string;
|
|
@@ -60,7 +57,6 @@ export declare const Quote: {
|
|
|
60
57
|
};
|
|
61
58
|
description: {
|
|
62
59
|
type: string;
|
|
63
|
-
content: string;
|
|
64
60
|
};
|
|
65
61
|
};
|
|
66
62
|
};
|
|
@@ -9,7 +9,6 @@ exports.Quote = {
|
|
|
9
9
|
required: ['text', 'image', 'logo'],
|
|
10
10
|
properties: Object.assign(Object.assign({}, common_1.BaseProps), { text: {
|
|
11
11
|
type: 'string',
|
|
12
|
-
content: 'text',
|
|
13
12
|
}, image: (0, common_1.withTheme)(schema_1.ImageProps), logo: {
|
|
14
13
|
type: 'string',
|
|
15
14
|
pattern: schema_1.urlPattern,
|
|
@@ -160,7 +160,6 @@ const config = {
|
|
|
160
160
|
{
|
|
161
161
|
fields: ['items'],
|
|
162
162
|
transformer: yfmTransformer,
|
|
163
|
-
// https://st.yandex-team.ru/CLOUDFRONT-13388 Перед мерджем проверить валидацию здесь
|
|
164
163
|
parser: (0, exports.createItemsParser)(['text', 'additionalInfo']),
|
|
165
164
|
},
|
|
166
165
|
],
|