@gravity-ui/page-constructor 1.14.0-alpha.2 → 1.14.0-alpha.4

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.
@@ -31,6 +31,117 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
31
31
  additionalProperties: boolean;
32
32
  required: string[];
33
33
  properties: {
34
+ logo: {
35
+ oneOf: ({
36
+ type: string;
37
+ additionalProperties: boolean;
38
+ required: string[];
39
+ properties: {
40
+ icon: {
41
+ oneOf: ({
42
+ type: string;
43
+ properties: {
44
+ when: {
45
+ type: string;
46
+ };
47
+ };
48
+ } | {
49
+ type: string;
50
+ pattern: string;
51
+ })[];
52
+ };
53
+ text: {
54
+ type: string;
55
+ contentType: string;
56
+ };
57
+ url: {
58
+ type: string;
59
+ };
60
+ };
61
+ } | {
62
+ type: string;
63
+ additionalProperties: boolean;
64
+ required: import("..").Theme[];
65
+ properties: {};
66
+ })[];
67
+ };
68
+ header: {
69
+ type: string;
70
+ additionalProperties: boolean;
71
+ required: string[];
72
+ properties: {
73
+ leftItems: {
74
+ oneOf: {
75
+ type: string;
76
+ additionalProperties: boolean;
77
+ required: string[];
78
+ properties: {
79
+ type: {
80
+ type: string;
81
+ enum: string[];
82
+ };
83
+ items: {
84
+ type: string;
85
+ items: {
86
+ type: string;
87
+ properties: {
88
+ when: {
89
+ type: string;
90
+ };
91
+ };
92
+ };
93
+ };
94
+ text: {
95
+ type: string;
96
+ contentType: string;
97
+ };
98
+ url: {
99
+ type: string;
100
+ };
101
+ icon: {
102
+ type: string;
103
+ pattern: string;
104
+ };
105
+ };
106
+ }[];
107
+ };
108
+ rightItems: {
109
+ oneOf: {
110
+ type: string;
111
+ additionalProperties: boolean;
112
+ required: string[];
113
+ properties: {
114
+ type: {
115
+ type: string;
116
+ enum: string[];
117
+ };
118
+ items: {
119
+ type: string;
120
+ items: {
121
+ type: string;
122
+ properties: {
123
+ when: {
124
+ type: string;
125
+ };
126
+ };
127
+ };
128
+ };
129
+ text: {
130
+ type: string;
131
+ contentType: string;
132
+ };
133
+ url: {
134
+ type: string;
135
+ };
136
+ icon: {
137
+ type: string;
138
+ pattern: string;
139
+ };
140
+ };
141
+ }[];
142
+ };
143
+ };
144
+ };
34
145
  blocks: {
35
146
  type: string;
36
147
  items: {
@@ -159,373 +270,6 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
159
270
  type: string;
160
271
  };
161
272
  };
162
- additionalProperties: boolean;
163
- required: never[];
164
- properties: {
165
- logo: {
166
- oneOf: ({
167
- type: string;
168
- additionalProperties: boolean;
169
- required: string[];
170
- properties: {
171
- icon: {
172
- oneOf: ({
173
- type: string;
174
- properties: {
175
- when: {
176
- type: string;
177
- };
178
- };
179
- } | {
180
- type: string;
181
- pattern: string;
182
- })[];
183
- };
184
- text: {
185
- type: string;
186
- contentType: string;
187
- };
188
- url: {
189
- type: string;
190
- };
191
- };
192
- } | {
193
- type: string;
194
- additionalProperties: boolean;
195
- required: import("..").Theme[];
196
- properties: {};
197
- })[];
198
- };
199
- header: {
200
- type: string;
201
- additionalProperties: boolean;
202
- required: string[];
203
- properties: {
204
- leftItems: {
205
- oneOf: {
206
- type: string;
207
- additionalProperties: boolean;
208
- required: never[];
209
- properties: {
210
- type: {
211
- type: string;
212
- enum: string[];
213
- };
214
- additionalProperties: boolean;
215
- properties: {
216
- text: {
217
- type: string;
218
- contentType: string;
219
- };
220
- url: {
221
- type: string;
222
- };
223
- primary: {
224
- type: string;
225
- };
226
- size: {
227
- type: string;
228
- enum: string[];
229
- };
230
- theme: {
231
- type: string;
232
- enum: string[];
233
- };
234
- img: {
235
- anyOf: ({
236
- type: string;
237
- additionalProperties?: undefined;
238
- required?: undefined;
239
- properties?: undefined;
240
- } | {
241
- type: string;
242
- additionalProperties: boolean;
243
- required: string[];
244
- properties: {
245
- data: {
246
- type: string;
247
- };
248
- position: {
249
- type: string;
250
- enum: string[];
251
- };
252
- alt: {
253
- type: string;
254
- contentType: string;
255
- };
256
- };
257
- })[];
258
- };
259
- metrikaGoals: {
260
- anyOf: ({
261
- type: string;
262
- items?: undefined;
263
- } | {
264
- type: string;
265
- items: {
266
- type: string;
267
- additionalProperties?: undefined;
268
- required?: undefined;
269
- properties?: undefined;
270
- };
271
- } | {
272
- type: string;
273
- items: {
274
- type: string;
275
- additionalProperties: boolean;
276
- required: string[];
277
- properties: {
278
- name: {
279
- type: string;
280
- };
281
- isCrossSite: {
282
- type: string;
283
- };
284
- };
285
- };
286
- })[];
287
- };
288
- pixelEvents: {
289
- type: string;
290
- items: {
291
- type: string;
292
- required: string[];
293
- additionalProperties: boolean;
294
- properties: {
295
- name: {
296
- type: string;
297
- enum: import("..").PixelEventType[];
298
- };
299
- data: {};
300
- };
301
- select: {
302
- $data: string;
303
- };
304
- selectCases: {
305
- SubmitApplication: {
306
- additionalProperties: boolean;
307
- properties: {
308
- name: {};
309
- };
310
- };
311
- Contact: {
312
- additionalProperties: boolean;
313
- properties: {
314
- name: {};
315
- };
316
- };
317
- Lead: {
318
- additionalProperties: boolean;
319
- properties: {
320
- name: {};
321
- data: {
322
- type: string;
323
- additionalProperties: boolean;
324
- properties: {
325
- content_category: {
326
- type: string;
327
- };
328
- content_name: {
329
- type: string;
330
- };
331
- currency: {
332
- type: string;
333
- };
334
- value: {
335
- type: string;
336
- };
337
- };
338
- };
339
- };
340
- };
341
- };
342
- };
343
- };
344
- target: {
345
- type: string;
346
- enum: string[];
347
- };
348
- };
349
- if: {
350
- properties: {
351
- theme: {
352
- enum: string[];
353
- };
354
- };
355
- };
356
- then: {
357
- required: string[];
358
- };
359
- else: {
360
- required: string[];
361
- };
362
- };
363
- }[];
364
- };
365
- rightItems: {
366
- oneOf: {
367
- type: string;
368
- additionalProperties: boolean;
369
- required: never[];
370
- properties: {
371
- type: {
372
- type: string;
373
- enum: string[];
374
- };
375
- additionalProperties: boolean;
376
- properties: {
377
- text: {
378
- type: string;
379
- contentType: string;
380
- };
381
- url: {
382
- type: string;
383
- };
384
- primary: {
385
- type: string;
386
- };
387
- size: {
388
- type: string;
389
- enum: string[];
390
- };
391
- theme: {
392
- type: string;
393
- enum: string[];
394
- };
395
- img: {
396
- anyOf: ({
397
- type: string;
398
- additionalProperties?: undefined;
399
- required?: undefined;
400
- properties?: undefined;
401
- } | {
402
- type: string;
403
- additionalProperties: boolean;
404
- required: string[];
405
- properties: {
406
- data: {
407
- type: string;
408
- };
409
- position: {
410
- type: string;
411
- enum: string[];
412
- };
413
- alt: {
414
- type: string;
415
- contentType: string;
416
- };
417
- };
418
- })[];
419
- };
420
- metrikaGoals: {
421
- anyOf: ({
422
- type: string;
423
- items?: undefined;
424
- } | {
425
- type: string;
426
- items: {
427
- type: string;
428
- additionalProperties?: undefined;
429
- required?: undefined;
430
- properties?: undefined;
431
- };
432
- } | {
433
- type: string;
434
- items: {
435
- type: string;
436
- additionalProperties: boolean;
437
- required: string[];
438
- properties: {
439
- name: {
440
- type: string;
441
- };
442
- isCrossSite: {
443
- type: string;
444
- };
445
- };
446
- };
447
- })[];
448
- };
449
- pixelEvents: {
450
- type: string;
451
- items: {
452
- type: string;
453
- required: string[];
454
- additionalProperties: boolean;
455
- properties: {
456
- name: {
457
- type: string;
458
- enum: import("..").PixelEventType[];
459
- };
460
- data: {};
461
- };
462
- select: {
463
- $data: string;
464
- };
465
- selectCases: {
466
- SubmitApplication: {
467
- additionalProperties: boolean;
468
- properties: {
469
- name: {};
470
- };
471
- };
472
- Contact: {
473
- additionalProperties: boolean;
474
- properties: {
475
- name: {};
476
- };
477
- };
478
- Lead: {
479
- additionalProperties: boolean;
480
- properties: {
481
- name: {};
482
- data: {
483
- type: string;
484
- additionalProperties: boolean;
485
- properties: {
486
- content_category: {
487
- type: string;
488
- };
489
- content_name: {
490
- type: string;
491
- };
492
- currency: {
493
- type: string;
494
- };
495
- value: {
496
- type: string;
497
- };
498
- };
499
- };
500
- };
501
- };
502
- };
503
- };
504
- };
505
- target: {
506
- type: string;
507
- enum: string[];
508
- };
509
- };
510
- if: {
511
- properties: {
512
- theme: {
513
- enum: string[];
514
- };
515
- };
516
- };
517
- then: {
518
- required: string[];
519
- };
520
- else: {
521
- required: string[];
522
- };
523
- };
524
- }[];
525
- };
526
- };
527
- };
528
- };
529
273
  animated: {
530
274
  type: string;
531
275
  };
@@ -89,7 +89,7 @@ function generateDefaultSchema(config) {
89
89
  type: 'object',
90
90
  additionalProperties: false,
91
91
  required: ['blocks'],
92
- properties: Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.AnimatableProps), navigation_1.NavigationProps), { blocks: {
92
+ properties: Object.assign(Object.assign(Object.assign({}, common_1.AnimatableProps), { logo: (0, common_1.withTheme)(navigation_1.LogoProps), header: navigation_1.NavigationHeaderProps, blocks: {
93
93
  type: 'array',
94
94
  items: {
95
95
  $ref: '#/definitions/children',