@redneckz/wildless-cms-uni-blocks 0.6.37 → 0.6.39

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 (659) hide show
  1. package/bundle/EventBus/EventBus.d.ts +6 -5
  2. package/bundle/EventBus/EventMap.d.ts +1 -4
  3. package/bundle/bundle.umd.js +178 -98
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Footer/FooterDataProps.d.ts +8 -3
  6. package/bundle/components/Tabs/LinkTab.d.ts +0 -1
  7. package/bundle/components/Tabs/Tabs.d.ts +0 -4
  8. package/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
  9. package/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
  10. package/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
  11. package/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  12. package/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
  13. package/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  14. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  15. package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  16. package/bundle/utils/debounce.d.ts +5 -0
  17. package/dist/EventBus/EventBus.d.ts +6 -5
  18. package/dist/EventBus/EventBus.js +5 -3
  19. package/dist/EventBus/EventBus.js.map +1 -1
  20. package/dist/EventBus/EventMap.d.ts +1 -4
  21. package/dist/components/Accordion/Accordion.js +1 -1
  22. package/dist/components/Accordion/Accordion.js.map +1 -1
  23. package/dist/components/AccordionItem/AccordionItem.mobile.js +1 -1
  24. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  25. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  26. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  27. package/dist/components/Bonus/Bonus.js +2 -2
  28. package/dist/components/Bonus/Bonus.js.map +1 -1
  29. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  30. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  31. package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  32. package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  33. package/dist/components/Calculator/DepositCalculatorForm.js +0 -1
  34. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  35. package/dist/components/Calculator/renderProposal.js +2 -2
  36. package/dist/components/Calculator/renderProposal.js.map +1 -1
  37. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  38. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  39. package/dist/components/Catalog/Catalog.js +1 -1
  40. package/dist/components/Catalog/Catalog.js.map +1 -1
  41. package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  42. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  43. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  44. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  45. package/dist/components/ContentPage/ContentPage.js +2 -0
  46. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  47. package/dist/components/ContentPage/useContentPageData.js +4 -8
  48. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  49. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  50. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  51. package/dist/components/Footer/Footer.js +2 -2
  52. package/dist/components/Footer/Footer.js.map +1 -1
  53. package/dist/components/Footer/FooterDataProps.d.ts +8 -3
  54. package/dist/components/Footer/MediaButton.js +1 -1
  55. package/dist/components/Footer/MediaButton.js.map +1 -1
  56. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  57. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  58. package/dist/components/Gallery/GalleryCardInner.js +1 -1
  59. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  60. package/dist/components/GracePeriod/GracePeriod.js +2 -2
  61. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  62. package/dist/components/Header/Header.js +1 -1
  63. package/dist/components/Header/Header.js.map +1 -1
  64. package/dist/components/Header/Header.mobile.js +1 -1
  65. package/dist/components/Header/Header.mobile.js.map +1 -1
  66. package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  67. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  68. package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
  69. package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  70. package/dist/components/Header/HeaderTop.js +1 -1
  71. package/dist/components/Header/HeaderTop.js.map +1 -1
  72. package/dist/components/Headline/Headline.js +1 -1
  73. package/dist/components/Headline/Headline.js.map +1 -1
  74. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  75. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  76. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  77. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  78. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  79. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  80. package/dist/components/LinkList/LinkList.js +1 -1
  81. package/dist/components/LinkList/LinkList.js.map +1 -1
  82. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  83. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  84. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  85. package/dist/components/OfficeMap/useOfficeMap.js +3 -4
  86. package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  87. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  88. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  89. package/dist/components/ProductGallery/ProductGallery.js +2 -2
  90. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  91. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  92. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  93. package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
  94. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  95. package/dist/components/Tabs/LinkTab.d.ts +0 -1
  96. package/dist/components/Tabs/LinkTab.js +2 -8
  97. package/dist/components/Tabs/LinkTab.js.map +1 -1
  98. package/dist/components/Tabs/Tabs.d.ts +0 -4
  99. package/dist/components/Tabs/Tabs.js +6 -12
  100. package/dist/components/Tabs/Tabs.js.map +1 -1
  101. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  102. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  103. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  104. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  105. package/dist/hooks/useLink.js +11 -2
  106. package/dist/hooks/useLink.js.map +1 -1
  107. package/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
  108. package/dist/services/BlockRouter/BlockIntersection.js +2 -0
  109. package/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
  110. package/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
  111. package/dist/services/BlockRouter/BlockRouter.js +32 -0
  112. package/dist/services/BlockRouter/BlockRouter.js.map +1 -0
  113. package/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
  114. package/dist/services/BlockRouter/findActiveBlock.js +15 -0
  115. package/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
  116. package/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  117. package/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
  118. package/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  119. package/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
  120. package/dist/services/BlockRouter/useBlockRouter.js +8 -0
  121. package/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
  122. package/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  123. package/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
  124. package/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  125. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  126. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  127. package/dist/ui-kit/BlockWrapper.js +6 -20
  128. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  129. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  130. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  131. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
  132. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  133. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  134. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  135. package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  136. package/dist/ui-kit/Select/Select.js +1 -1
  137. package/dist/ui-kit/Select/Select.js.map +1 -1
  138. package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
  139. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  140. package/dist/utils/debounce.d.ts +5 -0
  141. package/dist/utils/debounce.js +19 -0
  142. package/dist/utils/debounce.js.map +1 -0
  143. package/lib/EventBus/EventBus.d.ts +6 -5
  144. package/lib/EventBus/EventBus.js +5 -3
  145. package/lib/EventBus/EventBus.js.map +1 -1
  146. package/lib/EventBus/EventMap.d.ts +1 -4
  147. package/lib/common.css +1 -1
  148. package/lib/components/Accordion/Accordion.js +1 -1
  149. package/lib/components/Accordion/Accordion.js.map +1 -1
  150. package/lib/components/AccordionItem/AccordionItem.mobile.js +1 -1
  151. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  152. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  153. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  154. package/lib/components/Bonus/Bonus.js +2 -2
  155. package/lib/components/Bonus/Bonus.js.map +1 -1
  156. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  157. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  158. package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  159. package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  160. package/lib/components/Calculator/DepositCalculatorForm.js +0 -1
  161. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  162. package/lib/components/Calculator/renderProposal.js +2 -2
  163. package/lib/components/Calculator/renderProposal.js.map +1 -1
  164. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  165. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  166. package/lib/components/Catalog/Catalog.js +1 -1
  167. package/lib/components/Catalog/Catalog.js.map +1 -1
  168. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  169. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  170. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  171. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  172. package/lib/components/ContentPage/ContentPage.js +2 -0
  173. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  174. package/lib/components/ContentPage/useContentPageData.js +4 -8
  175. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  176. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  177. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  178. package/lib/components/Footer/Footer.js +2 -2
  179. package/lib/components/Footer/Footer.js.map +1 -1
  180. package/lib/components/Footer/FooterDataProps.d.ts +8 -3
  181. package/lib/components/Footer/MediaButton.js +1 -1
  182. package/lib/components/Footer/MediaButton.js.map +1 -1
  183. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  184. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  185. package/lib/components/Gallery/GalleryCardInner.js +1 -1
  186. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  187. package/lib/components/GracePeriod/GracePeriod.js +2 -2
  188. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  189. package/lib/components/Header/Header.js +1 -1
  190. package/lib/components/Header/Header.js.map +1 -1
  191. package/lib/components/Header/Header.mobile.js +1 -1
  192. package/lib/components/Header/Header.mobile.js.map +1 -1
  193. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  194. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  195. package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
  196. package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  197. package/lib/components/Header/HeaderTop.js +1 -1
  198. package/lib/components/Header/HeaderTop.js.map +1 -1
  199. package/lib/components/Headline/Headline.js +1 -1
  200. package/lib/components/Headline/Headline.js.map +1 -1
  201. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  202. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  203. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  204. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  205. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  206. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  207. package/lib/components/LinkList/LinkList.js +1 -1
  208. package/lib/components/LinkList/LinkList.js.map +1 -1
  209. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  210. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  211. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  212. package/lib/components/OfficeMap/useOfficeMap.js +3 -4
  213. package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  214. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  215. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  216. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  217. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  218. package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -1
  219. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  220. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  221. package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
  222. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  223. package/lib/components/Tabs/LinkTab.d.ts +0 -1
  224. package/lib/components/Tabs/LinkTab.js +2 -8
  225. package/lib/components/Tabs/LinkTab.js.map +1 -1
  226. package/lib/components/Tabs/Tabs.d.ts +0 -4
  227. package/lib/components/Tabs/Tabs.js +7 -13
  228. package/lib/components/Tabs/Tabs.js.map +1 -1
  229. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  230. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  231. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  232. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  233. package/lib/hooks/useLink.js +11 -2
  234. package/lib/hooks/useLink.js.map +1 -1
  235. package/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
  236. package/lib/services/BlockRouter/BlockIntersection.js +2 -0
  237. package/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
  238. package/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
  239. package/lib/services/BlockRouter/BlockRouter.js +29 -0
  240. package/lib/services/BlockRouter/BlockRouter.js.map +1 -0
  241. package/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
  242. package/lib/services/BlockRouter/findActiveBlock.js +12 -0
  243. package/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
  244. package/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  245. package/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
  246. package/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  247. package/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
  248. package/lib/services/BlockRouter/useBlockRouter.js +5 -0
  249. package/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
  250. package/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  251. package/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
  252. package/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  253. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  254. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  255. package/lib/ui-kit/BlockWrapper.js +7 -21
  256. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  257. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  258. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  259. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
  260. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  261. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  262. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  263. package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  264. package/lib/ui-kit/Select/Select.js +1 -1
  265. package/lib/ui-kit/Select/Select.js.map +1 -1
  266. package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
  267. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  268. package/lib/utils/debounce.d.ts +5 -0
  269. package/lib/utils/debounce.js +16 -0
  270. package/lib/utils/debounce.js.map +1 -0
  271. package/mobile/bundle/EventBus/EventBus.d.ts +6 -5
  272. package/mobile/bundle/EventBus/EventMap.d.ts +1 -4
  273. package/mobile/bundle/bundle.umd.js +140 -48
  274. package/mobile/bundle/bundle.umd.min.js +1 -1
  275. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +8 -3
  276. package/mobile/bundle/components/Tabs/LinkTab.d.ts +0 -1
  277. package/mobile/bundle/components/Tabs/Tabs.d.ts +0 -4
  278. package/mobile/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
  279. package/mobile/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
  280. package/mobile/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
  281. package/mobile/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  282. package/mobile/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
  283. package/mobile/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  284. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  285. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  286. package/mobile/bundle/utils/debounce.d.ts +5 -0
  287. package/mobile/dist/EventBus/EventBus.d.ts +6 -5
  288. package/mobile/dist/EventBus/EventBus.js +5 -3
  289. package/mobile/dist/EventBus/EventBus.js.map +1 -1
  290. package/mobile/dist/EventBus/EventMap.d.ts +1 -4
  291. package/mobile/dist/components/AccordionItem/AccordionItem.js +1 -1
  292. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  293. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  294. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  295. package/mobile/dist/components/Bonus/Bonus.js +2 -2
  296. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  297. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  298. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  299. package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  300. package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  301. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +0 -1
  302. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  303. package/mobile/dist/components/Calculator/renderProposal.js +2 -2
  304. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
  305. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  306. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  307. package/mobile/dist/components/Catalog/Catalog.js +1 -1
  308. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  309. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  310. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  311. package/mobile/dist/components/ContentPage/ContentPage.js +2 -0
  312. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  313. package/mobile/dist/components/ContentPage/useContentPageData.js +4 -8
  314. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  315. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  316. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  317. package/mobile/dist/components/Footer/FooterDataProps.d.ts +8 -3
  318. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  319. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  320. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  321. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  322. package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
  323. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  324. package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
  325. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  326. package/mobile/dist/components/Header/Header.js +1 -1
  327. package/mobile/dist/components/Header/Header.js.map +1 -1
  328. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  329. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  330. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
  331. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  332. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  333. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  334. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  335. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  336. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  337. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  338. package/mobile/dist/components/LinkList/LinkList.js +1 -1
  339. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  340. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  341. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  342. package/mobile/dist/components/OfficeMap/useOfficeMap.js +3 -4
  343. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  344. package/mobile/dist/components/ProductGallery/ProductGallery.js +2 -2
  345. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  346. package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
  347. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  348. package/mobile/dist/components/Tabs/LinkTab.d.ts +0 -1
  349. package/mobile/dist/components/Tabs/LinkTab.js +2 -8
  350. package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
  351. package/mobile/dist/components/Tabs/Tabs.d.ts +0 -4
  352. package/mobile/dist/components/Tabs/Tabs.js +6 -12
  353. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  354. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  355. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  356. package/mobile/dist/hooks/useLink.js +11 -2
  357. package/mobile/dist/hooks/useLink.js.map +1 -1
  358. package/mobile/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
  359. package/mobile/dist/services/BlockRouter/BlockIntersection.js +2 -0
  360. package/mobile/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
  361. package/mobile/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
  362. package/mobile/dist/services/BlockRouter/BlockRouter.js +32 -0
  363. package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -0
  364. package/mobile/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
  365. package/mobile/dist/services/BlockRouter/findActiveBlock.js +15 -0
  366. package/mobile/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
  367. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  368. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
  369. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  370. package/mobile/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
  371. package/mobile/dist/services/BlockRouter/useBlockRouter.js +8 -0
  372. package/mobile/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
  373. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  374. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
  375. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  376. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  377. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  378. package/mobile/dist/ui-kit/BlockWrapper.js +6 -20
  379. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  380. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  381. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  382. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  383. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  384. package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  385. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  386. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  387. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
  388. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  389. package/mobile/dist/utils/debounce.d.ts +5 -0
  390. package/mobile/dist/utils/debounce.js +19 -0
  391. package/mobile/dist/utils/debounce.js.map +1 -0
  392. package/mobile/lib/EventBus/EventBus.d.ts +6 -5
  393. package/mobile/lib/EventBus/EventBus.js +5 -3
  394. package/mobile/lib/EventBus/EventBus.js.map +1 -1
  395. package/mobile/lib/EventBus/EventMap.d.ts +1 -4
  396. package/mobile/lib/components/AccordionItem/AccordionItem.js +1 -1
  397. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  398. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  399. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  400. package/mobile/lib/components/Bonus/Bonus.js +2 -2
  401. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  402. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  403. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  404. package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  405. package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  406. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +0 -1
  407. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  408. package/mobile/lib/components/Calculator/renderProposal.js +2 -2
  409. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
  410. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  411. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  412. package/mobile/lib/components/Catalog/Catalog.js +1 -1
  413. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  414. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  415. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  416. package/mobile/lib/components/ContentPage/ContentPage.js +2 -0
  417. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  418. package/mobile/lib/components/ContentPage/useContentPageData.js +4 -8
  419. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  420. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  421. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  422. package/mobile/lib/components/Footer/FooterDataProps.d.ts +8 -3
  423. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  424. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  425. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  426. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  427. package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
  428. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  429. package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
  430. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  431. package/mobile/lib/components/Header/Header.js +1 -1
  432. package/mobile/lib/components/Header/Header.js.map +1 -1
  433. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  434. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  435. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
  436. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  437. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  438. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  439. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  440. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  441. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  442. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  443. package/mobile/lib/components/LinkList/LinkList.js +1 -1
  444. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  445. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  446. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  447. package/mobile/lib/components/OfficeMap/useOfficeMap.js +3 -4
  448. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  449. package/mobile/lib/components/ProductGallery/ProductGallery.js +2 -2
  450. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  451. package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
  452. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  453. package/mobile/lib/components/Tabs/LinkTab.d.ts +0 -1
  454. package/mobile/lib/components/Tabs/LinkTab.js +2 -8
  455. package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
  456. package/mobile/lib/components/Tabs/Tabs.d.ts +0 -4
  457. package/mobile/lib/components/Tabs/Tabs.js +7 -13
  458. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  459. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  460. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  461. package/mobile/lib/hooks/useLink.js +11 -2
  462. package/mobile/lib/hooks/useLink.js.map +1 -1
  463. package/mobile/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
  464. package/mobile/lib/services/BlockRouter/BlockIntersection.js +2 -0
  465. package/mobile/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
  466. package/mobile/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
  467. package/mobile/lib/services/BlockRouter/BlockRouter.js +29 -0
  468. package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -0
  469. package/mobile/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
  470. package/mobile/lib/services/BlockRouter/findActiveBlock.js +12 -0
  471. package/mobile/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
  472. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  473. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
  474. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  475. package/mobile/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
  476. package/mobile/lib/services/BlockRouter/useBlockRouter.js +5 -0
  477. package/mobile/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
  478. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  479. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
  480. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  481. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  482. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  483. package/mobile/lib/ui-kit/BlockWrapper.js +7 -21
  484. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  485. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  486. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  487. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  488. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  489. package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  490. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  491. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  492. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
  493. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  494. package/mobile/lib/utils/debounce.d.ts +5 -0
  495. package/mobile/lib/utils/debounce.js +16 -0
  496. package/mobile/lib/utils/debounce.js.map +1 -0
  497. package/mobile/src/EventBus/EventBus.ts +18 -14
  498. package/mobile/src/EventBus/EventMap.ts +1 -4
  499. package/mobile/src/components/AccordionItem/AccordionItem.tsx +1 -1
  500. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  501. package/mobile/src/components/Bonus/Bonus.tsx +2 -4
  502. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  503. package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  504. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
  505. package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
  506. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  507. package/mobile/src/components/Catalog/Catalog.example.json +1 -1
  508. package/mobile/src/components/Catalog/Catalog.tsx +1 -1
  509. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  510. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -0
  511. package/mobile/src/components/ContentPage/useContentPageData.ts +4 -8
  512. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  513. package/mobile/src/components/Footer/FooterDataProps.ts +8 -3
  514. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  515. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  516. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
  517. package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -2
  518. package/mobile/src/components/Header/Header.tsx +1 -1
  519. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  520. package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
  521. package/mobile/src/components/Header/HeaderTop.tsx +1 -1
  522. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
  523. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
  524. package/mobile/src/components/LinkList/LinkList.tsx +1 -1
  525. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  526. package/mobile/src/components/OfficeMap/useOfficeMap.ts +4 -4
  527. package/mobile/src/components/ProductGallery/ProductGallery.tsx +2 -2
  528. package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
  529. package/mobile/src/components/Tabs/LinkTab.tsx +2 -10
  530. package/mobile/src/components/Tabs/Tabs.tsx +11 -19
  531. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  532. package/mobile/src/hooks/useLink.ts +13 -2
  533. package/mobile/src/services/BlockRouter/BlockIntersection.ts +3 -0
  534. package/mobile/src/services/BlockRouter/BlockRouter.ts +51 -0
  535. package/mobile/src/services/BlockRouter/findActiveBlock.ts +20 -0
  536. package/mobile/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
  537. package/mobile/src/services/BlockRouter/useBlockRouter.ts +5 -0
  538. package/mobile/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
  539. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  540. package/mobile/src/ui-kit/BlockWrapper.tsx +9 -32
  541. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
  542. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
  543. package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
  544. package/mobile/src/ui-kit/Select/Select.tsx +2 -2
  545. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
  546. package/mobile/src/utils/debounce.ts +24 -0
  547. package/package.json +1 -1
  548. package/src/EventBus/EventBus.ts +18 -14
  549. package/src/EventBus/EventMap.ts +1 -4
  550. package/src/components/Accordion/Accordion.tsx +1 -1
  551. package/src/components/AccordionItem/AccordionItem.mobile.tsx +1 -1
  552. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  553. package/src/components/Bonus/Bonus.tsx +2 -4
  554. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  555. package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  556. package/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
  557. package/src/components/Calculator/renderProposal.tsx +2 -2
  558. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  559. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -1
  560. package/src/components/Catalog/Catalog.example.json +1 -1
  561. package/src/components/Catalog/Catalog.tsx +1 -1
  562. package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  563. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  564. package/src/components/ContentPage/ContentPage.tsx +3 -0
  565. package/src/components/ContentPage/useContentPageData.ts +4 -8
  566. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  567. package/src/components/Footer/Footer.tsx +2 -2
  568. package/src/components/Footer/FooterDataProps.ts +8 -3
  569. package/src/components/Footer/MediaButton.tsx +1 -1
  570. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  571. package/src/components/Gallery/GalleryCardInner.tsx +1 -1
  572. package/src/components/GracePeriod/GracePeriod.tsx +2 -2
  573. package/src/components/Header/Header.mobile.tsx +1 -1
  574. package/src/components/Header/Header.tsx +1 -1
  575. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  576. package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
  577. package/src/components/Header/HeaderTop.tsx +1 -1
  578. package/src/components/Headline/Headline.tsx +1 -1
  579. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
  580. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
  581. package/src/components/LinkDocs/LinkDocs.tsx +1 -4
  582. package/src/components/LinkList/LinkList.tsx +1 -1
  583. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
  584. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  585. package/src/components/OfficeMap/useOfficeMap.ts +4 -4
  586. package/src/components/ProductBlock/ProductBlock.tsx +1 -1
  587. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  588. package/src/components/Recommendation/Recommendation.fixture.tsx +38 -1
  589. package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
  590. package/src/components/StepsBlock/StepsBlock.tsx +2 -4
  591. package/src/components/Tabs/LinkTab.tsx +2 -10
  592. package/src/components/Tabs/Tabs.tsx +11 -19
  593. package/src/components/TariffsTable/TariffsTable.tsx +1 -1
  594. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  595. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +3 -3
  596. package/src/hooks/useLink.ts +13 -2
  597. package/src/services/BlockRouter/BlockIntersection.ts +3 -0
  598. package/src/services/BlockRouter/BlockRouter.ts +51 -0
  599. package/src/services/BlockRouter/findActiveBlock.ts +20 -0
  600. package/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
  601. package/src/services/BlockRouter/useBlockRouter.ts +5 -0
  602. package/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
  603. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  604. package/src/ui-kit/BlockWrapper.tsx +9 -32
  605. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
  606. package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
  607. package/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
  608. package/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
  609. package/src/ui-kit/Select/Select.tsx +2 -2
  610. package/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
  611. package/src/utils/debounce.ts +24 -0
  612. package/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
  613. package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  614. package/bundle/utils/changeHashOnObserve.d.ts +0 -9
  615. package/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
  616. package/dist/components/SafeDepositRental/YandexMap.js +0 -31
  617. package/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
  618. package/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  619. package/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
  620. package/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  621. package/dist/utils/changeHashOnObserve.d.ts +0 -9
  622. package/dist/utils/changeHashOnObserve.js +0 -21
  623. package/dist/utils/changeHashOnObserve.js.map +0 -1
  624. package/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
  625. package/lib/components/SafeDepositRental/YandexMap.js +0 -29
  626. package/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
  627. package/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  628. package/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
  629. package/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  630. package/lib/utils/changeHashOnObserve.d.ts +0 -9
  631. package/lib/utils/changeHashOnObserve.js +0 -18
  632. package/lib/utils/changeHashOnObserve.js.map +0 -1
  633. package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
  634. package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  635. package/mobile/bundle/utils/changeHashOnObserve.d.ts +0 -9
  636. package/mobile/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
  637. package/mobile/dist/components/SafeDepositRental/YandexMap.js +0 -31
  638. package/mobile/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
  639. package/mobile/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  640. package/mobile/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
  641. package/mobile/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  642. package/mobile/dist/utils/changeHashOnObserve.d.ts +0 -9
  643. package/mobile/dist/utils/changeHashOnObserve.js +0 -21
  644. package/mobile/dist/utils/changeHashOnObserve.js.map +0 -1
  645. package/mobile/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
  646. package/mobile/lib/components/SafeDepositRental/YandexMap.js +0 -29
  647. package/mobile/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
  648. package/mobile/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  649. package/mobile/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
  650. package/mobile/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  651. package/mobile/lib/utils/changeHashOnObserve.d.ts +0 -9
  652. package/mobile/lib/utils/changeHashOnObserve.js +0 -18
  653. package/mobile/lib/utils/changeHashOnObserve.js.map +0 -1
  654. package/mobile/src/components/SafeDepositRental/YandexMap.tsx +0 -43
  655. package/mobile/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
  656. package/mobile/src/utils/changeHashOnObserve.ts +0 -30
  657. package/src/components/SafeDepositRental/YandexMap.tsx +0 -43
  658. package/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
  659. package/src/utils/changeHashOnObserve.ts +0 -30
@@ -0,0 +1,3 @@
1
+ import type { BlockDef } from '../../model/ContentPageDef';
2
+ import type { BlockIntersection } from './BlockIntersection';
3
+ export declare function findActiveBlock(intersections: BlockIntersection[]): BlockDef | undefined;
@@ -0,0 +1,12 @@
1
+ import { minBy } from '../../utils/minBy.js';
2
+ const SPECIAL_BLOCK_TYPES = ['Header', 'Footer'];
3
+ const EPS = 0.01;
4
+ const topLineDelta = ([, { target }]) => Math.abs(target.getBoundingClientRect().top);
5
+ export function findActiveBlock(intersections) {
6
+ const visibleIntersections = intersections
7
+ .filter(([block]) => !SPECIAL_BLOCK_TYPES.includes(block.type || ''))
8
+ .filter(([, { intersectionRatio }]) => intersectionRatio > EPS);
9
+ const [activeBlock] = visibleIntersections.length > 0 ? minBy(topLineDelta)(visibleIntersections) : [];
10
+ return activeBlock;
11
+ }
12
+ //# sourceMappingURL=findActiveBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findActiveBlock.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/findActiveBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACjD,MAAM,GAAG,GAAG,IAAI,CAAC;AAEjB,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAoB,EAAE,EAAE,CACzD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,UAAU,eAAe,CAAC,aAAkC;IAChE,MAAM,oBAAoB,GAAG,aAAa;SACvC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;SACpE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC;IAElE,MAAM,CAAC,WAAW,CAAC,GACjB,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnF,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { BlockDef } from '../../model/ContentPageDef';
2
+ import { BlockRouter } from './BlockRouter';
3
+ export declare function useBlockIntersectionObserver(block?: BlockDef, router?: BlockRouter): {
4
+ current: Element | null;
5
+ };
@@ -0,0 +1,25 @@
1
+ import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useIntersectionObserver } from '../../hooks/useIntersectionObserver.js';
3
+ import { BlockRouter } from './BlockRouter.js';
4
+ export function useBlockIntersectionObserver(block, router = BlockRouter.inst) {
5
+ const observerCallback = useCallback((entries) => {
6
+ if (!block || !entries?.length) {
7
+ return;
8
+ }
9
+ const intersection = entries[entries.length - 1];
10
+ router.eventBus.fire('intersection', { block, intersection });
11
+ }, [block, router]);
12
+ const ref = useIntersectionObserver(observerCallback, { sensitivity: 1 });
13
+ useEffect(() => {
14
+ if (!ref.current) {
15
+ return undefined;
16
+ }
17
+ return router.eventBus.subscribe('goto', ({ anchor }) => {
18
+ if (ref.current && block?.anchor === anchor) {
19
+ ref.current.scrollIntoView({ behavior: 'smooth', block: 'start' });
20
+ }
21
+ });
22
+ }, [block, router]);
23
+ return ref;
24
+ }
25
+ //# sourceMappingURL=useBlockIntersectionObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBlock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AAE,MAAM,CAAC,CAAC,CAAC;IAEpB,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { BlockRouter } from './BlockRouter';
2
+ export declare function useBlockRouter(): BlockRouter;
@@ -0,0 +1,5 @@
1
+ import { BlockRouter } from './BlockRouter.js';
2
+ export function useBlockRouter() {
3
+ return BlockRouter.inst;
4
+ }
5
+ //# sourceMappingURL=useBlockRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBlockRouter.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC,IAAI,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { BlockRouter } from './BlockRouter';
2
+ export declare function useBlockRouterProvider(router?: BlockRouter, scrollTarget?: EventTarget): void;
@@ -0,0 +1,34 @@
1
+ import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { debounce } from '../../utils/debounce.js';
3
+ import { BlockRouter } from './BlockRouter.js';
4
+ import { findActiveBlock } from './findActiveBlock.js';
5
+ const isScrolledEnough = () => globalThis.scrollY > (globalThis.innerHeight * 3) / 4;
6
+ export function useBlockRouterProvider(router = BlockRouter.inst, scrollTarget = globalThis) {
7
+ const intersectionsMapRef = useRef(new Map());
8
+ useEffect(() => router.eventBus.subscribe('intersection', ({ block, intersection }) => {
9
+ if (intersectionsMapRef.current) {
10
+ intersectionsMapRef.current.set(block, intersection);
11
+ }
12
+ }), [router]);
13
+ useEffect(() => {
14
+ const handleScroll = debounce(() => {
15
+ if (!isScrolledEnough()) {
16
+ router.reset();
17
+ return;
18
+ }
19
+ const activeBlock = findActiveBlock([...(intersectionsMapRef.current || [])]);
20
+ if (activeBlock?.anchor) {
21
+ router.replace(activeBlock.anchor);
22
+ }
23
+ else if (!activeBlock) {
24
+ router.reset();
25
+ }
26
+ }, 100);
27
+ scrollTarget.addEventListener('scroll', handleScroll);
28
+ return () => {
29
+ handleScroll.dispose();
30
+ scrollTarget.removeEventListener('scroll', handleScroll);
31
+ };
32
+ }, [router, scrollTarget]);
33
+ }
34
+ //# sourceMappingURL=useBlockRouterProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBlockRouterProvider.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouterProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC,UAAU,CAAC,WAAW,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAErF,MAAM,UAAU,sBAAsB,CACpC,SAAsB,WAAW,CAAC,IAAI,EACtC,eAA4B,UAAU;IAEtC,MAAM,mBAAmB,GAAG,MAAM,CAA2C,IAAI,GAAG,EAAE,CAAC,CAAC;IAExF,SAAS,CACP,GAAG,EAAE,CACH,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE;QACpE,IAAI,mBAAmB,CAAC,OAAO,EAAE;YAC/B,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SACtD;IACH,CAAC,CAAC,EACJ,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;YACjC,IAAI,CAAC,gBAAgB,EAAE,EAAE;gBACvB,MAAM,CAAC,KAAK,EAAE,CAAC;gBAEf,OAAO;aACR;YAED,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAE9E,IAAI,WAAW,EAAE,MAAM,EAAE;gBACvB,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;aACpC;iBAAM,IAAI,CAAC,WAAW,EAAE;gBACvB,MAAM,CAAC,KAAK,EAAE,CAAC;aAChB;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,YAAY,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAEtD,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,EAAE,CAAC;YACvB,YAAY,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC3D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;AAC7B,CAAC"}
@@ -24,6 +24,6 @@ function getBenefitIconBgStyle(version, benefitsVersion) {
24
24
  else if (benefitsVersion === 'normal') {
25
25
  bgColorStyle = 'bg-secondary-light text-primary-main';
26
26
  }
27
- return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
27
+ return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
28
28
  }
29
29
  //# sourceMappingURL=BenefitItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,MAAM,a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O,EAAE,eAAe,CAAC,YAC7D,KAAC,GAAG,IAAC,SAAS,EAAC,SAAS,EAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,KAAK,SAAG,GAC3E,CACP,CAAC,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,SAAS,aACrB,KAAK,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,WAAW,aAAa,CAAC,OAAO,CAAC,EAAE,YAAG,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAE,gBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,YAAG,WAAW,GAAO,CAC7E,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAAC,OAAqB,EAAE,eAA4B;IAChF,IAAI,YAAY,GAAG,4BAA4B,CAAC;IAEhD,IAAI,OAAO,KAAK,WAAW,EAAE;QAC3B,YAAY,GAAG,wBAAwB,CAAC;KACzC;SAAM,IAAI,eAAe,KAAK,QAAQ,EAAE;QACvC,YAAY,GAAG,sCAAsC,CAAC;KACvD;IAED,OAAO,qFAAqF,YAAY,EAAE,CAAC;AAC7G,CAAC"}
@@ -1,35 +1,21 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
4
4
  import { EventBus } from '../EventBus/EventBus.js';
5
- import { useIntersectionObserver } from '../hooks/useIntersectionObserver.js';
6
- import { changeHashOnObserve } from '../utils/changeHashOnObserve.js';
5
+ import { useBlockIntersectionObserver } from '../services/BlockRouter/useBlockIntersectionObserver.js';
7
6
  export const BlockWrapper = JSX(({ className, block, tag = 'section', role, children }) => {
8
7
  const Tag = tag;
9
- const { anchor, labels } = block || {};
8
+ const ref = useBlockIntersectionObserver(block);
10
9
  const [isVisible, setVisible] = useState(true);
11
- const anchorClickRef = useRef({});
12
- const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
13
- const ref = useIntersectionObserver(observerCallback, { sensitivity: 1 });
14
- useEffect(() => EventBus.inst.subscribe('anchorClick', (e) => {
15
- setVisible(true);
16
- anchorClickRef.current = e;
17
- }), []);
18
10
  useEffect(() => EventBus.inst.subscribe('tab', (event) => {
19
11
  if (event.type === 'group') {
20
- const hasSettings = labels?.length || block?.anchor;
21
- setVisible(event.label ? !hasSettings || Boolean(labels?.includes(event.label)) : true);
12
+ const hasSettings = block?.labels?.length || block?.anchor;
13
+ setVisible(event.label ? !hasSettings || Boolean(block?.labels?.includes(event.label)) : true);
22
14
  }
23
15
  else {
24
- changeHash(event.label);
25
16
  setVisible(true);
26
17
  }
27
- }), []);
28
- return isVisible ? (_jsx(Tag, { className: className, role: role, ...(anchor ? { id: anchor, ref } : {}), children: children })) : null;
18
+ }), [block]);
19
+ return isVisible ? (_jsx(Tag, { className: className, role: role, ...(block?.anchor ? { id: block.anchor, ref } : {}), children: children })) : null;
29
20
  });
30
- function changeHash(label) {
31
- if (label) {
32
- globalThis.document.location.hash = label;
33
- }
34
- }
35
21
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EA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AAC,IAAI,CAAC,CAAC;IAC/C,SAAS,CACP,GAAG,EAAE,CACH,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;QACvC,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;YAC1B,MAAM,WAAW,GAAG,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,CAAC;YAC3D,UAAU,CACR,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACnF,CAAC;SACH;aAAM;YACL,UAAU,CAAC,IAAI,CAAC,CAAC;SAClB;IACH,CAAC,CAAC,EACJ,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB,KAAC,GAAG,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,KAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,YACxF,QAAQ,GACL,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  const TEXT_CLASSES = 'font-sans text-s';
4
- const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
4
+ const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-0.5';
5
5
  export const HeaderItem = JSX(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
6
6
  return (_jsxs("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, onClick: onClick, children: [_jsx("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? _jsx("div", { className: getBorderClasses(bgColor, active) }) : null] }));
7
7
  });
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAMxC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AACxC,MAAM,cAAc,GAAG,0CAA0C,CAAC;AAElE,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,UAAU,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,aACE,SAAS,EAAE,iEAAiE,SAAS,EAAE,EACvF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,aAEhB,eAAM,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,EAC1E,MAAM,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IACpE,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACjE,IAAI,OAAO,GAAG,YAAY,CAAC;IAC3B,IAAI,OAAO,KAAK,UAAU,EAAE;QAC1B,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,6CAA6C,CAAC;KACxF;IAED,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAA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,CAAC,mBAAmB,CAAC,CAAC,CAAC,6CAA6C,CAAC;KACxF;IAED,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACnE,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,cAAc,CAAC;KACvB;IAED,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
- import type { TariffsTableInnerEvent } from './InnerTableProps';
2
- export interface TableInnerButtonProps extends TariffsTableInnerEvent {
1
+ import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
2
+ import type { TariffsTableInnerContent } from './InnerTableProps';
3
+ export interface TableInnerButtonProps extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
3
4
  onClick?: () => void;
4
5
  isOpen?: boolean;
5
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAQpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,cAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,2BAA2B,GAAO,EAChF,KAAC,IAAI,IACH,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC9C,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,cAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,2BAA2B,GAAO,EAChF,KAAC,IAAI,IACH,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC9C,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
2
1
  export declare type RowsData = {
3
2
  data?: string;
4
3
  cols?: string[];
@@ -20,5 +19,3 @@ export interface TariffsTableInnerContent {
20
19
  /** @title Ссылка PDF-файл */
21
20
  pdfUrl?: string;
22
21
  }
23
- export interface TariffsTableInnerEvent extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
24
- }
@@ -18,7 +18,7 @@ export const Select = JSX(({ className = '', isBorder = true, label, options = [
18
18
  setSelectedItem(value || { key: '', text: '' });
19
19
  }, [value]);
20
20
  return (_jsxs("div", { className: `${className}`, ref: wrapperRef, children: [label ? _jsx("span", { className: "mb-2 flex text-primary-text", children: label }) : null, _jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [_jsxs("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
21
- ${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [_jsx("p", { className: "p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), _jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? (_jsx("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: _jsx("div", { className: `bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
21
+ ${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [_jsx("p", { className: "p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), _jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? (_jsx("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: _jsx("div", { className: `bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
22
22
  });
23
23
  const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
24
24
  const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAgBpC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IAC9F,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,UAAU,GAAG,eAAe,CAAiB,kBAAkB,CAAC,CAAC;IAEvE,MAAM,YAAY,GAAG,CAAC,MAAmB,EAAE,EAAE;QAC3C,eAAe,CAAC,MAAM,CAAC,CAAC;QACxB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,OAAO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EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,CAAC,yBAAyB,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CACvF,GAAG,CACJ,GACD,KAdG,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,CAAC,QAAiB,EAAE,EAAE,CAC3C,QAAQ,CAAC,CAAC,CAAC,iEAAiE,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -2,7 +2,7 @@ import { useExternalNS } from '../../hooks/useExternalNS.js';
2
2
  import { projectSettings } from '../../ProjectSettings.js';
3
3
  const YMAPS_NAMESPACE = 'ymaps';
4
4
  export const useYandexMaps = () => {
5
- const url = `https://api-maps.yandex.ru/2.1/?apikey=${projectSettings.YANDEX_MAP_API_KEY}&lang=ru_RU`;
5
+ const url = `https://api-maps.yandex.ru/2.1/?apikey=${projectSettings.YANDEX_MAP_API_KEY || ''}&lang=ru_RU`;
6
6
  return useExternalNS(YMAPS_NAMESPACE, url);
7
7
  };
8
8
  //# sourceMappingURL=useYandexMaps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useYandexMaps.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/useYandexMaps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,GAAG,GAAG,0CAA0C,eAAe,CAAC,kBAAkB,aAAa,CAAC;IAEtG,OAAO,aAAa,CAAe,eAAe,EAAE,GAAG,CAAC,CAAC;AAC3D,CAAC,CAAC"}
1
+ {"version":3,"file":"useYandexMaps.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/useYandexMaps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,GAAG,GAAG,0CACV,eAAe,CAAC,kBAAkB,IAAI,EACxC,aAAa,CAAC;IAEd,OAAO,aAAa,CAAe,eAAe,EAAE,GAAG,CAAC,CAAC;AAC3D,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare type DebouncedCallback<Args extends any[]> = ((...args: Args) => void) & {
2
+ dispose: () => void;
3
+ };
4
+ export declare const debounce: <Args extends any[]>(fn: (...args: Args) => void, delay?: number) => DebouncedCallback<Args>;
5
+ export {};
@@ -0,0 +1,16 @@
1
+ export const debounce = (fn, delay = 600) => {
2
+ let timerId;
3
+ const debouncedCallback = (...args) => {
4
+ debouncedCallback.dispose();
5
+ timerId = setTimeout(() => {
6
+ fn(...args);
7
+ }, delay);
8
+ };
9
+ debouncedCallback.dispose = () => {
10
+ if (timerId) {
11
+ clearTimeout(timerId);
12
+ }
13
+ };
14
+ return debouncedCallback;
15
+ };
16
+ //# sourceMappingURL=debounce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,EAA2B,EAC3B,KAAK,GAAG,GAAG,EACc,EAAE;IAC3B,IAAI,OAAsC,CAAC;IAE3C,MAAM,iBAAiB,GAA4B,CAAC,GAAG,IAAU,EAAQ,EAAE;QACzE,iBAAiB,CAAC,OAAO,EAAE,CAAC;QAC5B,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YACxB,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC;IACF,iBAAiB,CAAC,OAAO,GAAG,GAAG,EAAE;QAC/B,IAAI,OAAO,EAAE;YACX,YAAY,CAAC,OAAO,CAAC,CAAC;SACvB;IACH,CAAC,CAAC;IAEF,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC"}
@@ -1,21 +1,21 @@
1
1
  import type { EventMap } from './EventMap';
2
2
 
3
- type Subscriber = (ev: EventMap[keyof EventMap]) => void;
3
+ export type BaseEventMap = Record<string, any>;
4
4
 
5
- export class EventBus {
6
- public static readonly inst = new EventBus();
5
+ export class EventBus<EM extends BaseEventMap> {
6
+ public static readonly inst = new EventBus<EventMap>();
7
7
 
8
- private subscribers: Partial<Record<keyof EventMap, Subscriber[]>> = {};
9
- private subjectsStateMap: Partial<EventMap> = {};
8
+ private subscribers: Partial<Record<keyof EM, Array<(ev: EM[keyof EM]) => void>>> = {};
9
+ private subjectsStateMap: Partial<EM> = {};
10
10
 
11
- subscribe<T extends keyof EventMap>(type: T, listener: (event: EventMap[T]) => void) {
12
- this.subscribers[type] ||= [];
13
- this.subscribers[type]?.push(listener);
11
+ subscribe<K extends keyof EM>(type: K, listener: (event: EM[K]) => void) {
12
+ this.subscribers[type] = (this.subscribers[type] || []).concat(
13
+ listener as (ev: EM[keyof EM]) => void,
14
+ );
14
15
 
15
16
  const latestEvent = this.subjectsStateMap[type];
16
-
17
17
  if (latestEvent) {
18
- listener(latestEvent as EventMap[T]);
18
+ listener(latestEvent as EM[K]);
19
19
  }
20
20
 
21
21
  return () => {
@@ -23,16 +23,20 @@ export class EventBus {
23
23
  };
24
24
  }
25
25
 
26
- private unsubscribe<T extends keyof EventMap>(type: T, listener: (event: EventMap[T]) => void) {
26
+ private unsubscribe<K extends keyof EM>(type: K, listener: (event: EM[K]) => void) {
27
27
  this.subscribers[type] = this.subscribers[type]?.filter((s) => s !== listener);
28
28
  }
29
29
 
30
- fire<T extends keyof EventMap>(type: T, event: EventMap[T]) {
31
- this.subjectsStateMap[type] = event;
30
+ fire<K extends keyof EM>(type: K, event: EM[K]) {
31
+ const isSubjectDeclared = type in this.subjectsStateMap;
32
+ if (isSubjectDeclared) {
33
+ this.subjectsStateMap[type] = event;
34
+ }
35
+
32
36
  this.subscribers[type]?.forEach((s) => s(event));
33
37
  }
34
38
 
35
- subject<T extends keyof EventMap>(type: T, event: EventMap[T]) {
39
+ subject<K extends keyof EM>(type: K, event: EM[K]) {
36
40
  this.subjectsStateMap[type] = event;
37
41
  }
38
42
  }
@@ -1,8 +1,5 @@
1
- import type { AnchorClickScrollingEvent, TabActivationEvent } from '../components/Tabs/Tabs';
2
- import type { TariffsTableInnerEvent } from '../ui-kit/InnerTable/InnerTableProps';
1
+ import type { TabActivationEvent } from '../components/Tabs/Tabs';
3
2
 
4
3
  export interface EventMap {
5
4
  tab: TabActivationEvent;
6
- tariffInnerTable: TariffsTableInnerEvent;
7
- anchorClick: AnchorClickScrollingEvent;
8
5
  }
@@ -37,7 +37,7 @@ export const AccordionItem: JSXBlock<AccordionItemProps> = JSX<AccordionItemProp
37
37
  )}
38
38
  renderFoldButton={({ isUnfolded, onToggle }) => (
39
39
  <FoldButton
40
- className={bordered ? '' : 'py-[14px] px-0'}
40
+ className={bordered ? '' : 'py-3.5 px-0'}
41
41
  label={label}
42
42
  icon={icons[Number(isUnfolded)]}
43
43
  primaryIcon={labelIcon}
@@ -55,7 +55,7 @@ const renderStep = (version: BlockVersion) => (benefit: BenefitBlockItemProps, i
55
55
  <div key={String(i)} className="flex items-center basis-1/2 max-w-[500px] mb-14">
56
56
  {benefit?.icon?.icon ? (
57
57
  <Img
58
- className={`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${benefitsIconStyleMap[version]}`}
58
+ className={`w-12 h-12 min-w-12 p-3 rounded-full ${benefitsIconStyleMap[version]}`}
59
59
  image={getIconWithVersion(benefit.icon, version)}
60
60
  asSVG
61
61
  />
@@ -12,7 +12,7 @@ export const Bonus = JSX<BonusProps>((props) => {
12
12
  const { className = '', title, description, bonusItems, ...rest } = props;
13
13
 
14
14
  return (
15
- <BlockWrapper className={`font-sans bg-white p-[50px] pb-9 ${className}`} {...rest}>
15
+ <BlockWrapper className={`font-sans bg-white p-12 pb-9 ${className}`} {...rest}>
16
16
  <div className="container">
17
17
  <Headline
18
18
  className="!p-0"
@@ -76,6 +76,4 @@ const renderBonusCount = (_: BonusCountDef) => (
76
76
  );
77
77
 
78
78
  const renderBonusImage = (_: BonusImageDef) =>
79
- _.image ? (
80
- <Img className={`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full`} image={_.image} />
81
- ) : null;
79
+ _.image ? <Img className={`w-12 h-12 min-w-12 p-3 rounded-full`} image={_.image} /> : null;
@@ -23,7 +23,7 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
23
23
  ...rest
24
24
  }) => (
25
25
  <BlockWrapper
26
- className={`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`}
26
+ className={`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${className}`}
27
27
  {...rest}
28
28
  >
29
29
  <Headline
@@ -9,7 +9,7 @@ export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps
9
9
 
10
10
  export const BusinessBlock = JSX<BusinessBlockProps>(
11
11
  ({ className = '', title, cards, ...rest }) => (
12
- <BlockWrapper className={`font-sans bg-white p-[50px] pb-9 ${className}`} {...rest}>
12
+ <BlockWrapper className={`font-sans bg-white p-12 pb-9 ${className}`} {...rest}>
13
13
  <Heading headingType="h3" title={title} className="text-center mb-8" />
14
14
  <div className="flex gap-5">
15
15
  {cards?.length ? cards.map((_, i) => <BusinessCard key={String(i)} {..._} />) : null}
@@ -43,7 +43,6 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
43
43
  isMonthlyInterestPayment,
44
44
  };
45
45
  const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
46
- const [isEveryMonth, toggleIsEveryMonth] = useState(false);
47
46
 
48
47
  const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir);
49
48
  const { income, finalSum, rate } = calculatorParams;
@@ -1,12 +1,12 @@
1
- import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
2
1
  import { Button } from '../../ui-kit/Button/Button';
2
+ import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
3
3
 
4
4
  export function renderProposal(monthlyPayment: number) {
5
5
  return (
6
6
  <div className="box-border ">
7
7
  <div className="text-l-light">Ежемесячный платёж</div>
8
8
  <div className="text-h3 mb-3">{addSpacesBetweenNumbers(Math.round(monthlyPayment))} ₽</div>
9
- <Button className="mt-[50px] w-full" text="Отправить заявку" version="primary" href="#" />
9
+ <Button className="mt-12 w-full" text="Отправить заявку" version="primary" href="#" />
10
10
  </div>
11
11
  );
12
12
  }
@@ -38,7 +38,7 @@ export const CardTransfer = JSX<CardTransferProps>(
38
38
 
39
39
  return (
40
40
  <BlockWrapper
41
- className={`p-[50px] flex flex-col items-center font-sans bg-white ${className}`}
41
+ className={`p-12 flex flex-col items-center font-sans bg-white ${className}`}
42
42
  {...rest}
43
43
  >
44
44
  {title ? <Heading className="max-w-[684px] pb-9" headingType="h2" title={title} /> : null}
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "button": {
17
- "href": "",
17
+ "href": "#Accordion-0",
18
18
  "text": "Подробнее",
19
19
  "target": "_self",
20
20
  "version": "primary"
@@ -22,7 +22,7 @@ export const Catalog = JSX<CatalogProps>(
22
22
 
23
23
  return (
24
24
  <BlockWrapper
25
- className={`bg-white relative font-sans p-[50px] overflow-hidden text-center ${className}`}
25
+ className={`bg-white relative font-sans p-12 overflow-hidden text-center ${className}`}
26
26
  {...rest}
27
27
  >
28
28
  <Headline
@@ -18,7 +18,7 @@ interface RenderContactsColumnProps {
18
18
 
19
19
  export const ContactsBlock = JSX<ContactsBlockProps>(
20
20
  ({ className = '', contacts, info, version = 'secondary', ...rest }) => (
21
- <BlockWrapper className={`${VersionStyleMap[version]} flex p-[50px] ${className}`} {...rest}>
21
+ <BlockWrapper className={`${VersionStyleMap[version]} flex p-12 ${className}`} {...rest}>
22
22
  {info?.length ? renderBlocks(info, version) : null}
23
23
  {contacts?.length ? renderBlocks(contacts, version) : null}
24
24
  </BlockWrapper>
@@ -5,6 +5,7 @@ import type { BlockDecorator } from '../../model/BlockDecorator';
5
5
  import type { BlocksRegistry } from '../../model/BlocksRegistry';
6
6
  import type { ContentPageDef } from '../../model/ContentPageDef';
7
7
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
8
+ import { useBlockRouterProvider } from '../../services/BlockRouter/useBlockRouterProvider';
8
9
  import { style2className } from '../../utils/style2className';
9
10
  import { LikeControl } from '../LikeControl/LikeControl';
10
11
 
@@ -27,6 +28,8 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>((pr
27
28
  parent: data,
28
29
  };
29
30
 
31
+ useBlockRouterProvider();
32
+
30
33
  return (
31
34
  <section
32
35
  className={`relative ${style2className(pageStyle)} ${className}`}
@@ -3,13 +3,7 @@ import type { BlocksRegistry } from '../../model/BlocksRegistry';
3
3
  import type { BlockDef, ContentPageDef } from '../../model/ContentPageDef';
4
4
  import baseData from './ContentPage.page.json';
5
5
 
6
- const BLOCK_TYPES_BLACK_LIST = [
7
- 'Header',
8
- 'Footer',
9
- 'Placeholder',
10
- 'AccordionItem',
11
- 'OtherProductsItem',
12
- ];
6
+ const BLOCK_TYPES_BLACK_LIST = ['Header', 'Footer', 'Placeholder'];
13
7
 
14
8
  export function useContentPageData(blocksRegistry: BlocksRegistry): ContentPageDef {
15
9
  const [data, setData] = useState<ContentPageDef>(baseData);
@@ -26,11 +20,13 @@ const contentPageData = async (blocksRegistry: BlocksRegistry): Promise<ContentP
26
20
  blocks: await Promise.all(
27
21
  Object.keys(blocksRegistry)
28
22
  .filter((type) => !BLOCK_TYPES_BLACK_LIST.includes(type))
23
+ .filter((type) => !type.endsWith('Item'))
29
24
  .sort()
30
25
  .map(
31
- async (type): Promise<BlockDef> => ({
26
+ async (type, i): Promise<BlockDef> => ({
32
27
  type,
33
28
  style: ['col-span-12'],
29
+ anchor: `${type}-${i}`,
34
30
  content: {},
35
31
  ...(await blockContentExample(type)),
36
32
  }),
@@ -26,7 +26,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
26
26
 
27
27
  return (
28
28
  <BlockWrapper
29
- className={`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${className}`}
29
+ className={`bg-white text-primary-text font-sans p-9 box-border min-h-80 ${className}`}
30
30
  {...rest}
31
31
  >
32
32
  <BaseTile
@@ -1,6 +1,7 @@
1
- import { LinkCommonProps, LinkProps } from '../../model/LinkProps';
2
- import { SitemapDataProps } from '../../services/sitemap/SitemapProps';
3
- import { ContactInfo, SubMenuItem } from './FooterContent';
1
+ import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
2
+ import type { Picture } from '../../model/Picture';
3
+ import type { SitemapDataProps } from '../../services/sitemap/SitemapProps';
4
+ import type { ContactInfo, SubMenuItem } from './FooterContent';
4
5
 
5
6
  export interface FooterDataProps extends SitemapDataProps {
6
7
  documents?: LinkProps[];
@@ -10,4 +11,8 @@ export interface FooterDataProps extends SitemapDataProps {
10
11
  mobileApps?: LinkCommonProps[];
11
12
  horizontalNavigationTitle?: string; // TODO: для мобильной версии
12
13
  subMenu?: SubMenuItem[]; // TODO: для мобильной версии
14
+ logo?: {
15
+ image?: Picture;
16
+ title?: string;
17
+ };
13
18
  }
@@ -56,7 +56,7 @@ export const MediaButton = JSX<MediaButtonProps>(({ version = 'primary', ...rest
56
56
  const classes =
57
57
  version === 'secondary'
58
58
  ? 'bg-white hover:bg-secondary-hover'
59
- : 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
59
+ : 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
60
60
 
61
61
  const isPrimary = version === 'primary';
62
62