@redneckz/wildless-cms-uni-blocks 0.15.338 → 0.15.340

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 (609) hide show
  1. package/bin/migration-scripts/0.14.213.js +1 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +199 -135
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  6. package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  7. package/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  8. package/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  9. package/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  10. package/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  11. package/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  12. package/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  13. package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  14. package/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
  15. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  16. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  17. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  18. package/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  19. package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  20. package/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  21. package/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  22. package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
  23. package/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
  24. package/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
  25. package/bundle/content-page-repository/copy.d.ts +1 -0
  26. package/bundle/data/FooterData.d.ts +0 -1
  27. package/bundle/data/SitemapData.d.ts +1 -10
  28. package/bundle/icons/IconName.d.ts +4 -2
  29. package/bundle/model/Fallback.d.ts +0 -1
  30. package/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  31. package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  32. package/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
  33. package/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
  34. package/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  35. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  36. package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  37. package/bundle/utils/getVersion.d.ts +1 -0
  38. package/cosmos-static/icons/MapMarkerClusterYellowIcon.svg +1 -0
  39. package/cosmos-static/icons/sprites.svg +1 -0
  40. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  41. package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  42. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  43. package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  44. package/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  45. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  46. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
  47. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  48. package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  49. package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  50. package/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  51. package/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
  52. package/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  53. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  54. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
  55. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  56. package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  57. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  58. package/dist/components/ContentPage/ContentPage.js +1 -1
  59. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  60. package/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
  61. package/dist/components/ContentPage/computeAPIFallback.js +2 -16
  62. package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  63. package/dist/components/Footer/Footer.js +2 -9
  64. package/dist/components/Footer/Footer.js.map +1 -1
  65. package/dist/components/Footer/Footer.mobile.js +1 -9
  66. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  67. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  68. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  69. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  70. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  71. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  72. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  73. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  74. package/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
  75. package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  76. package/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  77. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  78. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
  79. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  80. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  81. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  82. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  83. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
  84. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  85. package/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  86. package/dist/components/OfficesAtmsMap/useOffices.js +4 -2
  87. package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  88. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  89. package/dist/components/ProductGallery/ProductGallery.js +12 -5
  90. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  91. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  92. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  93. package/dist/components/TabsLayout/TabsLayout.js +17 -11
  94. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  95. package/dist/components/TabsLayout/renderTabsLayout.js +14 -12
  96. package/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
  97. package/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
  98. package/dist/content-page-repository/ContentPageRepository.js +27 -5
  99. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  100. package/dist/content-page-repository/TransformationOptions.d.ts +1 -0
  101. package/dist/content-page-repository/copy.d.ts +1 -0
  102. package/dist/content-page-repository/copy.js +16 -0
  103. package/dist/content-page-repository/copy.js.map +1 -0
  104. package/dist/content-page-repository/transformAttachmentLink.js +8 -7
  105. package/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
  106. package/dist/content-page-repository/transformDocument.js +3 -5
  107. package/dist/content-page-repository/transformDocument.js.map +1 -1
  108. package/dist/content-page-repository/transformImg.js +4 -1
  109. package/dist/content-page-repository/transformImg.js.map +1 -1
  110. package/dist/data/FooterData.d.ts +0 -1
  111. package/dist/data/SitemapData.d.ts +1 -10
  112. package/dist/icons/IconName.d.ts +4 -2
  113. package/dist/icons/IconName.js +3 -1
  114. package/dist/icons/IconName.js.map +1 -1
  115. package/dist/model/Fallback.d.ts +0 -1
  116. package/dist/ui-kit/Badge/Badge.js +1 -3
  117. package/dist/ui-kit/Badge/Badge.js.map +1 -1
  118. package/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  119. package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  120. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  121. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  122. package/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  123. package/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
  124. package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  125. package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  126. package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  127. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  128. package/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
  129. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  130. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  131. package/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
  132. package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  133. package/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  134. package/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
  135. package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  136. package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  137. package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
  138. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  139. package/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  140. package/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
  141. package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  142. package/dist/utils/getVersion.d.ts +1 -0
  143. package/dist/utils/getVersion.js +5 -0
  144. package/dist/utils/getVersion.js.map +1 -0
  145. package/lib/common.css +1 -1
  146. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  147. package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  148. package/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
  149. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  150. package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  151. package/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  152. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  153. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
  154. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  155. package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  156. package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  157. package/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  158. package/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
  159. package/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  160. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  161. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
  162. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  163. package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  164. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  165. package/lib/components/ContentPage/ContentPage.js +1 -1
  166. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  167. package/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
  168. package/lib/components/ContentPage/computeAPIFallback.js +2 -16
  169. package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  170. package/lib/components/Footer/Footer.js +2 -9
  171. package/lib/components/Footer/Footer.js.map +1 -1
  172. package/lib/components/Footer/Footer.mobile.js +1 -9
  173. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  174. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  175. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  176. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  177. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  178. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  179. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  180. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  181. package/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
  182. package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  183. package/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  184. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +2 -0
  185. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
  186. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  187. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  188. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  189. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +6 -0
  190. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
  191. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  192. package/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  193. package/lib/components/OfficesAtmsMap/useOffices.js +4 -2
  194. package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  195. package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
  196. package/lib/components/ProductGallery/ProductGallery.js +12 -5
  197. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  198. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  199. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  200. package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +4 -3
  201. package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +4 -2
  202. package/lib/components/TabsLayout/TabsLayout.js +17 -11
  203. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  204. package/lib/components/TabsLayout/renderTabsLayout.js +14 -12
  205. package/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
  206. package/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
  207. package/lib/content-page-repository/ContentPageRepository.js +26 -4
  208. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  209. package/lib/content-page-repository/TransformationOptions.d.ts +1 -0
  210. package/lib/content-page-repository/copy.d.ts +1 -0
  211. package/lib/content-page-repository/copy.js +10 -0
  212. package/lib/content-page-repository/copy.js.map +1 -0
  213. package/lib/content-page-repository/transformAttachmentLink.js +8 -7
  214. package/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
  215. package/lib/content-page-repository/transformDocument.js +3 -5
  216. package/lib/content-page-repository/transformDocument.js.map +1 -1
  217. package/lib/content-page-repository/transformImg.js +4 -1
  218. package/lib/content-page-repository/transformImg.js.map +1 -1
  219. package/lib/data/FooterData.d.ts +0 -1
  220. package/lib/data/SitemapData.d.ts +1 -10
  221. package/lib/icons/IconName.d.ts +4 -2
  222. package/lib/icons/IconName.js +3 -1
  223. package/lib/icons/IconName.js.map +1 -1
  224. package/lib/model/Fallback.d.ts +0 -1
  225. package/lib/ui-kit/Badge/Badge.js +1 -3
  226. package/lib/ui-kit/Badge/Badge.js.map +1 -1
  227. package/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  228. package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  229. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  230. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  231. package/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  232. package/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
  233. package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  234. package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  235. package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  236. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  237. package/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
  238. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  239. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  240. package/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
  241. package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  242. package/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  243. package/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
  244. package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  245. package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  246. package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  247. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  248. package/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  249. package/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
  250. package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  251. package/lib/utils/getVersion.d.ts +1 -0
  252. package/lib/utils/getVersion.js +2 -0
  253. package/lib/utils/getVersion.js.map +1 -0
  254. package/mobile/bundle/bundle.umd.js +194 -128
  255. package/mobile/bundle/bundle.umd.min.js +1 -1
  256. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  257. package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  258. package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  259. package/mobile/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  260. package/mobile/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  261. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  262. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  263. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  264. package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  265. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
  266. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  267. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  268. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  269. package/mobile/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  270. package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  271. package/mobile/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  272. package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  273. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
  274. package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
  275. package/mobile/bundle/content-page-repository/copy.d.ts +1 -0
  276. package/mobile/bundle/data/FooterData.d.ts +0 -1
  277. package/mobile/bundle/data/SitemapData.d.ts +1 -10
  278. package/mobile/bundle/icons/IconName.d.ts +4 -2
  279. package/mobile/bundle/model/Fallback.d.ts +0 -1
  280. package/mobile/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  281. package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  282. package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
  283. package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
  284. package/mobile/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  285. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  286. package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  287. package/mobile/bundle/utils/getVersion.d.ts +1 -0
  288. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  289. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  290. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  291. package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  292. package/mobile/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  293. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  294. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
  295. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  296. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  297. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  298. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  299. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
  300. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  301. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  302. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
  303. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  304. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  305. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  306. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  307. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  308. package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
  309. package/mobile/dist/components/ContentPage/computeAPIFallback.js +2 -16
  310. package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  311. package/mobile/dist/components/Footer/Footer.js +1 -9
  312. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  313. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  314. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  315. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  316. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  317. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  318. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  319. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  320. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
  321. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  322. package/mobile/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  323. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  324. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
  325. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  326. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  327. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  328. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  329. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
  330. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  331. package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  332. package/mobile/dist/components/OfficesAtmsMap/useOffices.js +4 -2
  333. package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  334. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  335. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  336. package/mobile/dist/components/TabsLayout/TabsLayout.js +17 -11
  337. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  338. package/mobile/dist/components/TabsLayout/renderTabsLayout.js +14 -12
  339. package/mobile/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
  340. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
  341. package/mobile/dist/content-page-repository/ContentPageRepository.js +27 -5
  342. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  343. package/mobile/dist/content-page-repository/TransformationOptions.d.ts +1 -0
  344. package/mobile/dist/content-page-repository/copy.d.ts +1 -0
  345. package/mobile/dist/content-page-repository/copy.js +16 -0
  346. package/mobile/dist/content-page-repository/copy.js.map +1 -0
  347. package/mobile/dist/content-page-repository/transformAttachmentLink.js +8 -7
  348. package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
  349. package/mobile/dist/content-page-repository/transformDocument.js +3 -5
  350. package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
  351. package/mobile/dist/content-page-repository/transformImg.js +4 -1
  352. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  353. package/mobile/dist/data/FooterData.d.ts +0 -1
  354. package/mobile/dist/data/SitemapData.d.ts +1 -10
  355. package/mobile/dist/icons/IconName.d.ts +4 -2
  356. package/mobile/dist/icons/IconName.js +3 -1
  357. package/mobile/dist/icons/IconName.js.map +1 -1
  358. package/mobile/dist/model/Fallback.d.ts +0 -1
  359. package/mobile/dist/ui-kit/Badge/Badge.js +1 -3
  360. package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -1
  361. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  362. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  363. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  364. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  365. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  366. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
  367. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  368. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  369. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  370. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  371. package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
  372. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  373. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  374. package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
  375. package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  376. package/mobile/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  377. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
  378. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  379. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  380. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
  381. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  382. package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  383. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
  384. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  385. package/mobile/dist/utils/getVersion.d.ts +1 -0
  386. package/mobile/dist/utils/getVersion.js +5 -0
  387. package/mobile/dist/utils/getVersion.js.map +1 -0
  388. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  389. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  390. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
  391. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  392. package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  393. package/mobile/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  394. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  395. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
  396. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  397. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  398. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  399. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  400. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
  401. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  402. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  403. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
  404. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  405. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  406. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  407. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  408. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  409. package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
  410. package/mobile/lib/components/ContentPage/computeAPIFallback.js +2 -16
  411. package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  412. package/mobile/lib/components/Footer/Footer.js +1 -9
  413. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  414. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  415. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  416. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  417. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  418. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  419. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  420. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  421. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
  422. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  423. package/mobile/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  424. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  425. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
  426. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  427. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  428. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  429. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  430. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
  431. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  432. package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  433. package/mobile/lib/components/OfficesAtmsMap/useOffices.js +4 -2
  434. package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  435. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  436. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  437. package/mobile/lib/components/TabsLayout/TabsLayout.js +17 -11
  438. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  439. package/mobile/lib/components/TabsLayout/renderTabsLayout.js +14 -12
  440. package/mobile/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
  441. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
  442. package/mobile/lib/content-page-repository/ContentPageRepository.js +26 -4
  443. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  444. package/mobile/lib/content-page-repository/TransformationOptions.d.ts +1 -0
  445. package/mobile/lib/content-page-repository/copy.d.ts +1 -0
  446. package/mobile/lib/content-page-repository/copy.js +10 -0
  447. package/mobile/lib/content-page-repository/copy.js.map +1 -0
  448. package/mobile/lib/content-page-repository/transformAttachmentLink.js +8 -7
  449. package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
  450. package/mobile/lib/content-page-repository/transformDocument.js +3 -5
  451. package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
  452. package/mobile/lib/content-page-repository/transformImg.js +4 -1
  453. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  454. package/mobile/lib/data/FooterData.d.ts +0 -1
  455. package/mobile/lib/data/SitemapData.d.ts +1 -10
  456. package/mobile/lib/icons/IconName.d.ts +4 -2
  457. package/mobile/lib/icons/IconName.js +3 -1
  458. package/mobile/lib/icons/IconName.js.map +1 -1
  459. package/mobile/lib/model/Fallback.d.ts +0 -1
  460. package/mobile/lib/ui-kit/Badge/Badge.js +1 -3
  461. package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -1
  462. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  463. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  464. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  465. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  466. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  467. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
  468. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  469. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  470. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  471. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  472. package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
  473. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  474. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  475. package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
  476. package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  477. package/mobile/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  478. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
  479. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  480. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  481. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  482. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  483. package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  484. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
  485. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  486. package/mobile/lib/utils/getVersion.d.ts +1 -0
  487. package/mobile/lib/utils/getVersion.js +2 -0
  488. package/mobile/lib/utils/getVersion.js.map +1 -0
  489. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
  490. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
  491. package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
  492. package/mobile/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
  493. package/mobile/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
  494. package/mobile/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
  495. package/mobile/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
  496. package/mobile/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
  497. package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
  498. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  499. package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
  500. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -0
  501. package/mobile/src/components/ContentPage/computeAPIFallback.ts +3 -35
  502. package/mobile/src/components/Footer/Footer.tsx +0 -16
  503. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  504. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
  505. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
  506. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
  507. package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
  508. package/mobile/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
  509. package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
  510. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
  511. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
  512. package/mobile/src/components/OfficesAtmsMap/useOffices.ts +11 -4
  513. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
  514. package/mobile/src/components/TabsLayout/TabsLayout.tsx +21 -11
  515. package/mobile/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
  516. package/mobile/src/content-page-repository/ContentPageRepository.ts +36 -4
  517. package/mobile/src/content-page-repository/TransformationOptions.ts +1 -0
  518. package/mobile/src/content-page-repository/copy.ts +11 -0
  519. package/mobile/src/content-page-repository/transformAttachmentLink.ts +7 -8
  520. package/mobile/src/content-page-repository/transformDocument.ts +3 -5
  521. package/mobile/src/content-page-repository/transformImg.ts +6 -1
  522. package/mobile/src/data/FooterData.ts +0 -1
  523. package/mobile/src/data/SitemapData.ts +1 -11
  524. package/mobile/src/icons/IconName.ts +5 -5
  525. package/mobile/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
  526. package/mobile/src/model/Fallback.ts +0 -1
  527. package/mobile/src/ui-kit/Badge/Badge.tsx +13 -15
  528. package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
  529. package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  530. package/mobile/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
  531. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
  532. package/mobile/src/ui-kit/Heading/HeadingProps.ts +1 -3
  533. package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
  534. package/mobile/src/ui-kit/TabsControl/TabItem.tsx +1 -2
  535. package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
  536. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
  537. package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
  538. package/mobile/src/utils/getVersion.ts +1 -0
  539. package/package.json +1 -1
  540. package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
  541. package/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
  542. package/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
  543. package/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
  544. package/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
  545. package/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
  546. package/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
  547. package/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
  548. package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
  549. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  550. package/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
  551. package/src/components/ContentPage/ContentPage.tsx +1 -0
  552. package/src/components/ContentPage/computeAPIFallback.ts +3 -35
  553. package/src/components/Footer/Footer.mobile.tsx +0 -16
  554. package/src/components/Footer/Footer.tsx +0 -19
  555. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  556. package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
  557. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
  558. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
  559. package/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
  560. package/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
  561. package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
  562. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
  563. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
  564. package/src/components/OfficesAtmsMap/useOffices.ts +11 -4
  565. package/src/components/ProductGallery/ProductGallery.tsx +37 -7
  566. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
  567. package/src/components/TabsLayout/TabsLayout.fixture.mobile.tsx +70 -24
  568. package/src/components/TabsLayout/TabsLayout.fixture.tsx +33 -29
  569. package/src/components/TabsLayout/TabsLayout.tsx +21 -11
  570. package/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
  571. package/src/content-page-repository/ContentPageRepository.ts +36 -4
  572. package/src/content-page-repository/TransformationOptions.ts +1 -0
  573. package/src/content-page-repository/copy.ts +11 -0
  574. package/src/content-page-repository/transformAttachmentLink.ts +7 -8
  575. package/src/content-page-repository/transformDocument.ts +3 -5
  576. package/src/content-page-repository/transformImg.ts +6 -1
  577. package/src/data/FooterData.ts +0 -1
  578. package/src/data/SitemapData.ts +1 -11
  579. package/src/icons/IconName.ts +5 -5
  580. package/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
  581. package/src/model/Fallback.ts +0 -1
  582. package/src/ui-kit/Badge/Badge.tsx +13 -15
  583. package/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
  584. package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  585. package/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
  586. package/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
  587. package/src/ui-kit/Heading/HeadingProps.ts +1 -3
  588. package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
  589. package/src/ui-kit/TabsControl/TabItem.tsx +1 -2
  590. package/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
  591. package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
  592. package/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
  593. package/src/utils/getVersion.ts +1 -0
  594. package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
  595. package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
  596. package/dist/components/ContentPage/loadModuleFallback.js +0 -36
  597. package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
  598. package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
  599. package/lib/components/ContentPage/loadModuleFallback.js +0 -10
  600. package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
  601. package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
  602. package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
  603. package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
  604. package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
  605. package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
  606. package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
  607. package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
  608. package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
  609. package/src/components/ContentPage/loadModuleFallback.ts +0 -11
@@ -1,21 +1,30 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
1
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
2
  import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
4
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { ScrollLeftButton, ScrollRightButton } from '../../ui-kit/LinkButton/ArrowButton';
5
+ import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
6
+ import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
7
+ import { UniBlock } from '../../UniBlock/UniBlock';
5
8
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
6
9
  import { style } from '../../utils/style';
7
10
  import { type ProductGalleryContent, type ProductSlide } from './ProductGalleryContent';
8
11
 
9
12
  export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
10
13
 
11
- export const ProductGallery = JSX<ProductGalleryProps>(
14
+ const scrollButtonStyle = 'hidden sm:flex absolute z-40 top-10';
15
+
16
+ export const ProductGallery = UniBlock<ProductGalleryProps>(
12
17
  ({ className = '', padding, slides = [], ...rest }) => {
13
18
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
14
19
 
20
+ const [containerRef, scroll] = useSwipeListScroll<HTMLDivElement>({
21
+ itemCount: slides?.length || 0,
22
+ });
23
+
15
24
  return (
16
25
  <BlockWrapper
17
26
  className={style('box-border overflow-hidden', className)}
18
- defaultPadding="py-6xl"
27
+ defaultPadding="pt-6xl"
19
28
  padding={padding}
20
29
  {...rest}
21
30
  >
@@ -36,8 +45,29 @@ export const ProductGallery = JSX<ProductGalleryProps>(
36
45
  </div>
37
46
  ))}
38
47
  </div>
39
- <div className="h-28 px-xs mt-m -mb-m flex gap-xs box-border">
40
- {slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex }))}
48
+
49
+ <div className="relative pr-xs mt-m -mb-m flex gap-xs box-border">
50
+ <SwipeListContainer
51
+ containerRef={containerRef}
52
+ snapAlign="snap-start"
53
+ onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
54
+ itemClassName={'h-40 flex items-stretch w-screen'}
55
+ gap={8}
56
+ >
57
+ {slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex }))}
58
+ </SwipeListContainer>
59
+ {scroll.canScrollLeft ? (
60
+ <ScrollLeftButton
61
+ className={style('left-6', scrollButtonStyle)}
62
+ onClick={scroll.scrollLeft}
63
+ />
64
+ ) : null}
65
+ {scroll.canScrollRight ? (
66
+ <ScrollRightButton
67
+ className={style('right-6', scrollButtonStyle)}
68
+ onClick={scroll.scrollRight}
69
+ />
70
+ ) : null}
41
71
  </div>
42
72
  </BlockWrapper>
43
73
  );
@@ -55,7 +85,7 @@ const renderNavButton =
55
85
  const isActive = i === activeSlideIndex;
56
86
  const btnClassName = isActive
57
87
  ? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
58
- : 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:py-xl backdrop-blur';
88
+ : 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur';
59
89
  const btnTitleClassName = isActive
60
90
  ? 'text-primary-text text-h6 py-xs'
61
91
  : 'text-l pb-2xs text-secondary-text group-data-secondary:text-white';
@@ -70,7 +100,7 @@ const renderNavButton =
70
100
  onClick={() => onClick(i)}
71
101
  aria-label={nav?.title}
72
102
  className={style(
73
- 'relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50',
103
+ 'max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap',
74
104
  btnClassName,
75
105
  )}
76
106
  >
@@ -3,6 +3,7 @@ import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type JSONRefObject } from '../../data/JSONRefObject';
4
4
  import { type SitemapData } from '../../data/SitemapData';
5
5
  import { type StickyMenuItem } from '../../data/StickyMobileData';
6
+ import { useLocation } from '../../hooks/useLocation';
6
7
  import { Heading } from '../../ui-kit/Heading/Heading';
7
8
  import { useLocationDialog } from '../../ui-kit/LocationDialog/useLocationDialog';
8
9
  import { StickyBottomMenuDialog } from './StickyBottomMenuDialog';
@@ -19,6 +20,7 @@ export interface BurgerMenuDialogProps {
19
20
  export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
20
21
  ({ menuRef, menuItem, locationDialogProps, closeAll }) => {
21
22
  const locationDialog = useLocationDialog(locationDialogProps || {});
23
+ const [{ name: location }] = useLocation();
22
24
  const menuDimensions = menuRef?.current?.getBoundingClientRect();
23
25
 
24
26
  const handleIframeLoad = useCallback(() => {
@@ -28,9 +30,15 @@ export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
28
30
  ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
29
31
 
30
32
  const [, basePath] = globalThis?.location?.pathname?.split('/') || [];
31
- iframeWindow.postMessage(basePath, '*');
33
+ iframeWindow.postMessage({ type: 'currentTab', data: basePath }, '*');
34
+ iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
32
35
  }, []);
33
36
 
37
+ useEffect(() => {
38
+ const iframeWindow: Window = globalThis.frames['burger-menu-iframe'];
39
+ iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
40
+ }, [location]);
41
+
34
42
  useEffect(() => {
35
43
  const onMessage = (e: MessageEvent<any>) => {
36
44
  if (e.data.type === 'location') {
@@ -9,8 +9,40 @@ const options: BlockRendererOptions = {
9
9
  };
10
10
 
11
11
  const TABS: Tab[] = [
12
- { text: 'Первый таб', description: 'Описание первого таба', type: 'group' },
13
- { text: 'Второй таб', description: 'Описание второго таба', type: 'group' },
12
+ {
13
+ type: 'group',
14
+ description: 'Описание первого таб группа',
15
+ text: 'Первый таб',
16
+ selected: false,
17
+ },
18
+ {
19
+ type: 'group',
20
+ description: 'Описание первого таб группа',
21
+ text: 'Второй таб',
22
+ selected: false,
23
+ },
24
+ {
25
+ type: 'group',
26
+ description: 'Описание первого таб группа',
27
+ text: 'Третий таб и с очень длинным текстом',
28
+ selected: false,
29
+ },
30
+ ];
31
+ const TabsWithIcon: Tab[] = [
32
+ {
33
+ type: 'group',
34
+ description: 'Описание первого таба',
35
+ text: 'Первый таб',
36
+ selected: false,
37
+ icon: { icon: 'CalendarIcon' },
38
+ },
39
+ {
40
+ type: 'group',
41
+ description: 'Описание второго таба',
42
+ text: 'Второй таб',
43
+ selected: false,
44
+ icon: { icon: 'BankIcon' },
45
+ },
14
46
  ];
15
47
 
16
48
  const TEXT_BLOCK_DESCRIPTION = {
@@ -22,52 +54,66 @@ const TEXT_BLOCK_DESCRIPTION = {
22
54
  style: ['col-span-12'],
23
55
  };
24
56
 
57
+ const slots = {
58
+ 'Первый таб': [TEXT_BLOCK_DESCRIPTION],
59
+ 'Второй таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
60
+ 'Третий таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
61
+ };
62
+
25
63
  export default {
26
64
  default: (
27
65
  <div className="container grid grid-cols-12">
28
66
  <TabsLayout
29
67
  className="col-span-12"
30
68
  tabs={TABS}
69
+ tabsType="default"
31
70
  options={options}
71
+ block={{ slots }}
72
+ />
73
+ </div>
74
+ ),
75
+ animated: (
76
+ <div className="container grid grid-cols-12">
77
+ <TabsLayout
78
+ className="col-span-12"
79
+ tabs={TABS}
32
80
  tabsType="animated"
33
- block={{
34
- slots: {
35
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION],
36
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
37
- },
38
- }}
81
+ options={options}
82
+ block={{ slots }}
39
83
  />
40
84
  </div>
41
85
  ),
42
- wide: (
86
+ underlined: (
43
87
  <div className="container grid grid-cols-12">
44
88
  <TabsLayout
45
89
  className="col-span-12"
46
90
  tabs={TABS}
91
+ tabsType="underlined"
47
92
  options={options}
48
- tabsType="default"
49
- block={{
50
- slots: {
51
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
52
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
53
- },
54
- }}
93
+ block={{ slots }}
94
+ />
95
+ </div>
96
+ ),
97
+ animatedIcons: (
98
+ <div className="container grid grid-cols-12">
99
+ <TabsLayout
100
+ className="col-span-12"
101
+ tabs={TabsWithIcon}
102
+ tabsType="animated"
103
+ options={options}
104
+ block={{ slots }}
55
105
  />
56
106
  </div>
57
107
  ),
58
- scrollable: (
108
+ defaultCounter: (
59
109
  <div className="container grid grid-cols-12">
60
110
  <TabsLayout
61
111
  className="col-span-12"
62
112
  tabs={TABS}
113
+ tabsType="default"
63
114
  options={options}
64
- tabsType="underlined"
65
- block={{
66
- slots: {
67
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
68
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
69
- },
70
- }}
115
+ block={{ slots }}
116
+ showCounter={true}
71
117
  />
72
118
  </div>
73
119
  ),
@@ -21,6 +21,12 @@ const TABS: Tab[] = [
21
21
  text: 'Второй таб',
22
22
  selected: false,
23
23
  },
24
+ {
25
+ type: 'group',
26
+ description: 'Описание первого таб группа',
27
+ text: 'Третий таб и с очень длинным текстом и так далее и тому подобное',
28
+ selected: false,
29
+ },
24
30
  ];
25
31
  const TabsWithIcon: Tab[] = [
26
32
  {
@@ -48,68 +54,66 @@ const TEXT_BLOCK_DESCRIPTION = {
48
54
  style: ['col-span-12'],
49
55
  };
50
56
 
57
+ const slots = {
58
+ 'Первый таб': [TEXT_BLOCK_DESCRIPTION],
59
+ 'Второй таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
60
+ 'Третий таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
61
+ };
62
+
51
63
  export default {
52
64
  default: (
53
65
  <div className="container grid grid-cols-12">
54
66
  <TabsLayout
55
67
  className="col-span-12"
56
68
  tabs={TABS}
57
- tabsType="animated"
69
+ tabsType="default"
58
70
  options={options}
59
- block={{
60
- slots: {
61
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
62
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
63
- },
64
- }}
71
+ block={{ slots }}
65
72
  />
66
73
  </div>
67
74
  ),
68
- wide: (
75
+ animated: (
69
76
  <div className="container grid grid-cols-12">
70
77
  <TabsLayout
71
78
  className="col-span-12"
72
79
  tabs={TABS}
73
- tabsType="default"
80
+ tabsType="animated"
74
81
  options={options}
75
- block={{
76
- slots: {
77
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
78
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
79
- },
80
- }}
82
+ block={{ slots }}
81
83
  />
82
84
  </div>
83
85
  ),
84
- scrollable: (
86
+ underlined: (
85
87
  <div className="container grid grid-cols-12">
86
88
  <TabsLayout
87
89
  className="col-span-12"
88
90
  tabs={TABS}
89
91
  tabsType="underlined"
90
92
  options={options}
91
- block={{
92
- slots: {
93
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
94
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
95
- },
96
- }}
93
+ block={{ slots }}
97
94
  />
98
95
  </div>
99
96
  ),
100
- icons: (
97
+ animatedIcons: (
101
98
  <div className="container grid grid-cols-12">
102
99
  <TabsLayout
103
100
  className="col-span-12"
104
101
  tabs={TabsWithIcon}
105
102
  tabsType="animated"
106
103
  options={options}
107
- block={{
108
- slots: {
109
- 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
110
- 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
111
- },
112
- }}
104
+ block={{ slots }}
105
+ />
106
+ </div>
107
+ ),
108
+ defaultCounter: (
109
+ <div className="container grid grid-cols-12">
110
+ <TabsLayout
111
+ className="col-span-12"
112
+ tabs={TABS}
113
+ tabsType="default"
114
+ options={options}
115
+ block={{ slots }}
116
+ showCounter={true}
113
117
  />
114
118
  </div>
115
119
  ),
@@ -11,20 +11,30 @@ import { type Tab, type TabsLayoutContent } from './TabsLayoutContent';
11
11
 
12
12
  const TAB_QUERY_PARAM_KEY = 'tab';
13
13
 
14
+ type TabCountedProps = Tab & {
15
+ count?: number;
16
+ };
14
17
  export interface TabsLayoutProps extends TabsLayoutContent, UniBlockProps {}
15
18
 
16
19
  export const TabsLayout = UniBlock<TabsLayoutProps>(
17
- ({ className = '', tabs = [], block, tabsType, ...rest }) => {
20
+ ({ className = '', tabs = [], block, tabsType, showCounter = false, ...rest }) => {
18
21
  const router = useRouter();
19
22
 
20
- const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabs));
23
+ const tabsCounted: TabCountedProps[] = showCounter
24
+ ? tabs.map((_) => ({
25
+ ..._,
26
+ count: block?.slots?.[_?.text ?? '']?.length ?? 0,
27
+ }))
28
+ : tabs;
21
29
 
22
- const defaultSelectedTab = tabs.findIndex((_) => Boolean(_.selected));
30
+ const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabsCounted));
31
+
32
+ const defaultSelectedTab = tabsCounted.findIndex((_) => Boolean(_.selected));
23
33
 
24
34
  useEffect(() => {
25
- const query = new URLSearchParams(globalThis?.location?.search || '');
35
+ const query = new URLSearchParams(globalThis?.location?.search);
26
36
  const defaultTabIndex = query.get(TAB_QUERY_PARAM_KEY)
27
- ? tabs.findIndex(
37
+ ? tabsCounted.findIndex(
28
38
  (_, index) => _.type === 'group' && String(index) === query.get(TAB_QUERY_PARAM_KEY),
29
39
  )
30
40
  : defaultSelectedTab;
@@ -32,7 +42,7 @@ export const TabsLayout = UniBlock<TabsLayoutProps>(
32
42
  setActiveTabIndex(defaultTabIndex === -1 ? 0 : defaultTabIndex);
33
43
  }, [defaultSelectedTab]);
34
44
 
35
- const slotName = getSlotName(tabs[activeTabIndex], activeTabIndex);
45
+ const slotName = getSlotName(tabsCounted[activeTabIndex], activeTabIndex);
36
46
 
37
47
  const updateUrlSearchTabParam = (_: TabItemBase, index: number) => {
38
48
  const searchParams = new URLSearchParams(globalThis?.location?.search || '');
@@ -46,8 +56,8 @@ export const TabsLayout = UniBlock<TabsLayoutProps>(
46
56
 
47
57
  const handleChange = useCallback(
48
58
  (_: TabItemBase) => {
49
- const index = tabs.indexOf(_ as Tab);
50
- const tab = tabs[index];
59
+ const index = tabsCounted.indexOf(_ as Tab);
60
+ const tab = tabsCounted[index];
51
61
 
52
62
  setActiveTabIndex(index);
53
63
 
@@ -55,14 +65,14 @@ export const TabsLayout = UniBlock<TabsLayoutProps>(
55
65
  updateUrlSearchTabParam(_, index);
56
66
  }
57
67
  },
58
- [tabs],
68
+ [tabsCounted],
59
69
  );
60
70
 
61
71
  return (
62
72
  <BlockWrapper className={style(className)} defaultPadding="p-0" {...rest}>
63
73
  {renderTabsLayout({
64
- items: tabs,
65
- value: tabs[activeTabIndex],
74
+ items: tabsCounted,
75
+ value: tabsCounted[activeTabIndex],
66
76
  tabsType,
67
77
  onChange: handleChange,
68
78
  })}
@@ -1,6 +1,5 @@
1
1
  import { ScrollableTabsControl } from '../../ui-kit/TabsControl/ScrollableTabsControl';
2
2
  import { type TabItemBase } from '../../ui-kit/TabsControl/TabItem';
3
- import { TabsControl } from '../../ui-kit/TabsControl/TabsControl';
4
3
  import { type TabsControlProps, type TabsType } from '../../ui-kit/TabsControl/TabsControlProps';
5
4
 
6
5
  interface RenderTabsProps {
@@ -10,23 +9,28 @@ interface RenderTabsProps {
10
9
  tabsType?: TabsType;
11
10
  }
12
11
 
13
- export const renderTabsLayout = ({ tabsType = 'animated', ...props }: RenderTabsProps) => {
14
- switch (tabsType) {
15
- case 'default':
16
- return <TabsControl {...props} />;
17
- case 'underlined':
18
- return (
19
- <div className="flex">
20
- <TabsControl className="m-auto" tabsType="underlined" {...props} />
21
- </div>
22
- );
23
- case 'animated':
24
- return (
25
- <div className="border-b-8 border-primary-main">
26
- <ScrollableTabsControl className="m-auto" {...props} tabsType="animated" />
27
- </div>
28
- );
29
- default:
30
- return null;
31
- }
12
+ const tabsStyle: Record<TabsType, { wrapper: string; component: string }> = {
13
+ default: {
14
+ wrapper: '',
15
+ component: '',
16
+ },
17
+ animated: {
18
+ wrapper: 'border-b-8 border-primary-main bg-white',
19
+ component: 'm-auto',
20
+ },
21
+ underlined: {
22
+ wrapper: 'flex',
23
+ component: 'm-auto',
24
+ },
32
25
  };
26
+
27
+ export const renderTabsLayout = ({ tabsType = 'animated', ...props }: RenderTabsProps) =>
28
+ tabsType ? (
29
+ <div className={tabsStyle[tabsType].wrapper}>
30
+ <ScrollableTabsControl
31
+ className={tabsStyle[tabsType].component}
32
+ tabsType={tabsType}
33
+ {...props}
34
+ />
35
+ </div>
36
+ ) : null;
@@ -1,6 +1,9 @@
1
1
  import fs from 'fs';
2
2
  import glob from 'glob';
3
+ import path from 'path';
3
4
  import util from 'util';
5
+ import { computeAPIFallback } from '../components/ContentPage/computeAPIFallback';
6
+ import { normalizePage } from '../components/ContentPage/normalizePage';
4
7
  import { type ContentPageDef } from '../model/ContentPageDef';
5
8
  import { type TransformationOptions } from './TransformationOptions';
6
9
  import { transformContentPage } from './transformContentPage';
@@ -8,6 +11,10 @@ import { transformContentPage } from './transformContentPage';
8
11
  const find = util.promisify(glob);
9
12
  const readFile = util.promisify(fs.readFile);
10
13
 
14
+ export const PAGE_EXT = '.page.json';
15
+
16
+ export type Slug = string[];
17
+
11
18
  export class ContentPageRepository {
12
19
  public static readonly inst = new ContentPageRepository();
13
20
 
@@ -18,15 +25,40 @@ export class ContentPageRepository {
18
25
  },
19
26
  ) {}
20
27
 
21
- listAllContentPages(): Promise<string[]> {
22
- return find(`${this.options.contentDir}/**/*.page.json`);
28
+ listAllPages(): Promise<string[]> {
29
+ return find(`${this.options.contentDir}/**/*${PAGE_EXT}`);
30
+ }
31
+
32
+ async listAllSlugs(): Promise<Slug[]> {
33
+ const contentFiles = await find(`*${PAGE_EXT}`, {
34
+ cwd: this.options.contentDir,
35
+ matchBase: true,
36
+ });
37
+ const isErrorPage = ([, head, ...tail]: Slug) => /^\d+$/.test(head) && tail.length === 0;
38
+
39
+ return contentFiles
40
+ .map((_) => _.slice(0, -PAGE_EXT.length))
41
+ .map((_) => _.split('/'))
42
+ .filter((_) => !isErrorPage(_));
23
43
  }
24
44
 
25
45
  async readPage(filePath: string): Promise<ContentPageDef> {
26
46
  return JSON.parse(await readFile(filePath, 'utf-8'));
27
47
  }
28
48
 
29
- generatePage(filePath: string): Promise<ContentPageDef> {
30
- return transformContentPage(filePath, this.options);
49
+ async generatePageData(slug: Slug, options?: TransformationOptions): Promise<ContentPageDef> {
50
+ const pathname = path.join(this.options.contentDir, ...slug);
51
+ const indexFilePath = path.join(pathname, `index${PAGE_EXT}`);
52
+ const pageFilePath = `${pathname}${PAGE_EXT}`;
53
+
54
+ const data = normalizePage(
55
+ await this.generatePage(fs.existsSync(indexFilePath) ? indexFilePath : pageFilePath, options),
56
+ );
57
+
58
+ return { ...data, fallback: (await computeAPIFallback(data)) || {} };
59
+ }
60
+
61
+ generatePage(filePath: string, options?: TransformationOptions): Promise<ContentPageDef> {
62
+ return transformContentPage(filePath, { ...this.options, ...options });
31
63
  }
32
64
  }
@@ -1,4 +1,5 @@
1
1
  export interface TransformationOptions {
2
2
  contentDir: string;
3
3
  publicDir: string;
4
+ dryRun?: boolean;
4
5
  }
@@ -0,0 +1,11 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import util from 'util';
4
+
5
+ const mkdir = util.promisify(fs.mkdir);
6
+ const copyFile = util.promisify(fs.copyFile);
7
+
8
+ export async function copy(input: string, output: string) {
9
+ await mkdir(path.dirname(output), { recursive: true });
10
+ await copyFile(input, output);
11
+ }
@@ -1,14 +1,10 @@
1
- import fs from 'fs';
2
1
  import path from 'path';
3
- import util from 'util';
4
2
  import type { LinkProps } from '../model/LinkProps';
5
3
  import { isUUID } from '../utils/isUUID';
6
4
  import { clearAttachmentHref } from './clearAttachmentHref';
5
+ import { copy } from './copy';
7
6
  import type { TransformationOptions } from './TransformationOptions';
8
7
 
9
- const mkdir = util.promisify(fs.mkdir);
10
- const copyFile = util.promisify(fs.copyFile);
11
-
12
8
  export async function transformAttachmentLink(
13
9
  link: LinkProps,
14
10
  pagePath: string,
@@ -35,12 +31,15 @@ async function transformHref(input: string, options: TransformationOptions) {
35
31
  return input;
36
32
  }
37
33
 
38
- const { contentDir, publicDir } = options;
34
+ const { contentDir, publicDir, dryRun } = options;
39
35
  const docRelativePath = path.relative(contentDir, input);
40
36
  const output = path.join(publicDir, docRelativePath);
41
37
 
42
- await mkdir(path.dirname(output), { recursive: true });
43
- await copyFile(input, output);
38
+ try {
39
+ dryRun || (await copy(input, output));
40
+ } catch (e) {
41
+ console.info(`No "${input}" attachment found`);
42
+ }
44
43
 
45
44
  return path.join('/', docRelativePath);
46
45
  }
@@ -3,10 +3,9 @@ import path from 'path';
3
3
  import util from 'util';
4
4
  import { type Attachment } from '../model/Attachment';
5
5
  import { isUUID } from '../utils/isUUID';
6
+ import { copy } from './copy';
6
7
  import { type TransformationOptions } from './TransformationOptions';
7
8
 
8
- const mkdir = util.promisify(fs.mkdir);
9
- const copyFile = util.promisify(fs.copyFile);
10
9
  const stat = util.promisify(fs.stat);
11
10
 
12
11
  export async function transformDocument(
@@ -18,15 +17,14 @@ export async function transformDocument(
18
17
  return attachment;
19
18
  }
20
19
 
21
- const { contentDir, publicDir } = options;
20
+ const { contentDir, publicDir, dryRun } = options;
22
21
  const input = attachment.src;
23
22
  const docRelativePath = path.relative(contentDir, input);
24
23
  const output = path.join(publicDir, docRelativePath);
25
24
  const inputFileSize = (await stat(input)).size;
26
25
 
27
26
  try {
28
- await mkdir(path.dirname(output), { recursive: true });
29
- await copyFile(input, output);
27
+ dryRun || (await copy(input, output));
30
28
  } catch (e) {
31
29
  console.info(`No "${input}" attachment found on page: "${pagePath}"`);
32
30
 
@@ -39,7 +39,11 @@ export function transformImg(
39
39
 
40
40
  const output = computeImgOutputPath(src, options);
41
41
 
42
- const { cache = defaultTransformationCache } = options;
42
+ const { cache = defaultTransformationCache, dryRun } = options;
43
+
44
+ if (dryRun) {
45
+ return output;
46
+ }
43
47
 
44
48
  const cachedResult = cache.get(output);
45
49
  if (cachedResult) {
@@ -61,6 +65,7 @@ export function transformImg(
61
65
 
62
66
  return output;
63
67
  })();
68
+
64
69
  cache.set(output, result);
65
70
 
66
71
  return result;
@@ -39,7 +39,6 @@ export interface FooterData {
39
39
  feedbackButton?: LinkButtonContent;
40
40
  otherLinks?: LinkProps[];
41
41
  mediaLinks?: MediaLinkItems[];
42
- isOldVersionButton?: boolean;
43
42
  license?: string;
44
43
  horizontalNavigationTitle?: string; // TODO: для мобильной версии
45
44
  }