@gravity-ui/page-constructor 1.15.0-alpha.9 → 1.15.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 (269) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +5 -75
  3. package/build/cjs/blocks/Banner/Banner.js +2 -3
  4. package/build/cjs/blocks/Banner/schema.d.ts +0 -243
  5. package/build/cjs/blocks/Banner/schema.js +1 -3
  6. package/build/cjs/blocks/CardLayout/schema.d.ts +0 -6
  7. package/build/cjs/blocks/ContentLayout/ContentLayout.js +2 -3
  8. package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -3
  9. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.d.ts +1 -1
  10. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -3
  11. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -3
  12. package/build/cjs/blocks/Header/Header.js +5 -6
  13. package/build/cjs/blocks/Header/schema.d.ts +0 -3
  14. package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -3
  15. package/build/cjs/blocks/Icons/schema.d.ts +0 -6
  16. package/build/cjs/blocks/Info/Info.js +3 -4
  17. package/build/cjs/blocks/Info/schema.d.ts +0 -3
  18. package/build/cjs/blocks/Info/schema.js +0 -2
  19. package/build/cjs/blocks/LinkTable/schema.d.ts +0 -3
  20. package/build/cjs/blocks/Media/Media.js +2 -3
  21. package/build/cjs/blocks/Media/MediaContent.js +2 -3
  22. package/build/cjs/blocks/Media/schema.d.ts +0 -81
  23. package/build/cjs/blocks/Preview/MediaContent/MediaContent.d.ts +1 -2
  24. package/build/cjs/blocks/Preview/MediaContent/MediaContent.js +2 -3
  25. package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.d.ts +0 -1
  26. package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.js +2 -3
  27. package/build/cjs/blocks/Preview/Preview.js +2 -3
  28. package/build/cjs/blocks/Preview/schema.d.ts +0 -3
  29. package/build/cjs/blocks/Preview/schema.js +1 -3
  30. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +2 -3
  31. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -3
  32. package/build/cjs/blocks/Questions/Questions.js +2 -3
  33. package/build/cjs/blocks/Questions/schema.d.ts +0 -3
  34. package/build/cjs/blocks/Security/Security.js +2 -3
  35. package/build/cjs/blocks/Security/schema.d.ts +0 -3
  36. package/build/cjs/blocks/Security/schema.js +1 -3
  37. package/build/cjs/blocks/Share/Share.d.ts +1 -1
  38. package/build/cjs/blocks/Share/Share.js +2 -10
  39. package/build/cjs/blocks/Simple/schema.d.ts +0 -3
  40. package/build/cjs/blocks/Slider/schema.d.ts +0 -3
  41. package/build/cjs/blocks/Table/schema.d.ts +0 -3
  42. package/build/cjs/blocks/Tabs/Tabs.d.ts +1 -1
  43. package/build/cjs/blocks/Tabs/Tabs.js +4 -5
  44. package/build/cjs/blocks/Tabs/schema.d.ts +0 -3
  45. package/build/cjs/components/BackLink/BackLink.d.ts +0 -1
  46. package/build/cjs/components/BackLink/BackLink.js +2 -11
  47. package/build/cjs/components/BackgroundMedia/BackgroundMedia.js +1 -2
  48. package/build/cjs/components/Button/Button.d.ts +0 -1
  49. package/build/cjs/components/Button/Button.js +2 -11
  50. package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +0 -1
  51. package/build/cjs/components/ButtonTabs/ButtonTabs.js +2 -11
  52. package/build/cjs/components/CardBase/CardBase.d.ts +0 -3
  53. package/build/cjs/components/CardBase/CardBase.js +1 -10
  54. package/build/cjs/components/FullscreenImage/FullscreenImage.js +8 -6
  55. package/build/cjs/components/FullscreenMedia/FullScreenMedia.css +70 -0
  56. package/build/cjs/components/FullscreenMedia/FullScreenMedia.d.ts +9 -0
  57. package/build/cjs/components/FullscreenMedia/FullScreenMedia.js +40 -0
  58. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -10
  59. package/build/cjs/components/Link/Link.js +2 -11
  60. package/build/cjs/components/Media/Media.js +5 -7
  61. package/build/cjs/components/Media/Video/Video.js +3 -6
  62. package/build/cjs/components/MetaInfo/MetaInfo.css +13 -0
  63. package/build/cjs/components/MetaInfo/MetaInfo.d.ts +6 -0
  64. package/build/cjs/components/MetaInfo/MetaInfo.js +8 -0
  65. package/build/cjs/components/MetaInfo/schema.d.ts +8 -0
  66. package/build/cjs/components/MetaInfo/schema.js +10 -0
  67. package/build/cjs/components/ReactPlayer/ReactPlayer.js +3 -15
  68. package/build/cjs/components/VideoBlock/VideoBlock.d.ts +1 -0
  69. package/build/cjs/components/VideoBlock/VideoBlock.js +6 -10
  70. package/build/cjs/components/YandexForm/YandexForm.d.ts +0 -3
  71. package/build/cjs/components/YandexForm/YandexForm.js +2 -19
  72. package/build/cjs/components/index.d.ts +2 -0
  73. package/build/cjs/components/index.js +5 -1
  74. package/build/cjs/constructor-items.d.ts +9 -5
  75. package/build/cjs/constructor-items.js +4 -0
  76. package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -0
  77. package/build/cjs/containers/PageConstructor/Provider.d.ts +0 -2
  78. package/build/cjs/containers/PageConstructor/Provider.js +1 -3
  79. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -6
  80. package/build/cjs/hooks/index.d.ts +0 -1
  81. package/build/cjs/hooks/index.js +0 -1
  82. package/build/cjs/hooks/useMetrika.d.ts +0 -6
  83. package/build/cjs/hooks/useMetrika.js +0 -8
  84. package/build/cjs/models/common.d.ts +0 -34
  85. package/build/cjs/models/common.js +1 -10
  86. package/build/cjs/models/constructor-items/blocks.d.ts +0 -11
  87. package/build/cjs/models/constructor-items/common.d.ts +2 -27
  88. package/build/cjs/models/constructor-items/sub-blocks.d.ts +16 -6
  89. package/build/cjs/models/constructor-items/sub-blocks.js +4 -0
  90. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +2 -3
  91. package/build/cjs/schema/index.js +1 -0
  92. package/build/cjs/schema/validators/common.d.ts +0 -171
  93. package/build/cjs/schema/validators/common.js +0 -12
  94. package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
  95. package/build/cjs/schema/validators/sub-blocks.js +1 -0
  96. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -3
  97. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +0 -3
  98. package/build/cjs/sub-blocks/BackgroundCard/schema.js +0 -2
  99. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +2 -3
  100. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +2 -3
  101. package/build/cjs/sub-blocks/CardWithImage/CardWithImage.d.ts +1 -1
  102. package/build/cjs/sub-blocks/CardWithImage/CardWithImage.js +2 -3
  103. package/build/cjs/sub-blocks/Content/Content.js +3 -4
  104. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +2 -2
  105. package/build/cjs/sub-blocks/HubspotForm/index.js +3 -18
  106. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +16 -0
  107. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.d.ts +3 -0
  108. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +21 -0
  109. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +218 -0
  110. package/build/cjs/sub-blocks/LayoutItem/schema.js +18 -0
  111. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +15 -0
  112. package/build/cjs/sub-blocks/LayoutItem/utils.js +12 -0
  113. package/build/cjs/sub-blocks/MediaCard/MediaCard.d.ts +1 -1
  114. package/build/cjs/sub-blocks/MediaCard/MediaCard.js +2 -3
  115. package/build/cjs/sub-blocks/Quote/Quote.js +2 -9
  116. package/build/cjs/sub-blocks/Quote/schema.d.ts +0 -3
  117. package/build/cjs/sub-blocks/Quote/schema.js +1 -3
  118. package/build/cjs/sub-blocks/index.d.ts +1 -0
  119. package/build/cjs/sub-blocks/index.js +3 -1
  120. package/build/cjs/text-transform/blocks.js +17 -0
  121. package/build/cjs/utils/hubspot.d.ts +2 -1
  122. package/build/cjs/utils/hubspot.js +5 -1
  123. package/build/esm/blocks/Banner/Banner.js +2 -3
  124. package/build/esm/blocks/Banner/schema.d.ts +0 -243
  125. package/build/esm/blocks/Banner/schema.js +1 -3
  126. package/build/esm/blocks/CardLayout/schema.d.ts +0 -6
  127. package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -3
  128. package/build/esm/blocks/ContentLayout/schema.d.ts +0 -3
  129. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.d.ts +1 -1
  130. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -3
  131. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -3
  132. package/build/esm/blocks/Header/Header.js +5 -6
  133. package/build/esm/blocks/Header/schema.d.ts +0 -3
  134. package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -3
  135. package/build/esm/blocks/Icons/schema.d.ts +0 -6
  136. package/build/esm/blocks/Info/Info.js +3 -4
  137. package/build/esm/blocks/Info/schema.d.ts +0 -3
  138. package/build/esm/blocks/Info/schema.js +0 -2
  139. package/build/esm/blocks/LinkTable/schema.d.ts +0 -3
  140. package/build/esm/blocks/Media/Media.js +2 -3
  141. package/build/esm/blocks/Media/MediaContent.js +2 -3
  142. package/build/esm/blocks/Media/schema.d.ts +0 -81
  143. package/build/esm/blocks/Preview/MediaContent/MediaContent.d.ts +1 -2
  144. package/build/esm/blocks/Preview/MediaContent/MediaContent.js +2 -3
  145. package/build/esm/blocks/Preview/MediaContent/PreviewMedia.d.ts +0 -1
  146. package/build/esm/blocks/Preview/MediaContent/PreviewMedia.js +2 -3
  147. package/build/esm/blocks/Preview/Preview.js +2 -3
  148. package/build/esm/blocks/Preview/schema.d.ts +0 -3
  149. package/build/esm/blocks/Preview/schema.js +1 -3
  150. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +2 -3
  151. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -3
  152. package/build/esm/blocks/Questions/Questions.js +2 -3
  153. package/build/esm/blocks/Questions/schema.d.ts +0 -3
  154. package/build/esm/blocks/Security/Security.js +2 -3
  155. package/build/esm/blocks/Security/schema.d.ts +0 -3
  156. package/build/esm/blocks/Security/schema.js +1 -3
  157. package/build/esm/blocks/Share/Share.d.ts +1 -1
  158. package/build/esm/blocks/Share/Share.js +3 -11
  159. package/build/esm/blocks/Simple/schema.d.ts +0 -3
  160. package/build/esm/blocks/Slider/schema.d.ts +0 -3
  161. package/build/esm/blocks/Table/schema.d.ts +0 -3
  162. package/build/esm/blocks/Tabs/Tabs.d.ts +1 -1
  163. package/build/esm/blocks/Tabs/Tabs.js +4 -5
  164. package/build/esm/blocks/Tabs/schema.d.ts +0 -3
  165. package/build/esm/components/BackLink/BackLink.d.ts +0 -1
  166. package/build/esm/components/BackLink/BackLink.js +2 -11
  167. package/build/esm/components/BackgroundMedia/BackgroundMedia.js +1 -2
  168. package/build/esm/components/Button/Button.d.ts +0 -1
  169. package/build/esm/components/Button/Button.js +2 -11
  170. package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +0 -1
  171. package/build/esm/components/ButtonTabs/ButtonTabs.js +2 -11
  172. package/build/esm/components/CardBase/CardBase.d.ts +0 -3
  173. package/build/esm/components/CardBase/CardBase.js +1 -10
  174. package/build/esm/components/FullscreenImage/FullscreenImage.js +9 -7
  175. package/build/esm/components/FullscreenMedia/FullScreenMedia.css +70 -0
  176. package/build/esm/components/FullscreenMedia/FullScreenMedia.d.ts +10 -0
  177. package/build/esm/components/FullscreenMedia/FullScreenMedia.js +38 -0
  178. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -10
  179. package/build/esm/components/Link/Link.js +2 -11
  180. package/build/esm/components/Media/Media.js +5 -7
  181. package/build/esm/components/Media/Video/Video.js +3 -6
  182. package/build/esm/components/MetaInfo/MetaInfo.css +13 -0
  183. package/build/esm/components/MetaInfo/MetaInfo.d.ts +7 -0
  184. package/build/esm/components/MetaInfo/MetaInfo.js +6 -0
  185. package/build/esm/components/MetaInfo/schema.d.ts +8 -0
  186. package/build/esm/components/MetaInfo/schema.js +8 -0
  187. package/build/esm/components/ReactPlayer/ReactPlayer.js +4 -16
  188. package/build/esm/components/VideoBlock/VideoBlock.d.ts +1 -0
  189. package/build/esm/components/VideoBlock/VideoBlock.js +6 -10
  190. package/build/esm/components/YandexForm/YandexForm.d.ts +0 -3
  191. package/build/esm/components/YandexForm/YandexForm.js +2 -19
  192. package/build/esm/components/index.d.ts +2 -0
  193. package/build/esm/components/index.js +2 -0
  194. package/build/esm/constructor-items.d.ts +9 -5
  195. package/build/esm/constructor-items.js +5 -1
  196. package/build/esm/containers/PageConstructor/PageConstructor.css +1 -0
  197. package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
  198. package/build/esm/containers/PageConstructor/Provider.js +1 -3
  199. package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -6
  200. package/build/esm/hooks/index.d.ts +0 -1
  201. package/build/esm/hooks/index.js +0 -1
  202. package/build/esm/hooks/useMetrika.d.ts +0 -6
  203. package/build/esm/hooks/useMetrika.js +0 -8
  204. package/build/esm/models/common.d.ts +0 -34
  205. package/build/esm/models/common.js +0 -9
  206. package/build/esm/models/constructor-items/blocks.d.ts +0 -11
  207. package/build/esm/models/constructor-items/common.d.ts +2 -27
  208. package/build/esm/models/constructor-items/sub-blocks.d.ts +16 -6
  209. package/build/esm/models/constructor-items/sub-blocks.js +4 -0
  210. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +2 -3
  211. package/build/esm/schema/index.js +1 -0
  212. package/build/esm/schema/validators/common.d.ts +0 -171
  213. package/build/esm/schema/validators/common.js +0 -12
  214. package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
  215. package/build/esm/schema/validators/sub-blocks.js +1 -0
  216. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +2 -3
  217. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +0 -3
  218. package/build/esm/sub-blocks/BackgroundCard/schema.js +0 -2
  219. package/build/esm/sub-blocks/BannerCard/BannerCard.js +2 -3
  220. package/build/esm/sub-blocks/BasicCard/BasicCard.js +2 -3
  221. package/build/esm/sub-blocks/CardWithImage/CardWithImage.d.ts +1 -1
  222. package/build/esm/sub-blocks/CardWithImage/CardWithImage.js +2 -3
  223. package/build/esm/sub-blocks/Content/Content.js +3 -4
  224. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +2 -2
  225. package/build/esm/sub-blocks/HubspotForm/index.js +4 -19
  226. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +16 -0
  227. package/build/esm/sub-blocks/LayoutItem/LayoutItem.d.ts +4 -0
  228. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +20 -0
  229. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +218 -0
  230. package/build/esm/sub-blocks/LayoutItem/schema.js +14 -0
  231. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +15 -0
  232. package/build/esm/sub-blocks/LayoutItem/utils.js +6 -0
  233. package/build/esm/sub-blocks/MediaCard/MediaCard.d.ts +1 -1
  234. package/build/esm/sub-blocks/MediaCard/MediaCard.js +2 -3
  235. package/build/esm/sub-blocks/Quote/Quote.js +4 -11
  236. package/build/esm/sub-blocks/Quote/schema.d.ts +0 -3
  237. package/build/esm/sub-blocks/Quote/schema.js +1 -3
  238. package/build/esm/sub-blocks/index.d.ts +1 -0
  239. package/build/esm/sub-blocks/index.js +1 -0
  240. package/build/esm/text-transform/blocks.js +17 -0
  241. package/build/esm/utils/hubspot.d.ts +2 -1
  242. package/build/esm/utils/hubspot.js +5 -1
  243. package/package.json +4 -5
  244. package/server/models/common.d.ts +0 -34
  245. package/server/models/common.js +1 -10
  246. package/server/models/constructor-items/blocks.d.ts +0 -11
  247. package/server/models/constructor-items/common.d.ts +2 -27
  248. package/server/models/constructor-items/sub-blocks.d.ts +16 -6
  249. package/server/models/constructor-items/sub-blocks.js +4 -0
  250. package/server/text-transform/blocks.js +17 -0
  251. package/server/utils/hubspot.d.ts +2 -1
  252. package/server/utils/hubspot.js +5 -1
  253. package/styles/root.scss +1 -0
  254. package/build/cjs/context/analyticsContext/analyticsContext.d.ts +0 -6
  255. package/build/cjs/context/analyticsContext/analyticsContext.js +0 -6
  256. package/build/cjs/context/analyticsContext/index.d.ts +0 -1
  257. package/build/cjs/context/analyticsContext/index.js +0 -4
  258. package/build/cjs/hooks/useAnalytics.d.ts +0 -2
  259. package/build/cjs/hooks/useAnalytics.js +0 -23
  260. package/build/cjs/schema/validators/event.d.ts +0 -37
  261. package/build/cjs/schema/validators/event.js +0 -38
  262. package/build/esm/context/analyticsContext/analyticsContext.d.ts +0 -6
  263. package/build/esm/context/analyticsContext/analyticsContext.js +0 -2
  264. package/build/esm/context/analyticsContext/index.d.ts +0 -1
  265. package/build/esm/context/analyticsContext/index.js +0 -1
  266. package/build/esm/hooks/useAnalytics.d.ts +0 -2
  267. package/build/esm/hooks/useAnalytics.js +0 -19
  268. package/build/esm/schema/validators/event.d.ts +0 -37
  269. package/build/esm/schema/validators/event.js +0 -35
@@ -173,84 +173,6 @@ 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
- blockName: {
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
- blockName: {
248
- type: string;
249
- };
250
- };
251
- };
252
- })[];
253
- };
254
176
  target: {
255
177
  type: string;
256
178
  enum: string[];
@@ -270,9 +192,6 @@ export declare const BannerCardProps: {
270
192
  required: string[];
271
193
  };
272
194
  };
273
- blockName: {
274
- type: string;
275
- };
276
195
  animated: {
277
196
  type: string;
278
197
  };
@@ -456,84 +375,6 @@ export declare const BannerBlock: {
456
375
  };
457
376
  };
458
377
  };
459
- analyticsEvents: {
460
- anyOf: ({
461
- type: string;
462
- additionalProperties: {
463
- type: string;
464
- };
465
- required: string[];
466
- properties: {
467
- name: {
468
- type: string;
469
- };
470
- type: {
471
- type: string;
472
- };
473
- counters: {
474
- type: string;
475
- additionalProperties: boolean;
476
- required: never[];
477
- properties: {
478
- include: {
479
- type: string;
480
- items: {
481
- type: string;
482
- };
483
- };
484
- exclude: {
485
- type: string;
486
- items: {
487
- type: string;
488
- };
489
- };
490
- };
491
- };
492
- blockName: {
493
- type: string;
494
- };
495
- };
496
- } | {
497
- type: string;
498
- items: {
499
- type: string;
500
- additionalProperties: {
501
- type: string;
502
- };
503
- required: string[];
504
- properties: {
505
- name: {
506
- type: string;
507
- };
508
- type: {
509
- type: string;
510
- };
511
- counters: {
512
- type: string;
513
- additionalProperties: boolean;
514
- required: never[];
515
- properties: {
516
- include: {
517
- type: string;
518
- items: {
519
- type: string;
520
- };
521
- };
522
- exclude: {
523
- type: string;
524
- items: {
525
- type: string;
526
- };
527
- };
528
- };
529
- };
530
- blockName: {
531
- type: string;
532
- };
533
- };
534
- };
535
- })[];
536
- };
537
378
  target: {
538
379
  type: string;
539
380
  enum: string[];
@@ -553,9 +394,6 @@ export declare const BannerBlock: {
553
394
  required: string[];
554
395
  };
555
396
  };
556
- blockName: {
557
- type: string;
558
- };
559
397
  animated: {
560
398
  type: string;
561
399
  };
@@ -740,84 +578,6 @@ export declare const BannerCard: {
740
578
  };
741
579
  };
742
580
  };
743
- analyticsEvents: {
744
- anyOf: ({
745
- type: string;
746
- additionalProperties: {
747
- type: string;
748
- };
749
- required: string[];
750
- properties: {
751
- name: {
752
- type: string;
753
- };
754
- type: {
755
- type: string;
756
- };
757
- counters: {
758
- type: string;
759
- additionalProperties: boolean;
760
- required: never[];
761
- properties: {
762
- include: {
763
- type: string;
764
- items: {
765
- type: string;
766
- };
767
- };
768
- exclude: {
769
- type: string;
770
- items: {
771
- type: string;
772
- };
773
- };
774
- };
775
- };
776
- blockName: {
777
- type: string;
778
- };
779
- };
780
- } | {
781
- type: string;
782
- items: {
783
- type: string;
784
- additionalProperties: {
785
- type: string;
786
- };
787
- required: string[];
788
- properties: {
789
- name: {
790
- type: string;
791
- };
792
- type: {
793
- type: string;
794
- };
795
- counters: {
796
- type: string;
797
- additionalProperties: boolean;
798
- required: never[];
799
- properties: {
800
- include: {
801
- type: string;
802
- items: {
803
- type: string;
804
- };
805
- };
806
- exclude: {
807
- type: string;
808
- items: {
809
- type: string;
810
- };
811
- };
812
- };
813
- };
814
- blockName: {
815
- type: string;
816
- };
817
- };
818
- };
819
- })[];
820
- };
821
581
  target: {
822
582
  type: string;
823
583
  enum: string[];
@@ -837,9 +597,6 @@ export declare const BannerCard: {
837
597
  required: string[];
838
598
  };
839
599
  };
840
- blockName: {
841
- type: string;
842
- };
843
600
  animated: {
844
601
  type: string;
845
602
  };
@@ -17,9 +17,7 @@ export const BannerCardProps = {
17
17
  }), theme: ThemeProps, width: {
18
18
  type: 'string',
19
19
  enum: ['s', 'm', 'l'],
20
- }, button: ButtonBlock, blockName: {
21
- type: 'string',
22
- } }),
20
+ }, button: ButtonBlock }),
23
21
  };
24
22
  export const BannerBlock = {
25
23
  'banner-block': BannerCardProps,
@@ -66,9 +66,6 @@ export declare const CardLayoutProps: {
66
66
  resetPaddings: {
67
67
  type: string;
68
68
  };
69
- blockName: {
70
- type: string;
71
- };
72
69
  type: {};
73
70
  when: {};
74
71
  };
@@ -142,9 +139,6 @@ export declare const CardLayoutBlock: {
142
139
  resetPaddings: {
143
140
  type: string;
144
141
  };
145
- blockName: {
146
- type: string;
147
- };
148
142
  type: {};
149
143
  when: {};
150
144
  };
@@ -1,6 +1,5 @@
1
1
  import React, { useContext, useMemo } from 'react';
2
2
  import { block } from '../../utils';
3
- import { BlockType } from '../../models';
4
3
  import { Content } from '../../sub-blocks';
5
4
  import { BackgroundImage, FileLink } from '../../components';
6
5
  import { Col } from '../../grid';
@@ -29,11 +28,11 @@ function getTextWidth(size) {
29
28
  }
30
29
  export const ContentLayoutBlock = (props) => {
31
30
  const isMobile = useContext(MobileContext);
32
- const { textContent, fileContent, properties: cardLayoutProperties = { size: 'l' }, blockName = BlockType.ContentLayoutBlock, } = props;
31
+ const { textContent, fileContent, properties: cardLayoutProperties = { size: 'l' } } = props;
33
32
  const { size = 'l', background, centered, theme = 'default', textWidth = 'm', } = cardLayoutProperties;
34
33
  const colSizes = useMemo(() => getTextWidth(textWidth), [textWidth]);
35
34
  return (React.createElement("div", { className: b({ size, background: Boolean(background) }) },
36
- React.createElement(Content, Object.assign({ className: b('content') }, textContent, { size: size, centered: centered, colSizes: colSizes, theme: theme, blockName: blockName })),
35
+ React.createElement(Content, Object.assign({ className: b('content') }, textContent, { size: size, centered: centered, colSizes: colSizes, theme: theme })),
37
36
  fileContent && (React.createElement(Col, { className: b('files', { size, centered }), reset: true, sizes: colSizes }, fileContent.map((file) => (React.createElement(FileLink, Object.assign({ className: b('file') }, file, { key: file.href, type: "horizontal", textSize: getFileTextSize(size), theme: theme })))))),
38
37
  background && (React.createElement("div", { className: b('background') },
39
38
  React.createElement(BackgroundImage, Object.assign({ className: b('background-item') }, background, { hide: isMobile }))))));
@@ -144,9 +144,6 @@ export declare const ContentLayoutBlock: {
144
144
  resetPaddings: {
145
145
  type: string;
146
146
  };
147
- blockName: {
148
- type: string;
149
- };
150
147
  type: {};
151
148
  when: {};
152
149
  };
@@ -1,4 +1,4 @@
1
1
  import { ExtendedFeaturesProps } from '../../models';
2
2
  import './ExtendedFeatures.css';
3
- export declare const ExtendedFeaturesBlock: ({ title, description, items, colSizes, animated, blockName, }: ExtendedFeaturesProps) => JSX.Element;
3
+ export declare const ExtendedFeaturesBlock: ({ title, description, items, colSizes, animated, }: ExtendedFeaturesProps) => JSX.Element;
4
4
  export default ExtendedFeaturesBlock;
@@ -1,6 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { block, getThemedValue } from '../../utils';
3
- import { BlockType } from '../../models';
4
3
  import { Row, Col } from '../../grid';
5
4
  import { AnimateBlock, BlockHeader, HTML } from '../../components/';
6
5
  import { Content } from '../../sub-blocks';
@@ -14,7 +13,7 @@ const DEFAULT_SIZES = {
14
13
  sm: 6,
15
14
  md: 4,
16
15
  };
17
- export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, blockName = BlockType.ExtendedFeaturesBlock, }) => {
16
+ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
18
17
  const { themeValue: theme } = useContext(ThemeValueContext);
19
18
  return (React.createElement(AnimateBlock, { className: b(), animate: animated },
20
19
  React.createElement(BlockHeader, { title: title, description: description, className: b('header') }),
@@ -32,7 +31,7 @@ export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DE
32
31
  itemTitle && (React.createElement("h5", { className: b('item-title') },
33
32
  React.createElement(HTML, null, itemTitle),
34
33
  label && (React.createElement("div", { className: b('item-label') }, label)))),
35
- React.createElement(Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo, blockName: blockName }))));
34
+ React.createElement(Content, { text: text, links: itemLinks, size: "s", colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo }))));
36
35
  })))));
37
36
  };
38
37
  export default ExtendedFeaturesBlock;
@@ -124,9 +124,6 @@ export declare const ExtendedFeaturesBlock: {
124
124
  resetPaddings: {
125
125
  type: string;
126
126
  };
127
- blockName: {
128
- type: string;
129
- };
130
127
  type: {};
131
128
  when: {};
132
129
  };
@@ -1,6 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { block, getThemedValue } from '../../utils';
3
- import { BlockType, } from '../../models';
4
3
  import { Button, Media, RouterLink, HTML } from '../../components';
5
4
  import { Grid, Row, Col } from '../../grid';
6
5
  import { getImageSize, getTitleSizes, titleWithImageSizes } from './utils';
@@ -11,15 +10,15 @@ import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
11
10
  import { getMediaImage } from '../../components/Media/Image/utils';
12
11
  import './Header.css';
13
12
  const b = block('header-block');
14
- const Background = ({ background, isMobile, blockName }) => {
13
+ const Background = ({ background, isMobile }) => {
15
14
  const { url, image, fullWidthMedia, video, color } = background;
16
15
  const imageObject = url ? getMediaImage(url) : image;
17
16
  const renderMedia = !isMobile || (typeof image === 'object' && 'mobile' in image);
18
- return (React.createElement("div", { className: b('background', { media: true, 'full-width-media': fullWidthMedia }), style: { backgroundColor: color } }, renderMedia && (React.createElement(Media, Object.assign({}, background, { className: b('background-media'), imageClassName: b('image'), videoClassName: b('video'), isBackground: true, parallax: false, video: isMobile ? undefined : video, image: imageObject, blockName: blockName })))));
17
+ return (React.createElement("div", { className: b('background', { media: true, 'full-width-media': fullWidthMedia }), style: { backgroundColor: color } }, renderMedia && (React.createElement(Media, Object.assign({}, background, { className: b('background-media'), imageClassName: b('image'), videoClassName: b('video'), isBackground: true, parallax: false, video: isMobile ? undefined : video, image: imageObject })))));
19
18
  };
20
19
  const FullWidthBackground = ({ background }) => (React.createElement("div", { className: b('background', { ['full-width']: true }), style: { backgroundColor: background === null || background === void 0 ? void 0 : background.color } }));
21
20
  export const HeaderBlock = (props) => {
22
- const { title, overtitle, description, buttons, image, video, width = 'm', imageSize, offset = 'default', background, theme: textTheme = 'light', verticalOffset = 'm', className, breadcrumbs, status, children, blockName = BlockType.HeaderBlock, } = props;
21
+ const { title, overtitle, description, buttons, image, video, width = 'm', imageSize, offset = 'default', background, theme: textTheme = 'light', verticalOffset = 'm', className, breadcrumbs, status, children, } = props;
23
22
  const isMobile = useContext(MobileContext);
24
23
  const { themeValue: theme } = useContext(ThemeValueContext);
25
24
  const hasRightSideImage = Boolean(image || video);
@@ -58,8 +57,8 @@ export const HeaderBlock = (props) => {
58
57
  React.createElement(YFMWrapper, { content: description, modifiers: { constructor: true } }))),
59
58
  buttons && (React.createElement("div", { className: b('buttons'), "data-qa": "header-buttons" }, buttons &&
60
59
  buttons.map((button, index) => (React.createElement(RouterLink, { href: button.url, key: index },
61
- React.createElement(Button, Object.assign({ key: index, className: b('button'), size: "xl" }, button, { blockName: BlockType.HeaderBlock }))))))),
60
+ React.createElement(Button, Object.assign({ key: index, className: b('button'), size: "xl" }, button))))))),
62
61
  children))),
63
- hasRightSideImage && (React.createElement(Media, { className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image'), video: videoThemed, image: imageThemed, blockName: blockName })))))));
62
+ hasRightSideImage && (React.createElement(Media, { className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image'), video: videoThemed, image: imageThemed })))))));
64
63
  };
65
64
  export default HeaderBlock;
@@ -821,9 +821,6 @@ export declare const HeaderBlock: {
821
821
  resetPaddings: {
822
822
  type: string;
823
823
  };
824
- blockName: {
825
- type: string;
826
- };
827
824
  type: {};
828
825
  when: {};
829
826
  };
@@ -433,9 +433,6 @@ export declare const HeaderSliderBlock: {
433
433
  resetPaddings: {
434
434
  type: string;
435
435
  };
436
- blockName: {
437
- type: string;
438
- };
439
436
  type: {};
440
437
  when: {};
441
438
  };
@@ -54,9 +54,6 @@ export declare const IconsProps: {
54
54
  resetPaddings: {
55
55
  type: string;
56
56
  };
57
- blockName: {
58
- type: string;
59
- };
60
57
  type: {};
61
58
  when: {};
62
59
  };
@@ -118,9 +115,6 @@ export declare const IconsBlock: {
118
115
  resetPaddings: {
119
116
  type: string;
120
117
  };
121
- blockName: {
122
- type: string;
123
- };
124
118
  type: {};
125
119
  when: {};
126
120
  };
@@ -1,6 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { block, getThemedValue } from '../../utils';
3
- import { BlockType } from '../../models';
4
3
  import { Grid, Row, Col } from '../../grid';
5
4
  import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
6
5
  import Content from '../../sub-blocks/Content/Content';
@@ -8,7 +7,7 @@ import './Info.css';
8
7
  const b = block('info-block');
9
8
  const sizes = { md: 6, all: 12 };
10
9
  export const InfoBlock = (props) => {
11
- const { backgroundColor, theme: blockTheme = 'dark', buttons = [], title, sectionsTitle, links = [], rightContent = {}, leftContent = {}, blockName = BlockType.InfoBlock, } = props;
10
+ const { backgroundColor, theme: blockTheme = 'dark', buttons = [], title, sectionsTitle, links = [], rightContent = {}, leftContent = {}, } = props;
12
11
  const { themeValue: theme } = useContext(ThemeValueContext);
13
12
  const contentTheme = blockTheme === 'dark' ? 'dark' : 'default';
14
13
  const rightLinks = [
@@ -26,8 +25,8 @@ export const InfoBlock = (props) => {
26
25
  React.createElement(Grid, null,
27
26
  React.createElement(Row, null,
28
27
  React.createElement(Col, { sizes: sizes, className: b('left') },
29
- React.createElement(Content, Object.assign({ title: title || (leftContent === null || leftContent === void 0 ? void 0 : leftContent.title), text: leftContent === null || leftContent === void 0 ? void 0 : leftContent.text, links: leftContent === null || leftContent === void 0 ? void 0 : leftContent.links, buttons: leftButtons, additionalInfo: leftContent === null || leftContent === void 0 ? void 0 : leftContent.additionalInfo }, commonProps, { blockName: blockName }))),
28
+ React.createElement(Content, Object.assign({ title: title || (leftContent === null || leftContent === void 0 ? void 0 : leftContent.title), text: leftContent === null || leftContent === void 0 ? void 0 : leftContent.text, links: leftContent === null || leftContent === void 0 ? void 0 : leftContent.links, buttons: leftButtons, additionalInfo: leftContent === null || leftContent === void 0 ? void 0 : leftContent.additionalInfo }, commonProps))),
30
29
  React.createElement(Col, { sizes: sizes, className: b('right') },
31
- React.createElement(Content, Object.assign({ title: sectionsTitle || (rightContent === null || rightContent === void 0 ? void 0 : rightContent.title), text: rightContent === null || rightContent === void 0 ? void 0 : rightContent.text, links: rightLinks, buttons: rightContent === null || rightContent === void 0 ? void 0 : rightContent.buttons, additionalInfo: rightContent === null || rightContent === void 0 ? void 0 : rightContent.additionalInfo }, commonProps, { blockName: blockName }))))))));
30
+ React.createElement(Content, Object.assign({ title: sectionsTitle || (rightContent === null || rightContent === void 0 ? void 0 : rightContent.title), text: rightContent === null || rightContent === void 0 ? void 0 : rightContent.text, links: rightLinks, buttons: rightContent === null || rightContent === void 0 ? void 0 : rightContent.buttons, additionalInfo: rightContent === null || rightContent === void 0 ? void 0 : rightContent.additionalInfo }, commonProps))))))));
32
31
  };
33
32
  export default InfoBlock;
@@ -21,9 +21,6 @@ export declare const InfoBlock: {
21
21
  type: string;
22
22
  contentType: string;
23
23
  };
24
- blockName: {
25
- type: string;
26
- };
27
24
  buttons: {
28
25
  type: string;
29
26
  items: {
@@ -18,8 +18,6 @@ export const InfoBlock = {
18
18
  }), sectionsTitle: {
19
19
  type: 'string',
20
20
  contentType: 'text',
21
- }, blockName: {
22
- type: 'string',
23
21
  }, buttons: filteredArray(ButtonBlock), theme: ThemeProps, links: filteredArray(LinkProps), leftContent: ContentProps, rightContent: ContentProps }),
24
22
  },
25
23
  };
@@ -67,9 +67,6 @@ export declare const LinkTableBlock: {
67
67
  resetPaddings: {
68
68
  type: string;
69
69
  };
70
- blockName: {
71
- type: string;
72
- };
73
70
  type: {};
74
71
  when: {};
75
72
  };
@@ -2,7 +2,6 @@ import { __rest } from "tslib";
2
2
  import React, { useContext, useMemo, useState } from 'react';
3
3
  import { block, getThemedValue } from '../../utils';
4
4
  import { Grid, Row, Col, GridColumnSize } from '../../grid';
5
- import { BlockType } from '../../models';
6
5
  import Media from '../../components/Media/Media';
7
6
  import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
8
7
  import BlockHeader from '../../components/BlockHeader/BlockHeader';
@@ -11,7 +10,7 @@ import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
11
10
  import './Media.css';
12
11
  const b = block('media-block');
13
12
  export const MediaBlock = (props) => {
14
- const { media, largeMedia, direction = 'content-media', mobileDirection = 'content-media', animated, mediaOnly, disableShadow = false, blockName = BlockType.MediaBlock } = props, mediaContentProps = __rest(props, ["media", "largeMedia", "direction", "mobileDirection", "animated", "mediaOnly", "disableShadow", "blockName"]);
13
+ const { media, largeMedia, direction = 'content-media', mobileDirection = 'content-media', animated, mediaOnly, disableShadow = false } = props, mediaContentProps = __rest(props, ["media", "largeMedia", "direction", "mobileDirection", "animated", "mediaOnly", "disableShadow"]);
15
14
  const { title, description } = mediaContentProps;
16
15
  const [play, setPlay] = useState(false);
17
16
  const { themeValue: theme } = useContext(ThemeValueContext);
@@ -35,6 +34,6 @@ export const MediaBlock = (props) => {
35
34
  React.createElement(Col, { className: b('content'), sizes: contentSizes }, mediaContent),
36
35
  React.createElement(Col, { sizes: mediaSizes },
37
36
  React.createElement("div", { className: b('card', { shadow: !disableShadow }) },
38
- React.createElement(Media, Object.assign({}, mediaThemed, { playVideo: play, blockName: blockName }))))))));
37
+ React.createElement(Media, Object.assign({}, mediaThemed, { playVideo: play }))))))));
39
38
  };
40
39
  export default MediaBlock;
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
2
  import { block } from '../../utils';
3
- import { BlockType } from '../../models';
4
3
  import { Content } from '../../sub-blocks';
5
4
  import './MediaContent.css';
6
5
  const b = block('media-content');
7
6
  const MediaContent = (props) => {
8
- const { title, description, button, links, buttons = [], additionalInfo, size = 'l', blockName = BlockType.MediaBlock, } = props;
7
+ const { title, description, button, links, buttons = [], additionalInfo, size = 'l' } = props;
9
8
  const allButtons = button ? [Object.assign(Object.assign({}, button), { size: 'xl' }), ...buttons] : buttons;
10
9
  return (React.createElement("div", { className: b() },
11
- React.createElement(Content, { title: title, text: description, links: links, theme: "default", buttons: allButtons, additionalInfo: additionalInfo, size: size, colSizes: { all: 12, md: 12 }, blockName: blockName })));
10
+ React.createElement(Content, { title: title, text: description, links: links, theme: "default", buttons: allButtons, additionalInfo: additionalInfo, size: size, colSizes: { all: 12, md: 12 } })));
12
11
  };
13
12
  export default MediaContent;