@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
@@ -1 +0,0 @@
1
- export * from './metrikaContext';
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./metrikaContext"), exports);
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { Metrika, Pixel } from '../../models';
3
- export interface MetrikaContextProps {
4
- /**
5
- * @deprecated Metrika will be deleted
6
- */
7
- metrika?: Metrika;
8
- /**
9
- * @deprecated Metrika will be deleted
10
- */
11
- pixel?: Pixel;
12
- }
13
- export declare const MetrikaContext: React.Context<MetrikaContextProps>;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MetrikaContext = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- exports.MetrikaContext = react_1.default.createContext({});
@@ -1,2 +0,0 @@
1
- import { I18N } from '@gravity-ui/i18n';
2
- export declare const i18n: I18N;
package/build/cjs/i18n.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.i18n = void 0;
4
- const i18n_1 = require("@gravity-ui/i18n");
5
- const configure_1 = require("./utils/configure");
6
- exports.i18n = new i18n_1.I18N();
7
- exports.i18n.setLang((0, configure_1.getConfig)().lang || configure_1.Lang.En);
8
- (0, configure_1.subscribeConfigure)((config) => {
9
- if (config.lang) {
10
- exports.i18n.setLang(config.lang);
11
- }
12
- });
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ArrowConstructor: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArrowConstructor = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const ArrowConstructor = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "19", height: "42", viewBox: "0 0 19 42", fill: "none", stroke: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { d: "M18 41 2 21 18 1", strokeWidth: "2" })));
9
- exports.ArrowConstructor = ArrowConstructor;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ArrowSidebar: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArrowSidebar = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const ArrowSidebar = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { d: "M19.5 11H7.4l3.8-3.8c.4-.4.4-1 0-1.4s-1-.4-1.4 0L3.6 12l6.2 6.2c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L7.4 13h12.1c.6 0 1-.4 1-1s-.4-1-1-1z", fill: "currentColor" })));
9
- exports.ArrowSidebar = ArrowSidebar;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Fullscreen: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fullscreen = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const Fullscreen = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18 4.654v.291a10 10 0 0 0-1.763 1.404l-2.944 2.944a1 1 0 0 0 1.414 1.414l2.933-2.932A9.996 9.996 0 0 0 19.05 6h.296l-.09.39A9.993 9.993 0 0 0 19 8.64v.857a1 1 0 0 0 2 0V4.503a1.5 1.5 0 0 0-1.5-1.5L14.5 3a1 1 0 1 0 0 2h.861a10 10 0 0 0 2.249-.256l.39-.09zM4.95 18a10 10 0 0 1 1.41-1.775l2.933-2.932a1 1 0 0 1 1.414 1.414l-2.944 2.944A9.998 9.998 0 0 1 6 19.055v.291l.39-.09A9.993 9.993 0 0 1 8.64 19h.86a1 1 0 0 1 0 2l-5-.003a1.5 1.5 0 0 1-1.5-1.5V14.5a1 1 0 1 1 2 0v.861a10 10 0 0 1-.256 2.249l-.09.39h.296z" })));
9
- exports.Fullscreen = Fullscreen;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Minus: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Minus = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const Minus = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", stroke: "none" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { fill: "#B5BFC6", fillRule: "evenodd", d: "M1.969 9c0-.466.378-.844.843-.844h12.376a.844.844 0 0 1 0 1.688H2.812A.844.844 0 0 1 1.97 9Z", clipRule: "evenodd" })));
9
- exports.Minus = Minus;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Mute: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mute = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const Mute = (props) => {
8
- return (react_1.default.createElement("svg", Object.assign({ width: "27", height: "22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, svg_1.a11yHiddenSvgProps, props),
9
- react_1.default.createElement("path", { d: "M20 7a5.657 5.657 0 0 1 0 8m3-11c3.866 3.866 3.866 10.134 0 14", stroke: "#262626", strokeWidth: "2" }),
10
- react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m7 7 7-7h2v22h-2l-7-7H0V7h7z", fill: "#262626" })));
11
- };
12
- exports.Mute = Mute;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const NavigationClose: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NavigationClose = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const NavigationClose = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "36", height: "36", fill: "none" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { d: "M26 10 10 26m16 0L10 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })));
9
- exports.NavigationClose = NavigationClose;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const NavigationOpen: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NavigationOpen = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const NavigationOpen = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "36", height: "36", fill: "none" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("rect", { x: "8", y: "10", width: "20", height: "2", rx: "1", fill: "currentColor" }),
9
- react_1.default.createElement("rect", { x: "8", y: "17", width: "20", height: "2", rx: "1", fill: "currentColor" }),
10
- react_1.default.createElement("rect", { x: "8", y: "24", width: "20", height: "2", rx: "1", fill: "currentColor" })));
11
- exports.NavigationOpen = NavigationOpen;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const PlayVideo: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlayVideo = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const PlayVideo = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "22", height: "26", viewBox: "0 0 22 26", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { d: "M21 11.268c1.333.77 1.333 2.694 0 3.464L3 25.124c-1.333.77-3-.192-3-1.732V2.608C0 1.068 1.667.106 3 .876l18 10.392z" })));
9
- exports.PlayVideo = PlayVideo;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const PreviewClose: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreviewClose = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const PreviewClose = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor", stroke: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("path", { strokeWidth: "2", strokeLinecap: "round", d: "M7.357 7.357l9.286 9.286m0-9.286l-9.286 9.286" })));
9
- exports.PreviewClose = PreviewClose;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Tick: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tick = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const Tick = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", stroke: "none" }, svg_1.a11yHiddenSvgProps, props),
8
- react_1.default.createElement("g", { clipPath: "url(#a)" },
9
- react_1.default.createElement("path", { fill: "#37F", fillRule: "evenodd", d: "M15.174 3.86a.844.844 0 0 1 .092 1.19l-6.75 7.874a.843.843 0 0 1-1.238.048L3.341 9.034a.844.844 0 1 1 1.193-1.193l3.293 3.293 6.157-7.183a.844.844 0 0 1 1.19-.092Z", clipRule: "evenodd" })),
10
- react_1.default.createElement("defs", null,
11
- react_1.default.createElement("clipPath", { id: "a" },
12
- react_1.default.createElement("path", { fill: "#fff", d: "M0 0h18v18H0z" })))));
13
- exports.Tick = Tick;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Unmute: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Unmute = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const svg_1 = require("../utils/svg");
7
- const Unmute = (props) => {
8
- return (react_1.default.createElement("svg", Object.assign({ width: "29", height: "22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, svg_1.a11yHiddenSvgProps, props),
9
- react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m7 7 7-7h2v22h-2l-7-7H0V7h7z", fill: "#262626" }),
10
- react_1.default.createElement("path", { d: "m20 7 4 4m0 0-4 4m4-4 4-4m-4 4 4 4", stroke: "#262626", strokeWidth: "2" })));
11
- };
12
- exports.Unmute = Unmute;
@@ -1,57 +0,0 @@
1
- import { PixelEventType } from '../../models';
2
- export declare const pixelEvents: {
3
- type: string;
4
- items: {
5
- type: string;
6
- required: string[];
7
- additionalProperties: boolean;
8
- properties: {
9
- name: {
10
- type: string;
11
- enum: PixelEventType[];
12
- };
13
- data: {};
14
- };
15
- select: {
16
- $data: string;
17
- };
18
- selectCases: {
19
- SubmitApplication: {
20
- additionalProperties: boolean;
21
- properties: {
22
- name: {};
23
- };
24
- };
25
- Contact: {
26
- additionalProperties: boolean;
27
- properties: {
28
- name: {};
29
- };
30
- };
31
- Lead: {
32
- additionalProperties: boolean;
33
- properties: {
34
- name: {};
35
- data: {
36
- type: string;
37
- additionalProperties: boolean;
38
- properties: {
39
- content_category: {
40
- type: string;
41
- };
42
- content_name: {
43
- type: string;
44
- };
45
- currency: {
46
- type: string;
47
- };
48
- value: {
49
- type: string;
50
- };
51
- };
52
- };
53
- };
54
- };
55
- };
56
- };
57
- };
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pixelEvents = void 0;
4
- const models_1 = require("../../models");
5
- const LeadData = {
6
- Lead: {
7
- additionalProperties: false,
8
- properties: {
9
- name: {},
10
- data: {
11
- type: 'object',
12
- additionalProperties: false,
13
- properties: {
14
- content_category: {
15
- type: 'string',
16
- },
17
- content_name: {
18
- type: 'string',
19
- },
20
- currency: {
21
- type: 'string',
22
- },
23
- value: {
24
- type: 'number',
25
- },
26
- },
27
- },
28
- },
29
- },
30
- };
31
- const ContactData = {
32
- Contact: {
33
- additionalProperties: false,
34
- properties: {
35
- name: {},
36
- },
37
- },
38
- };
39
- const SubmitApplicationData = {
40
- SubmitApplication: {
41
- additionalProperties: false,
42
- properties: {
43
- name: {},
44
- },
45
- },
46
- };
47
- exports.pixelEvents = {
48
- type: 'array',
49
- items: {
50
- type: 'object',
51
- required: ['name'],
52
- additionalProperties: false,
53
- properties: {
54
- name: {
55
- type: 'string',
56
- enum: Object.values(models_1.PixelEventType),
57
- },
58
- data: {},
59
- },
60
- select: { $data: '0/name' },
61
- selectCases: Object.assign(Object.assign(Object.assign({}, LeadData), ContactData), SubmitApplicationData),
62
- },
63
- };
@@ -1,3 +0,0 @@
1
- .pc-card-footer-controls {
2
- margin-top: 0px;
3
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const renderCardFooterControlsContainer: (children: React.ReactElement) => JSX.Element;
3
- export default renderCardFooterControlsContainer;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
5
- const components_1 = require("../../components");
6
- const utils_1 = require("../../utils");
7
- const b = (0, utils_1.block)('card-footer-controls-containe');
8
- const renderCardFooterControlsContainer = (children) => (react_1.default.createElement(components_1.CardBase.Footer, { className: b() }, children));
9
- exports.default = renderCardFooterControlsContainer;
@@ -1,12 +0,0 @@
1
- export declare enum Lang {
2
- Ru = "ru",
3
- En = "en"
4
- }
5
- interface Config {
6
- lang?: Lang;
7
- }
8
- type Subscriber = (config: Config) => void;
9
- export declare const configure: (newConfig: Config) => void;
10
- export declare const subscribeConfigure: (sub: Subscriber) => () => void;
11
- export declare const getConfig: () => Config;
12
- export {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getConfig = exports.subscribeConfigure = exports.configure = exports.Lang = void 0;
4
- var Lang;
5
- (function (Lang) {
6
- Lang["Ru"] = "ru";
7
- Lang["En"] = "en";
8
- })(Lang = exports.Lang || (exports.Lang = {}));
9
- let subs = [];
10
- const config = {};
11
- const configure = (newConfig) => {
12
- Object.assign(config, newConfig);
13
- subs.forEach((sub) => {
14
- sub(config);
15
- });
16
- };
17
- exports.configure = configure;
18
- const subscribeConfigure = (sub) => {
19
- subs.push(sub);
20
- return () => {
21
- subs = subs.filter((item) => item !== sub);
22
- };
23
- };
24
- exports.subscribeConfigure = subscribeConfigure;
25
- const getConfig = () => config;
26
- exports.getConfig = getConfig;
@@ -1,5 +0,0 @@
1
- import { i18n } from '../i18n';
2
- import { Lang } from './configure';
3
- type KeysData = Parameters<typeof i18n.registerKeyset>[2];
4
- export declare function registerKeyset<T extends KeysData>(data: Record<Lang, T>, keysetName: string): (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
5
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerKeyset = void 0;
4
- const i18n_1 = require("../i18n");
5
- function registerKeyset(data, keysetName) {
6
- Object.entries(data).forEach(([lang, keys]) => i18n_1.i18n.registerKeyset(lang, keysetName, keys));
7
- return i18n_1.i18n.keyset(keysetName);
8
- }
9
- exports.registerKeyset = registerKeyset;
@@ -1,6 +0,0 @@
1
- .pc-content-controls__links_size_s, .pc-content-controls__buttons_size_s {
2
- margin-top: 16px;
3
- }
4
- .pc-content-controls__links_size_l, .pc-content-controls__buttons_size_l {
5
- margin-top: 24px;
6
- }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps, ContentSize, LinkProps } from '../../models';
3
- type ContentControlsArgs = {
4
- links?: LinkProps[];
5
- buttons?: ButtonProps[];
6
- titleId?: string;
7
- size?: ContentSize;
8
- qa?: Record<string, string>;
9
- };
10
- declare const renderContentControls: ({ links, buttons, titleId, size, qa }: ContentControlsArgs, renderContainer?: (children: React.ReactElement) => React.ReactElement) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
11
- export default renderContentControls;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
5
- const components_1 = require("../../components");
6
- const utils_1 = require("../../utils");
7
- const b = (0, utils_1.block)('content-controls');
8
- const renderContentControls = ({ links, buttons, titleId, size = 's', qa = {} }, renderContainer = (children) => children) => {
9
- const { links: linksQa, link: linkQa, buttons: buttonsQa, button: buttonQa } = qa;
10
- return links || buttons
11
- ? renderContainer(react_1.default.createElement(react_1.Fragment, null,
12
- react_1.default.createElement(components_1.Links, { className: b('links', { size }), size: size, links: links, titleId: titleId, qa: linksQa, linkQa: linkQa }),
13
- react_1.default.createElement(components_1.Buttons, { className: b('buttons', { size }), size: size, buttons: buttons, titleId: titleId, qa: buttonsQa, buttonQa: buttonQa })))
14
- : null;
15
- };
16
- exports.default = renderContentControls;
@@ -1 +0,0 @@
1
- export * from './metrikaContext';
@@ -1 +0,0 @@
1
- export * from './metrikaContext';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { Metrika, Pixel } from '../../models';
3
- export interface MetrikaContextProps {
4
- /**
5
- * @deprecated Metrika will be deleted
6
- */
7
- metrika?: Metrika;
8
- /**
9
- * @deprecated Metrika will be deleted
10
- */
11
- pixel?: Pixel;
12
- }
13
- export declare const MetrikaContext: React.Context<MetrikaContextProps>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export const MetrikaContext = React.createContext({});
@@ -1,2 +0,0 @@
1
- import { I18N } from '@gravity-ui/i18n';
2
- export declare const i18n: I18N;
package/build/esm/i18n.js DELETED
@@ -1,9 +0,0 @@
1
- import { I18N } from '@gravity-ui/i18n';
2
- import { Lang, getConfig, subscribeConfigure } from './utils/configure';
3
- export const i18n = new I18N();
4
- i18n.setLang(getConfig().lang || Lang.En);
5
- subscribeConfigure((config) => {
6
- if (config.lang) {
7
- i18n.setLang(config.lang);
8
- }
9
- });
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ArrowConstructor: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const ArrowConstructor = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "19", height: "42", viewBox: "0 0 19 42", fill: "none", stroke: "currentColor" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { d: "M18 41 2 21 18 1", strokeWidth: "2" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ArrowSidebar: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const ArrowSidebar = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { d: "M19.5 11H7.4l3.8-3.8c.4-.4.4-1 0-1.4s-1-.4-1.4 0L3.6 12l6.2 6.2c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L7.4 13h12.1c.6 0 1-.4 1-1s-.4-1-1-1z", fill: "currentColor" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Fullscreen: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const Fullscreen = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18 4.654v.291a10 10 0 0 0-1.763 1.404l-2.944 2.944a1 1 0 0 0 1.414 1.414l2.933-2.932A9.996 9.996 0 0 0 19.05 6h.296l-.09.39A9.993 9.993 0 0 0 19 8.64v.857a1 1 0 0 0 2 0V4.503a1.5 1.5 0 0 0-1.5-1.5L14.5 3a1 1 0 1 0 0 2h.861a10 10 0 0 0 2.249-.256l.39-.09zM4.95 18a10 10 0 0 1 1.41-1.775l2.933-2.932a1 1 0 0 1 1.414 1.414l-2.944 2.944A9.998 9.998 0 0 1 6 19.055v.291l.39-.09A9.993 9.993 0 0 1 8.64 19h.86a1 1 0 0 1 0 2l-5-.003a1.5 1.5 0 0 1-1.5-1.5V14.5a1 1 0 1 1 2 0v.861a10 10 0 0 1-.256 2.249l-.09.39h.296z" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Minus: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const Minus = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", stroke: "none" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { fill: "#B5BFC6", fillRule: "evenodd", d: "M1.969 9c0-.466.378-.844.843-.844h12.376a.844.844 0 0 1 0 1.688H2.812A.844.844 0 0 1 1.97 9Z", clipRule: "evenodd" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Mute: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const Mute = (props) => {
4
- return (React.createElement("svg", Object.assign({ width: "27", height: "22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a11yHiddenSvgProps, props),
5
- React.createElement("path", { d: "M20 7a5.657 5.657 0 0 1 0 8m3-11c3.866 3.866 3.866 10.134 0 14", stroke: "#262626", strokeWidth: "2" }),
6
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m7 7 7-7h2v22h-2l-7-7H0V7h7z", fill: "#262626" })));
7
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const NavigationClose: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const NavigationClose = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "36", height: "36", fill: "none" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { d: "M26 10 10 26m16 0L10 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const NavigationOpen: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const NavigationOpen = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "36", height: "36", fill: "none" }, a11yHiddenSvgProps, props),
4
- React.createElement("rect", { x: "8", y: "10", width: "20", height: "2", rx: "1", fill: "currentColor" }),
5
- React.createElement("rect", { x: "8", y: "17", width: "20", height: "2", rx: "1", fill: "currentColor" }),
6
- React.createElement("rect", { x: "8", y: "24", width: "20", height: "2", rx: "1", fill: "currentColor" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const PlayVideo: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const PlayVideo = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "22", height: "26", viewBox: "0 0 22 26", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { d: "M21 11.268c1.333.77 1.333 2.694 0 3.464L3 25.124c-1.333.77-3-.192-3-1.732V2.608C0 1.068 1.667.106 3 .876l18 10.392z" })));
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const PreviewClose: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { a11yHiddenSvgProps } from '../utils/svg';
3
- export const PreviewClose = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor", stroke: "currentColor" }, a11yHiddenSvgProps, props),
4
- React.createElement("path", { strokeWidth: "2", strokeLinecap: "round", d: "M7.357 7.357l9.286 9.286m0-9.286l-9.286 9.286" })));