@gravity-ui/page-constructor 4.42.1 → 4.42.3

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 (36) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +12 -0
  2. package/build/cjs/blocks/Companies/schema.d.ts +4 -0
  3. package/build/cjs/blocks/Companies/schema.js +3 -0
  4. package/build/cjs/blocks/Icons/schema.d.ts +18 -0
  5. package/build/cjs/blocks/Icons/schema.js +4 -1
  6. package/build/cjs/blocks/Map/schema.d.ts +9 -0
  7. package/build/cjs/blocks/Media/schema.d.ts +18 -0
  8. package/build/cjs/blocks/Media/schema.js +1 -1
  9. package/build/cjs/components/MediaBase/MediaBase.js +2 -2
  10. package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
  11. package/build/cjs/models/constructor-items/sub-blocks.d.ts +4 -1
  12. package/build/cjs/schema/constants.d.ts +679 -0
  13. package/build/cjs/schema/constants.js +2 -1
  14. package/build/cjs/schema/validators/common.d.ts +8 -0
  15. package/build/cjs/schema/validators/common.js +4 -0
  16. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +4 -0
  17. package/build/esm/blocks/Banner/schema.d.ts +12 -0
  18. package/build/esm/blocks/Companies/schema.d.ts +4 -0
  19. package/build/esm/blocks/Companies/schema.js +3 -0
  20. package/build/esm/blocks/Icons/schema.d.ts +18 -0
  21. package/build/esm/blocks/Icons/schema.js +5 -2
  22. package/build/esm/blocks/Map/schema.d.ts +9 -0
  23. package/build/esm/blocks/Media/schema.d.ts +18 -0
  24. package/build/esm/blocks/Media/schema.js +2 -2
  25. package/build/esm/components/MediaBase/MediaBase.js +2 -2
  26. package/build/esm/models/constructor-items/blocks.d.ts +1 -0
  27. package/build/esm/models/constructor-items/sub-blocks.d.ts +4 -1
  28. package/build/esm/schema/constants.d.ts +679 -0
  29. package/build/esm/schema/constants.js +3 -2
  30. package/build/esm/schema/validators/common.d.ts +8 -0
  31. package/build/esm/schema/validators/common.js +4 -0
  32. package/build/esm/sub-blocks/PriceCard/schema.d.ts +4 -0
  33. package/package.json +1 -1
  34. package/server/models/constructor-items/blocks.d.ts +1 -0
  35. package/server/models/constructor-items/sub-blocks.d.ts +4 -1
  36. package/widget/index.js +1 -1
@@ -1,6 +1,681 @@
1
1
  import { BlockType } from '../models';
2
2
  export declare const blockSchemas: Record<BlockType, object>;
3
3
  export declare const cardSchemas: {
4
+ 'price-card': {
5
+ additionalProperties: boolean;
6
+ required: string[];
7
+ properties: {
8
+ title: {
9
+ type: string;
10
+ };
11
+ price: {
12
+ type: string;
13
+ };
14
+ pricePeriod: {
15
+ type: string;
16
+ };
17
+ priceDetails: {
18
+ type: string;
19
+ };
20
+ description: {
21
+ type: string;
22
+ };
23
+ buttons: {
24
+ type: string;
25
+ items: {
26
+ type: string;
27
+ additionalProperties: boolean;
28
+ properties: {
29
+ text: {
30
+ type: string;
31
+ contentType: string;
32
+ };
33
+ url: {
34
+ type: string;
35
+ };
36
+ urlTitle: {
37
+ type: string;
38
+ };
39
+ primary: {
40
+ type: string;
41
+ };
42
+ size: {
43
+ type: string;
44
+ enum: string[];
45
+ };
46
+ theme: {
47
+ type: string;
48
+ enum: string[];
49
+ };
50
+ img: {
51
+ oneOf: ({
52
+ type: string;
53
+ optionName: string;
54
+ additionalProperties?: undefined;
55
+ required?: undefined;
56
+ properties?: undefined;
57
+ } | {
58
+ type: string;
59
+ additionalProperties: boolean;
60
+ required: string[];
61
+ properties: {
62
+ data: {
63
+ type: string;
64
+ };
65
+ position: {
66
+ type: string;
67
+ enum: string[];
68
+ };
69
+ alt: {
70
+ type: string;
71
+ contentType: string;
72
+ };
73
+ };
74
+ optionName: string;
75
+ })[];
76
+ };
77
+ metrikaGoals: {
78
+ oneOf: ({
79
+ type: string;
80
+ optionName: string;
81
+ items?: undefined;
82
+ } | {
83
+ type: string;
84
+ items: {
85
+ type: string;
86
+ additionalProperties?: undefined;
87
+ required?: undefined;
88
+ properties?: undefined;
89
+ };
90
+ optionName: string;
91
+ } | {
92
+ type: string;
93
+ items: {
94
+ type: string;
95
+ additionalProperties: boolean;
96
+ required: string[];
97
+ properties: {
98
+ name: {
99
+ type: string;
100
+ };
101
+ isCrossSite: {
102
+ type: string;
103
+ };
104
+ };
105
+ };
106
+ optionName: string;
107
+ })[];
108
+ };
109
+ pixelEvents: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ required: string[];
114
+ additionalProperties: boolean;
115
+ properties: {
116
+ name: {
117
+ type: string;
118
+ enum: import("../models").PixelEventType[];
119
+ };
120
+ data: {};
121
+ };
122
+ select: {
123
+ $data: string;
124
+ };
125
+ selectCases: {
126
+ SubmitApplication: {
127
+ additionalProperties: boolean;
128
+ properties: {
129
+ name: {};
130
+ };
131
+ };
132
+ Contact: {
133
+ additionalProperties: boolean;
134
+ properties: {
135
+ name: {};
136
+ };
137
+ };
138
+ Lead: {
139
+ additionalProperties: boolean;
140
+ properties: {
141
+ name: {};
142
+ data: {
143
+ type: string;
144
+ additionalProperties: boolean;
145
+ properties: {
146
+ content_category: {
147
+ type: string;
148
+ };
149
+ content_name: {
150
+ type: string;
151
+ };
152
+ currency: {
153
+ type: string;
154
+ };
155
+ value: {
156
+ type: string;
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ };
164
+ };
165
+ analyticsEvents: {
166
+ oneOf: ({
167
+ optionName: string;
168
+ type: string;
169
+ additionalProperties: {
170
+ type: string;
171
+ };
172
+ required: string[];
173
+ properties: {
174
+ name: {
175
+ type: string;
176
+ };
177
+ type: {
178
+ type: string;
179
+ };
180
+ counters: {
181
+ type: string;
182
+ additionalProperties: boolean;
183
+ required: never[];
184
+ properties: {
185
+ include: {
186
+ type: string;
187
+ items: {
188
+ type: string;
189
+ };
190
+ };
191
+ exclude: {
192
+ type: string;
193
+ items: {
194
+ type: string;
195
+ };
196
+ };
197
+ };
198
+ };
199
+ context: {
200
+ type: string;
201
+ };
202
+ };
203
+ items?: undefined;
204
+ } | {
205
+ type: string;
206
+ items: {
207
+ type: string;
208
+ additionalProperties: {
209
+ type: string;
210
+ };
211
+ required: string[];
212
+ properties: {
213
+ name: {
214
+ type: string;
215
+ };
216
+ type: {
217
+ type: string;
218
+ };
219
+ counters: {
220
+ type: string;
221
+ additionalProperties: boolean;
222
+ required: never[];
223
+ properties: {
224
+ include: {
225
+ type: string;
226
+ items: {
227
+ type: string;
228
+ };
229
+ };
230
+ exclude: {
231
+ type: string;
232
+ items: {
233
+ type: string;
234
+ };
235
+ };
236
+ };
237
+ };
238
+ context: {
239
+ type: string;
240
+ };
241
+ };
242
+ };
243
+ optionName: string;
244
+ })[];
245
+ };
246
+ target: {
247
+ type: string;
248
+ enum: string[];
249
+ };
250
+ width: {
251
+ type: string;
252
+ enum: string[];
253
+ };
254
+ };
255
+ if: {
256
+ properties: {
257
+ theme: {
258
+ enum: string[];
259
+ };
260
+ };
261
+ };
262
+ then: {
263
+ required: string[];
264
+ };
265
+ else: {
266
+ required: string[];
267
+ };
268
+ };
269
+ };
270
+ links: {
271
+ type: string;
272
+ items: {
273
+ type: string;
274
+ additionalProperties: boolean;
275
+ required: string[];
276
+ properties: {
277
+ text: {
278
+ type: string;
279
+ contentType: string;
280
+ };
281
+ url: {
282
+ type: string;
283
+ };
284
+ urlTitle: {
285
+ type: string;
286
+ };
287
+ arrow: {
288
+ type: string;
289
+ };
290
+ theme: {
291
+ type: string;
292
+ enum: string[];
293
+ };
294
+ textSize: {
295
+ type: string;
296
+ enum: string[];
297
+ };
298
+ target: {
299
+ type: string;
300
+ enum: string[];
301
+ };
302
+ analyticsEvents: {
303
+ oneOf: ({
304
+ optionName: string;
305
+ type: string;
306
+ additionalProperties: {
307
+ type: string;
308
+ };
309
+ required: string[];
310
+ properties: {
311
+ name: {
312
+ type: string;
313
+ };
314
+ type: {
315
+ type: string;
316
+ };
317
+ counters: {
318
+ type: string;
319
+ additionalProperties: boolean;
320
+ required: never[];
321
+ properties: {
322
+ include: {
323
+ type: string;
324
+ items: {
325
+ type: string;
326
+ };
327
+ };
328
+ exclude: {
329
+ type: string;
330
+ items: {
331
+ type: string;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ context: {
337
+ type: string;
338
+ };
339
+ };
340
+ items?: undefined;
341
+ } | {
342
+ type: string;
343
+ items: {
344
+ type: string;
345
+ additionalProperties: {
346
+ type: string;
347
+ };
348
+ required: string[];
349
+ properties: {
350
+ name: {
351
+ type: string;
352
+ };
353
+ type: {
354
+ type: string;
355
+ };
356
+ counters: {
357
+ type: string;
358
+ additionalProperties: boolean;
359
+ required: never[];
360
+ properties: {
361
+ include: {
362
+ type: string;
363
+ items: {
364
+ type: string;
365
+ };
366
+ };
367
+ exclude: {
368
+ type: string;
369
+ items: {
370
+ type: string;
371
+ };
372
+ };
373
+ };
374
+ };
375
+ context: {
376
+ type: string;
377
+ };
378
+ };
379
+ };
380
+ optionName: string;
381
+ })[];
382
+ };
383
+ type: {};
384
+ when: {
385
+ type: string;
386
+ };
387
+ };
388
+ };
389
+ };
390
+ backgroundColor: {
391
+ type: string;
392
+ };
393
+ list: {
394
+ type: string;
395
+ items: {
396
+ type: string;
397
+ };
398
+ };
399
+ animated: {
400
+ type: string;
401
+ };
402
+ color: {
403
+ type: string;
404
+ };
405
+ image: {
406
+ oneOf: ({
407
+ optionName: string;
408
+ oneOf: ({
409
+ type: string;
410
+ properties: {
411
+ when: {
412
+ type: string;
413
+ };
414
+ };
415
+ } | {
416
+ type: string;
417
+ pattern: string;
418
+ optionName: string;
419
+ })[];
420
+ type?: undefined;
421
+ items?: undefined;
422
+ } | {
423
+ type: string;
424
+ items: {
425
+ oneOf: ({
426
+ type: string;
427
+ properties: {
428
+ when: {
429
+ type: string;
430
+ };
431
+ };
432
+ } | {
433
+ type: string;
434
+ pattern: string;
435
+ optionName: string;
436
+ })[];
437
+ };
438
+ optionName: string;
439
+ })[];
440
+ };
441
+ video: {
442
+ type: string;
443
+ additionalProperties: boolean;
444
+ required: string[];
445
+ properties: {
446
+ src: {
447
+ type: string;
448
+ items: {
449
+ type: string;
450
+ };
451
+ };
452
+ loop: {
453
+ oneOf: ({
454
+ optionName: string;
455
+ type: string;
456
+ additionalProperties: boolean;
457
+ required: string[];
458
+ properties: {
459
+ start: {
460
+ type: string;
461
+ };
462
+ end: {
463
+ type: string;
464
+ };
465
+ };
466
+ } | {
467
+ type: string;
468
+ optionName: string;
469
+ })[];
470
+ };
471
+ type: {
472
+ type: string;
473
+ enum: string[];
474
+ };
475
+ muted: {
476
+ type: string;
477
+ };
478
+ autoplay: {
479
+ type: string;
480
+ };
481
+ elapsedTime: {
482
+ type: string;
483
+ };
484
+ playButton: {
485
+ type: string;
486
+ additionalProperties: boolean;
487
+ properties: {
488
+ type: {
489
+ type: string;
490
+ enum: string[];
491
+ };
492
+ theme: {
493
+ type: string;
494
+ enum: string[];
495
+ };
496
+ text: {
497
+ type: string;
498
+ contentType: string;
499
+ };
500
+ };
501
+ };
502
+ controls: {
503
+ type: string;
504
+ enum: import("../models").MediaVideoControlsType[];
505
+ };
506
+ customControlsOptions: {
507
+ type: string;
508
+ additionalProperties: boolean;
509
+ properties: {
510
+ type: {
511
+ type: string;
512
+ enum: import("../models").CustomControlsType[];
513
+ };
514
+ muteButtonShown: {
515
+ type: string;
516
+ };
517
+ positioning: {
518
+ type: string;
519
+ enum: import("../models").CustomControlsButtonPositioning[];
520
+ };
521
+ };
522
+ };
523
+ ariaLabel: {
524
+ type: string;
525
+ };
526
+ };
527
+ };
528
+ youtube: {
529
+ type: string;
530
+ };
531
+ parallax: {
532
+ type: string;
533
+ };
534
+ height: {
535
+ type: string;
536
+ };
537
+ previewImg: {
538
+ type: string;
539
+ };
540
+ dataLens: {
541
+ oneOf: ({
542
+ type: string;
543
+ optionName: string;
544
+ } | {
545
+ optionName: string;
546
+ type: string;
547
+ additionalProperties: boolean;
548
+ required: string[];
549
+ properties: {
550
+ id: {
551
+ type: string;
552
+ };
553
+ theme: {
554
+ type: string;
555
+ enum: string[];
556
+ };
557
+ };
558
+ })[];
559
+ };
560
+ fullscreen: {
561
+ type: string;
562
+ };
563
+ analyticsEvents: {
564
+ anyOf: ({
565
+ type: string;
566
+ additionalProperties: {
567
+ type: string;
568
+ };
569
+ required: string[];
570
+ properties: {
571
+ name: {
572
+ type: string;
573
+ };
574
+ type: {
575
+ type: string;
576
+ };
577
+ counters: {
578
+ type: string;
579
+ additionalProperties: boolean;
580
+ required: never[];
581
+ properties: {
582
+ include: {
583
+ type: string;
584
+ items: {
585
+ type: string;
586
+ };
587
+ };
588
+ exclude: {
589
+ type: string;
590
+ items: {
591
+ type: string;
592
+ };
593
+ };
594
+ };
595
+ };
596
+ context: {
597
+ type: string;
598
+ };
599
+ };
600
+ } | {
601
+ type: string;
602
+ items: {
603
+ type: string;
604
+ additionalProperties: {
605
+ type: string;
606
+ };
607
+ required: string[];
608
+ properties: {
609
+ name: {
610
+ type: string;
611
+ };
612
+ type: {
613
+ type: string;
614
+ };
615
+ counters: {
616
+ type: string;
617
+ additionalProperties: boolean;
618
+ required: never[];
619
+ properties: {
620
+ include: {
621
+ type: string;
622
+ items: {
623
+ type: string;
624
+ };
625
+ };
626
+ exclude: {
627
+ type: string;
628
+ items: {
629
+ type: string;
630
+ };
631
+ };
632
+ };
633
+ };
634
+ context: {
635
+ type: string;
636
+ };
637
+ };
638
+ };
639
+ })[];
640
+ };
641
+ ratio: {
642
+ type: string;
643
+ };
644
+ iframe: {
645
+ type: string;
646
+ additionalProperties: boolean;
647
+ required: string[];
648
+ properties: {
649
+ src: {
650
+ type: string;
651
+ };
652
+ name: {
653
+ type: string;
654
+ };
655
+ title: {
656
+ type: string;
657
+ };
658
+ height: {
659
+ type: string;
660
+ };
661
+ width: {
662
+ type: string;
663
+ };
664
+ };
665
+ };
666
+ margins: {
667
+ type: string;
668
+ };
669
+ border: {
670
+ type: string;
671
+ enum: string[];
672
+ };
673
+ type: {};
674
+ when: {
675
+ type: string;
676
+ };
677
+ };
678
+ };
4
679
  'basic-card': {
5
680
  additionalProperties: boolean;
6
681
  required: never[];
@@ -826,6 +1501,10 @@ export declare const cardSchemas: {
826
1501
  type: string;
827
1502
  enum: string[];
828
1503
  };
1504
+ width: {
1505
+ type: string;
1506
+ enum: string[];
1507
+ };
829
1508
  };
830
1509
  if: {
831
1510
  properties: {