@gravity-ui/page-constructor 4.56.0 → 5.0.0

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 (341) hide show
  1. package/README.md +6 -4
  2. package/build/cjs/blocks/Banner/schema.d.ts +0 -264
  3. package/build/cjs/blocks/FilterBlock/FilterBlock.js +2 -2
  4. package/build/cjs/blocks/FilterBlock/i18n/index.d.ts +1 -2
  5. package/build/cjs/blocks/FilterBlock/i18n/index.js +4 -3
  6. package/build/cjs/blocks/Map/schema.d.ts +0 -88
  7. package/build/cjs/blocks/Media/schema.d.ts +0 -176
  8. package/build/cjs/blocks/Security/i18n/index.d.ts +1 -2
  9. package/build/cjs/blocks/Security/i18n/index.js +4 -3
  10. package/build/cjs/blocks/Share/Share.css +2 -1
  11. package/build/cjs/blocks/Share/Share.js +4 -4
  12. package/build/cjs/blocks/Share/i18n/index.d.ts +1 -2
  13. package/build/cjs/blocks/Share/i18n/index.js +4 -3
  14. package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
  15. package/build/cjs/blocks/Slider/i18n/index.d.ts +1 -2
  16. package/build/cjs/blocks/Slider/i18n/index.js +4 -3
  17. package/build/cjs/components/BackLink/BackLink.js +2 -2
  18. package/build/cjs/components/Button/Button.css +1 -5
  19. package/build/cjs/components/Button/Button.js +4 -7
  20. package/build/cjs/components/Button/i18n/index.d.ts +1 -2
  21. package/build/cjs/components/Button/i18n/index.js +4 -3
  22. package/build/cjs/components/ButtonTabs/ButtonTabs.css +0 -4
  23. package/build/cjs/components/CardBase/CardBase.d.ts +1 -3
  24. package/build/cjs/components/CardBase/CardBase.js +1 -4
  25. package/build/cjs/components/Control/Control.js +2 -2
  26. package/build/cjs/components/Control/i18n/index.d.ts +1 -2
  27. package/build/cjs/components/Control/i18n/index.js +4 -3
  28. package/build/cjs/components/FileLink/FileLink.css +4 -5
  29. package/build/cjs/components/FullscreenImage/FullscreenImage.css +1 -0
  30. package/build/cjs/components/FullscreenImage/FullscreenImage.js +9 -10
  31. package/build/cjs/components/FullscreenImage/i18n/index.d.ts +1 -2
  32. package/build/cjs/components/FullscreenImage/i18n/index.js +4 -3
  33. package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +1 -0
  34. package/build/cjs/components/FullscreenMedia/FullscreenMedia.js +14 -15
  35. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  36. package/build/cjs/components/Link/Link.css +1 -2
  37. package/build/cjs/components/Link/Link.js +3 -6
  38. package/build/cjs/components/Map/GoogleMap.js +2 -2
  39. package/build/cjs/components/Map/YMap/YandexMap.js +2 -2
  40. package/build/cjs/components/Map/YMap/i18n/index.d.ts +1 -2
  41. package/build/cjs/components/Map/YMap/i18n/index.js +4 -3
  42. package/build/cjs/components/Media/DataLens/DataLens.js +2 -2
  43. package/build/cjs/components/Media/DataLens/i18n/index.d.ts +1 -2
  44. package/build/cjs/components/Media/DataLens/i18n/index.js +4 -3
  45. package/build/cjs/components/Media/Iframe/Iframe.js +2 -2
  46. package/build/cjs/components/Media/Iframe/i18n/index.d.ts +1 -2
  47. package/build/cjs/components/Media/Iframe/i18n/index.js +4 -3
  48. package/build/cjs/components/Media/Media.js +1 -3
  49. package/build/cjs/components/Media/Video/Video.js +2 -3
  50. package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
  51. package/build/cjs/components/OverflowScroller/i18n/index.d.ts +1 -2
  52. package/build/cjs/components/OverflowScroller/i18n/index.js +4 -3
  53. package/build/cjs/components/ReactPlayer/CustomBarControls.js +5 -7
  54. package/build/cjs/components/ReactPlayer/ReactPlayer.css +1 -1
  55. package/build/cjs/components/ReactPlayer/ReactPlayer.js +7 -31
  56. package/build/cjs/components/ReactPlayer/i18n/index.d.ts +1 -2
  57. package/build/cjs/components/ReactPlayer/i18n/index.js +4 -3
  58. package/build/cjs/components/Table/Table.css +6 -0
  59. package/build/cjs/components/Table/Table.js +2 -2
  60. package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
  61. package/build/cjs/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  62. package/build/cjs/components/UnpublishedLabel/i18n/index.js +4 -3
  63. package/build/cjs/components/VideoBlock/VideoBlock.css +1 -1
  64. package/build/cjs/components/VideoBlock/VideoBlock.js +4 -4
  65. package/build/cjs/components/VideoBlock/i18n/index.d.ts +1 -2
  66. package/build/cjs/components/VideoBlock/i18n/index.js +4 -3
  67. package/build/cjs/components/YandexForm/YandexForm.js +2 -13
  68. package/build/cjs/containers/Loadable/Loadable.js +2 -2
  69. package/build/cjs/containers/Loadable/i18n/index.d.ts +1 -2
  70. package/build/cjs/containers/Loadable/i18n/index.js +4 -3
  71. package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -1
  72. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
  73. package/build/cjs/containers/PageConstructor/PageConstructor.js +1 -1
  74. package/build/cjs/containers/PageConstructor/Provider.d.ts +0 -2
  75. package/build/cjs/containers/PageConstructor/Provider.js +1 -3
  76. package/build/cjs/context/localeContext/localeContext.d.ts +2 -2
  77. package/build/cjs/context/localeContext/localeContext.js +2 -2
  78. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +3 -3
  79. package/build/cjs/editor/components/ControlPanel/i18n/en.json +2 -1
  80. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  81. package/build/cjs/editor/components/ControlPanel/i18n/index.js +4 -3
  82. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +2 -1
  83. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +3 -3
  84. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  85. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +4 -3
  86. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +2 -2
  87. package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  88. package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +4 -3
  89. package/build/cjs/editor/containers/Form/Form.css +1 -1
  90. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +1 -1
  91. package/build/cjs/hooks/useAnalytics.d.ts +2 -2
  92. package/build/cjs/hooks/useMetrika.d.ts +1 -13
  93. package/build/cjs/hooks/useMetrika.js +0 -41
  94. package/build/cjs/icons/index.d.ts +0 -9
  95. package/build/cjs/icons/index.js +0 -9
  96. package/build/cjs/index.d.ts +0 -1
  97. package/build/cjs/index.js +0 -1
  98. package/build/cjs/models/common.d.ts +2 -53
  99. package/build/cjs/models/common.js +1 -25
  100. package/build/cjs/models/constructor-items/common.d.ts +3 -28
  101. package/build/cjs/models/constructor-items/sub-blocks.d.ts +3 -3
  102. package/build/cjs/models/guards.d.ts +0 -2
  103. package/build/cjs/models/guards.js +1 -5
  104. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.js +3 -3
  105. package/build/cjs/schema/constants.d.ts +0 -176
  106. package/build/cjs/schema/constants.js +2 -0
  107. package/build/cjs/schema/validators/common.d.ts +0 -188
  108. package/build/cjs/schema/validators/common.js +0 -31
  109. package/build/cjs/schema/validators/index.d.ts +0 -2
  110. package/build/cjs/schema/validators/index.js +0 -2
  111. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +0 -1
  112. package/build/cjs/sub-blocks/HubspotForm/index.js +1 -6
  113. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +1 -15
  114. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +0 -88
  115. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.d.ts +1 -0
  116. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +2 -0
  117. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +1 -0
  118. package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
  119. package/build/cjs/text-transform/common.d.ts +5 -5
  120. package/build/cjs/text-transform/common.js +1 -1
  121. package/build/cjs/text-transform/filter.js +1 -1
  122. package/build/cjs/text-transform/transformers.d.ts +3 -3
  123. package/build/cjs/text-transform/utils.d.ts +7 -7
  124. package/build/cjs/text-transform/utils.js +6 -6
  125. package/build/cjs/utils/index.d.ts +0 -1
  126. package/build/cjs/utils/index.js +1 -4
  127. package/build/esm/blocks/Banner/schema.d.ts +0 -264
  128. package/build/esm/blocks/FilterBlock/FilterBlock.js +1 -1
  129. package/build/esm/blocks/FilterBlock/i18n/index.d.ts +1 -2
  130. package/build/esm/blocks/FilterBlock/i18n/index.js +3 -3
  131. package/build/esm/blocks/Map/schema.d.ts +0 -88
  132. package/build/esm/blocks/Media/schema.d.ts +0 -176
  133. package/build/esm/blocks/Security/i18n/index.d.ts +1 -2
  134. package/build/esm/blocks/Security/i18n/index.js +3 -3
  135. package/build/esm/blocks/Share/Share.css +2 -1
  136. package/build/esm/blocks/Share/Share.js +1 -1
  137. package/build/esm/blocks/Share/i18n/index.d.ts +1 -2
  138. package/build/esm/blocks/Share/i18n/index.js +3 -3
  139. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  140. package/build/esm/blocks/Slider/i18n/index.d.ts +1 -2
  141. package/build/esm/blocks/Slider/i18n/index.js +3 -3
  142. package/build/esm/components/BackLink/BackLink.js +2 -2
  143. package/build/esm/components/Button/Button.css +1 -5
  144. package/build/esm/components/Button/Button.js +3 -6
  145. package/build/esm/components/Button/i18n/index.d.ts +1 -2
  146. package/build/esm/components/Button/i18n/index.js +3 -3
  147. package/build/esm/components/ButtonTabs/ButtonTabs.css +0 -4
  148. package/build/esm/components/CardBase/CardBase.d.ts +1 -3
  149. package/build/esm/components/CardBase/CardBase.js +1 -4
  150. package/build/esm/components/Control/Control.js +1 -1
  151. package/build/esm/components/Control/i18n/index.d.ts +1 -2
  152. package/build/esm/components/Control/i18n/index.js +3 -3
  153. package/build/esm/components/FileLink/FileLink.css +4 -5
  154. package/build/esm/components/FullscreenImage/FullscreenImage.css +1 -0
  155. package/build/esm/components/FullscreenImage/FullscreenImage.js +8 -9
  156. package/build/esm/components/FullscreenImage/i18n/index.d.ts +1 -2
  157. package/build/esm/components/FullscreenImage/i18n/index.js +3 -3
  158. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -0
  159. package/build/esm/components/FullscreenMedia/FullscreenMedia.js +14 -15
  160. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  161. package/build/esm/components/Link/Link.css +1 -2
  162. package/build/esm/components/Link/Link.js +3 -6
  163. package/build/esm/components/Map/GoogleMap.js +1 -1
  164. package/build/esm/components/Map/YMap/YandexMap.js +1 -1
  165. package/build/esm/components/Map/YMap/i18n/index.d.ts +1 -2
  166. package/build/esm/components/Map/YMap/i18n/index.js +3 -3
  167. package/build/esm/components/Media/DataLens/DataLens.js +1 -1
  168. package/build/esm/components/Media/DataLens/i18n/index.d.ts +1 -2
  169. package/build/esm/components/Media/DataLens/i18n/index.js +3 -3
  170. package/build/esm/components/Media/Iframe/Iframe.js +1 -1
  171. package/build/esm/components/Media/Iframe/i18n/index.d.ts +1 -2
  172. package/build/esm/components/Media/Iframe/i18n/index.js +3 -3
  173. package/build/esm/components/Media/Media.js +1 -3
  174. package/build/esm/components/Media/Video/Video.js +2 -3
  175. package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
  176. package/build/esm/components/OverflowScroller/i18n/index.d.ts +1 -2
  177. package/build/esm/components/OverflowScroller/i18n/index.js +3 -3
  178. package/build/esm/components/ReactPlayer/CustomBarControls.js +4 -6
  179. package/build/esm/components/ReactPlayer/ReactPlayer.css +1 -1
  180. package/build/esm/components/ReactPlayer/ReactPlayer.js +6 -30
  181. package/build/esm/components/ReactPlayer/i18n/index.d.ts +1 -2
  182. package/build/esm/components/ReactPlayer/i18n/index.js +3 -3
  183. package/build/esm/components/Table/Table.css +6 -0
  184. package/build/esm/components/Table/Table.js +2 -2
  185. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js +1 -1
  186. package/build/esm/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  187. package/build/esm/components/UnpublishedLabel/i18n/index.js +3 -3
  188. package/build/esm/components/VideoBlock/VideoBlock.css +1 -1
  189. package/build/esm/components/VideoBlock/VideoBlock.js +3 -3
  190. package/build/esm/components/VideoBlock/i18n/index.d.ts +1 -2
  191. package/build/esm/components/VideoBlock/i18n/index.js +3 -3
  192. package/build/esm/components/YandexForm/YandexForm.js +2 -13
  193. package/build/esm/containers/Loadable/Loadable.js +1 -1
  194. package/build/esm/containers/Loadable/i18n/index.d.ts +1 -2
  195. package/build/esm/containers/Loadable/i18n/index.js +3 -3
  196. package/build/esm/containers/PageConstructor/PageConstructor.css +1 -1
  197. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
  198. package/build/esm/containers/PageConstructor/PageConstructor.js +1 -1
  199. package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
  200. package/build/esm/containers/PageConstructor/Provider.js +1 -3
  201. package/build/esm/context/localeContext/localeContext.d.ts +2 -2
  202. package/build/esm/context/localeContext/localeContext.js +1 -1
  203. package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -2
  204. package/build/esm/editor/components/ControlPanel/i18n/en.json +2 -1
  205. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  206. package/build/esm/editor/components/ControlPanel/i18n/index.js +3 -3
  207. package/build/esm/editor/components/ControlPanel/i18n/ru.json +2 -1
  208. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +1 -1
  209. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  210. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +3 -3
  211. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +1 -1
  212. package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  213. package/build/esm/editor/components/NotFoundBlock/i18n/index.js +3 -3
  214. package/build/esm/editor/containers/Form/Form.css +1 -1
  215. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +1 -1
  216. package/build/esm/hooks/useAnalytics.d.ts +2 -2
  217. package/build/esm/hooks/useMetrika.d.ts +1 -13
  218. package/build/esm/hooks/useMetrika.js +1 -38
  219. package/build/esm/icons/index.d.ts +0 -9
  220. package/build/esm/icons/index.js +0 -9
  221. package/build/esm/index.d.ts +0 -1
  222. package/build/esm/index.js +0 -1
  223. package/build/esm/models/common.d.ts +2 -53
  224. package/build/esm/models/common.js +0 -24
  225. package/build/esm/models/constructor-items/common.d.ts +3 -28
  226. package/build/esm/models/constructor-items/sub-blocks.d.ts +3 -3
  227. package/build/esm/models/guards.d.ts +0 -2
  228. package/build/esm/models/guards.js +0 -3
  229. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.js +3 -3
  230. package/build/esm/schema/constants.d.ts +0 -176
  231. package/build/esm/schema/constants.js +2 -0
  232. package/build/esm/schema/validators/common.d.ts +0 -188
  233. package/build/esm/schema/validators/common.js +0 -31
  234. package/build/esm/schema/validators/index.d.ts +0 -2
  235. package/build/esm/schema/validators/index.js +0 -2
  236. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +0 -1
  237. package/build/esm/sub-blocks/HubspotForm/index.js +1 -6
  238. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +1 -15
  239. package/build/esm/sub-blocks/PriceCard/schema.d.ts +0 -88
  240. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.d.ts +1 -0
  241. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +2 -0
  242. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +1 -0
  243. package/build/esm/sub-blocks/PriceDetailed/schema.js +1 -0
  244. package/build/esm/text-transform/common.d.ts +5 -5
  245. package/build/esm/text-transform/common.js +1 -1
  246. package/build/esm/text-transform/filter.js +1 -1
  247. package/build/esm/text-transform/transformers.d.ts +3 -3
  248. package/build/esm/text-transform/utils.d.ts +7 -7
  249. package/build/esm/text-transform/utils.js +2 -2
  250. package/build/esm/utils/index.d.ts +0 -1
  251. package/build/esm/utils/index.js +0 -1
  252. package/package.json +16 -15
  253. package/server/models/common.d.ts +2 -53
  254. package/server/models/common.js +1 -25
  255. package/server/models/constructor-items/common.d.ts +3 -28
  256. package/server/models/constructor-items/sub-blocks.d.ts +3 -3
  257. package/server/models/guards.d.ts +0 -2
  258. package/server/models/guards.js +1 -5
  259. package/server/text-transform/common.d.ts +5 -5
  260. package/server/text-transform/common.js +1 -1
  261. package/server/text-transform/filter.js +1 -1
  262. package/server/text-transform/transformers.d.ts +3 -3
  263. package/server/text-transform/utils.d.ts +7 -7
  264. package/server/text-transform/utils.js +6 -6
  265. package/server/utils/index.d.ts +0 -1
  266. package/server/utils/index.js +1 -4
  267. package/styles/mixins.scss +0 -4
  268. package/styles/storybook/index.scss +1 -1
  269. package/styles/styles.css +1 -1
  270. package/styles/yfm.scss +1 -1
  271. package/widget/index.js +1 -1
  272. package/build/cjs/context/metrikaContext/index.d.ts +0 -1
  273. package/build/cjs/context/metrikaContext/index.js +0 -4
  274. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -13
  275. package/build/cjs/context/metrikaContext/metrikaContext.js +0 -6
  276. package/build/cjs/i18n.d.ts +0 -2
  277. package/build/cjs/i18n.js +0 -12
  278. package/build/cjs/icons/ArrowConstructor.d.ts +0 -2
  279. package/build/cjs/icons/ArrowConstructor.js +0 -9
  280. package/build/cjs/icons/ArrowSidebar.d.ts +0 -2
  281. package/build/cjs/icons/ArrowSidebar.js +0 -9
  282. package/build/cjs/icons/Fullscreen.d.ts +0 -2
  283. package/build/cjs/icons/Fullscreen.js +0 -9
  284. package/build/cjs/icons/Minus.d.ts +0 -2
  285. package/build/cjs/icons/Minus.js +0 -9
  286. package/build/cjs/icons/Mute.d.ts +0 -2
  287. package/build/cjs/icons/Mute.js +0 -12
  288. package/build/cjs/icons/NavigationClose.d.ts +0 -2
  289. package/build/cjs/icons/NavigationClose.js +0 -9
  290. package/build/cjs/icons/NavigationOpen.d.ts +0 -2
  291. package/build/cjs/icons/NavigationOpen.js +0 -11
  292. package/build/cjs/icons/PlayVideo.d.ts +0 -2
  293. package/build/cjs/icons/PlayVideo.js +0 -9
  294. package/build/cjs/icons/PreviewClose.d.ts +0 -2
  295. package/build/cjs/icons/PreviewClose.js +0 -9
  296. package/build/cjs/icons/Tick.d.ts +0 -2
  297. package/build/cjs/icons/Tick.js +0 -13
  298. package/build/cjs/icons/Unmute.d.ts +0 -2
  299. package/build/cjs/icons/Unmute.js +0 -12
  300. package/build/cjs/schema/validators/pixel.d.ts +0 -57
  301. package/build/cjs/schema/validators/pixel.js +0 -63
  302. package/build/cjs/utils/configure.d.ts +0 -12
  303. package/build/cjs/utils/configure.js +0 -26
  304. package/build/cjs/utils/registerKeyset.d.ts +0 -5
  305. package/build/cjs/utils/registerKeyset.js +0 -9
  306. package/build/esm/context/metrikaContext/index.d.ts +0 -1
  307. package/build/esm/context/metrikaContext/index.js +0 -1
  308. package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -13
  309. package/build/esm/context/metrikaContext/metrikaContext.js +0 -2
  310. package/build/esm/i18n.d.ts +0 -2
  311. package/build/esm/i18n.js +0 -9
  312. package/build/esm/icons/ArrowConstructor.d.ts +0 -2
  313. package/build/esm/icons/ArrowConstructor.js +0 -4
  314. package/build/esm/icons/ArrowSidebar.d.ts +0 -2
  315. package/build/esm/icons/ArrowSidebar.js +0 -4
  316. package/build/esm/icons/Fullscreen.d.ts +0 -2
  317. package/build/esm/icons/Fullscreen.js +0 -4
  318. package/build/esm/icons/Minus.d.ts +0 -2
  319. package/build/esm/icons/Minus.js +0 -4
  320. package/build/esm/icons/Mute.d.ts +0 -2
  321. package/build/esm/icons/Mute.js +0 -7
  322. package/build/esm/icons/NavigationClose.d.ts +0 -2
  323. package/build/esm/icons/NavigationClose.js +0 -4
  324. package/build/esm/icons/NavigationOpen.d.ts +0 -2
  325. package/build/esm/icons/NavigationOpen.js +0 -6
  326. package/build/esm/icons/PlayVideo.d.ts +0 -2
  327. package/build/esm/icons/PlayVideo.js +0 -4
  328. package/build/esm/icons/PreviewClose.d.ts +0 -2
  329. package/build/esm/icons/PreviewClose.js +0 -4
  330. package/build/esm/icons/Tick.d.ts +0 -2
  331. package/build/esm/icons/Tick.js +0 -8
  332. package/build/esm/icons/Unmute.d.ts +0 -2
  333. package/build/esm/icons/Unmute.js +0 -7
  334. package/build/esm/schema/validators/pixel.d.ts +0 -57
  335. package/build/esm/schema/validators/pixel.js +0 -60
  336. package/build/esm/utils/configure.d.ts +0 -12
  337. package/build/esm/utils/configure.js +0 -20
  338. package/build/esm/utils/registerKeyset.d.ts +0 -5
  339. package/build/esm/utils/registerKeyset.js +0 -5
  340. package/server/utils/configure.d.ts +0 -12
  341. package/server/utils/configure.js +0 -26
@@ -154,94 +154,6 @@ export declare const cardSchemas: {
154
154
  optionName: string;
155
155
  })[];
156
156
  };
157
- metrikaGoals: {
158
- oneOf: ({
159
- type: string;
160
- optionName: string;
161
- items?: undefined;
162
- } | {
163
- type: string;
164
- items: {
165
- type: string;
166
- additionalProperties?: undefined;
167
- required?: undefined;
168
- properties?: undefined;
169
- };
170
- optionName: string;
171
- } | {
172
- type: string;
173
- items: {
174
- type: string;
175
- additionalProperties: boolean;
176
- required: string[];
177
- properties: {
178
- name: {
179
- type: string;
180
- };
181
- isCrossSite: {
182
- type: string;
183
- };
184
- };
185
- };
186
- optionName: string;
187
- })[];
188
- };
189
- pixelEvents: {
190
- type: string;
191
- items: {
192
- type: string;
193
- required: string[];
194
- additionalProperties: boolean;
195
- properties: {
196
- name: {
197
- type: string;
198
- enum: import("../models").PixelEventType[];
199
- };
200
- data: {};
201
- };
202
- select: {
203
- $data: string;
204
- };
205
- selectCases: {
206
- SubmitApplication: {
207
- additionalProperties: boolean;
208
- properties: {
209
- name: {};
210
- };
211
- };
212
- Contact: {
213
- additionalProperties: boolean;
214
- properties: {
215
- name: {};
216
- };
217
- };
218
- Lead: {
219
- additionalProperties: boolean;
220
- properties: {
221
- name: {};
222
- data: {
223
- type: string;
224
- additionalProperties: boolean;
225
- properties: {
226
- content_category: {
227
- type: string;
228
- };
229
- content_name: {
230
- type: string;
231
- };
232
- currency: {
233
- type: string;
234
- };
235
- value: {
236
- type: string;
237
- };
238
- };
239
- };
240
- };
241
- };
242
- };
243
- };
244
- };
245
157
  analyticsEvents: {
246
158
  oneOf: ({
247
159
  optionName: string;
@@ -1154,94 +1066,6 @@ export declare const cardSchemas: {
1154
1066
  optionName: string;
1155
1067
  })[];
1156
1068
  };
1157
- metrikaGoals: {
1158
- oneOf: ({
1159
- type: string;
1160
- optionName: string;
1161
- items?: undefined;
1162
- } | {
1163
- type: string;
1164
- items: {
1165
- type: string;
1166
- additionalProperties?: undefined;
1167
- required?: undefined;
1168
- properties?: undefined;
1169
- };
1170
- optionName: string;
1171
- } | {
1172
- type: string;
1173
- items: {
1174
- type: string;
1175
- additionalProperties: boolean;
1176
- required: string[];
1177
- properties: {
1178
- name: {
1179
- type: string;
1180
- };
1181
- isCrossSite: {
1182
- type: string;
1183
- };
1184
- };
1185
- };
1186
- optionName: string;
1187
- })[];
1188
- };
1189
- pixelEvents: {
1190
- type: string;
1191
- items: {
1192
- type: string;
1193
- required: string[];
1194
- additionalProperties: boolean;
1195
- properties: {
1196
- name: {
1197
- type: string;
1198
- enum: import("../models").PixelEventType[];
1199
- };
1200
- data: {};
1201
- };
1202
- select: {
1203
- $data: string;
1204
- };
1205
- selectCases: {
1206
- SubmitApplication: {
1207
- additionalProperties: boolean;
1208
- properties: {
1209
- name: {};
1210
- };
1211
- };
1212
- Contact: {
1213
- additionalProperties: boolean;
1214
- properties: {
1215
- name: {};
1216
- };
1217
- };
1218
- Lead: {
1219
- additionalProperties: boolean;
1220
- properties: {
1221
- name: {};
1222
- data: {
1223
- type: string;
1224
- additionalProperties: boolean;
1225
- properties: {
1226
- content_category: {
1227
- type: string;
1228
- };
1229
- content_name: {
1230
- type: string;
1231
- };
1232
- currency: {
1233
- type: string;
1234
- };
1235
- value: {
1236
- type: string;
1237
- };
1238
- };
1239
- };
1240
- };
1241
- };
1242
- };
1243
- };
1244
- };
1245
1069
  analyticsEvents: {
1246
1070
  oneOf: ({
1247
1071
  optionName: string;
@@ -19,6 +19,7 @@ export const constructorBlockSchemaNames = [
19
19
  'info-block',
20
20
  'table-block',
21
21
  'tabs-block',
22
+ /** @deprecated */
22
23
  'price-detailed',
23
24
  'header-slider-block',
24
25
  'cards-with-image-block',
@@ -32,6 +33,7 @@ export const constructorBlockSchemaNames = [
32
33
  export const constructorCardSchemaNames = [
33
34
  'media-card',
34
35
  'banner-card',
36
+ /** @deprecated */
35
37
  'price-detailed',
36
38
  'background-card',
37
39
  'quote',
@@ -590,100 +590,6 @@ export declare const ButtonProps: {
590
590
  optionName: string;
591
591
  })[];
592
592
  };
593
- /**
594
- * @deprecated Metrika will be deleted
595
- */
596
- metrikaGoals: {
597
- oneOf: ({
598
- type: string;
599
- optionName: string;
600
- items?: undefined;
601
- } | {
602
- type: string;
603
- items: {
604
- type: string;
605
- additionalProperties?: undefined;
606
- required?: undefined;
607
- properties?: undefined;
608
- };
609
- optionName: string;
610
- } | {
611
- type: string;
612
- items: {
613
- type: string;
614
- additionalProperties: boolean;
615
- required: string[];
616
- properties: {
617
- name: {
618
- type: string;
619
- };
620
- isCrossSite: {
621
- type: string;
622
- };
623
- };
624
- };
625
- optionName: string;
626
- })[];
627
- };
628
- /**
629
- * @deprecated Pixel will be deleted
630
- */
631
- pixelEvents: {
632
- type: string;
633
- items: {
634
- type: string;
635
- required: string[];
636
- additionalProperties: boolean;
637
- properties: {
638
- name: {
639
- type: string;
640
- enum: import("../../models").PixelEventType[];
641
- };
642
- data: {};
643
- };
644
- select: {
645
- $data: string;
646
- };
647
- selectCases: {
648
- SubmitApplication: {
649
- additionalProperties: boolean;
650
- properties: {
651
- name: {};
652
- };
653
- };
654
- Contact: {
655
- additionalProperties: boolean;
656
- properties: {
657
- name: {};
658
- };
659
- };
660
- Lead: {
661
- additionalProperties: boolean;
662
- properties: {
663
- name: {};
664
- data: {
665
- type: string;
666
- additionalProperties: boolean;
667
- properties: {
668
- content_category: {
669
- type: string;
670
- };
671
- content_name: {
672
- type: string;
673
- };
674
- currency: {
675
- type: string;
676
- };
677
- value: {
678
- type: string;
679
- };
680
- };
681
- };
682
- };
683
- };
684
- };
685
- };
686
- };
687
593
  analyticsEvents: {
688
594
  oneOf: ({
689
595
  optionName: string;
@@ -933,100 +839,6 @@ export declare const ButtonBlock: {
933
839
  optionName: string;
934
840
  })[];
935
841
  };
936
- /**
937
- * @deprecated Metrika will be deleted
938
- */
939
- metrikaGoals: {
940
- oneOf: ({
941
- type: string;
942
- optionName: string;
943
- items?: undefined;
944
- } | {
945
- type: string;
946
- items: {
947
- type: string;
948
- additionalProperties?: undefined;
949
- required?: undefined;
950
- properties?: undefined;
951
- };
952
- optionName: string;
953
- } | {
954
- type: string;
955
- items: {
956
- type: string;
957
- additionalProperties: boolean;
958
- required: string[];
959
- properties: {
960
- name: {
961
- type: string;
962
- };
963
- isCrossSite: {
964
- type: string;
965
- };
966
- };
967
- };
968
- optionName: string;
969
- })[];
970
- };
971
- /**
972
- * @deprecated Pixel will be deleted
973
- */
974
- pixelEvents: {
975
- type: string;
976
- items: {
977
- type: string;
978
- required: string[];
979
- additionalProperties: boolean;
980
- properties: {
981
- name: {
982
- type: string;
983
- enum: import("../../models").PixelEventType[];
984
- };
985
- data: {};
986
- };
987
- select: {
988
- $data: string;
989
- };
990
- selectCases: {
991
- SubmitApplication: {
992
- additionalProperties: boolean;
993
- properties: {
994
- name: {};
995
- };
996
- };
997
- Contact: {
998
- additionalProperties: boolean;
999
- properties: {
1000
- name: {};
1001
- };
1002
- };
1003
- Lead: {
1004
- additionalProperties: boolean;
1005
- properties: {
1006
- name: {};
1007
- data: {
1008
- type: string;
1009
- additionalProperties: boolean;
1010
- properties: {
1011
- content_category: {
1012
- type: string;
1013
- };
1014
- content_name: {
1015
- type: string;
1016
- };
1017
- currency: {
1018
- type: string;
1019
- };
1020
- value: {
1021
- type: string;
1022
- };
1023
- };
1024
- };
1025
- };
1026
- };
1027
- };
1028
- };
1029
- };
1030
842
  analyticsEvents: {
1031
843
  oneOf: ({
1032
844
  optionName: string;
@@ -1,7 +1,6 @@
1
1
  import { ImageProps } from '../../components/Image/schema';
2
2
  import { CustomControlsButtonPositioning, CustomControlsType, MediaVideoControlsType, QuoteType, Theme, } from '../../models';
3
3
  import { AnalyticsEventSchema } from './event';
4
- import { pixelEvents } from './pixel';
5
4
  export const mediaDirection = ['media-content', 'content-media'];
6
5
  export const textSize = ['s', 'm', 'l'];
7
6
  export const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];
@@ -365,36 +364,6 @@ export const ButtonProps = {
365
364
  },
366
365
  ],
367
366
  },
368
- /**
369
- * @deprecated Metrika will be deleted
370
- */
371
- metrikaGoals: {
372
- oneOf: [
373
- { type: 'string', optionName: 'single' },
374
- { type: 'array', items: { type: 'string' }, optionName: 'list' },
375
- {
376
- type: 'array',
377
- items: {
378
- type: 'object',
379
- additionalProperties: false,
380
- required: ['name'],
381
- properties: {
382
- name: {
383
- type: 'string',
384
- },
385
- isCrossSite: {
386
- type: 'boolean',
387
- },
388
- },
389
- },
390
- optionName: 'list-extended',
391
- },
392
- ],
393
- },
394
- /**
395
- * @deprecated Pixel will be deleted
396
- */
397
- pixelEvents,
398
367
  analyticsEvents: {
399
368
  oneOf: [
400
369
  Object.assign(Object.assign({}, AnalyticsEventSchema), { optionName: 'single' }),
@@ -2,7 +2,6 @@ import * as blocks from './blocks';
2
2
  import * as common from './common';
3
3
  import * as components from './components';
4
4
  import * as navigation from './navigation';
5
- import * as pixel from './pixel';
6
5
  import * as subBlocks from './sub-blocks';
7
6
  import * as utils from './utils';
8
7
  export declare const validators: {
@@ -10,7 +9,6 @@ export declare const validators: {
10
9
  common: typeof common;
11
10
  components: typeof components;
12
11
  subBlocks: typeof subBlocks;
13
- pixel: typeof pixel;
14
12
  utils: typeof utils;
15
13
  navigation: typeof navigation;
16
14
  };
@@ -2,7 +2,6 @@ import * as blocks from './blocks';
2
2
  import * as common from './common';
3
3
  import * as components from './components';
4
4
  import * as navigation from './navigation';
5
- import * as pixel from './pixel';
6
5
  import * as subBlocks from './sub-blocks';
7
6
  import * as utils from './utils';
8
7
  export const validators = {
@@ -10,7 +9,6 @@ export const validators = {
10
9
  common,
11
10
  components,
12
11
  subBlocks,
13
- pixel,
14
12
  utils,
15
13
  navigation,
16
14
  };
@@ -285,7 +285,6 @@ unpredictable css rules order in build */
285
285
  justify-content: flex-end;
286
286
  }
287
287
  .pc-hubspot-form .hs-button.primary {
288
- margin: 0;
289
288
  padding: 0;
290
289
  font-family: var(--g-text-body-font-family);
291
290
  font-size: inherit;
@@ -2,17 +2,15 @@ import React, { forwardRef, useContext, useMemo } from 'react';
2
2
  import { MobileContext } from '../../context/mobileContext';
3
3
  import { useTheme } from '../../context/theme';
4
4
  import { useAnalytics, useHandleHubspotEvents } from '../../hooks';
5
- import { useMetrika } from '../../hooks/useMetrika';
6
5
  import { DefaultEventNames } from '../../models';
7
6
  import { block } from '../../utils';
8
7
  import HubspotFormContainer from './HubspotFormContainer';
9
8
  import './HubspotForm.css';
10
9
  const b = block('hubspot-form');
11
10
  const HubspotForm = forwardRef((props, ref) => {
12
- const { className, theme: themeProp, isMobile: isMobileProp, formId, formInstanceId, portalId, region, formClassName, pixelEvents,
11
+ const { className, theme: themeProp, isMobile: isMobileProp, formId, formInstanceId, portalId, region, formClassName,
13
12
  // hubspotEvents, // TODO: decide how to handle them
14
13
  analyticsEvents, onBeforeSubmit, onSubmit, onBeforeLoad, onLoad, createDOMElement, onSubmitError, } = props;
15
- const handleMetrika = useMetrika();
16
14
  const themeValue = useTheme();
17
15
  const handleAnalytics = useAnalytics(DefaultEventNames.HubspotFormSubmit);
18
16
  const isMobileValue = useContext(MobileContext);
@@ -24,7 +22,6 @@ const HubspotForm = forwardRef((props, ref) => {
24
22
  onLoad,
25
23
  onSubmitError,
26
24
  onSubmit: (event) => {
27
- handleMetrika === null || handleMetrika === void 0 ? void 0 : handleMetrika({ pixelEvents });
28
25
  handleAnalytics(analyticsEvents);
29
26
  onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(event);
30
27
  },
@@ -32,8 +29,6 @@ const HubspotForm = forwardRef((props, ref) => {
32
29
  onBeforeLoad,
33
30
  onBeforeSubmit,
34
31
  onLoad,
35
- handleMetrika,
36
- pixelEvents,
37
32
  handleAnalytics,
38
33
  analyticsEvents,
39
34
  onSubmit,
@@ -8,22 +8,8 @@ export declare const getLayoutItemLinks: (links: LayoutItemProps['content']['lin
8
8
  colorTheme?: import("../../models").TextTheme | undefined;
9
9
  arrow?: boolean | undefined;
10
10
  target?: string | undefined;
11
- metrikaGoals?: import("../../models").MetrikaGoal | undefined;
12
- pixelEvents?: import("../../models").ButtonPixel | undefined;
13
11
  extraProps?: import("react").HTMLProps<HTMLAnchorElement> | undefined;
14
- analyticsEvents?: {
15
- name: string;
16
- type?: string | undefined;
17
- counters?: import("../../models").AnalyticsCounters | undefined;
18
- context?: string | undefined;
19
- target?: string | undefined;
20
- } | {
21
- name: string;
22
- type?: string | undefined;
23
- counters?: import("../../models").AnalyticsCounters | undefined;
24
- context?: string | undefined;
25
- target?: string | undefined;
26
- }[] | undefined;
12
+ analyticsEvents?: import("../../models").AnalyticsEventsProp | undefined;
27
13
  className?: string | undefined;
28
14
  tabIndex?: number | undefined;
29
15
  }[] | undefined;
@@ -76,94 +76,6 @@ export declare const PriceCardBlock: {
76
76
  optionName: string;
77
77
  })[];
78
78
  };
79
- metrikaGoals: {
80
- oneOf: ({
81
- type: string;
82
- optionName: string;
83
- items?: undefined;
84
- } | {
85
- type: string;
86
- items: {
87
- type: string;
88
- additionalProperties?: undefined;
89
- required?: undefined;
90
- properties?: undefined;
91
- };
92
- optionName: string;
93
- } | {
94
- type: string;
95
- items: {
96
- type: string;
97
- additionalProperties: boolean;
98
- required: string[];
99
- properties: {
100
- name: {
101
- type: string;
102
- };
103
- isCrossSite: {
104
- type: string;
105
- };
106
- };
107
- };
108
- optionName: string;
109
- })[];
110
- };
111
- pixelEvents: {
112
- type: string;
113
- items: {
114
- type: string;
115
- required: string[];
116
- additionalProperties: boolean;
117
- properties: {
118
- name: {
119
- type: string;
120
- enum: import("../..").PixelEventType[];
121
- };
122
- data: {};
123
- };
124
- select: {
125
- $data: string;
126
- };
127
- selectCases: {
128
- SubmitApplication: {
129
- additionalProperties: boolean;
130
- properties: {
131
- name: {};
132
- };
133
- };
134
- Contact: {
135
- additionalProperties: boolean;
136
- properties: {
137
- name: {};
138
- };
139
- };
140
- Lead: {
141
- additionalProperties: boolean;
142
- properties: {
143
- name: {};
144
- data: {
145
- type: string;
146
- additionalProperties: boolean;
147
- properties: {
148
- content_category: {
149
- type: string;
150
- };
151
- content_name: {
152
- type: string;
153
- };
154
- currency: {
155
- type: string;
156
- };
157
- value: {
158
- type: string;
159
- };
160
- };
161
- };
162
- };
163
- };
164
- };
165
- };
166
- };
167
79
  analyticsEvents: {
168
80
  oneOf: ({
169
81
  optionName: string;
@@ -1,3 +1,4 @@
1
1
  import { PriceDetailedProps } from '../../models';
2
+ /** @deprecated */
2
3
  declare const PriceDetailed: (props: PriceDetailedProps) => JSX.Element;
3
4
  export default PriceDetailed;
@@ -4,6 +4,8 @@ import CombinedPriceDetailed from './CombinedPriceDetailed/CombinedPriceDetailed
4
4
  import PriceDescription from './PriceDescription/PriceDescription';
5
5
  import PriceDetails from './PriceDetails/PriceDetails';
6
6
  import SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed';
7
+ // eslint-disable-next-line valid-jsdoc
8
+ /** @deprecated */
7
9
  const PriceDetailed = (props) => {
8
10
  const { priceType = PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
9
11
  const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
@@ -1,3 +1,4 @@
1
+ /** @deprecated */
1
2
  export declare const PriceDetailedBlock: {
2
3
  'price-detailed': {
3
4
  additionalProperties: boolean;
@@ -146,6 +146,7 @@ const PriceItem = {
146
146
  ],
147
147
  } }),
148
148
  };
149
+ /** @deprecated */
149
150
  export const PriceDetailedBlock = {
150
151
  'price-detailed': {
151
152
  additionalProperties: false,