@gravity-ui/page-constructor 1.15.0-alpha.21 → 1.15.0-alpha.23

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 (184) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/README.md +3 -15
  3. package/build/cjs/blocks/Banner/schema.d.ts +0 -9
  4. package/build/cjs/blocks/Banner/schema.js +1 -3
  5. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +78 -0
  6. package/build/cjs/blocks/Header/schema.d.ts +0 -156
  7. package/build/cjs/blocks/Header/schema.js +0 -4
  8. package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -78
  9. package/build/cjs/blocks/Info/schema.d.ts +0 -3
  10. package/build/cjs/blocks/Info/schema.js +0 -2
  11. package/build/cjs/blocks/Preview/MediaContent/MediaContent.d.ts +1 -2
  12. package/build/cjs/blocks/Preview/schema.d.ts +0 -3
  13. package/build/cjs/blocks/Preview/schema.js +1 -3
  14. package/build/cjs/blocks/Security/schema.d.ts +0 -3
  15. package/build/cjs/blocks/Security/schema.js +1 -3
  16. package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
  17. package/build/cjs/blocks/Slider/Slider.css +0 -4
  18. package/build/cjs/blocks/Tabs/schema.d.ts +78 -0
  19. package/build/cjs/components/BackLink/BackLink.d.ts +0 -1
  20. package/build/cjs/components/BackLink/BackLink.js +4 -2
  21. package/build/cjs/components/Button/Button.js +1 -4
  22. package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +0 -1
  23. package/build/cjs/components/CardBase/CardBase.d.ts +2 -4
  24. package/build/cjs/components/Foldable/Foldable.css +4 -1
  25. package/build/cjs/components/Foldable/Foldable.js +7 -10
  26. package/build/cjs/components/FullscreenImage/FullscreenImage.js +8 -6
  27. package/build/cjs/components/FullscreenMedia/FullScreenMedia.css +70 -0
  28. package/build/cjs/components/FullscreenMedia/FullScreenMedia.d.ts +9 -0
  29. package/build/cjs/components/FullscreenMedia/FullScreenMedia.js +40 -0
  30. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +30 -0
  31. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +7 -2
  32. package/build/cjs/components/HeightCalculator/HeightCalculator.d.ts +4 -0
  33. package/build/cjs/components/HeightCalculator/HeightCalculator.js +4 -0
  34. package/build/cjs/components/Link/Link.js +1 -1
  35. package/build/cjs/components/Media/Media.js +3 -2
  36. package/build/cjs/components/MetaInfo/MetaInfo.css +13 -0
  37. package/build/cjs/components/MetaInfo/MetaInfo.d.ts +6 -0
  38. package/build/cjs/components/MetaInfo/MetaInfo.js +8 -0
  39. package/build/cjs/components/MetaInfo/schema.d.ts +8 -0
  40. package/build/cjs/components/MetaInfo/schema.js +10 -0
  41. package/build/cjs/components/ReactPlayer/ReactPlayer.js +1 -1
  42. package/build/cjs/components/VideoBlock/VideoBlock.d.ts +1 -0
  43. package/build/cjs/components/VideoBlock/VideoBlock.js +6 -10
  44. package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -4
  45. package/build/cjs/components/YandexForm/YandexForm.js +2 -2
  46. package/build/cjs/components/index.d.ts +2 -0
  47. package/build/cjs/components/index.js +5 -1
  48. package/build/cjs/constructor-items.d.ts +4 -0
  49. package/build/cjs/constructor-items.js +4 -0
  50. package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -0
  51. package/build/cjs/hooks/useHeightCalculator.d.ts +6 -0
  52. package/build/cjs/hooks/useHeightCalculator.js +27 -0
  53. package/build/cjs/models/common.d.ts +3 -0
  54. package/build/cjs/models/constructor-items/blocks.d.ts +0 -10
  55. package/build/cjs/models/constructor-items/common.d.ts +6 -30
  56. package/build/cjs/models/constructor-items/sub-blocks.d.ts +18 -7
  57. package/build/cjs/models/constructor-items/sub-blocks.js +4 -0
  58. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +5 -3
  59. package/build/cjs/schema/index.js +1 -0
  60. package/build/cjs/schema/validators/common.d.ts +78 -0
  61. package/build/cjs/schema/validators/common.js +2 -0
  62. package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
  63. package/build/cjs/schema/validators/sub-blocks.js +1 -0
  64. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -3
  65. package/build/cjs/sub-blocks/BackgroundCard/schema.js +0 -2
  66. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +2 -1
  67. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +14 -9
  68. package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +1 -1
  69. package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +26 -8
  70. package/build/cjs/sub-blocks/HubspotForm/index.js +5 -3
  71. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +16 -0
  72. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +3 -0
  73. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +21 -0
  74. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +218 -0
  75. package/build/cjs/sub-blocks/LayoutItem/schema.js +18 -0
  76. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +29 -0
  77. package/build/cjs/sub-blocks/LayoutItem/utils.js +12 -0
  78. package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
  79. package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -3
  80. package/build/cjs/sub-blocks/Quote/schema.js +1 -3
  81. package/build/cjs/sub-blocks/index.d.ts +1 -0
  82. package/build/cjs/sub-blocks/index.js +3 -1
  83. package/build/cjs/text-transform/blocks.js +17 -0
  84. package/build/cjs/utils/hubspot.d.ts +2 -1
  85. package/build/cjs/utils/hubspot.js +5 -1
  86. package/build/esm/blocks/Banner/schema.d.ts +0 -9
  87. package/build/esm/blocks/Banner/schema.js +1 -3
  88. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +78 -0
  89. package/build/esm/blocks/Header/schema.d.ts +0 -156
  90. package/build/esm/blocks/Header/schema.js +0 -4
  91. package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -78
  92. package/build/esm/blocks/Info/schema.d.ts +0 -3
  93. package/build/esm/blocks/Info/schema.js +0 -2
  94. package/build/esm/blocks/Preview/MediaContent/MediaContent.d.ts +1 -2
  95. package/build/esm/blocks/Preview/schema.d.ts +0 -3
  96. package/build/esm/blocks/Preview/schema.js +1 -3
  97. package/build/esm/blocks/Security/schema.d.ts +0 -3
  98. package/build/esm/blocks/Security/schema.js +1 -3
  99. package/build/esm/blocks/Slider/Arrow/Arrow.js +2 -2
  100. package/build/esm/blocks/Slider/Slider.css +0 -4
  101. package/build/esm/blocks/Tabs/schema.d.ts +78 -0
  102. package/build/esm/components/BackLink/BackLink.d.ts +0 -1
  103. package/build/esm/components/BackLink/BackLink.js +4 -2
  104. package/build/esm/components/Button/Button.js +1 -4
  105. package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +0 -1
  106. package/build/esm/components/CardBase/CardBase.d.ts +2 -4
  107. package/build/esm/components/Foldable/Foldable.css +4 -1
  108. package/build/esm/components/Foldable/Foldable.js +8 -11
  109. package/build/esm/components/FullscreenImage/FullscreenImage.js +9 -7
  110. package/build/esm/components/FullscreenMedia/FullScreenMedia.css +70 -0
  111. package/build/esm/components/FullscreenMedia/FullScreenMedia.d.ts +10 -0
  112. package/build/esm/components/FullscreenMedia/FullScreenMedia.js +38 -0
  113. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +30 -0
  114. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +7 -2
  115. package/build/esm/components/HeightCalculator/HeightCalculator.d.ts +4 -0
  116. package/build/esm/components/HeightCalculator/HeightCalculator.js +4 -0
  117. package/build/esm/components/Link/Link.js +1 -1
  118. package/build/esm/components/Media/Media.js +3 -2
  119. package/build/esm/components/MetaInfo/MetaInfo.css +13 -0
  120. package/build/esm/components/MetaInfo/MetaInfo.d.ts +7 -0
  121. package/build/esm/components/MetaInfo/MetaInfo.js +6 -0
  122. package/build/esm/components/MetaInfo/schema.d.ts +8 -0
  123. package/build/esm/components/MetaInfo/schema.js +8 -0
  124. package/build/esm/components/ReactPlayer/ReactPlayer.js +1 -1
  125. package/build/esm/components/VideoBlock/VideoBlock.d.ts +1 -0
  126. package/build/esm/components/VideoBlock/VideoBlock.js +6 -10
  127. package/build/esm/components/YandexForm/YandexForm.d.ts +2 -4
  128. package/build/esm/components/YandexForm/YandexForm.js +2 -2
  129. package/build/esm/components/index.d.ts +2 -0
  130. package/build/esm/components/index.js +2 -0
  131. package/build/esm/constructor-items.d.ts +4 -0
  132. package/build/esm/constructor-items.js +5 -1
  133. package/build/esm/containers/PageConstructor/PageConstructor.css +1 -0
  134. package/build/esm/hooks/useHeightCalculator.d.ts +6 -0
  135. package/build/esm/hooks/useHeightCalculator.js +24 -0
  136. package/build/esm/models/common.d.ts +3 -0
  137. package/build/esm/models/constructor-items/blocks.d.ts +0 -10
  138. package/build/esm/models/constructor-items/common.d.ts +6 -30
  139. package/build/esm/models/constructor-items/sub-blocks.d.ts +18 -7
  140. package/build/esm/models/constructor-items/sub-blocks.js +4 -0
  141. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +5 -3
  142. package/build/esm/schema/index.js +1 -0
  143. package/build/esm/schema/validators/common.d.ts +78 -0
  144. package/build/esm/schema/validators/common.js +2 -0
  145. package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
  146. package/build/esm/schema/validators/sub-blocks.js +1 -0
  147. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -3
  148. package/build/esm/sub-blocks/BackgroundCard/schema.js +0 -2
  149. package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -2
  150. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +14 -9
  151. package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +1 -1
  152. package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js +26 -8
  153. package/build/esm/sub-blocks/HubspotForm/index.js +5 -3
  154. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +16 -0
  155. package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +4 -0
  156. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +20 -0
  157. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +218 -0
  158. package/build/esm/sub-blocks/LayoutItem/schema.js +14 -0
  159. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +29 -0
  160. package/build/esm/sub-blocks/LayoutItem/utils.js +6 -0
  161. package/build/esm/sub-blocks/Quote/Quote.js +2 -2
  162. package/build/esm/sub-blocks/Quote/schema.d.ts +0 -3
  163. package/build/esm/sub-blocks/Quote/schema.js +1 -3
  164. package/build/esm/sub-blocks/index.d.ts +1 -0
  165. package/build/esm/sub-blocks/index.js +1 -0
  166. package/build/esm/text-transform/blocks.js +17 -0
  167. package/build/esm/utils/hubspot.d.ts +2 -1
  168. package/build/esm/utils/hubspot.js +5 -1
  169. package/package.json +5 -2
  170. package/server/models/common.d.ts +3 -0
  171. package/server/models/constructor-items/blocks.d.ts +0 -10
  172. package/server/models/constructor-items/common.d.ts +6 -30
  173. package/server/models/constructor-items/sub-blocks.d.ts +18 -7
  174. package/server/models/constructor-items/sub-blocks.js +4 -0
  175. package/server/text-transform/blocks.js +17 -0
  176. package/server/utils/hubspot.d.ts +2 -1
  177. package/server/utils/hubspot.js +5 -1
  178. package/styles/root.scss +1 -0
  179. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.css +0 -30
  180. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.d.ts +0 -12
  181. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.js +0 -28
  182. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.css +0 -30
  183. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.d.ts +0 -13
  184. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbsItem.js +0 -25
package/CHANGELOG.md CHANGED
@@ -1,5 +1,93 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.16.2](https://github.com/gravity-ui/page-constructor/compare/v1.16.1...v1.16.2) (2023-02-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **HubspotForm:** required checkbox ([#154](https://github.com/gravity-ui/page-constructor/issues/154)) ([6c948d1](https://github.com/gravity-ui/page-constructor/commit/6c948d1a3511e16902e6808d83ac3f0ac14b6d9c))
9
+
10
+ ## [1.16.1](https://github.com/gravity-ui/page-constructor/compare/v1.16.0...v1.16.1) (2023-02-14)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * youtube dimensions ratio for large screens ([#151](https://github.com/gravity-ui/page-constructor/issues/151)) ([5ee3c9c](https://github.com/gravity-ui/page-constructor/commit/5ee3c9cabe641bd437a02d137528424df7fd2c5a))
16
+
17
+ ## [1.16.0](https://github.com/gravity-ui/page-constructor/compare/v1.15.4...v1.16.0) (2023-02-14)
18
+
19
+
20
+ ### Features
21
+
22
+ * **HubspotForm:** add render outside virtual dom ([#138](https://github.com/gravity-ui/page-constructor/issues/138)) ([1b8694c](https://github.com/gravity-ui/page-constructor/commit/1b8694c6893df63ffabab84779febad57362804c))
23
+
24
+ ## [1.15.4](https://github.com/gravity-ui/page-constructor/compare/v1.15.3...v1.15.4) (2023-02-13)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * freeze-es-5-ext ([#146](https://github.com/gravity-ui/page-constructor/issues/146)) ([72ca5f9](https://github.com/gravity-ui/page-constructor/commit/72ca5f90dee5b3a45d895695416b3398a46973b4))
30
+
31
+ ## [1.15.3](https://github.com/gravity-ui/page-constructor/compare/v1.15.2...v1.15.3) (2023-02-10)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * fullscreen icon hide ([#141](https://github.com/gravity-ui/page-constructor/issues/141)) ([dfec755](https://github.com/gravity-ui/page-constructor/commit/dfec75544102299d0f82b72dbb5f334759a63cb0))
37
+
38
+ ## [1.15.2](https://github.com/gravity-ui/page-constructor/compare/v1.15.1...v1.15.2) (2023-02-10)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * add layout item to card stories ([#143](https://github.com/gravity-ui/page-constructor/issues/143)) ([078c7f2](https://github.com/gravity-ui/page-constructor/commit/078c7f24e1e6a620ad57b929f08dd703092463f5))
44
+
45
+ ## [1.15.1](https://github.com/gravity-ui/page-constructor/compare/v1.15.0...v1.15.1) (2023-02-10)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * change meta info tag to h4 ([#140](https://github.com/gravity-ui/page-constructor/issues/140)) ([8cd84bd](https://github.com/gravity-ui/page-constructor/commit/8cd84bd5e313b41caf240b1ff155a9698ec9c17a))
51
+
52
+ ## [1.15.0](https://github.com/gravity-ui/page-constructor/compare/v1.14.4...v1.15.0) (2023-02-10)
53
+
54
+
55
+ ### Features
56
+
57
+ * add handler for submit error in hubspot forms ([#135](https://github.com/gravity-ui/page-constructor/issues/135)) ([5f9b7a8](https://github.com/gravity-ui/page-constructor/commit/5f9b7a89996b0d2237d62ffccbea6d08f19a8d35))
58
+
59
+ ## [1.14.4](https://github.com/gravity-ui/page-constructor/compare/v1.14.3...v1.14.4) (2023-02-10)
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * changelog ([#136](https://github.com/gravity-ui/page-constructor/issues/136)) ([a07c738](https://github.com/gravity-ui/page-constructor/commit/a07c738e09898a952e63e1f0712cc9a31076cc1c))
65
+
66
+ ## [1.14.3](https://github.com/gravity-ui/page-constructor/compare/v1.14.2...v1.14.3) (2023-02-10)
67
+
68
+ ### Features
69
+
70
+ * LayoutItem was added and CardWithImage was deprecated ([#132](https://github.com/gravity-ui/page-constructor/issues/132))([4abebb5](https://github.com/gravity-ui/page-constructor/commit/4abebb573e12d0976d61541e2f33c17f3d25453a))
71
+
72
+ ### Bug Fixes
73
+
74
+ * remove unused card types ([#130](https://github.com/gravity-ui/page-constructor/issues/130)) ([22da2fa](https://github.com/gravity-ui/page-constructor/commit/22da2fadd433e12e84cf8afd238c369cff5f2c24))
75
+
76
+ ## [1.14.2](https://github.com/gravity-ui/page-constructor/compare/v1.14.1...v1.14.2) (2023-02-02)
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * **HubspotForm:** border-radius ([#128](https://github.com/gravity-ui/page-constructor/issues/128)) ([437344b](https://github.com/gravity-ui/page-constructor/commit/437344b510cbde11bdf6e3a3ceb914fb0818a016))
82
+
83
+ ## [1.14.1](https://github.com/gravity-ui/page-constructor/compare/v1.14.0...v1.14.1) (2023-02-01)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * enable addons menu by default ([7772a55](https://github.com/gravity-ui/page-constructor/commit/7772a554950643d7cdbb86a8dedade6f916ae176))
89
+ * **Storybook:** fix links ([#123](https://github.com/gravity-ui/page-constructor/issues/123)) ([10cfe80](https://github.com/gravity-ui/page-constructor/commit/10cfe8054178bd577014dfff83033ff0c0dd9add))
90
+
3
91
  ## [1.14.0](https://github.com/gravity-ui/page-constructor/compare/v1.13.2...v1.14.0) (2023-01-25)
4
92
 
5
93
 
package/README.md CHANGED
@@ -82,18 +82,6 @@ interface SSR {
82
82
  isServer?: boolean;
83
83
  }
84
84
 
85
- type AnalyticsCounters = {
86
- include?: string[];
87
- exclude?: string[];
88
- };
89
-
90
- type AnalyticsEvent<T = {}> = T & {
91
- name: string;
92
- type?: string;
93
- counters?: AnalyticsCounters;
94
- context?: string;
95
- };
96
-
97
85
  interface NavigationData {
98
86
  logo: NavigationLogo;
99
87
  header: HeaderData;
@@ -261,7 +249,7 @@ It is possible to configure an event type needed for a project.
261
249
 
262
250
  ```ts
263
251
  type MyEventType = AnalyticsEvent<{
264
- anyParameterName?: string; // only a 'string' type is supported
252
+ [key: string]?: string; // only a 'string' type is supported
265
253
  }>;
266
254
  ```
267
255
 
@@ -271,8 +259,8 @@ It is possible to configure an event to which an analytics system to sent.
271
259
 
272
260
  ```ts
273
261
  type AnalyticsCounters = {
274
- include?: string[];
275
- exclude?: string[];
262
+ include?: string[]; // array of analytics counter ids that will be applied
263
+ exclude?: string[]; // array of analytics counter ids that will not be applied
276
264
  };
277
265
  ```
278
266
 
@@ -270,9 +270,6 @@ export declare const BannerCardProps: {
270
270
  required: string[];
271
271
  };
272
272
  };
273
- context: {
274
- type: string;
275
- };
276
273
  animated: {
277
274
  type: string;
278
275
  };
@@ -553,9 +550,6 @@ export declare const BannerBlock: {
553
550
  required: string[];
554
551
  };
555
552
  };
556
- context: {
557
- type: string;
558
- };
559
553
  animated: {
560
554
  type: string;
561
555
  };
@@ -837,9 +831,6 @@ export declare const BannerCard: {
837
831
  required: string[];
838
832
  };
839
833
  };
840
- context: {
841
- type: string;
842
- };
843
834
  animated: {
844
835
  type: string;
845
836
  };
@@ -20,9 +20,7 @@ exports.BannerCardProps = {
20
20
  }), theme: common_1.ThemeProps, width: {
21
21
  type: 'string',
22
22
  enum: ['s', 'm', 'l'],
23
- }, button: common_1.ButtonBlock, context: {
24
- type: 'string',
25
- } }),
23
+ }, button: common_1.ButtonBlock }),
26
24
  };
27
25
  exports.BannerBlock = {
28
26
  'banner-block': exports.BannerCardProps,
@@ -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
  };
@@ -274,84 +274,6 @@ export declare const HeaderProperties: {
274
274
  type: string;
275
275
  contentType: string;
276
276
  };
277
- analyticsEvents: {
278
- anyOf: ({
279
- type: string;
280
- additionalProperties: {
281
- type: string;
282
- };
283
- required: string[];
284
- properties: {
285
- name: {
286
- type: string;
287
- };
288
- type: {
289
- type: string;
290
- };
291
- counters: {
292
- type: string;
293
- additionalProperties: boolean;
294
- required: never[];
295
- properties: {
296
- include: {
297
- type: string;
298
- items: {
299
- type: string;
300
- };
301
- };
302
- exclude: {
303
- type: string;
304
- items: {
305
- type: string;
306
- };
307
- };
308
- };
309
- };
310
- context: {
311
- type: string;
312
- };
313
- };
314
- } | {
315
- type: string;
316
- items: {
317
- type: string;
318
- additionalProperties: {
319
- type: string;
320
- };
321
- required: string[];
322
- properties: {
323
- name: {
324
- type: string;
325
- };
326
- type: {
327
- type: string;
328
- };
329
- counters: {
330
- type: string;
331
- additionalProperties: boolean;
332
- required: never[];
333
- properties: {
334
- include: {
335
- type: string;
336
- items: {
337
- type: string;
338
- };
339
- };
340
- exclude: {
341
- type: string;
342
- items: {
343
- type: string;
344
- };
345
- };
346
- };
347
- };
348
- context: {
349
- type: string;
350
- };
351
- };
352
- };
353
- })[];
354
- };
355
277
  };
356
278
  };
357
279
  imageSize: {
@@ -685,84 +607,6 @@ export declare const HeaderBlock: {
685
607
  type: string;
686
608
  contentType: string;
687
609
  };
688
- analyticsEvents: {
689
- anyOf: ({
690
- type: string;
691
- additionalProperties: {
692
- type: string;
693
- };
694
- required: string[];
695
- properties: {
696
- name: {
697
- type: string;
698
- };
699
- type: {
700
- type: string;
701
- };
702
- counters: {
703
- type: string;
704
- additionalProperties: boolean;
705
- required: never[];
706
- properties: {
707
- include: {
708
- type: string;
709
- items: {
710
- type: string;
711
- };
712
- };
713
- exclude: {
714
- type: string;
715
- items: {
716
- type: string;
717
- };
718
- };
719
- };
720
- };
721
- context: {
722
- type: string;
723
- };
724
- };
725
- } | {
726
- type: string;
727
- items: {
728
- type: string;
729
- additionalProperties: {
730
- type: string;
731
- };
732
- required: string[];
733
- properties: {
734
- name: {
735
- type: string;
736
- };
737
- type: {
738
- type: string;
739
- };
740
- counters: {
741
- type: string;
742
- additionalProperties: boolean;
743
- required: never[];
744
- properties: {
745
- include: {
746
- type: string;
747
- items: {
748
- type: string;
749
- };
750
- };
751
- exclude: {
752
- type: string;
753
- items: {
754
- type: string;
755
- };
756
- };
757
- };
758
- };
759
- context: {
760
- type: string;
761
- };
762
- };
763
- };
764
- })[];
765
- };
766
610
  };
767
611
  };
768
612
  imageSize: {
@@ -4,7 +4,6 @@ exports.HeaderBlock = exports.HeaderProperties = exports.HeaderBackgroundProps =
4
4
  const common_1 = require("../../schema/validators/common");
5
5
  const utils_1 = require("../../schema/validators/utils");
6
6
  const schema_1 = require("../../components/Image/schema");
7
- const event_1 = require("../../schema/validators/event");
8
7
  exports.HeaderBackgroundProps = {
9
8
  type: 'object',
10
9
  additionalProperties: false,
@@ -46,9 +45,6 @@ exports.HeaderProperties = {
46
45
  type: 'string',
47
46
  contentType: 'text',
48
47
  },
49
- analyticsEvents: {
50
- anyOf: [event_1.AnalyticsEventSchema, { type: 'array', items: event_1.AnalyticsEventSchema }],
51
- },
52
48
  },
53
49
  },
54
50
  imageSize: {
@@ -144,84 +144,6 @@ export declare const HeaderSliderBlock: {
144
144
  type: string;
145
145
  contentType: string;
146
146
  };
147
- analyticsEvents: {
148
- anyOf: ({
149
- type: string;
150
- additionalProperties: {
151
- type: string;
152
- };
153
- required: string[];
154
- properties: {
155
- name: {
156
- type: string;
157
- };
158
- type: {
159
- type: string;
160
- };
161
- counters: {
162
- type: string;
163
- additionalProperties: boolean;
164
- required: never[];
165
- properties: {
166
- include: {
167
- type: string;
168
- items: {
169
- type: string;
170
- };
171
- };
172
- exclude: {
173
- type: string;
174
- items: {
175
- type: string;
176
- };
177
- };
178
- };
179
- };
180
- context: {
181
- type: string;
182
- };
183
- };
184
- } | {
185
- type: string;
186
- items: {
187
- type: string;
188
- additionalProperties: {
189
- type: string;
190
- };
191
- required: string[];
192
- properties: {
193
- name: {
194
- type: string;
195
- };
196
- type: {
197
- type: string;
198
- };
199
- counters: {
200
- type: string;
201
- additionalProperties: boolean;
202
- required: never[];
203
- properties: {
204
- include: {
205
- type: string;
206
- items: {
207
- type: string;
208
- };
209
- };
210
- exclude: {
211
- type: string;
212
- items: {
213
- type: string;
214
- };
215
- };
216
- };
217
- };
218
- context: {
219
- type: string;
220
- };
221
- };
222
- };
223
- })[];
224
- };
225
147
  };
226
148
  };
227
149
  imageSize: {
@@ -21,9 +21,6 @@ export declare const InfoBlock: {
21
21
  type: string;
22
22
  contentType: string;
23
23
  };
24
- context: {
25
- type: string;
26
- };
27
24
  buttons: {
28
25
  type: string;
29
26
  items: {
@@ -22,8 +22,6 @@ exports.InfoBlock = {
22
22
  }), sectionsTitle: {
23
23
  type: 'string',
24
24
  contentType: 'text',
25
- }, context: {
26
- type: 'string',
27
25
  }, buttons: (0, utils_1.filteredArray)(common_1.ButtonBlock), theme: common_1.ThemeProps, links: (0, utils_1.filteredArray)(common_1.LinkProps), leftContent: ContentProps, rightContent: ContentProps }),
28
26
  },
29
27
  };
@@ -8,7 +8,6 @@ interface MediaContentProps extends Refable<HTMLDivElement> {
8
8
  switching: boolean;
9
9
  isActiveBlock: (id: number, isMediaBlock?: boolean) => boolean;
10
10
  showMediaContent: (id: number) => void;
11
- context?: string;
12
11
  }
13
- declare const MediaContent: React.ForwardRefExoticComponent<Pick<MediaContentProps, "title" | "context" | "items" | "description" | "ratioMediaContent" | "switching" | "isActiveBlock" | "showMediaContent"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const MediaContent: React.ForwardRefExoticComponent<Pick<MediaContentProps, "title" | "items" | "description" | "ratioMediaContent" | "switching" | "isActiveBlock" | "showMediaContent"> & React.RefAttributes<HTMLDivElement>>;
14
13
  export default MediaContent;
@@ -30,9 +30,6 @@ export declare const PreviewBlock: {
30
30
  };
31
31
  };
32
32
  };
33
- context: {
34
- type: string;
35
- };
36
33
  animated: {
37
34
  type: string;
38
35
  };
@@ -48,8 +48,6 @@ exports.PreviewBlock = {
48
48
  }, ratioMediaContent: {
49
49
  type: 'string',
50
50
  enum: previewRatioMediaContent,
51
- }, items: (0, utils_1.filteredArray)(PreviewItem), context: {
52
- type: 'string',
53
- } }),
51
+ }, items: (0, utils_1.filteredArray)(PreviewItem) }),
54
52
  },
55
53
  };
@@ -160,9 +160,6 @@ export declare const SecurityBlock: {
160
160
  };
161
161
  };
162
162
  };
163
- context: {
164
- type: string;
165
- };
166
163
  animated: {
167
164
  type: string;
168
165
  };
@@ -27,8 +27,6 @@ exports.SecurityBlock = {
27
27
  },
28
28
  link: lodash_1.default.pick(common_1.LinkProps, ['text', 'url']),
29
29
  },
30
- }), context: {
31
- type: 'string',
32
- } }),
30
+ }) }),
33
31
  },
34
32
  };
@@ -5,8 +5,8 @@ const react_1 = tslib_1.__importDefault(require("react"));
5
5
  const utils_1 = require("../../../utils");
6
6
  const ToggleArrow_1 = tslib_1.__importDefault(require("../../../components/ToggleArrow/ToggleArrow"));
7
7
  const b = (0, utils_1.block)('slider-block-arrow');
8
- const Arrow = ({ type, handleClick, className, size = 16 }) => (react_1.default.createElement("div", { className: b({ type }, className), onClick: () => handleClick && handleClick(type) },
9
- react_1.default.createElement("button", { className: b('button') },
8
+ const Arrow = ({ type, handleClick, className, size = 16 }) => (react_1.default.createElement("div", { className: b({ type }, className) },
9
+ react_1.default.createElement("button", { className: b('button'), onClick: () => handleClick && handleClick(type) },
10
10
  react_1.default.createElement("div", { className: b('icon-wrapper') },
11
11
  react_1.default.createElement(ToggleArrow_1.default, { size: size, type: 'horizontal', iconType: "navigation", className: b('icon') })))));
12
12
  exports.default = Arrow;
@@ -179,11 +179,7 @@ unpredictable css rules order in build */
179
179
  }
180
180
  .pc-SliderBlock_type_media-card .slick-arrow {
181
181
  display: none;
182
- height: 100%;
183
182
  width: 64px;
184
- top: 0;
185
- }
186
- .pc-SliderBlock_type_media-card .slick-arrow button {
187
183
  top: 50%;
188
184
  transform: translate(0, -50%);
189
185
  }