@gravity-ui/page-constructor 1.14.0-alpha.4 → 1.14.0-alpha.6

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 (88) hide show
  1. package/CHANGELOG.md +0 -7
  2. package/build/cjs/blocks/Banner/schema.d.ts +312 -0
  3. package/build/cjs/blocks/Media/schema.d.ts +104 -0
  4. package/build/cjs/components/Button/Button.js +5 -2
  5. package/build/cjs/components/CardBase/CardBase.d.ts +2 -0
  6. package/build/cjs/components/CardBase/CardBase.js +4 -1
  7. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +4 -1
  8. package/build/cjs/components/Link/Link.js +4 -1
  9. package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -0
  10. package/build/cjs/components/YandexForm/YandexForm.js +13 -2
  11. package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -0
  12. package/build/cjs/containers/PageConstructor/Provider.js +3 -1
  13. package/build/cjs/context/analyticsContext/analyticsContext.d.ts +6 -0
  14. package/build/cjs/context/analyticsContext/analyticsContext.js +6 -0
  15. package/build/cjs/context/analyticsContext/index.d.ts +1 -0
  16. package/build/cjs/{schema/validators/navigation.js → context/analyticsContext/index.js} +1 -1
  17. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +6 -0
  18. package/build/cjs/hooks/useAnalytics.d.ts +2 -0
  19. package/build/cjs/hooks/useAnalytics.js +15 -0
  20. package/build/cjs/hooks/useMetrika.d.ts +6 -0
  21. package/build/cjs/hooks/useMetrika.js +8 -0
  22. package/build/cjs/models/common.d.ts +30 -0
  23. package/build/cjs/models/common.js +3 -0
  24. package/build/cjs/models/constructor-items/common.d.ts +4 -1
  25. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -1
  26. package/build/cjs/models/navigation.d.ts +3 -1
  27. package/build/cjs/navigation/components/Header/Header.css +3 -5
  28. package/build/cjs/navigation/components/Logo/Logo.css +6 -5
  29. package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +0 -1
  30. package/build/cjs/schema/index.d.ts +0 -111
  31. package/build/cjs/schema/index.js +1 -2
  32. package/build/cjs/schema/validators/common.d.ts +220 -0
  33. package/build/cjs/schema/validators/common.js +10 -0
  34. package/build/cjs/schema/validators/event.d.ts +50 -0
  35. package/build/cjs/schema/validators/event.js +53 -0
  36. package/build/cjs/schema/validators/index.d.ts +0 -2
  37. package/build/cjs/schema/validators/index.js +0 -2
  38. package/build/cjs/sub-blocks/HubspotForm/index.js +14 -2
  39. package/build/esm/blocks/Banner/schema.d.ts +312 -0
  40. package/build/esm/blocks/Media/schema.d.ts +104 -0
  41. package/build/esm/components/Button/Button.js +5 -2
  42. package/build/esm/components/CardBase/CardBase.d.ts +2 -0
  43. package/build/esm/components/CardBase/CardBase.js +4 -1
  44. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +4 -1
  45. package/build/esm/components/Link/Link.js +4 -1
  46. package/build/esm/components/YandexForm/YandexForm.d.ts +2 -0
  47. package/build/esm/components/YandexForm/YandexForm.js +13 -2
  48. package/build/esm/containers/PageConstructor/Provider.d.ts +2 -0
  49. package/build/esm/containers/PageConstructor/Provider.js +3 -1
  50. package/build/esm/context/analyticsContext/analyticsContext.d.ts +6 -0
  51. package/build/esm/context/analyticsContext/analyticsContext.js +2 -0
  52. package/build/esm/context/analyticsContext/index.d.ts +1 -0
  53. package/build/esm/context/analyticsContext/index.js +1 -0
  54. package/build/esm/context/metrikaContext/metrikaContext.d.ts +6 -0
  55. package/build/esm/hooks/useAnalytics.d.ts +2 -0
  56. package/build/esm/hooks/useAnalytics.js +11 -0
  57. package/build/esm/hooks/useMetrika.d.ts +6 -0
  58. package/build/esm/hooks/useMetrika.js +8 -0
  59. package/build/esm/models/common.d.ts +30 -0
  60. package/build/esm/models/common.js +3 -0
  61. package/build/esm/models/constructor-items/common.d.ts +4 -1
  62. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -1
  63. package/build/esm/models/navigation.d.ts +3 -1
  64. package/build/esm/navigation/components/Header/Header.css +3 -5
  65. package/build/esm/navigation/components/Logo/Logo.css +6 -5
  66. package/build/esm/navigation/components/NavigationItem/NavigationItem.css +0 -1
  67. package/build/esm/schema/index.d.ts +0 -111
  68. package/build/esm/schema/index.js +1 -2
  69. package/build/esm/schema/validators/common.d.ts +220 -0
  70. package/build/esm/schema/validators/common.js +10 -0
  71. package/build/esm/schema/validators/event.d.ts +50 -0
  72. package/build/esm/schema/validators/event.js +50 -0
  73. package/build/esm/schema/validators/index.d.ts +0 -2
  74. package/build/esm/schema/validators/index.js +0 -2
  75. package/build/esm/sub-blocks/HubspotForm/index.js +14 -2
  76. package/package.json +1 -1
  77. package/server/models/common.d.ts +30 -0
  78. package/server/models/common.js +3 -0
  79. package/server/models/constructor-items/common.d.ts +4 -1
  80. package/server/models/constructor-items/sub-blocks.d.ts +2 -1
  81. package/server/models/navigation.d.ts +3 -1
  82. package/build/cjs/navigation/schema.d.ts +0 -104
  83. package/build/cjs/navigation/schema.js +0 -78
  84. package/build/cjs/schema/validators/navigation.d.ts +0 -1
  85. package/build/esm/navigation/schema.d.ts +0 -104
  86. package/build/esm/navigation/schema.js +0 -75
  87. package/build/esm/schema/validators/navigation.d.ts +0 -1
  88. package/build/esm/schema/validators/navigation.js +0 -1
@@ -0,0 +1 @@
1
+ export * from './analyticsContext';
@@ -1,7 +1,13 @@
1
1
  import React from 'react';
2
2
  import { Metrika, Pixel } from '../../models';
3
3
  export interface MetrikaContextProps {
4
+ /**
5
+ * @deprecated Metrika will be deleted
6
+ */
4
7
  metrika?: Metrika;
8
+ /**
9
+ * @deprecated Metrika will be deleted
10
+ */
5
11
  pixel?: Pixel;
6
12
  }
7
13
  export declare const MetrikaContext: React.Context<MetrikaContextProps>;
@@ -0,0 +1,2 @@
1
+ import { AnalyticsEvent } from '../models';
2
+ export declare const useAnalytics: () => (e?: AnalyticsEvent | AnalyticsEvent[]) => void;
@@ -0,0 +1,11 @@
1
+ import { useContext } from 'react';
2
+ import { AnalyticsContext } from '../context/analyticsContext';
3
+ export const useAnalytics = () => {
4
+ const { sendEvents } = useContext(AnalyticsContext);
5
+ return (e) => {
6
+ if (!e) {
7
+ return;
8
+ }
9
+ sendEvents === null || sendEvents === void 0 ? void 0 : sendEvents(e);
10
+ };
11
+ };
@@ -1,7 +1,13 @@
1
1
  import { ButtonPixel, MetrikaGoal, PixelEvent } from '../models';
2
+ /**
3
+ * @deprecated Metrika will be deleted
4
+ */
2
5
  type UseMetrikaProps = {
3
6
  metrikaGoals?: MetrikaGoal;
4
7
  pixelEvents?: string | string[] | PixelEvent | PixelEvent[] | ButtonPixel;
5
8
  };
9
+ /**
10
+ * @deprecated useMetrika will be deleted
11
+ */
6
12
  export declare const useMetrika: () => ({ metrikaGoals, pixelEvents }: UseMetrikaProps) => void;
7
13
  export {};
@@ -2,12 +2,20 @@ import { useContext } from 'react';
2
2
  import { MetrikaContext } from '../context/metrikaContext';
3
3
  import { PixelEventType } from '../models';
4
4
  import { isNewMetrikaFormat } from '../models/guards';
5
+ // eslint-disable-next-line valid-jsdoc
6
+ /**
7
+ * @deprecated Metrika will be deleted, which uses this logic
8
+ */
5
9
  function isButtonPixel(pixelEvents) {
6
10
  if (Array.isArray(pixelEvents) && pixelEvents.length && 'name' in pixelEvents) {
7
11
  return true;
8
12
  }
9
13
  return false;
10
14
  }
15
+ // eslint-disable-next-line valid-jsdoc
16
+ /**
17
+ * @deprecated useMetrika will be deleted
18
+ */
11
19
  export const useMetrika = () => {
12
20
  const { metrika, pixel } = useContext(MetrikaContext);
13
21
  return ({ metrikaGoals, pixelEvents }) => {
@@ -7,12 +7,21 @@ export declare enum Theme {
7
7
  Light = "light",
8
8
  Dark = "dark"
9
9
  }
10
+ /**
11
+ * @deprecated Pixel will be deleted
12
+ */
10
13
  type PixelCommand = 'track' | 'trackCustom';
14
+ /**
15
+ * @deprecated Pixel will be deleted
16
+ */
11
17
  export interface PixelEvent {
12
18
  command: PixelCommand;
13
19
  event: PixelEventType | string;
14
20
  data?: Object;
15
21
  }
22
+ /**
23
+ * @deprecated Pixel will be deleted from package
24
+ */
16
25
  export declare enum PixelEventType {
17
26
  AddPaymentInfo = "AddPaymentInfo",
18
27
  AddToCart = "AddToCart",
@@ -36,11 +45,17 @@ export declare enum PixelEventType {
36
45
  export type Modifiers = {
37
46
  [name: string]: string | boolean | undefined;
38
47
  };
48
+ /**
49
+ * @deprecated Pixel will be deleted
50
+ */
39
51
  export interface Pixel<TEvent = string> {
40
52
  trackStandard: (event: TEvent, data?: Object) => void;
41
53
  trackCustom: (event: string, data?: Object) => void;
42
54
  track: (trackEvents: string | string[] | PixelEvent[] | PixelEvent) => void;
43
55
  }
56
+ /**
57
+ * @deprecated Metrika will be deleted
58
+ */
44
59
  export interface Metrika {
45
60
  reachGoal: (counterName: string, ...args: any) => void;
46
61
  reachGoals: (goals: MetrikaGoal, counterName?: string) => void;
@@ -49,4 +64,19 @@ export interface ClassNameProps {
49
64
  className?: string;
50
65
  }
51
66
  export type Timeout = ReturnType<typeof setTimeout> | undefined;
67
+ export type AnalyticsParameter = {
68
+ key: string;
69
+ value: string;
70
+ };
71
+ export type AnalyticsEvent = {
72
+ name: string;
73
+ type?: string;
74
+ counters?: {
75
+ include?: string[];
76
+ exclude?: string[];
77
+ };
78
+ category?: string;
79
+ label?: string;
80
+ params?: AnalyticsParameter[];
81
+ };
52
82
  export {};
@@ -3,6 +3,9 @@ export var Theme;
3
3
  Theme["Light"] = "light";
4
4
  Theme["Dark"] = "dark";
5
5
  })(Theme || (Theme = {}));
6
+ /**
7
+ * @deprecated Pixel will be deleted from package
8
+ */
6
9
  export var PixelEventType;
7
10
  (function (PixelEventType) {
8
11
  PixelEventType["AddPaymentInfo"] = "AddPaymentInfo";
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { ButtonSize, ButtonView } from '@gravity-ui/uikit';
3
3
  import { ThemeSupporting } from '../../utils/theme';
4
- import { ClassNameProps, PixelEventType } from '../common';
4
+ import { AnalyticsEvent, ClassNameProps, PixelEventType } from '../common';
5
5
  export declare enum AuthorType {
6
6
  Column = "column",
7
7
  Line = "line"
@@ -121,6 +121,7 @@ export interface LinkProps extends Stylable {
121
121
  target?: string;
122
122
  metrikaGoals?: MetrikaGoal;
123
123
  pixelEvents?: ButtonPixel;
124
+ analyticsEvents?: AnalyticsEvent | AnalyticsEvent[];
124
125
  }
125
126
  export interface FileLinkProps extends ClassNameProps {
126
127
  href: string;
@@ -139,6 +140,7 @@ export interface ButtonProps {
139
140
  img?: ButtonImageProps | string;
140
141
  metrikaGoals?: MetrikaGoal;
141
142
  pixelEvents?: ButtonPixel;
143
+ analyticsEvents?: AnalyticsEvent[];
142
144
  target?: string;
143
145
  }
144
146
  export interface ButtonImageProps {
@@ -222,6 +224,7 @@ export interface HeaderBreadCrumbsProps extends ClassNameProps {
222
224
  theme?: TextTheme;
223
225
  metrikaGoals?: MetrikaGoal;
224
226
  pixelEvents?: ButtonPixel;
227
+ analyticsEvents?: AnalyticsEvent | AnalyticsEvent[];
225
228
  }
226
229
  export interface PreviewContentItemProps {
227
230
  title: string;
@@ -3,7 +3,7 @@ import { ThemeSupporting } from '../../utils';
3
3
  import { HubspotEventData, HubspotEventHandlers } from '../../utils/hubspot';
4
4
  import { AuthorItem, ButtonPixel, ButtonProps, CardBaseProps, ContentTheme, DividerSize, ImageObjectProps, ImageProps, LinkProps, MediaProps, PriceDetailedProps, TextTheme, Themable, ThemedImage } from './common';
5
5
  import { ContentBlockProps } from './blocks';
6
- import { PixelEvent } from '../common';
6
+ import { AnalyticsEvent, PixelEvent } from '../common';
7
7
  export declare enum SubBlockType {
8
8
  Divider = "divider",
9
9
  Quote = "quote",
@@ -61,6 +61,7 @@ export interface HubspotFormProps extends HubspotEventHandlers {
61
61
  onLoad?: (arg: HubspotEventData) => void;
62
62
  pixelEvents?: string | string[] | PixelEvent | PixelEvent[] | ButtonPixel;
63
63
  hubspotEvents?: string[];
64
+ analyticsEvents?: AnalyticsEvent | AnalyticsEvent[];
64
65
  }
65
66
  export interface PartnerProps extends CardBaseProps {
66
67
  text: string;
@@ -11,7 +11,7 @@ export interface NavigationItemBase {
11
11
  icon?: ImageProps;
12
12
  url?: string;
13
13
  }
14
- export interface NavigationLinkItem extends Omit<NavigationItemBase, 'url'> {
14
+ export interface NavigationLinkItem extends NavigationItemBase {
15
15
  type: NavigationItemType.Link;
16
16
  url: string;
17
17
  arrow?: boolean;
@@ -19,6 +19,8 @@ export interface NavigationLinkItem extends Omit<NavigationItemBase, 'url'> {
19
19
  }
20
20
  export interface NavigationButtonItem extends ButtonProps {
21
21
  type: NavigationItemType.Button;
22
+ url: string;
23
+ target?: string;
22
24
  }
23
25
  export interface NavigationDropdownItem extends NavigationItemBase {
24
26
  type: NavigationItemType.Dropdown;
@@ -18,27 +18,25 @@ unpredictable css rules order in build */
18
18
  height: var(--header-height);
19
19
  }
20
20
  @media (min-width: 769px) {
21
- .pc-header__mobile-menu-button.pc-header__mobile-menu-button {
21
+ .pc-header__mobile-menu-button {
22
22
  display: none;
23
23
  }
24
24
  }
25
-
26
25
  .pc-header__navigation, .pc-header__left, .pc-header__right {
27
26
  display: flex;
28
27
  align-items: center;
29
28
  }
30
- .pc-header__navigation.pc-header__navigation {
29
+ .pc-header__navigation {
31
30
  position: relative;
32
31
  margin-right: 20px;
33
32
  flex: 1 0 0;
34
33
  justify-content: flex-start;
35
34
  }
36
35
  @media (max-width: 768px) {
37
- .pc-header__navigation.pc-header__navigation {
36
+ .pc-header__navigation {
38
37
  display: none;
39
38
  }
40
39
  }
41
-
42
40
  .pc-header__right {
43
41
  flex: 0;
44
42
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- .pc-logo__text {
1
+ .pc-logo {
2
2
  margin: 0;
3
3
  }
4
4
 
@@ -7,6 +7,11 @@ unpredictable css rules order in build */
7
7
  .pc-logo {
8
8
  display: flex;
9
9
  align-items: center;
10
+ font-weight: var(--yc-text-accent-font-weight);
11
+ font-size: var(--yc-text-header-1-font-size);
12
+ line-height: var(--yc-text-header-1-line-height);
13
+ color: var(--pc-text-header-color);
14
+ font-weight: var(--yc-text-accent-font-weight);
10
15
  }
11
16
  .pc-logo__icon {
12
17
  display: flex;
@@ -14,9 +19,5 @@ unpredictable css rules order in build */
14
19
  object-fit: contain;
15
20
  }
16
21
  .pc-logo__text {
17
- font-size: var(--yc-text-header-1-font-size);
18
- line-height: var(--yc-text-header-1-line-height);
19
- color: var(--pc-text-header-color);
20
- font-weight: var(--yc-text-accent-font-weight);
21
22
  white-space: nowrap;
22
23
  }
@@ -4,7 +4,6 @@ unpredictable css rules order in build */
4
4
  position: relative;
5
5
  display: flex;
6
6
  align-items: center;
7
- white-space: nowrap;
8
7
  }
9
8
  .pc-navigation-item_type_link {
10
9
  color: var(--yc-color-text-primary);
@@ -31,117 +31,6 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
31
31
  additionalProperties: boolean;
32
32
  required: string[];
33
33
  properties: {
34
- logo: {
35
- oneOf: ({
36
- type: string;
37
- additionalProperties: boolean;
38
- required: string[];
39
- properties: {
40
- icon: {
41
- oneOf: ({
42
- type: string;
43
- properties: {
44
- when: {
45
- type: string;
46
- };
47
- };
48
- } | {
49
- type: string;
50
- pattern: string;
51
- })[];
52
- };
53
- text: {
54
- type: string;
55
- contentType: string;
56
- };
57
- url: {
58
- type: string;
59
- };
60
- };
61
- } | {
62
- type: string;
63
- additionalProperties: boolean;
64
- required: import("..").Theme[];
65
- properties: {};
66
- })[];
67
- };
68
- header: {
69
- type: string;
70
- additionalProperties: boolean;
71
- required: string[];
72
- properties: {
73
- leftItems: {
74
- oneOf: {
75
- type: string;
76
- additionalProperties: boolean;
77
- required: string[];
78
- properties: {
79
- type: {
80
- type: string;
81
- enum: string[];
82
- };
83
- items: {
84
- type: string;
85
- items: {
86
- type: string;
87
- properties: {
88
- when: {
89
- type: string;
90
- };
91
- };
92
- };
93
- };
94
- text: {
95
- type: string;
96
- contentType: string;
97
- };
98
- url: {
99
- type: string;
100
- };
101
- icon: {
102
- type: string;
103
- pattern: string;
104
- };
105
- };
106
- }[];
107
- };
108
- rightItems: {
109
- oneOf: {
110
- type: string;
111
- additionalProperties: boolean;
112
- required: string[];
113
- properties: {
114
- type: {
115
- type: string;
116
- enum: string[];
117
- };
118
- items: {
119
- type: string;
120
- items: {
121
- type: string;
122
- properties: {
123
- when: {
124
- type: string;
125
- };
126
- };
127
- };
128
- };
129
- text: {
130
- type: string;
131
- contentType: string;
132
- };
133
- url: {
134
- type: string;
135
- };
136
- icon: {
137
- type: string;
138
- pattern: string;
139
- };
140
- };
141
- }[];
142
- };
143
- };
144
- };
145
34
  blocks: {
146
35
  type: string;
147
36
  items: {
@@ -3,7 +3,6 @@ import { TabsBlock, BannerCard, SliderBlock, ExtendedFeaturesBlock, HeaderBlock,
3
3
  import { PartnerBlock, MediaCardBlock, TutorialCard, BackgroundCard, NewsCard, CardWithImage, PriceDetailedBlock, Quote, Divider, BasicCard, } from './validators/sub-blocks';
4
4
  import { AnimatableProps, BackgroundProps, MenuProps, withTheme } from './validators/common';
5
5
  import { filteredItem } from './validators/utils';
6
- import { LogoProps, NavigationHeaderProps } from './validators/navigation';
7
6
  export const getBlocksCases = (blocks) => {
8
7
  return Object.values(blocks).reduce((acc, block) => (Object.assign(Object.assign({}, acc), block)));
9
8
  };
@@ -84,7 +83,7 @@ export function generateDefaultSchema(config) {
84
83
  type: 'object',
85
84
  additionalProperties: false,
86
85
  required: ['blocks'],
87
- properties: Object.assign(Object.assign(Object.assign({}, AnimatableProps), { logo: withTheme(LogoProps), header: NavigationHeaderProps, blocks: {
86
+ properties: Object.assign(Object.assign(Object.assign({}, AnimatableProps), { blocks: {
88
87
  type: 'array',
89
88
  items: {
90
89
  $ref: '#/definitions/children',
@@ -414,6 +414,9 @@ export declare const ButtonProps: {
414
414
  };
415
415
  })[];
416
416
  };
417
+ /**
418
+ * @deprecated Metrika will be deleted
419
+ */
417
420
  metrikaGoals: {
418
421
  anyOf: ({
419
422
  type: string;
@@ -443,6 +446,9 @@ export declare const ButtonProps: {
443
446
  };
444
447
  })[];
445
448
  };
449
+ /**
450
+ * @deprecated Pixel will be deleted
451
+ */
446
452
  pixelEvents: {
447
453
  type: string;
448
454
  items: {
@@ -499,6 +505,110 @@ export declare const ButtonProps: {
499
505
  };
500
506
  };
501
507
  };
508
+ events: {
509
+ anyOf: ({
510
+ type: string;
511
+ additionalProperties: boolean;
512
+ required: string[];
513
+ properties: {
514
+ name: {
515
+ type: string;
516
+ };
517
+ type: {
518
+ type: string;
519
+ };
520
+ counters: {
521
+ type: string;
522
+ additionalProperties: boolean;
523
+ required: never[];
524
+ properties: {
525
+ include: {
526
+ type: string;
527
+ items: string;
528
+ };
529
+ exclude: {
530
+ type: string;
531
+ items: string;
532
+ };
533
+ };
534
+ };
535
+ category: {
536
+ type: string;
537
+ };
538
+ label: {
539
+ type: string;
540
+ };
541
+ params: {
542
+ type: string;
543
+ items: {
544
+ type: string;
545
+ additionalProperties: boolean;
546
+ required: string[];
547
+ properties: {
548
+ key: {
549
+ type: string;
550
+ };
551
+ value: {
552
+ type: string;
553
+ };
554
+ };
555
+ };
556
+ };
557
+ };
558
+ } | {
559
+ type: string;
560
+ items: {
561
+ type: string;
562
+ additionalProperties: boolean;
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: string;
579
+ };
580
+ exclude: {
581
+ type: string;
582
+ items: string;
583
+ };
584
+ };
585
+ };
586
+ category: {
587
+ type: string;
588
+ };
589
+ label: {
590
+ type: string;
591
+ };
592
+ params: {
593
+ type: string;
594
+ items: {
595
+ type: string;
596
+ additionalProperties: boolean;
597
+ required: string[];
598
+ properties: {
599
+ key: {
600
+ type: string;
601
+ };
602
+ value: {
603
+ type: string;
604
+ };
605
+ };
606
+ };
607
+ };
608
+ };
609
+ };
610
+ })[];
611
+ };
502
612
  target: {
503
613
  type: string;
504
614
  enum: string[];
@@ -629,6 +739,9 @@ export declare const ButtonBlock: {
629
739
  };
630
740
  })[];
631
741
  };
742
+ /**
743
+ * @deprecated Metrika will be deleted
744
+ */
632
745
  metrikaGoals: {
633
746
  anyOf: ({
634
747
  type: string;
@@ -658,6 +771,9 @@ export declare const ButtonBlock: {
658
771
  };
659
772
  })[];
660
773
  };
774
+ /**
775
+ * @deprecated Pixel will be deleted
776
+ */
661
777
  pixelEvents: {
662
778
  type: string;
663
779
  items: {
@@ -714,6 +830,110 @@ export declare const ButtonBlock: {
714
830
  };
715
831
  };
716
832
  };
833
+ events: {
834
+ anyOf: ({
835
+ type: string;
836
+ additionalProperties: boolean;
837
+ required: string[];
838
+ properties: {
839
+ name: {
840
+ type: string;
841
+ };
842
+ type: {
843
+ type: string;
844
+ };
845
+ counters: {
846
+ type: string;
847
+ additionalProperties: boolean;
848
+ required: never[];
849
+ properties: {
850
+ include: {
851
+ type: string;
852
+ items: string;
853
+ };
854
+ exclude: {
855
+ type: string;
856
+ items: string;
857
+ };
858
+ };
859
+ };
860
+ category: {
861
+ type: string;
862
+ };
863
+ label: {
864
+ type: string;
865
+ };
866
+ params: {
867
+ type: string;
868
+ items: {
869
+ type: string;
870
+ additionalProperties: boolean;
871
+ required: string[];
872
+ properties: {
873
+ key: {
874
+ type: string;
875
+ };
876
+ value: {
877
+ type: string;
878
+ };
879
+ };
880
+ };
881
+ };
882
+ };
883
+ } | {
884
+ type: string;
885
+ items: {
886
+ type: string;
887
+ additionalProperties: boolean;
888
+ required: string[];
889
+ properties: {
890
+ name: {
891
+ type: string;
892
+ };
893
+ type: {
894
+ type: string;
895
+ };
896
+ counters: {
897
+ type: string;
898
+ additionalProperties: boolean;
899
+ required: never[];
900
+ properties: {
901
+ include: {
902
+ type: string;
903
+ items: string;
904
+ };
905
+ exclude: {
906
+ type: string;
907
+ items: string;
908
+ };
909
+ };
910
+ };
911
+ category: {
912
+ type: string;
913
+ };
914
+ label: {
915
+ type: string;
916
+ };
917
+ params: {
918
+ type: string;
919
+ items: {
920
+ type: string;
921
+ additionalProperties: boolean;
922
+ required: string[];
923
+ properties: {
924
+ key: {
925
+ type: string;
926
+ };
927
+ value: {
928
+ type: string;
929
+ };
930
+ };
931
+ };
932
+ };
933
+ };
934
+ };
935
+ })[];
936
+ };
717
937
  target: {
718
938
  type: string;
719
939
  enum: string[];