@gravity-ui/page-constructor 4.42.2 → 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.
@@ -1,7 +1,7 @@
1
1
  import { BannerBlock, BannerCard, CardLayoutBlock, CompaniesBlock, ContentLayoutBlock, ExtendedFeaturesBlock, FilterBlock, FormBlock, HeaderBlock, HeaderSliderBlock, IconsBlock, InfoBlock, MapBlock, MediaBlock, PromoFeaturesBlock, QuestionsBlock, ShareBlock, SliderBlock, TableBlock, TabsBlock, } from './validators/blocks';
2
- import { BackgroundCard, BasicCard, Divider, MediaCardBlock, PriceDetailedBlock, Quote, } from './validators/sub-blocks';
2
+ import { BackgroundCard, BasicCard, Divider, MediaCardBlock, PriceCardBlock, PriceDetailedBlock, Quote, } from './validators/sub-blocks';
3
3
  export const blockSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Divider), ExtendedFeaturesBlock), PromoFeaturesBlock), SliderBlock), QuestionsBlock), HeaderBlock), BannerBlock), CompaniesBlock), MediaBlock), MapBlock), InfoBlock), TableBlock), TabsBlock), HeaderSliderBlock), IconsBlock), CardLayoutBlock), ContentLayoutBlock), ShareBlock), FilterBlock), FormBlock);
4
- export const cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, MediaCardBlock), BannerCard), PriceDetailedBlock), BackgroundCard), Quote), BasicCard);
4
+ export const cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, MediaCardBlock), BannerCard), PriceDetailedBlock), BackgroundCard), Quote), BasicCard), PriceCardBlock);
5
5
  export const constructorBlockSchemaNames = [
6
6
  'divider',
7
7
  'quote',
@@ -37,4 +37,5 @@ export const constructorCardSchemaNames = [
37
37
  'quote',
38
38
  'basic-card',
39
39
  'layout-item',
40
+ 'price-card',
40
41
  ];
@@ -768,6 +768,10 @@ export declare const ButtonProps: {
768
768
  type: string;
769
769
  enum: string[];
770
770
  };
771
+ width: {
772
+ type: string;
773
+ enum: string[];
774
+ };
771
775
  };
772
776
  export declare const MenuProps: {
773
777
  type: string;
@@ -1107,6 +1111,10 @@ export declare const ButtonBlock: {
1107
1111
  type: string;
1108
1112
  enum: string[];
1109
1113
  };
1114
+ width: {
1115
+ type: string;
1116
+ enum: string[];
1117
+ };
1110
1118
  };
1111
1119
  if: {
1112
1120
  properties: {
@@ -404,6 +404,10 @@ export const ButtonProps = {
404
404
  type: 'string',
405
405
  enum: ['_self', '_blank', '_parent', '_top'],
406
406
  },
407
+ width: {
408
+ type: 'string',
409
+ enum: ['auto', 'max'],
410
+ },
407
411
  };
408
412
  export const MenuProps = {
409
413
  type: 'object',
@@ -245,6 +245,10 @@ export declare const PriceCardBlock: {
245
245
  type: string;
246
246
  enum: string[];
247
247
  };
248
+ width: {
249
+ type: string;
250
+ enum: string[];
251
+ };
248
252
  };
249
253
  if: {
250
254
  properties: {
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.3",
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;