@gravity-ui/blog-constructor 11.1.0 → 11.2.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/build/cjs/blocks/Author/schema.d.ts +14 -3
- package/build/cjs/blocks/Author/schema.js +1 -1
- package/build/cjs/blocks/Author/schema.js.map +1 -1
- package/build/cjs/blocks/Banner/Banner.js +5 -2
- package/build/cjs/blocks/Banner/Banner.js.map +1 -1
- package/build/cjs/blocks/Banner/schema.d.ts +89 -13
- package/build/cjs/blocks/CTA/schema.d.ts +89 -13
- package/build/cjs/blocks/CTA/schema.js +1 -1
- package/build/cjs/blocks/CTA/schema.js.map +1 -1
- package/build/cjs/blocks/ColoredText/schema.d.ts +90 -15
- package/build/cjs/blocks/CompactMedia/schema.d.ts +13 -6
- package/build/cjs/blocks/Feed/schema.d.ts +11 -2
- package/build/cjs/blocks/Form/schema.d.ts +69 -38
- package/build/cjs/blocks/Form/schema.js +5 -22
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +164 -73
- package/build/cjs/blocks/Header/schema.js +3 -1
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/Layout/schema.d.ts +11 -2
- package/build/cjs/blocks/Media/schema.d.ts +13 -6
- package/build/cjs/blocks/Meta/schema.d.ts +11 -2
- package/build/cjs/blocks/SideCardList/schema.d.ts +69 -6
- package/build/cjs/blocks/SideCardList/schema.js +16 -19
- package/build/cjs/blocks/SideCardList/schema.js.map +1 -1
- package/build/cjs/blocks/Suggest/schema.d.ts +11 -2
- package/build/cjs/blocks/Take/schema.d.ts +25 -2
- package/build/cjs/blocks/Take/schema.js +2 -2
- package/build/cjs/blocks/Take/schema.js.map +1 -1
- package/build/cjs/blocks/YFM/schema.d.ts +11 -2
- package/build/cjs/constructor/blocksMap.d.ts +9 -9
- package/build/cjs/constructor/blocksMap.js +9 -9
- package/build/cjs/constructor/blocksMap.js.map +1 -1
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +9 -1
- package/build/cjs/hooks/useExtendedComponentMap.d.ts +9 -9
- package/build/cjs/schema/blocks.d.ts +4 -2
- package/build/cjs/schema/blocks.js +4 -2
- package/build/cjs/schema/blocks.js.map +1 -1
- package/build/cjs/schema/common.d.ts +4 -0
- package/build/cjs/schema/common.js +8 -10
- package/build/cjs/schema/common.js.map +1 -1
- package/build/cjs/schema/index.d.ts +1009 -284
- package/build/cjs/schema/index.js +5 -3
- package/build/cjs/schema/index.js.map +1 -1
- package/build/cjs/utils/common.d.ts +1 -2
- package/build/esm/blocks/Author/schema.d.ts +14 -3
- package/build/esm/blocks/Author/schema.js +1 -1
- package/build/esm/blocks/Author/schema.js.map +1 -1
- package/build/esm/blocks/Banner/Banner.js +5 -2
- package/build/esm/blocks/Banner/Banner.js.map +1 -1
- package/build/esm/blocks/Banner/schema.d.ts +89 -13
- package/build/esm/blocks/CTA/schema.d.ts +89 -13
- package/build/esm/blocks/CTA/schema.js +1 -1
- package/build/esm/blocks/CTA/schema.js.map +1 -1
- package/build/esm/blocks/ColoredText/schema.d.ts +90 -15
- package/build/esm/blocks/CompactMedia/schema.d.ts +13 -6
- package/build/esm/blocks/Feed/schema.d.ts +11 -2
- package/build/esm/blocks/Form/schema.d.ts +69 -38
- package/build/esm/blocks/Form/schema.js +4 -21
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +164 -73
- package/build/esm/blocks/Header/schema.js +3 -1
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/Layout/schema.d.ts +11 -2
- package/build/esm/blocks/Media/schema.d.ts +13 -6
- package/build/esm/blocks/Meta/schema.d.ts +11 -2
- package/build/esm/blocks/SideCardList/schema.d.ts +69 -6
- package/build/esm/blocks/SideCardList/schema.js +16 -19
- package/build/esm/blocks/SideCardList/schema.js.map +1 -1
- package/build/esm/blocks/Suggest/schema.d.ts +11 -2
- package/build/esm/blocks/Take/schema.d.ts +25 -2
- package/build/esm/blocks/Take/schema.js +3 -3
- package/build/esm/blocks/Take/schema.js.map +1 -1
- package/build/esm/blocks/YFM/schema.d.ts +11 -2
- package/build/esm/constructor/blocksMap.d.ts +9 -9
- package/build/esm/constructor/blocksMap.js +9 -9
- package/build/esm/constructor/blocksMap.js.map +1 -1
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +9 -1
- package/build/esm/hooks/useExtendedComponentMap.d.ts +9 -9
- package/build/esm/schema/blocks.d.ts +4 -2
- package/build/esm/schema/blocks.js +4 -2
- package/build/esm/schema/blocks.js.map +1 -1
- package/build/esm/schema/common.d.ts +4 -0
- package/build/esm/schema/common.js +7 -9
- package/build/esm/schema/common.js.map +1 -1
- package/build/esm/schema/index.d.ts +1009 -284
- package/build/esm/schema/index.js +5 -3
- package/build/esm/schema/index.js.map +1 -1
- package/build/esm/utils/common.d.ts +1 -2
- package/package.json +3 -3
- package/styles/storybook/common.scss +6 -0
- package/styles/styles.css +9 -1
- package/styles/yfm.css +9 -1
|
@@ -1,59 +1,81 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
"blog-
|
|
1
|
+
export declare const Form: {
|
|
2
|
+
"blog-form-block": {
|
|
3
3
|
type: string;
|
|
4
4
|
additionalProperties: boolean;
|
|
5
5
|
properties: {
|
|
6
6
|
formData: {
|
|
7
7
|
oneOf: ({
|
|
8
8
|
type: string;
|
|
9
|
-
|
|
9
|
+
additionalProperties: boolean;
|
|
10
10
|
properties: {
|
|
11
11
|
yandex: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
oneOf: (({
|
|
13
|
+
type: string;
|
|
14
|
+
required: string[];
|
|
15
|
+
properties: {
|
|
16
|
+
id: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
containerId: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
type: {};
|
|
23
|
+
when: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
24
26
|
};
|
|
25
|
-
}
|
|
27
|
+
} & {
|
|
28
|
+
optionName: string;
|
|
29
|
+
}) | {
|
|
30
|
+
type: string;
|
|
31
|
+
additionalProperties: boolean;
|
|
32
|
+
required: import("@gravity-ui/page-constructor").Theme[];
|
|
33
|
+
properties: {};
|
|
34
|
+
optionName: string;
|
|
35
|
+
})[];
|
|
26
36
|
};
|
|
27
37
|
hubspot?: undefined;
|
|
28
38
|
};
|
|
39
|
+
optionName: string;
|
|
29
40
|
} | {
|
|
30
41
|
type: string;
|
|
31
|
-
|
|
42
|
+
additionalProperties: boolean;
|
|
32
43
|
properties: {
|
|
33
44
|
hubspot: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
oneOf: (({
|
|
46
|
+
type: string;
|
|
47
|
+
required: string[];
|
|
48
|
+
properties: {
|
|
49
|
+
region: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
portalId: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
formId: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
formInstanceId: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
type: {};
|
|
62
|
+
when: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
52
65
|
};
|
|
53
|
-
}
|
|
66
|
+
} & {
|
|
67
|
+
optionName: string;
|
|
68
|
+
}) | {
|
|
69
|
+
type: string;
|
|
70
|
+
additionalProperties: boolean;
|
|
71
|
+
required: import("@gravity-ui/page-constructor").Theme[];
|
|
72
|
+
properties: {};
|
|
73
|
+
optionName: string;
|
|
74
|
+
})[];
|
|
54
75
|
};
|
|
55
76
|
yandex?: undefined;
|
|
56
77
|
};
|
|
78
|
+
optionName: string;
|
|
57
79
|
})[];
|
|
58
80
|
};
|
|
59
81
|
border: {
|
|
@@ -96,8 +118,17 @@ export declare const Media: {
|
|
|
96
118
|
};
|
|
97
119
|
};
|
|
98
120
|
visible: {
|
|
99
|
-
|
|
100
|
-
|
|
121
|
+
oneOf: ({
|
|
122
|
+
type: string;
|
|
123
|
+
enum: string[];
|
|
124
|
+
additionalProperties?: undefined;
|
|
125
|
+
properties?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: string;
|
|
128
|
+
additionalProperties: boolean;
|
|
129
|
+
properties: {};
|
|
130
|
+
enum?: undefined;
|
|
131
|
+
})[];
|
|
101
132
|
};
|
|
102
133
|
resetPaddings: {
|
|
103
134
|
type: string;
|
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
import { validators } from '@gravity-ui/page-constructor';
|
|
2
2
|
import { BlockType } from "../../models/common.js";
|
|
3
3
|
import { BlogBlockBase } from "../../schema/common.js";
|
|
4
|
-
const { common: { BlockBaseProps },
|
|
5
|
-
export const
|
|
6
|
-
[BlockType.
|
|
4
|
+
const { common: { BlockBaseProps }, blocks: { FormBlock }, } = validators;
|
|
5
|
+
export const Form = {
|
|
6
|
+
[BlockType.Form]: {
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { formData: {
|
|
10
|
-
oneOf: [
|
|
11
|
-
{
|
|
12
|
-
type: 'object',
|
|
13
|
-
optionName: 'yandex',
|
|
14
|
-
properties: {
|
|
15
|
-
yandex: YandexFormProps,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
type: 'object',
|
|
20
|
-
optionName: 'hubspot',
|
|
21
|
-
properties: {
|
|
22
|
-
hubspot: HubspotFormProps,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
}, border: {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { formData: FormBlock['form-block'].properties.formData, border: {
|
|
27
10
|
type: 'string',
|
|
28
11
|
enum: ['shadow', 'line', 'none'],
|
|
29
12
|
} }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Form/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,cAAc,EAAC,EACxB,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Form/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,cAAc,EAAC,EACxB,MAAM,EAAE,EAAC,SAAS,EAAC,GACtB,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACd,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,gDACH,cAAc,GACd,aAAa,KAChB,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,QAAQ,EACrD,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;aACnC,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import {validators} from '@gravity-ui/page-constructor';\n\nimport {BlockType} from '../../models/common';\nimport {BlogBlockBase} from '../../schema/common';\n\nconst {\n common: {BlockBaseProps},\n blocks: {FormBlock},\n} = validators;\n\nexport const Form = {\n [BlockType.Form]: {\n type: 'object',\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n formData: FormBlock['form-block'].properties.formData,\n border: {\n type: 'string',\n enum: ['shadow', 'line', 'none'],\n },\n },\n },\n};\n"]}
|
|
@@ -3,6 +3,9 @@ export declare const Header: {
|
|
|
3
3
|
type: string;
|
|
4
4
|
additionalProperties: boolean;
|
|
5
5
|
properties: {
|
|
6
|
+
imageInGrid: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
6
9
|
title: {
|
|
7
10
|
type: string;
|
|
8
11
|
contentType: string;
|
|
@@ -50,9 +53,9 @@ export declare const Header: {
|
|
|
50
53
|
};
|
|
51
54
|
};
|
|
52
55
|
} | {
|
|
56
|
+
optionName: string;
|
|
53
57
|
type: string;
|
|
54
58
|
pattern: string;
|
|
55
|
-
optionName: string;
|
|
56
59
|
items?: undefined;
|
|
57
60
|
} | {
|
|
58
61
|
type: string;
|
|
@@ -65,7 +68,6 @@ export declare const Header: {
|
|
|
65
68
|
};
|
|
66
69
|
};
|
|
67
70
|
optionName: string;
|
|
68
|
-
pattern?: undefined;
|
|
69
71
|
})[];
|
|
70
72
|
} & {
|
|
71
73
|
optionName: string;
|
|
@@ -178,33 +180,23 @@ export declare const Header: {
|
|
|
178
180
|
})[];
|
|
179
181
|
};
|
|
180
182
|
videoIframe: {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
type: string;
|
|
188
|
-
};
|
|
189
|
-
autoplay: {
|
|
190
|
-
type: string;
|
|
191
|
-
};
|
|
192
|
-
previewImg: {
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
195
|
-
height: {
|
|
196
|
-
type: string;
|
|
197
|
-
};
|
|
183
|
+
type: string;
|
|
184
|
+
additionalProperties: boolean;
|
|
185
|
+
required: string[];
|
|
186
|
+
properties: {
|
|
187
|
+
src: {
|
|
188
|
+
type: string;
|
|
198
189
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
190
|
+
autoplay: {
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
193
|
+
previewImg: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
height: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
208
200
|
};
|
|
209
201
|
mediaView: {
|
|
210
202
|
type: string;
|
|
@@ -237,77 +229,167 @@ export declare const Header: {
|
|
|
237
229
|
additionalProperties: boolean;
|
|
238
230
|
required: never[];
|
|
239
231
|
properties: {
|
|
240
|
-
fullWidth: {
|
|
241
|
-
type: string;
|
|
242
|
-
};
|
|
243
|
-
fullWidthMedia: {
|
|
244
|
-
type: string;
|
|
245
|
-
};
|
|
246
|
-
color: {
|
|
247
|
-
type: string;
|
|
248
|
-
};
|
|
249
232
|
image: {
|
|
250
233
|
oneOf: ({
|
|
251
234
|
optionName: string;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
235
|
+
type: string;
|
|
236
|
+
additionalProperties: boolean;
|
|
237
|
+
properties: {
|
|
238
|
+
src: {
|
|
239
|
+
type: string;
|
|
240
|
+
pattern: string;
|
|
258
241
|
};
|
|
259
|
-
|
|
260
|
-
type: string;
|
|
261
|
-
pattern: string;
|
|
262
|
-
optionName: string;
|
|
263
|
-
items?: undefined;
|
|
264
|
-
} | {
|
|
265
|
-
type: string;
|
|
266
|
-
items: {
|
|
242
|
+
style: {
|
|
267
243
|
type: string;
|
|
244
|
+
additionalProperties: boolean;
|
|
245
|
+
required: never[];
|
|
268
246
|
properties: {
|
|
269
|
-
|
|
247
|
+
backgroundColor: {
|
|
248
|
+
type: string;
|
|
249
|
+
};
|
|
250
|
+
height: {
|
|
251
|
+
type: string[];
|
|
252
|
+
};
|
|
253
|
+
width: {
|
|
254
|
+
type: string[];
|
|
255
|
+
};
|
|
256
|
+
color: {
|
|
270
257
|
type: string;
|
|
271
258
|
};
|
|
272
259
|
};
|
|
273
260
|
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
261
|
+
alt: {
|
|
262
|
+
type: string;
|
|
263
|
+
contentType: string;
|
|
264
|
+
};
|
|
265
|
+
disableCompress: {
|
|
266
|
+
type: string;
|
|
267
|
+
};
|
|
268
|
+
loading: {
|
|
269
|
+
type: string;
|
|
270
|
+
enum: string[];
|
|
271
|
+
};
|
|
272
|
+
fetchPriority: {
|
|
273
|
+
type: string;
|
|
274
|
+
enum: string[];
|
|
275
|
+
};
|
|
276
|
+
hide: {
|
|
277
|
+
oneOf: ({
|
|
278
|
+
type: string;
|
|
279
|
+
properties?: undefined;
|
|
280
|
+
} | {
|
|
281
|
+
type: string;
|
|
282
|
+
properties: {
|
|
283
|
+
mobile: {
|
|
284
|
+
type: string;
|
|
285
|
+
};
|
|
286
|
+
tablet: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
desktop: {
|
|
290
|
+
type: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
})[];
|
|
294
|
+
};
|
|
295
|
+
};
|
|
279
296
|
} | {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
oneOf: ({
|
|
297
|
+
properties: {
|
|
298
|
+
style: {
|
|
283
299
|
type: string;
|
|
300
|
+
additionalProperties: boolean;
|
|
301
|
+
required: never[];
|
|
284
302
|
properties: {
|
|
285
|
-
|
|
303
|
+
backgroundColor: {
|
|
304
|
+
type: string;
|
|
305
|
+
};
|
|
306
|
+
height: {
|
|
307
|
+
type: string[];
|
|
308
|
+
};
|
|
309
|
+
width: {
|
|
310
|
+
type: string[];
|
|
311
|
+
};
|
|
312
|
+
color: {
|
|
286
313
|
type: string;
|
|
287
314
|
};
|
|
288
315
|
};
|
|
289
|
-
}
|
|
316
|
+
};
|
|
317
|
+
desktop: {
|
|
290
318
|
type: string;
|
|
291
319
|
pattern: string;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
320
|
+
};
|
|
321
|
+
tablet: {
|
|
322
|
+
type: string;
|
|
323
|
+
pattern: string;
|
|
324
|
+
};
|
|
325
|
+
mobile: {
|
|
326
|
+
type: string;
|
|
327
|
+
pattern: string;
|
|
328
|
+
};
|
|
329
|
+
alt: {
|
|
330
|
+
type: string;
|
|
331
|
+
contentType: string;
|
|
332
|
+
};
|
|
333
|
+
disableCompress: {
|
|
334
|
+
type: string;
|
|
335
|
+
};
|
|
336
|
+
loading: {
|
|
337
|
+
type: string;
|
|
338
|
+
enum: string[];
|
|
339
|
+
};
|
|
340
|
+
fetchPriority: {
|
|
295
341
|
type: string;
|
|
296
|
-
|
|
342
|
+
enum: string[];
|
|
343
|
+
};
|
|
344
|
+
hide: {
|
|
345
|
+
oneOf: ({
|
|
346
|
+
type: string;
|
|
347
|
+
properties?: undefined;
|
|
348
|
+
} | {
|
|
297
349
|
type: string;
|
|
298
350
|
properties: {
|
|
299
|
-
|
|
351
|
+
mobile: {
|
|
352
|
+
type: string;
|
|
353
|
+
};
|
|
354
|
+
tablet: {
|
|
355
|
+
type: string;
|
|
356
|
+
};
|
|
357
|
+
desktop: {
|
|
300
358
|
type: string;
|
|
301
359
|
};
|
|
302
360
|
};
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
pattern?: undefined;
|
|
306
|
-
})[];
|
|
361
|
+
})[];
|
|
362
|
+
};
|
|
307
363
|
};
|
|
308
364
|
optionName: string;
|
|
365
|
+
type: string;
|
|
366
|
+
additionalProperties: boolean;
|
|
367
|
+
required: import("@gravity-ui/page-constructor").Device[];
|
|
368
|
+
anyOf: {
|
|
369
|
+
required: import("@gravity-ui/page-constructor").Device[];
|
|
370
|
+
}[];
|
|
371
|
+
} | {
|
|
372
|
+
type: string;
|
|
373
|
+
pattern: string;
|
|
374
|
+
optionName: string;
|
|
309
375
|
})[];
|
|
310
376
|
};
|
|
377
|
+
url: {
|
|
378
|
+
type: string;
|
|
379
|
+
pattern: string;
|
|
380
|
+
};
|
|
381
|
+
disableCompress: {
|
|
382
|
+
type: string;
|
|
383
|
+
};
|
|
384
|
+
fullWidth: {
|
|
385
|
+
type: string;
|
|
386
|
+
};
|
|
387
|
+
fullWidthMedia: {
|
|
388
|
+
type: string;
|
|
389
|
+
};
|
|
390
|
+
color: {
|
|
391
|
+
type: string;
|
|
392
|
+
};
|
|
311
393
|
disableImageSliderForArrayInput: {
|
|
312
394
|
type: string;
|
|
313
395
|
};
|
|
@@ -634,8 +716,17 @@ export declare const Header: {
|
|
|
634
716
|
};
|
|
635
717
|
};
|
|
636
718
|
visible: {
|
|
637
|
-
|
|
638
|
-
|
|
719
|
+
oneOf: ({
|
|
720
|
+
type: string;
|
|
721
|
+
enum: string[];
|
|
722
|
+
additionalProperties?: undefined;
|
|
723
|
+
properties?: undefined;
|
|
724
|
+
} | {
|
|
725
|
+
type: string;
|
|
726
|
+
additionalProperties: boolean;
|
|
727
|
+
properties: {};
|
|
728
|
+
enum?: undefined;
|
|
729
|
+
})[];
|
|
639
730
|
};
|
|
640
731
|
resetPaddings: {
|
|
641
732
|
type: string;
|
|
@@ -6,7 +6,9 @@ export const Header = {
|
|
|
6
6
|
[BlockType.Header]: {
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), HeaderProperties),
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), HeaderProperties), { imageInGrid: {
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
} }),
|
|
10
12
|
},
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,gBAAgB,EAAC,EAC1B,MAAM,EAAE,EAAC,cAAc,EAAC,GAC3B,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;QAChB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,SAAS,EAAC,+BAA4B;AAC9C,OAAO,EAAC,aAAa,EAAC,+BAA4B;AAElD,MAAM,EACF,MAAM,EAAE,EAAC,gBAAgB,EAAC,EAC1B,MAAM,EAAE,EAAC,cAAc,EAAC,GAC3B,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;QAChB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,8DACH,cAAc,GACd,aAAa,GACb,gBAAgB,KACnB,WAAW,EAAE;gBACT,IAAI,EAAE,SAAS;aAClB,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import {validators} from '@gravity-ui/page-constructor';\n\nimport {BlockType} from '../../models/common';\nimport {BlogBlockBase} from '../../schema/common';\n\nconst {\n blocks: {HeaderProperties},\n common: {BlockBaseProps},\n} = validators;\n\nexport const Header = {\n [BlockType.Header]: {\n type: 'object',\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n ...HeaderProperties,\n imageInGrid: {\n type: 'boolean',\n },\n },\n },\n};\n"]}
|
|
@@ -50,8 +50,17 @@ export declare const Layout: {
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
visible: {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
oneOf: ({
|
|
54
|
+
type: string;
|
|
55
|
+
enum: string[];
|
|
56
|
+
additionalProperties?: undefined;
|
|
57
|
+
properties?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
type: string;
|
|
60
|
+
additionalProperties: boolean;
|
|
61
|
+
properties: {};
|
|
62
|
+
enum?: undefined;
|
|
63
|
+
})[];
|
|
55
64
|
};
|
|
56
65
|
resetPaddings: {
|
|
57
66
|
type: string;
|
|
@@ -21,9 +21,9 @@ export declare const Media: {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
} | {
|
|
24
|
+
optionName: string;
|
|
24
25
|
type: string;
|
|
25
26
|
pattern: string;
|
|
26
|
-
optionName: string;
|
|
27
27
|
items?: undefined;
|
|
28
28
|
} | {
|
|
29
29
|
type: string;
|
|
@@ -36,7 +36,6 @@ export declare const Media: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
optionName: string;
|
|
39
|
-
pattern?: undefined;
|
|
40
39
|
})[];
|
|
41
40
|
type?: undefined;
|
|
42
41
|
items?: undefined;
|
|
@@ -51,9 +50,9 @@ export declare const Media: {
|
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
52
|
} | {
|
|
53
|
+
optionName: string;
|
|
54
54
|
type: string;
|
|
55
55
|
pattern: string;
|
|
56
|
-
optionName: string;
|
|
57
56
|
items?: undefined;
|
|
58
57
|
} | {
|
|
59
58
|
type: string;
|
|
@@ -66,7 +65,6 @@ export declare const Media: {
|
|
|
66
65
|
};
|
|
67
66
|
};
|
|
68
67
|
optionName: string;
|
|
69
|
-
pattern?: undefined;
|
|
70
68
|
})[];
|
|
71
69
|
};
|
|
72
70
|
optionName: string;
|
|
@@ -349,8 +347,17 @@ export declare const Media: {
|
|
|
349
347
|
};
|
|
350
348
|
};
|
|
351
349
|
visible: {
|
|
352
|
-
|
|
353
|
-
|
|
350
|
+
oneOf: ({
|
|
351
|
+
type: string;
|
|
352
|
+
enum: string[];
|
|
353
|
+
additionalProperties?: undefined;
|
|
354
|
+
properties?: undefined;
|
|
355
|
+
} | {
|
|
356
|
+
type: string;
|
|
357
|
+
additionalProperties: boolean;
|
|
358
|
+
properties: {};
|
|
359
|
+
enum?: undefined;
|
|
360
|
+
})[];
|
|
354
361
|
};
|
|
355
362
|
resetPaddings: {
|
|
356
363
|
type: string;
|
|
@@ -39,8 +39,17 @@ export declare const Meta: {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
visible: {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
oneOf: ({
|
|
43
|
+
type: string;
|
|
44
|
+
enum: string[];
|
|
45
|
+
additionalProperties?: undefined;
|
|
46
|
+
properties?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
type: string;
|
|
49
|
+
additionalProperties: boolean;
|
|
50
|
+
properties: {};
|
|
51
|
+
enum?: undefined;
|
|
52
|
+
})[];
|
|
44
53
|
};
|
|
45
54
|
resetPaddings: {
|
|
46
55
|
type: string;
|