@gravity-ui/page-constructor 4.42.2 → 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.
Files changed (32) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +12 -0
  2. package/build/cjs/blocks/Form/Form.css +1 -0
  3. package/build/cjs/blocks/Map/schema.d.ts +9 -0
  4. package/build/cjs/blocks/Media/schema.d.ts +18 -0
  5. package/build/cjs/blocks/Media/schema.js +1 -1
  6. package/build/cjs/components/MediaBase/MediaBase.js +2 -2
  7. package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
  8. package/build/cjs/models/constructor-items/sub-blocks.d.ts +4 -1
  9. package/build/cjs/schema/constants.d.ts +413 -0
  10. package/build/cjs/schema/constants.js +2 -1
  11. package/build/cjs/schema/validators/common.d.ts +8 -0
  12. package/build/cjs/schema/validators/common.js +4 -0
  13. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +8 -270
  14. package/build/cjs/sub-blocks/PriceCard/schema.js +2 -1
  15. package/build/esm/blocks/Banner/schema.d.ts +12 -0
  16. package/build/esm/blocks/Form/Form.css +1 -0
  17. package/build/esm/blocks/Map/schema.d.ts +9 -0
  18. package/build/esm/blocks/Media/schema.d.ts +18 -0
  19. package/build/esm/blocks/Media/schema.js +2 -2
  20. package/build/esm/components/MediaBase/MediaBase.js +2 -2
  21. package/build/esm/models/constructor-items/blocks.d.ts +1 -0
  22. package/build/esm/models/constructor-items/sub-blocks.d.ts +4 -1
  23. package/build/esm/schema/constants.d.ts +413 -0
  24. package/build/esm/schema/constants.js +3 -2
  25. package/build/esm/schema/validators/common.d.ts +8 -0
  26. package/build/esm/schema/validators/common.js +4 -0
  27. package/build/esm/sub-blocks/PriceCard/schema.d.ts +8 -270
  28. package/build/esm/sub-blocks/PriceCard/schema.js +3 -2
  29. package/package.json +1 -1
  30. package/server/models/constructor-items/blocks.d.ts +1 -0
  31. package/server/models/constructor-items/sub-blocks.d.ts +4 -1
  32. package/widget/index.js +1 -1
@@ -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
  };
@@ -245,6 +249,10 @@ export declare const PriceCardBlock: {
245
249
  type: string;
246
250
  enum: string[];
247
251
  };
252
+ width: {
253
+ type: string;
254
+ enum: string[];
255
+ };
248
256
  };
249
257
  if: {
250
258
  properties: {
@@ -390,276 +398,6 @@ export declare const PriceCardBlock: {
390
398
  type: string;
391
399
  };
392
400
  };
393
- animated: {
394
- type: string;
395
- };
396
- color: {
397
- type: string;
398
- };
399
- image: {
400
- oneOf: ({
401
- optionName: string;
402
- oneOf: ({
403
- type: string;
404
- properties: {
405
- when: {
406
- type: string;
407
- };
408
- };
409
- } | {
410
- type: string;
411
- pattern: string;
412
- optionName: string;
413
- })[];
414
- type?: undefined;
415
- items?: undefined;
416
- } | {
417
- type: string;
418
- items: {
419
- oneOf: ({
420
- type: string;
421
- properties: {
422
- when: {
423
- type: string;
424
- };
425
- };
426
- } | {
427
- type: string;
428
- pattern: string;
429
- optionName: string;
430
- })[];
431
- };
432
- optionName: string;
433
- })[];
434
- };
435
- video: {
436
- type: string;
437
- additionalProperties: boolean;
438
- required: string[];
439
- properties: {
440
- src: {
441
- type: string;
442
- items: {
443
- type: string;
444
- };
445
- };
446
- loop: {
447
- oneOf: ({
448
- optionName: string;
449
- type: string;
450
- additionalProperties: boolean;
451
- required: string[];
452
- properties: {
453
- start: {
454
- type: string;
455
- };
456
- end: {
457
- type: string;
458
- };
459
- };
460
- } | {
461
- type: string;
462
- optionName: string;
463
- })[];
464
- };
465
- type: {
466
- type: string;
467
- enum: string[];
468
- };
469
- muted: {
470
- type: string;
471
- };
472
- autoplay: {
473
- type: string;
474
- };
475
- elapsedTime: {
476
- type: string;
477
- };
478
- playButton: {
479
- type: string;
480
- additionalProperties: boolean;
481
- properties: {
482
- type: {
483
- type: string;
484
- enum: string[];
485
- };
486
- theme: {
487
- type: string;
488
- enum: string[];
489
- };
490
- text: {
491
- type: string;
492
- contentType: string;
493
- };
494
- };
495
- };
496
- controls: {
497
- type: string;
498
- enum: import("../..").MediaVideoControlsType[];
499
- };
500
- customControlsOptions: {
501
- type: string;
502
- additionalProperties: boolean;
503
- properties: {
504
- type: {
505
- type: string;
506
- enum: import("../..").CustomControlsType[];
507
- };
508
- muteButtonShown: {
509
- type: string;
510
- };
511
- positioning: {
512
- type: string;
513
- enum: import("../..").CustomControlsButtonPositioning[];
514
- };
515
- };
516
- };
517
- ariaLabel: {
518
- type: string;
519
- };
520
- };
521
- };
522
- youtube: {
523
- type: string;
524
- };
525
- parallax: {
526
- type: string;
527
- };
528
- height: {
529
- type: string;
530
- };
531
- previewImg: {
532
- type: string;
533
- };
534
- dataLens: {
535
- oneOf: ({
536
- type: string;
537
- optionName: string;
538
- } | {
539
- optionName: string;
540
- type: string;
541
- additionalProperties: boolean;
542
- required: string[];
543
- properties: {
544
- id: {
545
- type: string;
546
- };
547
- theme: {
548
- type: string;
549
- enum: string[];
550
- };
551
- };
552
- })[];
553
- };
554
- fullscreen: {
555
- type: string;
556
- };
557
- analyticsEvents: {
558
- anyOf: ({
559
- type: string;
560
- additionalProperties: {
561
- type: string;
562
- };
563
- required: string[];
564
- properties: {
565
- name: {
566
- type: string;
567
- };
568
- type: {
569
- type: string;
570
- };
571
- counters: {
572
- type: string;
573
- additionalProperties: boolean;
574
- required: never[];
575
- properties: {
576
- include: {
577
- type: string;
578
- items: {
579
- type: string;
580
- };
581
- };
582
- exclude: {
583
- type: string;
584
- items: {
585
- type: string;
586
- };
587
- };
588
- };
589
- };
590
- context: {
591
- type: string;
592
- };
593
- };
594
- } | {
595
- type: string;
596
- items: {
597
- type: string;
598
- additionalProperties: {
599
- type: string;
600
- };
601
- required: string[];
602
- properties: {
603
- name: {
604
- type: string;
605
- };
606
- type: {
607
- type: string;
608
- };
609
- counters: {
610
- type: string;
611
- additionalProperties: boolean;
612
- required: never[];
613
- properties: {
614
- include: {
615
- type: string;
616
- items: {
617
- type: string;
618
- };
619
- };
620
- exclude: {
621
- type: string;
622
- items: {
623
- type: string;
624
- };
625
- };
626
- };
627
- };
628
- context: {
629
- type: string;
630
- };
631
- };
632
- };
633
- })[];
634
- };
635
- ratio: {
636
- type: string;
637
- };
638
- iframe: {
639
- type: string;
640
- additionalProperties: boolean;
641
- required: string[];
642
- properties: {
643
- src: {
644
- type: string;
645
- };
646
- name: {
647
- type: string;
648
- };
649
- title: {
650
- type: string;
651
- };
652
- height: {
653
- type: string;
654
- };
655
- width: {
656
- type: string;
657
- };
658
- };
659
- };
660
- margins: {
661
- type: string;
662
- };
663
401
  border: {
664
402
  type: string;
665
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.2",
3
+ "version": "4.42.4",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -163,6 +163,7 @@ export interface MediaBaseBlockProps extends Animatable, MediaContentProps {
163
163
  largeMedia?: boolean;
164
164
  mediaOnly?: boolean;
165
165
  disableShadow?: boolean;
166
+ mediaOnlyColSizes?: GridColumnSizesType;
166
167
  }
167
168
  export interface MediaContentProps extends Omit<ContentBlockProps, 'colSizes' | 'text' | 'title' | 'theme' | 'centered'> {
168
169
  title: string;
@@ -155,5 +155,8 @@ export type BannerCardModel = {
155
155
  export type BasicCardModel = {
156
156
  type: SubBlockType.BasicCard;
157
157
  } & BasicCardProps;
158
- export type SubBlockModels = DividerModel | QuoteModel | PriceDetailedModel | MediaCardModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel | LayoutItemModel;
158
+ export type PriceCardModel = {
159
+ type: SubBlockType.PriceCard;
160
+ } & PriceCardProps;
161
+ export type SubBlockModels = DividerModel | QuoteModel | PriceDetailedModel | MediaCardModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel | PriceCardModel | LayoutItemModel;
159
162
  export type SubBlock = SubBlockModels;