@gravity-ui/page-constructor 4.55.0 → 4.56.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 (74) hide show
  1. package/build/cjs/components/Buttons/Buttons.css +11 -0
  2. package/build/cjs/components/Buttons/Buttons.d.ts +12 -0
  3. package/build/cjs/components/Buttons/Buttons.js +18 -0
  4. package/build/cjs/components/CardBase/CardBase.d.ts +2 -3
  5. package/build/cjs/components/CardBase/CardBase.js +5 -6
  6. package/build/cjs/components/Links/Links.css +14 -0
  7. package/build/cjs/components/Links/Links.d.ts +12 -0
  8. package/build/cjs/components/Links/Links.js +18 -0
  9. package/build/cjs/components/index.d.ts +2 -1
  10. package/build/cjs/components/index.js +4 -2
  11. package/build/cjs/constructor-items.d.ts +1 -1
  12. package/build/cjs/models/constructor-items/common.d.ts +4 -0
  13. package/build/cjs/models/constructor-items/sub-blocks.d.ts +4 -4
  14. package/build/cjs/schema/constants.d.ts +12 -0
  15. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  16. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +8 -2
  17. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +4 -0
  18. package/build/cjs/sub-blocks/BackgroundCard/schema.js +3 -0
  19. package/build/cjs/sub-blocks/BasicCard/BasicCard.css +7 -0
  20. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +10 -7
  21. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +4 -0
  22. package/build/cjs/sub-blocks/BasicCard/schema.js +3 -0
  23. package/build/cjs/sub-blocks/Content/Content.css +4 -22
  24. package/build/cjs/sub-blocks/Content/Content.js +2 -20
  25. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +9 -0
  26. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
  27. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +10 -4
  28. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +4 -0
  29. package/build/cjs/sub-blocks/LayoutItem/schema.js +3 -0
  30. package/build/cjs/sub-blocks/PriceCard/PriceCard.css +2 -5
  31. package/build/cjs/sub-blocks/PriceCard/PriceCard.js +3 -3
  32. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +4 -0
  33. package/build/cjs/sub-blocks/PriceCard/schema.js +3 -0
  34. package/build/esm/components/Buttons/Buttons.css +11 -0
  35. package/build/esm/components/Buttons/Buttons.d.ts +13 -0
  36. package/build/esm/components/Buttons/Buttons.js +16 -0
  37. package/build/esm/components/CardBase/CardBase.d.ts +2 -3
  38. package/build/esm/components/CardBase/CardBase.js +6 -7
  39. package/build/esm/components/Links/Links.css +14 -0
  40. package/build/esm/components/Links/Links.d.ts +13 -0
  41. package/build/esm/components/Links/Links.js +16 -0
  42. package/build/esm/components/index.d.ts +2 -1
  43. package/build/esm/components/index.js +2 -1
  44. package/build/esm/constructor-items.d.ts +1 -1
  45. package/build/esm/models/constructor-items/common.d.ts +4 -0
  46. package/build/esm/models/constructor-items/sub-blocks.d.ts +4 -4
  47. package/build/esm/schema/constants.d.ts +12 -0
  48. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  49. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +9 -3
  50. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +4 -0
  51. package/build/esm/sub-blocks/BackgroundCard/schema.js +3 -0
  52. package/build/esm/sub-blocks/BasicCard/BasicCard.css +7 -0
  53. package/build/esm/sub-blocks/BasicCard/BasicCard.js +7 -4
  54. package/build/esm/sub-blocks/BasicCard/schema.d.ts +4 -0
  55. package/build/esm/sub-blocks/BasicCard/schema.js +3 -0
  56. package/build/esm/sub-blocks/Content/Content.css +4 -22
  57. package/build/esm/sub-blocks/Content/Content.js +3 -21
  58. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +9 -0
  59. package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
  60. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +11 -5
  61. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +4 -0
  62. package/build/esm/sub-blocks/LayoutItem/schema.js +3 -0
  63. package/build/esm/sub-blocks/PriceCard/PriceCard.css +2 -5
  64. package/build/esm/sub-blocks/PriceCard/PriceCard.js +4 -4
  65. package/build/esm/sub-blocks/PriceCard/schema.d.ts +4 -0
  66. package/build/esm/sub-blocks/PriceCard/schema.js +3 -0
  67. package/package.json +1 -1
  68. package/server/models/constructor-items/common.d.ts +4 -0
  69. package/server/models/constructor-items/sub-blocks.d.ts +4 -4
  70. package/widget/index.js +1 -1
  71. package/build/cjs/components/Link/Links.d.ts +0 -6
  72. package/build/cjs/components/Link/Links.js +0 -13
  73. package/build/esm/components/Link/Links.d.ts +0 -6
  74. package/build/esm/components/Link/Links.js +0 -10
@@ -398,6 +398,10 @@ export declare const PriceCardBlock: {
398
398
  type: string;
399
399
  };
400
400
  };
401
+ controlPosition: {
402
+ type: string;
403
+ enum: string[];
404
+ };
401
405
  border: {
402
406
  type: string;
403
407
  enum: string[];
@@ -27,6 +27,9 @@ export const PriceCardBlock = {
27
27
  items: {
28
28
  type: 'string',
29
29
  },
30
+ }, controlPosition: {
31
+ type: 'string',
32
+ enum: ['content', 'footer'],
30
33
  } }),
31
34
  },
32
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "4.55.0",
3
+ "version": "4.56.1",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -297,9 +297,13 @@ export interface TitleItemBaseProps {
297
297
  export type MediaView = 'fit' | 'full';
298
298
  export type MediaBorder = 'shadow' | 'line' | 'none';
299
299
  export type CardBorder = MediaBorder;
300
+ export type ControlPosition = 'content' | 'footer';
300
301
  export interface CardBaseProps {
301
302
  border?: CardBorder;
302
303
  }
304
+ export type CardLayoutProps = {
305
+ controlPosition?: ControlPosition;
306
+ };
303
307
  export interface PriceDescriptionProps {
304
308
  title: string;
305
309
  detailedTitle?: string;
@@ -3,7 +3,7 @@ import { ThemeSupporting } from '../../utils';
3
3
  import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
4
4
  import { AnalyticsEventsBase, PixelEvent } from '../common';
5
5
  import { ContentBlockProps } from './blocks';
6
- import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageCardMargins, ImageObjectProps, ImageProps, LinkProps, MediaProps, MediaView, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
6
+ import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, CardLayoutProps, ContentTheme, DividerSize, ImageCardMargins, ImageObjectProps, ImageProps, LinkProps, MediaProps, MediaView, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
7
7
  export declare enum SubBlockType {
8
8
  Divider = "divider",
9
9
  Quote = "quote",
@@ -97,14 +97,14 @@ export interface QuoteProps extends Themable, CardBaseProps {
97
97
  quoteType?: QuoteType;
98
98
  button?: ButtonProps;
99
99
  }
100
- export interface BackgroundCardProps extends CardBaseProps, AnalyticsEventsBase, Omit<ContentBlockProps, 'colSizes' | 'centered'> {
100
+ export interface BackgroundCardProps extends CardBaseProps, AnalyticsEventsBase, CardLayoutProps, Omit<ContentBlockProps, 'colSizes' | 'centered'> {
101
101
  url?: string;
102
102
  urlTitle?: string;
103
103
  background?: ThemeSupporting<ImageObjectProps>;
104
104
  paddingBottom?: 's' | 'm' | 'l' | 'xl';
105
105
  backgroundColor?: string;
106
106
  }
107
- export interface BasicCardProps extends CardBaseProps, AnalyticsEventsBase, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size' | 'theme'> {
107
+ export interface BasicCardProps extends CardBaseProps, AnalyticsEventsBase, CardLayoutProps, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size' | 'theme'> {
108
108
  url: string;
109
109
  urlTitle?: string;
110
110
  icon?: ImageProps;
@@ -134,7 +134,7 @@ export interface PriceCardProps extends CardBaseProps, Pick<ContentBlockProps, '
134
134
  backgroundColor?: string;
135
135
  list?: string[];
136
136
  }
137
- export interface LayoutItemProps extends ClassNameProps, AnalyticsEventsBase {
137
+ export interface LayoutItemProps extends ClassNameProps, CardLayoutProps, AnalyticsEventsBase {
138
138
  content: Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size'>;
139
139
  media?: MediaProps;
140
140
  metaInfo?: string[];