@gravity-ui/blog-constructor 3.2.0-alpha.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) 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/CTA.css +27 -47
  7. package/build/cjs/blocks/CTA/schema.d.ts +124 -0
  8. package/build/cjs/blocks/CTA/schema.js +23 -0
  9. package/build/cjs/blocks/ColoredText/schema.d.ts +140 -0
  10. package/build/cjs/blocks/ColoredText/schema.js +29 -0
  11. package/build/cjs/blocks/Feed/schema.d.ts +66 -0
  12. package/build/cjs/blocks/Feed/schema.js +21 -0
  13. package/build/cjs/blocks/Header/schema.d.ts +376 -0
  14. package/build/cjs/blocks/Header/schema.js +14 -0
  15. package/build/cjs/blocks/Layout/schema.d.ts +60 -0
  16. package/build/cjs/blocks/Layout/schema.js +18 -0
  17. package/build/cjs/blocks/Media/schema.d.ts +181 -0
  18. package/build/cjs/blocks/Media/schema.js +17 -0
  19. package/build/cjs/blocks/Meta/schema.d.ts +49 -0
  20. package/build/cjs/blocks/Meta/schema.js +14 -0
  21. package/build/cjs/blocks/Suggest/schema.d.ts +49 -0
  22. package/build/cjs/blocks/Suggest/schema.js +14 -0
  23. package/build/cjs/blocks/YFM/schema.d.ts +54 -0
  24. package/build/cjs/blocks/YFM/schema.js +18 -0
  25. package/build/cjs/index.d.ts +1 -0
  26. package/build/cjs/index.js +1 -0
  27. package/build/cjs/schema/blocks.d.ts +10 -0
  28. package/build/cjs/schema/blocks.js +26 -0
  29. package/build/cjs/schema/common.d.ts +28 -0
  30. package/build/cjs/schema/common.js +25 -0
  31. package/build/cjs/schema/headers.d.ts +1 -0
  32. package/build/cjs/schema/headers.js +17 -0
  33. package/build/cjs/schema/index.d.ts +1288 -0
  34. package/build/cjs/schema/index.js +52 -0
  35. package/build/cjs/schema/utils.d.ts +9 -0
  36. package/build/cjs/schema/utils.js +9 -0
  37. package/build/esm/blocks/Author/schema.d.ts +53 -0
  38. package/build/esm/blocks/Author/schema.js +14 -0
  39. package/build/esm/blocks/Banner/schema.d.ts +124 -0
  40. package/build/esm/blocks/Banner/schema.js +19 -0
  41. package/build/esm/blocks/CTA/CTA.css +27 -47
  42. package/build/esm/blocks/CTA/schema.d.ts +124 -0
  43. package/build/esm/blocks/CTA/schema.js +20 -0
  44. package/build/esm/blocks/ColoredText/schema.d.ts +140 -0
  45. package/build/esm/blocks/ColoredText/schema.js +26 -0
  46. package/build/esm/blocks/Feed/schema.d.ts +66 -0
  47. package/build/esm/blocks/Feed/schema.js +18 -0
  48. package/build/esm/blocks/Header/schema.d.ts +376 -0
  49. package/build/esm/blocks/Header/schema.js +11 -0
  50. package/build/esm/blocks/Layout/schema.d.ts +60 -0
  51. package/build/esm/blocks/Layout/schema.js +15 -0
  52. package/build/esm/blocks/Media/schema.d.ts +181 -0
  53. package/build/esm/blocks/Media/schema.js +14 -0
  54. package/build/esm/blocks/Meta/schema.d.ts +49 -0
  55. package/build/esm/blocks/Meta/schema.js +11 -0
  56. package/build/esm/blocks/Suggest/schema.d.ts +49 -0
  57. package/build/esm/blocks/Suggest/schema.js +11 -0
  58. package/build/esm/blocks/YFM/schema.d.ts +54 -0
  59. package/build/esm/blocks/YFM/schema.js +15 -0
  60. package/build/esm/index.d.ts +1 -0
  61. package/build/esm/index.js +1 -0
  62. package/build/esm/schema/blocks.d.ts +10 -0
  63. package/build/esm/schema/blocks.js +10 -0
  64. package/build/esm/schema/common.d.ts +28 -0
  65. package/build/esm/schema/common.js +21 -0
  66. package/build/esm/schema/headers.d.ts +1 -0
  67. package/build/esm/schema/headers.js +1 -0
  68. package/build/esm/schema/index.d.ts +1288 -0
  69. package/build/esm/schema/index.js +26 -0
  70. package/build/esm/schema/utils.d.ts +9 -0
  71. package/build/esm/schema/utils.js +5 -0
  72. package/package.json +2 -5
@@ -0,0 +1,66 @@
1
+ export declare const Feed: {
2
+ "blog-feed-block": {
3
+ additionalProperties: boolean;
4
+ required: never[];
5
+ properties: {
6
+ title: {
7
+ type: string;
8
+ additionalProperties: boolean;
9
+ required: string[];
10
+ properties: {
11
+ text: {
12
+ type: string;
13
+ contentType: string;
14
+ };
15
+ textSize: {
16
+ type: string;
17
+ enum: string[];
18
+ };
19
+ url: {
20
+ type: string;
21
+ };
22
+ resetMargin: {
23
+ type: string;
24
+ };
25
+ };
26
+ };
27
+ image: {
28
+ type: string;
29
+ };
30
+ description: {
31
+ type: string;
32
+ contentType: string;
33
+ };
34
+ size: {
35
+ type: string;
36
+ enum: string[];
37
+ };
38
+ anchor: {
39
+ type: string;
40
+ additionalProperties: boolean;
41
+ required: string[];
42
+ properties: {
43
+ text: {
44
+ type: string;
45
+ contentType: string;
46
+ };
47
+ url: {
48
+ type: string;
49
+ };
50
+ };
51
+ };
52
+ visible: {
53
+ type: string;
54
+ enum: string[];
55
+ };
56
+ resetPaddings: {
57
+ type: string;
58
+ };
59
+ context: {
60
+ type: string;
61
+ };
62
+ type: {};
63
+ when: {};
64
+ };
65
+ };
66
+ };
@@ -0,0 +1,18 @@
1
+ import { validators } from '@gravity-ui/page-constructor';
2
+ const { common: { TitleProps, BlockBaseProps }, } = validators;
3
+ import { BlockType } from '../../models/common';
4
+ export const Feed = {
5
+ [BlockType.Feed]: {
6
+ additionalProperties: false,
7
+ required: [],
8
+ properties: Object.assign(Object.assign({}, BlockBaseProps), { title: TitleProps, image: {
9
+ type: 'string',
10
+ }, description: {
11
+ type: 'string',
12
+ contentType: 'text',
13
+ }, size: {
14
+ type: 'string',
15
+ enum: ['s', 'm'],
16
+ } }),
17
+ },
18
+ };
@@ -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,11 @@
1
+ import { validators } from '@gravity-ui/page-constructor';
2
+ import { BlockType } from '../../models/common';
3
+ import { BlogBlockBase } from '../../schema/common';
4
+ const { blocks: { HeaderProperties }, common: { BlockBaseProps }, } = validators;
5
+ export const Header = {
6
+ [BlockType.Header]: {
7
+ type: 'object',
8
+ additionalProperties: false,
9
+ properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), HeaderProperties),
10
+ },
11
+ };
@@ -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,15 @@
1
+ import { validators } from '@gravity-ui/page-constructor';
2
+ const { common: { BlockBaseProps, ChildrenProps }, } = validators;
3
+ import { BlockType } from '../../models/common';
4
+ import { BlogBlockBase } from '../../schema/common';
5
+ export const Layout = {
6
+ [BlockType.Layout]: {
7
+ type: 'object',
8
+ additionalProperties: false,
9
+ required: ['children'],
10
+ properties: Object.assign(Object.assign(Object.assign({}, BlockBaseProps), BlogBlockBase), { children: ChildrenProps, mobileOrder: {
11
+ type: 'string',
12
+ enum: ['reverse', 'straight'],
13
+ } }),
14
+ },
15
+ };