@gravity-ui/blog-constructor 3.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/cjs/blocks/Author/schema.d.ts +53 -0
  3. package/build/cjs/blocks/Author/schema.js +17 -0
  4. package/build/cjs/blocks/Banner/schema.d.ts +124 -0
  5. package/build/cjs/blocks/Banner/schema.js +22 -0
  6. package/build/cjs/blocks/CTA/schema.d.ts +124 -0
  7. package/build/cjs/blocks/CTA/schema.js +23 -0
  8. package/build/cjs/blocks/ColoredText/schema.d.ts +140 -0
  9. package/build/cjs/blocks/ColoredText/schema.js +29 -0
  10. package/build/cjs/blocks/Feed/schema.d.ts +66 -0
  11. package/build/cjs/blocks/Feed/schema.js +21 -0
  12. package/build/cjs/blocks/Header/schema.d.ts +376 -0
  13. package/build/cjs/blocks/Header/schema.js +14 -0
  14. package/build/cjs/blocks/Layout/schema.d.ts +60 -0
  15. package/build/cjs/blocks/Layout/schema.js +18 -0
  16. package/build/cjs/blocks/Media/schema.d.ts +181 -0
  17. package/build/cjs/blocks/Media/schema.js +17 -0
  18. package/build/cjs/blocks/Meta/schema.d.ts +49 -0
  19. package/build/cjs/blocks/Meta/schema.js +14 -0
  20. package/build/cjs/blocks/Suggest/schema.d.ts +49 -0
  21. package/build/cjs/blocks/Suggest/schema.js +14 -0
  22. package/build/cjs/blocks/YFM/schema.d.ts +54 -0
  23. package/build/cjs/blocks/YFM/schema.js +18 -0
  24. package/build/cjs/index.d.ts +1 -0
  25. package/build/cjs/index.js +1 -0
  26. package/build/cjs/schema/blocks.d.ts +10 -0
  27. package/build/cjs/schema/blocks.js +26 -0
  28. package/build/cjs/schema/common.d.ts +28 -0
  29. package/build/cjs/schema/common.js +25 -0
  30. package/build/cjs/schema/headers.d.ts +1 -0
  31. package/build/cjs/schema/headers.js +17 -0
  32. package/build/cjs/schema/index.d.ts +1288 -0
  33. package/build/cjs/schema/index.js +52 -0
  34. package/build/cjs/schema/utils.d.ts +9 -0
  35. package/build/cjs/schema/utils.js +9 -0
  36. package/build/esm/blocks/Author/schema.d.ts +53 -0
  37. package/build/esm/blocks/Author/schema.js +14 -0
  38. package/build/esm/blocks/Banner/schema.d.ts +124 -0
  39. package/build/esm/blocks/Banner/schema.js +19 -0
  40. package/build/esm/blocks/CTA/schema.d.ts +124 -0
  41. package/build/esm/blocks/CTA/schema.js +20 -0
  42. package/build/esm/blocks/ColoredText/schema.d.ts +140 -0
  43. package/build/esm/blocks/ColoredText/schema.js +26 -0
  44. package/build/esm/blocks/Feed/schema.d.ts +66 -0
  45. package/build/esm/blocks/Feed/schema.js +18 -0
  46. package/build/esm/blocks/Header/schema.d.ts +376 -0
  47. package/build/esm/blocks/Header/schema.js +11 -0
  48. package/build/esm/blocks/Layout/schema.d.ts +60 -0
  49. package/build/esm/blocks/Layout/schema.js +15 -0
  50. package/build/esm/blocks/Media/schema.d.ts +181 -0
  51. package/build/esm/blocks/Media/schema.js +14 -0
  52. package/build/esm/blocks/Meta/schema.d.ts +49 -0
  53. package/build/esm/blocks/Meta/schema.js +11 -0
  54. package/build/esm/blocks/Suggest/schema.d.ts +49 -0
  55. package/build/esm/blocks/Suggest/schema.js +11 -0
  56. package/build/esm/blocks/YFM/schema.d.ts +54 -0
  57. package/build/esm/blocks/YFM/schema.js +15 -0
  58. package/build/esm/index.d.ts +1 -0
  59. package/build/esm/index.js +1 -0
  60. package/build/esm/schema/blocks.d.ts +10 -0
  61. package/build/esm/schema/blocks.js +10 -0
  62. package/build/esm/schema/common.d.ts +28 -0
  63. package/build/esm/schema/common.js +21 -0
  64. package/build/esm/schema/headers.d.ts +1 -0
  65. package/build/esm/schema/headers.js +1 -0
  66. package/build/esm/schema/index.d.ts +1288 -0
  67. package/build/esm/schema/index.js +26 -0
  68. package/build/esm/schema/utils.d.ts +9 -0
  69. package/build/esm/schema/utils.js +5 -0
  70. package/package.json +2 -2
@@ -0,0 +1,376 @@
1
+ export declare const Header: {
2
+ "blog-header-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ properties: {
6
+ title: {
7
+ type: string;
8
+ contentType: string;
9
+ };
10
+ overtitle: {
11
+ type: string;
12
+ contentType: string;
13
+ };
14
+ description: {
15
+ type: string;
16
+ contentType: string;
17
+ };
18
+ width: {
19
+ type: string;
20
+ enum: string[];
21
+ };
22
+ buttons: {
23
+ type: string;
24
+ items: {
25
+ type: string;
26
+ properties: {
27
+ when: {
28
+ type: string;
29
+ };
30
+ };
31
+ };
32
+ };
33
+ offset: {
34
+ type: string;
35
+ enum: string[];
36
+ };
37
+ image: {
38
+ oneOf: ({
39
+ oneOf: ({
40
+ type: string;
41
+ properties: {
42
+ when: {
43
+ type: string;
44
+ };
45
+ };
46
+ } | {
47
+ type: string;
48
+ pattern: string;
49
+ })[];
50
+ } | {
51
+ type: string;
52
+ additionalProperties: boolean;
53
+ required: import("@gravity-ui/page-constructor").Theme[];
54
+ properties: {};
55
+ })[];
56
+ };
57
+ video: {
58
+ oneOf: ({
59
+ type: string;
60
+ additionalProperties: boolean;
61
+ required: string[];
62
+ properties: {
63
+ src: {
64
+ type: string;
65
+ items: {
66
+ type: string;
67
+ };
68
+ };
69
+ loop: {
70
+ anyOf: ({
71
+ type: string;
72
+ additionalProperties: boolean;
73
+ required: string[];
74
+ properties: {
75
+ start: {
76
+ type: string;
77
+ };
78
+ end: {
79
+ type: string;
80
+ };
81
+ };
82
+ } | {
83
+ type: string;
84
+ })[];
85
+ };
86
+ type: {
87
+ type: string;
88
+ enum: string[];
89
+ };
90
+ muted: {
91
+ type: string;
92
+ };
93
+ playing: {
94
+ type: string;
95
+ };
96
+ elapsedTime: {
97
+ type: string;
98
+ };
99
+ playIcon: {
100
+ type: string;
101
+ additionalProperties: boolean;
102
+ properties: {
103
+ type: {
104
+ type: string;
105
+ enum: string[];
106
+ };
107
+ theme: {
108
+ type: string;
109
+ enum: string[];
110
+ };
111
+ text: {
112
+ type: string;
113
+ contentType: string;
114
+ };
115
+ };
116
+ };
117
+ controls: {
118
+ type: string;
119
+ enum: string[];
120
+ };
121
+ };
122
+ } | {
123
+ type: string;
124
+ additionalProperties: boolean;
125
+ required: import("@gravity-ui/page-constructor").Theme[];
126
+ properties: {};
127
+ })[];
128
+ };
129
+ backLink: {
130
+ type: string;
131
+ required: string[];
132
+ properties: {
133
+ url: {
134
+ type: string;
135
+ };
136
+ title: {
137
+ type: string;
138
+ contentType: string;
139
+ };
140
+ };
141
+ };
142
+ imageSize: {
143
+ type: string;
144
+ enum: string[];
145
+ };
146
+ verticalOffset: {
147
+ type: string;
148
+ enum: string[];
149
+ };
150
+ background: {
151
+ oneOf: ({
152
+ type: string;
153
+ additionalProperties: boolean;
154
+ required: never[];
155
+ properties: {
156
+ fullWidth: {
157
+ type: string;
158
+ };
159
+ fullWidthMedia: {
160
+ type: string;
161
+ };
162
+ color: {
163
+ type: string;
164
+ };
165
+ image: {
166
+ anyOf: ({
167
+ oneOf: ({
168
+ type: string;
169
+ properties: {
170
+ when: {
171
+ type: string;
172
+ };
173
+ };
174
+ } | {
175
+ type: string;
176
+ pattern: string;
177
+ })[];
178
+ } | {
179
+ type: string;
180
+ items: {
181
+ oneOf: ({
182
+ type: string;
183
+ properties: {
184
+ when: {
185
+ type: string;
186
+ };
187
+ };
188
+ } | {
189
+ type: string;
190
+ pattern: string;
191
+ })[];
192
+ };
193
+ })[];
194
+ };
195
+ video: {
196
+ type: string;
197
+ additionalProperties: boolean;
198
+ required: string[];
199
+ properties: {
200
+ src: {
201
+ type: string;
202
+ items: {
203
+ type: string;
204
+ };
205
+ };
206
+ loop: {
207
+ anyOf: ({
208
+ type: string;
209
+ additionalProperties: boolean;
210
+ required: string[];
211
+ properties: {
212
+ start: {
213
+ type: string;
214
+ };
215
+ end: {
216
+ type: string;
217
+ };
218
+ };
219
+ } | {
220
+ type: string;
221
+ })[];
222
+ };
223
+ type: {
224
+ type: string;
225
+ enum: string[];
226
+ };
227
+ muted: {
228
+ type: string;
229
+ };
230
+ playing: {
231
+ type: string;
232
+ };
233
+ elapsedTime: {
234
+ type: string;
235
+ };
236
+ playIcon: {
237
+ type: string;
238
+ additionalProperties: boolean;
239
+ properties: {
240
+ type: {
241
+ type: string;
242
+ enum: string[];
243
+ };
244
+ theme: {
245
+ type: string;
246
+ enum: string[];
247
+ };
248
+ text: {
249
+ type: string;
250
+ contentType: string;
251
+ };
252
+ };
253
+ };
254
+ controls: {
255
+ type: string;
256
+ enum: string[];
257
+ };
258
+ };
259
+ };
260
+ youtube: {
261
+ type: string;
262
+ };
263
+ parallax: {
264
+ type: string;
265
+ };
266
+ height: {
267
+ type: string;
268
+ };
269
+ previewImg: {
270
+ type: string;
271
+ };
272
+ dataLens: {
273
+ oneOf: ({
274
+ type: string;
275
+ additionalProperties: boolean;
276
+ required: string[];
277
+ properties: {
278
+ id: {
279
+ type: string;
280
+ };
281
+ theme: {
282
+ type: string;
283
+ enum: string[];
284
+ };
285
+ };
286
+ } | {
287
+ type: string;
288
+ })[];
289
+ };
290
+ };
291
+ } | {
292
+ type: string;
293
+ additionalProperties: boolean;
294
+ required: import("@gravity-ui/page-constructor").Theme[];
295
+ properties: {};
296
+ })[];
297
+ };
298
+ theme: {
299
+ type: string;
300
+ enum: string[];
301
+ };
302
+ breadcrumbs: {
303
+ type: string;
304
+ additionalProperties: boolean;
305
+ required: string[];
306
+ properties: {
307
+ items: {
308
+ type: string;
309
+ items: {
310
+ type: string;
311
+ additionalProperties: boolean;
312
+ required: string[];
313
+ properties: {
314
+ url: {
315
+ type: string;
316
+ };
317
+ text: {
318
+ type: string;
319
+ contentType: string;
320
+ };
321
+ };
322
+ };
323
+ };
324
+ theme: {
325
+ type: string;
326
+ enum: string[];
327
+ };
328
+ };
329
+ };
330
+ status: {
331
+ type: string;
332
+ };
333
+ paddingTop: {
334
+ type: string;
335
+ enum: string[];
336
+ };
337
+ paddingBottom: {
338
+ type: string;
339
+ enum: string[];
340
+ };
341
+ fullWidth: {
342
+ type: string;
343
+ };
344
+ column: {
345
+ type: string;
346
+ enum: string[];
347
+ };
348
+ anchor: {
349
+ type: string;
350
+ additionalProperties: boolean;
351
+ required: string[];
352
+ properties: {
353
+ text: {
354
+ type: string;
355
+ contentType: string;
356
+ };
357
+ url: {
358
+ type: string;
359
+ };
360
+ };
361
+ };
362
+ visible: {
363
+ type: string;
364
+ enum: string[];
365
+ };
366
+ resetPaddings: {
367
+ type: string;
368
+ };
369
+ context: {
370
+ type: string;
371
+ };
372
+ type: {};
373
+ when: {};
374
+ };
375
+ };
376
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Header = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const common_1 = require("../../models/common");
6
+ const common_2 = require("../../schema/common");
7
+ const { blocks: { HeaderProperties }, common: { BlockBaseProps }, } = page_constructor_1.validators;
8
+ exports.Header = {
9
+ [common_1.BlockType.Header]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase), HeaderProperties),
13
+ },
14
+ };
@@ -0,0 +1,60 @@
1
+ export declare const Layout: {
2
+ "blog-layout-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ required: string[];
6
+ properties: {
7
+ children: {
8
+ type: string;
9
+ items: {
10
+ $ref: string;
11
+ };
12
+ };
13
+ mobileOrder: {
14
+ type: string;
15
+ enum: string[];
16
+ };
17
+ paddingTop: {
18
+ type: string;
19
+ enum: string[];
20
+ };
21
+ paddingBottom: {
22
+ type: string;
23
+ enum: string[];
24
+ };
25
+ fullWidth: {
26
+ type: string;
27
+ };
28
+ column: {
29
+ type: string;
30
+ enum: string[];
31
+ };
32
+ anchor: {
33
+ type: string;
34
+ additionalProperties: boolean;
35
+ required: string[];
36
+ properties: {
37
+ text: {
38
+ type: string;
39
+ contentType: string;
40
+ };
41
+ url: {
42
+ type: string;
43
+ };
44
+ };
45
+ };
46
+ visible: {
47
+ type: string;
48
+ enum: string[];
49
+ };
50
+ resetPaddings: {
51
+ type: string;
52
+ };
53
+ context: {
54
+ type: string;
55
+ };
56
+ type: {};
57
+ when: {};
58
+ };
59
+ };
60
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Layout = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const { common: { BlockBaseProps, ChildrenProps }, } = page_constructor_1.validators;
6
+ const common_1 = require("../../models/common");
7
+ const common_2 = require("../../schema/common");
8
+ exports.Layout = {
9
+ [common_1.BlockType.Layout]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ required: ['children'],
13
+ properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase), { children: ChildrenProps, mobileOrder: {
14
+ type: 'string',
15
+ enum: ['reverse', 'straight'],
16
+ } }),
17
+ },
18
+ };
@@ -0,0 +1,181 @@
1
+ export declare const Media: {
2
+ "blog-media-block": {
3
+ type: string;
4
+ additionalProperties: boolean;
5
+ properties: {
6
+ text: {
7
+ type: string;
8
+ contentType: string;
9
+ };
10
+ color: {
11
+ type: string;
12
+ };
13
+ image: {
14
+ anyOf: ({
15
+ oneOf: ({
16
+ type: string;
17
+ properties: {
18
+ when: {
19
+ type: string;
20
+ };
21
+ };
22
+ } | {
23
+ type: string;
24
+ pattern: string;
25
+ })[];
26
+ } | {
27
+ type: string;
28
+ items: {
29
+ oneOf: ({
30
+ type: string;
31
+ properties: {
32
+ when: {
33
+ type: string;
34
+ };
35
+ };
36
+ } | {
37
+ type: string;
38
+ pattern: string;
39
+ })[];
40
+ };
41
+ })[];
42
+ };
43
+ video: {
44
+ type: string;
45
+ additionalProperties: boolean;
46
+ required: string[];
47
+ properties: {
48
+ src: {
49
+ type: string;
50
+ items: {
51
+ type: string;
52
+ };
53
+ };
54
+ loop: {
55
+ anyOf: ({
56
+ type: string;
57
+ additionalProperties: boolean;
58
+ required: string[];
59
+ properties: {
60
+ start: {
61
+ type: string;
62
+ };
63
+ end: {
64
+ type: string;
65
+ };
66
+ };
67
+ } | {
68
+ type: string;
69
+ })[];
70
+ };
71
+ type: {
72
+ type: string;
73
+ enum: string[];
74
+ };
75
+ muted: {
76
+ type: string;
77
+ };
78
+ playing: {
79
+ type: string;
80
+ };
81
+ elapsedTime: {
82
+ type: string;
83
+ };
84
+ playIcon: {
85
+ type: string;
86
+ additionalProperties: boolean;
87
+ properties: {
88
+ type: {
89
+ type: string;
90
+ enum: string[];
91
+ };
92
+ theme: {
93
+ type: string;
94
+ enum: string[];
95
+ };
96
+ text: {
97
+ type: string;
98
+ contentType: string;
99
+ };
100
+ };
101
+ };
102
+ controls: {
103
+ type: string;
104
+ enum: string[];
105
+ };
106
+ };
107
+ };
108
+ youtube: {
109
+ type: string;
110
+ };
111
+ parallax: {
112
+ type: string;
113
+ };
114
+ height: {
115
+ type: string;
116
+ };
117
+ previewImg: {
118
+ type: string;
119
+ };
120
+ dataLens: {
121
+ oneOf: ({
122
+ type: string;
123
+ additionalProperties: boolean;
124
+ required: string[];
125
+ properties: {
126
+ id: {
127
+ type: string;
128
+ };
129
+ theme: {
130
+ type: string;
131
+ enum: string[];
132
+ };
133
+ };
134
+ } | {
135
+ type: string;
136
+ })[];
137
+ };
138
+ paddingTop: {
139
+ type: string;
140
+ enum: string[];
141
+ };
142
+ paddingBottom: {
143
+ type: string;
144
+ enum: string[];
145
+ };
146
+ fullWidth: {
147
+ type: string;
148
+ };
149
+ column: {
150
+ type: string;
151
+ enum: string[];
152
+ };
153
+ anchor: {
154
+ type: string;
155
+ additionalProperties: boolean;
156
+ required: string[];
157
+ properties: {
158
+ text: {
159
+ type: string;
160
+ contentType: string;
161
+ };
162
+ url: {
163
+ type: string;
164
+ };
165
+ };
166
+ };
167
+ visible: {
168
+ type: string;
169
+ enum: string[];
170
+ };
171
+ resetPaddings: {
172
+ type: string;
173
+ };
174
+ context: {
175
+ type: string;
176
+ };
177
+ type: {};
178
+ when: {};
179
+ };
180
+ };
181
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Media = void 0;
4
+ const page_constructor_1 = require("@gravity-ui/page-constructor");
5
+ const common_1 = require("../../models/common");
6
+ const common_2 = require("../../schema/common");
7
+ const { common: { BlockBaseProps, MediaProps }, } = page_constructor_1.validators;
8
+ exports.Media = {
9
+ [common_1.BlockType.Media]: {
10
+ type: 'object',
11
+ additionalProperties: false,
12
+ properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), common_2.BlogBlockBase), MediaProps), { text: {
13
+ type: 'string',
14
+ contentType: 'text',
15
+ } }),
16
+ },
17
+ };