@gravity-ui/page-constructor 1.19.1 → 1.20.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 (147) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +79 -6
  3. package/build/cjs/blocks/Banner/schema.d.ts +234 -0
  4. package/build/cjs/blocks/CardLayout/schema.d.ts +6 -0
  5. package/build/cjs/blocks/ContentLayout/schema.d.ts +3 -0
  6. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +81 -0
  7. package/build/cjs/blocks/Header/schema.d.ts +3 -0
  8. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  9. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  10. package/build/cjs/blocks/LinkTable/schema.d.ts +3 -0
  11. package/build/cjs/blocks/Map/schema.d.ts +81 -0
  12. package/build/cjs/blocks/Media/schema.d.ts +162 -0
  13. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  14. package/build/cjs/blocks/Questions/schema.d.ts +3 -0
  15. package/build/cjs/blocks/Share/Share.js +5 -1
  16. package/build/cjs/blocks/Simple/schema.d.ts +3 -0
  17. package/build/cjs/blocks/Slider/schema.d.ts +3 -0
  18. package/build/cjs/blocks/Table/schema.d.ts +3 -0
  19. package/build/cjs/blocks/Tabs/schema.d.ts +81 -0
  20. package/build/cjs/components/BackLink/BackLink.js +5 -1
  21. package/build/cjs/components/Button/Button.js +6 -2
  22. package/build/cjs/components/CardBase/CardBase.d.ts +2 -1
  23. package/build/cjs/components/CardBase/CardBase.js +5 -1
  24. package/build/cjs/components/Link/Link.js +5 -1
  25. package/build/cjs/components/Media/Media.js +3 -2
  26. package/build/cjs/components/Media/Video/Video.js +3 -2
  27. package/build/cjs/components/ReactPlayer/ReactPlayer.js +16 -3
  28. package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -1
  29. package/build/cjs/components/YandexForm/YandexForm.js +14 -2
  30. package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -0
  31. package/build/cjs/containers/PageConstructor/Provider.js +3 -1
  32. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
  33. package/build/cjs/context/analyticsContext/analyticsContext.d.ts +7 -0
  34. package/build/cjs/context/analyticsContext/analyticsContext.js +6 -0
  35. package/build/cjs/context/analyticsContext/index.d.ts +1 -0
  36. package/build/cjs/context/analyticsContext/index.js +4 -0
  37. package/build/cjs/context/blockIdContext/blockIdContext.d.ts +3 -0
  38. package/build/cjs/context/blockIdContext/blockIdContext.js +6 -0
  39. package/build/cjs/context/blockIdContext/index.d.ts +1 -0
  40. package/build/cjs/context/blockIdContext/index.js +4 -0
  41. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +6 -0
  42. package/build/cjs/hooks/index.d.ts +1 -0
  43. package/build/cjs/hooks/index.js +1 -0
  44. package/build/cjs/hooks/useAnalytics.d.ts +2 -0
  45. package/build/cjs/hooks/useAnalytics.js +35 -0
  46. package/build/cjs/hooks/useMetrika.d.ts +6 -0
  47. package/build/cjs/hooks/useMetrika.js +8 -0
  48. package/build/cjs/models/common.d.ts +45 -0
  49. package/build/cjs/models/common.js +22 -1
  50. package/build/cjs/models/constructor-items/common.d.ts +5 -5
  51. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -2
  52. package/build/cjs/models/navigation.d.ts +3 -9
  53. package/build/cjs/models/navigation.js +0 -1
  54. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +4 -3
  55. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -2
  56. package/build/cjs/schema/validators/common.d.ts +249 -0
  57. package/build/cjs/schema/validators/common.js +14 -0
  58. package/build/cjs/schema/validators/event.d.ts +37 -0
  59. package/build/cjs/schema/validators/event.js +38 -0
  60. package/build/cjs/sub-blocks/HubspotForm/index.js +15 -2
  61. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +13 -0
  62. package/build/cjs/sub-blocks/Quote/Quote.js +4 -1
  63. package/build/cjs/utils/analytics.d.ts +2 -0
  64. package/build/cjs/utils/analytics.js +17 -0
  65. package/build/cjs/utils/index.d.ts +1 -0
  66. package/build/cjs/utils/index.js +1 -0
  67. package/build/esm/blocks/Banner/schema.d.ts +234 -0
  68. package/build/esm/blocks/CardLayout/schema.d.ts +6 -0
  69. package/build/esm/blocks/ContentLayout/schema.d.ts +3 -0
  70. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +81 -0
  71. package/build/esm/blocks/Header/schema.d.ts +3 -0
  72. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  73. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  74. package/build/esm/blocks/LinkTable/schema.d.ts +3 -0
  75. package/build/esm/blocks/Map/schema.d.ts +81 -0
  76. package/build/esm/blocks/Media/schema.d.ts +162 -0
  77. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  78. package/build/esm/blocks/Questions/schema.d.ts +3 -0
  79. package/build/esm/blocks/Share/Share.js +6 -2
  80. package/build/esm/blocks/Simple/schema.d.ts +3 -0
  81. package/build/esm/blocks/Slider/schema.d.ts +3 -0
  82. package/build/esm/blocks/Table/schema.d.ts +3 -0
  83. package/build/esm/blocks/Tabs/schema.d.ts +81 -0
  84. package/build/esm/components/BackLink/BackLink.js +5 -1
  85. package/build/esm/components/Button/Button.js +6 -2
  86. package/build/esm/components/CardBase/CardBase.d.ts +2 -1
  87. package/build/esm/components/CardBase/CardBase.js +5 -1
  88. package/build/esm/components/Link/Link.js +5 -1
  89. package/build/esm/components/Media/Media.js +3 -2
  90. package/build/esm/components/Media/Video/Video.js +3 -2
  91. package/build/esm/components/ReactPlayer/ReactPlayer.js +17 -4
  92. package/build/esm/components/YandexForm/YandexForm.d.ts +2 -1
  93. package/build/esm/components/YandexForm/YandexForm.js +14 -2
  94. package/build/esm/containers/PageConstructor/Provider.d.ts +2 -0
  95. package/build/esm/containers/PageConstructor/Provider.js +3 -1
  96. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
  97. package/build/esm/context/analyticsContext/analyticsContext.d.ts +7 -0
  98. package/build/esm/context/analyticsContext/analyticsContext.js +2 -0
  99. package/build/esm/context/analyticsContext/index.d.ts +1 -0
  100. package/build/esm/context/analyticsContext/index.js +1 -0
  101. package/build/esm/context/blockIdContext/blockIdContext.d.ts +3 -0
  102. package/build/esm/context/blockIdContext/blockIdContext.js +2 -0
  103. package/build/esm/context/blockIdContext/index.d.ts +1 -0
  104. package/build/esm/context/blockIdContext/index.js +1 -0
  105. package/build/esm/context/metrikaContext/metrikaContext.d.ts +6 -0
  106. package/build/esm/hooks/index.d.ts +1 -0
  107. package/build/esm/hooks/index.js +1 -0
  108. package/build/esm/hooks/useAnalytics.d.ts +2 -0
  109. package/build/esm/hooks/useAnalytics.js +31 -0
  110. package/build/esm/hooks/useMetrika.d.ts +6 -0
  111. package/build/esm/hooks/useMetrika.js +8 -0
  112. package/build/esm/models/common.d.ts +45 -0
  113. package/build/esm/models/common.js +21 -0
  114. package/build/esm/models/constructor-items/common.d.ts +5 -5
  115. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -2
  116. package/build/esm/models/navigation.d.ts +3 -9
  117. package/build/esm/models/navigation.js +0 -1
  118. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +4 -3
  119. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -2
  120. package/build/esm/schema/validators/common.d.ts +249 -0
  121. package/build/esm/schema/validators/common.js +14 -0
  122. package/build/esm/schema/validators/event.d.ts +37 -0
  123. package/build/esm/schema/validators/event.js +35 -0
  124. package/build/esm/sub-blocks/HubspotForm/index.js +16 -3
  125. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +13 -0
  126. package/build/esm/sub-blocks/Quote/Quote.js +6 -3
  127. package/build/esm/utils/analytics.d.ts +2 -0
  128. package/build/esm/utils/analytics.js +13 -0
  129. package/build/esm/utils/index.d.ts +1 -0
  130. package/build/esm/utils/index.js +1 -0
  131. package/package.json +1 -2
  132. package/server/models/common.d.ts +45 -0
  133. package/server/models/common.js +22 -1
  134. package/server/models/constructor-items/common.d.ts +5 -5
  135. package/server/models/constructor-items/sub-blocks.d.ts +2 -2
  136. package/server/models/navigation.d.ts +3 -9
  137. package/server/models/navigation.js +0 -1
  138. package/server/utils/analytics.d.ts +2 -0
  139. package/server/utils/analytics.js +17 -0
  140. package/server/utils/index.d.ts +1 -0
  141. package/server/utils/index.js +1 -0
  142. package/build/cjs/navigation/components/NavigationItem/components/GithubStars/GithubStars.css +0 -14
  143. package/build/cjs/navigation/components/NavigationItem/components/GithubStars/GithubStars.d.ts +0 -5
  144. package/build/cjs/navigation/components/NavigationItem/components/GithubStars/GithubStars.js +0 -11
  145. package/build/esm/navigation/components/NavigationItem/components/GithubStars/GithubStars.css +0 -14
  146. package/build/esm/navigation/components/NavigationItem/components/GithubStars/GithubStars.d.ts +0 -6
  147. package/build/esm/navigation/components/NavigationItem/components/GithubStars/GithubStars.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.20.1](https://github.com/gravity-ui/page-constructor/compare/v1.20.0...v1.20.1) (2023-03-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * uninstall react-github-btn because is hot support cjs ([#188](https://github.com/gravity-ui/page-constructor/issues/188)) ([e32a51a](https://github.com/gravity-ui/page-constructor/commit/e32a51ae17a31dea8037a89a30f4b080e2aacb2e))
9
+
10
+ ## [1.20.0](https://github.com/gravity-ui/page-constructor/compare/v1.19.1...v1.20.0) (2023-03-01)
11
+
12
+
13
+ ### Features
14
+
15
+ * new analytics ([#121](https://github.com/gravity-ui/page-constructor/issues/121)) ([cc329bc](https://github.com/gravity-ui/page-constructor/commit/cc329bcca9b11cd8a5fb2b4ff30791134ee09535))
16
+
3
17
  ## [1.19.1](https://github.com/gravity-ui/page-constructor/compare/v1.19.0...v1.19.1) (2023-03-01)
4
18
 
5
19
 
package/README.md CHANGED
@@ -43,7 +43,8 @@ interface PageConstructorProviderProps {
43
43
  isMobile?: boolean; //A flag indicating that the code is executed in mobile mode.
44
44
  locale?: LocaleContextProps; //Info about the language and domain (used when generating and formatting links).
45
45
  location?: Location; //API of the browser or router history, the page URL.
46
- metrika?: Metrika; //Functions for sending analytics
46
+ analytics?: AnalyticsContextProps; // function to handle analytics event
47
+
47
48
  ssrConfig?: SSR; //A flag indicating that the code is run on the server size.
48
49
  theme?: 'light' | 'dark'; //Theme to render the page with.
49
50
  mapsContext?: MapsContextType; //Params for map: apikey, type, scriptSrc, nonce
@@ -82,11 +83,6 @@ interface SSR {
82
83
  isServer?: boolean;
83
84
  }
84
85
 
85
- interface Metrika {
86
- metrika?: any;
87
- pixel?: any;
88
- }
89
-
90
86
  interface NavigationData {
91
87
  logo: NavigationLogo;
92
88
  header: HeaderData;
@@ -219,6 +215,83 @@ To use maps, put the map type, scriptSrc and apiKey in field `mapContext` in `Pa
219
215
  You can define environment variables for dev-mode in .env.development file within project root.
220
216
  `STORYBOOK_GMAP_API_KEY` - apiKey for google maps
221
217
 
218
+ ### Analytics
219
+
220
+ #### Init
221
+
222
+ To start using any analytics, pass a handler to the constructor. The handler must be created on a project side. The handler will receive the `default` and `custom` event objects. The passed handler will be fired on a button, link, navigation, and control clicks. As one handler is used for all events treatment, pay attention to how to treat different events while creating the handler. There are predefined fields that serve to help you to build complex logic.
223
+
224
+ Pass `autoEvents: true` to constructor to fire automatically configured events.
225
+
226
+ ```ts
227
+ function sendEvents(events: MyEventType []) {
228
+ ...
229
+ }
230
+
231
+ <PageConstructorProvider
232
+ ...
233
+
234
+ analytics={{sendEvents, autoEvents: true}}
235
+
236
+ ...
237
+ />
238
+ ```
239
+
240
+ An event object has only one required field - `name`. It also has predefined fields, which serve to help manage complex logic. For example, `counter.include` can help to send event in a particular counter if several analytics systems are used in a project.
241
+
242
+ ```ts
243
+ type AnalyticsEvent<T = {}> = T & {
244
+ name: string;
245
+ type?: string;
246
+ counters?: AnalyticsCounters;
247
+ context?: string;
248
+ };
249
+ ```
250
+
251
+ It is possible to configure an event type needed for a project.
252
+
253
+ ```ts
254
+ type MyEventType = AnalyticsEvent<{
255
+ [key: string]?: string; // only a 'string' type is supported
256
+ }>;
257
+ ```
258
+
259
+ #### Counter selector
260
+
261
+ It is possible to configure an event to which an analytics system to sent.
262
+
263
+ ```ts
264
+ type AnalyticsCounters = {
265
+ include?: string[]; // array of analytics counter ids that will be applied
266
+ exclude?: string[]; // array of analytics counter ids that will not be applied
267
+ };
268
+ ```
269
+
270
+ #### context parameter
271
+
272
+ Pass `context` value to define place in a project where an event is fired.
273
+
274
+ Use selector below or create logic that serves project needs.
275
+
276
+ ```ts
277
+ // analyticsHandler.ts
278
+ if (isCounterAllowed(counterName, counters)) {
279
+ analyticsCounter.reachGoal(counterName, name, parameters);
280
+ }
281
+ ```
282
+
283
+ #### Reserved event types
284
+
285
+ Several predefined event types are used to mark automatically configured events. Use the types to filter default events, for example.
286
+
287
+ ```ts
288
+ enum PredefinedEventTypes {
289
+ Default = 'default-event', // default events which fire on every button click
290
+ Play = 'play', // React player event
291
+ Stop = 'stop', // React player event
292
+ }
293
+ ```
294
+
222
295
  ## Development
223
296
 
224
297
  ```bash
@@ -173,6 +173,84 @@ export declare const BannerCardProps: {
173
173
  };
174
174
  };
175
175
  };
176
+ analyticsEvents: {
177
+ anyOf: ({
178
+ type: string;
179
+ additionalProperties: {
180
+ type: string;
181
+ };
182
+ required: string[];
183
+ properties: {
184
+ name: {
185
+ type: string;
186
+ };
187
+ type: {
188
+ type: string;
189
+ };
190
+ counters: {
191
+ type: string;
192
+ additionalProperties: boolean;
193
+ required: never[];
194
+ properties: {
195
+ include: {
196
+ type: string;
197
+ items: {
198
+ type: string;
199
+ };
200
+ };
201
+ exclude: {
202
+ type: string;
203
+ items: {
204
+ type: string;
205
+ };
206
+ };
207
+ };
208
+ };
209
+ context: {
210
+ type: string;
211
+ };
212
+ };
213
+ } | {
214
+ type: string;
215
+ items: {
216
+ type: string;
217
+ additionalProperties: {
218
+ type: string;
219
+ };
220
+ required: string[];
221
+ properties: {
222
+ name: {
223
+ type: string;
224
+ };
225
+ type: {
226
+ type: string;
227
+ };
228
+ counters: {
229
+ type: string;
230
+ additionalProperties: boolean;
231
+ required: never[];
232
+ properties: {
233
+ include: {
234
+ type: string;
235
+ items: {
236
+ type: string;
237
+ };
238
+ };
239
+ exclude: {
240
+ type: string;
241
+ items: {
242
+ type: string;
243
+ };
244
+ };
245
+ };
246
+ };
247
+ context: {
248
+ type: string;
249
+ };
250
+ };
251
+ };
252
+ })[];
253
+ };
176
254
  target: {
177
255
  type: string;
178
256
  enum: string[];
@@ -375,6 +453,84 @@ export declare const BannerBlock: {
375
453
  };
376
454
  };
377
455
  };
456
+ analyticsEvents: {
457
+ anyOf: ({
458
+ type: string;
459
+ additionalProperties: {
460
+ type: string;
461
+ };
462
+ required: string[];
463
+ properties: {
464
+ name: {
465
+ type: string;
466
+ };
467
+ type: {
468
+ type: string;
469
+ };
470
+ counters: {
471
+ type: string;
472
+ additionalProperties: boolean;
473
+ required: never[];
474
+ properties: {
475
+ include: {
476
+ type: string;
477
+ items: {
478
+ type: string;
479
+ };
480
+ };
481
+ exclude: {
482
+ type: string;
483
+ items: {
484
+ type: string;
485
+ };
486
+ };
487
+ };
488
+ };
489
+ context: {
490
+ type: string;
491
+ };
492
+ };
493
+ } | {
494
+ type: string;
495
+ items: {
496
+ type: string;
497
+ additionalProperties: {
498
+ type: string;
499
+ };
500
+ required: string[];
501
+ properties: {
502
+ name: {
503
+ type: string;
504
+ };
505
+ type: {
506
+ type: string;
507
+ };
508
+ counters: {
509
+ type: string;
510
+ additionalProperties: boolean;
511
+ required: never[];
512
+ properties: {
513
+ include: {
514
+ type: string;
515
+ items: {
516
+ type: string;
517
+ };
518
+ };
519
+ exclude: {
520
+ type: string;
521
+ items: {
522
+ type: string;
523
+ };
524
+ };
525
+ };
526
+ };
527
+ context: {
528
+ type: string;
529
+ };
530
+ };
531
+ };
532
+ })[];
533
+ };
378
534
  target: {
379
535
  type: string;
380
536
  enum: string[];
@@ -578,6 +734,84 @@ export declare const BannerCard: {
578
734
  };
579
735
  };
580
736
  };
737
+ analyticsEvents: {
738
+ anyOf: ({
739
+ type: string;
740
+ additionalProperties: {
741
+ type: string;
742
+ };
743
+ required: string[];
744
+ properties: {
745
+ name: {
746
+ type: string;
747
+ };
748
+ type: {
749
+ type: string;
750
+ };
751
+ counters: {
752
+ type: string;
753
+ additionalProperties: boolean;
754
+ required: never[];
755
+ properties: {
756
+ include: {
757
+ type: string;
758
+ items: {
759
+ type: string;
760
+ };
761
+ };
762
+ exclude: {
763
+ type: string;
764
+ items: {
765
+ type: string;
766
+ };
767
+ };
768
+ };
769
+ };
770
+ context: {
771
+ type: string;
772
+ };
773
+ };
774
+ } | {
775
+ type: string;
776
+ items: {
777
+ type: string;
778
+ additionalProperties: {
779
+ type: string;
780
+ };
781
+ required: string[];
782
+ properties: {
783
+ name: {
784
+ type: string;
785
+ };
786
+ type: {
787
+ type: string;
788
+ };
789
+ counters: {
790
+ type: string;
791
+ additionalProperties: boolean;
792
+ required: never[];
793
+ properties: {
794
+ include: {
795
+ type: string;
796
+ items: {
797
+ type: string;
798
+ };
799
+ };
800
+ exclude: {
801
+ type: string;
802
+ items: {
803
+ type: string;
804
+ };
805
+ };
806
+ };
807
+ };
808
+ context: {
809
+ type: string;
810
+ };
811
+ };
812
+ };
813
+ })[];
814
+ };
581
815
  target: {
582
816
  type: string;
583
817
  enum: string[];
@@ -66,6 +66,9 @@ export declare const CardLayoutProps: {
66
66
  resetPaddings: {
67
67
  type: string;
68
68
  };
69
+ context: {
70
+ type: string;
71
+ };
69
72
  type: {};
70
73
  when: {};
71
74
  };
@@ -139,6 +142,9 @@ export declare const CardLayoutBlock: {
139
142
  resetPaddings: {
140
143
  type: string;
141
144
  };
145
+ context: {
146
+ type: string;
147
+ };
142
148
  type: {};
143
149
  when: {};
144
150
  };
@@ -144,6 +144,9 @@ export declare const ContentLayoutBlock: {
144
144
  resetPaddings: {
145
145
  type: string;
146
146
  };
147
+ context: {
148
+ type: string;
149
+ };
147
150
  type: {};
148
151
  when: {};
149
152
  };
@@ -41,6 +41,84 @@ export declare const ExtendedFeaturesItem: {
41
41
  type: string;
42
42
  enum: string[];
43
43
  };
44
+ analyticsEvents: {
45
+ anyOf: ({
46
+ type: string;
47
+ additionalProperties: {
48
+ type: string;
49
+ };
50
+ required: string[];
51
+ properties: {
52
+ name: {
53
+ type: string;
54
+ };
55
+ type: {
56
+ type: string;
57
+ };
58
+ counters: {
59
+ type: string;
60
+ additionalProperties: boolean;
61
+ required: never[];
62
+ properties: {
63
+ include: {
64
+ type: string;
65
+ items: {
66
+ type: string;
67
+ };
68
+ };
69
+ exclude: {
70
+ type: string;
71
+ items: {
72
+ type: string;
73
+ };
74
+ };
75
+ };
76
+ };
77
+ context: {
78
+ type: string;
79
+ };
80
+ };
81
+ } | {
82
+ type: string;
83
+ items: {
84
+ type: string;
85
+ additionalProperties: {
86
+ type: string;
87
+ };
88
+ required: string[];
89
+ properties: {
90
+ name: {
91
+ type: string;
92
+ };
93
+ type: {
94
+ type: string;
95
+ };
96
+ counters: {
97
+ type: string;
98
+ additionalProperties: boolean;
99
+ required: never[];
100
+ properties: {
101
+ include: {
102
+ type: string;
103
+ items: {
104
+ type: string;
105
+ };
106
+ };
107
+ exclude: {
108
+ type: string;
109
+ items: {
110
+ type: string;
111
+ };
112
+ };
113
+ };
114
+ };
115
+ context: {
116
+ type: string;
117
+ };
118
+ };
119
+ };
120
+ })[];
121
+ };
44
122
  type: {};
45
123
  when: {};
46
124
  };
@@ -124,6 +202,9 @@ export declare const ExtendedFeaturesBlock: {
124
202
  resetPaddings: {
125
203
  type: string;
126
204
  };
205
+ context: {
206
+ type: string;
207
+ };
127
208
  type: {};
128
209
  when: {};
129
210
  };
@@ -821,6 +821,9 @@ export declare const HeaderBlock: {
821
821
  resetPaddings: {
822
822
  type: string;
823
823
  };
824
+ context: {
825
+ type: string;
826
+ };
824
827
  type: {};
825
828
  when: {};
826
829
  };
@@ -433,6 +433,9 @@ export declare const HeaderSliderBlock: {
433
433
  resetPaddings: {
434
434
  type: string;
435
435
  };
436
+ context: {
437
+ type: string;
438
+ };
436
439
  type: {};
437
440
  when: {};
438
441
  };
@@ -54,6 +54,9 @@ export declare const IconsProps: {
54
54
  resetPaddings: {
55
55
  type: string;
56
56
  };
57
+ context: {
58
+ type: string;
59
+ };
57
60
  type: {};
58
61
  when: {};
59
62
  };
@@ -115,6 +118,9 @@ export declare const IconsBlock: {
115
118
  resetPaddings: {
116
119
  type: string;
117
120
  };
121
+ context: {
122
+ type: string;
123
+ };
118
124
  type: {};
119
125
  when: {};
120
126
  };
@@ -67,6 +67,9 @@ export declare const LinkTableBlock: {
67
67
  resetPaddings: {
68
68
  type: string;
69
69
  };
70
+ context: {
71
+ type: string;
72
+ };
70
73
  type: {};
71
74
  when: {};
72
75
  };
@@ -278,6 +278,84 @@ export declare const MapBlock: {
278
278
  };
279
279
  };
280
280
  };
281
+ analyticsEvents: {
282
+ anyOf: ({
283
+ type: string;
284
+ additionalProperties: {
285
+ type: string;
286
+ };
287
+ required: string[];
288
+ properties: {
289
+ name: {
290
+ type: string;
291
+ };
292
+ type: {
293
+ type: string;
294
+ };
295
+ counters: {
296
+ type: string;
297
+ additionalProperties: boolean;
298
+ required: never[];
299
+ properties: {
300
+ include: {
301
+ type: string;
302
+ items: {
303
+ type: string;
304
+ };
305
+ };
306
+ exclude: {
307
+ type: string;
308
+ items: {
309
+ type: string;
310
+ };
311
+ };
312
+ };
313
+ };
314
+ context: {
315
+ type: string;
316
+ };
317
+ };
318
+ } | {
319
+ type: string;
320
+ items: {
321
+ type: string;
322
+ additionalProperties: {
323
+ type: string;
324
+ };
325
+ required: string[];
326
+ properties: {
327
+ name: {
328
+ type: string;
329
+ };
330
+ type: {
331
+ type: string;
332
+ };
333
+ counters: {
334
+ type: string;
335
+ additionalProperties: boolean;
336
+ required: never[];
337
+ properties: {
338
+ include: {
339
+ type: string;
340
+ items: {
341
+ type: string;
342
+ };
343
+ };
344
+ exclude: {
345
+ type: string;
346
+ items: {
347
+ type: string;
348
+ };
349
+ };
350
+ };
351
+ };
352
+ context: {
353
+ type: string;
354
+ };
355
+ };
356
+ };
357
+ })[];
358
+ };
281
359
  target: {
282
360
  type: string;
283
361
  enum: string[];
@@ -377,6 +455,9 @@ export declare const MapBlock: {
377
455
  resetPaddings: {
378
456
  type: string;
379
457
  };
458
+ context: {
459
+ type: string;
460
+ };
380
461
  type: {};
381
462
  when: {};
382
463
  };