@gravity-ui/page-constructor 1.9.0-alpha.0 → 1.9.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/cjs/blocks/Banner/schema.d.ts +12 -0
- package/build/cjs/blocks/Banner/schema.js +2 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +8 -0
- package/build/cjs/blocks/CardLayout/schema.js +2 -1
- 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 +7 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.js +4 -1
- 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 +11 -0
- 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 +2 -0
- package/build/cjs/blocks/Media/schema.d.ts +9 -0
- package/build/cjs/blocks/Media/schema.js +3 -1
- 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 +7 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.js +4 -1
- 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/schema.d.ts +7 -0
- package/build/cjs/blocks/Slider/schema.js +2 -0
- 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 +10 -0
- package/build/cjs/blocks/Tabs/schema.js +2 -0
- package/build/cjs/components/Author/schema.d.ts +3 -0
- package/build/cjs/components/Image/schema.d.ts +2 -0
- package/build/cjs/components/Image/schema.js +2 -0
- package/build/cjs/schema/index.d.ts +2 -0
- package/build/cjs/schema/validators/common.d.ts +17 -0
- package/build/cjs/schema/validators/common.js +11 -0
- 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 +8 -0
- package/build/cjs/sub-blocks/CardWithImage/schema.js +4 -1
- 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/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 +8 -0
- package/build/esm/blocks/CardLayout/schema.js +2 -1
- 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 +7 -0
- package/build/esm/blocks/ExtendedFeatures/schema.js +4 -1
- 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 +11 -0
- 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 +2 -0
- package/build/esm/blocks/Media/schema.d.ts +9 -0
- package/build/esm/blocks/Media/schema.js +3 -1
- 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 +7 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.js +4 -1
- 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/schema.d.ts +7 -0
- package/build/esm/blocks/Slider/schema.js +2 -0
- 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 +10 -0
- package/build/esm/blocks/Tabs/schema.js +2 -0
- package/build/esm/components/Author/schema.d.ts +3 -0
- package/build/esm/components/Image/schema.d.ts +2 -0
- package/build/esm/components/Image/schema.js +2 -0
- package/build/esm/schema/index.d.ts +2 -0
- package/build/esm/schema/validators/common.d.ts +17 -0
- package/build/esm/schema/validators/common.js +11 -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 +8 -0
- package/build/esm/sub-blocks/CardWithImage/schema.js +4 -1
- 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/package.json +1 -1
|
@@ -76,6 +76,7 @@ export const PlayIconProps = {
|
|
|
76
76
|
},
|
|
77
77
|
text: {
|
|
78
78
|
type: 'string',
|
|
79
|
+
content: 'text',
|
|
79
80
|
},
|
|
80
81
|
},
|
|
81
82
|
};
|
|
@@ -159,6 +160,7 @@ export const LinkProps = {
|
|
|
159
160
|
required: ['text', 'url'],
|
|
160
161
|
properties: Object.assign(Object.assign({}, BaseProps), { text: {
|
|
161
162
|
type: 'string',
|
|
163
|
+
content: 'text',
|
|
162
164
|
}, url: {
|
|
163
165
|
type: 'string',
|
|
164
166
|
}, arrow: {
|
|
@@ -184,6 +186,7 @@ export const FileLinkProps = {
|
|
|
184
186
|
},
|
|
185
187
|
text: {
|
|
186
188
|
type: 'string',
|
|
189
|
+
content: 'text',
|
|
187
190
|
},
|
|
188
191
|
type: {
|
|
189
192
|
type: 'string',
|
|
@@ -205,9 +208,11 @@ export const authorItem = {
|
|
|
205
208
|
properties: {
|
|
206
209
|
firstName: {
|
|
207
210
|
type: 'string',
|
|
211
|
+
content: 'text',
|
|
208
212
|
},
|
|
209
213
|
secondName: {
|
|
210
214
|
type: 'string',
|
|
215
|
+
content: 'text',
|
|
211
216
|
},
|
|
212
217
|
avatar: {
|
|
213
218
|
type: 'string',
|
|
@@ -215,12 +220,14 @@ export const authorItem = {
|
|
|
215
220
|
},
|
|
216
221
|
description: {
|
|
217
222
|
type: 'string',
|
|
223
|
+
content: 'yfm',
|
|
218
224
|
},
|
|
219
225
|
},
|
|
220
226
|
};
|
|
221
227
|
export const ButtonProps = {
|
|
222
228
|
text: {
|
|
223
229
|
type: 'string',
|
|
230
|
+
content: 'text',
|
|
224
231
|
},
|
|
225
232
|
url: {
|
|
226
233
|
type: 'string',
|
|
@@ -293,6 +300,7 @@ export const ButtonProps = {
|
|
|
293
300
|
},
|
|
294
301
|
alt: {
|
|
295
302
|
type: 'string',
|
|
303
|
+
content: 'text',
|
|
296
304
|
},
|
|
297
305
|
},
|
|
298
306
|
},
|
|
@@ -332,6 +340,7 @@ export const MenuProps = {
|
|
|
332
340
|
properties: {
|
|
333
341
|
title: {
|
|
334
342
|
type: 'string',
|
|
343
|
+
content: 'text',
|
|
335
344
|
},
|
|
336
345
|
},
|
|
337
346
|
};
|
|
@@ -355,6 +364,7 @@ export const AnchorProps = {
|
|
|
355
364
|
properties: {
|
|
356
365
|
text: {
|
|
357
366
|
type: 'string',
|
|
367
|
+
content: 'text',
|
|
358
368
|
},
|
|
359
369
|
url: {
|
|
360
370
|
type: 'string',
|
|
@@ -374,6 +384,7 @@ export const TitleProps = {
|
|
|
374
384
|
properties: {
|
|
375
385
|
text: {
|
|
376
386
|
type: 'string',
|
|
387
|
+
content: 'text',
|
|
377
388
|
},
|
|
378
389
|
textSize: {
|
|
379
390
|
type: 'string',
|
|
@@ -18,6 +18,7 @@ export declare const BackgroundCard: {
|
|
|
18
18
|
};
|
|
19
19
|
alt: {
|
|
20
20
|
type: string;
|
|
21
|
+
content: string;
|
|
21
22
|
};
|
|
22
23
|
disableCompress: {
|
|
23
24
|
type: string;
|
|
@@ -45,6 +46,7 @@ export declare const BackgroundCard: {
|
|
|
45
46
|
properties: {
|
|
46
47
|
text: {
|
|
47
48
|
type: string;
|
|
49
|
+
content: string;
|
|
48
50
|
};
|
|
49
51
|
textSize: {
|
|
50
52
|
type: string;
|
|
@@ -59,10 +61,12 @@ export declare const BackgroundCard: {
|
|
|
59
61
|
};
|
|
60
62
|
} | {
|
|
61
63
|
type: string;
|
|
64
|
+
content: string;
|
|
62
65
|
})[];
|
|
63
66
|
};
|
|
64
67
|
text: {
|
|
65
68
|
type: string;
|
|
69
|
+
content: string;
|
|
66
70
|
};
|
|
67
71
|
theme: {
|
|
68
72
|
type: string;
|
|
@@ -70,6 +74,7 @@ export declare const BackgroundCard: {
|
|
|
70
74
|
};
|
|
71
75
|
additionalInfo: {
|
|
72
76
|
type: string;
|
|
77
|
+
content: string;
|
|
73
78
|
};
|
|
74
79
|
links: {
|
|
75
80
|
type: string;
|
|
@@ -27,6 +27,7 @@ export declare const BasicCard: {
|
|
|
27
27
|
properties: {
|
|
28
28
|
text: {
|
|
29
29
|
type: string;
|
|
30
|
+
content: string;
|
|
30
31
|
};
|
|
31
32
|
textSize: {
|
|
32
33
|
type: string;
|
|
@@ -41,13 +42,16 @@ export declare const BasicCard: {
|
|
|
41
42
|
};
|
|
42
43
|
} | {
|
|
43
44
|
type: string;
|
|
45
|
+
content: string;
|
|
44
46
|
})[];
|
|
45
47
|
};
|
|
46
48
|
text: {
|
|
47
49
|
type: string;
|
|
50
|
+
content: string;
|
|
48
51
|
};
|
|
49
52
|
additionalInfo: {
|
|
50
53
|
type: string;
|
|
54
|
+
content: string;
|
|
51
55
|
};
|
|
52
56
|
links: {
|
|
53
57
|
type: string;
|
|
@@ -13,6 +13,7 @@ export declare const CardWithImageItem: {
|
|
|
13
13
|
properties: {
|
|
14
14
|
text: {
|
|
15
15
|
type: string;
|
|
16
|
+
content: string;
|
|
16
17
|
};
|
|
17
18
|
textSize: {
|
|
18
19
|
type: string;
|
|
@@ -27,13 +28,16 @@ export declare const CardWithImageItem: {
|
|
|
27
28
|
};
|
|
28
29
|
} | {
|
|
29
30
|
type: string;
|
|
31
|
+
content: string;
|
|
30
32
|
})[];
|
|
31
33
|
};
|
|
32
34
|
description: {
|
|
33
35
|
type: string;
|
|
36
|
+
content: string;
|
|
34
37
|
};
|
|
35
38
|
additionalInfo: {
|
|
36
39
|
type: string;
|
|
40
|
+
content: string;
|
|
37
41
|
};
|
|
38
42
|
disableCompress: {
|
|
39
43
|
type: string;
|
|
@@ -86,6 +90,7 @@ export declare const CardWithImage: {
|
|
|
86
90
|
properties: {
|
|
87
91
|
text: {
|
|
88
92
|
type: string;
|
|
93
|
+
content: string;
|
|
89
94
|
};
|
|
90
95
|
textSize: {
|
|
91
96
|
type: string;
|
|
@@ -100,13 +105,16 @@ export declare const CardWithImage: {
|
|
|
100
105
|
};
|
|
101
106
|
} | {
|
|
102
107
|
type: string;
|
|
108
|
+
content: string;
|
|
103
109
|
})[];
|
|
104
110
|
};
|
|
105
111
|
description: {
|
|
106
112
|
type: string;
|
|
113
|
+
content: string;
|
|
107
114
|
};
|
|
108
115
|
additionalInfo: {
|
|
109
116
|
type: string;
|
|
117
|
+
content: string;
|
|
110
118
|
};
|
|
111
119
|
disableCompress: {
|
|
112
120
|
type: string;
|
|
@@ -6,6 +6,7 @@ const CardWithImageLinks = {
|
|
|
6
6
|
required: ['title', 'link'],
|
|
7
7
|
properties: Object.assign(Object.assign({}, BaseProps), { title: {
|
|
8
8
|
type: 'string',
|
|
9
|
+
content: 'text',
|
|
9
10
|
}, link: {
|
|
10
11
|
type: 'string',
|
|
11
12
|
}, arrow: {
|
|
@@ -24,11 +25,13 @@ export const CardWithImageItem = {
|
|
|
24
25
|
properties: Object.assign(Object.assign({}, BaseProps), { image: {
|
|
25
26
|
type: 'string',
|
|
26
27
|
}, title: {
|
|
27
|
-
oneOf: [{ type: 'string' }, TitleProps],
|
|
28
|
+
oneOf: [{ type: 'string', content: 'text' }, TitleProps],
|
|
28
29
|
}, description: {
|
|
29
30
|
type: 'string',
|
|
31
|
+
content: 'yfm',
|
|
30
32
|
}, additionalInfo: {
|
|
31
33
|
type: 'string',
|
|
34
|
+
content: 'yfm',
|
|
32
35
|
}, disableCompress: {
|
|
33
36
|
type: 'boolean',
|
|
34
37
|
}, border: {
|
|
@@ -7,6 +7,7 @@ export declare const ContentBase: {
|
|
|
7
7
|
properties: {
|
|
8
8
|
text: {
|
|
9
9
|
type: string;
|
|
10
|
+
content: string;
|
|
10
11
|
};
|
|
11
12
|
textSize: {
|
|
12
13
|
type: string;
|
|
@@ -21,13 +22,16 @@ export declare const ContentBase: {
|
|
|
21
22
|
};
|
|
22
23
|
} | {
|
|
23
24
|
type: string;
|
|
25
|
+
content: string;
|
|
24
26
|
})[];
|
|
25
27
|
};
|
|
26
28
|
text: {
|
|
27
29
|
type: string;
|
|
30
|
+
content: string;
|
|
28
31
|
};
|
|
29
32
|
additionalInfo: {
|
|
30
33
|
type: string;
|
|
34
|
+
content: string;
|
|
31
35
|
};
|
|
32
36
|
size: {
|
|
33
37
|
type: string;
|
|
@@ -76,6 +80,7 @@ export declare const ContentBlock: {
|
|
|
76
80
|
properties: {
|
|
77
81
|
text: {
|
|
78
82
|
type: string;
|
|
83
|
+
content: string;
|
|
79
84
|
};
|
|
80
85
|
textSize: {
|
|
81
86
|
type: string;
|
|
@@ -90,13 +95,16 @@ export declare const ContentBlock: {
|
|
|
90
95
|
};
|
|
91
96
|
} | {
|
|
92
97
|
type: string;
|
|
98
|
+
content: string;
|
|
93
99
|
})[];
|
|
94
100
|
};
|
|
95
101
|
text: {
|
|
96
102
|
type: string;
|
|
103
|
+
content: string;
|
|
97
104
|
};
|
|
98
105
|
additionalInfo: {
|
|
99
106
|
type: string;
|
|
107
|
+
content: string;
|
|
100
108
|
};
|
|
101
109
|
size: {
|
|
102
110
|
type: string;
|
|
@@ -2,13 +2,15 @@ import { containerSizesArray, contentSizes, contentThemes, LinkProps, sizeNumber
|
|
|
2
2
|
import { filteredArray } from '../../schema/validators/utils';
|
|
3
3
|
export const ContentBase = {
|
|
4
4
|
title: {
|
|
5
|
-
oneOf: [{ type: 'string' }, TitleProps],
|
|
5
|
+
oneOf: [{ type: 'string', content: 'text' }, TitleProps],
|
|
6
6
|
},
|
|
7
7
|
text: {
|
|
8
8
|
type: 'string',
|
|
9
|
+
content: 'yfm',
|
|
9
10
|
},
|
|
10
11
|
additionalInfo: {
|
|
11
12
|
type: 'string',
|
|
13
|
+
content: 'yfm',
|
|
12
14
|
},
|
|
13
15
|
size: {
|
|
14
16
|
type: 'string',
|
|
@@ -19,6 +19,7 @@ const PriceDetailedFoldableDetailsProps = {
|
|
|
19
19
|
properties: {
|
|
20
20
|
title: {
|
|
21
21
|
type: 'string',
|
|
22
|
+
content: 'text',
|
|
22
23
|
},
|
|
23
24
|
size: {
|
|
24
25
|
type: 'string',
|
|
@@ -72,6 +73,7 @@ const PriceDescriptionLabelProps = {
|
|
|
72
73
|
},
|
|
73
74
|
text: {
|
|
74
75
|
type: 'string',
|
|
76
|
+
content: 'text',
|
|
75
77
|
},
|
|
76
78
|
size: {
|
|
77
79
|
type: 'string',
|
|
@@ -82,12 +84,15 @@ const PriceDescriptionLabelProps = {
|
|
|
82
84
|
const PriceDescriptionProps = {
|
|
83
85
|
title: {
|
|
84
86
|
type: 'string',
|
|
87
|
+
content: 'text',
|
|
85
88
|
},
|
|
86
89
|
description: {
|
|
87
90
|
type: 'string',
|
|
91
|
+
content: 'yfm',
|
|
88
92
|
},
|
|
89
93
|
detailedTitle: {
|
|
90
94
|
type: 'string',
|
|
95
|
+
content: 'text',
|
|
91
96
|
},
|
|
92
97
|
label: PriceDescriptionLabelProps,
|
|
93
98
|
};
|
|
@@ -98,9 +103,11 @@ const PriceDetailsSettingsProps = {
|
|
|
98
103
|
properties: {
|
|
99
104
|
title: {
|
|
100
105
|
type: 'string',
|
|
106
|
+
content: 'text',
|
|
101
107
|
},
|
|
102
108
|
description: {
|
|
103
109
|
type: 'string',
|
|
110
|
+
content: 'yfm',
|
|
104
111
|
},
|
|
105
112
|
},
|
|
106
113
|
};
|
|
@@ -111,6 +118,7 @@ const PriceDetailsListProps = {
|
|
|
111
118
|
properties: {
|
|
112
119
|
text: {
|
|
113
120
|
type: 'string',
|
|
121
|
+
content: 'yfm',
|
|
114
122
|
},
|
|
115
123
|
},
|
|
116
124
|
};
|
|
@@ -5,6 +5,7 @@ export declare const Quote: {
|
|
|
5
5
|
properties: {
|
|
6
6
|
text: {
|
|
7
7
|
type: string;
|
|
8
|
+
content: 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
|
+
content: string;
|
|
50
52
|
};
|
|
51
53
|
secondName: {
|
|
52
54
|
type: string;
|
|
55
|
+
content: 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
|
+
content: string;
|
|
60
64
|
};
|
|
61
65
|
};
|
|
62
66
|
};
|