@gravity-ui/page-constructor 4.42.3 → 4.42.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.
@@ -5,6 +5,10 @@ export declare const cardSchemas: {
5
5
  additionalProperties: boolean;
6
6
  required: string[];
7
7
  properties: {
8
+ theme: {
9
+ type: string;
10
+ enum: string[];
11
+ };
8
12
  title: {
9
13
  type: string;
10
14
  };
@@ -396,276 +400,6 @@ export declare const cardSchemas: {
396
400
  type: string;
397
401
  };
398
402
  };
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
403
  border: {
670
404
  type: string;
671
405
  enum: string[];
@@ -3,6 +3,10 @@ export declare const PriceCardBlock: {
3
3
  additionalProperties: boolean;
4
4
  required: string[];
5
5
  properties: {
6
+ theme: {
7
+ type: string;
8
+ enum: string[];
9
+ };
6
10
  title: {
7
11
  type: string;
8
12
  };
@@ -394,276 +398,6 @@ export declare const PriceCardBlock: {
394
398
  type: string;
395
399
  };
396
400
  };
397
- animated: {
398
- type: string;
399
- };
400
- color: {
401
- type: string;
402
- };
403
- image: {
404
- oneOf: ({
405
- optionName: string;
406
- oneOf: ({
407
- type: string;
408
- properties: {
409
- when: {
410
- type: string;
411
- };
412
- };
413
- } | {
414
- type: string;
415
- pattern: string;
416
- optionName: string;
417
- })[];
418
- type?: undefined;
419
- items?: undefined;
420
- } | {
421
- type: string;
422
- items: {
423
- oneOf: ({
424
- type: string;
425
- properties: {
426
- when: {
427
- type: string;
428
- };
429
- };
430
- } | {
431
- type: string;
432
- pattern: string;
433
- optionName: string;
434
- })[];
435
- };
436
- optionName: string;
437
- })[];
438
- };
439
- video: {
440
- type: string;
441
- additionalProperties: boolean;
442
- required: string[];
443
- properties: {
444
- src: {
445
- type: string;
446
- items: {
447
- type: string;
448
- };
449
- };
450
- loop: {
451
- oneOf: ({
452
- optionName: string;
453
- type: string;
454
- additionalProperties: boolean;
455
- required: string[];
456
- properties: {
457
- start: {
458
- type: string;
459
- };
460
- end: {
461
- type: string;
462
- };
463
- };
464
- } | {
465
- type: string;
466
- optionName: string;
467
- })[];
468
- };
469
- type: {
470
- type: string;
471
- enum: string[];
472
- };
473
- muted: {
474
- type: string;
475
- };
476
- autoplay: {
477
- type: string;
478
- };
479
- elapsedTime: {
480
- type: string;
481
- };
482
- playButton: {
483
- type: string;
484
- additionalProperties: boolean;
485
- properties: {
486
- type: {
487
- type: string;
488
- enum: string[];
489
- };
490
- theme: {
491
- type: string;
492
- enum: string[];
493
- };
494
- text: {
495
- type: string;
496
- contentType: string;
497
- };
498
- };
499
- };
500
- controls: {
501
- type: string;
502
- enum: import("../..").MediaVideoControlsType[];
503
- };
504
- customControlsOptions: {
505
- type: string;
506
- additionalProperties: boolean;
507
- properties: {
508
- type: {
509
- type: string;
510
- enum: import("../..").CustomControlsType[];
511
- };
512
- muteButtonShown: {
513
- type: string;
514
- };
515
- positioning: {
516
- type: string;
517
- enum: import("../..").CustomControlsButtonPositioning[];
518
- };
519
- };
520
- };
521
- ariaLabel: {
522
- type: string;
523
- };
524
- };
525
- };
526
- youtube: {
527
- type: string;
528
- };
529
- parallax: {
530
- type: string;
531
- };
532
- height: {
533
- type: string;
534
- };
535
- previewImg: {
536
- type: string;
537
- };
538
- dataLens: {
539
- oneOf: ({
540
- type: string;
541
- optionName: string;
542
- } | {
543
- optionName: string;
544
- type: string;
545
- additionalProperties: boolean;
546
- required: string[];
547
- properties: {
548
- id: {
549
- type: string;
550
- };
551
- theme: {
552
- type: string;
553
- enum: string[];
554
- };
555
- };
556
- })[];
557
- };
558
- fullscreen: {
559
- type: string;
560
- };
561
- analyticsEvents: {
562
- anyOf: ({
563
- type: string;
564
- additionalProperties: {
565
- type: string;
566
- };
567
- required: string[];
568
- properties: {
569
- name: {
570
- type: string;
571
- };
572
- type: {
573
- type: string;
574
- };
575
- counters: {
576
- type: string;
577
- additionalProperties: boolean;
578
- required: never[];
579
- properties: {
580
- include: {
581
- type: string;
582
- items: {
583
- type: string;
584
- };
585
- };
586
- exclude: {
587
- type: string;
588
- items: {
589
- type: string;
590
- };
591
- };
592
- };
593
- };
594
- context: {
595
- type: string;
596
- };
597
- };
598
- } | {
599
- type: string;
600
- items: {
601
- type: string;
602
- additionalProperties: {
603
- type: string;
604
- };
605
- required: string[];
606
- properties: {
607
- name: {
608
- type: string;
609
- };
610
- type: {
611
- type: string;
612
- };
613
- counters: {
614
- type: string;
615
- additionalProperties: boolean;
616
- required: never[];
617
- properties: {
618
- include: {
619
- type: string;
620
- items: {
621
- type: string;
622
- };
623
- };
624
- exclude: {
625
- type: string;
626
- items: {
627
- type: string;
628
- };
629
- };
630
- };
631
- };
632
- context: {
633
- type: string;
634
- };
635
- };
636
- };
637
- })[];
638
- };
639
- ratio: {
640
- type: string;
641
- };
642
- iframe: {
643
- type: string;
644
- additionalProperties: boolean;
645
- required: string[];
646
- properties: {
647
- src: {
648
- type: string;
649
- };
650
- name: {
651
- type: string;
652
- };
653
- title: {
654
- type: string;
655
- };
656
- height: {
657
- type: string;
658
- };
659
- width: {
660
- type: string;
661
- };
662
- };
663
- };
664
- margins: {
665
- type: string;
666
- };
667
401
  border: {
668
402
  type: string;
669
403
  enum: string[];
@@ -1,9 +1,10 @@
1
- import { AnimatableProps, BaseProps, ButtonBlock, CardBase, LinkProps, MediaProps, } from '../../schema/validators/common';
1
+ import { BaseProps, ButtonBlock, CardBase, LinkProps } from '../../schema/validators/common';
2
+ import { ContentBase } from '../Content/schema';
2
3
  export const PriceCardBlock = {
3
4
  'price-card': {
4
5
  additionalProperties: false,
5
6
  required: ['title', 'price'],
6
- properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BaseProps), CardBase), MediaProps), AnimatableProps), { title: {
7
+ properties: Object.assign(Object.assign(Object.assign({}, BaseProps), CardBase), { theme: ContentBase.theme, title: {
7
8
  type: 'string',
8
9
  }, price: {
9
10
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "4.42.3",
3
+ "version": "4.42.4",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {