@gravity-ui/page-constructor 1.2.5 → 1.3.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 (70) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/cjs/blocks/Companies/Companies.js +2 -6
  3. package/build/cjs/blocks/ContentLayout/schema.js +2 -1
  4. package/build/cjs/blocks/Header/Header.css +11 -10
  5. package/build/cjs/blocks/Header/Header.js +15 -15
  6. package/build/cjs/blocks/Header/schema.d.ts +332 -230
  7. package/build/cjs/blocks/Header/schema.js +6 -20
  8. package/build/cjs/blocks/HeaderSlider/schema.d.ts +96 -115
  9. package/build/cjs/blocks/Tabs/Tabs.js +3 -2
  10. package/build/cjs/blocks/Tabs/schema.js +2 -1
  11. package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
  12. package/build/cjs/components/BackgroundMedia/BackgroundMedia.css +2 -0
  13. package/build/cjs/components/Image/Image.d.ts +2 -4
  14. package/build/cjs/components/Image/Image.js +16 -6
  15. package/build/cjs/components/Image/schema.d.ts +56 -0
  16. package/build/cjs/components/Image/schema.js +54 -0
  17. package/build/cjs/components/Media/Image/Image.js +3 -3
  18. package/build/cjs/components/Media/Image/utils.d.ts +2 -2
  19. package/build/cjs/models/constructor-items/blocks.d.ts +4 -8
  20. package/build/cjs/models/constructor-items/common.d.ts +11 -7
  21. package/build/cjs/models/guards.d.ts +2 -3
  22. package/build/cjs/models/guards.js +1 -5
  23. package/build/cjs/schema/validators/common.d.ts +0 -31
  24. package/build/cjs/schema/validators/common.js +5 -32
  25. package/build/cjs/sub-blocks/BackgroundCard/schema.js +2 -1
  26. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +1 -1
  27. package/build/cjs/sub-blocks/BasicCard/schema.js +2 -1
  28. package/build/cjs/sub-blocks/Partner/Partner.js +1 -1
  29. package/build/cjs/sub-blocks/Partner/schema.js +2 -1
  30. package/build/cjs/sub-blocks/Quote/Quote.js +3 -2
  31. package/build/cjs/sub-blocks/Quote/schema.js +4 -3
  32. package/build/cjs/sub-blocks/TutorialCard/TutorialCard.js +2 -2
  33. package/build/cjs/sub-blocks/TutorialCard/schema.js +2 -1
  34. package/build/esm/blocks/Companies/Companies.js +2 -6
  35. package/build/esm/blocks/ContentLayout/schema.js +2 -1
  36. package/build/esm/blocks/Header/Header.css +11 -10
  37. package/build/esm/blocks/Header/Header.js +16 -16
  38. package/build/esm/blocks/Header/schema.d.ts +332 -230
  39. package/build/esm/blocks/Header/schema.js +5 -19
  40. package/build/esm/blocks/HeaderSlider/schema.d.ts +96 -115
  41. package/build/esm/blocks/Tabs/Tabs.js +3 -2
  42. package/build/esm/blocks/Tabs/schema.js +2 -1
  43. package/build/esm/components/BackgroundImage/BackgroundImage.js +2 -2
  44. package/build/esm/components/BackgroundMedia/BackgroundMedia.css +2 -0
  45. package/build/esm/components/Image/Image.d.ts +2 -4
  46. package/build/esm/components/Image/Image.js +17 -7
  47. package/build/esm/components/Image/schema.d.ts +56 -0
  48. package/build/esm/components/Image/schema.js +51 -0
  49. package/build/esm/components/Media/Image/Image.js +3 -3
  50. package/build/esm/components/Media/Image/utils.d.ts +2 -2
  51. package/build/esm/models/constructor-items/blocks.d.ts +4 -8
  52. package/build/esm/models/constructor-items/common.d.ts +11 -7
  53. package/build/esm/models/guards.d.ts +2 -3
  54. package/build/esm/models/guards.js +0 -3
  55. package/build/esm/schema/validators/common.d.ts +0 -31
  56. package/build/esm/schema/validators/common.js +1 -28
  57. package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -1
  58. package/build/esm/sub-blocks/BasicCard/BasicCard.js +1 -1
  59. package/build/esm/sub-blocks/BasicCard/schema.js +2 -1
  60. package/build/esm/sub-blocks/Partner/Partner.js +1 -1
  61. package/build/esm/sub-blocks/Partner/schema.js +2 -1
  62. package/build/esm/sub-blocks/Quote/Quote.js +3 -2
  63. package/build/esm/sub-blocks/Quote/schema.js +2 -1
  64. package/build/esm/sub-blocks/TutorialCard/TutorialCard.js +2 -2
  65. package/build/esm/sub-blocks/TutorialCard/schema.js +2 -1
  66. package/package.json +1 -1
  67. package/server/models/constructor-items/blocks.d.ts +4 -8
  68. package/server/models/constructor-items/common.d.ts +11 -7
  69. package/server/models/guards.d.ts +2 -3
  70. package/server/models/guards.js +1 -5
@@ -1,3 +1,143 @@
1
+ export declare const HeaderBackgroundProps: {
2
+ type: string;
3
+ additionalProperties: boolean;
4
+ required: never[];
5
+ properties: {
6
+ fullWidth: {
7
+ type: string;
8
+ };
9
+ fullWidthMedia: {
10
+ type: string;
11
+ };
12
+ color: {
13
+ type: string;
14
+ };
15
+ image: {
16
+ anyOf: ({
17
+ oneOf: ({
18
+ type: string;
19
+ properties: {
20
+ when: {
21
+ type: string;
22
+ };
23
+ };
24
+ } | {
25
+ type: string;
26
+ pattern: string;
27
+ })[];
28
+ } | {
29
+ type: string;
30
+ items: {
31
+ oneOf: ({
32
+ type: string;
33
+ properties: {
34
+ when: {
35
+ type: string;
36
+ };
37
+ };
38
+ } | {
39
+ type: string;
40
+ pattern: string;
41
+ })[];
42
+ };
43
+ })[];
44
+ };
45
+ video: {
46
+ type: string;
47
+ additionalProperties: boolean;
48
+ required: string[];
49
+ properties: {
50
+ src: {
51
+ type: string;
52
+ items: {
53
+ type: string;
54
+ };
55
+ };
56
+ loop: {
57
+ anyOf: ({
58
+ type: string;
59
+ additionalProperties: boolean;
60
+ required: string[];
61
+ properties: {
62
+ start: {
63
+ type: string;
64
+ };
65
+ end: {
66
+ type: string;
67
+ };
68
+ };
69
+ } | {
70
+ type: string;
71
+ })[];
72
+ };
73
+ type: {
74
+ type: string;
75
+ enum: string[];
76
+ };
77
+ muted: {
78
+ type: string;
79
+ };
80
+ playing: {
81
+ type: string;
82
+ };
83
+ elapsedTime: {
84
+ type: string;
85
+ };
86
+ playIcon: {
87
+ type: string;
88
+ additionalProperties: boolean;
89
+ properties: {
90
+ type: {
91
+ type: string;
92
+ enum: string[];
93
+ };
94
+ theme: {
95
+ type: string;
96
+ enum: string[];
97
+ };
98
+ text: {
99
+ type: string;
100
+ };
101
+ };
102
+ };
103
+ controls: {
104
+ type: string;
105
+ enum: string[];
106
+ };
107
+ };
108
+ };
109
+ youtube: {
110
+ type: string;
111
+ };
112
+ parallax: {
113
+ type: string;
114
+ };
115
+ height: {
116
+ type: string;
117
+ };
118
+ previewImg: {
119
+ type: string;
120
+ };
121
+ dataLens: {
122
+ oneOf: ({
123
+ type: string;
124
+ additionalProperties: boolean;
125
+ required: string[];
126
+ properties: {
127
+ id: {
128
+ type: string;
129
+ };
130
+ theme: {
131
+ type: string;
132
+ enum: string[];
133
+ };
134
+ };
135
+ } | {
136
+ type: string;
137
+ })[];
138
+ };
139
+ };
140
+ };
1
141
  export declare const HeaderProperties: {
2
142
  title: {
3
143
  type: string;
@@ -140,19 +280,35 @@ export declare const HeaderProperties: {
140
280
  };
141
281
  background: {
142
282
  oneOf: ({
143
- oneOf: ({
144
- type: string;
145
- additionalProperties: boolean;
146
- required: never[];
147
- properties: {
148
- fullWidth: {
149
- type: string;
150
- };
151
- color: {
283
+ type: string;
284
+ additionalProperties: boolean;
285
+ required: never[];
286
+ properties: {
287
+ fullWidth: {
288
+ type: string;
289
+ };
290
+ fullWidthMedia: {
291
+ type: string;
292
+ };
293
+ color: {
294
+ type: string;
295
+ };
296
+ image: {
297
+ anyOf: ({
298
+ oneOf: ({
299
+ type: string;
300
+ properties: {
301
+ when: {
302
+ type: string;
303
+ };
304
+ };
305
+ } | {
306
+ type: string;
307
+ pattern: string;
308
+ })[];
309
+ } | {
152
310
  type: string;
153
- };
154
- image: {
155
- anyOf: ({
311
+ items: {
156
312
  oneOf: ({
157
313
  type: string;
158
314
  properties: {
@@ -164,139 +320,104 @@ export declare const HeaderProperties: {
164
320
  type: string;
165
321
  pattern: string;
166
322
  })[];
167
- } | {
323
+ };
324
+ })[];
325
+ };
326
+ video: {
327
+ type: string;
328
+ additionalProperties: boolean;
329
+ required: string[];
330
+ properties: {
331
+ src: {
168
332
  type: string;
169
333
  items: {
170
- oneOf: ({
171
- type: string;
172
- properties: {
173
- when: {
174
- type: string;
175
- };
176
- };
177
- } | {
178
- type: string;
179
- pattern: string;
180
- })[];
181
- };
182
- })[];
183
- };
184
- video: {
185
- type: string;
186
- additionalProperties: boolean;
187
- required: string[];
188
- properties: {
189
- src: {
190
- type: string;
191
- items: {
192
- type: string;
193
- };
194
- };
195
- loop: {
196
- anyOf: ({
197
- type: string;
198
- additionalProperties: boolean;
199
- required: string[];
200
- properties: {
201
- start: {
202
- type: string;
203
- };
204
- end: {
205
- type: string;
206
- };
207
- };
208
- } | {
209
- type: string;
210
- })[];
211
- };
212
- type: {
213
- type: string;
214
- enum: string[];
215
- };
216
- muted: {
217
- type: string;
218
- };
219
- playing: {
220
- type: string;
221
- };
222
- elapsedTime: {
223
334
  type: string;
224
335
  };
225
- playIcon: {
336
+ };
337
+ loop: {
338
+ anyOf: ({
226
339
  type: string;
227
340
  additionalProperties: boolean;
341
+ required: string[];
228
342
  properties: {
229
- type: {
230
- type: string;
231
- enum: string[];
232
- };
233
- theme: {
343
+ start: {
234
344
  type: string;
235
- enum: string[];
236
345
  };
237
- text: {
346
+ end: {
238
347
  type: string;
239
348
  };
240
349
  };
241
- };
242
- controls: {
350
+ } | {
243
351
  type: string;
244
- enum: string[];
245
- };
352
+ })[];
246
353
  };
247
- };
248
- youtube: {
249
- type: string;
250
- };
251
- parallax: {
252
- type: string;
253
- };
254
- height: {
255
- type: string;
256
- };
257
- previewImg: {
258
- type: string;
259
- };
260
- dataLens: {
261
- oneOf: ({
354
+ type: {
355
+ type: string;
356
+ enum: string[];
357
+ };
358
+ muted: {
359
+ type: string;
360
+ };
361
+ playing: {
362
+ type: string;
363
+ };
364
+ elapsedTime: {
365
+ type: string;
366
+ };
367
+ playIcon: {
262
368
  type: string;
263
369
  additionalProperties: boolean;
264
- required: string[];
265
370
  properties: {
266
- id: {
371
+ type: {
267
372
  type: string;
373
+ enum: string[];
268
374
  };
269
375
  theme: {
270
376
  type: string;
271
377
  enum: string[];
272
378
  };
379
+ text: {
380
+ type: string;
381
+ };
273
382
  };
274
- } | {
383
+ };
384
+ controls: {
275
385
  type: string;
276
- })[];
386
+ enum: string[];
387
+ };
277
388
  };
278
389
  };
279
- } | {
280
- type: string;
281
- additionalProperties: boolean;
282
- properties: {
283
- color: {
284
- type: string;
285
- };
286
- url: {
287
- type: string;
288
- };
289
- disableCompress: {
290
- type: string;
291
- };
292
- fullWidth: {
390
+ youtube: {
391
+ type: string;
392
+ };
393
+ parallax: {
394
+ type: string;
395
+ };
396
+ height: {
397
+ type: string;
398
+ };
399
+ previewImg: {
400
+ type: string;
401
+ };
402
+ dataLens: {
403
+ oneOf: ({
293
404
  type: string;
294
- };
295
- fullWidthMedia: {
405
+ additionalProperties: boolean;
406
+ required: string[];
407
+ properties: {
408
+ id: {
409
+ type: string;
410
+ };
411
+ theme: {
412
+ type: string;
413
+ enum: string[];
414
+ };
415
+ };
416
+ } | {
296
417
  type: string;
297
- };
418
+ })[];
298
419
  };
299
- })[];
420
+ };
300
421
  } | {
301
422
  type: string;
302
423
  additionalProperties: boolean;
@@ -485,19 +606,35 @@ export declare const HeaderBlock: {
485
606
  };
486
607
  background: {
487
608
  oneOf: ({
488
- oneOf: ({
489
- type: string;
490
- additionalProperties: boolean;
491
- required: never[];
492
- properties: {
493
- fullWidth: {
494
- type: string;
495
- };
496
- color: {
609
+ type: string;
610
+ additionalProperties: boolean;
611
+ required: never[];
612
+ properties: {
613
+ fullWidth: {
614
+ type: string;
615
+ };
616
+ fullWidthMedia: {
617
+ type: string;
618
+ };
619
+ color: {
620
+ type: string;
621
+ };
622
+ image: {
623
+ anyOf: ({
624
+ oneOf: ({
625
+ type: string;
626
+ properties: {
627
+ when: {
628
+ type: string;
629
+ };
630
+ };
631
+ } | {
632
+ type: string;
633
+ pattern: string;
634
+ })[];
635
+ } | {
497
636
  type: string;
498
- };
499
- image: {
500
- anyOf: ({
637
+ items: {
501
638
  oneOf: ({
502
639
  type: string;
503
640
  properties: {
@@ -509,139 +646,104 @@ export declare const HeaderBlock: {
509
646
  type: string;
510
647
  pattern: string;
511
648
  })[];
512
- } | {
649
+ };
650
+ })[];
651
+ };
652
+ video: {
653
+ type: string;
654
+ additionalProperties: boolean;
655
+ required: string[];
656
+ properties: {
657
+ src: {
513
658
  type: string;
514
659
  items: {
515
- oneOf: ({
516
- type: string;
517
- properties: {
518
- when: {
519
- type: string;
520
- };
521
- };
522
- } | {
523
- type: string;
524
- pattern: string;
525
- })[];
526
- };
527
- })[];
528
- };
529
- video: {
530
- type: string;
531
- additionalProperties: boolean;
532
- required: string[];
533
- properties: {
534
- src: {
535
660
  type: string;
536
- items: {
537
- type: string;
538
- };
539
661
  };
540
- loop: {
541
- anyOf: ({
542
- type: string;
543
- additionalProperties: boolean;
544
- required: string[];
545
- properties: {
546
- start: {
547
- type: string;
548
- };
549
- end: {
550
- type: string;
551
- };
552
- };
553
- } | {
554
- type: string;
555
- })[];
556
- };
557
- type: {
558
- type: string;
559
- enum: string[];
560
- };
561
- muted: {
562
- type: string;
563
- };
564
- playing: {
565
- type: string;
566
- };
567
- elapsedTime: {
568
- type: string;
569
- };
570
- playIcon: {
662
+ };
663
+ loop: {
664
+ anyOf: ({
571
665
  type: string;
572
666
  additionalProperties: boolean;
667
+ required: string[];
573
668
  properties: {
574
- type: {
575
- type: string;
576
- enum: string[];
577
- };
578
- theme: {
669
+ start: {
579
670
  type: string;
580
- enum: string[];
581
671
  };
582
- text: {
672
+ end: {
583
673
  type: string;
584
674
  };
585
675
  };
586
- };
587
- controls: {
676
+ } | {
588
677
  type: string;
589
- enum: string[];
590
- };
678
+ })[];
591
679
  };
592
- };
593
- youtube: {
594
- type: string;
595
- };
596
- parallax: {
597
- type: string;
598
- };
599
- height: {
600
- type: string;
601
- };
602
- previewImg: {
603
- type: string;
604
- };
605
- dataLens: {
606
- oneOf: ({
680
+ type: {
681
+ type: string;
682
+ enum: string[];
683
+ };
684
+ muted: {
685
+ type: string;
686
+ };
687
+ playing: {
688
+ type: string;
689
+ };
690
+ elapsedTime: {
691
+ type: string;
692
+ };
693
+ playIcon: {
607
694
  type: string;
608
695
  additionalProperties: boolean;
609
- required: string[];
610
696
  properties: {
611
- id: {
697
+ type: {
612
698
  type: string;
699
+ enum: string[];
613
700
  };
614
701
  theme: {
615
702
  type: string;
616
703
  enum: string[];
617
704
  };
705
+ text: {
706
+ type: string;
707
+ };
618
708
  };
619
- } | {
709
+ };
710
+ controls: {
620
711
  type: string;
621
- })[];
712
+ enum: string[];
713
+ };
622
714
  };
623
715
  };
624
- } | {
625
- type: string;
626
- additionalProperties: boolean;
627
- properties: {
628
- color: {
629
- type: string;
630
- };
631
- url: {
632
- type: string;
633
- };
634
- disableCompress: {
635
- type: string;
636
- };
637
- fullWidth: {
716
+ youtube: {
717
+ type: string;
718
+ };
719
+ parallax: {
720
+ type: string;
721
+ };
722
+ height: {
723
+ type: string;
724
+ };
725
+ previewImg: {
726
+ type: string;
727
+ };
728
+ dataLens: {
729
+ oneOf: ({
638
730
  type: string;
639
- };
640
- fullWidthMedia: {
731
+ additionalProperties: boolean;
732
+ required: string[];
733
+ properties: {
734
+ id: {
735
+ type: string;
736
+ };
737
+ theme: {
738
+ type: string;
739
+ enum: string[];
740
+ };
741
+ };
742
+ } | {
641
743
  type: string;
642
- };
744
+ })[];
643
745
  };
644
- })[];
746
+ };
645
747
  } | {
646
748
  type: string;
647
749
  additionalProperties: boolean;