@gravity-ui/page-constructor 3.18.0 → 3.19.0

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 (47) hide show
  1. package/build/cjs/components/CardBase/CardBase.css +4 -4
  2. package/build/cjs/constructor-items.d.ts +2 -2
  3. package/build/cjs/models/constructor-items/common.d.ts +1 -1
  4. package/build/cjs/models/constructor-items/sub-blocks.d.ts +4 -4
  5. package/build/cjs/schema/constants.d.ts +162 -78
  6. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -3
  7. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +81 -0
  8. package/build/cjs/sub-blocks/BackgroundCard/schema.js +10 -0
  9. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
  10. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +3 -3
  11. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +81 -0
  12. package/build/cjs/sub-blocks/LayoutItem/schema.js +10 -0
  13. package/build/cjs/sub-blocks/MediaCard/MediaCard.d.ts +1 -1
  14. package/build/cjs/sub-blocks/MediaCard/MediaCard.js +2 -2
  15. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +81 -78
  16. package/build/cjs/sub-blocks/MediaCard/schema.js +11 -1
  17. package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.d.ts +2 -2
  18. package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +2 -2
  19. package/build/cjs/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +7 -4
  20. package/build/cjs/sub-blocks/PriceDetailed/schema.js +11 -1
  21. package/build/cjs/sub-blocks/Quote/Quote.css +0 -3
  22. package/build/esm/components/CardBase/CardBase.css +4 -4
  23. package/build/esm/constructor-items.d.ts +2 -2
  24. package/build/esm/models/constructor-items/common.d.ts +1 -1
  25. package/build/esm/models/constructor-items/sub-blocks.d.ts +4 -4
  26. package/build/esm/schema/constants.d.ts +162 -78
  27. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +2 -3
  28. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +81 -0
  29. package/build/esm/sub-blocks/BackgroundCard/schema.js +10 -0
  30. package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +1 -1
  31. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +3 -3
  32. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +81 -0
  33. package/build/esm/sub-blocks/LayoutItem/schema.js +10 -0
  34. package/build/esm/sub-blocks/MediaCard/MediaCard.d.ts +1 -1
  35. package/build/esm/sub-blocks/MediaCard/MediaCard.js +2 -2
  36. package/build/esm/sub-blocks/MediaCard/schema.d.ts +81 -78
  37. package/build/esm/sub-blocks/MediaCard/schema.js +11 -1
  38. package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.d.ts +2 -2
  39. package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +2 -2
  40. package/build/esm/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +8 -4
  41. package/build/esm/sub-blocks/PriceDetailed/schema.js +11 -1
  42. package/build/esm/sub-blocks/Quote/Quote.css +0 -3
  43. package/package.json +1 -1
  44. package/server/models/constructor-items/common.d.ts +1 -1
  45. package/server/models/constructor-items/sub-blocks.d.ts +4 -4
  46. package/styles/mixins.scss +3 -1
  47. package/widget/index.js +1 -1
@@ -22,9 +22,6 @@ unpredictable css rules order in build */
22
22
  .pc-card-base-block_border_line {
23
23
  border: 1px solid var(--yc-color-line-generic);
24
24
  }
25
- .pc-card-base-block_border_line, .pc-card-base-block_border_none {
26
- cursor: default;
27
- }
28
25
  @media (min-width: 577px) {
29
26
  .slick-slide:not(.slick-active) .pc-card-base-block {
30
27
  box-shadow: none;
@@ -80,7 +77,10 @@ a.pc-card-base-block_border_line {
80
77
  border: 1px solid var(--yc-color-line-generic);
81
78
  }
82
79
  a.pc-card-base-block_border_line, a.pc-card-base-block_border_none {
83
- cursor: default;
80
+ transition: transform 0.3s ease-out;
81
+ }
82
+ a.pc-card-base-block_border_line:hover, a.pc-card-base-block_border_none:hover {
83
+ transform: translateY(-8px);
84
84
  }
85
85
  a.pc-card-base-block_border_shadow {
86
86
  transition: transform 0.3s ease-out;
@@ -21,9 +21,9 @@ export declare const blockMap: {
21
21
  export declare const subBlockMap: {
22
22
  divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
23
23
  "price-detailed": (props: import("./models").PriceDetailedProps) => JSX.Element;
24
- "media-card": ({ border, ...mediaProps }: import("./models").MediaCardProps) => JSX.Element;
24
+ "media-card": ({ border, analyticsEvents, ...mediaProps }: import("./models").MediaCardProps) => JSX.Element;
25
25
  "banner-card": (props: import("./models").BannerCardProps) => JSX.Element;
26
- "layout-item": ({ content: { links, ...content }, metaInfo, media, border, fullscreen, className, }: import("./models").LayoutItemProps) => JSX.Element;
26
+ "layout-item": ({ content: { links, ...content }, metaInfo, media, border, fullscreen, className, analyticsEvents, }: import("./models").LayoutItemProps) => JSX.Element;
27
27
  "background-card": (props: import("./models").BackgroundCardProps) => JSX.Element;
28
28
  "basic-card": (props: import("./models").BasicCardProps) => JSX.Element;
29
29
  content: (props: import("./models").ContentBlockProps & import("./models").ClassNameProps) => JSX.Element;
@@ -284,7 +284,7 @@ export interface PriceDetailsListProps {
284
284
  export interface PriceDetailsProps {
285
285
  items?: PriceDetailsSettingsProps[] | PriceDetailsListProps[];
286
286
  }
287
- export interface PriceItemProps extends PriceDetailsProps, PriceDescriptionProps {
287
+ export interface PriceItemProps extends PriceDetailsProps, PriceDescriptionProps, AnalyticsEventsBase {
288
288
  }
289
289
  export interface PriceFoldableDetailsProps {
290
290
  title: string;
@@ -71,13 +71,13 @@ export interface QuoteProps extends Themable, CardBaseProps {
71
71
  buttonText?: string;
72
72
  theme?: TextTheme;
73
73
  }
74
- export interface BackgroundCardProps extends CardBaseProps, Omit<ContentBlockProps, 'colSizes' | 'centered'> {
74
+ export interface BackgroundCardProps extends CardBaseProps, AnalyticsEventsBase, Omit<ContentBlockProps, 'colSizes' | 'centered'> {
75
75
  url?: string;
76
76
  background?: ThemeSupporting<ImageObjectProps>;
77
77
  paddingBottom?: 's' | 'm' | 'l' | 'xl';
78
78
  backgroundColor?: string;
79
79
  }
80
- export interface BasicCardProps extends CardBaseProps, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size' | 'theme'> {
80
+ export interface BasicCardProps extends CardBaseProps, AnalyticsEventsBase, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size' | 'theme'> {
81
81
  url: string;
82
82
  icon?: ImageProps;
83
83
  target?: string;
@@ -92,9 +92,9 @@ export interface BannerCardProps {
92
92
  theme?: TextTheme;
93
93
  button: Pick<ButtonProps, 'text' | 'url' | 'target'>;
94
94
  }
95
- export interface MediaCardProps extends MediaProps, CardBaseProps {
95
+ export interface MediaCardProps extends MediaProps, AnalyticsEventsBase, CardBaseProps {
96
96
  }
97
- export interface LayoutItemProps extends ClassNameProps {
97
+ export interface LayoutItemProps extends ClassNameProps, AnalyticsEventsBase {
98
98
  content: Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size'>;
99
99
  media: MediaProps;
100
100
  metaInfo?: string[];
@@ -230,6 +230,87 @@ export declare const cardSchemas: {
230
230
  type: string;
231
231
  enum: string[];
232
232
  };
233
+ analyticsEvents: {
234
+ oneOf: ({
235
+ optionName: string;
236
+ type: string;
237
+ additionalProperties: {
238
+ type: string;
239
+ };
240
+ required: string[];
241
+ properties: {
242
+ name: {
243
+ type: string;
244
+ };
245
+ type: {
246
+ type: string;
247
+ };
248
+ counters: {
249
+ type: string;
250
+ additionalProperties: boolean;
251
+ required: never[];
252
+ properties: {
253
+ include: {
254
+ type: string;
255
+ items: {
256
+ type: string;
257
+ };
258
+ };
259
+ exclude: {
260
+ type: string;
261
+ items: {
262
+ type: string;
263
+ };
264
+ };
265
+ };
266
+ };
267
+ context: {
268
+ type: string;
269
+ };
270
+ };
271
+ items?: undefined;
272
+ } | {
273
+ type: string;
274
+ items: {
275
+ type: string;
276
+ additionalProperties: {
277
+ type: string;
278
+ };
279
+ required: string[];
280
+ properties: {
281
+ name: {
282
+ type: string;
283
+ };
284
+ type: {
285
+ type: string;
286
+ };
287
+ counters: {
288
+ type: string;
289
+ additionalProperties: boolean;
290
+ required: never[];
291
+ properties: {
292
+ include: {
293
+ type: string;
294
+ items: {
295
+ type: string;
296
+ };
297
+ };
298
+ exclude: {
299
+ type: string;
300
+ items: {
301
+ type: string;
302
+ };
303
+ };
304
+ };
305
+ };
306
+ context: {
307
+ type: string;
308
+ };
309
+ };
310
+ };
311
+ optionName: string;
312
+ })[];
313
+ };
233
314
  title: {
234
315
  oneOf: ({
235
316
  type: string;
@@ -708,6 +789,87 @@ export declare const cardSchemas: {
708
789
  additionalProperties: boolean;
709
790
  required: never[];
710
791
  properties: {
792
+ analyticsEvents: {
793
+ oneOf: ({
794
+ optionName: string;
795
+ type: string;
796
+ additionalProperties: {
797
+ type: string;
798
+ };
799
+ required: string[];
800
+ properties: {
801
+ name: {
802
+ type: string;
803
+ };
804
+ type: {
805
+ type: string;
806
+ };
807
+ counters: {
808
+ type: string;
809
+ additionalProperties: boolean;
810
+ required: never[];
811
+ properties: {
812
+ include: {
813
+ type: string;
814
+ items: {
815
+ type: string;
816
+ };
817
+ };
818
+ exclude: {
819
+ type: string;
820
+ items: {
821
+ type: string;
822
+ };
823
+ };
824
+ };
825
+ };
826
+ context: {
827
+ type: string;
828
+ };
829
+ };
830
+ items?: undefined;
831
+ } | {
832
+ type: string;
833
+ items: {
834
+ type: string;
835
+ additionalProperties: {
836
+ type: string;
837
+ };
838
+ required: string[];
839
+ properties: {
840
+ name: {
841
+ type: string;
842
+ };
843
+ type: {
844
+ type: string;
845
+ };
846
+ counters: {
847
+ type: string;
848
+ additionalProperties: boolean;
849
+ required: never[];
850
+ properties: {
851
+ include: {
852
+ type: string;
853
+ items: {
854
+ type: string;
855
+ };
856
+ };
857
+ exclude: {
858
+ type: string;
859
+ items: {
860
+ type: string;
861
+ };
862
+ };
863
+ };
864
+ };
865
+ context: {
866
+ type: string;
867
+ };
868
+ };
869
+ };
870
+ optionName: string;
871
+ })[];
872
+ };
711
873
  animated: {
712
874
  type: string;
713
875
  };
@@ -852,84 +1014,6 @@ export declare const cardSchemas: {
852
1014
  fullscreen: {
853
1015
  type: string;
854
1016
  };
855
- analyticsEvents: {
856
- anyOf: ({
857
- type: string;
858
- additionalProperties: {
859
- type: string;
860
- };
861
- required: string[];
862
- properties: {
863
- name: {
864
- type: string;
865
- };
866
- type: {
867
- type: string;
868
- };
869
- counters: {
870
- type: string;
871
- additionalProperties: boolean;
872
- required: never[];
873
- properties: {
874
- include: {
875
- type: string;
876
- items: {
877
- type: string;
878
- };
879
- };
880
- exclude: {
881
- type: string;
882
- items: {
883
- type: string;
884
- };
885
- };
886
- };
887
- };
888
- context: {
889
- type: string;
890
- };
891
- };
892
- } | {
893
- type: string;
894
- items: {
895
- type: string;
896
- additionalProperties: {
897
- type: string;
898
- };
899
- required: string[];
900
- properties: {
901
- name: {
902
- type: string;
903
- };
904
- type: {
905
- type: string;
906
- };
907
- counters: {
908
- type: string;
909
- additionalProperties: boolean;
910
- required: never[];
911
- properties: {
912
- include: {
913
- type: string;
914
- items: {
915
- type: string;
916
- };
917
- };
918
- exclude: {
919
- type: string;
920
- items: {
921
- type: string;
922
- };
923
- };
924
- };
925
- };
926
- context: {
927
- type: string;
928
- };
929
- };
930
- };
931
- })[];
932
- };
933
1017
  border: {
934
1018
  type: string;
935
1019
  enum: string[];
@@ -8,12 +8,11 @@ const utils_1 = require("../../utils");
8
8
  const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
9
9
  const b = (0, utils_1.block)('background-card');
10
10
  const BackgroundCard = (props) => {
11
- const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, } = props;
11
+ const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, analyticsEvents, } = props;
12
12
  const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
13
13
  const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
14
- const link = hasBackgroundColor || border === 'line' ? undefined : url;
15
14
  const borderType = hasBackgroundColor ? 'none' : border;
16
- return (react_1.default.createElement(components_1.CardBase, { className: b({ padding: paddingBottom, theme: cardTheme }), url: link, border: borderType },
15
+ return (react_1.default.createElement(components_1.CardBase, { className: b({ padding: paddingBottom, theme: cardTheme }), url: url, border: borderType, analyticsEvents: analyticsEvents },
17
16
  react_1.default.createElement(components_1.CardBase.Content, null,
18
17
  react_1.default.createElement(components_1.BackgroundImage, Object.assign({ className: b('image') }, (0, utils_1.getThemedValue)(background, theme), { style: { backgroundColor } })),
19
18
  react_1.default.createElement(Content_1.default, { title: title, text: text, additionalInfo: additionalInfo, size: "s", theme: cardTheme, links: links, buttons: buttons, colSizes: { all: 12, md: 12 } }))));
@@ -41,6 +41,87 @@ export declare const BackgroundCard: {
41
41
  type: string;
42
42
  enum: string[];
43
43
  };
44
+ analyticsEvents: {
45
+ oneOf: ({
46
+ optionName: string;
47
+ type: string;
48
+ additionalProperties: {
49
+ type: string;
50
+ };
51
+ required: string[];
52
+ properties: {
53
+ name: {
54
+ type: string;
55
+ };
56
+ type: {
57
+ type: string;
58
+ };
59
+ counters: {
60
+ type: string;
61
+ additionalProperties: boolean;
62
+ required: never[];
63
+ properties: {
64
+ include: {
65
+ type: string;
66
+ items: {
67
+ type: string;
68
+ };
69
+ };
70
+ exclude: {
71
+ type: string;
72
+ items: {
73
+ type: string;
74
+ };
75
+ };
76
+ };
77
+ };
78
+ context: {
79
+ type: string;
80
+ };
81
+ };
82
+ items?: undefined;
83
+ } | {
84
+ type: string;
85
+ items: {
86
+ type: string;
87
+ additionalProperties: {
88
+ type: string;
89
+ };
90
+ required: string[];
91
+ properties: {
92
+ name: {
93
+ type: string;
94
+ };
95
+ type: {
96
+ type: string;
97
+ };
98
+ counters: {
99
+ type: string;
100
+ additionalProperties: boolean;
101
+ required: never[];
102
+ properties: {
103
+ include: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ };
108
+ };
109
+ exclude: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ };
114
+ };
115
+ };
116
+ };
117
+ context: {
118
+ type: string;
119
+ };
120
+ };
121
+ };
122
+ optionName: string;
123
+ })[];
124
+ };
44
125
  title: {
45
126
  oneOf: ({
46
127
  type: string;
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
6
6
  const schema_1 = require("../../components/Image/schema");
7
7
  const common_1 = require("../../schema/validators/common");
8
+ const event_1 = require("../../schema/validators/event");
8
9
  const schema_2 = require("../Content/schema");
9
10
  const BackgroundCardContentProps = lodash_1.default.omit(schema_2.ContentBase, ['size']);
10
11
  exports.BackgroundCard = {
@@ -18,6 +19,15 @@ exports.BackgroundCard = {
18
19
  }, paddingBottom: {
19
20
  type: 'string',
20
21
  enum: ['s', 'm', 'l', 'xl'],
22
+ }, analyticsEvents: {
23
+ oneOf: [
24
+ Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
25
+ {
26
+ type: 'array',
27
+ items: event_1.AnalyticsEventSchema,
28
+ optionName: 'list',
29
+ },
30
+ ],
21
31
  } }),
22
32
  },
23
33
  };
@@ -1,3 +1,3 @@
1
1
  import { LayoutItemProps } from '../../models';
2
- declare const LayoutItem: ({ content: { links, ...content }, metaInfo, media, border, fullscreen, className, }: LayoutItemProps) => JSX.Element;
2
+ declare const LayoutItem: ({ content: { links, ...content }, metaInfo, media, border, fullscreen, className, analyticsEvents, }: LayoutItemProps) => JSX.Element;
3
3
  export default LayoutItem;
@@ -8,12 +8,12 @@ const utils_1 = require("../../utils");
8
8
  const utils_2 = require("./utils");
9
9
  const b = (0, utils_1.block)('layout-item');
10
10
  const LayoutItem = (_a) => {
11
- var _b = _a.content, { links } = _b, content = tslib_1.__rest(_b, ["links"]), { metaInfo, media, border, fullscreen, className } = _a;
11
+ var _b = _a.content, { links } = _b, content = tslib_1.__rest(_b, ["links"]), { metaInfo, media, border, fullscreen, className, analyticsEvents } = _a;
12
12
  return (react_1.default.createElement("div", { className: b(null, className) },
13
13
  fullscreen && (0, utils_2.hasFullscreen)(media) ? (react_1.default.createElement(components_1.FullscreenMedia, { showFullscreenIcon: (0, utils_2.showFullscreenIcon)(media) }, (_a = {}) => {
14
14
  var { className: mediaClassName, fullscreen: _fullscreen } = _a, fullscreenMediaProps = tslib_1.__rest(_a, ["className", "fullscreen"]);
15
- return (react_1.default.createElement(components_1.Media, Object.assign({}, media, fullscreenMediaProps, { className: b('media', { border }, mediaClassName) })));
16
- })) : (react_1.default.createElement(components_1.Media, Object.assign({}, media, { className: b('media', { border }) }))),
15
+ return (react_1.default.createElement(components_1.Media, Object.assign({}, media, fullscreenMediaProps, { className: b('media', { border }, mediaClassName), analyticsEvents: analyticsEvents })));
16
+ })) : (react_1.default.createElement(components_1.Media, Object.assign({}, media, { className: b('media', { border }), analyticsEvents: analyticsEvents }))),
17
17
  metaInfo && react_1.default.createElement(components_1.MetaInfo, { items: metaInfo, className: b('meta-info') }),
18
18
  react_1.default.createElement("div", { className: b('content') },
19
19
  react_1.default.createElement(__1.Content, Object.assign({}, content, { links: (0, utils_2.getLayoutItemLinks)(links), size: "s", colSizes: { all: 12, md: 12 } })))));
@@ -318,6 +318,87 @@ export declare const LayoutItem: {
318
318
  fullscreen: {
319
319
  type: string;
320
320
  };
321
+ analyticsEvents: {
322
+ oneOf: ({
323
+ optionName: string;
324
+ type: string;
325
+ additionalProperties: {
326
+ type: string;
327
+ };
328
+ required: string[];
329
+ properties: {
330
+ name: {
331
+ type: string;
332
+ };
333
+ type: {
334
+ type: string;
335
+ };
336
+ counters: {
337
+ type: string;
338
+ additionalProperties: boolean;
339
+ required: never[];
340
+ properties: {
341
+ include: {
342
+ type: string;
343
+ items: {
344
+ type: string;
345
+ };
346
+ };
347
+ exclude: {
348
+ type: string;
349
+ items: {
350
+ type: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ context: {
356
+ type: string;
357
+ };
358
+ };
359
+ items?: undefined;
360
+ } | {
361
+ type: string;
362
+ items: {
363
+ type: string;
364
+ additionalProperties: {
365
+ type: string;
366
+ };
367
+ required: string[];
368
+ properties: {
369
+ name: {
370
+ type: string;
371
+ };
372
+ type: {
373
+ type: string;
374
+ };
375
+ counters: {
376
+ type: string;
377
+ additionalProperties: boolean;
378
+ required: never[];
379
+ properties: {
380
+ include: {
381
+ type: string;
382
+ items: {
383
+ type: string;
384
+ };
385
+ };
386
+ exclude: {
387
+ type: string;
388
+ items: {
389
+ type: string;
390
+ };
391
+ };
392
+ };
393
+ };
394
+ context: {
395
+ type: string;
396
+ };
397
+ };
398
+ };
399
+ optionName: string;
400
+ })[];
401
+ };
321
402
  type: {};
322
403
  when: {
323
404
  type: string;
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const lodash_1 = require("lodash");
6
6
  const schema_1 = tslib_1.__importDefault(require("../../components/MetaInfo/schema"));
7
7
  const common_1 = require("../../schema/validators/common");
8
+ const event_1 = require("../../schema/validators/event");
8
9
  const schema_2 = require("../../sub-blocks/Content/schema");
9
10
  exports.LayoutItem = {
10
11
  type: 'object',
@@ -14,5 +15,14 @@ exports.LayoutItem = {
14
15
  type: 'boolean',
15
16
  }, fullscreen: {
16
17
  type: 'boolean',
18
+ }, analyticsEvents: {
19
+ oneOf: [
20
+ Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
21
+ {
22
+ type: 'array',
23
+ items: event_1.AnalyticsEventSchema,
24
+ optionName: 'list',
25
+ },
26
+ ],
17
27
  } }),
18
28
  };
@@ -1,3 +1,3 @@
1
1
  import { MediaCardProps } from '../../models';
2
- declare const MediaCard: ({ border, ...mediaProps }: MediaCardProps) => JSX.Element;
2
+ declare const MediaCard: ({ border, analyticsEvents, ...mediaProps }: MediaCardProps) => JSX.Element;
3
3
  export default MediaCard;
@@ -6,8 +6,8 @@ const components_1 = require("../../components");
6
6
  const utils_1 = require("../../utils");
7
7
  const b = (0, utils_1.block)('MediaCard');
8
8
  const MediaCard = (_a) => {
9
- var { border } = _a, mediaProps = tslib_1.__rest(_a, ["border"]);
10
- return (react_1.default.createElement(components_1.CardBase, { className: b(), bodyClassName: b('body'), border: border },
9
+ var { border, analyticsEvents } = _a, mediaProps = tslib_1.__rest(_a, ["border", "analyticsEvents"]);
10
+ return (react_1.default.createElement(components_1.CardBase, { className: b(), bodyClassName: b('body'), border: border, analyticsEvents: analyticsEvents },
11
11
  react_1.default.createElement(components_1.CardBase.Content, null,
12
12
  react_1.default.createElement(components_1.Media, Object.assign({}, mediaProps)))));
13
13
  };