@gravity-ui/page-constructor 4.39.1 → 4.40.1

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 (42) hide show
  1. package/build/cjs/blocks/Header/schema.d.ts +57 -42
  2. package/build/cjs/blocks/HeaderSlider/schema.d.ts +19 -14
  3. package/build/cjs/blocks/Icons/Icons.css +4 -0
  4. package/build/cjs/blocks/Icons/Icons.d.ts +1 -1
  5. package/build/cjs/blocks/Icons/Icons.js +2 -2
  6. package/build/cjs/blocks/Media/schema.d.ts +38 -28
  7. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +19 -14
  8. package/build/cjs/blocks/Tabs/schema.d.ts +19 -14
  9. package/build/cjs/components/ContentList/ContentList.css +4 -0
  10. package/build/cjs/components/ContentList/ContentList.js +1 -1
  11. package/build/cjs/constructor-items.d.ts +1 -1
  12. package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
  13. package/build/cjs/schema/constants.d.ts +19 -14
  14. package/build/cjs/schema/validators/common.d.ts +19 -14
  15. package/build/cjs/schema/validators/common.js +20 -15
  16. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +19 -14
  17. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +19 -14
  18. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +19 -14
  19. package/build/cjs/text-transform/config.js +1 -1
  20. package/build/esm/blocks/Header/schema.d.ts +57 -42
  21. package/build/esm/blocks/HeaderSlider/schema.d.ts +19 -14
  22. package/build/esm/blocks/Icons/Icons.css +4 -0
  23. package/build/esm/blocks/Icons/Icons.d.ts +1 -1
  24. package/build/esm/blocks/Icons/Icons.js +2 -2
  25. package/build/esm/blocks/Media/schema.d.ts +38 -28
  26. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +19 -14
  27. package/build/esm/blocks/Tabs/schema.d.ts +19 -14
  28. package/build/esm/components/ContentList/ContentList.css +4 -0
  29. package/build/esm/components/ContentList/ContentList.js +1 -1
  30. package/build/esm/constructor-items.d.ts +1 -1
  31. package/build/esm/models/constructor-items/blocks.d.ts +1 -0
  32. package/build/esm/schema/constants.d.ts +19 -14
  33. package/build/esm/schema/validators/common.d.ts +19 -14
  34. package/build/esm/schema/validators/common.js +20 -15
  35. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +19 -14
  36. package/build/esm/sub-blocks/MediaCard/schema.d.ts +19 -14
  37. package/build/esm/sub-blocks/PriceCard/schema.d.ts +19 -14
  38. package/build/esm/text-transform/config.js +1 -1
  39. package/package.json +1 -1
  40. package/server/models/constructor-items/blocks.d.ts +1 -0
  41. package/server/text-transform/config.js +1 -1
  42. package/widget/index.js +1 -1
@@ -636,20 +636,25 @@ export declare const PriceCardBlock: {
636
636
  type: string;
637
637
  };
638
638
  iframe: {
639
- src: {
640
- type: string;
641
- };
642
- name: {
643
- type: string;
644
- };
645
- title: {
646
- type: string;
647
- };
648
- height: {
649
- type: string;
650
- };
651
- width: {
652
- type: string;
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
+ };
653
658
  };
654
659
  };
655
660
  margins: {
@@ -277,7 +277,7 @@ export const config = {
277
277
  {
278
278
  fields: ['list'],
279
279
  transformer: yfmTransformer,
280
- parser: createItemsParser(['text']),
280
+ parser: createItemsParser(['title', 'text']),
281
281
  },
282
282
  ],
283
283
  [BlockType.InfoBlock]: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "4.39.1",
3
+ "version": "4.40.1",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -258,6 +258,7 @@ export interface IconsBlockProps {
258
258
  description?: string;
259
259
  size?: 's' | 'm' | 'l';
260
260
  items: IconsBlockItemProps[];
261
+ colSizes?: GridColumnSizesType;
261
262
  }
262
263
  interface ContentLayoutBlockParams {
263
264
  size?: ContentSize;
@@ -290,7 +290,7 @@ exports.config = {
290
290
  {
291
291
  fields: ['list'],
292
292
  transformer: common_1.yfmTransformer,
293
- parser: (0, common_1.createItemsParser)(['text']),
293
+ parser: (0, common_1.createItemsParser)(['title', 'text']),
294
294
  },
295
295
  ],
296
296
  [models_1.BlockType.InfoBlock]: [