@redneckz/wildless-cms-uni-blocks 0.8.27 → 0.8.29

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 (1229) hide show
  1. package/bin/migration-scripts/0.8.24.js +24 -0
  2. package/bin/migration-scripts/0.8.29.js +41 -0
  3. package/bundle/EventBus/defaultEventBus.d.ts +1 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +305 -109
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
  8. package/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
  9. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
  10. package/bundle/components/Bonus/BonusContent.d.ts +0 -1
  11. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
  12. package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
  13. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
  14. package/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
  15. package/bundle/components/Carousel/CarouselContent.d.ts +1 -4
  16. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
  17. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
  18. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
  19. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
  20. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
  21. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  22. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
  23. package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
  24. package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
  25. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
  26. package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  27. package/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
  28. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  29. package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
  30. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
  31. package/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
  32. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
  33. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
  34. package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  35. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
  36. package/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
  37. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
  38. package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
  39. package/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
  40. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
  41. package/bundle/components/Tabs/TabsContent.d.ts +1 -4
  42. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +6 -11
  43. package/bundle/components/TextBlock/TextBlockContent.d.ts +4 -9
  44. package/bundle/components/Tile/TileContent.d.ts +3 -22
  45. package/bundle/components/Video/VideoContent.d.ts +2 -15
  46. package/bundle/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
  47. package/bundle/hooks/useCarouselControls.d.ts +0 -2
  48. package/bundle/hooks/useLink.d.ts +1 -1
  49. package/bundle/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
  50. package/bundle/model/Bullets.d.ts +4 -0
  51. package/bundle/model/Button.d.ts +15 -0
  52. package/bundle/model/HeadlineType.d.ts +4 -0
  53. package/bundle/model/Picture.d.ts +3 -10
  54. package/bundle/services/search/jaroWinklerDistance.d.ts +1 -0
  55. package/bundle/services/search/joinMaps.d.ts +1 -0
  56. package/bundle/services/search/search.d.ts +12 -0
  57. package/bundle/services/search/textRank.d.ts +1 -0
  58. package/bundle/services/search/tokenize.d.ts +1 -0
  59. package/bundle/services/search/useSearch.d.ts +8 -0
  60. package/{lib/services/sitemap/SitemapProps.d.ts → bundle/services/sitemap/SitemapData.d.ts} +1 -1
  61. package/bundle/ui-kit/BlockWrapper.d.ts +1 -0
  62. package/bundle/ui-kit/Button/ButtonProps.d.ts +6 -7
  63. package/bundle/ui-kit/Dialog/CloseButton.d.ts +7 -0
  64. package/bundle/ui-kit/Dialog/Dialog.d.ts +7 -0
  65. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  66. package/bundle/ui-kit/List/ListProps.d.ts +3 -4
  67. package/bundle/ui-kit/Location/Location.d.ts +1 -18
  68. package/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
  69. package/bundle/{model → ui-kit}/PreventableEvent.d.ts +0 -0
  70. package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +2 -0
  71. package/bundle/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
  72. package/bundle/{components/Footer → ui-kit/Sitemap}/Sitemap.d.ts +2 -2
  73. package/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
  74. package/bundle/utils/Comparator.d.ts +4 -0
  75. package/bundle/utils/maxBy.d.ts +1 -0
  76. package/bundle/utils/minBy.d.ts +1 -0
  77. package/bundle/utils/sum.d.ts +1 -0
  78. package/bundle/utils/unique.d.ts +1 -0
  79. package/bundle/utils/url.d.ts +1 -1
  80. package/bundle/utils/zip.d.ts +4 -0
  81. package/dist/EventBus/defaultEventBus.d.ts +1 -0
  82. package/dist/EventBus/defaultEventBus.js.map +1 -1
  83. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  84. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
  85. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  86. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  87. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  88. package/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
  89. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
  90. package/dist/components/Blocks.js +0 -2
  91. package/dist/components/Blocks.js.map +1 -1
  92. package/dist/components/Bonus/BonusContent.d.ts +0 -1
  93. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
  94. package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
  95. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
  96. package/dist/components/Calculator/CalculatorContent.d.ts +2 -4
  97. package/dist/components/Carousel/CarouselContent.d.ts +1 -4
  98. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  99. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  100. package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -10
  101. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
  102. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
  103. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
  104. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
  105. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  106. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
  107. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  108. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
  109. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  110. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
  111. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
  112. package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
  113. package/dist/components/ContentPage/ContentPage.js +7 -1
  114. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  115. package/dist/components/ErrorBlock/ErrorBlock.js +2 -1
  116. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  117. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
  118. package/dist/components/Footer/Footer.fallback.js +1 -1
  119. package/dist/components/Footer/Footer.fallback.js.map +1 -1
  120. package/dist/components/Footer/Footer.js +4 -3
  121. package/dist/components/Footer/Footer.js.map +1 -1
  122. package/dist/components/Footer/Footer.mobile.js +1 -1
  123. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  124. package/dist/components/Footer/FooterDataProps.d.ts +2 -2
  125. package/dist/components/Footer/MediaButton.js +5 -2
  126. package/dist/components/Footer/MediaButton.js.map +1 -1
  127. package/dist/components/Footer/SocialMedia.js +1 -1
  128. package/dist/components/Footer/SocialMedia.js.map +1 -1
  129. package/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
  130. package/dist/components/Header/Header.fallback.js +1 -1
  131. package/dist/components/Header/Header.fallback.js.map +1 -1
  132. package/dist/components/Header/Header.js +1 -1
  133. package/dist/components/Header/Header.js.map +1 -1
  134. package/dist/components/Header/Header.mobile.js +1 -1
  135. package/dist/components/Header/Header.mobile.js.map +1 -1
  136. package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  137. package/dist/components/Header/HeaderSecondaryMenu.js +3 -1
  138. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  139. package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
  140. package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  141. package/dist/components/Headline/Headline.js +2 -2
  142. package/dist/components/Headline/Headline.js.map +1 -1
  143. package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
  144. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  145. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
  146. package/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
  147. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
  148. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
  149. package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  150. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  151. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
  152. package/dist/components/PictureText/PictureTextContent.d.ts +3 -21
  153. package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
  154. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  155. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  156. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
  157. package/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
  158. package/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
  159. package/dist/components/Tabs/TabsContent.d.ts +1 -4
  160. package/dist/components/TariffsTable/TariffsTableContent.d.ts +6 -11
  161. package/dist/components/TextBlock/TextBlockContent.d.ts +4 -9
  162. package/dist/components/Tile/TileContent.d.ts +3 -22
  163. package/dist/components/VerticalLayout/VerticalLayout.js +5 -3
  164. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  165. package/dist/components/Video/VideoContent.d.ts +2 -15
  166. package/dist/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
  167. package/dist/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
  168. package/dist/hooks/fallbackWCMSResource.js.map +1 -0
  169. package/dist/hooks/useCarouselControls.d.ts +0 -2
  170. package/dist/hooks/useCarouselControls.js +7 -15
  171. package/dist/hooks/useCarouselControls.js.map +1 -1
  172. package/dist/hooks/useLink.d.ts +1 -1
  173. package/dist/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
  174. package/{mobile/dist/services/sitemap → dist/hooks}/useSWRResource.js +1 -1
  175. package/dist/hooks/useSWRResource.js.map +1 -0
  176. package/dist/model/Bullets.d.ts +4 -0
  177. package/{mobile/dist/model/SitemapProps.js → dist/model/Bullets.js} +1 -1
  178. package/dist/model/Bullets.js.map +1 -0
  179. package/dist/model/Button.d.ts +15 -0
  180. package/{mobile/dist/services/sitemap/SitemapProps.js → dist/model/Button.js} +1 -1
  181. package/dist/model/Button.js.map +1 -0
  182. package/dist/model/HeadlineType.d.ts +4 -0
  183. package/dist/model/Picture.d.ts +3 -10
  184. package/dist/services/search/jaroWinklerDistance.d.ts +1 -0
  185. package/dist/services/search/jaroWinklerDistance.js +67 -0
  186. package/dist/services/search/jaroWinklerDistance.js.map +1 -0
  187. package/dist/services/search/joinMaps.d.ts +1 -0
  188. package/dist/services/search/joinMaps.js +10 -0
  189. package/dist/services/search/joinMaps.js.map +1 -0
  190. package/dist/services/search/search.d.ts +12 -0
  191. package/dist/services/search/search.js +39 -0
  192. package/dist/services/search/search.js.map +1 -0
  193. package/dist/services/search/textRank.d.ts +1 -0
  194. package/dist/services/search/textRank.js +14 -0
  195. package/dist/services/search/textRank.js.map +1 -0
  196. package/dist/services/search/tokenize.d.ts +1 -0
  197. package/dist/services/search/tokenize.js +9 -0
  198. package/dist/services/search/tokenize.js.map +1 -0
  199. package/dist/services/search/useSearch.d.ts +8 -0
  200. package/dist/services/search/useSearch.js +33 -0
  201. package/dist/services/search/useSearch.js.map +1 -0
  202. package/{bundle/services/sitemap/SitemapProps.d.ts → dist/services/sitemap/SitemapData.d.ts} +1 -1
  203. package/dist/{model/SitemapProps.js → services/sitemap/SitemapData.js} +1 -1
  204. package/dist/services/sitemap/SitemapData.js.map +1 -0
  205. package/dist/ui-kit/BlockWrapper.d.ts +1 -0
  206. package/dist/ui-kit/BlockWrapper.js +3 -2
  207. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  208. package/dist/ui-kit/Button/ButtonProps.d.ts +6 -7
  209. package/dist/ui-kit/Dialog/CloseButton.d.ts +7 -0
  210. package/dist/ui-kit/Dialog/CloseButton.js +8 -0
  211. package/dist/ui-kit/Dialog/CloseButton.js.map +1 -0
  212. package/dist/ui-kit/Dialog/Dialog.d.ts +7 -0
  213. package/dist/ui-kit/Dialog/Dialog.js +26 -0
  214. package/dist/ui-kit/Dialog/Dialog.js.map +1 -0
  215. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  216. package/dist/ui-kit/List/ListProps.d.ts +3 -4
  217. package/dist/ui-kit/Location/Location.d.ts +1 -18
  218. package/dist/ui-kit/Location/Location.js +11 -15
  219. package/dist/ui-kit/Location/Location.js.map +1 -1
  220. package/dist/ui-kit/Location/LocationProps.d.ts +16 -0
  221. package/dist/ui-kit/Location/LocationProps.js +2 -0
  222. package/dist/ui-kit/Location/LocationProps.js.map +1 -0
  223. package/dist/ui-kit/Location/SearchBar.js +1 -1
  224. package/dist/ui-kit/Location/SearchBar.js.map +1 -1
  225. package/dist/{model → ui-kit}/PreventableEvent.d.ts +0 -0
  226. package/dist/{model → ui-kit}/PreventableEvent.js +0 -0
  227. package/dist/ui-kit/PreventableEvent.js.map +1 -0
  228. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +2 -0
  229. package/dist/ui-kit/SearchBar/SearchBarInner.js +46 -16
  230. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  231. package/dist/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
  232. package/dist/ui-kit/SearchBar/SearchBarInput.js +14 -0
  233. package/dist/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
  234. package/{lib/components/Footer → dist/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
  235. package/dist/ui-kit/Sitemap/Sitemap.js +23 -0
  236. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -0
  237. package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
  238. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  239. package/dist/utils/Comparator.d.ts +4 -0
  240. package/dist/utils/Comparator.js +9 -0
  241. package/dist/utils/Comparator.js.map +1 -0
  242. package/dist/utils/fetchJSON.js +1 -1
  243. package/dist/utils/fetchJSON.js.map +1 -1
  244. package/dist/utils/groupBy.js +6 -6
  245. package/dist/utils/groupBy.js.map +1 -1
  246. package/dist/utils/maxBy.d.ts +1 -0
  247. package/dist/utils/maxBy.js +2 -1
  248. package/dist/utils/maxBy.js.map +1 -1
  249. package/dist/utils/minBy.d.ts +1 -0
  250. package/dist/utils/minBy.js +2 -1
  251. package/dist/utils/minBy.js.map +1 -1
  252. package/dist/utils/sum.d.ts +1 -0
  253. package/dist/utils/sum.js +5 -0
  254. package/dist/utils/sum.js.map +1 -0
  255. package/dist/utils/unique.d.ts +1 -0
  256. package/dist/utils/unique.js +5 -0
  257. package/dist/utils/unique.js.map +1 -0
  258. package/dist/utils/url.d.ts +1 -1
  259. package/dist/utils/url.js.map +1 -1
  260. package/dist/utils/zip.d.ts +4 -0
  261. package/dist/utils/zip.js +7 -0
  262. package/dist/utils/zip.js.map +1 -0
  263. package/lib/EventBus/defaultEventBus.d.ts +1 -0
  264. package/lib/EventBus/defaultEventBus.js.map +1 -1
  265. package/lib/common.css +1 -1
  266. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  267. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
  268. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  269. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  270. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  271. package/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
  272. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
  273. package/lib/components/Blocks.js +0 -2
  274. package/lib/components/Blocks.js.map +1 -1
  275. package/lib/components/Bonus/BonusContent.d.ts +0 -1
  276. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
  277. package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
  278. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
  279. package/lib/components/Calculator/CalculatorContent.d.ts +2 -4
  280. package/lib/components/Carousel/CarouselContent.d.ts +1 -4
  281. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  282. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  283. package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -10
  284. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
  285. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
  286. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
  287. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
  288. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  289. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
  290. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  291. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +4 -0
  292. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
  293. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  294. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
  295. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
  296. package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
  297. package/lib/components/ContentPage/ContentPage.js +7 -1
  298. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  299. package/lib/components/ErrorBlock/ErrorBlock.js +2 -1
  300. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  301. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
  302. package/lib/components/Footer/Footer.fallback.js +1 -1
  303. package/lib/components/Footer/Footer.fallback.js.map +1 -1
  304. package/lib/components/Footer/Footer.js +4 -3
  305. package/lib/components/Footer/Footer.js.map +1 -1
  306. package/lib/components/Footer/Footer.mobile.js +1 -1
  307. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  308. package/lib/components/Footer/FooterDataProps.d.ts +2 -2
  309. package/lib/components/Footer/MediaButton.js +5 -2
  310. package/lib/components/Footer/MediaButton.js.map +1 -1
  311. package/lib/components/Footer/SocialMedia.js +1 -1
  312. package/lib/components/Footer/SocialMedia.js.map +1 -1
  313. package/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
  314. package/lib/components/Header/Header.fallback.js +1 -1
  315. package/lib/components/Header/Header.fallback.js.map +1 -1
  316. package/lib/components/Header/Header.js +1 -1
  317. package/lib/components/Header/Header.js.map +1 -1
  318. package/lib/components/Header/Header.mobile.js +1 -1
  319. package/lib/components/Header/Header.mobile.js.map +1 -1
  320. package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  321. package/lib/components/Header/HeaderSecondaryMenu.js +3 -1
  322. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  323. package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
  324. package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  325. package/lib/components/Headline/Headline.js +2 -2
  326. package/lib/components/Headline/Headline.js.map +1 -1
  327. package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
  328. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  329. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
  330. package/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
  331. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
  332. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
  333. package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  334. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  335. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
  336. package/lib/components/PictureText/PictureTextContent.d.ts +3 -21
  337. package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
  338. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  339. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  340. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
  341. package/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
  342. package/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
  343. package/lib/components/Tabs/TabsContent.d.ts +1 -4
  344. package/lib/components/TariffsTable/TariffsTableContent.d.ts +6 -11
  345. package/lib/components/TextBlock/TextBlockContent.d.ts +4 -9
  346. package/lib/components/Tile/TileContent.d.ts +3 -22
  347. package/lib/components/VerticalLayout/VerticalLayout.js +5 -3
  348. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  349. package/lib/components/Video/VideoContent.d.ts +2 -15
  350. package/lib/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
  351. package/lib/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
  352. package/lib/hooks/fallbackWCMSResource.js.map +1 -0
  353. package/lib/hooks/useCarouselControls.d.ts +0 -2
  354. package/lib/hooks/useCarouselControls.js +7 -15
  355. package/lib/hooks/useCarouselControls.js.map +1 -1
  356. package/lib/hooks/useLink.d.ts +1 -1
  357. package/lib/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
  358. package/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
  359. package/lib/hooks/useSWRResource.js.map +1 -0
  360. package/lib/model/Bullets.d.ts +4 -0
  361. package/lib/model/Bullets.js +2 -0
  362. package/lib/model/Bullets.js.map +1 -0
  363. package/lib/model/Button.d.ts +15 -0
  364. package/lib/model/Button.js +2 -0
  365. package/lib/model/Button.js.map +1 -0
  366. package/lib/model/HeadlineType.d.ts +4 -0
  367. package/lib/model/Picture.d.ts +3 -10
  368. package/lib/services/search/jaroWinklerDistance.d.ts +1 -0
  369. package/lib/services/search/jaroWinklerDistance.js +64 -0
  370. package/lib/services/search/jaroWinklerDistance.js.map +1 -0
  371. package/lib/services/search/joinMaps.d.ts +1 -0
  372. package/lib/services/search/joinMaps.js +7 -0
  373. package/lib/services/search/joinMaps.js.map +1 -0
  374. package/lib/services/search/search.d.ts +12 -0
  375. package/lib/services/search/search.js +36 -0
  376. package/lib/services/search/search.js.map +1 -0
  377. package/lib/services/search/textRank.d.ts +1 -0
  378. package/lib/services/search/textRank.js +11 -0
  379. package/lib/services/search/textRank.js.map +1 -0
  380. package/lib/services/search/tokenize.d.ts +1 -0
  381. package/lib/services/search/tokenize.js +6 -0
  382. package/lib/services/search/tokenize.js.map +1 -0
  383. package/lib/services/search/useSearch.d.ts +8 -0
  384. package/lib/services/search/useSearch.js +30 -0
  385. package/lib/services/search/useSearch.js.map +1 -0
  386. package/{mobile/bundle/services/sitemap/SitemapProps.d.ts → lib/services/sitemap/SitemapData.d.ts} +1 -1
  387. package/lib/services/sitemap/SitemapData.js +2 -0
  388. package/lib/services/sitemap/SitemapData.js.map +1 -0
  389. package/lib/ui-kit/BlockWrapper.d.ts +1 -0
  390. package/lib/ui-kit/BlockWrapper.js +3 -2
  391. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  392. package/lib/ui-kit/Button/ButtonProps.d.ts +6 -7
  393. package/lib/ui-kit/Dialog/CloseButton.d.ts +7 -0
  394. package/lib/ui-kit/Dialog/CloseButton.js +6 -0
  395. package/lib/ui-kit/Dialog/CloseButton.js.map +1 -0
  396. package/lib/ui-kit/Dialog/Dialog.d.ts +7 -0
  397. package/lib/ui-kit/Dialog/Dialog.js +24 -0
  398. package/lib/ui-kit/Dialog/Dialog.js.map +1 -0
  399. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  400. package/lib/ui-kit/List/ListProps.d.ts +3 -4
  401. package/lib/ui-kit/Location/Location.d.ts +1 -18
  402. package/lib/ui-kit/Location/Location.js +12 -16
  403. package/lib/ui-kit/Location/Location.js.map +1 -1
  404. package/lib/ui-kit/Location/LocationProps.d.ts +16 -0
  405. package/lib/ui-kit/Location/LocationProps.js +2 -0
  406. package/lib/ui-kit/Location/LocationProps.js.map +1 -0
  407. package/lib/ui-kit/Location/SearchBar.js +1 -1
  408. package/lib/ui-kit/Location/SearchBar.js.map +1 -1
  409. package/lib/{model → ui-kit}/PreventableEvent.d.ts +0 -0
  410. package/lib/{model → ui-kit}/PreventableEvent.js +0 -0
  411. package/lib/ui-kit/PreventableEvent.js.map +1 -0
  412. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +2 -0
  413. package/lib/ui-kit/SearchBar/SearchBarInner.js +46 -16
  414. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  415. package/lib/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
  416. package/lib/ui-kit/SearchBar/SearchBarInput.js +12 -0
  417. package/lib/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
  418. package/{mobile/bundle/components/Footer → lib/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
  419. package/lib/ui-kit/Sitemap/Sitemap.js +21 -0
  420. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -0
  421. package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
  422. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  423. package/lib/utils/Comparator.d.ts +4 -0
  424. package/lib/utils/Comparator.js +4 -0
  425. package/lib/utils/Comparator.js.map +1 -0
  426. package/lib/utils/fetchJSON.js +1 -1
  427. package/lib/utils/fetchJSON.js.map +1 -1
  428. package/lib/utils/groupBy.js +6 -6
  429. package/lib/utils/groupBy.js.map +1 -1
  430. package/lib/utils/maxBy.d.ts +1 -0
  431. package/lib/utils/maxBy.js +1 -0
  432. package/lib/utils/maxBy.js.map +1 -1
  433. package/lib/utils/minBy.d.ts +1 -0
  434. package/lib/utils/minBy.js +1 -0
  435. package/lib/utils/minBy.js.map +1 -1
  436. package/lib/utils/sum.d.ts +1 -0
  437. package/lib/utils/sum.js +2 -0
  438. package/lib/utils/sum.js.map +1 -0
  439. package/lib/utils/unique.d.ts +1 -0
  440. package/lib/utils/unique.js +2 -0
  441. package/lib/utils/unique.js.map +1 -0
  442. package/lib/utils/url.d.ts +1 -1
  443. package/lib/utils/url.js.map +1 -1
  444. package/lib/utils/zip.d.ts +4 -0
  445. package/lib/utils/zip.js +4 -0
  446. package/lib/utils/zip.js.map +1 -0
  447. package/mobile/bundle/EventBus/defaultEventBus.d.ts +1 -0
  448. package/mobile/bundle/bundle.umd.js +266 -30
  449. package/mobile/bundle/bundle.umd.min.js +1 -1
  450. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
  451. package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
  452. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
  453. package/mobile/bundle/components/Bonus/BonusContent.d.ts +0 -1
  454. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
  455. package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
  456. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
  457. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
  458. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -4
  459. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
  460. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
  461. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
  462. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
  463. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
  464. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  465. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
  466. package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
  467. package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +2 -3
  468. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
  469. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  470. package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
  471. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  472. package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
  473. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
  474. package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
  475. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
  476. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
  477. package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  478. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
  479. package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
  480. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
  481. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
  482. package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
  483. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
  484. package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -4
  485. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +6 -11
  486. package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +4 -9
  487. package/mobile/bundle/components/Tile/TileContent.d.ts +3 -22
  488. package/mobile/bundle/components/Video/VideoContent.d.ts +2 -15
  489. package/mobile/bundle/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
  490. package/mobile/bundle/hooks/useCarouselControls.d.ts +0 -2
  491. package/mobile/bundle/hooks/useLink.d.ts +1 -1
  492. package/mobile/bundle/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
  493. package/mobile/bundle/model/Bullets.d.ts +4 -0
  494. package/mobile/bundle/model/Button.d.ts +15 -0
  495. package/mobile/bundle/model/HeadlineType.d.ts +4 -0
  496. package/mobile/bundle/model/Picture.d.ts +3 -10
  497. package/mobile/bundle/services/search/jaroWinklerDistance.d.ts +1 -0
  498. package/mobile/bundle/services/search/joinMaps.d.ts +1 -0
  499. package/mobile/bundle/services/search/search.d.ts +12 -0
  500. package/mobile/bundle/services/search/textRank.d.ts +1 -0
  501. package/mobile/bundle/services/search/tokenize.d.ts +1 -0
  502. package/mobile/bundle/services/search/useSearch.d.ts +8 -0
  503. package/{dist/services/sitemap/SitemapProps.d.ts → mobile/bundle/services/sitemap/SitemapData.d.ts} +1 -1
  504. package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -0
  505. package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +6 -7
  506. package/mobile/bundle/ui-kit/Dialog/CloseButton.d.ts +7 -0
  507. package/mobile/bundle/ui-kit/Dialog/Dialog.d.ts +7 -0
  508. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  509. package/mobile/bundle/ui-kit/List/ListProps.d.ts +3 -4
  510. package/mobile/bundle/ui-kit/Location/Location.d.ts +1 -18
  511. package/mobile/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
  512. package/mobile/bundle/{model → ui-kit}/PreventableEvent.d.ts +0 -0
  513. package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +2 -0
  514. package/mobile/bundle/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
  515. package/{dist/components/Footer → mobile/bundle/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
  516. package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
  517. package/mobile/bundle/utils/Comparator.d.ts +4 -0
  518. package/mobile/bundle/utils/maxBy.d.ts +1 -0
  519. package/mobile/bundle/utils/minBy.d.ts +1 -0
  520. package/mobile/bundle/utils/sum.d.ts +1 -0
  521. package/mobile/bundle/utils/unique.d.ts +1 -0
  522. package/mobile/bundle/utils/url.d.ts +1 -1
  523. package/mobile/bundle/utils/zip.d.ts +4 -0
  524. package/mobile/dist/EventBus/defaultEventBus.d.ts +1 -0
  525. package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
  526. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  527. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
  528. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  529. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  530. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  531. package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
  532. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
  533. package/mobile/dist/components/Bonus/BonusContent.d.ts +0 -1
  534. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
  535. package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
  536. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
  537. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -4
  538. package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -4
  539. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  540. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  541. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -10
  542. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
  543. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
  544. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
  545. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
  546. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  547. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
  548. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  549. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
  550. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  551. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
  552. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
  553. package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +2 -3
  554. package/mobile/dist/components/ContentPage/ContentPage.js +7 -1
  555. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  556. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -1
  557. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  558. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
  559. package/mobile/dist/components/Footer/Footer.fallback.js +1 -1
  560. package/mobile/dist/components/Footer/Footer.fallback.js.map +1 -1
  561. package/mobile/dist/components/Footer/Footer.js +1 -1
  562. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  563. package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
  564. package/mobile/dist/components/Footer/MediaButton.js +5 -2
  565. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  566. package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
  567. package/mobile/dist/components/Header/Header.fallback.js +1 -1
  568. package/mobile/dist/components/Header/Header.fallback.js.map +1 -1
  569. package/mobile/dist/components/Header/Header.js +1 -1
  570. package/mobile/dist/components/Header/Header.js.map +1 -1
  571. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  572. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -1
  573. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  574. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
  575. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  576. package/mobile/dist/components/Headline/Headline.js +2 -2
  577. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  578. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
  579. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  580. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
  581. package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
  582. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
  583. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
  584. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  585. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  586. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
  587. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +3 -21
  588. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
  589. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
  590. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
  591. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
  592. package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -4
  593. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +6 -11
  594. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +4 -9
  595. package/mobile/dist/components/Tile/TileContent.d.ts +3 -22
  596. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +5 -3
  597. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  598. package/mobile/dist/components/Video/VideoContent.d.ts +2 -15
  599. package/mobile/dist/hooks/fallbackWCMSResource.d.ts +2 -0
  600. package/mobile/dist/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
  601. package/mobile/dist/hooks/fallbackWCMSResource.js.map +1 -0
  602. package/mobile/dist/hooks/useCarouselControls.d.ts +0 -2
  603. package/mobile/dist/hooks/useCarouselControls.js +7 -15
  604. package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
  605. package/mobile/dist/hooks/useLink.d.ts +1 -1
  606. package/mobile/dist/hooks/useSWRResource.d.ts +2 -0
  607. package/{dist/services/sitemap → mobile/dist/hooks}/useSWRResource.js +1 -1
  608. package/mobile/dist/hooks/useSWRResource.js.map +1 -0
  609. package/mobile/dist/model/Bullets.d.ts +4 -0
  610. package/{dist/services/sitemap/SitemapProps.js → mobile/dist/model/Bullets.js} +1 -1
  611. package/mobile/dist/model/Bullets.js.map +1 -0
  612. package/mobile/dist/model/Button.d.ts +15 -0
  613. package/mobile/dist/model/Button.js +2 -0
  614. package/mobile/dist/model/Button.js.map +1 -0
  615. package/mobile/dist/model/HeadlineType.d.ts +4 -0
  616. package/mobile/dist/model/Picture.d.ts +3 -10
  617. package/mobile/dist/services/search/jaroWinklerDistance.d.ts +1 -0
  618. package/mobile/dist/services/search/jaroWinklerDistance.js +67 -0
  619. package/mobile/dist/services/search/jaroWinklerDistance.js.map +1 -0
  620. package/mobile/dist/services/search/joinMaps.d.ts +1 -0
  621. package/mobile/dist/services/search/joinMaps.js +10 -0
  622. package/mobile/dist/services/search/joinMaps.js.map +1 -0
  623. package/mobile/dist/services/search/search.d.ts +12 -0
  624. package/mobile/dist/services/search/search.js +39 -0
  625. package/mobile/dist/services/search/search.js.map +1 -0
  626. package/mobile/dist/services/search/textRank.d.ts +1 -0
  627. package/mobile/dist/services/search/textRank.js +14 -0
  628. package/mobile/dist/services/search/textRank.js.map +1 -0
  629. package/mobile/dist/services/search/tokenize.d.ts +1 -0
  630. package/mobile/dist/services/search/tokenize.js +9 -0
  631. package/mobile/dist/services/search/tokenize.js.map +1 -0
  632. package/mobile/dist/services/search/useSearch.d.ts +8 -0
  633. package/mobile/dist/services/search/useSearch.js +33 -0
  634. package/mobile/dist/services/search/useSearch.js.map +1 -0
  635. package/mobile/dist/services/sitemap/SitemapData.d.ts +32 -0
  636. package/mobile/dist/services/sitemap/SitemapData.js +2 -0
  637. package/mobile/dist/services/sitemap/SitemapData.js.map +1 -0
  638. package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -0
  639. package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
  640. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  641. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +6 -7
  642. package/mobile/dist/ui-kit/Dialog/CloseButton.d.ts +7 -0
  643. package/mobile/dist/ui-kit/Dialog/CloseButton.js +8 -0
  644. package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +1 -0
  645. package/mobile/dist/ui-kit/Dialog/Dialog.d.ts +7 -0
  646. package/mobile/dist/ui-kit/Dialog/Dialog.js +26 -0
  647. package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -0
  648. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  649. package/mobile/dist/ui-kit/List/ListProps.d.ts +3 -4
  650. package/mobile/dist/ui-kit/Location/Location.d.ts +1 -18
  651. package/mobile/dist/ui-kit/Location/Location.js +11 -15
  652. package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
  653. package/mobile/dist/ui-kit/Location/LocationProps.d.ts +16 -0
  654. package/mobile/dist/ui-kit/Location/LocationProps.js +2 -0
  655. package/mobile/dist/ui-kit/Location/LocationProps.js.map +1 -0
  656. package/mobile/dist/ui-kit/Location/SearchBar.js +1 -1
  657. package/mobile/dist/ui-kit/Location/SearchBar.js.map +1 -1
  658. package/mobile/dist/{model → ui-kit}/PreventableEvent.d.ts +0 -0
  659. package/mobile/dist/{model → ui-kit}/PreventableEvent.js +0 -0
  660. package/mobile/dist/ui-kit/PreventableEvent.js.map +1 -0
  661. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +2 -0
  662. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +46 -16
  663. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  664. package/mobile/dist/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
  665. package/mobile/dist/ui-kit/SearchBar/SearchBarInput.js +14 -0
  666. package/mobile/dist/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
  667. package/mobile/dist/ui-kit/Sitemap/Sitemap.d.ts +6 -0
  668. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +23 -0
  669. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -0
  670. package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
  671. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  672. package/mobile/dist/utils/Comparator.d.ts +4 -0
  673. package/mobile/dist/utils/Comparator.js +9 -0
  674. package/mobile/dist/utils/Comparator.js.map +1 -0
  675. package/mobile/dist/utils/fetchJSON.js +1 -1
  676. package/mobile/dist/utils/fetchJSON.js.map +1 -1
  677. package/mobile/dist/utils/groupBy.js +6 -6
  678. package/mobile/dist/utils/groupBy.js.map +1 -1
  679. package/mobile/dist/utils/maxBy.d.ts +1 -0
  680. package/mobile/dist/utils/maxBy.js +2 -1
  681. package/mobile/dist/utils/maxBy.js.map +1 -1
  682. package/mobile/dist/utils/minBy.d.ts +1 -0
  683. package/mobile/dist/utils/minBy.js +2 -1
  684. package/mobile/dist/utils/minBy.js.map +1 -1
  685. package/mobile/dist/utils/sum.d.ts +1 -0
  686. package/mobile/dist/utils/sum.js +5 -0
  687. package/mobile/dist/utils/sum.js.map +1 -0
  688. package/mobile/dist/utils/unique.d.ts +1 -0
  689. package/mobile/dist/utils/unique.js +5 -0
  690. package/mobile/dist/utils/unique.js.map +1 -0
  691. package/mobile/dist/utils/url.d.ts +1 -1
  692. package/mobile/dist/utils/url.js.map +1 -1
  693. package/mobile/dist/utils/zip.d.ts +4 -0
  694. package/mobile/dist/utils/zip.js +7 -0
  695. package/mobile/dist/utils/zip.js.map +1 -0
  696. package/mobile/lib/EventBus/defaultEventBus.d.ts +1 -0
  697. package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
  698. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  699. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
  700. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  701. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  702. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  703. package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
  704. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
  705. package/mobile/lib/components/Bonus/BonusContent.d.ts +0 -1
  706. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
  707. package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
  708. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
  709. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -4
  710. package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -4
  711. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  712. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  713. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -10
  714. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
  715. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
  716. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
  717. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
  718. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  719. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
  720. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  721. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
  722. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  723. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
  724. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
  725. package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +2 -3
  726. package/mobile/lib/components/ContentPage/ContentPage.js +7 -1
  727. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  728. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -1
  729. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  730. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
  731. package/mobile/lib/components/Footer/Footer.fallback.js +1 -1
  732. package/mobile/lib/components/Footer/Footer.fallback.js.map +1 -1
  733. package/mobile/lib/components/Footer/Footer.js +1 -1
  734. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  735. package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
  736. package/mobile/lib/components/Footer/MediaButton.js +5 -2
  737. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  738. package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
  739. package/mobile/lib/components/Header/Header.fallback.js +1 -1
  740. package/mobile/lib/components/Header/Header.fallback.js.map +1 -1
  741. package/mobile/lib/components/Header/Header.js +1 -1
  742. package/mobile/lib/components/Header/Header.js.map +1 -1
  743. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  744. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -1
  745. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  746. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
  747. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  748. package/mobile/lib/components/Headline/Headline.js +2 -2
  749. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  750. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
  751. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  752. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
  753. package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
  754. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
  755. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
  756. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
  757. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  758. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
  759. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +3 -21
  760. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
  761. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
  762. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
  763. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
  764. package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -4
  765. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +6 -11
  766. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +4 -9
  767. package/mobile/lib/components/Tile/TileContent.d.ts +3 -22
  768. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +5 -3
  769. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  770. package/mobile/lib/components/Video/VideoContent.d.ts +2 -15
  771. package/mobile/lib/hooks/fallbackWCMSResource.d.ts +2 -0
  772. package/mobile/lib/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
  773. package/mobile/lib/hooks/fallbackWCMSResource.js.map +1 -0
  774. package/mobile/lib/hooks/useCarouselControls.d.ts +0 -2
  775. package/mobile/lib/hooks/useCarouselControls.js +7 -15
  776. package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
  777. package/mobile/lib/hooks/useLink.d.ts +1 -1
  778. package/mobile/lib/hooks/useSWRResource.d.ts +2 -0
  779. package/mobile/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
  780. package/mobile/lib/hooks/useSWRResource.js.map +1 -0
  781. package/mobile/lib/model/Bullets.d.ts +4 -0
  782. package/mobile/lib/model/Bullets.js +2 -0
  783. package/mobile/lib/model/Bullets.js.map +1 -0
  784. package/mobile/lib/model/Button.d.ts +15 -0
  785. package/mobile/lib/model/Button.js +2 -0
  786. package/mobile/lib/model/Button.js.map +1 -0
  787. package/mobile/lib/model/HeadlineType.d.ts +4 -0
  788. package/mobile/lib/model/Picture.d.ts +3 -10
  789. package/mobile/lib/services/search/jaroWinklerDistance.d.ts +1 -0
  790. package/mobile/lib/services/search/jaroWinklerDistance.js +64 -0
  791. package/mobile/lib/services/search/jaroWinklerDistance.js.map +1 -0
  792. package/mobile/lib/services/search/joinMaps.d.ts +1 -0
  793. package/mobile/lib/services/search/joinMaps.js +7 -0
  794. package/mobile/lib/services/search/joinMaps.js.map +1 -0
  795. package/mobile/lib/services/search/search.d.ts +12 -0
  796. package/mobile/lib/services/search/search.js +36 -0
  797. package/mobile/lib/services/search/search.js.map +1 -0
  798. package/mobile/lib/services/search/textRank.d.ts +1 -0
  799. package/mobile/lib/services/search/textRank.js +11 -0
  800. package/mobile/lib/services/search/textRank.js.map +1 -0
  801. package/mobile/lib/services/search/tokenize.d.ts +1 -0
  802. package/mobile/lib/services/search/tokenize.js +6 -0
  803. package/mobile/lib/services/search/tokenize.js.map +1 -0
  804. package/mobile/lib/services/search/useSearch.d.ts +8 -0
  805. package/mobile/lib/services/search/useSearch.js +30 -0
  806. package/mobile/lib/services/search/useSearch.js.map +1 -0
  807. package/mobile/lib/services/sitemap/SitemapData.d.ts +32 -0
  808. package/mobile/lib/services/sitemap/SitemapData.js +2 -0
  809. package/mobile/lib/services/sitemap/SitemapData.js.map +1 -0
  810. package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -0
  811. package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
  812. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  813. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +6 -7
  814. package/mobile/lib/ui-kit/Dialog/CloseButton.d.ts +7 -0
  815. package/mobile/lib/ui-kit/Dialog/CloseButton.js +6 -0
  816. package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +1 -0
  817. package/mobile/lib/ui-kit/Dialog/Dialog.d.ts +7 -0
  818. package/mobile/lib/ui-kit/Dialog/Dialog.js +24 -0
  819. package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -0
  820. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
  821. package/mobile/lib/ui-kit/List/ListProps.d.ts +3 -4
  822. package/mobile/lib/ui-kit/Location/Location.d.ts +1 -18
  823. package/mobile/lib/ui-kit/Location/Location.js +12 -16
  824. package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
  825. package/mobile/lib/ui-kit/Location/LocationProps.d.ts +16 -0
  826. package/mobile/lib/ui-kit/Location/LocationProps.js +2 -0
  827. package/mobile/lib/ui-kit/Location/LocationProps.js.map +1 -0
  828. package/mobile/lib/ui-kit/Location/SearchBar.js +1 -1
  829. package/mobile/lib/ui-kit/Location/SearchBar.js.map +1 -1
  830. package/mobile/lib/{model → ui-kit}/PreventableEvent.d.ts +0 -0
  831. package/mobile/lib/{model → ui-kit}/PreventableEvent.js +0 -0
  832. package/mobile/lib/ui-kit/PreventableEvent.js.map +1 -0
  833. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +2 -0
  834. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +46 -16
  835. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  836. package/mobile/lib/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
  837. package/mobile/lib/ui-kit/SearchBar/SearchBarInput.js +12 -0
  838. package/mobile/lib/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
  839. package/mobile/lib/ui-kit/Sitemap/Sitemap.d.ts +6 -0
  840. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +21 -0
  841. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -0
  842. package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
  843. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  844. package/mobile/lib/utils/Comparator.d.ts +4 -0
  845. package/mobile/lib/utils/Comparator.js +4 -0
  846. package/mobile/lib/utils/Comparator.js.map +1 -0
  847. package/mobile/lib/utils/fetchJSON.js +1 -1
  848. package/mobile/lib/utils/fetchJSON.js.map +1 -1
  849. package/mobile/lib/utils/groupBy.js +6 -6
  850. package/mobile/lib/utils/groupBy.js.map +1 -1
  851. package/mobile/lib/utils/maxBy.d.ts +1 -0
  852. package/mobile/lib/utils/maxBy.js +1 -0
  853. package/mobile/lib/utils/maxBy.js.map +1 -1
  854. package/mobile/lib/utils/minBy.d.ts +1 -0
  855. package/mobile/lib/utils/minBy.js +1 -0
  856. package/mobile/lib/utils/minBy.js.map +1 -1
  857. package/mobile/lib/utils/sum.d.ts +1 -0
  858. package/mobile/lib/utils/sum.js +2 -0
  859. package/mobile/lib/utils/sum.js.map +1 -0
  860. package/mobile/lib/utils/unique.d.ts +1 -0
  861. package/mobile/lib/utils/unique.js +2 -0
  862. package/mobile/lib/utils/unique.js.map +1 -0
  863. package/mobile/lib/utils/url.d.ts +1 -1
  864. package/mobile/lib/utils/url.js.map +1 -1
  865. package/mobile/lib/utils/zip.d.ts +4 -0
  866. package/mobile/lib/utils/zip.js +4 -0
  867. package/mobile/lib/utils/zip.js.map +1 -0
  868. package/mobile/src/EventBus/defaultEventBus.ts +1 -0
  869. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
  870. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
  871. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
  872. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
  873. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  874. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
  875. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +1 -1
  876. package/mobile/src/components/BaseTile/BaseTileProps.ts +2 -2
  877. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
  878. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
  879. package/mobile/src/components/Bonus/Bonus.example.json +2 -1
  880. package/mobile/src/components/Bonus/Bonus.ui.json +1 -1
  881. package/mobile/src/components/Bonus/BonusContent.ts +0 -1
  882. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
  883. package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
  884. package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
  885. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
  886. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
  887. package/mobile/src/components/Calculator/CalculatorContent.ts +6 -7
  888. package/mobile/src/components/Carousel/Carousel.example.json +2 -1
  889. package/mobile/src/components/Carousel/CarouselContent.ts +1 -4
  890. package/mobile/src/components/CarouselCard/CarouselCard.example.json +4 -2
  891. package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -3
  892. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +3 -10
  893. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
  894. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
  895. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
  896. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
  897. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
  898. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
  899. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
  900. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
  901. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
  902. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
  903. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
  904. package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
  905. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
  906. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +3 -3
  907. package/mobile/src/components/ContentPage/ContentPage.tsx +16 -1
  908. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
  909. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
  910. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
  911. package/mobile/src/components/Footer/Footer.fallback.ts +1 -1
  912. package/mobile/src/components/Footer/Footer.tsx +3 -3
  913. package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
  914. package/mobile/src/components/Footer/MediaButton.tsx +13 -7
  915. package/mobile/src/components/GracePeriod/GracePeriod.example.json +15 -0
  916. package/mobile/src/components/GracePeriod/GracePeriod.ui.json +1 -1
  917. package/mobile/src/components/GracePeriod/GracePeriodContent.ts +3 -14
  918. package/mobile/src/components/Header/Header.fallback.ts +1 -1
  919. package/mobile/src/components/Header/Header.tsx +3 -3
  920. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +6 -3
  921. package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +2 -1
  922. package/mobile/src/components/Headline/Headline.tsx +5 -6
  923. package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
  924. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
  925. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
  926. package/mobile/src/components/ImgBlock/ImgBlockContent.ts +2 -4
  927. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
  928. package/mobile/src/components/LinkDocs/LinkDocs.example.json +9 -2
  929. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +4 -17
  930. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
  931. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
  932. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
  933. package/mobile/src/components/PictureText/PictureText.example.json +9 -1
  934. package/mobile/src/components/PictureText/PictureTextContent.ts +4 -21
  935. package/mobile/src/components/ProductBlock/ProductBlock.example.json +10 -1
  936. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +5 -23
  937. package/mobile/src/components/ProductTile/ProductTile.example.json +10 -2
  938. package/mobile/src/components/ProductTile/ProductTileContent.ts +3 -17
  939. package/mobile/src/components/Recommendation/Recommendation.example.json +5 -1
  940. package/mobile/src/components/Recommendation/RecommendationContent.ts +2 -28
  941. package/mobile/src/components/StepsBlock/StepsBlock.example.json +8 -4
  942. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +19 -33
  943. package/mobile/src/components/Tabs/Tabs.example.json +2 -1
  944. package/mobile/src/components/Tabs/TabsContent.ts +1 -4
  945. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -11
  946. package/mobile/src/components/TextBlock/TextBlockContent.ts +8 -13
  947. package/mobile/src/components/Tile/Tile.example.json +9 -1
  948. package/mobile/src/components/Tile/TileContent.ts +5 -22
  949. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
  950. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
  951. package/mobile/src/components/Video/Video.example.json +7 -1
  952. package/mobile/src/components/Video/VideoContent.ts +2 -15
  953. package/mobile/src/{services/sitemap → hooks}/fallbackWCMSResource.ts +1 -1
  954. package/mobile/src/hooks/useCarouselControls.ts +7 -30
  955. package/mobile/src/hooks/useLink.ts +1 -1
  956. package/{src/services/sitemap → mobile/src/hooks}/useSWRResource.ts +2 -2
  957. package/mobile/src/model/Bullets.ts +4 -0
  958. package/mobile/src/model/Button.ts +16 -0
  959. package/mobile/src/model/HeadlineType.ts +5 -0
  960. package/mobile/src/model/Picture.ts +3 -10
  961. package/mobile/src/services/search/jaroWinklerDistance.ts +98 -0
  962. package/mobile/src/services/search/joinMaps.ts +9 -0
  963. package/mobile/src/services/search/search.ts +73 -0
  964. package/mobile/src/services/search/textRank.ts +14 -0
  965. package/mobile/src/services/search/tokenize.ts +7 -0
  966. package/mobile/src/services/search/useSearch.ts +56 -0
  967. package/mobile/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
  968. package/mobile/src/ui-kit/BlockWrapper.tsx +8 -3
  969. package/mobile/src/ui-kit/Button/ButtonProps.ts +6 -5
  970. package/mobile/src/ui-kit/Dialog/CloseButton.tsx +22 -0
  971. package/mobile/src/ui-kit/Dialog/Dialog.tsx +54 -0
  972. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
  973. package/mobile/src/ui-kit/List/ListProps.ts +11 -11
  974. package/mobile/src/ui-kit/Location/Location.tsx +45 -70
  975. package/mobile/src/ui-kit/Location/LocationProps.ts +25 -0
  976. package/mobile/src/ui-kit/Location/SearchBar.tsx +1 -1
  977. package/mobile/src/{model → ui-kit}/PreventableEvent.ts +0 -0
  978. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +91 -51
  979. package/mobile/src/ui-kit/SearchBar/SearchBarInput.tsx +46 -0
  980. package/mobile/src/{components/Footer → ui-kit/Sitemap}/Sitemap.tsx +12 -11
  981. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
  982. package/mobile/src/utils/Comparator.ts +14 -0
  983. package/mobile/src/utils/fetchJSON.ts +1 -1
  984. package/mobile/src/utils/groupBy.ts +8 -7
  985. package/mobile/src/utils/maxBy.ts +2 -0
  986. package/mobile/src/utils/minBy.ts +2 -0
  987. package/mobile/src/utils/sum.ts +1 -0
  988. package/mobile/src/utils/unique.ts +1 -0
  989. package/mobile/src/utils/url.ts +1 -1
  990. package/mobile/src/utils/zip.ts +8 -0
  991. package/package.json +2 -2
  992. package/src/EventBus/defaultEventBus.ts +1 -0
  993. package/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
  994. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
  995. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
  996. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
  997. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
  998. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
  999. package/src/components/ApplicationForm/ApplicationFormWed.tsx +1 -1
  1000. package/src/components/BaseTile/BaseTileProps.ts +2 -2
  1001. package/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
  1002. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
  1003. package/src/components/Blocks.ts +0 -2
  1004. package/src/components/Bonus/Bonus.example.json +2 -1
  1005. package/src/components/Bonus/Bonus.ui.json +1 -1
  1006. package/src/components/Bonus/BonusContent.ts +0 -1
  1007. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
  1008. package/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
  1009. package/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
  1010. package/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
  1011. package/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
  1012. package/src/components/Calculator/CalculatorContent.ts +6 -7
  1013. package/src/components/Carousel/Carousel.example.json +2 -1
  1014. package/src/components/Carousel/Carousel.fixture.tsx +5 -4
  1015. package/src/components/Carousel/CarouselContent.ts +1 -4
  1016. package/src/components/CarouselCard/CarouselCard.example.json +4 -2
  1017. package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -0
  1018. package/src/components/CarouselCard/CarouselCard.tsx +4 -3
  1019. package/src/components/CarouselCard/CarouselCardContent.ts +3 -10
  1020. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
  1021. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
  1022. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
  1023. package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
  1024. package/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
  1025. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
  1026. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -0
  1027. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
  1028. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
  1029. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
  1030. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +82 -22
  1031. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
  1032. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
  1033. package/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
  1034. package/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
  1035. package/src/components/ComparisonTable/HeaderCell.mobile.tsx +3 -3
  1036. package/src/components/ContentPage/ContentPage.tsx +16 -1
  1037. package/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
  1038. package/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
  1039. package/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
  1040. package/src/components/Footer/Footer.fallback.ts +1 -1
  1041. package/src/components/Footer/Footer.mobile.tsx +3 -3
  1042. package/src/components/Footer/Footer.tsx +6 -4
  1043. package/src/components/Footer/FooterDataProps.ts +2 -2
  1044. package/src/components/Footer/MediaButton.tsx +13 -7
  1045. package/src/components/Footer/SocialMedia.tsx +11 -2
  1046. package/src/components/GracePeriod/GracePeriod.example.json +15 -0
  1047. package/src/components/GracePeriod/GracePeriod.ui.json +1 -1
  1048. package/src/components/GracePeriod/GracePeriodContent.ts +3 -14
  1049. package/src/components/Header/Header.fallback.ts +1 -1
  1050. package/src/components/Header/Header.mobile.tsx +3 -3
  1051. package/src/components/Header/Header.tsx +3 -3
  1052. package/src/components/Header/HeaderSecondaryMenu.tsx +6 -3
  1053. package/src/components/Header/HeaderSecondaryMenuButton.tsx +2 -1
  1054. package/src/components/Headline/Headline.fixture.tsx +11 -11
  1055. package/src/components/Headline/Headline.tsx +5 -6
  1056. package/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
  1057. package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
  1058. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
  1059. package/src/components/ImgBlock/ImgBlockContent.ts +2 -4
  1060. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
  1061. package/src/components/LinkDocs/LinkDocs.example.json +9 -2
  1062. package/src/components/LinkDocs/LinkDocsContent.ts +4 -17
  1063. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
  1064. package/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
  1065. package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
  1066. package/src/components/PictureText/PictureText.example.json +9 -1
  1067. package/src/components/PictureText/PictureTextContent.ts +4 -21
  1068. package/src/components/ProductBlock/ProductBlock.example.json +10 -1
  1069. package/src/components/ProductBlock/ProductBlockContent.ts +5 -23
  1070. package/src/components/ProductBlock/ProductBlockInner.tsx +0 -1
  1071. package/src/components/ProductTile/ProductTile.example.json +10 -2
  1072. package/src/components/ProductTile/ProductTileContent.ts +3 -17
  1073. package/src/components/Recommendation/Recommendation.example.json +5 -1
  1074. package/src/components/Recommendation/RecommendationContent.ts +2 -28
  1075. package/src/components/StepsBlock/StepsBlock.example.json +8 -4
  1076. package/src/components/StepsBlock/StepsBlockContent.ts +19 -33
  1077. package/src/components/Tabs/Tabs.example.json +2 -1
  1078. package/src/components/Tabs/TabsContent.ts +1 -4
  1079. package/src/components/TariffsTable/TariffsTableContent.ts +7 -11
  1080. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +11 -20
  1081. package/src/components/TextBlock/TextBlockContent.ts +8 -13
  1082. package/src/components/Tile/Tile.example.json +9 -1
  1083. package/src/components/Tile/TileContent.ts +5 -22
  1084. package/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
  1085. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -0
  1086. package/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
  1087. package/src/components/Video/Video.example.json +7 -1
  1088. package/src/components/Video/VideoContent.ts +2 -15
  1089. package/src/{services/sitemap → hooks}/fallbackWCMSResource.ts +1 -1
  1090. package/src/hooks/useCarouselControls.ts +7 -30
  1091. package/src/hooks/useLink.ts +1 -1
  1092. package/{mobile/src/services/sitemap → src/hooks}/useSWRResource.ts +2 -2
  1093. package/src/model/Bullets.ts +4 -0
  1094. package/src/model/Button.ts +16 -0
  1095. package/src/model/HeadlineType.ts +5 -0
  1096. package/src/model/Picture.ts +3 -10
  1097. package/src/services/search/jaroWinklerDistance.ts +98 -0
  1098. package/src/services/search/joinMaps.ts +9 -0
  1099. package/src/services/search/search.ts +73 -0
  1100. package/src/services/search/textRank.ts +14 -0
  1101. package/src/services/search/tokenize.ts +7 -0
  1102. package/src/services/search/useSearch.ts +56 -0
  1103. package/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
  1104. package/src/ui-kit/BlockWrapper.tsx +8 -3
  1105. package/src/ui-kit/Button/ButtonProps.ts +6 -5
  1106. package/src/ui-kit/Dialog/CloseButton.tsx +22 -0
  1107. package/src/ui-kit/Dialog/Dialog.tsx +54 -0
  1108. package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
  1109. package/src/ui-kit/List/ListProps.ts +11 -11
  1110. package/src/ui-kit/Location/Location.fixture.tsx +2 -2
  1111. package/src/ui-kit/Location/Location.tsx +45 -70
  1112. package/src/ui-kit/Location/LocationProps.ts +25 -0
  1113. package/src/ui-kit/Location/SearchBar.tsx +1 -1
  1114. package/src/{model → ui-kit}/PreventableEvent.ts +0 -0
  1115. package/src/ui-kit/SearchBar/SearchBarInner.tsx +91 -51
  1116. package/src/ui-kit/SearchBar/SearchBarInput.tsx +46 -0
  1117. package/src/{components/Footer → ui-kit/Sitemap}/Sitemap.tsx +12 -11
  1118. package/src/ui-kit/TopItem/TopItem.tsx +1 -1
  1119. package/src/utils/Comparator.ts +14 -0
  1120. package/src/utils/fetchJSON.ts +1 -1
  1121. package/src/utils/groupBy.ts +8 -7
  1122. package/src/utils/maxBy.ts +2 -0
  1123. package/src/utils/minBy.ts +2 -0
  1124. package/src/utils/sum.ts +1 -0
  1125. package/src/utils/unique.ts +1 -0
  1126. package/src/utils/url.ts +1 -1
  1127. package/src/utils/zip.ts +8 -0
  1128. package/bundle/components/OtherProducts/OtherProducts.d.ts +0 -5
  1129. package/bundle/components/OtherProducts/OtherProductsContent.d.ts +0 -8
  1130. package/bundle/hooks/useSearch.d.ts +0 -4
  1131. package/bundle/model/SitemapProps.d.ts +0 -24
  1132. package/dist/components/Footer/Sitemap.js +0 -24
  1133. package/dist/components/Footer/Sitemap.js.map +0 -1
  1134. package/dist/components/OtherProducts/OtherProducts.d.ts +0 -5
  1135. package/dist/components/OtherProducts/OtherProducts.js +0 -9
  1136. package/dist/components/OtherProducts/OtherProducts.js.map +0 -1
  1137. package/dist/components/OtherProducts/OtherProductsContent.d.ts +0 -8
  1138. package/dist/components/OtherProducts/OtherProductsContent.js +0 -2
  1139. package/dist/components/OtherProducts/OtherProductsContent.js.map +0 -1
  1140. package/dist/hooks/useSearch.d.ts +0 -4
  1141. package/dist/hooks/useSearch.js +0 -12
  1142. package/dist/hooks/useSearch.js.map +0 -1
  1143. package/dist/model/PreventableEvent.js.map +0 -1
  1144. package/dist/model/SitemapProps.d.ts +0 -24
  1145. package/dist/model/SitemapProps.js.map +0 -1
  1146. package/dist/services/sitemap/SitemapProps.js.map +0 -1
  1147. package/dist/services/sitemap/fallbackWCMSResource.js.map +0 -1
  1148. package/dist/services/sitemap/useSWRResource.js.map +0 -1
  1149. package/lib/components/Footer/Sitemap.js +0 -22
  1150. package/lib/components/Footer/Sitemap.js.map +0 -1
  1151. package/lib/components/OtherProducts/OtherProducts.d.ts +0 -5
  1152. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +0 -8
  1153. package/lib/components/OtherProducts/OtherProducts.js +0 -7
  1154. package/lib/components/OtherProducts/OtherProducts.js.map +0 -1
  1155. package/lib/components/OtherProducts/OtherProductsContent.d.ts +0 -8
  1156. package/lib/components/OtherProducts/OtherProductsContent.js +0 -2
  1157. package/lib/components/OtherProducts/OtherProductsContent.js.map +0 -1
  1158. package/lib/hooks/useSearch.d.ts +0 -4
  1159. package/lib/hooks/useSearch.js +0 -9
  1160. package/lib/hooks/useSearch.js.map +0 -1
  1161. package/lib/model/PreventableEvent.js.map +0 -1
  1162. package/lib/model/SitemapProps.d.ts +0 -24
  1163. package/lib/model/SitemapProps.js +0 -2
  1164. package/lib/model/SitemapProps.js.map +0 -1
  1165. package/lib/services/sitemap/SitemapProps.js +0 -2
  1166. package/lib/services/sitemap/SitemapProps.js.map +0 -1
  1167. package/lib/services/sitemap/fallbackWCMSResource.js.map +0 -1
  1168. package/lib/services/sitemap/useSWRResource.js.map +0 -1
  1169. package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +0 -5
  1170. package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +0 -8
  1171. package/mobile/bundle/hooks/useSearch.d.ts +0 -4
  1172. package/mobile/bundle/model/SitemapProps.d.ts +0 -24
  1173. package/mobile/dist/components/Footer/Sitemap.d.ts +0 -6
  1174. package/mobile/dist/components/Footer/Sitemap.js +0 -24
  1175. package/mobile/dist/components/Footer/Sitemap.js.map +0 -1
  1176. package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +0 -5
  1177. package/mobile/dist/components/OtherProducts/OtherProducts.js +0 -9
  1178. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +0 -1
  1179. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +0 -8
  1180. package/mobile/dist/components/OtherProducts/OtherProductsContent.js +0 -2
  1181. package/mobile/dist/components/OtherProducts/OtherProductsContent.js.map +0 -1
  1182. package/mobile/dist/hooks/useSearch.d.ts +0 -4
  1183. package/mobile/dist/hooks/useSearch.js +0 -12
  1184. package/mobile/dist/hooks/useSearch.js.map +0 -1
  1185. package/mobile/dist/model/PreventableEvent.js.map +0 -1
  1186. package/mobile/dist/model/SitemapProps.d.ts +0 -24
  1187. package/mobile/dist/model/SitemapProps.js.map +0 -1
  1188. package/mobile/dist/services/sitemap/SitemapProps.d.ts +0 -32
  1189. package/mobile/dist/services/sitemap/SitemapProps.js.map +0 -1
  1190. package/mobile/dist/services/sitemap/fallbackWCMSResource.d.ts +0 -2
  1191. package/mobile/dist/services/sitemap/fallbackWCMSResource.js.map +0 -1
  1192. package/mobile/dist/services/sitemap/useSWRResource.d.ts +0 -2
  1193. package/mobile/dist/services/sitemap/useSWRResource.js.map +0 -1
  1194. package/mobile/lib/components/Footer/Sitemap.d.ts +0 -6
  1195. package/mobile/lib/components/Footer/Sitemap.js +0 -22
  1196. package/mobile/lib/components/Footer/Sitemap.js.map +0 -1
  1197. package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +0 -5
  1198. package/mobile/lib/components/OtherProducts/OtherProducts.js +0 -7
  1199. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +0 -1
  1200. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +0 -8
  1201. package/mobile/lib/components/OtherProducts/OtherProductsContent.js +0 -2
  1202. package/mobile/lib/components/OtherProducts/OtherProductsContent.js.map +0 -1
  1203. package/mobile/lib/hooks/useSearch.d.ts +0 -4
  1204. package/mobile/lib/hooks/useSearch.js +0 -9
  1205. package/mobile/lib/hooks/useSearch.js.map +0 -1
  1206. package/mobile/lib/model/PreventableEvent.js.map +0 -1
  1207. package/mobile/lib/model/SitemapProps.d.ts +0 -24
  1208. package/mobile/lib/model/SitemapProps.js +0 -2
  1209. package/mobile/lib/model/SitemapProps.js.map +0 -1
  1210. package/mobile/lib/services/sitemap/SitemapProps.d.ts +0 -32
  1211. package/mobile/lib/services/sitemap/SitemapProps.js +0 -2
  1212. package/mobile/lib/services/sitemap/SitemapProps.js.map +0 -1
  1213. package/mobile/lib/services/sitemap/fallbackWCMSResource.d.ts +0 -2
  1214. package/mobile/lib/services/sitemap/fallbackWCMSResource.js.map +0 -1
  1215. package/mobile/lib/services/sitemap/useSWRResource.d.ts +0 -2
  1216. package/mobile/lib/services/sitemap/useSWRResource.js.map +0 -1
  1217. package/mobile/src/components/OtherProducts/OtherProducts.example.json +0 -30
  1218. package/mobile/src/components/OtherProducts/OtherProducts.tsx +0 -17
  1219. package/mobile/src/components/OtherProducts/OtherProducts.ui.json +0 -1
  1220. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +0 -9
  1221. package/mobile/src/hooks/useSearch.ts +0 -10
  1222. package/mobile/src/model/SitemapProps.ts +0 -27
  1223. package/src/components/OtherProducts/OtherProducts.example.json +0 -30
  1224. package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -88
  1225. package/src/components/OtherProducts/OtherProducts.tsx +0 -17
  1226. package/src/components/OtherProducts/OtherProducts.ui.json +0 -1
  1227. package/src/components/OtherProducts/OtherProductsContent.ts +0 -9
  1228. package/src/hooks/useSearch.ts +0 -10
  1229. package/src/model/SitemapProps.ts +0 -27
@@ -1,7 +1,8 @@
1
+ import type { BulletsProps } from '../../model/Bullets';
1
2
  import type { UniBlockContent } from '../../model/JSXBlock';
2
- import type { Picture } from '../../model/Picture';
3
3
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
4
4
  import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
5
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
6
  import type { ListContent } from '../../ui-kit/List/ListContent';
6
7
  import type { ListItemSize } from '../../ui-kit/List/ListProps';
7
8
  import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
@@ -9,26 +10,6 @@ import type { TagsContent } from '../../ui-kit/Tags/TagsContent';
9
10
  /**
10
11
  * @title Плитка
11
12
  */
12
- export declare type TileContent = UniBlockContent & HeadingCommonProps & RichTextProps & ListContent & ButtonContent & TagsContent & {
13
- /**
14
- * @default {
15
- * "format": "webp",
16
- * "size": {
17
- * "width": 320
18
- * },
19
- * "sources": [{
20
- * "media": 1279,
21
- * "width": 192,
22
- * "format": "webp",
23
- * "alignment": "southeast"
24
- * }]
25
- * }
26
- */
27
- image?: Picture;
28
- /**
29
- * @title Буллиты
30
- * @default true
31
- */
32
- isDotted?: boolean;
13
+ export declare type TileContent = UniBlockContent & HeadingCommonProps & RichTextProps & ListContent & ButtonContent & TagsContent & ImageContent & BulletsProps & {
33
14
  listItemSize?: ListItemSize;
34
15
  };
@@ -12,9 +12,11 @@ const alignStyle = {
12
12
  center: 'items-center',
13
13
  right: 'items-end',
14
14
  };
15
- exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
15
+ exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, options, ...rest }) => {
16
16
  const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
17
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles_1.gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: (0, renderChildren_1.renderChildren)({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
17
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles_1.gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: (0, renderChildren_1.renderChildren)({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
18
18
  });
19
- exports.VerticalLayout.childrenTypes = [];
19
+ exports.VerticalLayout.childrenTypes = {
20
+ exclude: ['Accordion', 'OtherProducts'],
21
+ };
20
22
  //# sourceMappingURL=VerticalLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,4DAAyD;AACzD,6CAA0C;AAC1C,6DAA0D;AAK1D,MAAM,UAAU,GAAyC;IACvD,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEW,QAAA,cAAc,GAAkC,IAAA,aAAG,EAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,EAAE,EACR,KAAK,GAAG,SAAS,EACjB,SAAS,GAAG,KAAK,EACjB,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvD,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,gCAAgC,EAChC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EACvB,qBAAS,CAAC,GAAG,CAAC,EACd,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,EAC1B,SAAS,CACV,EACD,OAAO,EAAE,OAAO,KACZ,IAAI,YAEP,IAAA,+BAAc,EAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,GACtE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,aAAa,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,4DAAyD;AACzD,6CAA0C;AAC1C,6DAA0D;AAK1D,MAAM,UAAU,GAAyC;IACvD,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEW,QAAA,cAAc,GAAkC,IAAA,aAAG,EAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,EAAE,EACR,KAAK,GAAG,SAAS,EACjB,SAAS,GAAG,KAAK,EACjB,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,GAAG,KAAK,EACf,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvD,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,gCAAgC,EAChC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EACvB,qBAAS,CAAC,GAAG,CAAC,EACd,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,EAC1B,SAAS,CACV,EACD,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,IAAI,YAEP,IAAA,+BAAc,EAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,GACtE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,aAAa,GAAG;IAC7B,OAAO,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;CACxC,CAAC"}
@@ -1,25 +1,12 @@
1
1
  import type { TitleProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { Picture } from '../../model/Picture';
4
- /**
5
- * @title Блок Видео
6
- * @default {
7
- * "title": "Заголовок блока"
8
- * }
9
- */
4
+ /** @title Блок Видео */
10
5
  export declare type VideoContent = UniBlockContent & TitleProps & {
11
6
  /**
12
7
  * @title Ссылка на видео
13
8
  */
14
9
  url?: string;
15
- /**
16
- * @title Заставка в блоке
17
- * @default {
18
- * "format": "webp",
19
- * "size": {
20
- * "width": 1004
21
- * },
22
- * }
23
- */
10
+ /** @title Заставка в блоке */
24
11
  previewImg?: Picture;
25
12
  };
@@ -0,0 +1,2 @@
1
+ import type { FallbackMap } from '../model/Fallback';
2
+ export declare const fallbackWCMSResource: (filename: string) => FallbackMap;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fallbackWCMSResource.js","sourceRoot":"","sources":["../../src/hooks/fallbackWCMSResource.ts"],"names":[],"mappings":";;AAAA,0CAAuC;AAGhC,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAe,EAAE,CAAC,CAAC;IACtE,CAAC,mBAAmB,QAAQ,OAAO,CAAC,EAAE,KAAK,IAAI,EAAE,CAC/C,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,mBAAQ,EAAC,4BAA4B,QAAQ,OAAO,EAAE,OAAO,CAAC,CAAC;CACnF,CAAC,CAAC;AAHU,QAAA,oBAAoB,wBAG9B"}
@@ -8,8 +8,6 @@ export interface CarouselControls {
8
8
  interface CarouselControlsProps {
9
9
  itemCount: number;
10
10
  visibleItemCount?: number;
11
- isCyclic?: boolean;
12
- container?: HTMLDivElement | null;
13
11
  }
14
12
  export declare const useCarouselControls: (props: CarouselControlsProps) => [number, CarouselControls];
15
13
  export {};
@@ -2,13 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useCarouselControls = void 0;
3
3
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
4
  const useCarouselControls = (props) => {
5
- const { itemCount, visibleItemCount, isCyclic } = props;
5
+ const { itemCount, visibleItemCount } = props;
6
6
  const [activeIndex, setActiveIndex] = (0, hooks_1.useState)(0);
7
- const inc = (0, hooks_1.useCallback)(() => setActiveIndex((_) => (isCyclic ? (_ + 1) % itemCount : Math.min(_ + 1, itemCount - 1))), [isCyclic, itemCount]);
8
- const dec = (0, hooks_1.useCallback)(() => setActiveIndex((_) => (isCyclic ? (itemCount + _ - 1) % itemCount : Math.max(_ - 1, 0))), [isCyclic, itemCount]);
9
- const canInc = isCyclic ||
10
- (isScrollable(activeIndex, props) && activeIndex < itemCount - (visibleItemCount || 1));
11
- const canDec = isCyclic || activeIndex > 0;
7
+ const inc = (0, hooks_1.useCallback)(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
8
+ const dec = (0, hooks_1.useCallback)(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
9
+ const canInc = isScrollable(props) && activeIndex < itemCount - (visibleItemCount || 1);
10
+ const canDec = activeIndex > 0;
12
11
  const isScrollAvailable = canDec || canInc;
13
12
  return [
14
13
  activeIndex,
@@ -22,14 +21,7 @@ const useCarouselControls = (props) => {
22
21
  ];
23
22
  };
24
23
  exports.useCarouselControls = useCarouselControls;
25
- function isScrollable(activeIndex, { itemCount, visibleItemCount, container }) {
26
- if (visibleItemCount) {
27
- return itemCount > visibleItemCount;
28
- }
29
- if (container) {
30
- const scrollLeft = (container.scrollWidth * activeIndex) / itemCount;
31
- return scrollLeft + container.clientWidth < container.scrollWidth;
32
- }
33
- return false;
24
+ function isScrollable({ itemCount, visibleItemCount }) {
25
+ return Boolean(visibleItemCount && itemCount > visibleItemCount);
34
26
  }
35
27
  //# sourceMappingURL=useCarouselControls.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCarouselControls.js","sourceRoot":"","sources":["../../src/hooks/useCarouselControls.ts"],"names":[],"mappings":";;AAAA,uDAAoE;AAiB7D,MAAM,mBAAmB,GAAG,CAAC,KAA4B,EAA8B,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAExD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAElD,MAAM,GAAG,GAAG,IAAA,mBAAW,EACrB,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,EAC9F,CAAC,QAAQ,EAAE,SAAS,CAAC,CACtB,CAAC;IACF,MAAM,GAAG,GAAG,IAAA,mBAAW,EACrB,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAC9F,CAAC,QAAQ,EAAE,SAAS,CAAC,CACtB,CAAC;IAEF,MAAM,MAAM,GACV,QAAQ;QACR,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,WAAW,GAAG,SAAS,GAAG,CAAC,gBAAgB,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1F,MAAM,MAAM,GAAG,QAAQ,IAAI,WAAW,GAAG,CAAC,CAAC;IAC3C,MAAM,iBAAiB,GAAG,MAAM,IAAI,MAAM,CAAC;IAE3C,OAAO;QACL,WAAW;QACX;YACE,GAAG;YACH,GAAG;YACH,MAAM;YACN,MAAM;YACN,iBAAiB;SAClB;KACF,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,mBAAmB,uBA8B9B;AAEF,SAAS,YAAY,CACnB,WAAmB,EACnB,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAyB;IAEjE,IAAI,gBAAgB,EAAE;QACpB,OAAO,SAAS,GAAG,gBAAgB,CAAC;KACrC;IAED,IAAI,SAAS,EAAE;QACb,MAAM,UAAU,GAAG,CAAC,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,SAAS,CAAC;QAErE,OAAO,UAAU,GAAG,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;KACnE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"useCarouselControls.js","sourceRoot":"","sources":["../../src/hooks/useCarouselControls.ts"],"names":[],"mappings":";;AAAA,uDAAoE;AAe7D,MAAM,mBAAmB,GAAG,CAAC,KAA4B,EAA8B,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAE9C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAElD,MAAM,GAAG,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAClG,MAAM,GAAG,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEtF,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,WAAW,GAAG,SAAS,GAAG,CAAC,gBAAgB,IAAI,CAAC,CAAC,CAAC;IACxF,MAAM,MAAM,GAAG,WAAW,GAAG,CAAC,CAAC;IAC/B,MAAM,iBAAiB,GAAG,MAAM,IAAI,MAAM,CAAC;IAE3C,OAAO;QACL,WAAW;QACX;YACE,GAAG;YACH,GAAG;YACH,MAAM;YACN,MAAM;YACN,iBAAiB;SAClB;KACF,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,mBAAmB,uBAsB9B;AAEF,SAAS,YAAY,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAyB;IAC1E,OAAO,OAAO,CAAC,gBAAgB,IAAI,SAAS,GAAG,gBAAgB,CAAC,CAAC;AACnE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { LinkProps } from '../model/LinkProps';
2
- import type { PreventableEvent } from '../model/PreventableEvent';
2
+ import type { PreventableEvent } from '../ui-kit/PreventableEvent';
3
3
  interface Clickable {
4
4
  onClick(ev?: PreventableEvent): void;
5
5
  }
@@ -0,0 +1,2 @@
1
+ import type { Fallback } from '../model/Fallback';
2
+ export declare function useSWRResource<Data>(filename: string, fallback?: Fallback): Data;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useSWRResource = void 0;
3
3
  const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
4
- const fetchJSON_1 = require("../../utils/fetchJSON");
4
+ const fetchJSON_1 = require("../utils/fetchJSON");
5
5
  function useSWRResource(filename, fallback = {}) {
6
6
  const { data } = (0, useAsyncData_1.useAsyncData)(`/wcms-resources/${filename}.json`, fetchJSON_1.fetchJSONUnsafe, {
7
7
  fallback,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,kDAAqD;AAErD,SAAgB,cAAc,CAAO,QAAgB,EAAE,WAAqB,EAAE;IAC5E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAO,mBAAmB,QAAQ,OAAO,EAAE,2BAAe,EAAE;QACvF,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,IAAI,IAAK,EAAW,CAAC;AAC9B,CAAC;AAND,wCAMC"}
@@ -0,0 +1,4 @@
1
+ export declare type BulletsProps = {
2
+ /** @title Буллиты */
3
+ isDotted?: boolean;
4
+ };
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=SitemapProps.js.map
2
+ //# sourceMappingURL=Bullets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bullets.js","sourceRoot":"","sources":["../../src/model/Bullets.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { ButtonProps, ButtonWithIconProps } from '../ui-kit/Button/ButtonProps';
2
+ /**
3
+ * @title Блок Кнопка
4
+ */
5
+ export interface ButtonCommonProps {
6
+ /** @title Кнопка */
7
+ button?: ButtonProps;
8
+ }
9
+ /**
10
+ * @title Блок Кнопка
11
+ */
12
+ export interface ButtonCommonIconProps {
13
+ /** @title Кнопка */
14
+ button?: ButtonWithIconProps;
15
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/model/Button.ts"],"names":[],"mappings":""}
@@ -16,6 +16,10 @@ export declare type DescriptionProps = {
16
16
  /** @title Описание */
17
17
  description?: string;
18
18
  };
19
+ export declare type SubtitleProps = {
20
+ /** @title Подзаголовок */
21
+ subtitle?: string;
22
+ };
19
23
  export declare type LabelProps = {
20
24
  /** @title Название */
21
25
  label?: string;
@@ -1,6 +1,6 @@
1
1
  import type { IconName } from '../icons/IconName';
2
2
  import type { IconVersion } from './IconVersion';
3
- import { ImageSize } from './ImageSize';
3
+ import type { ImageSize } from './ImageSize';
4
4
  export declare type ImgFormats = 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
5
5
  /**
6
6
  * @title Позиционирование
@@ -15,21 +15,14 @@ export declare type ImgFormats = 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif
15
15
  * "Снизу по центру",
16
16
  * "Снизу справа"
17
17
  * ]
18
- * @default "center"
19
18
  */
20
19
  export declare type ImgAlignment = 'northwest' | 'north' | 'northeast' | 'west' | 'center' | 'east' | 'southwest' | 'south' | 'southeast';
21
20
  export interface Img {
22
21
  /** @title Картинка */
23
22
  src?: string;
24
- /**
25
- * @title Альтернативный текст (alt)
26
- * @default ""
27
- */
23
+ /** @title Альтернативный текст (alt) */
28
24
  alt?: string;
29
- /**
30
- * @title Текст подсказки (title)
31
- * @default ""
32
- */
25
+ /** @title Текст подсказки (title) */
33
26
  title?: string;
34
27
  }
35
28
  /**
@@ -0,0 +1 @@
1
+ export declare const jaroWinklerDistance: (s1: string | undefined) => (s2: string | undefined) => number;
@@ -0,0 +1,67 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.jaroWinklerDistance = void 0;
3
+ const JARO_WINKLER_P = 0.1;
4
+ const JARO_WINKLER_MAX_L = 4;
5
+ const jaroWinklerDistance = (s1) => (s2) => {
6
+ if (s1 === s2) {
7
+ return 1;
8
+ }
9
+ if (!s1 || !s2) {
10
+ return 0;
11
+ }
12
+ const { m, s1Matches, s2Matches } = computeM(s1, s2);
13
+ if (m === 0) {
14
+ return 0;
15
+ }
16
+ const t = computeT(s1, s2, { s1Matches, s2Matches });
17
+ const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
18
+ const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
19
+ return jaroWeight + winklerWeight * (1 - jaroWeight);
20
+ };
21
+ exports.jaroWinklerDistance = jaroWinklerDistance;
22
+ function computeM(s1, s2) {
23
+ const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
24
+ const s1Matches = new Array(s1.length);
25
+ const s2Matches = new Array(s2.length);
26
+ let m = 0;
27
+ for (let i = 0; i < s1.length; i++) {
28
+ const low = Math.max(0, i - range);
29
+ const high = Math.min(i + range, s2.length - 1);
30
+ for (let j = low; j <= high; j++) {
31
+ if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
32
+ continue;
33
+ }
34
+ m++;
35
+ s1Matches[i] = true;
36
+ s2Matches[j] = true;
37
+ }
38
+ }
39
+ return { m, s1Matches, s2Matches };
40
+ }
41
+ function computeT(s1, s2, { s1Matches, s2Matches }) {
42
+ let t = 0;
43
+ for (let i = 0, k = 0; i < s1.length; i++) {
44
+ if (!s1Matches[i]) {
45
+ continue;
46
+ }
47
+ let j = k;
48
+ for (; j < s2.length; j++) {
49
+ if (s2Matches[j]) {
50
+ k = j + 1;
51
+ break;
52
+ }
53
+ }
54
+ if (s1[i] !== s2[j]) {
55
+ t++;
56
+ }
57
+ }
58
+ return t;
59
+ }
60
+ function computePrefixL(s1, s2) {
61
+ let prefixL = 0;
62
+ while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
63
+ prefixL++;
64
+ }
65
+ return prefixL;
66
+ }
67
+ //# sourceMappingURL=jaroWinklerDistance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jaroWinklerDistance.js","sourceRoot":"","sources":["../../../src/services/search/jaroWinklerDistance.ts"],"names":[],"mappings":";;AAAA,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAEtB,MAAM,mBAAmB,GAC9B,CAAC,EAAsB,EAAE,EAAE,CAC3B,CAAC,EAAsB,EAAU,EAAE;IACjC,IAAI,EAAE,KAAK,EAAE,EAAE;QACb,OAAO,CAAC,CAAC;KACV;IAED,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE;QACd,OAAO,CAAC,CAAC;KACV;IAED,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAErD,IAAI,CAAC,KAAK,CAAC,EAAE;QACX,OAAO,CAAC,CAAC;KACV;IAED,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;IAErD,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACzE,MAAM,aAAa,GAAG,UAAU,GAAG,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAErF,OAAO,UAAU,GAAG,aAAa,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC;AACvD,CAAC,CAAC;AAvBS,QAAA,mBAAmB,uBAuB5B;AAEJ,SAAS,QAAQ,CACf,EAAU,EACV,EAAU;IAMV,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAG,IAAI,KAAK,CAAU,EAAE,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,IAAI,KAAK,CAAU,EAAE,CAAC,MAAM,CAAC,CAAC;IAEhD,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;QACnC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAEhD,KAAK,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,EAAE;YAChC,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;gBACnD,SAAS;aACV;YAED,CAAC,EAAE,CAAC;YACJ,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;YACpB,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;SACrB;KACF;IAED,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACrC,CAAC;AAED,SAAS,QAAQ,CACf,EAAU,EACV,EAAU,EACV,EAAE,SAAS,EAAE,SAAS,EAAkD;IAExE,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;YACjB,SAAS;SACV;QAED,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACzB,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE;gBAChB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACV,MAAM;aACP;SACF;QAED,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;YACnB,CAAC,EAAE,CAAC;SACL;KACF;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AAED,SAAS,cAAc,CAAC,EAAU,EAAE,EAAU;IAC5C,IAAI,OAAO,GAAG,CAAC,CAAC;IAEhB,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,kBAAkB,EAAE;QAClE,OAAO,EAAE,CAAC;KACX;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const joinMaps: <K, A, B>(aggregate: (a: A, b: B) => A, emptyVal: A) => (acc: Map<K, A>, map: Map<K, B>) => Map<K, A>;
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.joinMaps = void 0;
3
+ const joinMaps = (aggregate, emptyVal) => (acc, map) => {
4
+ for (const [key, b] of map) {
5
+ acc.set(key, aggregate(acc.get(key) || emptyVal, b));
6
+ }
7
+ return acc;
8
+ };
9
+ exports.joinMaps = joinMaps;
10
+ //# sourceMappingURL=joinMaps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joinMaps.js","sourceRoot":"","sources":["../../../src/services/search/joinMaps.ts"],"names":[],"mappings":";;AAAO,MAAM,QAAQ,GACnB,CAAU,SAA4B,EAAE,QAAW,EAAE,EAAE,CACvD,CAAC,GAAc,EAAE,GAAc,EAAa,EAAE;IAC5C,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,GAAG,EAAE;QAC1B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;KACtD;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AARS,QAAA,QAAQ,YAQjB"}
@@ -0,0 +1,12 @@
1
+ export interface CorpusItem {
2
+ uri?: string;
3
+ title?: string;
4
+ }
5
+ declare type Stem = string;
6
+ declare type CorpusItemIndex = number;
7
+ export interface SearchIndex {
8
+ corpus?: CorpusItem[];
9
+ dictionary?: Record<Stem, CorpusItemIndex[]>;
10
+ }
11
+ export declare const search: (query: string | undefined) => (searchIndex: SearchIndex | undefined) => CorpusItem[];
12
+ export {};
@@ -0,0 +1,39 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.search = void 0;
3
+ const Comparator_1 = require("../../utils/Comparator");
4
+ const zip_1 = require("../../utils/zip");
5
+ const jaroWinklerDistance_1 = require("./jaroWinklerDistance");
6
+ const joinMaps_1 = require("./joinMaps");
7
+ const textRank_1 = require("./textRank");
8
+ const tokenize_1 = require("./tokenize");
9
+ const JW_THRESHOLD = 0.8;
10
+ const RANK_EPS = 0.001;
11
+ const search = (query) => (searchIndex) => {
12
+ const { corpus, dictionary } = searchIndex || {};
13
+ if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
14
+ return [];
15
+ }
16
+ const queryTokens = (0, tokenize_1.tokenize)(query);
17
+ if (!queryTokens.length) {
18
+ return [];
19
+ }
20
+ const dictEntries = Object.entries(dictionary);
21
+ const pagesRanking = queryTokens
22
+ .map(computePagesRankingPerToken(dictEntries))
23
+ .reduce((0, joinMaps_1.joinMaps)((a, b) => a + b, 0), new Map());
24
+ const relevantPages = [...pagesRanking.entries()]
25
+ .filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
26
+ .map(([pageIndex]) => corpus[pageIndex]);
27
+ return sortResultsByRank(queryTokens)(relevantPages);
28
+ };
29
+ exports.search = search;
30
+ const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
31
+ .map(([stem, pageIndices]) => [(0, jaroWinklerDistance_1.jaroWinklerDistance)(qToken)(stem), pageIndices])
32
+ .filter(([stemRank]) => stemRank >= JW_THRESHOLD)
33
+ .map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
34
+ .reduce((0, joinMaps_1.joinMaps)(Math.max, 0), new Map());
35
+ const sortResultsByRank = (queryTokens) => (results) => (0, zip_1.zip)(results, results.map(({ title }) => title).map((0, textRank_1.textRank)(queryTokens)))
36
+ .sort((0, Comparator_1.desc)((0, Comparator_1.compareBy)(([, pageTitleRank]) => pageTitleRank)))
37
+ .map(([corpusItem]) => corpusItem);
38
+ const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
39
+ //# sourceMappingURL=search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/services/search/search.ts"],"names":[],"mappings":";;AAAA,uDAAyD;AACzD,yCAAsC;AACtC,+DAA4D;AAC5D,yCAAsC;AACtC,yCAAsC;AACtC,yCAAsC;AAkBtC,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,QAAQ,GAAG,KAAK,CAAC;AAEhB,MAAM,MAAM,GACjB,CAAC,KAAyB,EAAE,EAAE,CAC9B,CAAC,WAAoC,EAAgB,EAAE;IACrD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,IAAI,EAAE,CAAC;IACjD,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE;QAC/E,OAAO,EAAE,CAAC;KACX;IAED,MAAM,WAAW,GAAG,IAAA,mBAAQ,EAAC,KAAK,CAAC,CAAC;IACpC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC/C,MAAM,YAAY,GAAgB,WAAW;SAC1C,GAAG,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC;SAC7C,MAAM,CACL,IAAA,mBAAQ,EAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAC5B,IAAI,GAAG,EAAE,CACV,CAAC;IAEJ,MAAM,aAAa,GAAiB,CAAC,GAAG,YAAY,CAAC,OAAO,EAAE,CAAC;SAC5D,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,iCAAiC;SACtH,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAE3C,OAAO,iBAAiB,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,CAAC;AACvD,CAAC,CAAC;AA1BS,QAAA,MAAM,UA0Bf;AAEJ,MAAM,2BAA2B,GAC/B,CAAC,WAA6C,EAAE,EAAE,CAAC,CAAC,MAAc,EAAE,EAAE,CACpE,WAAW;KACR,GAAG,CACF,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,CACtB,CAAC,IAAA,yCAAmB,EAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,WAAW,CAA8B,CAChF;KACA,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,YAAY,CAAC;KAChD,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;KACpE,MAAM,CAAC,IAAA,mBAAQ,EAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,GAAG,EAAyB,CAAC,CAAC;AAEvE,MAAM,iBAAiB,GACrB,CAAC,WAAqB,EAAE,EAAE,CAC1B,CAAC,OAAqB,EAAgB,EAAE,CACtC,IAAA,SAAG,EAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAA,mBAAQ,EAAC,WAAW,CAAC,CAAC,CAAC;KACvE,IAAI,CAAC,IAAA,iBAAI,EAAC,IAAA,sBAAS,EAAC,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3D,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;AAEzC,MAAM,WAAW,GAAG,CAAO,IAAS,EAAE,KAAQ,EAAa,EAAE,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const textRank: (queryTokens: string[]) => (text: string | undefined) => number;
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.textRank = void 0;
3
+ const maxBy_1 = require("../../utils/maxBy");
4
+ const sum_1 = require("../../utils/sum");
5
+ const jaroWinklerDistance_1 = require("./jaroWinklerDistance");
6
+ const tokenize_1 = require("./tokenize");
7
+ const textRank = (queryTokens) => (text) => {
8
+ const textTokens = (0, tokenize_1.tokenize)(text || '');
9
+ return textTokens.length
10
+ ? (0, sum_1.sum)(queryTokens.map((qToken) => (0, maxBy_1.max)(textTokens.map((0, jaroWinklerDistance_1.jaroWinklerDistance)(qToken)))))
11
+ : 0;
12
+ };
13
+ exports.textRank = textRank;
14
+ //# sourceMappingURL=textRank.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textRank.js","sourceRoot":"","sources":["../../../src/services/search/textRank.ts"],"names":[],"mappings":";;AAAA,6CAAwC;AACxC,yCAAsC;AACtC,+DAA4D;AAC5D,yCAAsC;AAE/B,MAAM,QAAQ,GACnB,CAAC,WAAqB,EAAE,EAAE,CAC1B,CAAC,IAAwB,EAAU,EAAE;IACnC,MAAM,UAAU,GAAG,IAAA,mBAAQ,EAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAExC,OAAO,UAAU,CAAC,MAAM;QACtB,CAAC,CAAC,IAAA,SAAG,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,WAAG,EAAC,UAAU,CAAC,GAAG,CAAC,IAAA,yCAAmB,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AARS,QAAA,QAAQ,YAQjB"}
@@ -0,0 +1 @@
1
+ export declare const tokenize: (text: string) => string[];
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.tokenize = void 0;
3
+ const MIN_TERM_LEN = 3;
4
+ const tokenize = (text) => text
5
+ .toLowerCase()
6
+ .split(/[^0-9a-zа-я-]+/)
7
+ .filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
8
+ exports.tokenize = tokenize;
9
+ //# sourceMappingURL=tokenize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenize.js","sourceRoot":"","sources":["../../../src/services/search/tokenize.ts"],"names":[],"mappings":";;AAAA,MAAM,YAAY,GAAG,CAAC,CAAC;AAEhB,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CACvC,IAAI;KACD,WAAW,EAAE;KACb,KAAK,CAAC,gBAAgB,CAAC;KACvB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AAJnE,QAAA,QAAQ,YAI2D"}
@@ -0,0 +1,8 @@
1
+ import { CorpusItem } from './search';
2
+ export declare type SearchResult = Array<CorpusItem[]>;
3
+ export interface SearchInputProps {
4
+ value: string;
5
+ onChange: (query: string) => void;
6
+ onFocus: () => void;
7
+ }
8
+ export declare const useSearch: (basePathList?: string[]) => [SearchResult | null, SearchInputProps];
@@ -0,0 +1,33 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useSearch = void 0;
3
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
+ const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
5
+ const fetchJSON_1 = require("../../utils/fetchJSON");
6
+ const url_1 = require("../../utils/url");
7
+ const search_1 = require("./search");
8
+ const SEARCH_INDEX_FILENAME = 'search.index.json';
9
+ const useSearch = (basePathList = ['/']) => {
10
+ const [query, setQuery] = (0, hooks_1.useState)('');
11
+ const [wasQueryFocused, setWasQueryFocused] = (0, hooks_1.useState)(false);
12
+ const handleFocus = (0, hooks_1.useCallback)(() => {
13
+ setWasQueryFocused(true);
14
+ }, []);
15
+ const key = (0, hooks_1.useMemo)(() => basePathList.map((_) => (wasQueryFocused ? _ : null)), // Load search index on input focus
16
+ [wasQueryFocused, ...basePathList]);
17
+ const { data } = (0, useAsyncData_1.useAsyncData)(key, fetchSearchIndex);
18
+ const [result, setResult] = (0, hooks_1.useState)(null);
19
+ (0, hooks_1.useEffect)(() => {
20
+ const timerId = setTimeout(() => {
21
+ if (data) {
22
+ setResult(data.map((0, search_1.search)(query)));
23
+ }
24
+ }, 300);
25
+ return () => {
26
+ clearTimeout(timerId);
27
+ };
28
+ }, [data, query]);
29
+ return [result, { value: query, onChange: setQuery, onFocus: handleFocus }];
30
+ };
31
+ exports.useSearch = useSearch;
32
+ const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => (0, fetchJSON_1.fetchJSON)((0, url_1.joinPath)(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
33
+ //# sourceMappingURL=useSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearch.js","sourceRoot":"","sources":["../../../src/services/search/useSearch.ts"],"names":[],"mappings":";;AAAA,uDAAwF;AACxF,2EAAwE;AACxE,qDAAkD;AAClD,yCAA2C;AAC3C,qCAA2D;AAE3D,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAU3C,MAAM,SAAS,GAAG,CACvB,eAAyB,CAAC,GAAG,CAAC,EACW,EAAE;IAC3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAEvC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,GAAG,GAAG,IAAA,eAAO,EACjB,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,mCAAmC;IAChG,CAAC,eAAe,EAAE,GAAG,YAAY,CAAC,CACnC,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;IAErD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAsB,IAAI,CAAC,CAAC;IAEhE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,IAAI,IAAI,EAAE;gBACR,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACpC;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAElB,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;AAC9E,CAAC,CAAC;AAhCW,QAAA,SAAS,aAgCpB;AAEF,MAAM,gBAAgB,GAAG,KAAK,EAAE,GAAG,YAA+B,EAA0B,EAAE,CAC5F,CACE,MAAM,OAAO,CAAC,UAAU,CACtB,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAC,IAAA,cAAQ,EAAC,QAAQ,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAC1F,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAgB,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ import type { LogoType } from '../../model/LogoType';
3
+ import type { IconProps, Picture } from '../../model/Picture';
4
+ /**
5
+ * @title Ссылка
6
+ * @required ["text", "href"]
7
+ */
8
+ export interface TopMenuItem extends LinkProps {
9
+ /** @hidden */
10
+ items?: LinkProps[];
11
+ }
12
+ /**
13
+ * @title Ссылка дополнительного меню
14
+ * @required ["text", "href"]
15
+ */
16
+ export interface DispositionItem extends LinkProps {
17
+ /** @hidden */
18
+ icon?: Picture;
19
+ }
20
+ /**
21
+ * @title Представительства за рубежом
22
+ * @required ["text", "href"]
23
+ */
24
+ export declare type ForeignOffice = LinkProps & IconProps;
25
+ export interface SitemapData {
26
+ topItems?: TopMenuItem[];
27
+ dispositions?: DispositionItem[];
28
+ logo?: LogoType;
29
+ foreignOffices?: ForeignOffice[];
30
+ defaultLocation?: string;
31
+ officesLink?: string;
32
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=SitemapData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SitemapData.js","sourceRoot":"","sources":["../../../src/services/sitemap/SitemapData.ts"],"names":[],"mappings":""}
@@ -3,6 +3,7 @@ import type { UniBlockProps } from '../model/JSXBlock';
3
3
  interface BlockWrapperProps extends UniBlockProps {
4
4
  tag?: keyof HTMLElementTagNameMap;
5
5
  role?: string;
6
+ extraProps?: Record<string, any>;
6
7
  }
7
8
  export declare const blockStyles: Record<BlockVersion, string>;
8
9
  export declare const BlockWrapper: import("@redneckz/uni-jsx").UNIComponent<BlockWrapperProps, any, any>;
@@ -13,13 +13,14 @@ exports.blockStyles = {
13
13
  transparent: 'bg-transparent text-primary-text',
14
14
  '': '',
15
15
  };
16
- exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, children, }) => {
16
+ exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, extraProps = {}, children, }) => {
17
17
  const Tag = tag;
18
18
  const ref = (0, useBlockIntersectionObserver_1.useBlockIntersectionObserver)(block);
19
19
  const [isHidden, setHidden] = (0, hooks_1.useState)(false);
20
20
  (0, hooks_1.useEffect)(() => defaultEventBus_1.defaultEventBus.subscribe('tab', (event) => {
21
21
  setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
22
22
  }), [block]);
23
- return ((0, jsx_runtime_1.jsx)(Tag, { className: (0, style_1.style)(isTheme ? 'group' : '', exports.blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
23
+ return ((0, jsx_runtime_1.jsx)(Tag, { className: (0, style_1.style)(groupStyle(Boolean(version && isTheme)), exports.blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, ...extraProps, children: children }));
24
24
  });
25
+ const groupStyle = (isGroup) => (isGroup ? 'group' : '');
25
26
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iEAA8D;AAG9D,uGAAoG;AACpG,0CAAuC;AAO1B,QAAA,WAAW,GAAiC;IACvD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;IACvC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,kCAAkC;IAC/C,EAAE,EAAE,EAAE;CACP,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,KAAK,EACL,GAAG,GAAG,SAAS,EACf,IAAI,EACJ,OAAO,GAAG,IAAI,EACd,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAQ,GAAG,CAAC;IAErB,MAAM,GAAG,GAAG,IAAA,2DAA4B,EAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC9C,IAAA,iBAAS,EACP,GAAG,EAAE,CACH,iCAAe,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;QACzC,SAAS,CACP,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CACrF,CAAC;IACJ,CAAC,CAAC,EACJ,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO,CACL,uBAAC,GAAG,IACF,SAAS,EAAE,IAAA,aAAK,EACd,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EACtB,mBAAW,CAAC,OAAO,CAAC,EACpB,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EACxB,SAAS,CACV,KACG,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACnD,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,YAET,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iEAA8D;AAC9D,uGAAoG;AACpG,0CAAuC;AAU1B,QAAA,WAAW,GAAiC;IACvD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;IACvC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,kCAAkC;IAC/C,EAAE,EAAE,EAAE;CACP,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,KAAK,EACL,GAAG,GAAG,SAAS,EACf,IAAI,EACJ,OAAO,GAAG,IAAI,EACd,UAAU,GAAG,EAAE,EACf,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAQ,GAAG,CAAC;IAErB,MAAM,GAAG,GAAG,IAAA,2DAA4B,EAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC9C,IAAA,iBAAS,EACP,GAAG,EAAE,CACH,iCAAe,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;QACzC,SAAS,CACP,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CACrF,CAAC;IACJ,CAAC,CAAC,EACJ,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO,CACL,uBAAC,GAAG,IACF,SAAS,EAAE,IAAA,aAAK,EACd,UAAU,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,EACvC,mBAAW,CAAC,OAAO,CAAC,EACpB,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EACxB,SAAS,CACV,KACG,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACnD,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,KACN,UAAU,YAEb,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAgB,EAAU,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}