@gravity-ui/page-constructor 4.56.0 → 5.0.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 (369) 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/BackgroundCard/BackgroundCard.css +6 -0
  112. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +4 -10
  113. package/build/cjs/sub-blocks/BasicCard/BasicCard.css +7 -0
  114. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +4 -10
  115. package/build/cjs/sub-blocks/Content/Content.css +6 -2
  116. package/build/cjs/sub-blocks/Content/Content.js +3 -10
  117. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +0 -1
  118. package/build/cjs/sub-blocks/HubspotForm/index.js +1 -6
  119. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +3 -0
  120. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +2 -8
  121. package/build/cjs/sub-blocks/LayoutItem/utils.d.ts +1 -15
  122. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +0 -88
  123. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.d.ts +1 -0
  124. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +2 -0
  125. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +1 -0
  126. package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
  127. package/build/cjs/text-transform/common.d.ts +5 -5
  128. package/build/cjs/text-transform/common.js +1 -1
  129. package/build/cjs/text-transform/filter.js +1 -1
  130. package/build/cjs/text-transform/transformers.d.ts +3 -3
  131. package/build/cjs/text-transform/utils.d.ts +7 -7
  132. package/build/cjs/text-transform/utils.js +6 -6
  133. package/build/cjs/utils/index.d.ts +0 -1
  134. package/build/cjs/utils/index.js +1 -4
  135. package/build/esm/blocks/Banner/schema.d.ts +0 -264
  136. package/build/esm/blocks/FilterBlock/FilterBlock.js +1 -1
  137. package/build/esm/blocks/FilterBlock/i18n/index.d.ts +1 -2
  138. package/build/esm/blocks/FilterBlock/i18n/index.js +3 -3
  139. package/build/esm/blocks/Map/schema.d.ts +0 -88
  140. package/build/esm/blocks/Media/schema.d.ts +0 -176
  141. package/build/esm/blocks/Security/i18n/index.d.ts +1 -2
  142. package/build/esm/blocks/Security/i18n/index.js +3 -3
  143. package/build/esm/blocks/Share/Share.css +2 -1
  144. package/build/esm/blocks/Share/Share.js +1 -1
  145. package/build/esm/blocks/Share/i18n/index.d.ts +1 -2
  146. package/build/esm/blocks/Share/i18n/index.js +3 -3
  147. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  148. package/build/esm/blocks/Slider/i18n/index.d.ts +1 -2
  149. package/build/esm/blocks/Slider/i18n/index.js +3 -3
  150. package/build/esm/components/BackLink/BackLink.js +2 -2
  151. package/build/esm/components/Button/Button.css +1 -5
  152. package/build/esm/components/Button/Button.js +3 -6
  153. package/build/esm/components/Button/i18n/index.d.ts +1 -2
  154. package/build/esm/components/Button/i18n/index.js +3 -3
  155. package/build/esm/components/ButtonTabs/ButtonTabs.css +0 -4
  156. package/build/esm/components/CardBase/CardBase.d.ts +1 -3
  157. package/build/esm/components/CardBase/CardBase.js +1 -4
  158. package/build/esm/components/Control/Control.js +1 -1
  159. package/build/esm/components/Control/i18n/index.d.ts +1 -2
  160. package/build/esm/components/Control/i18n/index.js +3 -3
  161. package/build/esm/components/FileLink/FileLink.css +4 -5
  162. package/build/esm/components/FullscreenImage/FullscreenImage.css +1 -0
  163. package/build/esm/components/FullscreenImage/FullscreenImage.js +8 -9
  164. package/build/esm/components/FullscreenImage/i18n/index.d.ts +1 -2
  165. package/build/esm/components/FullscreenImage/i18n/index.js +3 -3
  166. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -0
  167. package/build/esm/components/FullscreenMedia/FullscreenMedia.js +14 -15
  168. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +3 -6
  169. package/build/esm/components/Link/Link.css +1 -2
  170. package/build/esm/components/Link/Link.js +3 -6
  171. package/build/esm/components/Map/GoogleMap.js +1 -1
  172. package/build/esm/components/Map/YMap/YandexMap.js +1 -1
  173. package/build/esm/components/Map/YMap/i18n/index.d.ts +1 -2
  174. package/build/esm/components/Map/YMap/i18n/index.js +3 -3
  175. package/build/esm/components/Media/DataLens/DataLens.js +1 -1
  176. package/build/esm/components/Media/DataLens/i18n/index.d.ts +1 -2
  177. package/build/esm/components/Media/DataLens/i18n/index.js +3 -3
  178. package/build/esm/components/Media/Iframe/Iframe.js +1 -1
  179. package/build/esm/components/Media/Iframe/i18n/index.d.ts +1 -2
  180. package/build/esm/components/Media/Iframe/i18n/index.js +3 -3
  181. package/build/esm/components/Media/Media.js +1 -3
  182. package/build/esm/components/Media/Video/Video.js +2 -3
  183. package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
  184. package/build/esm/components/OverflowScroller/i18n/index.d.ts +1 -2
  185. package/build/esm/components/OverflowScroller/i18n/index.js +3 -3
  186. package/build/esm/components/ReactPlayer/CustomBarControls.js +4 -6
  187. package/build/esm/components/ReactPlayer/ReactPlayer.css +1 -1
  188. package/build/esm/components/ReactPlayer/ReactPlayer.js +6 -30
  189. package/build/esm/components/ReactPlayer/i18n/index.d.ts +1 -2
  190. package/build/esm/components/ReactPlayer/i18n/index.js +3 -3
  191. package/build/esm/components/Table/Table.css +6 -0
  192. package/build/esm/components/Table/Table.js +2 -2
  193. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js +1 -1
  194. package/build/esm/components/UnpublishedLabel/i18n/index.d.ts +1 -2
  195. package/build/esm/components/UnpublishedLabel/i18n/index.js +3 -3
  196. package/build/esm/components/VideoBlock/VideoBlock.css +1 -1
  197. package/build/esm/components/VideoBlock/VideoBlock.js +3 -3
  198. package/build/esm/components/VideoBlock/i18n/index.d.ts +1 -2
  199. package/build/esm/components/VideoBlock/i18n/index.js +3 -3
  200. package/build/esm/components/YandexForm/YandexForm.js +2 -13
  201. package/build/esm/containers/Loadable/Loadable.js +1 -1
  202. package/build/esm/containers/Loadable/i18n/index.d.ts +1 -2
  203. package/build/esm/containers/Loadable/i18n/index.js +3 -3
  204. package/build/esm/containers/PageConstructor/PageConstructor.css +1 -1
  205. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
  206. package/build/esm/containers/PageConstructor/PageConstructor.js +1 -1
  207. package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
  208. package/build/esm/containers/PageConstructor/Provider.js +1 -3
  209. package/build/esm/context/localeContext/localeContext.d.ts +2 -2
  210. package/build/esm/context/localeContext/localeContext.js +1 -1
  211. package/build/esm/editor/components/ControlPanel/ControlPanel.js +2 -2
  212. package/build/esm/editor/components/ControlPanel/i18n/en.json +2 -1
  213. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +1 -2
  214. package/build/esm/editor/components/ControlPanel/i18n/index.js +3 -3
  215. package/build/esm/editor/components/ControlPanel/i18n/ru.json +2 -1
  216. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +1 -1
  217. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +1 -2
  218. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +3 -3
  219. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +1 -1
  220. package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +1 -2
  221. package/build/esm/editor/components/NotFoundBlock/i18n/index.js +3 -3
  222. package/build/esm/editor/containers/Form/Form.css +1 -1
  223. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +1 -1
  224. package/build/esm/hooks/useAnalytics.d.ts +2 -2
  225. package/build/esm/hooks/useMetrika.d.ts +1 -13
  226. package/build/esm/hooks/useMetrika.js +1 -38
  227. package/build/esm/icons/index.d.ts +0 -9
  228. package/build/esm/icons/index.js +0 -9
  229. package/build/esm/index.d.ts +0 -1
  230. package/build/esm/index.js +0 -1
  231. package/build/esm/models/common.d.ts +2 -53
  232. package/build/esm/models/common.js +0 -24
  233. package/build/esm/models/constructor-items/common.d.ts +3 -28
  234. package/build/esm/models/constructor-items/sub-blocks.d.ts +3 -3
  235. package/build/esm/models/guards.d.ts +0 -2
  236. package/build/esm/models/guards.js +0 -3
  237. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.js +3 -3
  238. package/build/esm/schema/constants.d.ts +0 -176
  239. package/build/esm/schema/constants.js +2 -0
  240. package/build/esm/schema/validators/common.d.ts +0 -188
  241. package/build/esm/schema/validators/common.js +0 -31
  242. package/build/esm/schema/validators/index.d.ts +0 -2
  243. package/build/esm/schema/validators/index.js +0 -2
  244. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  245. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +5 -11
  246. package/build/esm/sub-blocks/BasicCard/BasicCard.css +7 -0
  247. package/build/esm/sub-blocks/BasicCard/BasicCard.js +5 -11
  248. package/build/esm/sub-blocks/Content/Content.css +6 -2
  249. package/build/esm/sub-blocks/Content/Content.js +4 -11
  250. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +0 -1
  251. package/build/esm/sub-blocks/HubspotForm/index.js +1 -6
  252. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +3 -0
  253. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +3 -9
  254. package/build/esm/sub-blocks/LayoutItem/utils.d.ts +1 -15
  255. package/build/esm/sub-blocks/PriceCard/schema.d.ts +0 -88
  256. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.d.ts +1 -0
  257. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +2 -0
  258. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +1 -0
  259. package/build/esm/sub-blocks/PriceDetailed/schema.js +1 -0
  260. package/build/esm/text-transform/common.d.ts +5 -5
  261. package/build/esm/text-transform/common.js +1 -1
  262. package/build/esm/text-transform/filter.js +1 -1
  263. package/build/esm/text-transform/transformers.d.ts +3 -3
  264. package/build/esm/text-transform/utils.d.ts +7 -7
  265. package/build/esm/text-transform/utils.js +2 -2
  266. package/build/esm/utils/index.d.ts +0 -1
  267. package/build/esm/utils/index.js +0 -1
  268. package/package.json +16 -15
  269. package/server/models/common.d.ts +2 -53
  270. package/server/models/common.js +1 -25
  271. package/server/models/constructor-items/common.d.ts +3 -28
  272. package/server/models/constructor-items/sub-blocks.d.ts +3 -3
  273. package/server/models/guards.d.ts +0 -2
  274. package/server/models/guards.js +1 -5
  275. package/server/text-transform/common.d.ts +5 -5
  276. package/server/text-transform/common.js +1 -1
  277. package/server/text-transform/filter.js +1 -1
  278. package/server/text-transform/transformers.d.ts +3 -3
  279. package/server/text-transform/utils.d.ts +7 -7
  280. package/server/text-transform/utils.js +6 -6
  281. package/server/utils/index.d.ts +0 -1
  282. package/server/utils/index.js +1 -4
  283. package/styles/mixins.scss +0 -4
  284. package/styles/storybook/index.scss +1 -1
  285. package/styles/styles.css +1 -1
  286. package/styles/yfm.scss +1 -1
  287. package/widget/index.js +1 -1
  288. package/build/cjs/context/metrikaContext/index.d.ts +0 -1
  289. package/build/cjs/context/metrikaContext/index.js +0 -4
  290. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -13
  291. package/build/cjs/context/metrikaContext/metrikaContext.js +0 -6
  292. package/build/cjs/i18n.d.ts +0 -2
  293. package/build/cjs/i18n.js +0 -12
  294. package/build/cjs/icons/ArrowConstructor.d.ts +0 -2
  295. package/build/cjs/icons/ArrowConstructor.js +0 -9
  296. package/build/cjs/icons/ArrowSidebar.d.ts +0 -2
  297. package/build/cjs/icons/ArrowSidebar.js +0 -9
  298. package/build/cjs/icons/Fullscreen.d.ts +0 -2
  299. package/build/cjs/icons/Fullscreen.js +0 -9
  300. package/build/cjs/icons/Minus.d.ts +0 -2
  301. package/build/cjs/icons/Minus.js +0 -9
  302. package/build/cjs/icons/Mute.d.ts +0 -2
  303. package/build/cjs/icons/Mute.js +0 -12
  304. package/build/cjs/icons/NavigationClose.d.ts +0 -2
  305. package/build/cjs/icons/NavigationClose.js +0 -9
  306. package/build/cjs/icons/NavigationOpen.d.ts +0 -2
  307. package/build/cjs/icons/NavigationOpen.js +0 -11
  308. package/build/cjs/icons/PlayVideo.d.ts +0 -2
  309. package/build/cjs/icons/PlayVideo.js +0 -9
  310. package/build/cjs/icons/PreviewClose.d.ts +0 -2
  311. package/build/cjs/icons/PreviewClose.js +0 -9
  312. package/build/cjs/icons/Tick.d.ts +0 -2
  313. package/build/cjs/icons/Tick.js +0 -13
  314. package/build/cjs/icons/Unmute.d.ts +0 -2
  315. package/build/cjs/icons/Unmute.js +0 -12
  316. package/build/cjs/schema/validators/pixel.d.ts +0 -57
  317. package/build/cjs/schema/validators/pixel.js +0 -63
  318. package/build/cjs/sub-blocks/renderCardFooterControlsContainer/CardFooterControlsContainer.css +0 -3
  319. package/build/cjs/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.d.ts +0 -3
  320. package/build/cjs/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.js +0 -9
  321. package/build/cjs/utils/configure.d.ts +0 -12
  322. package/build/cjs/utils/configure.js +0 -26
  323. package/build/cjs/utils/registerKeyset.d.ts +0 -5
  324. package/build/cjs/utils/registerKeyset.js +0 -9
  325. package/build/cjs/utils/renderContentControls/ContentControls.css +0 -6
  326. package/build/cjs/utils/renderContentControls/renderContentControls.d.ts +0 -11
  327. package/build/cjs/utils/renderContentControls/renderContentControls.js +0 -16
  328. package/build/esm/context/metrikaContext/index.d.ts +0 -1
  329. package/build/esm/context/metrikaContext/index.js +0 -1
  330. package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -13
  331. package/build/esm/context/metrikaContext/metrikaContext.js +0 -2
  332. package/build/esm/i18n.d.ts +0 -2
  333. package/build/esm/i18n.js +0 -9
  334. package/build/esm/icons/ArrowConstructor.d.ts +0 -2
  335. package/build/esm/icons/ArrowConstructor.js +0 -4
  336. package/build/esm/icons/ArrowSidebar.d.ts +0 -2
  337. package/build/esm/icons/ArrowSidebar.js +0 -4
  338. package/build/esm/icons/Fullscreen.d.ts +0 -2
  339. package/build/esm/icons/Fullscreen.js +0 -4
  340. package/build/esm/icons/Minus.d.ts +0 -2
  341. package/build/esm/icons/Minus.js +0 -4
  342. package/build/esm/icons/Mute.d.ts +0 -2
  343. package/build/esm/icons/Mute.js +0 -7
  344. package/build/esm/icons/NavigationClose.d.ts +0 -2
  345. package/build/esm/icons/NavigationClose.js +0 -4
  346. package/build/esm/icons/NavigationOpen.d.ts +0 -2
  347. package/build/esm/icons/NavigationOpen.js +0 -6
  348. package/build/esm/icons/PlayVideo.d.ts +0 -2
  349. package/build/esm/icons/PlayVideo.js +0 -4
  350. package/build/esm/icons/PreviewClose.d.ts +0 -2
  351. package/build/esm/icons/PreviewClose.js +0 -4
  352. package/build/esm/icons/Tick.d.ts +0 -2
  353. package/build/esm/icons/Tick.js +0 -8
  354. package/build/esm/icons/Unmute.d.ts +0 -2
  355. package/build/esm/icons/Unmute.js +0 -7
  356. package/build/esm/schema/validators/pixel.d.ts +0 -57
  357. package/build/esm/schema/validators/pixel.js +0 -60
  358. package/build/esm/sub-blocks/renderCardFooterControlsContainer/CardFooterControlsContainer.css +0 -3
  359. package/build/esm/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.d.ts +0 -3
  360. package/build/esm/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.js +0 -6
  361. package/build/esm/utils/configure.d.ts +0 -12
  362. package/build/esm/utils/configure.js +0 -20
  363. package/build/esm/utils/registerKeyset.d.ts +0 -5
  364. package/build/esm/utils/registerKeyset.js +0 -5
  365. package/build/esm/utils/renderContentControls/ContentControls.css +0 -6
  366. package/build/esm/utils/renderContentControls/renderContentControls.d.ts +0 -12
  367. package/build/esm/utils/renderContentControls/renderContentControls.js +0 -14
  368. package/server/utils/configure.d.ts +0 -12
  369. package/server/utils/configure.js +0 -26
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm install @gravity-ui/page-constructor
16
16
 
17
17
  ## Required dependencies
18
18
 
19
- Please note that to start using the package, your project must also have the following installed: `@doc-tools/transform`, `@gravity-ui/uikit`, `react`. Check out the `peerDependencies` section of `package.json` for accurate information.
19
+ Please note that to start using the package, your project must also have the following installed: `@diplodoc/transform`, `@gravity-ui/uikit`, `react`. Check out the `peerDependencies` section of `package.json` for accurate information.
20
20
 
21
21
  ### Getting started
22
22
 
@@ -215,12 +215,14 @@ To add a theme to a block property:
215
215
 
216
216
  ### i18n
217
217
 
218
- To make sure the i18n library used in your project runs properly, perform its initialization and set the project's current locale value in `lang`. For example:
218
+ The `page-constructor` is a `uikit-based` library, and we use an instance of `i18n` from uikit. To set up internationalization, you just need to use the `configure` from uikit:
219
219
 
220
220
  ```typescript
221
- import {configure, Lang} from '@gravity-ui/page-constructor';
221
+ import {configure} from '@gravity-ui/uikit';
222
222
 
223
- configure({lang: Lang.En});
223
+ configure({
224
+ lang: 'ru',
225
+ });
224
226
  ```
225
227
 
226
228
  ### Maps
@@ -103,94 +103,6 @@ export declare const BannerCardProps: {
103
103
  optionName: string;
104
104
  })[];
105
105
  };
106
- metrikaGoals: {
107
- oneOf: ({
108
- type: string;
109
- optionName: string;
110
- items?: undefined;
111
- } | {
112
- type: string;
113
- items: {
114
- type: string;
115
- additionalProperties?: undefined;
116
- required?: undefined;
117
- properties?: undefined;
118
- };
119
- optionName: string;
120
- } | {
121
- type: string;
122
- items: {
123
- type: string;
124
- additionalProperties: boolean;
125
- required: string[];
126
- properties: {
127
- name: {
128
- type: string;
129
- };
130
- isCrossSite: {
131
- type: string;
132
- };
133
- };
134
- };
135
- optionName: string;
136
- })[];
137
- };
138
- pixelEvents: {
139
- type: string;
140
- items: {
141
- type: string;
142
- required: string[];
143
- additionalProperties: boolean;
144
- properties: {
145
- name: {
146
- type: string;
147
- enum: import("../..").PixelEventType[];
148
- };
149
- data: {};
150
- };
151
- select: {
152
- $data: string;
153
- };
154
- selectCases: {
155
- SubmitApplication: {
156
- additionalProperties: boolean;
157
- properties: {
158
- name: {};
159
- };
160
- };
161
- Contact: {
162
- additionalProperties: boolean;
163
- properties: {
164
- name: {};
165
- };
166
- };
167
- Lead: {
168
- additionalProperties: boolean;
169
- properties: {
170
- name: {};
171
- data: {
172
- type: string;
173
- additionalProperties: boolean;
174
- properties: {
175
- content_category: {
176
- type: string;
177
- };
178
- content_name: {
179
- type: string;
180
- };
181
- currency: {
182
- type: string;
183
- };
184
- value: {
185
- type: string;
186
- };
187
- };
188
- };
189
- };
190
- };
191
- };
192
- };
193
- };
194
106
  analyticsEvents: {
195
107
  oneOf: ({
196
108
  optionName: string;
@@ -410,94 +322,6 @@ export declare const BannerBlock: {
410
322
  optionName: string;
411
323
  })[];
412
324
  };
413
- metrikaGoals: {
414
- oneOf: ({
415
- type: string;
416
- optionName: string;
417
- items?: undefined;
418
- } | {
419
- type: string;
420
- items: {
421
- type: string;
422
- additionalProperties?: undefined;
423
- required?: undefined;
424
- properties?: undefined;
425
- };
426
- optionName: string;
427
- } | {
428
- type: string;
429
- items: {
430
- type: string;
431
- additionalProperties: boolean;
432
- required: string[];
433
- properties: {
434
- name: {
435
- type: string;
436
- };
437
- isCrossSite: {
438
- type: string;
439
- };
440
- };
441
- };
442
- optionName: string;
443
- })[];
444
- };
445
- pixelEvents: {
446
- type: string;
447
- items: {
448
- type: string;
449
- required: string[];
450
- additionalProperties: boolean;
451
- properties: {
452
- name: {
453
- type: string;
454
- enum: import("../..").PixelEventType[];
455
- };
456
- data: {};
457
- };
458
- select: {
459
- $data: string;
460
- };
461
- selectCases: {
462
- SubmitApplication: {
463
- additionalProperties: boolean;
464
- properties: {
465
- name: {};
466
- };
467
- };
468
- Contact: {
469
- additionalProperties: boolean;
470
- properties: {
471
- name: {};
472
- };
473
- };
474
- Lead: {
475
- additionalProperties: boolean;
476
- properties: {
477
- name: {};
478
- data: {
479
- type: string;
480
- additionalProperties: boolean;
481
- properties: {
482
- content_category: {
483
- type: string;
484
- };
485
- content_name: {
486
- type: string;
487
- };
488
- currency: {
489
- type: string;
490
- };
491
- value: {
492
- type: string;
493
- };
494
- };
495
- };
496
- };
497
- };
498
- };
499
- };
500
- };
501
325
  analyticsEvents: {
502
326
  oneOf: ({
503
327
  optionName: string;
@@ -718,94 +542,6 @@ export declare const BannerCard: {
718
542
  optionName: string;
719
543
  })[];
720
544
  };
721
- metrikaGoals: {
722
- oneOf: ({
723
- type: string;
724
- optionName: string;
725
- items?: undefined;
726
- } | {
727
- type: string;
728
- items: {
729
- type: string;
730
- additionalProperties?: undefined;
731
- required?: undefined;
732
- properties?: undefined;
733
- };
734
- optionName: string;
735
- } | {
736
- type: string;
737
- items: {
738
- type: string;
739
- additionalProperties: boolean;
740
- required: string[];
741
- properties: {
742
- name: {
743
- type: string;
744
- };
745
- isCrossSite: {
746
- type: string;
747
- };
748
- };
749
- };
750
- optionName: string;
751
- })[];
752
- };
753
- pixelEvents: {
754
- type: string;
755
- items: {
756
- type: string;
757
- required: string[];
758
- additionalProperties: boolean;
759
- properties: {
760
- name: {
761
- type: string;
762
- enum: import("../..").PixelEventType[];
763
- };
764
- data: {};
765
- };
766
- select: {
767
- $data: string;
768
- };
769
- selectCases: {
770
- SubmitApplication: {
771
- additionalProperties: boolean;
772
- properties: {
773
- name: {};
774
- };
775
- };
776
- Contact: {
777
- additionalProperties: boolean;
778
- properties: {
779
- name: {};
780
- };
781
- };
782
- Lead: {
783
- additionalProperties: boolean;
784
- properties: {
785
- name: {};
786
- data: {
787
- type: string;
788
- additionalProperties: boolean;
789
- properties: {
790
- content_category: {
791
- type: string;
792
- };
793
- content_name: {
794
- type: string;
795
- };
796
- currency: {
797
- type: string;
798
- };
799
- value: {
800
- type: string;
801
- };
802
- };
803
- };
804
- };
805
- };
806
- };
807
- };
808
- };
809
545
  analyticsEvents: {
810
546
  oneOf: ({
811
547
  optionName: string;
@@ -8,12 +8,12 @@ const ButtonTabs_1 = tslib_1.__importDefault(require("../../components/ButtonTab
8
8
  const ConstructorItem_1 = require("../../containers/PageConstructor/components/ConstructorItem");
9
9
  const grid_1 = require("../../grid");
10
10
  const utils_1 = require("../../utils");
11
- const i18n_1 = tslib_1.__importDefault(require("./i18n"));
11
+ const i18n_1 = require("./i18n");
12
12
  const b = (0, utils_1.block)('filter-block');
13
13
  const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items, colSizes, centered, animated, }) => {
14
14
  const tabButtons = (0, react_1.useMemo)(() => {
15
15
  const allButton = allTag
16
- ? { id: null, title: typeof allTag === 'boolean' ? (0, i18n_1.default)('label-all-tag') : allTag }
16
+ ? { id: null, title: typeof allTag === 'boolean' ? (0, i18n_1.i18n)('label-all-tag') : allTag }
17
17
  : undefined;
18
18
  const otherButtons = tags && tags.map((tag) => ({ id: tag.id, title: tag.label }));
19
19
  return [...(allButton ? [allButton] : []), ...(otherButtons ? otherButtons : [])];
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "label-all-tag", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.i18n = void 0;
3
4
  const tslib_1 = require("tslib");
4
- const registerKeyset_1 = require("../../../utils/registerKeyset");
5
+ const i18n_1 = require("@gravity-ui/uikit/i18n");
6
+ const cn_1 = require("../../../utils/cn");
5
7
  const en_json_1 = tslib_1.__importDefault(require("./en.json"));
6
8
  const ru_json_1 = tslib_1.__importDefault(require("./ru.json"));
7
- const COMPONENT = 'FilterBlock';
8
- exports.default = (0, registerKeyset_1.registerKeyset)({ en: en_json_1.default, ru: ru_json_1.default }, COMPONENT);
9
+ exports.i18n = (0, i18n_1.addComponentKeysets)({ en: en_json_1.default, ru: ru_json_1.default }, `${cn_1.NAMESPACE}FilterBlock`);
@@ -182,94 +182,6 @@ export declare const MapBlock: {
182
182
  optionName: string;
183
183
  })[];
184
184
  };
185
- metrikaGoals: {
186
- oneOf: ({
187
- type: string;
188
- optionName: string;
189
- items?: undefined;
190
- } | {
191
- type: string;
192
- items: {
193
- type: string;
194
- additionalProperties?: undefined;
195
- required?: undefined;
196
- properties?: undefined;
197
- };
198
- optionName: string;
199
- } | {
200
- type: string;
201
- items: {
202
- type: string;
203
- additionalProperties: boolean;
204
- required: string[];
205
- properties: {
206
- name: {
207
- type: string;
208
- };
209
- isCrossSite: {
210
- type: string;
211
- };
212
- };
213
- };
214
- optionName: string;
215
- })[];
216
- };
217
- pixelEvents: {
218
- type: string;
219
- items: {
220
- type: string;
221
- required: string[];
222
- additionalProperties: boolean;
223
- properties: {
224
- name: {
225
- type: string;
226
- enum: import("../..").PixelEventType[];
227
- };
228
- data: {};
229
- };
230
- select: {
231
- $data: string;
232
- };
233
- selectCases: {
234
- SubmitApplication: {
235
- additionalProperties: boolean;
236
- properties: {
237
- name: {};
238
- };
239
- };
240
- Contact: {
241
- additionalProperties: boolean;
242
- properties: {
243
- name: {};
244
- };
245
- };
246
- Lead: {
247
- additionalProperties: boolean;
248
- properties: {
249
- name: {};
250
- data: {
251
- type: string;
252
- additionalProperties: boolean;
253
- properties: {
254
- content_category: {
255
- type: string;
256
- };
257
- content_name: {
258
- type: string;
259
- };
260
- currency: {
261
- type: string;
262
- };
263
- value: {
264
- type: string;
265
- };
266
- };
267
- };
268
- };
269
- };
270
- };
271
- };
272
- };
273
185
  analyticsEvents: {
274
186
  oneOf: ({
275
187
  optionName: string;
@@ -349,94 +349,6 @@ export declare const MediaBlockBaseProps: {
349
349
  optionName: string;
350
350
  })[];
351
351
  };
352
- metrikaGoals: {
353
- oneOf: ({
354
- type: string;
355
- optionName: string;
356
- items?: undefined;
357
- } | {
358
- type: string;
359
- items: {
360
- type: string;
361
- additionalProperties?: undefined;
362
- required?: undefined;
363
- properties?: undefined;
364
- };
365
- optionName: string;
366
- } | {
367
- type: string;
368
- items: {
369
- type: string;
370
- additionalProperties: boolean;
371
- required: string[];
372
- properties: {
373
- name: {
374
- type: string;
375
- };
376
- isCrossSite: {
377
- type: string;
378
- };
379
- };
380
- };
381
- optionName: string;
382
- })[];
383
- };
384
- pixelEvents: {
385
- type: string;
386
- items: {
387
- type: string;
388
- required: string[];
389
- additionalProperties: boolean;
390
- properties: {
391
- name: {
392
- type: string;
393
- enum: import("../..").PixelEventType[];
394
- };
395
- data: {};
396
- };
397
- select: {
398
- $data: string;
399
- };
400
- selectCases: {
401
- SubmitApplication: {
402
- additionalProperties: boolean;
403
- properties: {
404
- name: {};
405
- };
406
- };
407
- Contact: {
408
- additionalProperties: boolean;
409
- properties: {
410
- name: {};
411
- };
412
- };
413
- Lead: {
414
- additionalProperties: boolean;
415
- properties: {
416
- name: {};
417
- data: {
418
- type: string;
419
- additionalProperties: boolean;
420
- properties: {
421
- content_category: {
422
- type: string;
423
- };
424
- content_name: {
425
- type: string;
426
- };
427
- currency: {
428
- type: string;
429
- };
430
- value: {
431
- type: string;
432
- };
433
- };
434
- };
435
- };
436
- };
437
- };
438
- };
439
- };
440
352
  analyticsEvents: {
441
353
  oneOf: ({
442
354
  optionName: string;
@@ -1035,94 +947,6 @@ export declare const MediaBlock: {
1035
947
  optionName: string;
1036
948
  })[];
1037
949
  };
1038
- metrikaGoals: {
1039
- oneOf: ({
1040
- type: string;
1041
- optionName: string;
1042
- items?: undefined;
1043
- } | {
1044
- type: string;
1045
- items: {
1046
- type: string;
1047
- additionalProperties?: undefined;
1048
- required?: undefined;
1049
- properties?: undefined;
1050
- };
1051
- optionName: string;
1052
- } | {
1053
- type: string;
1054
- items: {
1055
- type: string;
1056
- additionalProperties: boolean;
1057
- required: string[];
1058
- properties: {
1059
- name: {
1060
- type: string;
1061
- };
1062
- isCrossSite: {
1063
- type: string;
1064
- };
1065
- };
1066
- };
1067
- optionName: string;
1068
- })[];
1069
- };
1070
- pixelEvents: {
1071
- type: string;
1072
- items: {
1073
- type: string;
1074
- required: string[];
1075
- additionalProperties: boolean;
1076
- properties: {
1077
- name: {
1078
- type: string;
1079
- enum: import("../..").PixelEventType[];
1080
- };
1081
- data: {};
1082
- };
1083
- select: {
1084
- $data: string;
1085
- };
1086
- selectCases: {
1087
- SubmitApplication: {
1088
- additionalProperties: boolean;
1089
- properties: {
1090
- name: {};
1091
- };
1092
- };
1093
- Contact: {
1094
- additionalProperties: boolean;
1095
- properties: {
1096
- name: {};
1097
- };
1098
- };
1099
- Lead: {
1100
- additionalProperties: boolean;
1101
- properties: {
1102
- name: {};
1103
- data: {
1104
- type: string;
1105
- additionalProperties: boolean;
1106
- properties: {
1107
- content_category: {
1108
- type: string;
1109
- };
1110
- content_name: {
1111
- type: string;
1112
- };
1113
- currency: {
1114
- type: string;
1115
- };
1116
- value: {
1117
- type: string;
1118
- };
1119
- };
1120
- };
1121
- };
1122
- };
1123
- };
1124
- };
1125
- };
1126
950
  analyticsEvents: {
1127
951
  oneOf: ({
1128
952
  optionName: string;
@@ -1,2 +1 @@
1
- declare const _default: (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
2
- export default _default;
1
+ export declare const i18n: (key: "image-alt", params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.i18n = void 0;
3
4
  const tslib_1 = require("tslib");
4
- const registerKeyset_1 = require("../../../utils/registerKeyset");
5
+ const i18n_1 = require("@gravity-ui/uikit/i18n");
6
+ const cn_1 = require("../../../utils/cn");
5
7
  const en_json_1 = tslib_1.__importDefault(require("./en.json"));
6
8
  const ru_json_1 = tslib_1.__importDefault(require("./ru.json"));
7
- const COMPONENT = 'SecurityBlock';
8
- exports.default = (0, registerKeyset_1.registerKeyset)({ en: en_json_1.default, ru: ru_json_1.default }, COMPONENT);
9
+ exports.i18n = (0, i18n_1.addComponentKeysets)({ en: en_json_1.default, ru: ru_json_1.default }, `${cn_1.NAMESPACE}SecurityBlock`);
@@ -24,7 +24,8 @@ unpredictable css rules order in build */
24
24
  /* stylelint-disable-next-line declaration-no-important */
25
25
  width: 48px !important;
26
26
  height: 48px;
27
- border-radius: 100%;
27
+ /* stylelint-disable-next-line declaration-no-important */
28
+ border-radius: 100% !important;
28
29
  }
29
30
  .pc-share-block__item.pc-share-block__item_type_vk {
30
31
  background-color: var(--pc-color-vk);