@gravity-ui/blog-constructor 11.0.1 → 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.
Files changed (105) hide show
  1. package/build/cjs/blocks/Author/schema.d.ts +14 -3
  2. package/build/cjs/blocks/Author/schema.js +1 -1
  3. package/build/cjs/blocks/Author/schema.js.map +1 -1
  4. package/build/cjs/blocks/Banner/Banner.js +5 -2
  5. package/build/cjs/blocks/Banner/Banner.js.map +1 -1
  6. package/build/cjs/blocks/Banner/schema.d.ts +89 -13
  7. package/build/cjs/blocks/CTA/schema.d.ts +89 -13
  8. package/build/cjs/blocks/CTA/schema.js +1 -1
  9. package/build/cjs/blocks/CTA/schema.js.map +1 -1
  10. package/build/cjs/blocks/ColoredText/ColoredText.js +4 -1
  11. package/build/cjs/blocks/ColoredText/ColoredText.js.map +1 -1
  12. package/build/cjs/blocks/ColoredText/schema.d.ts +124 -29
  13. package/build/cjs/blocks/ColoredText/schema.js +4 -4
  14. package/build/cjs/blocks/ColoredText/schema.js.map +1 -1
  15. package/build/cjs/blocks/CompactMedia/schema.d.ts +13 -6
  16. package/build/cjs/blocks/Feed/schema.d.ts +11 -2
  17. package/build/cjs/blocks/Form/schema.d.ts +69 -38
  18. package/build/cjs/blocks/Form/schema.js +5 -22
  19. package/build/cjs/blocks/Form/schema.js.map +1 -1
  20. package/build/cjs/blocks/Header/schema.d.ts +164 -73
  21. package/build/cjs/blocks/Header/schema.js +3 -1
  22. package/build/cjs/blocks/Header/schema.js.map +1 -1
  23. package/build/cjs/blocks/Layout/schema.d.ts +11 -2
  24. package/build/cjs/blocks/Media/schema.d.ts +13 -6
  25. package/build/cjs/blocks/Meta/schema.d.ts +11 -2
  26. package/build/cjs/blocks/SideCardList/schema.d.ts +69 -6
  27. package/build/cjs/blocks/SideCardList/schema.js +16 -19
  28. package/build/cjs/blocks/SideCardList/schema.js.map +1 -1
  29. package/build/cjs/blocks/Suggest/schema.d.ts +11 -2
  30. package/build/cjs/blocks/Take/schema.d.ts +25 -2
  31. package/build/cjs/blocks/Take/schema.js +2 -2
  32. package/build/cjs/blocks/Take/schema.js.map +1 -1
  33. package/build/cjs/blocks/YFM/schema.d.ts +11 -2
  34. package/build/cjs/constructor/blocksMap.d.ts +9 -9
  35. package/build/cjs/constructor/blocksMap.js +9 -9
  36. package/build/cjs/constructor/blocksMap.js.map +1 -1
  37. package/build/cjs/containers/BlogPostPage/BlogPostPage.css +9 -1
  38. package/build/cjs/hooks/useExtendedComponentMap.d.ts +9 -9
  39. package/build/cjs/models/blocks.d.ts +3 -3
  40. package/build/cjs/models/blocks.js.map +1 -1
  41. package/build/cjs/schema/blocks.d.ts +4 -2
  42. package/build/cjs/schema/blocks.js +4 -2
  43. package/build/cjs/schema/blocks.js.map +1 -1
  44. package/build/cjs/schema/common.d.ts +4 -0
  45. package/build/cjs/schema/common.js +8 -10
  46. package/build/cjs/schema/common.js.map +1 -1
  47. package/build/cjs/schema/index.d.ts +1044 -299
  48. package/build/cjs/schema/index.js +5 -3
  49. package/build/cjs/schema/index.js.map +1 -1
  50. package/build/cjs/utils/common.d.ts +1 -2
  51. package/build/esm/blocks/Author/schema.d.ts +14 -3
  52. package/build/esm/blocks/Author/schema.js +1 -1
  53. package/build/esm/blocks/Author/schema.js.map +1 -1
  54. package/build/esm/blocks/Banner/Banner.js +5 -2
  55. package/build/esm/blocks/Banner/Banner.js.map +1 -1
  56. package/build/esm/blocks/Banner/schema.d.ts +89 -13
  57. package/build/esm/blocks/CTA/schema.d.ts +89 -13
  58. package/build/esm/blocks/CTA/schema.js +1 -1
  59. package/build/esm/blocks/CTA/schema.js.map +1 -1
  60. package/build/esm/blocks/ColoredText/ColoredText.js +5 -2
  61. package/build/esm/blocks/ColoredText/ColoredText.js.map +1 -1
  62. package/build/esm/blocks/ColoredText/schema.d.ts +124 -29
  63. package/build/esm/blocks/ColoredText/schema.js +4 -4
  64. package/build/esm/blocks/ColoredText/schema.js.map +1 -1
  65. package/build/esm/blocks/CompactMedia/schema.d.ts +13 -6
  66. package/build/esm/blocks/Feed/schema.d.ts +11 -2
  67. package/build/esm/blocks/Form/schema.d.ts +69 -38
  68. package/build/esm/blocks/Form/schema.js +4 -21
  69. package/build/esm/blocks/Form/schema.js.map +1 -1
  70. package/build/esm/blocks/Header/schema.d.ts +164 -73
  71. package/build/esm/blocks/Header/schema.js +3 -1
  72. package/build/esm/blocks/Header/schema.js.map +1 -1
  73. package/build/esm/blocks/Layout/schema.d.ts +11 -2
  74. package/build/esm/blocks/Media/schema.d.ts +13 -6
  75. package/build/esm/blocks/Meta/schema.d.ts +11 -2
  76. package/build/esm/blocks/SideCardList/schema.d.ts +69 -6
  77. package/build/esm/blocks/SideCardList/schema.js +16 -19
  78. package/build/esm/blocks/SideCardList/schema.js.map +1 -1
  79. package/build/esm/blocks/Suggest/schema.d.ts +11 -2
  80. package/build/esm/blocks/Take/schema.d.ts +25 -2
  81. package/build/esm/blocks/Take/schema.js +3 -3
  82. package/build/esm/blocks/Take/schema.js.map +1 -1
  83. package/build/esm/blocks/YFM/schema.d.ts +11 -2
  84. package/build/esm/constructor/blocksMap.d.ts +9 -9
  85. package/build/esm/constructor/blocksMap.js +9 -9
  86. package/build/esm/constructor/blocksMap.js.map +1 -1
  87. package/build/esm/containers/BlogPostPage/BlogPostPage.css +9 -1
  88. package/build/esm/hooks/useExtendedComponentMap.d.ts +9 -9
  89. package/build/esm/models/blocks.d.ts +3 -3
  90. package/build/esm/models/blocks.js.map +1 -1
  91. package/build/esm/schema/blocks.d.ts +4 -2
  92. package/build/esm/schema/blocks.js +4 -2
  93. package/build/esm/schema/blocks.js.map +1 -1
  94. package/build/esm/schema/common.d.ts +4 -0
  95. package/build/esm/schema/common.js +7 -9
  96. package/build/esm/schema/common.js.map +1 -1
  97. package/build/esm/schema/index.d.ts +1044 -299
  98. package/build/esm/schema/index.js +5 -3
  99. package/build/esm/schema/index.js.map +1 -1
  100. package/build/esm/utils/common.d.ts +1 -2
  101. package/package.json +3 -3
  102. package/server/models/blocks.d.ts +3 -3
  103. package/styles/storybook/common.scss +6 -0
  104. package/styles/styles.css +9 -1
  105. package/styles/yfm.css +9 -1
@@ -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
- oneOf: (({
182
- type: string;
183
- additionalProperties: boolean;
184
- required: string[];
185
- properties: {
186
- src: {
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
- optionName: string;
201
- }) | {
202
- type: string;
203
- additionalProperties: boolean;
204
- required: import("@gravity-ui/page-constructor").Theme[];
205
- properties: {};
206
- optionName: string;
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
- oneOf: ({
253
- type: string;
254
- properties: {
255
- when: {
256
- type: string;
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
- when: {
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
- optionName: string;
275
- pattern?: undefined;
276
- })[];
277
- type?: undefined;
278
- items?: undefined;
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
- type: string;
281
- items: {
282
- oneOf: ({
297
+ properties: {
298
+ style: {
283
299
  type: string;
300
+ additionalProperties: boolean;
301
+ required: never[];
284
302
  properties: {
285
- when: {
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
- optionName: string;
293
- items?: undefined;
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
- items: {
342
+ enum: string[];
343
+ };
344
+ hide: {
345
+ oneOf: ({
346
+ type: string;
347
+ properties?: undefined;
348
+ } | {
297
349
  type: string;
298
350
  properties: {
299
- when: {
351
+ mobile: {
352
+ type: string;
353
+ };
354
+ tablet: {
355
+ type: string;
356
+ };
357
+ desktop: {
300
358
  type: string;
301
359
  };
302
360
  };
303
- };
304
- optionName: string;
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
- type: string;
638
- enum: string[];
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,gDACH,cAAc,GACd,aAAa,GACb,gBAAgB,CACtB;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 },\n },\n};\n"]}
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
- type: string;
54
- enum: string[];
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
- type: string;
353
- enum: string[];
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
- type: string;
43
- enum: string[];
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;
@@ -4,9 +4,6 @@ export declare const SideCardList: {
4
4
  additionalProperties: boolean;
5
5
  required: string[];
6
6
  properties: {
7
- className: {
8
- type: string;
9
- };
10
7
  title: {
11
8
  type: string;
12
9
  };
@@ -17,7 +14,64 @@ export declare const SideCardList: {
17
14
  required: string[];
18
15
  properties: {
19
16
  image: {
20
- type: string;
17
+ oneOf: ({
18
+ optionName: string;
19
+ oneOf: ({
20
+ type: string;
21
+ properties: {
22
+ when: {
23
+ type: string;
24
+ };
25
+ };
26
+ } | {
27
+ optionName: string;
28
+ type: string;
29
+ pattern: string;
30
+ items?: undefined;
31
+ } | {
32
+ type: string;
33
+ items: {
34
+ type: string;
35
+ properties: {
36
+ when: {
37
+ type: string;
38
+ };
39
+ };
40
+ };
41
+ optionName: string;
42
+ })[];
43
+ type?: undefined;
44
+ items?: undefined;
45
+ } | {
46
+ type: string;
47
+ items: {
48
+ oneOf: ({
49
+ type: string;
50
+ properties: {
51
+ when: {
52
+ type: string;
53
+ };
54
+ };
55
+ } | {
56
+ optionName: string;
57
+ type: string;
58
+ pattern: string;
59
+ items?: undefined;
60
+ } | {
61
+ type: string;
62
+ items: {
63
+ type: string;
64
+ properties: {
65
+ when: {
66
+ type: string;
67
+ };
68
+ };
69
+ };
70
+ optionName: string;
71
+ })[];
72
+ };
73
+ optionName: string;
74
+ })[];
21
75
  };
22
76
  description: {
23
77
  type: string;
@@ -64,8 +118,17 @@ export declare const SideCardList: {
64
118
  };
65
119
  };
66
120
  visible: {
67
- type: string;
68
- enum: string[];
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
+ })[];
69
132
  };
70
133
  resetPaddings: {
71
134
  type: string;
@@ -1,33 +1,30 @@
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 }, } = validators;
4
+ const { common: { BlockBaseProps, MediaProps }, } = validators;
5
+ const SideCard = {
6
+ type: 'object',
7
+ required: ['image', 'description', 'url'],
8
+ properties: {
9
+ image: MediaProps.image,
10
+ description: {
11
+ type: 'string',
12
+ },
13
+ url: {
14
+ type: 'string',
15
+ },
16
+ },
17
+ };
5
18
  export const SideCardList = {
6
19
  [BlockType.SideCardList]: {
7
20
  type: 'object',
8
21
  additionalProperties: false,
9
22
  required: ['items'],
10
- properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { className: {
11
- type: 'string',
12
- }, title: {
23
+ properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { title: {
13
24
  type: 'string',
14
25
  }, items: {
15
26
  type: 'array',
16
- items: {
17
- type: 'object',
18
- required: ['image', 'description', 'url'],
19
- properties: {
20
- image: {
21
- type: 'string',
22
- },
23
- description: {
24
- type: 'string',
25
- },
26
- url: {
27
- type: 'string',
28
- },
29
- },
30
- },
27
+ items: SideCard,
31
28
  } }),
32
29
  },
33
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/SideCardList/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,GAC3B,GAAG,UAAU,CAAC;AAEf,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE;QACtB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,gDACH,cAAc,GACd,aAAa,KAChB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;aACjB,EACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB,EACD,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACH,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,CAAC;oBACzC,UAAU,EAAE;wBACR,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ;yBACjB;wBACD,WAAW,EAAE;4BACT,IAAI,EAAE,QAAQ;yBACjB;wBACD,GAAG,EAAE;4BACD,IAAI,EAAE,QAAQ;yBACjB;qBACJ;iBACJ;aACJ,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} = validators;\n\nexport const SideCardList = {\n [BlockType.SideCardList]: {\n type: 'object',\n additionalProperties: false,\n required: ['items'],\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n className: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n items: {\n type: 'array',\n items: {\n type: 'object',\n required: ['image', 'description', 'url'],\n properties: {\n image: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/SideCardList/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,EAAE,UAAU,EAAC,GACvC,GAAG,UAAU,CAAC;AAEf,MAAM,QAAQ,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,CAAC;IACzC,UAAU,EAAE;QACR,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;SACjB;QACD,GAAG,EAAE;YACD,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE;QACtB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,gDACH,cAAc,GACd,aAAa,KAChB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB,EACD,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,QAAQ;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 common: {BlockBaseProps, MediaProps},\n} = validators;\n\nconst SideCard = {\n type: 'object',\n required: ['image', 'description', 'url'],\n properties: {\n image: MediaProps.image,\n description: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n },\n};\n\nexport const SideCardList = {\n [BlockType.SideCardList]: {\n type: 'object',\n additionalProperties: false,\n required: ['items'],\n properties: {\n ...BlockBaseProps,\n ...BlogBlockBase,\n title: {\n type: 'string',\n },\n items: {\n type: 'array',\n items: SideCard,\n },\n },\n },\n};\n"]}
@@ -39,8 +39,17 @@ export declare const Suggest: {
39
39
  };
40
40
  };
41
41
  visible: {
42
- type: string;
43
- enum: string[];
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;
@@ -4,6 +4,14 @@ export declare const Take: {
4
4
  additionalProperties: boolean;
5
5
  required: string[];
6
6
  properties: {
7
+ paddingRight: {
8
+ type: string;
9
+ enum: string[];
10
+ };
11
+ paddingLeft: {
12
+ type: string;
13
+ enum: string[];
14
+ };
7
15
  text: {
8
16
  type: string;
9
17
  contentType: string;
@@ -30,6 +38,12 @@ export declare const Take: {
30
38
  };
31
39
  };
32
40
  };
41
+ color: {
42
+ type: string;
43
+ };
44
+ noBackground: {
45
+ type: string;
46
+ };
33
47
  paddingTop: {
34
48
  type: string;
35
49
  enum: string[];
@@ -66,8 +80,17 @@ export declare const Take: {
66
80
  };
67
81
  };
68
82
  visible: {
69
- type: string;
70
- enum: string[];
83
+ oneOf: ({
84
+ type: string;
85
+ enum: string[];
86
+ additionalProperties?: undefined;
87
+ properties?: undefined;
88
+ } | {
89
+ type: string;
90
+ additionalProperties: boolean;
91
+ properties: {};
92
+ enum?: undefined;
93
+ })[];
71
94
  };
72
95
  resetPaddings: {
73
96
  type: string;