@redneckz/wildless-cms-uni-blocks 0.14.862 → 0.14.863

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 (330) hide show
  1. package/bin/migration-scripts/0.14.471.js +1 -1
  2. package/bin/migration-scripts/0.14.478.js +1 -1
  3. package/bin/migration-scripts/0.14.850.js +7 -11
  4. package/bundle/UniBlock/UniBlock.d.ts +1 -1
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +17 -24
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
  9. package/bundle/components/Footer/TextInformationLink.d.ts +2 -2
  10. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
  11. package/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
  12. package/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
  13. package/bundle/model/OnClickProps.d.ts +4 -0
  14. package/bundle/retail/api/updateUserTask.d.ts +2 -1
  15. package/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
  16. package/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
  17. package/bundle/ui-kit/Button/Button.d.ts +2 -3
  18. package/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
  19. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
  20. package/bundle/ui-kit/Link/Link.d.ts +2 -3
  21. package/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
  22. package/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
  23. package/dist/UniBlock/UniBlock.d.ts +1 -1
  24. package/dist/api/LeadServiceAPI.js +1 -2
  25. package/dist/api/LeadServiceAPI.js.map +1 -1
  26. package/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
  27. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  28. package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
  29. package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  30. package/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
  31. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  32. package/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
  33. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
  34. package/dist/components/Footer/TextInformationLink.d.ts +2 -2
  35. package/dist/components/Footer/TextInformationLink.js.map +1 -1
  36. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
  37. package/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
  38. package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
  39. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  40. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
  41. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  42. package/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
  43. package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  44. package/dist/hooks/useForm/useForm.js.map +1 -1
  45. package/dist/hooks/useJSONRef/fetchRefs.js +4 -4
  46. package/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
  47. package/dist/model/OnClickProps.d.ts +4 -0
  48. package/dist/retail/api/createCaptcha.js +1 -1
  49. package/dist/retail/api/createCaptcha.js.map +1 -1
  50. package/dist/retail/api/dadataHints/dadataHints.js +1 -2
  51. package/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
  52. package/dist/retail/api/feedbackById.js +1 -1
  53. package/dist/retail/api/feedbackById.js.map +1 -1
  54. package/dist/retail/api/updateRefreshToken.js +1 -1
  55. package/dist/retail/api/updateRefreshToken.js.map +1 -1
  56. package/dist/retail/api/updateUserTask.d.ts +2 -1
  57. package/dist/retail/api/updateUserTask.js.map +1 -1
  58. package/dist/retail/api/uploadFile.js +1 -2
  59. package/dist/retail/api/uploadFile.js.map +1 -1
  60. package/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
  61. package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  62. package/dist/retail/utils/getOrganizationParams.d.ts +6 -16
  63. package/dist/retail/utils/getOrganizationParams.js.map +1 -1
  64. package/dist/ui-kit/Button/Button.d.ts +2 -3
  65. package/dist/ui-kit/Button/Button.js.map +1 -1
  66. package/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
  67. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  68. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
  69. package/dist/ui-kit/Link/Link.d.ts +2 -3
  70. package/dist/ui-kit/Link/Link.js.map +1 -1
  71. package/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
  72. package/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
  73. package/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
  74. package/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
  75. package/lib/UniBlock/UniBlock.d.ts +1 -1
  76. package/lib/api/LeadServiceAPI.js +1 -2
  77. package/lib/api/LeadServiceAPI.js.map +1 -1
  78. package/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
  79. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  80. package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
  81. package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  82. package/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
  83. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  84. package/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
  85. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
  86. package/lib/components/Footer/TextInformationLink.d.ts +2 -2
  87. package/lib/components/Footer/TextInformationLink.js.map +1 -1
  88. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
  89. package/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
  90. package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
  91. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  92. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
  93. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  94. package/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
  95. package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  96. package/lib/hooks/useForm/useForm.js.map +1 -1
  97. package/lib/hooks/useJSONRef/fetchRefs.js +4 -4
  98. package/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
  99. package/lib/model/OnClickProps.d.ts +4 -0
  100. package/lib/retail/api/createCaptcha.js +1 -1
  101. package/lib/retail/api/createCaptcha.js.map +1 -1
  102. package/lib/retail/api/dadataHints/dadataHints.js +1 -2
  103. package/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
  104. package/lib/retail/api/feedbackById.js +1 -1
  105. package/lib/retail/api/feedbackById.js.map +1 -1
  106. package/lib/retail/api/updateRefreshToken.js +1 -1
  107. package/lib/retail/api/updateRefreshToken.js.map +1 -1
  108. package/lib/retail/api/updateUserTask.d.ts +2 -1
  109. package/lib/retail/api/updateUserTask.js.map +1 -1
  110. package/lib/retail/api/uploadFile.js +1 -2
  111. package/lib/retail/api/uploadFile.js.map +1 -1
  112. package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
  113. package/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
  114. package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  115. package/lib/retail/utils/getOrganizationParams.d.ts +6 -16
  116. package/lib/retail/utils/getOrganizationParams.js.map +1 -1
  117. package/lib/ui-kit/Button/Button.d.ts +2 -3
  118. package/lib/ui-kit/Button/Button.js.map +1 -1
  119. package/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
  120. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  121. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
  122. package/lib/ui-kit/Link/Link.d.ts +2 -3
  123. package/lib/ui-kit/Link/Link.js.map +1 -1
  124. package/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
  125. package/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
  126. package/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
  127. package/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
  128. package/mobile/bundle/UniBlock/UniBlock.d.ts +1 -1
  129. package/mobile/bundle/bundle.umd.js +17 -24
  130. package/mobile/bundle/bundle.umd.min.js +1 -1
  131. package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
  132. package/mobile/bundle/components/Footer/TextInformationLink.d.ts +2 -2
  133. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
  134. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
  135. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
  136. package/mobile/bundle/model/OnClickProps.d.ts +4 -0
  137. package/mobile/bundle/retail/api/updateUserTask.d.ts +2 -1
  138. package/mobile/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
  139. package/mobile/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
  140. package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -3
  141. package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
  142. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
  143. package/mobile/bundle/ui-kit/Link/Link.d.ts +2 -3
  144. package/mobile/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
  145. package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
  146. package/mobile/dist/UniBlock/UniBlock.d.ts +1 -1
  147. package/mobile/dist/api/LeadServiceAPI.js +1 -2
  148. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  149. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
  150. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  151. package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
  152. package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  153. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
  154. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  155. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
  156. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
  157. package/mobile/dist/components/Footer/TextInformationLink.d.ts +2 -2
  158. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
  159. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
  160. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
  161. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
  162. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  163. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
  164. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  165. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
  166. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  167. package/mobile/dist/hooks/useForm/useForm.js.map +1 -1
  168. package/mobile/dist/hooks/useJSONRef/fetchRefs.js +4 -4
  169. package/mobile/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
  170. package/mobile/dist/model/OnClickProps.d.ts +4 -0
  171. package/mobile/dist/retail/api/createCaptcha.js +1 -1
  172. package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
  173. package/mobile/dist/retail/api/dadataHints/dadataHints.js +1 -2
  174. package/mobile/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
  175. package/mobile/dist/retail/api/feedbackById.js +1 -1
  176. package/mobile/dist/retail/api/feedbackById.js.map +1 -1
  177. package/mobile/dist/retail/api/updateRefreshToken.js +1 -1
  178. package/mobile/dist/retail/api/updateRefreshToken.js.map +1 -1
  179. package/mobile/dist/retail/api/updateUserTask.d.ts +2 -1
  180. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  181. package/mobile/dist/retail/api/uploadFile.js +1 -2
  182. package/mobile/dist/retail/api/uploadFile.js.map +1 -1
  183. package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
  184. package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  185. package/mobile/dist/retail/utils/getOrganizationParams.d.ts +6 -16
  186. package/mobile/dist/retail/utils/getOrganizationParams.js.map +1 -1
  187. package/mobile/dist/ui-kit/Button/Button.d.ts +2 -3
  188. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  189. package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
  190. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  191. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
  192. package/mobile/dist/ui-kit/Link/Link.d.ts +2 -3
  193. package/mobile/dist/ui-kit/Link/Link.js.map +1 -1
  194. package/mobile/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
  195. package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
  196. package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
  197. package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
  198. package/mobile/lib/UniBlock/UniBlock.d.ts +1 -1
  199. package/mobile/lib/api/LeadServiceAPI.js +1 -2
  200. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  201. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
  202. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  203. package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
  204. package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  205. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
  206. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  207. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
  208. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
  209. package/mobile/lib/components/Footer/TextInformationLink.d.ts +2 -2
  210. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
  211. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
  212. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
  213. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
  214. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  215. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
  216. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  217. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
  218. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
  219. package/mobile/lib/hooks/useForm/useForm.js.map +1 -1
  220. package/mobile/lib/hooks/useJSONRef/fetchRefs.js +4 -4
  221. package/mobile/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
  222. package/mobile/lib/model/OnClickProps.d.ts +4 -0
  223. package/mobile/lib/retail/api/createCaptcha.js +1 -1
  224. package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
  225. package/mobile/lib/retail/api/dadataHints/dadataHints.js +1 -2
  226. package/mobile/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
  227. package/mobile/lib/retail/api/feedbackById.js +1 -1
  228. package/mobile/lib/retail/api/feedbackById.js.map +1 -1
  229. package/mobile/lib/retail/api/updateRefreshToken.js +1 -1
  230. package/mobile/lib/retail/api/updateRefreshToken.js.map +1 -1
  231. package/mobile/lib/retail/api/updateUserTask.d.ts +2 -1
  232. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  233. package/mobile/lib/retail/api/uploadFile.js +1 -2
  234. package/mobile/lib/retail/api/uploadFile.js.map +1 -1
  235. package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
  236. package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  237. package/mobile/lib/retail/utils/getOrganizationParams.d.ts +6 -16
  238. package/mobile/lib/retail/utils/getOrganizationParams.js.map +1 -1
  239. package/mobile/lib/ui-kit/Button/Button.d.ts +2 -3
  240. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  241. package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
  242. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  243. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
  244. package/mobile/lib/ui-kit/Link/Link.d.ts +2 -3
  245. package/mobile/lib/ui-kit/Link/Link.js.map +1 -1
  246. package/mobile/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
  247. package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
  248. package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
  249. package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
  250. package/mobile/src/UniBlock/UniBlock.tsx +1 -1
  251. package/mobile/src/api/LeadServiceAPI.ts +1 -3
  252. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
  253. package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
  254. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
  255. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
  256. package/mobile/src/components/Footer/TextInformationLink.tsx +2 -2
  257. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
  258. package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
  259. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
  260. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
  261. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
  262. package/mobile/src/hooks/useForm/useForm.ts +1 -1
  263. package/mobile/src/hooks/useJSONRef/fetchRefs.ts +5 -6
  264. package/mobile/src/model/OnClickProps.ts +6 -0
  265. package/mobile/src/retail/api/createCaptcha.ts +1 -1
  266. package/mobile/src/retail/api/dadataHints/dadataHints.ts +1 -3
  267. package/mobile/src/retail/api/feedbackById.ts +1 -1
  268. package/mobile/src/retail/api/updateRefreshToken.ts +1 -1
  269. package/mobile/src/retail/api/updateUserTask.ts +11 -9
  270. package/mobile/src/retail/api/uploadFile.ts +1 -3
  271. package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
  272. package/mobile/src/retail/utils/getOrganizationParams.ts +7 -8
  273. package/mobile/src/ui-kit/Button/Button.tsx +6 -3
  274. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -3
  275. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  276. package/mobile/src/ui-kit/Link/Link.tsx +2 -3
  277. package/mobile/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
  278. package/mobile/src/ui-kit/Radio/RadioProps.ts +2 -2
  279. package/mobile/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
  280. package/package.json +1 -1
  281. package/src/UniBlock/UniBlock.tsx +1 -1
  282. package/src/api/LeadServiceAPI.ts +1 -3
  283. package/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
  284. package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
  285. package/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
  286. package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +1 -1
  287. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +1 -1
  288. package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +1 -1
  289. package/src/components/CreditForm/CreditForm.fixture.tsx +1 -1
  290. package/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
  291. package/src/components/Footer/TextInformationLink.tsx +2 -2
  292. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
  293. package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
  294. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
  295. package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
  296. package/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
  297. package/src/hooks/useForm/useForm.ts +1 -1
  298. package/src/hooks/useJSONRef/fetchRefs.ts +5 -6
  299. package/src/model/OnClickProps.ts +6 -0
  300. package/src/retail/api/createCaptcha.ts +1 -1
  301. package/src/retail/api/dadataHints/dadataHints.ts +1 -3
  302. package/src/retail/api/feedbackById.ts +1 -1
  303. package/src/retail/api/updateRefreshToken.ts +1 -1
  304. package/src/retail/api/updateUserTask.ts +11 -9
  305. package/src/retail/api/uploadFile.ts +1 -3
  306. package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
  307. package/src/retail/utils/getOrganizationParams.ts +7 -8
  308. package/src/ui-kit/Button/Button.tsx +6 -3
  309. package/src/ui-kit/DialogManager/Dialog.tsx +2 -3
  310. package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  311. package/src/ui-kit/Link/Link.tsx +2 -3
  312. package/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
  313. package/src/ui-kit/Radio/RadioProps.ts +2 -2
  314. package/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
  315. package/bundle/model/onClick.d.ts +0 -3
  316. package/dist/model/onClick.d.ts +0 -3
  317. package/dist/model/onClick.js +0 -2
  318. package/dist/model/onClick.js.map +0 -1
  319. package/lib/model/onClick.d.ts +0 -3
  320. package/lib/model/onClick.js +0 -2
  321. package/lib/model/onClick.js.map +0 -1
  322. package/mobile/bundle/model/onClick.d.ts +0 -3
  323. package/mobile/dist/model/onClick.d.ts +0 -3
  324. package/mobile/dist/model/onClick.js +0 -2
  325. package/mobile/dist/model/onClick.js.map +0 -1
  326. package/mobile/lib/model/onClick.d.ts +0 -3
  327. package/mobile/lib/model/onClick.js +0 -2
  328. package/mobile/lib/model/onClick.js.map +0 -1
  329. package/mobile/src/model/onClick.ts +0 -3
  330. package/src/model/onClick.ts +0 -3
@@ -1,12 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type DisabledProps } from '../../../model/DisabledProps';
3
+ import { type TextProps } from '../../../model/HeadlineType';
4
+ import { type OnClickProps } from '../../../model/OnClickProps';
3
5
  import { Button } from '../../../ui-kit/Button/Button';
4
6
  import { Text } from '../../../ui-kit/Text/Text';
5
7
 
6
- interface SubmitButtonProps extends DisabledProps {
7
- onClick: () => void;
8
- text?: string;
9
- }
8
+ interface SubmitButtonProps extends DisabledProps, TextProps, OnClickProps {}
10
9
 
11
10
  export const SubmitButton = JSX<SubmitButtonProps>(({ disabled = false, onClick, text }) => (
12
11
  <Button type="button" onClick={onClick} disabled={disabled}>
@@ -1,11 +1,13 @@
1
1
  /* eslint-disable complexity */
2
+ import { type Option } from '../../ui-kit/Select/Option';
3
+ import { type Nullable } from '../../utils/Nullable';
2
4
  import { EOrganizationActivityTypes } from '../model/EOrganizationActivityTypes';
3
5
  import { type DictionaryItem } from '../model/LeadFormData';
4
6
 
5
7
  export const getOrganizationActivityType = (
6
8
  options: DictionaryItem[],
7
9
  okved: string,
8
- ): { key: string; text: string } | null => {
10
+ ): Nullable<Option> => {
9
11
  if (!okved) {
10
12
  return null;
11
13
  }
@@ -78,7 +80,7 @@ export const getOrganizationActivityType = (
78
80
  export const getEmployeesNumberOption = (
79
81
  options: DictionaryItem[] | null,
80
82
  count?: number,
81
- ): { key: string; text?: string } | null => {
83
+ ): Nullable<Option> => {
82
84
  if (!count) {
83
85
  return null;
84
86
  }
@@ -91,10 +93,7 @@ export const getEmployeesNumberOption = (
91
93
  return option;
92
94
  };
93
95
 
94
- export const getOrganizationKind = (
95
- options: DictionaryItem[],
96
- okopf: number,
97
- ): { key: string; text: string } | null => {
96
+ export const getOrganizationKind = (options: DictionaryItem[], okopf: number): Nullable<Option> => {
98
97
  const getOptionByKey = getOptionOp(options);
99
98
 
100
99
  if ([40001, 40002, 71610].includes(okopf)) {
@@ -108,7 +107,7 @@ export const getOrganizationType = (
108
107
  options: DictionaryItem[],
109
108
  okopf: number,
110
109
  inn: string,
111
- ): { key: string; text: string } | null => {
110
+ ): Nullable<Option> => {
112
111
  const getOptionByKey = getOptionOp(options);
113
112
 
114
113
  if (inn === '7725114488') {
@@ -128,5 +127,5 @@ export const getOrganizationType = (
128
127
 
129
128
  const getOptionOp = (options: DictionaryItem[]) => (key: string) =>
130
129
  options
131
- .map((_) => ({ key: _.key as string, text: _.value as string }))
130
+ .map((_): Option => ({ key: _.key as string, text: _.value as string }))
132
131
  .find((_) => _.key === key) ?? null;
@@ -6,11 +6,11 @@ import { type ButtonVersion } from '../../model/ButtonVersion';
6
6
  import { type ComponentType } from '../../model/ComponentType';
7
7
  import { type ColorPalette } from '../../model/ContentPageBase';
8
8
  import { type DisabledProps } from '../../model/DisabledProps';
9
+ import { type OnClickPreventableProps } from '../../model/OnClickProps';
9
10
  import { getAspectsAttributes } from '../../utils/dataAttributes';
10
11
  import { noop } from '../../utils/noop';
11
12
  import { style } from '../../utils/style';
12
13
  import { type ARIAProps } from '../ARIAProps';
13
- import { type PreventableEvent } from '../PreventableEvent';
14
14
 
15
15
  export const themeStyle: Record<ButtonVersion, string> = {
16
16
  primary: style(
@@ -34,7 +34,11 @@ const embeddedStyle = style(
34
34
 
35
35
  const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
36
36
 
37
- export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType {
37
+ export interface ButtonProps
38
+ extends DisabledProps,
39
+ ARIAProps,
40
+ ComponentType,
41
+ OnClickPreventableProps {
38
42
  type?: 'button' | 'submit' | 'reset';
39
43
  version?: ButtonVersion;
40
44
  shape?: 'default' | 'round' | 'square';
@@ -43,7 +47,6 @@ export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType {
43
47
  ariaLabel?: string;
44
48
  data?: AspectsDef[];
45
49
  dataTheme?: ColorPalette;
46
- onClick?: (ev: PreventableEvent) => void;
47
50
  wcmsIgnore?: boolean;
48
51
  }
49
52
 
@@ -1,14 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type ComponentType } from '../../model/ComponentType';
3
+ import { type OnClickPreventableProps } from '../../model/OnClickProps';
3
4
  import type { OnCloseProps } from '../../model/OnCloseProps';
4
5
  import { type VNode } from '../../model/VNode';
5
6
  import { style } from '../../utils/style';
6
- import { type PreventableEvent } from '../PreventableEvent';
7
7
  import { CloseButton } from './CloseButton';
8
8
 
9
- export interface DialogProps extends ComponentType, OnCloseProps {
9
+ export interface DialogProps extends ComponentType, OnCloseProps, OnClickPreventableProps {
10
10
  head?: VNode;
11
- onClick?: (e: PreventableEvent) => void;
12
11
  }
13
12
 
14
13
  export const Dialog = JSX<DialogProps>(({ className, head, children, onClose, onClick }) => (
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type ComponentType } from '../../model/ComponentType';
3
- import { type OnClickProps } from '../../model/onClick';
3
+ import { type OnClickProps } from '../../model/OnClickProps';
4
4
  import { DefaultFoldButton } from '../Foldable/DefaultFoldButton';
5
5
  import { type TariffsTableInnerContent } from './InnerTableProps';
6
6
 
@@ -3,10 +3,10 @@ import { useLink } from '../../hooks/useLink';
3
3
  import { type ComponentType } from '../../model/ComponentType';
4
4
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
5
5
  import { type LinkProps as BaseLinkProps } from '../../model/LinkProps';
6
+ import { type OnClickPreventableProps } from '../../model/OnClickProps';
6
7
  import { getAspectsAttributes } from '../../utils/dataAttributes';
7
8
  import { style } from '../../utils/style';
8
9
  import { themeStyle as buttonThemeStyle } from '../Button/Button';
9
- import { type PreventableEvent } from '../PreventableEvent';
10
10
 
11
11
  const themeStyle: Record<LinkButtonVersion, string> = {
12
12
  primary: buttonThemeStyle.primary,
@@ -19,12 +19,11 @@ const themeStyle: Record<LinkButtonVersion, string> = {
19
19
  '': '',
20
20
  };
21
21
 
22
- export interface LinkProps extends BaseLinkProps, ComponentType {
22
+ export interface LinkProps extends BaseLinkProps, ComponentType, OnClickPreventableProps {
23
23
  version?: LinkButtonVersion;
24
24
  aboveText?: string;
25
25
  rel?: string;
26
26
  ariaLabel?: string;
27
- onClick?: (ev?: PreventableEvent) => void;
28
27
  }
29
28
 
30
29
  export const Link = JSX<LinkProps>((props) => {
@@ -6,7 +6,7 @@ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
6
6
  import { Input } from '../Input/Input';
7
7
  import { type InputProps } from '../Input/InputProps';
8
8
 
9
- export interface NumberInputProps extends InputProps<string> {
9
+ export interface NumberInputProps extends InputProps {
10
10
  min?: number;
11
11
  max?: number;
12
12
  defaultValue?: string;
@@ -1,8 +1,8 @@
1
1
  import { type ComponentType } from '../../model/ComponentType';
2
2
  import { type ControlProps } from '../../model/ControlProps';
3
+ import { type TextProps } from '../../model/HeadlineType';
3
4
 
4
- export interface RadioProps extends ComponentType, ControlProps<string> {
5
+ export interface RadioProps extends TextProps, ComponentType, ControlProps<string> {
5
6
  name: string;
6
- text?: string;
7
7
  checked: boolean;
8
8
  }
@@ -29,10 +29,8 @@ export function useCountDownTimer({ seconds, period = 1000, onTick, onEnd }: Cou
29
29
 
30
30
  const { start } = useInterval(handleTick, period);
31
31
 
32
- const restart = useCallback((_: number) => {
32
+ return useCallback((_: number) => {
33
33
  counter.current = _;
34
34
  start();
35
35
  }, []);
36
-
37
- return restart;
38
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.862",
3
+ "version": "0.14.863",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -18,7 +18,7 @@ export interface UniBlockMeta<Props extends UniBlockProps = UniBlockProps> {
18
18
  }
19
19
 
20
20
  export type UniBlockComponent<Props extends UniBlockProps = UniBlockProps> = UniBlockMeta<Props> &
21
- UNIComponent<Props, any, VNode | VNode[]>;
21
+ UNIComponent<Props, VNode | VNode[]>;
22
22
 
23
23
  export function UniBlock<Props extends UniBlockProps = UniBlockProps>(
24
24
  InputComponent: UniBlockComponent<Props>,
@@ -61,9 +61,7 @@ export function LeadServiceAPI() {
61
61
  return null;
62
62
  }
63
63
 
64
- const data = await response.json();
65
-
66
- return data;
64
+ return await response.json();
67
65
  } catch (e) {
68
66
  return null;
69
67
  }
@@ -12,7 +12,7 @@ export interface UserData {
12
12
  export const useSaveUserData = () => {
13
13
  const leadFormStore = useLeadFormStore();
14
14
 
15
- const saveUserData = useCallback(
15
+ return useCallback(
16
16
  ({ participantId, taskId, profileId, programId: programNumber, formData }: UserData) => {
17
17
  leadFormStore.participantId = participantId;
18
18
  leadFormStore.taskId = taskId;
@@ -22,6 +22,4 @@ export const useSaveUserData = () => {
22
22
  },
23
23
  [],
24
24
  );
25
-
26
- return saveUserData;
27
25
  };
@@ -8,7 +8,7 @@ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
8
8
  export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
9
9
  const aspects = useAspects();
10
10
 
11
- const sendAspects = useCallback(
11
+ return useCallback(
12
12
  (ProfileId: number, TaskId: number) => {
13
13
  const snowplowParams = JSON.stringify({
14
14
  ProfileId,
@@ -23,6 +23,4 @@ export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
23
23
  },
24
24
  [data],
25
25
  );
26
-
27
- return sendAspects;
28
26
  };
@@ -63,11 +63,11 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
63
63
  const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
64
64
  const handleChange = useCallback(
65
65
  (params: CreditCalculatorUserInputParams) => {
66
- const calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
66
+ const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
67
67
 
68
68
  onChange?.({
69
69
  ...params,
70
- monthlyPayment: calcParams.monthlyPayment,
70
+ monthlyPayment: _calcParams.monthlyPayment,
71
71
  rate: defaultParamsCals?.rate ?? 0,
72
72
  });
73
73
  },
@@ -8,7 +8,7 @@ import { CreditCardForm } from './CreditCardForm';
8
8
 
9
9
  export default {
10
10
  default: JSX(() => {
11
- useAsyncEffect(async () => await mockLocalStorage(), []);
11
+ useAsyncEffect(async () => mockLocalStorage(), []);
12
12
 
13
13
  return (
14
14
  <div>
@@ -8,7 +8,7 @@ import { CreditCardForm } from './CreditCardForm';
8
8
 
9
9
  export default {
10
10
  default: JSX(() => {
11
- useAsyncEffect(async () => await mockLocalStorage(), []);
11
+ useAsyncEffect(async () => mockLocalStorage(), []);
12
12
 
13
13
  return (
14
14
  <div>
@@ -8,7 +8,7 @@ import { CreditForm } from './CreditForm';
8
8
 
9
9
  export default {
10
10
  default: JSX(() => {
11
- useAsyncEffect(async () => await mockLocalStorage(), []);
11
+ useAsyncEffect(async () => mockLocalStorage(), []);
12
12
 
13
13
  return (
14
14
  <div>
@@ -8,7 +8,7 @@ import { CreditForm } from './CreditForm';
8
8
 
9
9
  export default {
10
10
  default: JSX(() => {
11
- useAsyncEffect(async () => await mockLocalStorage(), []);
11
+ useAsyncEffect(async () => mockLocalStorage(), []);
12
12
 
13
13
  return (
14
14
  <div>
@@ -1,12 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLink } from '../../hooks/useLink';
3
3
  import { type LinkProps } from '../../model/LinkProps';
4
+ import { type OnClickProps } from '../../model/OnClickProps';
4
5
  import { style } from '../../utils/style';
5
6
 
6
- interface HorizontalNavigationLinkProps extends LinkProps {
7
+ interface HorizontalNavigationLinkProps extends LinkProps, OnClickProps {
7
8
  className: string;
8
9
  index: number;
9
- onClick: () => void;
10
10
  }
11
11
 
12
12
  export const HorizontalNavigationLink = JSX<Partial<HorizontalNavigationLinkProps>>(
@@ -1,12 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLink } from '../../hooks/useLink';
3
3
  import { type LinkProps } from '../../model/LinkProps';
4
+ import { type OnClickProps } from '../../model/OnClickProps';
4
5
  import { style } from '../../utils/style';
5
6
 
6
- interface TextInformationLinkProps extends LinkProps {
7
+ interface TextInformationLinkProps extends LinkProps, OnClickProps {
7
8
  className: string;
8
9
  index: number;
9
- onClick: () => void;
10
10
  }
11
11
 
12
12
  export const TextInformationLink = JSX<Partial<TextInformationLinkProps>>(
@@ -1,3 +1,4 @@
1
+ import { type TextProps } from '../../model/HeadlineType';
1
2
  import { type Picture } from '../../model/Picture';
2
3
  import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
3
4
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
@@ -5,9 +6,7 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
5
6
  /**
6
7
  * @title Пункт
7
8
  */
8
- export type ItemList = {
9
- /** @title Название */
10
- text?: string;
9
+ export type ItemList = TextProps & {
11
10
  image?: Picture;
12
11
  };
13
12
 
@@ -38,7 +38,7 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
38
38
  .map((_) => _.short?.toLowerCase())
39
39
  .join(', ');
40
40
 
41
- const rows = [
41
+ return [
42
42
  buildScheduleText({
43
43
  workTime: workingWeekday?.workTime,
44
44
  lunchHour: workingWeekday?.lunchHour,
@@ -49,6 +49,4 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
49
49
  true,
50
50
  ),
51
51
  ].filter(Boolean);
52
-
53
- return rows;
54
52
  };
@@ -41,7 +41,7 @@ export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
41
41
  }, [location]);
42
42
 
43
43
  useEffect(() => {
44
- const onMessage = (e: MessageEvent<any>) => {
44
+ const onMessage = (e: MessageEvent) => {
45
45
  if (e.data.type === 'location') {
46
46
  locationDialog.open({});
47
47
  }
@@ -1,14 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type ComponentType } from '../../model/ComponentType';
3
+ import { type OnClickPreventableProps } from '../../model/OnClickProps';
3
4
  import type { OnCloseProps } from '../../model/OnCloseProps';
4
5
  import { type VNode } from '../../model/VNode';
5
6
  import { CloseButton } from '../../ui-kit/DialogManager/CloseButton';
6
- import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
7
7
  import { style } from '../../utils/style';
8
8
 
9
- export interface StickyBottomMenuDialogProps extends ComponentType, OnCloseProps {
9
+ export interface StickyBottomMenuDialogProps
10
+ extends ComponentType,
11
+ OnCloseProps,
12
+ OnClickPreventableProps {
10
13
  head?: VNode;
11
- onClick?: (e: PreventableEvent) => void;
12
14
  }
13
15
 
14
16
  export const StickyBottomMenuDialog = JSX<StickyBottomMenuDialogProps>(
@@ -1,13 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type StickyMenuItem } from '../../data/StickyMobileData';
3
+ import { type OnClickPreventableProps } from '../../model/OnClickProps';
3
4
  import { Icon } from '../../ui-kit/Icon/Icon';
4
- import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
5
5
  import { style } from '../../utils/style';
6
6
 
7
- interface StickyBottomMenuItemProps {
7
+ interface StickyBottomMenuItemProps extends OnClickPreventableProps {
8
8
  isActive?: boolean;
9
9
  item?: StickyMenuItem;
10
- onClick?: (e: PreventableEvent) => void;
11
10
  }
12
11
 
13
12
  export const StickyBottomMenuItem = JSX<StickyBottomMenuItemProps>(
@@ -51,7 +51,7 @@ export function useForm<FormState extends Record<string, any>>(
51
51
  const fieldErrors: ValidationInfo = isDirty && fieldValidator ? fieldValidator(value) : [];
52
52
 
53
53
  return {
54
- value: format ? (format(value) as any) : value,
54
+ value: format ? (format(value) as FormState[any]) : value,
55
55
  isDirty,
56
56
  errors: fieldValidator && fieldErrors, // TODO Костыль
57
57
  error: fieldErrors[0],
@@ -14,12 +14,11 @@ export const fetchRefs = async (refs: string[]): Promise<Record<string, JSONNode
14
14
  await Promise.allSettled(
15
15
  unique(refs)
16
16
  .filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
17
- .map(
18
- async ($ref): Promise<RefEntry> => [
19
- $ref,
20
- (refsCache[$ref] ||= await fetchJSONUnsafe($ref)),
21
- ],
22
- ),
17
+ .map(async ($ref): Promise<RefEntry> => {
18
+ refsCache[$ref] ||= await fetchJSONUnsafe($ref);
19
+
20
+ return [$ref, refsCache[$ref]];
21
+ }),
23
22
  )
24
23
  )
25
24
  .filter((res): res is PromiseFulfilledResult<RefEntry> => res.status === 'fulfilled')
@@ -1,3 +1,9 @@
1
+ import type { PreventableEvent } from '../ui-kit/PreventableEvent';
2
+
1
3
  export interface OnClickProps {
2
4
  onClick?: () => void;
3
5
  }
6
+
7
+ export interface OnClickPreventableProps {
8
+ onClick?: (ev: PreventableEvent) => void;
9
+ }
@@ -2,5 +2,5 @@ import { doRequest } from './doRequest';
2
2
 
3
3
  export const createCaptcha = (phoneNumber: string) =>
4
4
  doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(
5
- async (res) => (res ? await res.blob() : new Blob()),
5
+ async (res) => (res ? res.blob() : new Blob()),
6
6
  );
@@ -31,7 +31,7 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
31
31
  const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
32
32
  const combinedQuery = `${queryPrefixValue}${query}`;
33
33
 
34
- const result = globalThis
34
+ return globalThis
35
35
  ?.fetch?.(`/api/v1/suggestions/${url}`, {
36
36
  method: 'POST',
37
37
  mode: 'cors',
@@ -46,6 +46,4 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
46
46
  })
47
47
  .then((response) => response.json())
48
48
  .then(responseHandler);
49
-
50
- return result;
51
49
  };
@@ -6,5 +6,5 @@ export const feedbackById = async (id: number, convertToPng = false) => {
6
6
  'GET',
7
7
  );
8
8
 
9
- return response ? await response.blob() : new Blob();
9
+ return response ? response.blob() : new Blob();
10
10
  };
@@ -33,7 +33,7 @@ export const updateRefreshToken = () => {
33
33
  access_token: accessToken,
34
34
  });
35
35
 
36
- if (res?.status == 401) {
36
+ if (Number(res?.status) === 401) {
37
37
  navigator.assign(PORTAL_NATURAL_URL);
38
38
  }
39
39
 
@@ -24,17 +24,19 @@ type ParticipantAddress = {
24
24
  street: string;
25
25
  };
26
26
 
27
+ type IncomeTypeCdType =
28
+ | 'INCOME_AVERAGE'
29
+ | 'ADDITIONAL_INCOME'
30
+ | 'MANDATORY_PAYMENTS'
31
+ | 'OTHER_INCOME'
32
+ | 'OTHER_PAYMENTS'
33
+ | 'RENTAL_INCOME'
34
+ | 'WAGES'
35
+ | 'RETIREMENT_INCOME';
36
+
27
37
  type ParticipantIncome = {
28
38
  incomeTypeCd: {
29
- key:
30
- | 'INCOME_AVERAGE'
31
- | 'ADDITIONAL_INCOME'
32
- | 'MANDATORY_PAYMENTS'
33
- | 'OTHER_INCOME'
34
- | 'OTHER_PAYMENTS'
35
- | 'RENTAL_INCOME'
36
- | 'WAGES'
37
- | 'RETIREMENT_INCOME';
39
+ key: IncomeTypeCdType;
38
40
  };
39
41
  value: string;
40
42
  };
@@ -12,7 +12,7 @@ export const uploadFile = async (
12
12
  fd.append('documentCategory', documentCategory);
13
13
  fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
14
14
 
15
- const res = await globalThis
15
+ return await globalThis
16
16
  ?.fetch?.(`/light-api-cash/v1/file`, {
17
17
  method: 'POST',
18
18
  headers: {
@@ -22,6 +22,4 @@ export const uploadFile = async (
22
22
  body: fd,
23
23
  })
24
24
  .then((response) => response.json());
25
-
26
- return res;
27
25
  };
@@ -1,12 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type DisabledProps } from '../../../model/DisabledProps';
3
+ import { type TextProps } from '../../../model/HeadlineType';
4
+ import { type OnClickProps } from '../../../model/OnClickProps';
3
5
  import { Button } from '../../../ui-kit/Button/Button';
4
6
  import { Text } from '../../../ui-kit/Text/Text';
5
7
 
6
- interface SubmitButtonProps extends DisabledProps {
7
- onClick: () => void;
8
- text?: string;
9
- }
8
+ interface SubmitButtonProps extends DisabledProps, TextProps, OnClickProps {}
10
9
 
11
10
  export const SubmitButton = JSX<SubmitButtonProps>(({ disabled = false, onClick, text }) => (
12
11
  <Button type="button" onClick={onClick} disabled={disabled}>
@@ -1,11 +1,13 @@
1
1
  /* eslint-disable complexity */
2
+ import { type Option } from '../../ui-kit/Select/Option';
3
+ import { type Nullable } from '../../utils/Nullable';
2
4
  import { EOrganizationActivityTypes } from '../model/EOrganizationActivityTypes';
3
5
  import { type DictionaryItem } from '../model/LeadFormData';
4
6
 
5
7
  export const getOrganizationActivityType = (
6
8
  options: DictionaryItem[],
7
9
  okved: string,
8
- ): { key: string; text: string } | null => {
10
+ ): Nullable<Option> => {
9
11
  if (!okved) {
10
12
  return null;
11
13
  }
@@ -78,7 +80,7 @@ export const getOrganizationActivityType = (
78
80
  export const getEmployeesNumberOption = (
79
81
  options: DictionaryItem[] | null,
80
82
  count?: number,
81
- ): { key: string; text?: string } | null => {
83
+ ): Nullable<Option> => {
82
84
  if (!count) {
83
85
  return null;
84
86
  }
@@ -91,10 +93,7 @@ export const getEmployeesNumberOption = (
91
93
  return option;
92
94
  };
93
95
 
94
- export const getOrganizationKind = (
95
- options: DictionaryItem[],
96
- okopf: number,
97
- ): { key: string; text: string } | null => {
96
+ export const getOrganizationKind = (options: DictionaryItem[], okopf: number): Nullable<Option> => {
98
97
  const getOptionByKey = getOptionOp(options);
99
98
 
100
99
  if ([40001, 40002, 71610].includes(okopf)) {
@@ -108,7 +107,7 @@ export const getOrganizationType = (
108
107
  options: DictionaryItem[],
109
108
  okopf: number,
110
109
  inn: string,
111
- ): { key: string; text: string } | null => {
110
+ ): Nullable<Option> => {
112
111
  const getOptionByKey = getOptionOp(options);
113
112
 
114
113
  if (inn === '7725114488') {
@@ -128,5 +127,5 @@ export const getOrganizationType = (
128
127
 
129
128
  const getOptionOp = (options: DictionaryItem[]) => (key: string) =>
130
129
  options
131
- .map((_) => ({ key: _.key as string, text: _.value as string }))
130
+ .map((_): Option => ({ key: _.key as string, text: _.value as string }))
132
131
  .find((_) => _.key === key) ?? null;