@gravity-ui/blog-constructor 6.5.1-beta.0 → 6.6.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 (600) hide show
  1. package/build/cjs/blocks/Author/Author.d.ts +3 -2
  2. package/build/cjs/blocks/Author/Author.js +13 -13
  3. package/build/cjs/blocks/Author/schema.js +3 -4
  4. package/build/cjs/blocks/Banner/Banner.d.ts +3 -2
  5. package/build/cjs/blocks/Banner/Banner.js +15 -11
  6. package/build/cjs/blocks/Banner/schema.js +3 -4
  7. package/build/cjs/blocks/CTA/CTA.d.ts +3 -2
  8. package/build/cjs/blocks/CTA/CTA.js +20 -19
  9. package/build/cjs/blocks/CTA/schema.js +3 -4
  10. package/build/cjs/blocks/ColoredText/ColoredText.d.ts +3 -2
  11. package/build/cjs/blocks/ColoredText/ColoredText.js +12 -9
  12. package/build/cjs/blocks/ColoredText/schema.js +3 -4
  13. package/build/cjs/blocks/Feed/Feed.d.ts +3 -2
  14. package/build/cjs/blocks/Feed/Feed.js +31 -31
  15. package/build/cjs/blocks/Feed/reducer.d.ts +1 -1
  16. package/build/cjs/blocks/Feed/reducer.js +2 -3
  17. package/build/cjs/blocks/Feed/schema.js +2 -3
  18. package/build/cjs/blocks/Form/Form.d.ts +3 -2
  19. package/build/cjs/blocks/Form/Form.js +10 -10
  20. package/build/cjs/blocks/Form/schema.js +3 -4
  21. package/build/cjs/blocks/Header/Header.d.ts +3 -2
  22. package/build/cjs/blocks/Header/Header.js +18 -18
  23. package/build/cjs/blocks/Header/schema.d.ts +0 -3
  24. package/build/cjs/blocks/Header/schema.js +3 -4
  25. package/build/cjs/blocks/Layout/Layout.d.ts +3 -3
  26. package/build/cjs/blocks/Layout/Layout.js +13 -12
  27. package/build/cjs/blocks/Layout/schema.js +3 -4
  28. package/build/cjs/blocks/Media/Media.d.ts +3 -2
  29. package/build/cjs/blocks/Media/Media.js +15 -12
  30. package/build/cjs/blocks/Media/schema.d.ts +0 -3
  31. package/build/cjs/blocks/Media/schema.js +3 -4
  32. package/build/cjs/blocks/Meta/Meta.d.ts +3 -2
  33. package/build/cjs/blocks/Meta/Meta.js +23 -22
  34. package/build/cjs/blocks/Meta/schema.js +3 -4
  35. package/build/cjs/blocks/Suggest/Suggest.d.ts +3 -2
  36. package/build/cjs/blocks/Suggest/Suggest.js +14 -15
  37. package/build/cjs/blocks/Suggest/schema.js +3 -4
  38. package/build/cjs/blocks/YFM/YFM.d.ts +3 -2
  39. package/build/cjs/blocks/YFM/YFM.js +11 -10
  40. package/build/cjs/blocks/YFM/schema.js +3 -4
  41. package/build/cjs/blocks/constants.js +1 -2
  42. package/build/cjs/components/FeedHeader/FeedHeader.d.ts +4 -3
  43. package/build/cjs/components/FeedHeader/FeedHeader.js +14 -10
  44. package/build/cjs/components/FeedHeader/components/Controls/Controls.d.ts +4 -4
  45. package/build/cjs/components/FeedHeader/components/Controls/Controls.js +40 -30
  46. package/build/cjs/components/FeedHeader/components/Controls/customRenders.d.ts +3 -2
  47. package/build/cjs/components/FeedHeader/components/Controls/customRenders.js +9 -13
  48. package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +2 -2
  49. package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +7 -5
  50. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +1 -1
  51. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +3 -2
  52. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +17 -13
  53. package/build/cjs/components/MetaWrapper/MetaWrapper.d.ts +1 -1
  54. package/build/cjs/components/MetaWrapper/MetaWrapper.js +4 -4
  55. package/build/cjs/components/Paginator/Paginator.d.ts +3 -2
  56. package/build/cjs/components/Paginator/Paginator.js +29 -25
  57. package/build/cjs/components/Paginator/components/NavigationButton.d.ts +3 -2
  58. package/build/cjs/components/Paginator/components/NavigationButton.js +7 -7
  59. package/build/cjs/components/Paginator/components/PaginatorItem.d.ts +3 -2
  60. package/build/cjs/components/Paginator/components/PaginatorItem.js +11 -13
  61. package/build/cjs/components/Paginator/types.d.ts +3 -3
  62. package/build/cjs/components/Paginator/types.js +1 -2
  63. package/build/cjs/components/Paginator/utils.d.ts +2 -2
  64. package/build/cjs/components/Paginator/utils.js +1 -2
  65. package/build/cjs/components/PostCard/PostCard.d.ts +3 -2
  66. package/build/cjs/components/PostCard/PostCard.js +23 -16
  67. package/build/cjs/components/PostInfo/PostInfo.d.ts +3 -2
  68. package/build/cjs/components/PostInfo/PostInfo.js +15 -13
  69. package/build/cjs/components/PostInfo/SuggestPostInfo.d.ts +3 -2
  70. package/build/cjs/components/PostInfo/SuggestPostInfo.js +16 -12
  71. package/build/cjs/components/PostInfo/components/Date.d.ts +3 -2
  72. package/build/cjs/components/PostInfo/components/Date.js +8 -10
  73. package/build/cjs/components/PostInfo/components/ReadingTime.d.ts +3 -2
  74. package/build/cjs/components/PostInfo/components/ReadingTime.js +10 -7
  75. package/build/cjs/components/PostInfo/components/Save.d.ts +3 -2
  76. package/build/cjs/components/PostInfo/components/Save.js +16 -14
  77. package/build/cjs/components/PostInfo/components/Sharing.d.ts +2 -1
  78. package/build/cjs/components/PostInfo/components/Sharing.js +17 -17
  79. package/build/cjs/components/Posts/Posts.d.ts +4 -4
  80. package/build/cjs/components/Posts/Posts.js +28 -16
  81. package/build/cjs/components/PostsEmpty/PostsEmpty.d.ts +2 -1
  82. package/build/cjs/components/PostsEmpty/PostsEmpty.js +8 -6
  83. package/build/cjs/components/PostsError/PostsError.d.ts +2 -1
  84. package/build/cjs/components/PostsError/PostsError.js +10 -6
  85. package/build/cjs/components/Prompt/Prompt.d.ts +2 -1
  86. package/build/cjs/components/Prompt/Prompt.js +12 -10
  87. package/build/cjs/components/PromptSignIn/PromptSignIn.d.ts +4 -4
  88. package/build/cjs/components/PromptSignIn/PromptSignIn.js +5 -6
  89. package/build/cjs/components/PromptSignIn/hooks/usePromptSignInProps.d.ts +2 -2
  90. package/build/cjs/components/PromptSignIn/hooks/usePromptSignInProps.js +5 -6
  91. package/build/cjs/components/Search/Search.d.ts +3 -2
  92. package/build/cjs/components/Search/Search.js +17 -17
  93. package/build/cjs/components/Wrapper/Wrapper.d.ts +3 -3
  94. package/build/cjs/components/Wrapper/Wrapper.js +7 -7
  95. package/build/cjs/constants.d.ts +2 -2
  96. package/build/cjs/constants.js +3 -4
  97. package/build/cjs/constructor/BlogConstructorProvider.d.ts +7 -7
  98. package/build/cjs/constructor/BlogConstructorProvider.js +19 -21
  99. package/build/cjs/constructor/blocksMap.d.ts +12 -12
  100. package/build/cjs/constructor/blocksMap.js +14 -15
  101. package/build/cjs/containers/BlogPage/BlogPage.d.ts +4 -4
  102. package/build/cjs/containers/BlogPage/BlogPage.js +25 -22
  103. package/build/cjs/containers/BlogPostPage/BlogPostPage.d.ts +4 -4
  104. package/build/cjs/containers/BlogPostPage/BlogPostPage.js +30 -27
  105. package/build/cjs/contexts/DeviceContext.d.ts +2 -2
  106. package/build/cjs/contexts/DeviceContext.js +2 -3
  107. package/build/cjs/contexts/FeedContext.d.ts +2 -2
  108. package/build/cjs/contexts/FeedContext.js +2 -3
  109. package/build/cjs/contexts/LikesContext.d.ts +2 -2
  110. package/build/cjs/contexts/LikesContext.js +2 -3
  111. package/build/cjs/contexts/LocaleContext.d.ts +2 -2
  112. package/build/cjs/contexts/LocaleContext.js +3 -4
  113. package/build/cjs/contexts/MobileContext.d.ts +1 -1
  114. package/build/cjs/contexts/MobileContext.js +2 -3
  115. package/build/cjs/contexts/PostPageContext.d.ts +2 -2
  116. package/build/cjs/contexts/PostPageContext.js +2 -3
  117. package/build/cjs/contexts/RouterContext.d.ts +2 -2
  118. package/build/cjs/contexts/RouterContext.js +2 -3
  119. package/build/cjs/contexts/SettingsContext.d.ts +1 -1
  120. package/build/cjs/contexts/SettingsContext.js +2 -3
  121. package/build/cjs/contexts/theme/ThemeContext.d.ts +2 -2
  122. package/build/cjs/contexts/theme/ThemeContext.js +3 -4
  123. package/build/cjs/contexts/theme/ThemeProvider.d.ts +4 -4
  124. package/build/cjs/contexts/theme/ThemeProvider.js +8 -9
  125. package/build/cjs/contexts/theme/ThemeValueContext.d.ts +1 -1
  126. package/build/cjs/contexts/theme/ThemeValueContext.js +2 -3
  127. package/build/cjs/contexts/theme/index.d.ts +6 -6
  128. package/build/cjs/contexts/theme/index.js +6 -7
  129. package/build/cjs/contexts/theme/useTheme.d.ts +1 -1
  130. package/build/cjs/contexts/theme/useTheme.js +5 -5
  131. package/build/cjs/contexts/theme/useThemeValue.d.ts +1 -1
  132. package/build/cjs/contexts/theme/useThemeValue.js +5 -5
  133. package/build/cjs/contexts/theme/withTheme.d.ts +2 -2
  134. package/build/cjs/contexts/theme/withTheme.js +6 -7
  135. package/build/cjs/contexts/theme/withThemeValue.d.ts +2 -2
  136. package/build/cjs/contexts/theme/withThemeValue.js +6 -7
  137. package/build/cjs/counters/metrika.js +3 -3
  138. package/build/cjs/counters/utils.js +1 -2
  139. package/build/cjs/hooks/useAriaAttributes.js +4 -6
  140. package/build/cjs/hooks/useExtendedComponentMap.d.ts +17 -18
  141. package/build/cjs/hooks/useExtendedComponentMap.js +4 -5
  142. package/build/cjs/hooks/useHover.d.ts +1 -1
  143. package/build/cjs/hooks/useHover.js +6 -6
  144. package/build/cjs/hooks/useIsIPhone.js +4 -6
  145. package/build/cjs/hooks/useLikes.d.ts +1 -1
  146. package/build/cjs/hooks/useLikes.js +6 -8
  147. package/build/cjs/hooks/useOpenCloseTimer.js +5 -6
  148. package/build/cjs/i18n/index.d.ts +1 -5
  149. package/build/cjs/i18n/index.js +2 -3
  150. package/build/cjs/icons/Close.d.ts +2 -2
  151. package/build/cjs/icons/Close.js +6 -5
  152. package/build/cjs/icons/DropdownArrow.d.ts +2 -2
  153. package/build/cjs/icons/DropdownArrow.js +6 -5
  154. package/build/cjs/icons/Save.d.ts +2 -2
  155. package/build/cjs/icons/Save.js +6 -5
  156. package/build/cjs/icons/SaveFilled.d.ts +2 -2
  157. package/build/cjs/icons/SaveFilled.js +6 -5
  158. package/build/cjs/icons/SearchIcon.d.ts +2 -2
  159. package/build/cjs/icons/SearchIcon.js +6 -5
  160. package/build/cjs/icons/ShareArrowUp.d.ts +2 -2
  161. package/build/cjs/icons/ShareArrowUp.js +6 -5
  162. package/build/cjs/icons/Time.d.ts +2 -2
  163. package/build/cjs/icons/Time.js +6 -5
  164. package/build/cjs/index.d.ts +8 -8
  165. package/build/cjs/index.js +8 -9
  166. package/build/cjs/models/blocks.d.ts +4 -4
  167. package/build/cjs/models/blocks.js +1 -2
  168. package/build/cjs/models/common.d.ts +3 -3
  169. package/build/cjs/models/common.js +5 -6
  170. package/build/cjs/models/locale.js +1 -2
  171. package/build/cjs/models/paddings.js +1 -2
  172. package/build/cjs/schema/blocks.d.ts +10 -10
  173. package/build/cjs/schema/blocks.js +10 -11
  174. package/build/cjs/schema/common.js +1 -2
  175. package/build/cjs/schema/headers.d.ts +1 -1
  176. package/build/cjs/schema/headers.js +1 -2
  177. package/build/cjs/schema/index.d.ts +2 -8
  178. package/build/cjs/schema/index.js +4 -5
  179. package/build/cjs/schema/utils.d.ts +1 -1
  180. package/build/cjs/schema/utils.js +1 -2
  181. package/build/cjs/utils/cn.js +1 -2
  182. package/build/cjs/utils/common.d.ts +19 -18
  183. package/build/cjs/utils/common.js +8 -9
  184. package/build/cjs/utils/date.js +1 -2
  185. package/build/cjs/utils/index.d.ts +1 -1
  186. package/build/cjs/utils/index.js +2 -3
  187. package/build/cjs/utils/svg.js +1 -2
  188. package/build/esm/blocks/Author/Author.d.ts +3 -2
  189. package/build/esm/blocks/Author/Author.js +13 -13
  190. package/build/esm/blocks/Author/schema.js +3 -4
  191. package/build/esm/blocks/Banner/Banner.d.ts +3 -2
  192. package/build/esm/blocks/Banner/Banner.js +15 -11
  193. package/build/esm/blocks/Banner/schema.js +3 -4
  194. package/build/esm/blocks/CTA/CTA.d.ts +3 -2
  195. package/build/esm/blocks/CTA/CTA.js +19 -19
  196. package/build/esm/blocks/CTA/schema.js +3 -4
  197. package/build/esm/blocks/ColoredText/ColoredText.d.ts +3 -2
  198. package/build/esm/blocks/ColoredText/ColoredText.js +12 -9
  199. package/build/esm/blocks/ColoredText/schema.js +3 -4
  200. package/build/esm/blocks/Feed/Feed.d.ts +3 -2
  201. package/build/esm/blocks/Feed/Feed.js +31 -31
  202. package/build/esm/blocks/Feed/reducer.d.ts +1 -1
  203. package/build/esm/blocks/Feed/reducer.js +1 -2
  204. package/build/esm/blocks/Feed/schema.js +2 -3
  205. package/build/esm/blocks/Form/Form.d.ts +3 -2
  206. package/build/esm/blocks/Form/Form.js +10 -10
  207. package/build/esm/blocks/Form/schema.js +3 -4
  208. package/build/esm/blocks/Header/Header.d.ts +3 -2
  209. package/build/esm/blocks/Header/Header.js +18 -18
  210. package/build/esm/blocks/Header/schema.d.ts +0 -3
  211. package/build/esm/blocks/Header/schema.js +3 -4
  212. package/build/esm/blocks/Layout/Layout.d.ts +3 -3
  213. package/build/esm/blocks/Layout/Layout.js +13 -12
  214. package/build/esm/blocks/Layout/schema.js +3 -4
  215. package/build/esm/blocks/Media/Media.d.ts +3 -2
  216. package/build/esm/blocks/Media/Media.js +15 -12
  217. package/build/esm/blocks/Media/schema.d.ts +0 -3
  218. package/build/esm/blocks/Media/schema.js +3 -4
  219. package/build/esm/blocks/Meta/Meta.d.ts +3 -2
  220. package/build/esm/blocks/Meta/Meta.js +23 -22
  221. package/build/esm/blocks/Meta/schema.js +3 -4
  222. package/build/esm/blocks/Suggest/Suggest.d.ts +3 -2
  223. package/build/esm/blocks/Suggest/Suggest.js +14 -15
  224. package/build/esm/blocks/Suggest/schema.js +3 -4
  225. package/build/esm/blocks/YFM/YFM.d.ts +3 -2
  226. package/build/esm/blocks/YFM/YFM.js +10 -10
  227. package/build/esm/blocks/YFM/schema.js +3 -4
  228. package/build/esm/blocks/constants.js +1 -2
  229. package/build/esm/components/FeedHeader/FeedHeader.d.ts +4 -3
  230. package/build/esm/components/FeedHeader/FeedHeader.js +13 -10
  231. package/build/esm/components/FeedHeader/components/Controls/Controls.d.ts +4 -4
  232. package/build/esm/components/FeedHeader/components/Controls/Controls.js +40 -30
  233. package/build/esm/components/FeedHeader/components/Controls/customRenders.d.ts +3 -2
  234. package/build/esm/components/FeedHeader/components/Controls/customRenders.js +8 -12
  235. package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +2 -2
  236. package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +5 -4
  237. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +1 -1
  238. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +3 -2
  239. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +17 -13
  240. package/build/esm/components/MetaWrapper/MetaWrapper.d.ts +1 -1
  241. package/build/esm/components/MetaWrapper/MetaWrapper.js +2 -3
  242. package/build/esm/components/Paginator/Paginator.d.ts +3 -2
  243. package/build/esm/components/Paginator/Paginator.js +29 -25
  244. package/build/esm/components/Paginator/components/NavigationButton.d.ts +3 -2
  245. package/build/esm/components/Paginator/components/NavigationButton.js +5 -6
  246. package/build/esm/components/Paginator/components/PaginatorItem.d.ts +3 -2
  247. package/build/esm/components/Paginator/components/PaginatorItem.js +11 -13
  248. package/build/esm/components/Paginator/types.d.ts +3 -3
  249. package/build/esm/components/Paginator/types.js +1 -2
  250. package/build/esm/components/Paginator/utils.d.ts +2 -2
  251. package/build/esm/components/Paginator/utils.js +1 -2
  252. package/build/esm/components/PostCard/PostCard.d.ts +3 -2
  253. package/build/esm/components/PostCard/PostCard.js +23 -16
  254. package/build/esm/components/PostInfo/PostInfo.d.ts +3 -2
  255. package/build/esm/components/PostInfo/PostInfo.js +15 -13
  256. package/build/esm/components/PostInfo/SuggestPostInfo.d.ts +3 -2
  257. package/build/esm/components/PostInfo/SuggestPostInfo.js +15 -12
  258. package/build/esm/components/PostInfo/components/Date.d.ts +3 -2
  259. package/build/esm/components/PostInfo/components/Date.js +8 -10
  260. package/build/esm/components/PostInfo/components/ReadingTime.d.ts +3 -2
  261. package/build/esm/components/PostInfo/components/ReadingTime.js +8 -6
  262. package/build/esm/components/PostInfo/components/Save.d.ts +3 -2
  263. package/build/esm/components/PostInfo/components/Save.js +16 -14
  264. package/build/esm/components/PostInfo/components/Sharing.d.ts +2 -1
  265. package/build/esm/components/PostInfo/components/Sharing.js +17 -17
  266. package/build/esm/components/Posts/Posts.d.ts +4 -4
  267. package/build/esm/components/Posts/Posts.js +26 -15
  268. package/build/esm/components/PostsEmpty/PostsEmpty.d.ts +2 -1
  269. package/build/esm/components/PostsEmpty/PostsEmpty.js +6 -5
  270. package/build/esm/components/PostsError/PostsError.d.ts +2 -1
  271. package/build/esm/components/PostsError/PostsError.js +9 -6
  272. package/build/esm/components/Prompt/Prompt.d.ts +2 -1
  273. package/build/esm/components/Prompt/Prompt.js +12 -10
  274. package/build/esm/components/PromptSignIn/PromptSignIn.d.ts +4 -4
  275. package/build/esm/components/PromptSignIn/PromptSignIn.js +5 -6
  276. package/build/esm/components/PromptSignIn/hooks/usePromptSignInProps.d.ts +2 -2
  277. package/build/esm/components/PromptSignIn/hooks/usePromptSignInProps.js +4 -5
  278. package/build/esm/components/Search/Search.d.ts +3 -2
  279. package/build/esm/components/Search/Search.js +17 -17
  280. package/build/esm/components/Wrapper/Wrapper.d.ts +3 -3
  281. package/build/esm/components/Wrapper/Wrapper.js +5 -6
  282. package/build/esm/constants.d.ts +2 -2
  283. package/build/esm/constants.js +2 -3
  284. package/build/esm/constructor/BlogConstructorProvider.d.ts +7 -7
  285. package/build/esm/constructor/BlogConstructorProvider.js +18 -20
  286. package/build/esm/constructor/blocksMap.d.ts +12 -12
  287. package/build/esm/constructor/blocksMap.js +14 -15
  288. package/build/esm/containers/BlogPage/BlogPage.d.ts +4 -4
  289. package/build/esm/containers/BlogPage/BlogPage.js +25 -22
  290. package/build/esm/containers/BlogPostPage/BlogPostPage.d.ts +4 -4
  291. package/build/esm/containers/BlogPostPage/BlogPostPage.js +30 -27
  292. package/build/esm/contexts/DeviceContext.d.ts +2 -2
  293. package/build/esm/contexts/DeviceContext.js +2 -3
  294. package/build/esm/contexts/FeedContext.d.ts +2 -2
  295. package/build/esm/contexts/FeedContext.js +2 -3
  296. package/build/esm/contexts/LikesContext.d.ts +2 -2
  297. package/build/esm/contexts/LikesContext.js +2 -3
  298. package/build/esm/contexts/LocaleContext.d.ts +2 -2
  299. package/build/esm/contexts/LocaleContext.js +2 -3
  300. package/build/esm/contexts/MobileContext.d.ts +1 -1
  301. package/build/esm/contexts/MobileContext.js +2 -3
  302. package/build/esm/contexts/PostPageContext.d.ts +2 -2
  303. package/build/esm/contexts/PostPageContext.js +2 -3
  304. package/build/esm/contexts/RouterContext.d.ts +2 -2
  305. package/build/esm/contexts/RouterContext.js +2 -3
  306. package/build/esm/contexts/SettingsContext.d.ts +1 -1
  307. package/build/esm/contexts/SettingsContext.js +2 -3
  308. package/build/esm/contexts/theme/ThemeContext.d.ts +2 -2
  309. package/build/esm/contexts/theme/ThemeContext.js +3 -4
  310. package/build/esm/contexts/theme/ThemeProvider.d.ts +4 -4
  311. package/build/esm/contexts/theme/ThemeProvider.js +7 -8
  312. package/build/esm/contexts/theme/ThemeValueContext.d.ts +1 -1
  313. package/build/esm/contexts/theme/ThemeValueContext.js +2 -3
  314. package/build/esm/contexts/theme/index.d.ts +6 -6
  315. package/build/esm/contexts/theme/index.js +6 -7
  316. package/build/esm/contexts/theme/useTheme.d.ts +1 -1
  317. package/build/esm/contexts/theme/useTheme.js +3 -4
  318. package/build/esm/contexts/theme/useThemeValue.d.ts +1 -1
  319. package/build/esm/contexts/theme/useThemeValue.js +3 -4
  320. package/build/esm/contexts/theme/withTheme.d.ts +2 -2
  321. package/build/esm/contexts/theme/withTheme.js +4 -6
  322. package/build/esm/contexts/theme/withThemeValue.d.ts +2 -2
  323. package/build/esm/contexts/theme/withThemeValue.js +4 -6
  324. package/build/esm/counters/metrika.js +1 -2
  325. package/build/esm/counters/utils.js +1 -2
  326. package/build/esm/hooks/useAriaAttributes.js +4 -5
  327. package/build/esm/hooks/useExtendedComponentMap.d.ts +17 -18
  328. package/build/esm/hooks/useExtendedComponentMap.js +3 -4
  329. package/build/esm/hooks/useHover.d.ts +1 -1
  330. package/build/esm/hooks/useHover.js +2 -3
  331. package/build/esm/hooks/useIsIPhone.js +4 -5
  332. package/build/esm/hooks/useLikes.d.ts +1 -1
  333. package/build/esm/hooks/useLikes.js +6 -7
  334. package/build/esm/hooks/useOpenCloseTimer.js +4 -5
  335. package/build/esm/i18n/index.d.ts +1 -5
  336. package/build/esm/i18n/index.js +1 -2
  337. package/build/esm/icons/Close.d.ts +2 -2
  338. package/build/esm/icons/Close.js +4 -4
  339. package/build/esm/icons/DropdownArrow.d.ts +2 -2
  340. package/build/esm/icons/DropdownArrow.js +4 -4
  341. package/build/esm/icons/Save.d.ts +2 -2
  342. package/build/esm/icons/Save.js +4 -4
  343. package/build/esm/icons/SaveFilled.d.ts +2 -2
  344. package/build/esm/icons/SaveFilled.js +4 -4
  345. package/build/esm/icons/SearchIcon.d.ts +2 -2
  346. package/build/esm/icons/SearchIcon.js +4 -4
  347. package/build/esm/icons/ShareArrowUp.d.ts +2 -2
  348. package/build/esm/icons/ShareArrowUp.js +4 -4
  349. package/build/esm/icons/Time.d.ts +2 -2
  350. package/build/esm/icons/Time.js +4 -4
  351. package/build/esm/index.d.ts +8 -8
  352. package/build/esm/index.js +8 -9
  353. package/build/esm/models/blocks.d.ts +4 -4
  354. package/build/esm/models/blocks.js +1 -2
  355. package/build/esm/models/common.d.ts +3 -3
  356. package/build/esm/models/common.js +1 -2
  357. package/build/esm/models/locale.js +1 -2
  358. package/build/esm/models/paddings.js +1 -2
  359. package/build/esm/schema/blocks.d.ts +10 -10
  360. package/build/esm/schema/blocks.js +10 -11
  361. package/build/esm/schema/common.js +1 -2
  362. package/build/esm/schema/headers.d.ts +1 -1
  363. package/build/esm/schema/headers.js +1 -2
  364. package/build/esm/schema/index.d.ts +2 -8
  365. package/build/esm/schema/index.js +4 -5
  366. package/build/esm/schema/utils.d.ts +1 -1
  367. package/build/esm/schema/utils.js +1 -2
  368. package/build/esm/utils/cn.js +1 -2
  369. package/build/esm/utils/common.d.ts +19 -18
  370. package/build/esm/utils/common.js +6 -7
  371. package/build/esm/utils/date.js +1 -2
  372. package/build/esm/utils/index.d.ts +1 -1
  373. package/build/esm/utils/index.js +1 -2
  374. package/build/esm/utils/svg.js +1 -2
  375. package/package.json +24 -37
  376. package/server/data/config.js +1 -1
  377. package/server/data/contentFilter.js +3 -5
  378. package/server/data/createReadableContent.js +1 -1
  379. package/server/data/sanitizeMeta.d.ts +5 -5
  380. package/server/data/sanitizeMeta.js +1 -1
  381. package/server/data/transformPageContent.js +3 -5
  382. package/server/data/transformPost.js +3 -13
  383. package/server/index.d.ts +4 -4
  384. package/server/models/blocks.d.ts +2 -2
  385. package/server/models/blocks.js +1 -1
  386. package/server/models/common.d.ts +2 -2
  387. package/server/models/common.js +5 -5
  388. package/server/models/locale.js +1 -1
  389. package/server/models/paddings.js +1 -1
  390. package/styles/storybook/common.scss +0 -7
  391. package/build/cjs/blocks/Author/Author.js.map +0 -1
  392. package/build/cjs/blocks/Author/schema.js.map +0 -1
  393. package/build/cjs/blocks/Banner/Banner.js.map +0 -1
  394. package/build/cjs/blocks/Banner/schema.js.map +0 -1
  395. package/build/cjs/blocks/CTA/CTA.js.map +0 -1
  396. package/build/cjs/blocks/CTA/schema.js.map +0 -1
  397. package/build/cjs/blocks/ColoredText/ColoredText.js.map +0 -1
  398. package/build/cjs/blocks/ColoredText/schema.js.map +0 -1
  399. package/build/cjs/blocks/Feed/Feed.js.map +0 -1
  400. package/build/cjs/blocks/Feed/reducer.js.map +0 -1
  401. package/build/cjs/blocks/Feed/schema.js.map +0 -1
  402. package/build/cjs/blocks/Form/Form.js.map +0 -1
  403. package/build/cjs/blocks/Form/schema.js.map +0 -1
  404. package/build/cjs/blocks/Header/Header.js.map +0 -1
  405. package/build/cjs/blocks/Header/schema.js.map +0 -1
  406. package/build/cjs/blocks/Layout/Layout.js.map +0 -1
  407. package/build/cjs/blocks/Layout/schema.js.map +0 -1
  408. package/build/cjs/blocks/Media/Media.js.map +0 -1
  409. package/build/cjs/blocks/Media/schema.js.map +0 -1
  410. package/build/cjs/blocks/Meta/Meta.js.map +0 -1
  411. package/build/cjs/blocks/Meta/schema.js.map +0 -1
  412. package/build/cjs/blocks/Suggest/Suggest.js.map +0 -1
  413. package/build/cjs/blocks/Suggest/schema.js.map +0 -1
  414. package/build/cjs/blocks/YFM/YFM.js.map +0 -1
  415. package/build/cjs/blocks/YFM/schema.js.map +0 -1
  416. package/build/cjs/blocks/constants.js.map +0 -1
  417. package/build/cjs/components/FeedHeader/FeedHeader.js.map +0 -1
  418. package/build/cjs/components/FeedHeader/components/Controls/Controls.js.map +0 -1
  419. package/build/cjs/components/FeedHeader/components/Controls/customRenders.js.map +0 -1
  420. package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js.map +0 -1
  421. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js.map +0 -1
  422. package/build/cjs/components/MetaWrapper/MetaWrapper.js.map +0 -1
  423. package/build/cjs/components/Paginator/Paginator.js.map +0 -1
  424. package/build/cjs/components/Paginator/components/NavigationButton.js.map +0 -1
  425. package/build/cjs/components/Paginator/components/PaginatorItem.js.map +0 -1
  426. package/build/cjs/components/Paginator/types.js.map +0 -1
  427. package/build/cjs/components/Paginator/utils.js.map +0 -1
  428. package/build/cjs/components/PostCard/PostCard.js.map +0 -1
  429. package/build/cjs/components/PostInfo/PostInfo.js.map +0 -1
  430. package/build/cjs/components/PostInfo/SuggestPostInfo.js.map +0 -1
  431. package/build/cjs/components/PostInfo/components/Date.js.map +0 -1
  432. package/build/cjs/components/PostInfo/components/ReadingTime.js.map +0 -1
  433. package/build/cjs/components/PostInfo/components/Save.js.map +0 -1
  434. package/build/cjs/components/PostInfo/components/Sharing.js.map +0 -1
  435. package/build/cjs/components/Posts/Posts.js.map +0 -1
  436. package/build/cjs/components/PostsEmpty/PostsEmpty.js.map +0 -1
  437. package/build/cjs/components/PostsError/PostsError.js.map +0 -1
  438. package/build/cjs/components/Prompt/Prompt.js.map +0 -1
  439. package/build/cjs/components/PromptSignIn/PromptSignIn.js.map +0 -1
  440. package/build/cjs/components/PromptSignIn/hooks/usePromptSignInProps.js.map +0 -1
  441. package/build/cjs/components/Search/Search.js.map +0 -1
  442. package/build/cjs/components/Wrapper/Wrapper.js.map +0 -1
  443. package/build/cjs/constants.js.map +0 -1
  444. package/build/cjs/constructor/BlogConstructorProvider.js.map +0 -1
  445. package/build/cjs/constructor/blocksMap.js.map +0 -1
  446. package/build/cjs/containers/BlogPage/BlogPage.js.map +0 -1
  447. package/build/cjs/containers/BlogPostPage/BlogPostPage.js.map +0 -1
  448. package/build/cjs/contexts/DeviceContext.js.map +0 -1
  449. package/build/cjs/contexts/FeedContext.js.map +0 -1
  450. package/build/cjs/contexts/LikesContext.js.map +0 -1
  451. package/build/cjs/contexts/LocaleContext.js.map +0 -1
  452. package/build/cjs/contexts/MobileContext.js.map +0 -1
  453. package/build/cjs/contexts/PostPageContext.js.map +0 -1
  454. package/build/cjs/contexts/RouterContext.js.map +0 -1
  455. package/build/cjs/contexts/SettingsContext.js.map +0 -1
  456. package/build/cjs/contexts/theme/ThemeContext.js.map +0 -1
  457. package/build/cjs/contexts/theme/ThemeProvider.js.map +0 -1
  458. package/build/cjs/contexts/theme/ThemeValueContext.js.map +0 -1
  459. package/build/cjs/contexts/theme/index.js.map +0 -1
  460. package/build/cjs/contexts/theme/useTheme.js.map +0 -1
  461. package/build/cjs/contexts/theme/useThemeValue.js.map +0 -1
  462. package/build/cjs/contexts/theme/withTheme.js.map +0 -1
  463. package/build/cjs/contexts/theme/withThemeValue.js.map +0 -1
  464. package/build/cjs/counters/metrika.js.map +0 -1
  465. package/build/cjs/counters/utils.js.map +0 -1
  466. package/build/cjs/hooks/useAriaAttributes.js.map +0 -1
  467. package/build/cjs/hooks/useExtendedComponentMap.js.map +0 -1
  468. package/build/cjs/hooks/useHover.js.map +0 -1
  469. package/build/cjs/hooks/useIsIPhone.js.map +0 -1
  470. package/build/cjs/hooks/useLikes.js.map +0 -1
  471. package/build/cjs/hooks/useOpenCloseTimer.js.map +0 -1
  472. package/build/cjs/i18n/index.js.map +0 -1
  473. package/build/cjs/icons/Close.js.map +0 -1
  474. package/build/cjs/icons/DropdownArrow.js.map +0 -1
  475. package/build/cjs/icons/Save.js.map +0 -1
  476. package/build/cjs/icons/SaveFilled.js.map +0 -1
  477. package/build/cjs/icons/SearchIcon.js.map +0 -1
  478. package/build/cjs/icons/ShareArrowUp.js.map +0 -1
  479. package/build/cjs/icons/Time.js.map +0 -1
  480. package/build/cjs/index.js.map +0 -1
  481. package/build/cjs/models/blocks.js.map +0 -1
  482. package/build/cjs/models/common.js.map +0 -1
  483. package/build/cjs/models/locale.js.map +0 -1
  484. package/build/cjs/models/paddings.js.map +0 -1
  485. package/build/cjs/package.json +0 -1
  486. package/build/cjs/schema/blocks.js.map +0 -1
  487. package/build/cjs/schema/common.js.map +0 -1
  488. package/build/cjs/schema/headers.js.map +0 -1
  489. package/build/cjs/schema/index.js.map +0 -1
  490. package/build/cjs/schema/utils.js.map +0 -1
  491. package/build/cjs/utils/cn.js.map +0 -1
  492. package/build/cjs/utils/common.js.map +0 -1
  493. package/build/cjs/utils/date.js.map +0 -1
  494. package/build/cjs/utils/index.js.map +0 -1
  495. package/build/cjs/utils/svg.js.map +0 -1
  496. package/build/esm/blocks/Author/Author.js.map +0 -1
  497. package/build/esm/blocks/Author/schema.js.map +0 -1
  498. package/build/esm/blocks/Banner/Banner.js.map +0 -1
  499. package/build/esm/blocks/Banner/schema.js.map +0 -1
  500. package/build/esm/blocks/CTA/CTA.js.map +0 -1
  501. package/build/esm/blocks/CTA/schema.js.map +0 -1
  502. package/build/esm/blocks/ColoredText/ColoredText.js.map +0 -1
  503. package/build/esm/blocks/ColoredText/schema.js.map +0 -1
  504. package/build/esm/blocks/Feed/Feed.js.map +0 -1
  505. package/build/esm/blocks/Feed/reducer.js.map +0 -1
  506. package/build/esm/blocks/Feed/schema.js.map +0 -1
  507. package/build/esm/blocks/Form/Form.js.map +0 -1
  508. package/build/esm/blocks/Form/schema.js.map +0 -1
  509. package/build/esm/blocks/Header/Header.js.map +0 -1
  510. package/build/esm/blocks/Header/schema.js.map +0 -1
  511. package/build/esm/blocks/Layout/Layout.js.map +0 -1
  512. package/build/esm/blocks/Layout/schema.js.map +0 -1
  513. package/build/esm/blocks/Media/Media.js.map +0 -1
  514. package/build/esm/blocks/Media/schema.js.map +0 -1
  515. package/build/esm/blocks/Meta/Meta.js.map +0 -1
  516. package/build/esm/blocks/Meta/schema.js.map +0 -1
  517. package/build/esm/blocks/Suggest/Suggest.js.map +0 -1
  518. package/build/esm/blocks/Suggest/schema.js.map +0 -1
  519. package/build/esm/blocks/YFM/YFM.js.map +0 -1
  520. package/build/esm/blocks/YFM/schema.js.map +0 -1
  521. package/build/esm/blocks/constants.js.map +0 -1
  522. package/build/esm/components/FeedHeader/FeedHeader.js.map +0 -1
  523. package/build/esm/components/FeedHeader/components/Controls/Controls.js.map +0 -1
  524. package/build/esm/components/FeedHeader/components/Controls/customRenders.js.map +0 -1
  525. package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js.map +0 -1
  526. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js.map +0 -1
  527. package/build/esm/components/MetaWrapper/MetaWrapper.js.map +0 -1
  528. package/build/esm/components/Paginator/Paginator.js.map +0 -1
  529. package/build/esm/components/Paginator/components/NavigationButton.js.map +0 -1
  530. package/build/esm/components/Paginator/components/PaginatorItem.js.map +0 -1
  531. package/build/esm/components/Paginator/types.js.map +0 -1
  532. package/build/esm/components/Paginator/utils.js.map +0 -1
  533. package/build/esm/components/PostCard/PostCard.js.map +0 -1
  534. package/build/esm/components/PostInfo/PostInfo.js.map +0 -1
  535. package/build/esm/components/PostInfo/SuggestPostInfo.js.map +0 -1
  536. package/build/esm/components/PostInfo/components/Date.js.map +0 -1
  537. package/build/esm/components/PostInfo/components/ReadingTime.js.map +0 -1
  538. package/build/esm/components/PostInfo/components/Save.js.map +0 -1
  539. package/build/esm/components/PostInfo/components/Sharing.js.map +0 -1
  540. package/build/esm/components/Posts/Posts.js.map +0 -1
  541. package/build/esm/components/PostsEmpty/PostsEmpty.js.map +0 -1
  542. package/build/esm/components/PostsError/PostsError.js.map +0 -1
  543. package/build/esm/components/Prompt/Prompt.js.map +0 -1
  544. package/build/esm/components/PromptSignIn/PromptSignIn.js.map +0 -1
  545. package/build/esm/components/PromptSignIn/hooks/usePromptSignInProps.js.map +0 -1
  546. package/build/esm/components/Search/Search.js.map +0 -1
  547. package/build/esm/components/Wrapper/Wrapper.js.map +0 -1
  548. package/build/esm/constants.js.map +0 -1
  549. package/build/esm/constructor/BlogConstructorProvider.js.map +0 -1
  550. package/build/esm/constructor/blocksMap.js.map +0 -1
  551. package/build/esm/containers/BlogPage/BlogPage.js.map +0 -1
  552. package/build/esm/containers/BlogPostPage/BlogPostPage.js.map +0 -1
  553. package/build/esm/contexts/DeviceContext.js.map +0 -1
  554. package/build/esm/contexts/FeedContext.js.map +0 -1
  555. package/build/esm/contexts/LikesContext.js.map +0 -1
  556. package/build/esm/contexts/LocaleContext.js.map +0 -1
  557. package/build/esm/contexts/MobileContext.js.map +0 -1
  558. package/build/esm/contexts/PostPageContext.js.map +0 -1
  559. package/build/esm/contexts/RouterContext.js.map +0 -1
  560. package/build/esm/contexts/SettingsContext.js.map +0 -1
  561. package/build/esm/contexts/theme/ThemeContext.js.map +0 -1
  562. package/build/esm/contexts/theme/ThemeProvider.js.map +0 -1
  563. package/build/esm/contexts/theme/ThemeValueContext.js.map +0 -1
  564. package/build/esm/contexts/theme/index.js.map +0 -1
  565. package/build/esm/contexts/theme/useTheme.js.map +0 -1
  566. package/build/esm/contexts/theme/useThemeValue.js.map +0 -1
  567. package/build/esm/contexts/theme/withTheme.js.map +0 -1
  568. package/build/esm/contexts/theme/withThemeValue.js.map +0 -1
  569. package/build/esm/counters/metrika.js.map +0 -1
  570. package/build/esm/counters/utils.js.map +0 -1
  571. package/build/esm/hooks/useAriaAttributes.js.map +0 -1
  572. package/build/esm/hooks/useExtendedComponentMap.js.map +0 -1
  573. package/build/esm/hooks/useHover.js.map +0 -1
  574. package/build/esm/hooks/useIsIPhone.js.map +0 -1
  575. package/build/esm/hooks/useLikes.js.map +0 -1
  576. package/build/esm/hooks/useOpenCloseTimer.js.map +0 -1
  577. package/build/esm/i18n/index.js.map +0 -1
  578. package/build/esm/icons/Close.js.map +0 -1
  579. package/build/esm/icons/DropdownArrow.js.map +0 -1
  580. package/build/esm/icons/Save.js.map +0 -1
  581. package/build/esm/icons/SaveFilled.js.map +0 -1
  582. package/build/esm/icons/SearchIcon.js.map +0 -1
  583. package/build/esm/icons/ShareArrowUp.js.map +0 -1
  584. package/build/esm/icons/Time.js.map +0 -1
  585. package/build/esm/index.js.map +0 -1
  586. package/build/esm/models/blocks.js.map +0 -1
  587. package/build/esm/models/common.js.map +0 -1
  588. package/build/esm/models/locale.js.map +0 -1
  589. package/build/esm/models/paddings.js.map +0 -1
  590. package/build/esm/package.json +0 -1
  591. package/build/esm/schema/blocks.js.map +0 -1
  592. package/build/esm/schema/common.js.map +0 -1
  593. package/build/esm/schema/headers.js.map +0 -1
  594. package/build/esm/schema/index.js.map +0 -1
  595. package/build/esm/schema/utils.js.map +0 -1
  596. package/build/esm/utils/cn.js.map +0 -1
  597. package/build/esm/utils/common.js.map +0 -1
  598. package/build/esm/utils/date.js.map +0 -1
  599. package/build/esm/utils/index.js.map +0 -1
  600. package/build/esm/utils/svg.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ import { useCallback, useEffect, useState } from 'react';
2
2
  export const useLikes = ({ hasLike, count, toggleLikeCallback, postId }) => {
3
- const [hasUserLike, setHasUserLike] = React.useState(hasLike !== null && hasLike !== void 0 ? hasLike : false);
4
- const [likesCount, setLikesCount] = React.useState(count !== null && count !== void 0 ? count : 0);
5
- const handleLike = React.useCallback(() => {
3
+ const [hasUserLike, setHasUserLike] = useState(hasLike !== null && hasLike !== void 0 ? hasLike : false);
4
+ const [likesCount, setLikesCount] = useState(count !== null && count !== void 0 ? count : 0);
5
+ const handleLike = useCallback(() => {
6
6
  let newLikesCount = likesCount;
7
7
  if (hasUserLike && likesCount > 0) {
8
8
  newLikesCount--;
@@ -19,7 +19,7 @@ export const useLikes = ({ hasLike, count, toggleLikeCallback, postId }) => {
19
19
  });
20
20
  }
21
21
  }, [hasUserLike, likesCount, postId, toggleLikeCallback]);
22
- React.useEffect(() => {
22
+ useEffect(() => {
23
23
  setHasUserLike(hasLike !== null && hasLike !== void 0 ? hasLike : false);
24
24
  setLikesCount(count !== null && count !== void 0 ? count : 0);
25
25
  }, [hasLike, count]);
@@ -28,5 +28,4 @@ export const useLikes = ({ hasLike, count, toggleLikeCallback, postId }) => {
28
28
  hasUserLike,
29
29
  handleLike,
30
30
  };
31
- };
32
- //# sourceMappingURL=useLikes.js.map
31
+ };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { useEffect, useState } from 'react';
2
2
  /**
3
3
  * Timer to automatically update `open` state after a given duration
4
4
  * @param {number} openTimestamp - UNIX timestamp in milliseconds
@@ -7,8 +7,8 @@ import * as React from 'react';
7
7
  */
8
8
  export function useOpenCloseTimer(openTimestamp = Date.now(), openDuration = 4000) {
9
9
  const open = Date.now() - openTimestamp < openDuration;
10
- const [, reset] = React.useState(0); // time to reset `open` state
11
- React.useEffect(() => {
10
+ const [, reset] = useState(0); // time to reset `open` state
11
+ useEffect(() => {
12
12
  const closeTime = openTimestamp + openDuration;
13
13
  const delay = closeTime - Date.now();
14
14
  if (delay <= 0) {
@@ -23,5 +23,4 @@ export function useOpenCloseTimer(openTimestamp = Date.now(), openDuration = 400
23
23
  };
24
24
  }, [openTimestamp, openDuration]);
25
25
  return { open };
26
- }
27
- //# sourceMappingURL=useOpenCloseTimer.js.map
26
+ }
@@ -21,8 +21,4 @@ export declare enum Keyset {
21
21
  Save = "save",
22
22
  ClearAction = "clear_action"
23
23
  }
24
- export declare const i18n: ((key: Keyset, params?: import("@gravity-ui/i18n").Params) => string) & {
25
- keysetData: {
26
- blog: Record<Keyset, import("@gravity-ui/i18n").KeyData>;
27
- };
28
- };
24
+ export declare const i18n: (key: Keyset, params?: import("@gravity-ui/i18n").Params | undefined) => string;
@@ -78,5 +78,4 @@ const ru = {
78
78
  [Keyset.Save]: 'Сохранить',
79
79
  [Keyset.ClearAction]: 'Очистить',
80
80
  };
81
- export const i18n = addComponentKeysets({ en, ru }, NAMESPACE);
82
- //# sourceMappingURL=index.js.map
81
+ export const i18n = addComponentKeysets({ en, ru }, NAMESPACE);
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const Close: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const Close: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const Close = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { d: "M10 0.7L9.3 0L5 4.3L0.7 0L0 0.7L4.3 5L0 9.3L0.7 10L5 5.7L9.3 10L10 9.3L5.7 5L10 0.7Z", fill: "currentColor" }) })));
4
- //# sourceMappingURL=Close.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const Close = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { d: "M10 0.7L9.3 0L5 4.3L0.7 0L0 0.7L4.3 5L0 9.3L0.7 10L5 5.7L9.3 10L10 9.3L5.7 5L10 0.7Z", fill: "currentColor" })));
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const DropdownArrow: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const DropdownArrow: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const DropdownArrow = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { d: "M3.50172 5.44253C3.19384 5.16544 2.71962 5.19039 2.44253 5.49828C2.16544 5.80616 2.19039 6.28038 2.49828 6.55747L3.50172 5.44253ZM8 10.5L7.49828 11.0575C7.7835 11.3142 8.2165 11.3142 8.50172 11.0575L8 10.5ZM13.5017 6.55747C13.8096 6.28038 13.8346 5.80616 13.5575 5.49828C13.2804 5.19039 12.8062 5.16544 12.4983 5.44253L13.5017 6.55747ZM2.49828 6.55747L7.49828 11.0575L8.50172 9.94253L3.50172 5.44253L2.49828 6.55747ZM8.50172 11.0575L13.5017 6.55747L12.4983 5.44253L7.49828 9.94253L8.50172 11.0575Z" }) })));
4
- //# sourceMappingURL=DropdownArrow.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const DropdownArrow = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { d: "M3.50172 5.44253C3.19384 5.16544 2.71962 5.19039 2.44253 5.49828C2.16544 5.80616 2.19039 6.28038 2.49828 6.55747L3.50172 5.44253ZM8 10.5L7.49828 11.0575C7.7835 11.3142 8.2165 11.3142 8.50172 11.0575L8 10.5ZM13.5017 6.55747C13.8096 6.28038 13.8346 5.80616 13.5575 5.49828C13.2804 5.19039 12.8062 5.16544 12.4983 5.44253L13.5017 6.55747ZM2.49828 6.55747L7.49828 11.0575L8.50172 9.94253L3.50172 5.44253L2.49828 6.55747ZM8.50172 11.0575L13.5017 6.55747L12.4983 5.44253L7.49828 9.94253L8.50172 11.0575Z" })));
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const Save: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const Save: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const Save = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 3H3v9.6l3.445-2.94.028-.022a2.624 2.624 0 0 1 3.054 0l.028.021L13 12.6V3Zm1.357-1.614A1.593 1.593 0 0 1 15 2.655v10.547c0 .678-.416 1.218-.841 1.499-.417.275-1.24.517-1.898-.103L8.32 11.234a.64.64 0 0 0-.64 0l-3.942 3.364c-.58.546-1.348.461-1.838.18a1.808 1.808 0 0 1-.9-1.576V2.786C1 2.055 1.515 1 2.667 1H13.2c.405 0 .822.13 1.157.386Z" }) })));
4
- //# sourceMappingURL=Save.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const Save = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 3H3v9.6l3.445-2.94.028-.022a2.624 2.624 0 0 1 3.054 0l.028.021L13 12.6V3Zm1.357-1.614A1.593 1.593 0 0 1 15 2.655v10.547c0 .678-.416 1.218-.841 1.499-.417.275-1.24.517-1.898-.103L8.32 11.234a.64.64 0 0 0-.64 0l-3.942 3.364c-.58.546-1.348.461-1.838.18a1.808 1.808 0 0 1-.9-1.576V2.786C1 2.055 1.515 1 2.667 1H13.2c.405 0 .822.13 1.157.386Z" })));
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const SaveFilled: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const SaveFilled: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const SaveFilled = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.357 1.386A1.593 1.593 0 0 1 15 2.655v10.547c0 .678-.416 1.218-.841 1.499-.417.275-1.24.517-1.898-.103L8.32 11.234a.64.64 0 0 0-.64 0l-3.942 3.364c-.58.546-1.348.461-1.838.18a1.808 1.808 0 0 1-.9-1.576V2.786C1 2.055 1.515 1 2.667 1H13.2c.405 0 .822.13 1.157.386Z" }) })));
4
- //# sourceMappingURL=SaveFilled.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const SaveFilled = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.357 1.386A1.593 1.593 0 0 1 15 2.655v10.547c0 .678-.416 1.218-.841 1.499-.417.275-1.24.517-1.898-.103L8.32 11.234a.64.64 0 0 0-.64 0l-3.942 3.364c-.58.546-1.348.461-1.838.18a1.808 1.808 0 0 1-.9-1.576V2.786C1 2.055 1.515 1 2.667 1H13.2c.405 0 .822.13 1.157.386Z" })));
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const SearchIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const SearchIcon: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const SearchIcon = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, a11yHiddenSvgProps, props, { children: _jsx("path", { d: "M9.532 9.539A5 5 0 1 0 2.468 2.46a5 5 0 0 0 7.064 7.08zm0 0L15 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", vectorEffect: "non-scaling-stroke" }) })));
4
- //# sourceMappingURL=SearchIcon.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const SearchIcon = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { d: "M9.532 9.539A5 5 0 1 0 2.468 2.46a5 5 0 0 0 7.064 7.08zm0 0L15 15", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", vectorEffect: "non-scaling-stroke" })));
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const ShareArrowUp: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const ShareArrowUp: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const ShareArrowUp = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.798 3.16a.5.5 0 0 0 .363.842H7V9a1 1 0 0 0 2 0V4.002h1.839a.5.5 0 0 0 .363-.844L8.363.156a.5.5 0 0 0-.726 0l-2.84 3.002.001.001ZM13 7a1 1 0 0 1 2 0v6.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 13.5V7a1 1 0 0 1 2 0v6h10V7Z" }) })));
4
- //# sourceMappingURL=ShareArrowUp.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const ShareArrowUp = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.798 3.16a.5.5 0 0 0 .363.842H7V9a1 1 0 0 0 2 0V4.002h1.839a.5.5 0 0 0 .363-.844L8.363.156a.5.5 0 0 0-.726 0l-2.84 3.002.001.001ZM13 7a1 1 0 0 1 2 0v6.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 13.5V7a1 1 0 0 1 2 0v6h10V7Z" })));
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare const Time: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export declare const Time: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { a11yHiddenSvgProps } from "../utils/svg.js";
3
- export const Time = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "17", viewBox: "0 0 16 17", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 16.004a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm0-2a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm3.357-3.736a1 1 0 0 0-.342-1.372L9 7.688V5.004a1 1 0 0 0-2 0v3.25a1 1 0 0 0 .486.857l2.5 1.5a1 1 0 0 0 1.371-.343Z" }) })));
4
- //# sourceMappingURL=Time.js.map
1
+ import React from 'react';
2
+ import { a11yHiddenSvgProps } from '../utils/svg';
3
+ export const Time = (props) => (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "17", viewBox: "0 0 16 17", fill: "currentColor" }, a11yHiddenSvgProps, props),
4
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 16.004a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm0-2a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm3.357-3.736a1 1 0 0 0-.342-1.372L9 7.688V5.004a1 1 0 0 0-2 0v3.25a1 1 0 0 0 .486.857l2.5 1.5a1 1 0 0 0 1.371-.343Z" })));
@@ -1,8 +1,8 @@
1
- export { BlogConstructorProvider } from "./constructor/BlogConstructorProvider.js";
2
- export { BlogPostPage } from "./containers/BlogPostPage/BlogPostPage.js";
3
- export { BlogPage } from "./containers/BlogPage/BlogPage.js";
4
- export * from "./models/common.js";
5
- export * from "./models/locale.js";
6
- export * from "./schema/index.js";
7
- export { BREAKPOINTS } from "./constants.js";
8
- export * from "./utils/index.js";
1
+ export { BlogConstructorProvider } from './constructor/BlogConstructorProvider';
2
+ export { BlogPostPage } from './containers/BlogPostPage/BlogPostPage';
3
+ export { BlogPage } from './containers/BlogPage/BlogPage';
4
+ export * from './models/common';
5
+ export * from './models/locale';
6
+ export * from './schema';
7
+ export { BREAKPOINTS } from './constants';
8
+ export * from './utils';
@@ -1,9 +1,8 @@
1
- export { BlogConstructorProvider } from "./constructor/BlogConstructorProvider.js";
2
- export { BlogPostPage } from "./containers/BlogPostPage/BlogPostPage.js";
3
- export { BlogPage } from "./containers/BlogPage/BlogPage.js";
4
- export * from "./models/common.js";
5
- export * from "./models/locale.js";
6
- export * from "./schema/index.js";
7
- export { BREAKPOINTS } from "./constants.js";
8
- export * from "./utils/index.js";
9
- //# sourceMappingURL=index.js.map
1
+ export { BlogConstructorProvider } from './constructor/BlogConstructorProvider';
2
+ export { BlogPostPage } from './containers/BlogPostPage/BlogPostPage';
3
+ export { BlogPage } from './containers/BlogPage/BlogPage';
4
+ export * from './models/common';
5
+ export * from './models/locale';
6
+ export * from './schema';
7
+ export { BREAKPOINTS } from './constants';
8
+ export * from './utils';
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ import { ReactElement } from 'react';
2
2
  import { ContentBlockProps, FormBlockData, HeaderBlockProps, MediaProps as PCMediaProps, TextTheme } from '@gravity-ui/page-constructor';
3
- import { BlockType, ClassNameProps, PostData, QAProps } from "./common.js";
4
- import { PaddingsYFMProps } from "./paddings.js";
3
+ import { BlockType, ClassNameProps, PostData, QAProps } from './common';
4
+ import { PaddingsYFMProps } from './paddings';
5
5
  export type AuthorProps = ClassNameProps & {
6
6
  authorId: number | string;
7
7
  image: string;
@@ -25,7 +25,7 @@ export type HeaderProps = HeaderBlockProps & PaddingsYFMProps;
25
25
  export type LayoutProps = {
26
26
  fullWidth?: boolean;
27
27
  mobileOrder?: string;
28
- children: React.ReactElement[];
28
+ children: ReactElement[];
29
29
  } & PaddingsYFMProps;
30
30
  export type MediaProps = ClassNameProps & PaddingsYFMProps & Partial<Pick<PCMediaProps, 'youtube' | 'previewImg' | 'image' | 'video' | 'dataLens'>> & {
31
31
  text?: string;
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=blocks.js.map
1
+ export {};
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { MarkdownItPluginCb } from '@diplodoc/transform/lib/plugins/typings';
3
3
  import { HeaderBlockProps as PageConstructorHeaderBlockProps } from '@gravity-ui/page-constructor';
4
4
  import { IBrowser, IDevice } from 'ua-parser-js';
5
- import { Locale } from "./locale.js";
5
+ import { Locale } from '../models/locale';
6
6
  export declare enum Theme {
7
7
  Light = "light",
8
8
  Dark = "dark"
@@ -136,7 +136,7 @@ export type ToggleLikeCallbackType = ({ postId, hasLike, }: {
136
136
  export interface HeaderBlockProps extends PageConstructorHeaderBlockProps {
137
137
  backLink?: {
138
138
  url: string;
139
- title: React.ReactNode;
139
+ title: ReactNode;
140
140
  };
141
141
  }
142
142
  export type GetPostsRequest = {
@@ -39,5 +39,4 @@ export var PostCardTitleHeadingLevel;
39
39
  (function (PostCardTitleHeadingLevel) {
40
40
  PostCardTitleHeadingLevel["H2"] = "h2";
41
41
  PostCardTitleHeadingLevel["H3"] = "h3";
42
- })(PostCardTitleHeadingLevel || (PostCardTitleHeadingLevel = {}));
43
- //# sourceMappingURL=common.js.map
42
+ })(PostCardTitleHeadingLevel || (PostCardTitleHeadingLevel = {}));
@@ -3,5 +3,4 @@ export var Currency;
3
3
  Currency["RUB"] = "RUB";
4
4
  Currency["USD"] = "USD";
5
5
  Currency["KZT"] = "KZT";
6
- })(Currency || (Currency = {}));
7
- //# sourceMappingURL=locale.js.map
6
+ })(Currency || (Currency = {}));
@@ -4,5 +4,4 @@ export var PaddingsDirections;
4
4
  PaddingsDirections["bottom"] = "bottom";
5
5
  PaddingsDirections["left"] = "left";
6
6
  PaddingsDirections["right"] = "right";
7
- })(PaddingsDirections || (PaddingsDirections = {}));
8
- //# sourceMappingURL=paddings.js.map
7
+ })(PaddingsDirections || (PaddingsDirections = {}));
@@ -1,10 +1,10 @@
1
- export * from "../blocks/Author/schema.js";
2
- export * from "../blocks/Banner/schema.js";
3
- export * from "../blocks/ColoredText/schema.js";
4
- export * from "../blocks/CTA/schema.js";
5
- export * from "../blocks/Feed/schema.js";
6
- export * from "../blocks/Layout/schema.js";
7
- export * from "../blocks/Media/schema.js";
8
- export * from "../blocks/Meta/schema.js";
9
- export * from "../blocks/Suggest/schema.js";
10
- export * from "../blocks/YFM/schema.js";
1
+ export * from '../blocks/Author/schema';
2
+ export * from '../blocks/Banner/schema';
3
+ export * from '../blocks/ColoredText/schema';
4
+ export * from '../blocks/CTA/schema';
5
+ export * from '../blocks/Feed/schema';
6
+ export * from '../blocks/Layout/schema';
7
+ export * from '../blocks/Media/schema';
8
+ export * from '../blocks/Meta/schema';
9
+ export * from '../blocks/Suggest/schema';
10
+ export * from '../blocks/YFM/schema';
@@ -1,11 +1,10 @@
1
- export * from "../blocks/Author/schema.js";
2
- export * from "../blocks/Banner/schema.js";
3
- export * from "../blocks/ColoredText/schema.js";
4
- export * from "../blocks/CTA/schema.js";
5
- export * from "../blocks/Feed/schema.js";
6
- export * from "../blocks/Layout/schema.js";
7
- export * from "../blocks/Media/schema.js";
8
- export * from "../blocks/Meta/schema.js";
9
- export * from "../blocks/Suggest/schema.js";
10
- export * from "../blocks/YFM/schema.js";
11
- //# sourceMappingURL=blocks.js.map
1
+ export * from '../blocks/Author/schema';
2
+ export * from '../blocks/Banner/schema';
3
+ export * from '../blocks/ColoredText/schema';
4
+ export * from '../blocks/CTA/schema';
5
+ export * from '../blocks/Feed/schema';
6
+ export * from '../blocks/Layout/schema';
7
+ export * from '../blocks/Media/schema';
8
+ export * from '../blocks/Meta/schema';
9
+ export * from '../blocks/Suggest/schema';
10
+ export * from '../blocks/YFM/schema';
@@ -21,5 +21,4 @@ export const BlogBlockBase = {
21
21
  qa: {
22
22
  type: 'string',
23
23
  },
24
- };
25
- //# sourceMappingURL=common.js.map
24
+ };
@@ -1 +1 @@
1
- export * from "../blocks/Header/schema.js";
1
+ export * from '../blocks/Header/schema';
@@ -1,2 +1 @@
1
- export * from "../blocks/Header/schema.js";
2
- //# sourceMappingURL=headers.js.map
1
+ export * from '../blocks/Header/schema';
@@ -1,5 +1,5 @@
1
- import * as blocks from "./blocks.js";
2
- import * as headers from "./headers.js";
1
+ import * as blocks from './blocks';
2
+ import * as headers from './headers';
3
3
  export declare const validators: {
4
4
  blocks: typeof blocks;
5
5
  headers: typeof headers;
@@ -381,9 +381,6 @@ export declare const schemasForCustom: {
381
381
  videoIframe: {
382
382
  type: string;
383
383
  };
384
- autoplay: {
385
- type: string;
386
- };
387
384
  parallax: {
388
385
  type: string;
389
386
  };
@@ -1575,9 +1572,6 @@ export declare const schemasForCustom: {
1575
1572
  videoIframe: {
1576
1573
  type: string;
1577
1574
  };
1578
- autoplay: {
1579
- type: string;
1580
- };
1581
1575
  parallax: {
1582
1576
  type: string;
1583
1577
  };
@@ -1,6 +1,6 @@
1
- import { BlockType } from "../models/common.js";
2
- import * as blocks from "./blocks.js";
3
- import * as headers from "./headers.js";
1
+ import { BlockType } from '../models/common';
2
+ import * as blocks from './blocks';
3
+ import * as headers from './headers';
4
4
  const { Author, Banner, ColoredText, CTA, Feed, Layout, Media, Meta, Suggest, YFM } = blocks;
5
5
  const { Header } = headers;
6
6
  export const validators = {
@@ -23,5 +23,4 @@ export const schemasForCustom = {
23
23
  [BlockType.Suggest]: Suggest,
24
24
  [BlockType.YFM]: YFM,
25
25
  },
26
- };
27
- //# sourceMappingURL=index.js.map
26
+ };
@@ -1,4 +1,4 @@
1
- import { BlockType } from "../models/common.js";
1
+ import { BlockType } from '../models/common';
2
2
  type BlockConfig = {
3
3
  [x in BlockType]: Object;
4
4
  };
@@ -2,5 +2,4 @@ export const generateConfig = (config) => {
2
2
  return Object.keys(config).reduce((acc, blockKey) => (Object.assign(Object.assign({}, acc), { blockKey: {
3
3
  blockKey: config[blockKey],
4
4
  } })), {});
5
- };
6
- //# sourceMappingURL=utils.js.map
5
+ };
@@ -1,5 +1,4 @@
1
1
  import { withNaming } from '@bem-react/classname';
2
2
  export const NAMESPACE = 'bc-';
3
3
  export const cn = withNaming({ e: '__', m: '_' });
4
- export const block = withNaming({ n: NAMESPACE, e: '__', m: '_' });
5
- //# sourceMappingURL=cn.js.map
4
+ export const block = withNaming({ n: NAMESPACE, e: '__', m: '_' });
@@ -1,7 +1,8 @@
1
+ /// <reference types="lodash" />
1
2
  import { AnalyticsEvent, AnalyticsEventsProp, ContentBlockProps, HeaderBreadCrumbsProps } from '@gravity-ui/page-constructor';
2
- import { RouterContextProps } from "../contexts/RouterContext.js";
3
- import { GetPostsRequest, Query, Tag } from "../models/common.js";
4
- import { AnalyticsCounter } from "../counters/utils.js";
3
+ import { RouterContextProps } from '../contexts/RouterContext';
4
+ import { GetPostsRequest, Query, Tag } from '../models/common';
5
+ import { AnalyticsCounter } from '../counters/utils';
5
6
  export interface QueryParam {
6
7
  name: string;
7
8
  value?: string | number | null;
@@ -22,29 +23,29 @@ export declare const updateContentSizes: ({ size, colSizes, theme, ...contentDat
22
23
  md: number;
23
24
  } | Partial<Record<import("@gravity-ui/page-constructor").GridColumnSize, number>>;
24
25
  theme: import("@gravity-ui/page-constructor").ContentTheme;
25
- title?: import("@gravity-ui/page-constructor").TitleItemBaseProps | string;
26
- titleId?: string;
27
- text?: string;
28
- textId?: string;
29
- additionalInfo?: string;
30
- links?: import("@gravity-ui/page-constructor").LinkProps[];
31
- buttons?: import("@gravity-ui/page-constructor").ButtonProps[];
32
- centered?: boolean;
33
- list?: import("@gravity-ui/page-constructor").ContentItemProps[];
34
- controlPosition?: "default" | "bottom";
26
+ title?: string | import("@gravity-ui/page-constructor").TitleItemBaseProps | undefined;
27
+ titleId?: string | undefined;
28
+ text?: string | undefined;
29
+ textId?: string | undefined;
30
+ additionalInfo?: string | undefined;
31
+ links?: import("@gravity-ui/page-constructor").LinkProps[] | undefined;
32
+ buttons?: import("@gravity-ui/page-constructor").ButtonProps[] | undefined;
33
+ centered?: boolean | undefined;
34
+ list?: import("@gravity-ui/page-constructor").ContentItemProps[] | undefined;
35
+ controlPosition?: "default" | "bottom" | undefined;
35
36
  };
36
37
  type GetBreadcrumbsProps = {
37
38
  tags?: Tag[];
38
39
  blogPath: string;
39
40
  };
40
41
  export declare const getBlogPath: (pathPrefix: string) => string;
41
- export declare const getBreadcrumbs: ({ tags, blogPath }: GetBreadcrumbsProps) => HeaderBreadCrumbsProps;
42
+ export declare function getBreadcrumbs({ tags, blogPath }: GetBreadcrumbsProps): HeaderBreadCrumbsProps;
42
43
  export declare const getMergedAnalyticsEvents: (analyticEvents: AnalyticsEventsProp, existringEvents?: AnalyticsEventsProp) => {
43
44
  name: string;
44
- type?: string;
45
- counters?: import("@gravity-ui/page-constructor").AnalyticsCounters;
46
- context?: string;
47
- target?: string;
45
+ type?: string | undefined;
46
+ counters?: import("@gravity-ui/page-constructor").AnalyticsCounters | undefined;
47
+ context?: string | undefined;
48
+ target?: string | undefined;
48
49
  }[];
49
50
  export declare const getFeedQueryParams: (queryString: Query, pageNumber?: number) => GetPostsRequest;
50
51
  export declare const scrollOnPageChange: (containerId: string) => void;
@@ -4,9 +4,9 @@ import camelCase from 'lodash/camelCase';
4
4
  import debounce from 'lodash/debounce';
5
5
  import flatten from 'lodash/flatten';
6
6
  import memoize from 'lodash/memoize';
7
- import { CONTENT_DEFAULT_COL_SIZES, CONTENT_DEFAULT_SIZE, CONTENT_DEFAULT_THEME, DEFAULT_PAGE, DEFAULT_ROWS_PER_PAGE, } from "../blocks/constants.js";
8
- import { Keyset, i18n } from "../i18n/index.js";
9
- import { AnalyticsCounter } from "../counters/utils.js";
7
+ import { CONTENT_DEFAULT_COL_SIZES, CONTENT_DEFAULT_SIZE, CONTENT_DEFAULT_THEME, DEFAULT_PAGE, DEFAULT_ROWS_PER_PAGE, } from '../blocks/constants';
8
+ import { Keyset, i18n } from '../i18n';
9
+ import { AnalyticsCounter } from '../counters/utils';
10
10
  const QA_ATTRIBUTES_KEYS = ['container', 'content', 'wrapper', 'image', 'button'];
11
11
  export function getAbsolutePath(router, url) {
12
12
  if (!router || !router.pathname) {
@@ -52,7 +52,7 @@ export const getBlogPath = (pathPrefix) => {
52
52
  const prefix = pathPrefix ? `/${pathPrefix}` : '';
53
53
  return `${prefix}/blog`;
54
54
  };
55
- export const getBreadcrumbs = ({ tags, blogPath }) => {
55
+ export function getBreadcrumbs({ tags, blogPath }) {
56
56
  const breadcrumbs = {
57
57
  items: [{ text: i18n(Keyset.TitleBreadcrumbs), url: blogPath }],
58
58
  theme: 'light',
@@ -64,7 +64,7 @@ export const getBreadcrumbs = ({ tags, blogPath }) => {
64
64
  breadcrumbs.items.push({ text: tag.name, url: tag.url });
65
65
  }
66
66
  return breadcrumbs;
67
- };
67
+ }
68
68
  const getArrayOfEvents = (events) => {
69
69
  if (!events) {
70
70
  return [];
@@ -110,5 +110,4 @@ export const getQaAttributes = (qa, ...customKeys) => {
110
110
  };
111
111
  export const prepareAnalyticsEvent = ({ name, counter = AnalyticsCounter.Main, options = {}, }) => (Object.assign(Object.assign({}, options), { name, counters: {
112
112
  include: [counter],
113
- } }));
114
- //# sourceMappingURL=common.js.map
113
+ } }));
@@ -52,5 +52,4 @@ function getDateTimeFormatter(localeCode) {
52
52
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- formatter will be always inserted above
53
53
  return dateTimeFormatters.get(localeCode);
54
54
  }
55
- export const format = (date, formatCode, localeCode = defaultRegion) => getDateTimeFormatter(localeCode)[formatCode].format(new Date(date));
56
- //# sourceMappingURL=date.js.map
55
+ export const format = (date, formatCode, localeCode = defaultRegion) => getDateTimeFormatter(localeCode)[formatCode].format(new Date(date));
@@ -1 +1 @@
1
- export { getBreadcrumbs } from "./common.js";
1
+ export { getBreadcrumbs } from './common';
@@ -1,2 +1 @@
1
- export { getBreadcrumbs } from "./common.js";
2
- //# sourceMappingURL=index.js.map
1
+ export { getBreadcrumbs } from './common';
@@ -1,5 +1,4 @@
1
1
  export const a11yHiddenSvgProps = {
2
2
  // Hides element from a11y tree
3
3
  'aria-hidden': true,
4
- };
5
- //# sourceMappingURL=svg.js.map
4
+ };