@gravity-ui/page-constructor 1.11.1 → 1.12.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 +16 -1
- package/build/cjs/blocks/Banner/schema.d.ts +12 -0
- package/build/cjs/blocks/Banner/schema.js +2 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +28 -22
- package/build/cjs/blocks/CardLayout/schema.js +1 -5
- package/build/cjs/blocks/Companies/schema.d.ts +2 -0
- package/build/cjs/blocks/Companies/schema.js +2 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +6 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +22 -16
- package/build/cjs/blocks/ExtendedFeatures/schema.js +3 -5
- package/build/cjs/blocks/Header/schema.d.ts +16 -0
- package/build/cjs/blocks/Header/schema.js +5 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +9 -23
- package/build/cjs/blocks/Icons/schema.d.ts +6 -0
- package/build/cjs/blocks/Icons/schema.js +2 -0
- package/build/cjs/blocks/Info/schema.d.ts +10 -0
- package/build/cjs/blocks/Info/schema.js +2 -0
- package/build/cjs/blocks/LinkTable/schema.d.ts +30 -20
- package/build/cjs/blocks/LinkTable/schema.js +1 -1
- package/build/cjs/blocks/Media/schema.d.ts +62 -53
- package/build/cjs/blocks/Media/schema.js +6 -10
- package/build/cjs/blocks/Preview/schema.d.ts +2 -0
- package/build/cjs/blocks/Preview/schema.js +4 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +20 -14
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +3 -5
- package/build/cjs/blocks/Questions/schema.d.ts +5 -0
- package/build/cjs/blocks/Questions/schema.js +2 -0
- package/build/cjs/blocks/Security/schema.d.ts +2 -0
- package/build/cjs/blocks/Security/schema.js +2 -0
- package/build/cjs/blocks/Simple/schema.d.ts +3 -0
- package/build/cjs/blocks/Simple/schema.js +1 -0
- package/build/cjs/blocks/Slider/Slider.d.ts +1 -6
- package/build/cjs/blocks/Slider/schema.d.ts +31 -45
- package/build/cjs/blocks/Slider/schema.js +2 -5
- package/build/cjs/blocks/Table/schema.d.ts +4 -0
- package/build/cjs/blocks/Table/schema.js +3 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +37 -23
- package/build/cjs/blocks/Tabs/schema.js +2 -3
- package/build/cjs/components/Author/Author.js +2 -2
- package/build/cjs/components/Author/__tests__/Author.test.d.ts +1 -0
- package/build/cjs/components/Author/__tests__/Author.test.js +49 -0
- package/build/cjs/components/Author/schema.d.ts +3 -0
- package/build/cjs/components/BlockHeader/BlockHeader.css +8 -19
- package/build/cjs/components/BlockHeader/BlockHeader.js +4 -3
- package/build/cjs/components/Image/schema.d.ts +2 -0
- package/build/cjs/components/Image/schema.js +14 -23
- package/build/cjs/grid/Grid/Grid.css +16 -16
- package/build/cjs/models/constructor-items/common.d.ts +1 -0
- package/build/cjs/navigation/components/Header/Header.css +2 -1
- package/build/cjs/navigation/components/Logo/Logo.css +5 -6
- package/build/cjs/schema/index.d.ts +2 -0
- package/build/cjs/schema/validators/common.d.ts +48 -0
- package/build/cjs/schema/validators/common.js +21 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +5 -0
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +4 -0
- package/build/cjs/sub-blocks/CardWithImage/schema.d.ts +54 -46
- package/build/cjs/sub-blocks/CardWithImage/schema.js +7 -6
- package/build/cjs/sub-blocks/Content/schema.d.ts +8 -0
- package/build/cjs/sub-blocks/Content/schema.js +3 -1
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/NewsCard/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/NewsCard/schema.js +1 -0
- package/build/cjs/sub-blocks/Partner/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/Partner/schema.js +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/schema.js +8 -0
- package/build/cjs/sub-blocks/Quote/schema.d.ts +4 -0
- package/build/cjs/sub-blocks/Quote/schema.js +1 -0
- package/build/cjs/sub-blocks/TutorialCard/schema.d.ts +2 -0
- package/build/cjs/sub-blocks/TutorialCard/schema.js +2 -0
- package/build/cjs/text-transform/blocks.js +49 -32
- package/build/esm/blocks/Banner/schema.d.ts +12 -0
- package/build/esm/blocks/Banner/schema.js +2 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +28 -22
- package/build/esm/blocks/CardLayout/schema.js +2 -6
- package/build/esm/blocks/Companies/schema.d.ts +2 -0
- package/build/esm/blocks/Companies/schema.js +2 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +6 -0
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +22 -16
- package/build/esm/blocks/ExtendedFeatures/schema.js +4 -6
- package/build/esm/blocks/Header/schema.d.ts +16 -0
- package/build/esm/blocks/Header/schema.js +5 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +9 -23
- package/build/esm/blocks/Icons/schema.d.ts +6 -0
- package/build/esm/blocks/Icons/schema.js +2 -0
- package/build/esm/blocks/Info/schema.d.ts +10 -0
- package/build/esm/blocks/Info/schema.js +2 -0
- package/build/esm/blocks/LinkTable/schema.d.ts +30 -20
- package/build/esm/blocks/LinkTable/schema.js +2 -2
- package/build/esm/blocks/Media/schema.d.ts +62 -53
- package/build/esm/blocks/Media/schema.js +7 -11
- package/build/esm/blocks/Preview/schema.d.ts +2 -0
- package/build/esm/blocks/Preview/schema.js +4 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +20 -14
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +4 -6
- package/build/esm/blocks/Questions/schema.d.ts +5 -0
- package/build/esm/blocks/Questions/schema.js +2 -0
- package/build/esm/blocks/Security/schema.d.ts +2 -0
- package/build/esm/blocks/Security/schema.js +2 -0
- package/build/esm/blocks/Simple/schema.d.ts +3 -0
- package/build/esm/blocks/Simple/schema.js +1 -0
- package/build/esm/blocks/Slider/Slider.d.ts +1 -6
- package/build/esm/blocks/Slider/schema.d.ts +31 -45
- package/build/esm/blocks/Slider/schema.js +3 -6
- package/build/esm/blocks/Table/schema.d.ts +4 -0
- package/build/esm/blocks/Table/schema.js +3 -0
- package/build/esm/blocks/Tabs/schema.d.ts +37 -23
- package/build/esm/blocks/Tabs/schema.js +3 -4
- package/build/esm/components/Author/Author.js +2 -2
- package/build/esm/components/Author/__tests__/Author.test.d.ts +1 -0
- package/build/esm/components/Author/__tests__/Author.test.js +46 -0
- package/build/esm/components/Author/schema.d.ts +3 -0
- package/build/esm/components/BlockHeader/BlockHeader.css +8 -19
- package/build/esm/components/BlockHeader/BlockHeader.js +5 -4
- package/build/esm/components/Image/schema.d.ts +2 -0
- package/build/esm/components/Image/schema.js +14 -23
- package/build/esm/grid/Grid/Grid.css +16 -16
- package/build/esm/models/constructor-items/common.d.ts +1 -0
- package/build/esm/navigation/components/Header/Header.css +2 -1
- package/build/esm/navigation/components/Logo/Logo.css +5 -6
- package/build/esm/schema/index.d.ts +2 -0
- package/build/esm/schema/validators/common.d.ts +48 -0
- package/build/esm/schema/validators/common.js +20 -0
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +5 -0
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +4 -0
- package/build/esm/sub-blocks/CardWithImage/schema.d.ts +54 -46
- package/build/esm/sub-blocks/CardWithImage/schema.js +8 -7
- package/build/esm/sub-blocks/Content/schema.d.ts +8 -0
- package/build/esm/sub-blocks/Content/schema.js +3 -1
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +1 -0
- package/build/esm/sub-blocks/NewsCard/schema.d.ts +1 -0
- package/build/esm/sub-blocks/NewsCard/schema.js +1 -0
- package/build/esm/sub-blocks/Partner/schema.d.ts +1 -0
- package/build/esm/sub-blocks/Partner/schema.js +1 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +1 -0
- package/build/esm/sub-blocks/PriceDetailed/schema.js +8 -0
- package/build/esm/sub-blocks/Quote/schema.d.ts +4 -0
- package/build/esm/sub-blocks/Quote/schema.js +1 -0
- package/build/esm/sub-blocks/TutorialCard/schema.d.ts +2 -0
- package/build/esm/sub-blocks/TutorialCard/schema.js +2 -0
- package/build/esm/text-transform/blocks.js +49 -32
- package/package.json +2 -3
- package/server/models/constructor-items/common.d.ts +1 -0
- package/server/text-transform/blocks.js +49 -32
|
@@ -22,6 +22,7 @@ const PriceDetailedFoldableDetailsProps = {
|
|
|
22
22
|
properties: {
|
|
23
23
|
title: {
|
|
24
24
|
type: 'string',
|
|
25
|
+
contentType: 'text',
|
|
25
26
|
},
|
|
26
27
|
size: {
|
|
27
28
|
type: 'string',
|
|
@@ -75,6 +76,7 @@ const PriceDescriptionLabelProps = {
|
|
|
75
76
|
},
|
|
76
77
|
text: {
|
|
77
78
|
type: 'string',
|
|
79
|
+
contentType: 'text',
|
|
78
80
|
},
|
|
79
81
|
size: {
|
|
80
82
|
type: 'string',
|
|
@@ -85,12 +87,15 @@ const PriceDescriptionLabelProps = {
|
|
|
85
87
|
const PriceDescriptionProps = {
|
|
86
88
|
title: {
|
|
87
89
|
type: 'string',
|
|
90
|
+
contentType: 'text',
|
|
88
91
|
},
|
|
89
92
|
description: {
|
|
90
93
|
type: 'string',
|
|
94
|
+
contentType: 'yfm',
|
|
91
95
|
},
|
|
92
96
|
detailedTitle: {
|
|
93
97
|
type: 'string',
|
|
98
|
+
contentType: 'text',
|
|
94
99
|
},
|
|
95
100
|
label: PriceDescriptionLabelProps,
|
|
96
101
|
};
|
|
@@ -101,9 +106,11 @@ const PriceDetailsSettingsProps = {
|
|
|
101
106
|
properties: {
|
|
102
107
|
title: {
|
|
103
108
|
type: 'string',
|
|
109
|
+
contentType: 'text',
|
|
104
110
|
},
|
|
105
111
|
description: {
|
|
106
112
|
type: 'string',
|
|
113
|
+
contentType: 'yfm',
|
|
107
114
|
},
|
|
108
115
|
},
|
|
109
116
|
};
|
|
@@ -114,6 +121,7 @@ const PriceDetailsListProps = {
|
|
|
114
121
|
properties: {
|
|
115
122
|
text: {
|
|
116
123
|
type: 'string',
|
|
124
|
+
contentType: 'yfm',
|
|
117
125
|
},
|
|
118
126
|
},
|
|
119
127
|
};
|
|
@@ -5,6 +5,7 @@ export declare const Quote: {
|
|
|
5
5
|
properties: {
|
|
6
6
|
text: {
|
|
7
7
|
type: string;
|
|
8
|
+
contentType: string;
|
|
8
9
|
};
|
|
9
10
|
image: {
|
|
10
11
|
oneOf: ({
|
|
@@ -47,9 +48,11 @@ export declare const Quote: {
|
|
|
47
48
|
properties: {
|
|
48
49
|
firstName: {
|
|
49
50
|
type: string;
|
|
51
|
+
contentType: string;
|
|
50
52
|
};
|
|
51
53
|
secondName: {
|
|
52
54
|
type: string;
|
|
55
|
+
contentType: string;
|
|
53
56
|
};
|
|
54
57
|
avatar: {
|
|
55
58
|
type: string;
|
|
@@ -57,6 +60,7 @@ export declare const Quote: {
|
|
|
57
60
|
};
|
|
58
61
|
description: {
|
|
59
62
|
type: string;
|
|
63
|
+
contentType: string;
|
|
60
64
|
};
|
|
61
65
|
};
|
|
62
66
|
};
|
|
@@ -9,6 +9,7 @@ exports.Quote = {
|
|
|
9
9
|
required: ['text', 'image', 'logo'],
|
|
10
10
|
properties: Object.assign(Object.assign({}, common_1.BaseProps), { text: {
|
|
11
11
|
type: 'string',
|
|
12
|
+
contentType: 'text',
|
|
12
13
|
}, image: (0, common_1.withTheme)(schema_1.ImageProps), logo: {
|
|
13
14
|
type: 'string',
|
|
14
15
|
pattern: schema_1.urlPattern,
|
|
@@ -39,13 +39,6 @@ function parsePromoFeatures(transformer, items) {
|
|
|
39
39
|
return (Object.assign({ text: transformer(text) }, rest));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function parseSlider(transformer, block) {
|
|
43
|
-
const { title, description } = block;
|
|
44
|
-
block.title = Object.assign(Object.assign({}, title), { text: transformer(title ? title.text : '') });
|
|
45
|
-
if (description) {
|
|
46
|
-
block.description = transformer(description);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
42
|
const parseTitle = (transformer, title) => typeof title === 'object' && 'text' in title
|
|
50
43
|
? Object.assign(Object.assign({}, title), { text: transformer(title.text) }) : title && transformer(title);
|
|
51
44
|
const parseItemsTitle = (transformer, items) => items.map((_a) => {
|
|
@@ -101,6 +94,17 @@ function typografTransformer(lang, content) {
|
|
|
101
94
|
return (0, utils_1.typografToHTML)(content, lang);
|
|
102
95
|
}
|
|
103
96
|
exports.typografTransformer = typografTransformer;
|
|
97
|
+
const blockHeaderTransfomer = [
|
|
98
|
+
{
|
|
99
|
+
fields: ['title'],
|
|
100
|
+
transformer: typografTransformer,
|
|
101
|
+
parser: parseTitle,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
fields: ['description'],
|
|
105
|
+
transformer: yfmTransformer,
|
|
106
|
+
},
|
|
107
|
+
];
|
|
104
108
|
const config = {
|
|
105
109
|
[models_1.SubBlockType.Partner]: {
|
|
106
110
|
fields: ['text'],
|
|
@@ -145,35 +149,35 @@ const config = {
|
|
|
145
149
|
transformer: typografTransformer,
|
|
146
150
|
},
|
|
147
151
|
[models_1.BlockType.ExtendedFeaturesBlock]: [
|
|
152
|
+
...blockHeaderTransfomer,
|
|
148
153
|
{
|
|
149
|
-
fields: ['
|
|
154
|
+
fields: ['items'],
|
|
150
155
|
transformer: typografTransformer,
|
|
151
|
-
parser:
|
|
156
|
+
parser: (0, exports.createItemsParser)(['title']),
|
|
152
157
|
},
|
|
153
158
|
{
|
|
154
|
-
fields: ['
|
|
159
|
+
fields: ['items'],
|
|
155
160
|
transformer: yfmTransformer,
|
|
161
|
+
parser: (0, exports.createItemsParser)(['text', 'additionalInfo']),
|
|
156
162
|
},
|
|
163
|
+
],
|
|
164
|
+
[models_1.BlockType.PromoFeaturesBlock]: [
|
|
157
165
|
{
|
|
158
|
-
fields: ['
|
|
166
|
+
fields: ['title'],
|
|
159
167
|
transformer: typografTransformer,
|
|
160
|
-
parser:
|
|
168
|
+
parser: parseTitle,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
fields: ['description'],
|
|
172
|
+
transformer: yfmTransformer,
|
|
161
173
|
},
|
|
162
174
|
{
|
|
163
175
|
fields: ['items'],
|
|
164
176
|
transformer: yfmTransformer,
|
|
165
|
-
parser:
|
|
177
|
+
parser: parsePromoFeatures,
|
|
166
178
|
},
|
|
167
179
|
],
|
|
168
|
-
[models_1.BlockType.
|
|
169
|
-
fields: ['items'],
|
|
170
|
-
transformer: yfmTransformer,
|
|
171
|
-
parser: parsePromoFeatures,
|
|
172
|
-
},
|
|
173
|
-
[models_1.BlockType.SliderBlock]: {
|
|
174
|
-
transformer: typografTransformer,
|
|
175
|
-
parser: parseSlider,
|
|
176
|
-
},
|
|
180
|
+
[models_1.BlockType.SliderBlock]: blockHeaderTransfomer,
|
|
177
181
|
[models_1.BlockType.QuestionsBlock]: [
|
|
178
182
|
{
|
|
179
183
|
fields: ['title'],
|
|
@@ -210,21 +214,14 @@ const config = {
|
|
|
210
214
|
},
|
|
211
215
|
],
|
|
212
216
|
[models_1.BlockType.MediaBlock]: [
|
|
217
|
+
...blockHeaderTransfomer,
|
|
213
218
|
{
|
|
214
|
-
fields: ['title'],
|
|
215
|
-
transformer: typografTransformer,
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
fields: ['description', 'title', 'additionalInfo'],
|
|
219
|
+
fields: ['title', 'additionalInfo'],
|
|
219
220
|
transformer: yfmTransformer,
|
|
220
221
|
},
|
|
221
222
|
],
|
|
222
223
|
[models_1.BlockType.TabsBlock]: [
|
|
223
|
-
|
|
224
|
-
fields: ['title'],
|
|
225
|
-
transformer: typografTransformer,
|
|
226
|
-
parser: parseTitle,
|
|
227
|
-
},
|
|
224
|
+
...blockHeaderTransfomer,
|
|
228
225
|
{
|
|
229
226
|
fields: ['items'],
|
|
230
227
|
transformer: yfmTransformer,
|
|
@@ -256,6 +253,11 @@ const config = {
|
|
|
256
253
|
},
|
|
257
254
|
],
|
|
258
255
|
[models_1.BlockType.SimpleBlock]: [
|
|
256
|
+
{
|
|
257
|
+
fields: ['title'],
|
|
258
|
+
transformer: typografTransformer,
|
|
259
|
+
parser: parseTitle,
|
|
260
|
+
},
|
|
259
261
|
{
|
|
260
262
|
fields: ['description'],
|
|
261
263
|
transformer: yfmTransformer,
|
|
@@ -301,7 +303,13 @@ const config = {
|
|
|
301
303
|
fields: ['description'],
|
|
302
304
|
transformer: yfmTransformer,
|
|
303
305
|
},
|
|
306
|
+
{
|
|
307
|
+
fields: ['title'],
|
|
308
|
+
transformer: typografTransformer,
|
|
309
|
+
parser: parseTitle,
|
|
310
|
+
},
|
|
304
311
|
],
|
|
312
|
+
[models_1.BlockType.PromoFeaturesBlock]: blockHeaderTransfomer,
|
|
305
313
|
[models_1.BlockType.InfoBlock]: [
|
|
306
314
|
{
|
|
307
315
|
fields: ['rightContent', 'leftContent'],
|
|
@@ -320,6 +328,15 @@ const config = {
|
|
|
320
328
|
transformer: typografTransformer,
|
|
321
329
|
},
|
|
322
330
|
],
|
|
331
|
+
[models_1.BlockType.CardLayoutBlock]: blockHeaderTransfomer,
|
|
332
|
+
[models_1.BlockType.IconsBlock]: [
|
|
333
|
+
{
|
|
334
|
+
fields: ['title'],
|
|
335
|
+
transformer: typografTransformer,
|
|
336
|
+
parser: parseTitle,
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
[models_1.BlockType.LinkTableBlock]: blockHeaderTransfomer,
|
|
323
340
|
};
|
|
324
341
|
function addRandomOrder(block) {
|
|
325
342
|
if (block) {
|
|
@@ -4,9 +4,11 @@ export declare const BannerCardProps: {
|
|
|
4
4
|
properties: {
|
|
5
5
|
title: {
|
|
6
6
|
type: string;
|
|
7
|
+
contentType: string;
|
|
7
8
|
};
|
|
8
9
|
subtitle: {
|
|
9
10
|
type: string;
|
|
11
|
+
contentType: string;
|
|
10
12
|
};
|
|
11
13
|
image: {
|
|
12
14
|
oneOf: ({
|
|
@@ -45,6 +47,7 @@ export declare const BannerCardProps: {
|
|
|
45
47
|
properties: {
|
|
46
48
|
text: {
|
|
47
49
|
type: string;
|
|
50
|
+
contentType: string;
|
|
48
51
|
};
|
|
49
52
|
url: {
|
|
50
53
|
type: string;
|
|
@@ -80,6 +83,7 @@ export declare const BannerCardProps: {
|
|
|
80
83
|
};
|
|
81
84
|
alt: {
|
|
82
85
|
type: string;
|
|
86
|
+
contentType: string;
|
|
83
87
|
};
|
|
84
88
|
};
|
|
85
89
|
})[];
|
|
@@ -202,9 +206,11 @@ export declare const BannerBlock: {
|
|
|
202
206
|
properties: {
|
|
203
207
|
title: {
|
|
204
208
|
type: string;
|
|
209
|
+
contentType: string;
|
|
205
210
|
};
|
|
206
211
|
subtitle: {
|
|
207
212
|
type: string;
|
|
213
|
+
contentType: string;
|
|
208
214
|
};
|
|
209
215
|
image: {
|
|
210
216
|
oneOf: ({
|
|
@@ -243,6 +249,7 @@ export declare const BannerBlock: {
|
|
|
243
249
|
properties: {
|
|
244
250
|
text: {
|
|
245
251
|
type: string;
|
|
252
|
+
contentType: string;
|
|
246
253
|
};
|
|
247
254
|
url: {
|
|
248
255
|
type: string;
|
|
@@ -278,6 +285,7 @@ export declare const BannerBlock: {
|
|
|
278
285
|
};
|
|
279
286
|
alt: {
|
|
280
287
|
type: string;
|
|
288
|
+
contentType: string;
|
|
281
289
|
};
|
|
282
290
|
};
|
|
283
291
|
})[];
|
|
@@ -401,9 +409,11 @@ export declare const BannerCard: {
|
|
|
401
409
|
properties: {
|
|
402
410
|
title: {
|
|
403
411
|
type: string;
|
|
412
|
+
contentType: string;
|
|
404
413
|
};
|
|
405
414
|
subtitle: {
|
|
406
415
|
type: string;
|
|
416
|
+
contentType: string;
|
|
407
417
|
};
|
|
408
418
|
image: {
|
|
409
419
|
oneOf: ({
|
|
@@ -442,6 +452,7 @@ export declare const BannerCard: {
|
|
|
442
452
|
properties: {
|
|
443
453
|
text: {
|
|
444
454
|
type: string;
|
|
455
|
+
contentType: string;
|
|
445
456
|
};
|
|
446
457
|
url: {
|
|
447
458
|
type: string;
|
|
@@ -477,6 +488,7 @@ export declare const BannerCard: {
|
|
|
477
488
|
};
|
|
478
489
|
alt: {
|
|
479
490
|
type: string;
|
|
491
|
+
contentType: string;
|
|
480
492
|
};
|
|
481
493
|
};
|
|
482
494
|
})[];
|
|
@@ -4,8 +4,10 @@ export const BannerCardProps = {
|
|
|
4
4
|
required: ['title', 'button'],
|
|
5
5
|
properties: Object.assign(Object.assign(Object.assign({}, BaseProps), AnimatableProps), { title: {
|
|
6
6
|
type: 'string',
|
|
7
|
+
contentType: 'text',
|
|
7
8
|
}, subtitle: {
|
|
8
9
|
type: 'string',
|
|
10
|
+
contentType: 'yfm',
|
|
9
11
|
}, image: withTheme({
|
|
10
12
|
type: 'string',
|
|
11
13
|
}), disableCompress: {
|
|
@@ -2,6 +2,17 @@ export declare const CardLayoutProps: {
|
|
|
2
2
|
additionalProperties: boolean;
|
|
3
3
|
required: string[];
|
|
4
4
|
properties: {
|
|
5
|
+
colSizes: {
|
|
6
|
+
type: string;
|
|
7
|
+
additionalProperties: boolean;
|
|
8
|
+
properties: {};
|
|
9
|
+
};
|
|
10
|
+
children: {
|
|
11
|
+
type: string;
|
|
12
|
+
items: {
|
|
13
|
+
$ref: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
5
16
|
title: {
|
|
6
17
|
oneOf: ({
|
|
7
18
|
type: string;
|
|
@@ -10,6 +21,7 @@ export declare const CardLayoutProps: {
|
|
|
10
21
|
properties: {
|
|
11
22
|
text: {
|
|
12
23
|
type: string;
|
|
24
|
+
contentType: string;
|
|
13
25
|
};
|
|
14
26
|
textSize: {
|
|
15
27
|
type: string;
|
|
@@ -28,17 +40,7 @@ export declare const CardLayoutProps: {
|
|
|
28
40
|
};
|
|
29
41
|
description: {
|
|
30
42
|
type: string;
|
|
31
|
-
|
|
32
|
-
colSizes: {
|
|
33
|
-
type: string;
|
|
34
|
-
additionalProperties: boolean;
|
|
35
|
-
properties: {};
|
|
36
|
-
};
|
|
37
|
-
children: {
|
|
38
|
-
type: string;
|
|
39
|
-
items: {
|
|
40
|
-
$ref: string;
|
|
41
|
-
};
|
|
43
|
+
contentType: string;
|
|
42
44
|
};
|
|
43
45
|
animated: {
|
|
44
46
|
type: string;
|
|
@@ -50,6 +52,7 @@ export declare const CardLayoutProps: {
|
|
|
50
52
|
properties: {
|
|
51
53
|
text: {
|
|
52
54
|
type: string;
|
|
55
|
+
contentType: string;
|
|
53
56
|
};
|
|
54
57
|
url: {
|
|
55
58
|
type: string;
|
|
@@ -72,6 +75,17 @@ export declare const CardLayoutBlock: {
|
|
|
72
75
|
additionalProperties: boolean;
|
|
73
76
|
required: string[];
|
|
74
77
|
properties: {
|
|
78
|
+
colSizes: {
|
|
79
|
+
type: string;
|
|
80
|
+
additionalProperties: boolean;
|
|
81
|
+
properties: {};
|
|
82
|
+
};
|
|
83
|
+
children: {
|
|
84
|
+
type: string;
|
|
85
|
+
items: {
|
|
86
|
+
$ref: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
75
89
|
title: {
|
|
76
90
|
oneOf: ({
|
|
77
91
|
type: string;
|
|
@@ -80,6 +94,7 @@ export declare const CardLayoutBlock: {
|
|
|
80
94
|
properties: {
|
|
81
95
|
text: {
|
|
82
96
|
type: string;
|
|
97
|
+
contentType: string;
|
|
83
98
|
};
|
|
84
99
|
textSize: {
|
|
85
100
|
type: string;
|
|
@@ -98,17 +113,7 @@ export declare const CardLayoutBlock: {
|
|
|
98
113
|
};
|
|
99
114
|
description: {
|
|
100
115
|
type: string;
|
|
101
|
-
|
|
102
|
-
colSizes: {
|
|
103
|
-
type: string;
|
|
104
|
-
additionalProperties: boolean;
|
|
105
|
-
properties: {};
|
|
106
|
-
};
|
|
107
|
-
children: {
|
|
108
|
-
type: string;
|
|
109
|
-
items: {
|
|
110
|
-
$ref: string;
|
|
111
|
-
};
|
|
116
|
+
contentType: string;
|
|
112
117
|
};
|
|
113
118
|
animated: {
|
|
114
119
|
type: string;
|
|
@@ -120,6 +125,7 @@ export declare const CardLayoutBlock: {
|
|
|
120
125
|
properties: {
|
|
121
126
|
text: {
|
|
122
127
|
type: string;
|
|
128
|
+
contentType: string;
|
|
123
129
|
};
|
|
124
130
|
url: {
|
|
125
131
|
type: string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { AnimatableProps, containerSizesObject, ChildrenCardsProps, BlockBaseProps,
|
|
1
|
+
import { AnimatableProps, containerSizesObject, ChildrenCardsProps, BlockBaseProps, BlockHeaderProps, } from '../../schema/validators/common';
|
|
2
2
|
export const CardLayoutProps = {
|
|
3
3
|
additionalProperties: false,
|
|
4
4
|
required: ['title'],
|
|
5
|
-
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), {
|
|
6
|
-
oneOf: [{ type: 'string' }, TitleProps],
|
|
7
|
-
}, description: {
|
|
8
|
-
type: 'string',
|
|
9
|
-
}, colSizes: containerSizesObject, children: ChildrenCardsProps }),
|
|
5
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), BlockHeaderProps), { colSizes: containerSizesObject, children: ChildrenCardsProps }),
|
|
10
6
|
};
|
|
11
7
|
export const CardLayoutBlock = {
|
|
12
8
|
'card-layout-block': CardLayoutProps,
|
|
@@ -5,6 +5,7 @@ export declare const CompaniesBlock: {
|
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
7
|
type: string;
|
|
8
|
+
contentType: string;
|
|
8
9
|
};
|
|
9
10
|
images: {
|
|
10
11
|
oneOf: ({
|
|
@@ -22,6 +23,7 @@ export declare const CompaniesBlock: {
|
|
|
22
23
|
};
|
|
23
24
|
alt: {
|
|
24
25
|
type: string;
|
|
26
|
+
contentType: string;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
} | {
|
|
@@ -5,6 +5,7 @@ export const CompaniesBlock = {
|
|
|
5
5
|
required: ['title', 'images'],
|
|
6
6
|
properties: Object.assign(Object.assign(Object.assign({}, BaseProps), AnimatableProps), { title: {
|
|
7
7
|
type: 'string',
|
|
8
|
+
contentType: 'text',
|
|
8
9
|
}, images: withTheme({
|
|
9
10
|
type: 'object',
|
|
10
11
|
required: ['desktop', 'tablet', 'mobile'],
|
|
@@ -20,6 +21,7 @@ export const CompaniesBlock = {
|
|
|
20
21
|
},
|
|
21
22
|
alt: {
|
|
22
23
|
type: 'string',
|
|
24
|
+
contentType: 'text',
|
|
23
25
|
},
|
|
24
26
|
},
|
|
25
27
|
}) }),
|
|
@@ -18,6 +18,7 @@ export declare const ContentLayoutBlock: {
|
|
|
18
18
|
properties: {
|
|
19
19
|
text: {
|
|
20
20
|
type: string;
|
|
21
|
+
contentType: string;
|
|
21
22
|
};
|
|
22
23
|
textSize: {
|
|
23
24
|
type: string;
|
|
@@ -32,13 +33,16 @@ export declare const ContentLayoutBlock: {
|
|
|
32
33
|
};
|
|
33
34
|
} | {
|
|
34
35
|
type: string;
|
|
36
|
+
contentType: string;
|
|
35
37
|
})[];
|
|
36
38
|
};
|
|
37
39
|
text: {
|
|
38
40
|
type: string;
|
|
41
|
+
contentType: string;
|
|
39
42
|
};
|
|
40
43
|
additionalInfo: {
|
|
41
44
|
type: string;
|
|
45
|
+
contentType: string;
|
|
42
46
|
};
|
|
43
47
|
size: {
|
|
44
48
|
type: string;
|
|
@@ -100,6 +104,7 @@ export declare const ContentLayoutBlock: {
|
|
|
100
104
|
};
|
|
101
105
|
alt: {
|
|
102
106
|
type: string;
|
|
107
|
+
contentType: string;
|
|
103
108
|
};
|
|
104
109
|
disableCompress: {
|
|
105
110
|
type: string;
|
|
@@ -125,6 +130,7 @@ export declare const ContentLayoutBlock: {
|
|
|
125
130
|
properties: {
|
|
126
131
|
text: {
|
|
127
132
|
type: string;
|
|
133
|
+
contentType: string;
|
|
128
134
|
};
|
|
129
135
|
url: {
|
|
130
136
|
type: string;
|
|
@@ -4,9 +4,11 @@ export declare const ExtendedFeaturesItem: {
|
|
|
4
4
|
properties: {
|
|
5
5
|
title: {
|
|
6
6
|
type: string;
|
|
7
|
+
contentType: string;
|
|
7
8
|
};
|
|
8
9
|
text: {
|
|
9
10
|
type: string;
|
|
11
|
+
contentType: string;
|
|
10
12
|
};
|
|
11
13
|
label: {
|
|
12
14
|
type: string;
|
|
@@ -19,6 +21,7 @@ export declare const ExtendedFeaturesItem: {
|
|
|
19
21
|
properties: {
|
|
20
22
|
text: {
|
|
21
23
|
type: string;
|
|
24
|
+
contentType: string;
|
|
22
25
|
};
|
|
23
26
|
url: {
|
|
24
27
|
type: string;
|
|
@@ -52,6 +55,22 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
52
55
|
additionalProperties: boolean;
|
|
53
56
|
required: never[];
|
|
54
57
|
properties: {
|
|
58
|
+
items: {
|
|
59
|
+
type: string;
|
|
60
|
+
items: {
|
|
61
|
+
type: string;
|
|
62
|
+
properties: {
|
|
63
|
+
when: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
colSizes: {
|
|
70
|
+
type: string;
|
|
71
|
+
additionalProperties: boolean;
|
|
72
|
+
properties: {};
|
|
73
|
+
};
|
|
55
74
|
title: {
|
|
56
75
|
oneOf: ({
|
|
57
76
|
type: string;
|
|
@@ -60,6 +79,7 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
60
79
|
properties: {
|
|
61
80
|
text: {
|
|
62
81
|
type: string;
|
|
82
|
+
contentType: string;
|
|
63
83
|
};
|
|
64
84
|
textSize: {
|
|
65
85
|
type: string;
|
|
@@ -78,22 +98,7 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
78
98
|
};
|
|
79
99
|
description: {
|
|
80
100
|
type: string;
|
|
81
|
-
|
|
82
|
-
items: {
|
|
83
|
-
type: string;
|
|
84
|
-
items: {
|
|
85
|
-
type: string;
|
|
86
|
-
properties: {
|
|
87
|
-
when: {
|
|
88
|
-
type: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
colSizes: {
|
|
94
|
-
type: string;
|
|
95
|
-
additionalProperties: boolean;
|
|
96
|
-
properties: {};
|
|
101
|
+
contentType: string;
|
|
97
102
|
};
|
|
98
103
|
animated: {
|
|
99
104
|
type: string;
|
|
@@ -105,6 +110,7 @@ export declare const ExtendedFeaturesBlock: {
|
|
|
105
110
|
properties: {
|
|
106
111
|
text: {
|
|
107
112
|
type: string;
|
|
113
|
+
contentType: string;
|
|
108
114
|
};
|
|
109
115
|
url: {
|
|
110
116
|
type: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimatableProps, containerSizesObject, LinkProps, BlockBaseProps,
|
|
1
|
+
import { AnimatableProps, containerSizesObject, LinkProps, BlockBaseProps, BlockHeaderProps, } from '../../schema/validators/common';
|
|
2
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
export const ExtendedFeaturesItem = {
|
|
4
4
|
additionalProperties: false,
|
|
@@ -6,9 +6,11 @@ export const ExtendedFeaturesItem = {
|
|
|
6
6
|
properties: {
|
|
7
7
|
title: {
|
|
8
8
|
type: 'string',
|
|
9
|
+
contentType: 'text',
|
|
9
10
|
},
|
|
10
11
|
text: {
|
|
11
12
|
type: 'string',
|
|
13
|
+
contentType: 'yfm',
|
|
12
14
|
},
|
|
13
15
|
label: {
|
|
14
16
|
type: 'string',
|
|
@@ -24,10 +26,6 @@ export const ExtendedFeaturesBlock = {
|
|
|
24
26
|
'extended-features-block': {
|
|
25
27
|
additionalProperties: false,
|
|
26
28
|
required: [],
|
|
27
|
-
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), {
|
|
28
|
-
oneOf: [{ type: 'string' }, TitleProps],
|
|
29
|
-
}, description: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
}, items: filteredArray(ExtendedFeaturesItem), colSizes: containerSizesObject }),
|
|
29
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), BlockHeaderProps), { items: filteredArray(ExtendedFeaturesItem), colSizes: containerSizesObject }),
|
|
32
30
|
},
|
|
33
31
|
};
|