@gravity-ui/page-constructor 1.14.0-alpha.5 → 1.14.0-alpha.7

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 +336 -0
  3. package/build/cjs/blocks/Media/schema.d.ts +112 -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 -67
  31. package/build/cjs/schema/index.js +1 -2
  32. package/build/cjs/schema/validators/common.d.ts +236 -0
  33. package/build/cjs/schema/validators/common.js +10 -0
  34. package/build/cjs/schema/validators/event.d.ts +54 -0
  35. package/build/cjs/schema/validators/event.js +57 -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 +336 -0
  40. package/build/esm/blocks/Media/schema.d.ts +112 -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 -67
  68. package/build/esm/schema/index.js +1 -2
  69. package/build/esm/schema/validators/common.d.ts +236 -0
  70. package/build/esm/schema/validators/common.js +10 -0
  71. package/build/esm/schema/validators/event.d.ts +54 -0
  72. package/build/esm/schema/validators/event.js +54 -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 -60
  83. package/build/cjs/navigation/schema.js +0 -80
  84. package/build/cjs/schema/validators/navigation.d.ts +0 -1
  85. package/build/esm/navigation/schema.d.ts +0 -60
  86. package/build/esm/navigation/schema.js +0 -77
  87. package/build/esm/schema/validators/navigation.d.ts +0 -1
  88. package/build/esm/schema/validators/navigation.js +0 -1
@@ -1,5 +1,6 @@
1
1
  import React, { Fragment } from 'react';
2
2
  import { MetrikaContext } from '../../context/metrikaContext';
3
+ import { AnalyticsContext } from '../../context/analyticsContext';
3
4
  import { MobileContext } from '../../context/mobileContext';
4
5
  import { ProjectSettingsContext, } from '../../context/projectSettingsContext';
5
6
  import { SSRContext } from '../../context/ssrContext';
@@ -8,7 +9,7 @@ import { LocationContext } from '../../context/locationContext';
8
9
  import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
9
10
  import { DEFAULT_THEME } from '../../components/constants';
10
11
  export const PageConstructorProvider = (props) => {
11
- const { isMobile, locale = {}, location = {}, metrika = {}, ssrConfig = {}, projectSettings = {}, theme = DEFAULT_THEME, children, } = props;
12
+ const { isMobile, locale = {}, location = {}, metrika = {}, analytics = {}, ssrConfig = {}, projectSettings = {}, theme = DEFAULT_THEME, children, } = props;
12
13
  /* eslint-disable react/jsx-key */
13
14
  const context = [
14
15
  React.createElement(ThemeValueContext.Provider, { value: { themeValue: theme } }),
@@ -17,6 +18,7 @@ export const PageConstructorProvider = (props) => {
17
18
  React.createElement(LocationContext.Provider, { value: location }),
18
19
  React.createElement(MobileContext.Provider, { value: Boolean(isMobile) }),
19
20
  React.createElement(MetrikaContext.Provider, { value: metrika }),
21
+ React.createElement(AnalyticsContext.Provider, { value: analytics }),
20
22
  React.createElement(SSRContext.Provider, { value: { isServer: ssrConfig === null || ssrConfig === void 0 ? void 0 : ssrConfig.isServer } }),
21
23
  ].reduceRight((prev, provider) => React.cloneElement(provider, {}, prev), children);
22
24
  /* eslint-enable react/jsx-key */
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { AnalyticsEvent } from '../../models';
3
+ export interface AnalyticsContextProps {
4
+ sendEvents?: (e: AnalyticsEvent | AnalyticsEvent[]) => void;
5
+ }
6
+ export declare const AnalyticsContext: React.Context<AnalyticsContextProps>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export const AnalyticsContext = React.createContext({});
@@ -0,0 +1 @@
1
+ export * from './analyticsContext';
@@ -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,73 +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
- items: {
77
- type: string;
78
- properties: {
79
- when: {
80
- type: string;
81
- };
82
- };
83
- };
84
- }[];
85
- };
86
- rightItems: {
87
- oneOf: {
88
- type: string;
89
- items: {
90
- type: string;
91
- properties: {
92
- when: {
93
- type: string;
94
- };
95
- };
96
- };
97
- }[];
98
- };
99
- };
100
- };
101
34
  blocks: {
102
35
  type: string;
103
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,118 @@ 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: {
528
+ type: string;
529
+ };
530
+ };
531
+ exclude: {
532
+ type: string;
533
+ items: {
534
+ type: string;
535
+ };
536
+ };
537
+ };
538
+ };
539
+ category: {
540
+ type: string;
541
+ };
542
+ label: {
543
+ type: string;
544
+ };
545
+ params: {
546
+ type: string;
547
+ items: {
548
+ type: string;
549
+ additionalProperties: boolean;
550
+ required: string[];
551
+ properties: {
552
+ key: {
553
+ type: string;
554
+ };
555
+ value: {
556
+ type: string;
557
+ };
558
+ };
559
+ };
560
+ };
561
+ };
562
+ } | {
563
+ type: string;
564
+ items: {
565
+ type: string;
566
+ additionalProperties: boolean;
567
+ required: string[];
568
+ properties: {
569
+ name: {
570
+ type: string;
571
+ };
572
+ type: {
573
+ type: string;
574
+ };
575
+ counters: {
576
+ type: string;
577
+ additionalProperties: boolean;
578
+ required: never[];
579
+ properties: {
580
+ include: {
581
+ type: string;
582
+ items: {
583
+ type: string;
584
+ };
585
+ };
586
+ exclude: {
587
+ type: string;
588
+ items: {
589
+ type: string;
590
+ };
591
+ };
592
+ };
593
+ };
594
+ category: {
595
+ type: string;
596
+ };
597
+ label: {
598
+ type: string;
599
+ };
600
+ params: {
601
+ type: string;
602
+ items: {
603
+ type: string;
604
+ additionalProperties: boolean;
605
+ required: string[];
606
+ properties: {
607
+ key: {
608
+ type: string;
609
+ };
610
+ value: {
611
+ type: string;
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ })[];
619
+ };
502
620
  target: {
503
621
  type: string;
504
622
  enum: string[];
@@ -629,6 +747,9 @@ export declare const ButtonBlock: {
629
747
  };
630
748
  })[];
631
749
  };
750
+ /**
751
+ * @deprecated Metrika will be deleted
752
+ */
632
753
  metrikaGoals: {
633
754
  anyOf: ({
634
755
  type: string;
@@ -658,6 +779,9 @@ export declare const ButtonBlock: {
658
779
  };
659
780
  })[];
660
781
  };
782
+ /**
783
+ * @deprecated Pixel will be deleted
784
+ */
661
785
  pixelEvents: {
662
786
  type: string;
663
787
  items: {
@@ -714,6 +838,118 @@ export declare const ButtonBlock: {
714
838
  };
715
839
  };
716
840
  };
841
+ events: {
842
+ anyOf: ({
843
+ type: string;
844
+ additionalProperties: boolean;
845
+ required: string[];
846
+ properties: {
847
+ name: {
848
+ type: string;
849
+ };
850
+ type: {
851
+ type: string;
852
+ };
853
+ counters: {
854
+ type: string;
855
+ additionalProperties: boolean;
856
+ required: never[];
857
+ properties: {
858
+ include: {
859
+ type: string;
860
+ items: {
861
+ type: string;
862
+ };
863
+ };
864
+ exclude: {
865
+ type: string;
866
+ items: {
867
+ type: string;
868
+ };
869
+ };
870
+ };
871
+ };
872
+ category: {
873
+ type: string;
874
+ };
875
+ label: {
876
+ type: string;
877
+ };
878
+ params: {
879
+ type: string;
880
+ items: {
881
+ type: string;
882
+ additionalProperties: boolean;
883
+ required: string[];
884
+ properties: {
885
+ key: {
886
+ type: string;
887
+ };
888
+ value: {
889
+ type: string;
890
+ };
891
+ };
892
+ };
893
+ };
894
+ };
895
+ } | {
896
+ type: string;
897
+ items: {
898
+ type: string;
899
+ additionalProperties: boolean;
900
+ required: string[];
901
+ properties: {
902
+ name: {
903
+ type: string;
904
+ };
905
+ type: {
906
+ type: string;
907
+ };
908
+ counters: {
909
+ type: string;
910
+ additionalProperties: boolean;
911
+ required: never[];
912
+ properties: {
913
+ include: {
914
+ type: string;
915
+ items: {
916
+ type: string;
917
+ };
918
+ };
919
+ exclude: {
920
+ type: string;
921
+ items: {
922
+ type: string;
923
+ };
924
+ };
925
+ };
926
+ };
927
+ category: {
928
+ type: string;
929
+ };
930
+ label: {
931
+ type: string;
932
+ };
933
+ params: {
934
+ type: string;
935
+ items: {
936
+ type: string;
937
+ additionalProperties: boolean;
938
+ required: string[];
939
+ properties: {
940
+ key: {
941
+ type: string;
942
+ };
943
+ value: {
944
+ type: string;
945
+ };
946
+ };
947
+ };
948
+ };
949
+ };
950
+ };
951
+ })[];
952
+ };
717
953
  target: {
718
954
  type: string;
719
955
  enum: string[];