@redneckz/wildless-cms-uni-blocks 0.14.680 → 0.14.682

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 (533) hide show
  1. package/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  2. package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  3. package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +157 -159
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  8. package/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  9. package/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  10. package/bundle/external/locationNavigator.d.ts +11 -0
  11. package/bundle/index.d.ts +3 -3
  12. package/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  13. package/bundle/utils/adjustSrc.d.ts +1 -1
  14. package/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  15. package/dist/api/RetailAPI/getPaymentSystems.js +2 -2
  16. package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  17. package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  18. package/dist/api/RetailAPI/updateRefreshToken.js +9 -4
  19. package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
  20. package/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
  21. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  22. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  23. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  24. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  25. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  26. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  27. package/dist/components/Blocks.js +0 -2
  28. package/dist/components/Blocks.js.map +1 -1
  29. package/dist/components/CreditCardForm/CreditCardForm.js +1 -4
  30. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  31. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
  32. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  33. package/dist/components/CreditCardForm/getFourthStepData.js +3 -1
  34. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  35. package/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  36. package/dist/components/CreditCardForm/getSixthStepData.js +8 -1
  37. package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
  38. package/dist/components/CreditCardForm/getThirdStepData.js +3 -1
  39. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
  40. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  41. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  42. package/dist/components/CreditForm/CreditForm.js +1 -4
  43. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  44. package/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
  45. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  46. package/dist/components/CreditForm/getSecondStepData.js +3 -1
  47. package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  48. package/dist/components/CreditForm/getThirdStepData.js +3 -1
  49. package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  50. package/dist/components/Header/HeaderTop.js +1 -1
  51. package/dist/components/Header/HeaderTop.js.map +1 -1
  52. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  53. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  54. package/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  55. package/dist/components/TabsLayout/TabsLayout.js +1 -1
  56. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  57. package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  58. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  59. package/dist/components/Video/Video.js +1 -1
  60. package/dist/components/Video/Video.js.map +1 -1
  61. package/dist/external/handlerDecorator.js.map +1 -0
  62. package/dist/external/locationNavigator.d.ts +11 -0
  63. package/dist/external/locationNavigator.js +21 -0
  64. package/dist/external/locationNavigator.js.map +1 -0
  65. package/dist/external/useRouter.js.map +1 -0
  66. package/dist/hooks/useActiveRoute.js +1 -1
  67. package/dist/hooks/useActiveRoute.js.map +1 -1
  68. package/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
  69. package/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  70. package/dist/hooks/useClickHandler.js +1 -1
  71. package/dist/hooks/useClickHandler.js.map +1 -1
  72. package/dist/hooks/useLink.js +2 -2
  73. package/dist/hooks/useLink.js.map +1 -1
  74. package/dist/index.d.ts +3 -3
  75. package/dist/index.js +5 -5
  76. package/dist/index.js.map +1 -1
  77. package/dist/setup-fixture.js +2 -2
  78. package/dist/setup-fixture.js.map +1 -1
  79. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  80. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  81. package/dist/ui-kit/Button/useButton.js +1 -1
  82. package/dist/ui-kit/Button/useButton.js.map +1 -1
  83. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  84. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  85. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  86. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  87. package/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  88. package/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
  89. package/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  90. package/dist/ui-kit/Icon/Icon.js +1 -1
  91. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  92. package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
  93. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  94. package/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
  95. package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  96. package/dist/utils/adjustSrc.d.ts +1 -1
  97. package/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  98. package/lib/api/RetailAPI/getPaymentSystems.js +2 -2
  99. package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  100. package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  101. package/lib/api/RetailAPI/updateRefreshToken.js +9 -4
  102. package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
  103. package/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
  104. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  105. package/lib/common.css +1 -1
  106. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  107. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  108. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  109. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  110. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  111. package/lib/components/Blocks.js +0 -2
  112. package/lib/components/Blocks.js.map +1 -1
  113. package/lib/components/CreditCardForm/CreditCardForm.js +1 -4
  114. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  115. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
  116. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  117. package/lib/components/CreditCardForm/getFourthStepData.js +3 -1
  118. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  119. package/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  120. package/lib/components/CreditCardForm/getSixthStepData.js +6 -0
  121. package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
  122. package/lib/components/CreditCardForm/getThirdStepData.js +3 -1
  123. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
  124. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  125. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  126. package/lib/components/CreditForm/CreditForm.js +1 -4
  127. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  128. package/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
  129. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  130. package/lib/components/CreditForm/getSecondStepData.js +3 -1
  131. package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  132. package/lib/components/CreditForm/getThirdStepData.js +3 -1
  133. package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  134. package/lib/components/Header/HeaderTop.js +1 -1
  135. package/lib/components/Header/HeaderTop.js.map +1 -1
  136. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  137. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  138. package/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  139. package/lib/components/TabsLayout/TabsLayout.js +1 -1
  140. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  141. package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  142. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  143. package/lib/components/Video/Video.js +1 -1
  144. package/lib/components/Video/Video.js.map +1 -1
  145. package/lib/external/handlerDecorator.js.map +1 -0
  146. package/lib/external/locationNavigator.d.ts +11 -0
  147. package/lib/external/locationNavigator.js +18 -0
  148. package/lib/external/locationNavigator.js.map +1 -0
  149. package/lib/external/useRouter.js.map +1 -0
  150. package/lib/hooks/useActiveRoute.js +1 -1
  151. package/lib/hooks/useActiveRoute.js.map +1 -1
  152. package/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
  153. package/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  154. package/lib/hooks/useClickHandler.js +1 -1
  155. package/lib/hooks/useClickHandler.js.map +1 -1
  156. package/lib/hooks/useLink.js +2 -2
  157. package/lib/hooks/useLink.js.map +1 -1
  158. package/lib/index.d.ts +3 -3
  159. package/lib/index.js +3 -3
  160. package/lib/index.js.map +1 -1
  161. package/lib/setup-fixture.js +2 -2
  162. package/lib/setup-fixture.js.map +1 -1
  163. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  164. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  165. package/lib/ui-kit/Button/useButton.js +1 -1
  166. package/lib/ui-kit/Button/useButton.js.map +1 -1
  167. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  168. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  169. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  170. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  171. package/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  172. package/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
  173. package/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  174. package/lib/ui-kit/Icon/Icon.js +1 -1
  175. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  176. package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
  177. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  178. package/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
  179. package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  180. package/lib/utils/adjustSrc.d.ts +1 -1
  181. package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  182. package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  183. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
  184. package/mobile/bundle/bundle.umd.js +141 -130
  185. package/mobile/bundle/bundle.umd.min.js +1 -1
  186. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  187. package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  188. package/mobile/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  189. package/mobile/bundle/external/locationNavigator.d.ts +11 -0
  190. package/mobile/bundle/index.d.ts +3 -3
  191. package/mobile/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  192. package/mobile/bundle/utils/adjustSrc.d.ts +1 -1
  193. package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  194. package/mobile/dist/api/RetailAPI/getPaymentSystems.js +2 -2
  195. package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  196. package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  197. package/mobile/dist/api/RetailAPI/updateRefreshToken.js +9 -4
  198. package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
  199. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
  200. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  201. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  202. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  203. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  204. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  205. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  206. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -4
  207. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  208. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
  209. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  210. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +3 -1
  211. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  212. package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  213. package/mobile/dist/components/CreditCardForm/getSixthStepData.js +8 -1
  214. package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
  215. package/mobile/dist/components/CreditCardForm/getThirdStepData.js +3 -1
  216. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
  217. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  218. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  219. package/mobile/dist/components/CreditForm/CreditForm.js +1 -4
  220. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  221. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
  222. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  223. package/mobile/dist/components/CreditForm/getSecondStepData.js +3 -1
  224. package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  225. package/mobile/dist/components/CreditForm/getThirdStepData.js +3 -1
  226. package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  227. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  228. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  229. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  230. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  231. package/mobile/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  232. package/mobile/dist/components/TabsLayout/TabsLayout.js +1 -1
  233. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  234. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  235. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  236. package/mobile/dist/components/Video/Video.js +1 -1
  237. package/mobile/dist/components/Video/Video.js.map +1 -1
  238. package/mobile/dist/external/handlerDecorator.js.map +1 -0
  239. package/mobile/dist/external/locationNavigator.d.ts +11 -0
  240. package/mobile/dist/external/locationNavigator.js +21 -0
  241. package/mobile/dist/external/locationNavigator.js.map +1 -0
  242. package/mobile/dist/external/useRouter.js.map +1 -0
  243. package/mobile/dist/hooks/useActiveRoute.js +1 -1
  244. package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
  245. package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
  246. package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  247. package/mobile/dist/hooks/useClickHandler.js +1 -1
  248. package/mobile/dist/hooks/useClickHandler.js.map +1 -1
  249. package/mobile/dist/hooks/useLink.js +2 -2
  250. package/mobile/dist/hooks/useLink.js.map +1 -1
  251. package/mobile/dist/index.d.ts +3 -3
  252. package/mobile/dist/index.js +5 -5
  253. package/mobile/dist/index.js.map +1 -1
  254. package/mobile/dist/setup-fixture.js +2 -2
  255. package/mobile/dist/setup-fixture.js.map +1 -1
  256. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  257. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  258. package/mobile/dist/ui-kit/Button/useButton.js +1 -1
  259. package/mobile/dist/ui-kit/Button/useButton.js.map +1 -1
  260. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  261. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  262. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  263. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  264. package/mobile/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  265. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
  266. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  267. package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
  268. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  269. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
  270. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  271. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
  272. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  273. package/mobile/dist/utils/adjustSrc.d.ts +1 -1
  274. package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  275. package/mobile/lib/api/RetailAPI/getPaymentSystems.js +2 -2
  276. package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  277. package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  278. package/mobile/lib/api/RetailAPI/updateRefreshToken.js +9 -4
  279. package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
  280. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
  281. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  282. package/mobile/lib/common.css +1 -1
  283. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  284. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  285. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  286. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  287. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  288. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -4
  289. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  290. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
  291. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  292. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +3 -1
  293. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  294. package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  295. package/mobile/lib/components/CreditCardForm/getSixthStepData.js +6 -0
  296. package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
  297. package/mobile/lib/components/CreditCardForm/getThirdStepData.js +3 -1
  298. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
  299. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  300. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  301. package/mobile/lib/components/CreditForm/CreditForm.js +1 -4
  302. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  303. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
  304. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  305. package/mobile/lib/components/CreditForm/getSecondStepData.js +3 -1
  306. package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  307. package/mobile/lib/components/CreditForm/getThirdStepData.js +3 -1
  308. package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  309. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  310. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  311. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  312. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  313. package/mobile/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  314. package/mobile/lib/components/TabsLayout/TabsLayout.js +1 -1
  315. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  316. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  317. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  318. package/mobile/lib/components/Video/Video.js +1 -1
  319. package/mobile/lib/components/Video/Video.js.map +1 -1
  320. package/mobile/lib/external/handlerDecorator.js.map +1 -0
  321. package/mobile/lib/external/locationNavigator.d.ts +11 -0
  322. package/mobile/lib/external/locationNavigator.js +18 -0
  323. package/mobile/lib/external/locationNavigator.js.map +1 -0
  324. package/mobile/lib/external/useRouter.js.map +1 -0
  325. package/mobile/lib/hooks/useActiveRoute.js +1 -1
  326. package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
  327. package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
  328. package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  329. package/mobile/lib/hooks/useClickHandler.js +1 -1
  330. package/mobile/lib/hooks/useClickHandler.js.map +1 -1
  331. package/mobile/lib/hooks/useLink.js +2 -2
  332. package/mobile/lib/hooks/useLink.js.map +1 -1
  333. package/mobile/lib/index.d.ts +3 -3
  334. package/mobile/lib/index.js +3 -3
  335. package/mobile/lib/index.js.map +1 -1
  336. package/mobile/lib/setup-fixture.js +2 -2
  337. package/mobile/lib/setup-fixture.js.map +1 -1
  338. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  339. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  340. package/mobile/lib/ui-kit/Button/useButton.js +1 -1
  341. package/mobile/lib/ui-kit/Button/useButton.js.map +1 -1
  342. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  343. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  344. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  345. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  346. package/mobile/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  347. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
  348. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  349. package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
  350. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  351. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
  352. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  353. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
  354. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  355. package/mobile/lib/utils/adjustSrc.d.ts +1 -1
  356. package/mobile/src/api/RetailAPI/getPaymentSystems.ts +6 -4
  357. package/mobile/src/api/RetailAPI/updateRefreshToken.ts +11 -4
  358. package/mobile/src/api/RetailAPI/updateUserTask.ts +1 -0
  359. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
  360. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
  361. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
  362. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
  363. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
  364. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +4 -0
  365. package/mobile/src/components/CreditCardForm/getSixthStepData.ts +8 -0
  366. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
  367. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
  368. package/mobile/src/components/CreditForm/CreditForm.tsx +1 -6
  369. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
  370. package/mobile/src/components/CreditForm/getSecondStepData.tsx +3 -0
  371. package/mobile/src/components/CreditForm/getThirdStepData.ts +4 -0
  372. package/mobile/src/components/Header/HeaderTop.tsx +1 -1
  373. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  374. package/mobile/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
  375. package/mobile/src/components/TabsLayout/TabsLayout.tsx +1 -1
  376. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  377. package/mobile/src/components/Video/Video.tsx +1 -1
  378. package/mobile/src/external/locationNavigator.ts +27 -0
  379. package/mobile/src/hooks/useActiveRoute.ts +1 -2
  380. package/mobile/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
  381. package/mobile/src/hooks/useClickHandler.ts +1 -1
  382. package/mobile/src/hooks/useLink.ts +2 -2
  383. package/mobile/src/index.ts +3 -3
  384. package/mobile/src/setup-fixture.ts +2 -2
  385. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  386. package/mobile/src/ui-kit/Button/useButton.ts +1 -1
  387. package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
  388. package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
  389. package/mobile/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
  390. package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
  391. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
  392. package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
  393. package/mobile/src/utils/adjustSrc.ts +1 -1
  394. package/package.json +1 -1
  395. package/src/api/RetailAPI/getPaymentSystems.ts +6 -4
  396. package/src/api/RetailAPI/updateRefreshToken.ts +11 -4
  397. package/src/api/RetailAPI/updateUserTask.ts +1 -0
  398. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
  399. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
  400. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
  401. package/src/components/Blocks.ts +0 -2
  402. package/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
  403. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
  404. package/src/components/CreditCardForm/getFourthStepData.ts +4 -0
  405. package/src/components/CreditCardForm/getSixthStepData.ts +8 -0
  406. package/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
  407. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
  408. package/src/components/CreditForm/CreditForm.tsx +1 -6
  409. package/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
  410. package/src/components/CreditForm/getSecondStepData.tsx +3 -0
  411. package/src/components/CreditForm/getThirdStepData.ts +4 -0
  412. package/src/components/Header/HeaderTop.tsx +1 -1
  413. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  414. package/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
  415. package/src/components/TabsLayout/TabsLayout.tsx +1 -1
  416. package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  417. package/src/components/Video/Video.tsx +1 -1
  418. package/src/external/locationNavigator.ts +27 -0
  419. package/src/hooks/useActiveRoute.ts +1 -2
  420. package/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
  421. package/src/hooks/useClickHandler.ts +1 -1
  422. package/src/hooks/useLink.ts +2 -2
  423. package/src/index.ts +3 -3
  424. package/src/setup-fixture.ts +2 -2
  425. package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  426. package/src/ui-kit/Button/useButton.ts +1 -1
  427. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
  428. package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
  429. package/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
  430. package/src/ui-kit/Icon/Icon.tsx +1 -1
  431. package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
  432. package/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
  433. package/src/utils/adjustSrc.ts +1 -1
  434. package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  435. package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  436. package/bundle/hooks/useNavigator.d.ts +0 -8
  437. package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  438. package/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
  439. package/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  440. package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  441. package/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  442. package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  443. package/dist/hooks/handlerDecorator.js.map +0 -1
  444. package/dist/hooks/useNavigator.d.ts +0 -8
  445. package/dist/hooks/useNavigator.js +0 -13
  446. package/dist/hooks/useNavigator.js.map +0 -1
  447. package/dist/hooks/useRouter.js.map +0 -1
  448. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  449. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  450. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  451. package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  452. package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +0 -9
  453. package/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
  454. package/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  455. package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  456. package/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  457. package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  458. package/lib/hooks/handlerDecorator.js.map +0 -1
  459. package/lib/hooks/useNavigator.d.ts +0 -8
  460. package/lib/hooks/useNavigator.js +0 -10
  461. package/lib/hooks/useNavigator.js.map +0 -1
  462. package/lib/hooks/useRouter.js.map +0 -1
  463. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  464. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  465. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  466. package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  467. package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  468. package/mobile/bundle/hooks/useNavigator.d.ts +0 -8
  469. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  470. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
  471. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  472. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  473. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  474. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  475. package/mobile/dist/hooks/handlerDecorator.js.map +0 -1
  476. package/mobile/dist/hooks/useNavigator.d.ts +0 -8
  477. package/mobile/dist/hooks/useNavigator.js +0 -13
  478. package/mobile/dist/hooks/useNavigator.js.map +0 -1
  479. package/mobile/dist/hooks/useRouter.js.map +0 -1
  480. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  481. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  482. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  483. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  484. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
  485. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  486. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  487. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  488. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  489. package/mobile/lib/hooks/handlerDecorator.js.map +0 -1
  490. package/mobile/lib/hooks/useNavigator.d.ts +0 -8
  491. package/mobile/lib/hooks/useNavigator.js +0 -10
  492. package/mobile/lib/hooks/useNavigator.js.map +0 -1
  493. package/mobile/lib/hooks/useRouter.js.map +0 -1
  494. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  495. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  496. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  497. package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
  498. package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
  499. package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
  500. package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
  501. package/mobile/src/hooks/useNavigator.ts +0 -15
  502. package/mobile/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
  503. package/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
  504. package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +0 -129
  505. package/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
  506. package/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
  507. package/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
  508. package/src/hooks/useNavigator.ts +0 -15
  509. package/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
  510. /package/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
  511. /package/bundle/{hooks → external}/useRouter.d.ts +0 -0
  512. /package/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
  513. /package/dist/{hooks → external}/handlerDecorator.js +0 -0
  514. /package/dist/{hooks → external}/useRouter.d.ts +0 -0
  515. /package/dist/{hooks → external}/useRouter.js +0 -0
  516. /package/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
  517. /package/lib/{hooks → external}/handlerDecorator.js +0 -0
  518. /package/lib/{hooks → external}/useRouter.d.ts +0 -0
  519. /package/lib/{hooks → external}/useRouter.js +0 -0
  520. /package/mobile/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
  521. /package/mobile/bundle/{hooks → external}/useRouter.d.ts +0 -0
  522. /package/mobile/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
  523. /package/mobile/dist/{hooks → external}/handlerDecorator.js +0 -0
  524. /package/mobile/dist/{hooks → external}/useRouter.d.ts +0 -0
  525. /package/mobile/dist/{hooks → external}/useRouter.js +0 -0
  526. /package/mobile/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
  527. /package/mobile/lib/{hooks → external}/handlerDecorator.js +0 -0
  528. /package/mobile/lib/{hooks → external}/useRouter.d.ts +0 -0
  529. /package/mobile/lib/{hooks → external}/useRouter.js +0 -0
  530. /package/mobile/src/{hooks → external}/handlerDecorator.ts +0 -0
  531. /package/mobile/src/{hooks → external}/useRouter.ts +0 -0
  532. /package/src/{hooks → external}/handlerDecorator.ts +0 -0
  533. /package/src/{hooks → external}/useRouter.ts +0 -0
@@ -1,4 +1,6 @@
1
1
  import { env } from '../Env';
2
+ import { handlerDecorator } from '../external/handlerDecorator';
3
+ import { useRouter } from '../external/useRouter';
2
4
  import { type LinkProps, type Target } from '../model/LinkProps';
3
5
  import { useDialogManager } from '../ui-kit/DialogManager/useDialogManager';
4
6
  import { type PreventableEvent } from '../ui-kit/PreventableEvent';
@@ -6,8 +8,6 @@ import { adjustBase } from '../utils/adjustBase';
6
8
  import { adjustHref } from '../utils/adjustHref';
7
9
  import { getBasePath } from '../utils/getBasePath';
8
10
  import { hasPrefix, isLocalURL } from '../utils/url';
9
- import { handlerDecorator } from './handlerDecorator';
10
- import { useRouter } from './useRouter';
11
11
 
12
12
  interface Clickable {
13
13
  onClick(ev?: PreventableEvent): void;
@@ -2,9 +2,9 @@ export { setupHooks } from '@redneckz/uni-jsx/lib/hooks';
2
2
  export { setup } from '@redneckz/uni-jsx/lib/setup';
3
3
  export { Blocks } from './components/Blocks';
4
4
  export { ContentPage } from './components/ContentPage/ContentPage';
5
- export { handlerDecorator } from './hooks/handlerDecorator';
6
- export { useNavigator } from './hooks/useNavigator';
7
- export { useRouter } from './hooks/useRouter';
5
+ export { handlerDecorator } from './external/handlerDecorator';
6
+ export { locationNavigator } from './external/locationNavigator';
7
+ export { useRouter } from './external/useRouter';
8
8
  export { projectSettings } from './ProjectSettings';
9
9
  export { joinList } from './utils/joinList';
10
10
  export * as url from './utils/url';
@@ -1,7 +1,7 @@
1
1
  import '@redneckz/uni-jsx/lib/setup.react';
2
2
  import { useEffect, useState } from 'react';
3
- import { handlerDecorator } from './hooks/handlerDecorator';
4
- import { useRouter } from './hooks/useRouter';
3
+ import { handlerDecorator } from './external/handlerDecorator';
4
+ import { useRouter } from './external/useRouter';
5
5
  import { projectSettings } from './ProjectSettings';
6
6
  import { joinPath } from './utils/url';
7
7
  import wlc from './wlc.json';
@@ -2,8 +2,8 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { renderChildren } from '../../BlockRenderer/renderChildren';
4
4
  import { renderBackwardButton } from '../../components/ProductBlock/renderBackwardButton';
5
+ import { useRouter } from '../../external/useRouter';
5
6
  import { useMobileMode } from '../../hooks/useMobileMode';
6
- import { useRouter } from '../../hooks/useRouter';
7
7
  import { type Align } from '../../model/Align';
8
8
  import { type VNode } from '../../model/VNode';
9
9
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
@@ -1,4 +1,4 @@
1
- import { handlerDecorator } from '../../hooks/handlerDecorator';
1
+ import { handlerDecorator } from '../../external/handlerDecorator';
2
2
  import { type PreventableEvent } from '../PreventableEvent';
3
3
  import { type ButtonProps } from './Button';
4
4
 
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { getLink } from '../../api/RetailAPI/getLink';
4
+ import { locationNavigator } from '../../external/locationNavigator';
4
5
  import { Button } from '../Button/Button';
5
6
  import { Dialog } from '../DialogManager/Dialog';
6
7
  import { Img } from '../Img/Img';
@@ -10,13 +11,15 @@ export interface EsiaLoginDialogProps {
10
11
  }
11
12
 
12
13
  export const EsiaLoginDialog = JSX<EsiaLoginDialogProps>(function ({ handleClose }) {
14
+ const navigator = locationNavigator();
15
+
13
16
  const handleAuth = useCallback(async () => {
14
17
  const resp = await getLink({
15
- redirectUri: globalThis.location.href,
18
+ redirectUri: navigator.href,
16
19
  });
17
20
 
18
21
  if (resp) {
19
- globalThis.location.href = resp.link;
22
+ navigator.assign(resp.link);
20
23
  }
21
24
  }, []);
22
25
 
@@ -1,4 +1,5 @@
1
1
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { locationNavigator } from '../../external/locationNavigator';
2
3
  import { useDialogManager, type DialogOptions } from '../DialogManager/useDialogManager';
3
4
  import { EsiaLoginDialog } from './EsiaLoginDialog';
4
5
 
@@ -9,10 +10,11 @@ export interface EsiaLoginDialogProps {
9
10
 
10
11
  export const useEsiaLoginDialog = (nextStepLink: string) => {
11
12
  const { open, close } = useDialogManager();
13
+ const navigator = locationNavigator();
12
14
 
13
15
  const handleClose = useCallback(() => {
14
16
  close();
15
- globalThis.location.href = nextStepLink;
17
+ navigator.assign(nextStepLink);
16
18
  }, []);
17
19
 
18
20
  return {
@@ -1,5 +1,5 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
1
2
  import { type JSONRefObject } from '../../../data/JSONRefObject';
2
- import { UniBlock } from '../../../UniBlock/UniBlock';
3
3
  import { type UniBlockProps } from '../../../UniBlock/UniBlockProps';
4
4
  import { withValidator } from '../../../validation/withValidator';
5
5
  import { SelectControl } from '../../Select/SelectControl';
@@ -12,7 +12,7 @@ export interface ProductFieldProps extends CustomFieldProps, UniBlockProps {
12
12
  };
13
13
  }
14
14
 
15
- export const ProductField = UniBlock<ProductFieldProps>(({ field, source }) => (
15
+ export const ProductField = JSX<ProductFieldProps>(({ field, source }) => (
16
16
  <SelectControl
17
17
  placeholder="Выберите продукт"
18
18
  label="Продукт"
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useRouter } from '../../hooks/useRouter';
2
+ import { useRouter } from '../../external/useRouter';
3
3
  import { type IconVersion } from '../../model/IconVersion';
4
4
  import { projectSettings } from '../../ProjectSettings';
5
5
  import { adjustHref } from '../../utils/adjustHref';
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useRouter } from '../../hooks/useRouter';
2
+ import { useRouter } from '../../external/useRouter';
3
3
  import { type ImgSource, type Picture } from '../../model/Picture';
4
4
  import { adjustSrc } from '../../utils/adjustSrc';
5
5
  import { style } from '../../utils/style';
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type LinkDoc } from '../../components/LinkDocs/LinkDocsContent';
4
- import { useRouter } from '../../hooks/useRouter';
4
+ import { useRouter } from '../../external/useRouter';
5
5
  import { type Picture } from '../../model/Picture';
6
6
  import { adjustHref } from '../../utils/adjustHref';
7
7
  import { Button } from '../Button/Button';
@@ -1,5 +1,5 @@
1
1
  import { env } from '../Env';
2
- import { type Router } from '../hooks/useRouter';
2
+ import { type Router } from '../external/useRouter';
3
3
  import { adjustHref } from './adjustHref';
4
4
  import { getBasePath } from './getBasePath';
5
5
  import { isURL } from './url';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.680",
3
+ "version": "0.14.682",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -14,8 +14,10 @@ export const getPaymentSystems = async () => {
14
14
 
15
15
  const data: PaymentSystemResponse = await response?.json();
16
16
 
17
- return data?.paymentSystems?.map((paymentSystem) => ({
18
- id: paymentSystem.type,
19
- text: paymentSystem.name,
20
- }));
17
+ return (
18
+ data?.paymentSystems?.map((paymentSystem) => ({
19
+ id: paymentSystem.type,
20
+ text: paymentSystem.name,
21
+ })) ?? []
22
+ );
21
23
  };
@@ -1,3 +1,4 @@
1
+ import { locationNavigator } from '../../external/locationNavigator';
1
2
  import { doRequest } from './doRequest';
2
3
 
3
4
  interface UpdateRefreshTokenBody {
@@ -5,17 +6,23 @@ interface UpdateRefreshTokenBody {
5
6
  access_token: string;
6
7
  }
7
8
 
9
+ const PORTAL_NATURAL_URL = '/';
10
+
8
11
  const UPDATING_INTERVAL = 60000 * 4;
9
12
 
10
- export const updateRefreshToken = (failCallback: () => void) => {
13
+ export const updateRefreshToken = () => {
11
14
  const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
12
15
  const accessToken = globalThis.sessionStorage?.getItem('accessToken');
13
16
  const taskId = globalThis.localStorage.getItem('taskId');
14
17
 
18
+ const navigator = locationNavigator();
19
+
15
20
  if (!accessToken || !refreshToken || !taskId) {
16
- failCallback();
21
+ navigator.assign(PORTAL_NATURAL_URL);
17
22
 
18
- return () => null;
23
+ return () => {
24
+ // do nothing
25
+ };
19
26
  }
20
27
 
21
28
  const updateTokenRequest = async () => {
@@ -27,7 +34,7 @@ export const updateRefreshToken = (failCallback: () => void) => {
27
34
  });
28
35
 
29
36
  if (res?.status == 401) {
30
- failCallback();
37
+ navigator.assign(PORTAL_NATURAL_URL);
31
38
  }
32
39
 
33
40
  if (res?.ok) {
@@ -52,6 +52,7 @@ export type Participant = {
52
52
  };
53
53
  armyIdFlg?: boolean;
54
54
  birthPlace?: string;
55
+ childrenDependents?: number;
55
56
  genderCd?: Option;
56
57
  dulIssueDate?: string;
57
58
  dulIssuedBy?: string;
@@ -118,7 +118,7 @@ export interface FormState extends FormConsents, FormStateDeliveryType {
118
118
  totalIncome?: number;
119
119
  expenses?: number;
120
120
  snils?: string;
121
- conscription?: string;
121
+ conscription?: Option;
122
122
  armyIdFlg?: boolean;
123
123
  addressRegistration?: Address;
124
124
  participantDateRegistration?: Date | string;
@@ -1,5 +1,6 @@
1
1
  import { type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
2
2
  import { type FormState } from '../../components/ApplicationLeadForm/getInitialFormState';
3
+ import { locationNavigator } from '../../external/locationNavigator';
3
4
  import { formatDate } from '../../utils/formatDate';
4
5
  import { formatPhone } from '../../utils/formatPhone';
5
6
  import { getParticipantContacts } from '../CreditForm/utils';
@@ -18,12 +19,13 @@ export const getLeadFormTaskData = ({
18
19
  formData,
19
20
  }: getLeadFormTaskDataProps): UpdateUserTaskBody => {
20
21
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
22
+ const navigator = locationNavigator();
21
23
 
22
24
  return {
23
25
  sendToBank: true,
24
26
  taskKind: 'SHORT',
25
27
  task: {
26
- taskSource: globalThis.location.origin,
28
+ taskSource: navigator.origin,
27
29
  id: taskId,
28
30
  participants: [
29
31
  {
@@ -1,11 +1,13 @@
1
1
  import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
2
 
3
3
  import { updateProfileEsia } from '../../api/RetailAPI/updateProfileEsia';
4
+ import { locationNavigator } from '../../external/locationNavigator';
4
5
  import { useLocalStorage } from '../../hooks/useLocalStorage';
5
6
  import { type FormState } from './getInitialFormState';
6
7
  import { parseEsiaProfile } from './pasreEsiaProfile';
7
8
 
8
9
  export const useInitApplicationLead = (nextStepLink: string) => {
10
+ const navigator = locationNavigator();
9
11
  const [isLoading, setIsLoading] = useState(false);
10
12
  const [profileId] = useLocalStorage<string>('profileId');
11
13
  const [leadForm, setLeadForm] = useLocalStorage<FormState>('leadForm');
@@ -19,7 +21,7 @@ export const useInitApplicationLead = (nextStepLink: string) => {
19
21
  profileId: profileId,
20
22
  code,
21
23
  state,
22
- redirectUri: globalThis.location?.href,
24
+ redirectUri: navigator.href,
23
25
  });
24
26
 
25
27
  data &&
@@ -28,7 +30,7 @@ export const useInitApplicationLead = (nextStepLink: string) => {
28
30
  ...parseEsiaProfile(data),
29
31
  });
30
32
 
31
- globalThis.location.href = nextStepLink;
33
+ navigator.assign(nextStepLink);
32
34
  }
33
35
  }, []);
34
36
 
@@ -3,7 +3,6 @@ import { type BlocksRegistry } from '../model/BlocksRegistry';
3
3
  import { AdTile } from './AdTile/AdTile';
4
4
  import { ApplicationForm } from './ApplicationForm/ApplicationForm';
5
5
  import { ApplicationLeadForm } from './ApplicationLeadForm/ApplicationLeadForm';
6
- import { ApplicationStatus } from './ApplicationStatus/ApplicationStatus';
7
6
  import { BankAccountFiltration } from './BankAccountFiltration/BankAccountFiltration';
8
7
  import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
9
8
  import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
@@ -60,7 +59,6 @@ export const Blocks: BlocksRegistry = {
60
59
  AdTile,
61
60
  ApplicationForm,
62
61
  ApplicationLeadForm,
63
- ApplicationStatus,
64
62
  BankAccountFiltration,
65
63
  BenefitsBlock,
66
64
  BonusBenefitsBlock,
@@ -1,7 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
4
- import { useNavigator } from '../../hooks/useNavigator';
5
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
5
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
7
6
  import { style } from '../../utils/style';
@@ -12,8 +11,6 @@ import { stepsSectionsMap } from './creditCardFormStepsData';
12
11
 
13
12
  interface CreditCardFormWizardProps extends CreditCardFormContent, UniBlockProps {}
14
13
 
15
- const PORTAL_NATURAL_URL = '/';
16
-
17
14
  const WIZARD_STEPS = 6;
18
15
 
19
16
  const WIZARD_TITLES = [
@@ -34,9 +31,7 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
34
31
  [formContainerRef],
35
32
  );
36
33
 
37
- const navigator = useNavigator();
38
-
39
- useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
34
+ useEffect(updateRefreshToken, []);
40
35
 
41
36
  const handleNextStep = useCallback(() => {
42
37
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
@@ -1,10 +1,11 @@
1
1
  import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
2
+ import { locationNavigator } from '../../external/locationNavigator';
2
3
  import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
3
4
  import { getFifthStepData } from './getFifthStepData';
4
5
  import { getFirstStepData } from './getFirstStepData';
5
6
  import { getFourthStepData } from './getFourthStepData';
6
7
  import { getSecondStepData } from './getSecondStepData';
7
- import { getDeliveryData, getSixthStepData } from './getSixthStepData';
8
+ import { getDeliveryData, getOfficeCode, getSixthStepData } from './getSixthStepData';
8
9
  import { getThirdStepData } from './getThirdStepData';
9
10
 
10
11
  type getCreditCardFormTaskDataProps = {
@@ -22,15 +23,15 @@ export const getCreditCardFormTaskData = ({
22
23
  formData,
23
24
  step = 0,
24
25
  }: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
26
+ const navigator = locationNavigator();
27
+
25
28
  return {
26
29
  sendToBank: true,
27
30
  taskKind: 'UNITED',
28
31
  task: {
29
- taskSource: globalThis.location.origin,
32
+ taskSource: navigator.origin,
30
33
  id: taskId,
31
- office: {
32
- id: '650', // TODO: Remove hardcode
33
- },
34
+ ...getOfficeCode(formData),
34
35
  authorizedAgentId: formData?.bankEmployeeCode,
35
36
  participants: [
36
37
  {
@@ -7,6 +7,7 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
7
7
  familyStatus,
8
8
  dependents,
9
9
  familyMembers,
10
+ children,
10
11
  wages,
11
12
  mandatoryPayments,
12
13
  incomeAverage,
@@ -17,12 +18,15 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
17
18
  retirementIncome,
18
19
  snils,
19
20
  armyIdFlg,
21
+ conscription,
20
22
  } = formData;
21
23
 
22
24
  return {
23
25
  maritalStatusCd: familyStatus,
26
+ childrenDependents: children,
24
27
  totalDependents: familyMembers,
25
28
  otherDependents: dependents,
29
+ militaryStatusCd: conscription,
26
30
  participantIncomes: getParticipantIncomes({
27
31
  wages,
28
32
  mandatoryPayments,
@@ -12,6 +12,14 @@ export const getDeliveryData = (formData: FormState) => {
12
12
  };
13
13
  };
14
14
 
15
+ export const getOfficeCode = (formData: FormState) => {
16
+ const { addressRetail } = formData;
17
+
18
+ return {
19
+ office: addressRetail?.key ? { id: addressRetail.key } : undefined,
20
+ };
21
+ };
22
+
15
23
  export const getSixthStepData = (formData: FormState) => {
16
24
  const { addressCourier } = formData;
17
25
 
@@ -1,10 +1,12 @@
1
1
  import { type Participant } from '../../api/RetailAPI/updateUserTask';
2
+ import { formatDate } from '../../utils/formatDate';
2
3
  import { formatPhone } from '../../utils/formatPhone';
3
4
  import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
4
5
  import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
5
6
 
6
7
  export const getThirdStepData = (formData: FormState): Partial<Participant> => {
7
8
  const {
9
+ beginDate,
8
10
  employment,
9
11
  organizationName,
10
12
  inn,
@@ -23,6 +25,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
23
25
  } = formData;
24
26
 
25
27
  return {
28
+ employmentContractDate: formatDate(beginDate || '', true),
26
29
  employmentTypeCd: employment,
27
30
  organizationName,
28
31
  organizationInn: inn,
@@ -32,7 +32,7 @@ export const useCreditCardFormAPI = ({
32
32
  const feedbackValidator = objectValidator(
33
33
  getObjectValidator(calculateInputs(getValue(formData))(inputs, step)),
34
34
  );
35
- console.log(getObjectValidator(calculateInputs(getValue(formData))(inputs, step)));
35
+
36
36
  if (!isValidationSuccess(feedbackValidator(formData))) {
37
37
  return console.warn('validation fail');
38
38
  }
@@ -1,7 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
4
- import { useNavigator } from '../../hooks/useNavigator';
5
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
5
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
7
6
  import { style } from '../../utils/style';
@@ -13,8 +12,6 @@ import { stepsSectionsMap } from './creditFormStepsData';
13
12
 
14
13
  interface CreditFormWizardProps extends CreditFormContent, UniBlockProps {}
15
14
 
16
- const PORTAL_NATURAL_URL = '/';
17
-
18
15
  const WIZARD_STEPS = 5;
19
16
 
20
17
  const WIZARD_TITLES = [
@@ -35,9 +32,7 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
35
32
  [formContainerRef],
36
33
  );
37
34
 
38
- const navigator = useNavigator();
39
-
40
- useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
35
+ useEffect(updateRefreshToken, []);
41
36
 
42
37
  const handleNextStep = useCallback(() => {
43
38
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
@@ -1,4 +1,5 @@
1
1
  import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
2
+ import { locationNavigator } from '../../external/locationNavigator';
2
3
  import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
3
4
  import { getFifthStepData } from './getFifthStepData';
4
5
  import { getFirstStepData } from './getFirstStepData';
@@ -21,36 +22,37 @@ export const getCreditFormTaskData = ({
21
22
  profileId,
22
23
  formData,
23
24
  step = 0,
24
- }: getCreditFormTaskDataProps): UpdateUserTaskBody => ({
25
- sendToBank: true,
26
- taskKind: 'UNITED',
27
- task: {
28
- taskSource: globalThis.location.origin,
29
- id: taskId,
30
- office: {
31
- id: '',
32
- },
33
- authorizedAgentId: formData?.bankEmployeeCode,
34
- participants: [
35
- {
36
- id: participantId,
37
- profile: {
38
- id: profileId,
39
- },
40
- roleCd: {
41
- key: 'BORROWER',
42
- value: 'Заемщик',
25
+ }: getCreditFormTaskDataProps): UpdateUserTaskBody => {
26
+ const navigator = locationNavigator();
27
+
28
+ return {
29
+ sendToBank: true,
30
+ taskKind: 'UNITED',
31
+ task: {
32
+ taskSource: navigator.origin,
33
+ id: taskId,
34
+ authorizedAgentId: formData?.bankEmployeeCode,
35
+ participants: [
36
+ {
37
+ id: participantId,
38
+ profile: {
39
+ id: profileId,
40
+ },
41
+ roleCd: {
42
+ key: 'BORROWER',
43
+ value: 'Заемщик',
44
+ },
45
+ ...getCurrentStepData(step, formData),
43
46
  },
44
- ...getCurrentStepData(step, formData),
45
- },
46
- ],
47
- ...getZeroStepData(formData), // moved from participants
48
- ...getFifthStepData(formData),
49
- esiaAccountTypeCd: {
50
- key: formData?.esiaAccountTypeCd?.key,
51
- } as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
52
- },
53
- });
47
+ ],
48
+ ...getZeroStepData(formData), // moved from participants
49
+ ...getFifthStepData(formData),
50
+ esiaAccountTypeCd: {
51
+ key: formData?.esiaAccountTypeCd?.key,
52
+ } as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
53
+ },
54
+ };
55
+ };
54
56
 
55
57
  const getCurrentStepData = (step: number, formData: FormState): Partial<Participant> => {
56
58
  switch (step) {
@@ -1,10 +1,12 @@
1
1
  import { type Participant } from '../../api/RetailAPI/updateUserTask';
2
+ import { formatDate } from '../../utils/formatDate';
2
3
  import { formatPhone } from '../../utils/formatPhone';
3
4
  import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
4
5
  import { getParticipantAddresses, getParticipantContacts } from './utils';
5
6
 
6
7
  export const getSecondStepData = (formData: FormState): Partial<Participant> => {
7
8
  const {
9
+ beginDate,
8
10
  employment,
9
11
  organizationName,
10
12
  inn,
@@ -23,6 +25,7 @@ export const getSecondStepData = (formData: FormState): Partial<Participant> =>
23
25
  } = formData;
24
26
 
25
27
  return {
28
+ employmentContractDate: formatDate(beginDate || '', true),
26
29
  employmentTypeCd: employment,
27
30
  organizationName,
28
31
  organizationInn: inn,
@@ -7,6 +7,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
7
7
  familyStatus,
8
8
  dependents,
9
9
  familyMembers,
10
+ children,
10
11
  confirmationIncome,
11
12
  wages,
12
13
  mandatoryPayments,
@@ -18,6 +19,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
18
19
  retirementIncome,
19
20
  snils,
20
21
  armyIdFlg,
22
+ conscription,
21
23
  } = formData;
22
24
 
23
25
  return {
@@ -25,6 +27,8 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
25
27
  totalDependents: familyMembers,
26
28
  incomeCertificateCd: confirmationIncome,
27
29
  otherDependents: dependents,
30
+ childrenDependents: children,
31
+ militaryStatusCd: conscription,
28
32
  participantIncomes: getParticipantIncomes({
29
33
  wages,
30
34
  mandatoryPayments,
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useRouter } from '../../hooks/useRouter';
3
+ import { useRouter } from '../../external/useRouter';
4
4
  import { type BgColorVersion } from '../../model/BgColorVersion';
5
5
  import { type BlockVersion } from '../../model/BlockVersion';
6
6
  import { type LogoType } from '../../model/LogoType';
@@ -1,4 +1,4 @@
1
- import { useRouter, type Router } from '../../hooks/useRouter';
1
+ import { useRouter, type Router } from '../../external/useRouter';
2
2
  import { type Picture } from '../../model/Picture';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { RichText } from '../../ui-kit/RichText/RichText';
@@ -1,4 +1,4 @@
1
- import { type Router } from '../../hooks/useRouter';
1
+ import { type Router } from '../../external/useRouter';
2
2
  import { type Picture } from '../../model/Picture';
3
3
  import { Img } from '../../ui-kit/Img/Img';
4
4
  import { RichText } from '../../ui-kit/RichText/RichText';
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
2
  import { renderBlocksList } from '../../BlockRenderer/renderBlockList';
3
- import { useRouter } from '../../hooks/useRouter';
3
+ import { useRouter } from '../../external/useRouter';
4
4
  import { type BlockDef } from '../../model/ContentPageDef';
5
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
6
  import { type TabItemBase } from '../../ui-kit/TabsControl/TabItem';
@@ -1,5 +1,5 @@
1
1
  import { renderChildren } from '../../BlockRenderer/renderChildren';
2
- import { useRouter } from '../../hooks/useRouter';
2
+ import { useRouter } from '../../external/useRouter';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { UniBlock } from '../../UniBlock/UniBlock';
5
5
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';