@rabbitio/ui-kit 1.0.0-beta.71 → 1.0.0-beta.73

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 (405) hide show
  1. package/coverage/clover.xml +12889 -8253
  2. package/coverage/coverage-final.json +157 -99
  3. package/coverage/index.html +385 -220
  4. package/coverage/{rabbit-ui-kit → ui-kit}/index.html +3 -3
  5. package/coverage/{rabbit-ui-kit → ui-kit}/index.js.html +3 -3
  6. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/adapters/axiosAdapter.js.html +3 -3
  7. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/adapters/index.html +3 -3
  8. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/adapters/qrUtils.js.html +3 -3
  9. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/amountUtils.js.html +3 -3
  10. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/errorUtils.js.html +3 -3
  11. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/external-apis/apiGroups.js.html +3 -3
  12. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/external-apis/index.html +3 -3
  13. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/external-apis/ipAddressProviders.js.html +5 -5
  14. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/fiatCurrenciesService.js.html +3 -3
  15. package/coverage/{rabbit-ui-kit/src/constants → ui-kit/src/common-apis}/globalConstants.jsx.html +3 -3
  16. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/index.html +22 -7
  17. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/models/blockchain.js.html +3 -3
  18. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/models/coin.js.html +3 -3
  19. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/models/index.html +3 -3
  20. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/models/protocol.js.html +3 -3
  21. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/cache.js.html +8 -8
  22. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/emailAPI.js.html +3 -3
  23. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/index.html +3 -3
  24. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/logging/index.html +3 -3
  25. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/logging/logger.js.html +6 -6
  26. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/logging/logsStorage.js.html +5 -5
  27. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/postponeExecution.js.html +3 -3
  28. package/coverage/{rabbit-ui-kit/src/common → ui-kit/src/common-apis}/utils/safeStringify.js.html +29 -29
  29. package/coverage/{rabbit-ui-kit → ui-kit}/src/index.html +7 -7
  30. package/coverage/{rabbit-ui-kit → ui-kit}/src/index.js.html +68 -80
  31. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/cacheAndConcurrentRequestsResolver.js.html +5 -5
  32. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/cachedRobustExternalApiCallerService.js.html +6 -6
  33. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/cancelProcessing.js.html +3 -3
  34. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/concurrentCalculationsMetadataHolder.js.html +4 -4
  35. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/externalApiProvider.js.html +3 -3
  36. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/externalServicesStatsCollector.js.html +5 -5
  37. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/index.html +3 -3
  38. package/coverage/{rabbit-ui-kit/src/robustExteranlApiCallerService → ui-kit/src/robust-api-caller}/robustExternalAPICallerService.js.html +8 -8
  39. package/coverage/ui-kit/src/swaps-lib/external-apis/index.html +146 -0
  40. package/coverage/ui-kit/src/swaps-lib/external-apis/letsExchangeSwapProvider.js.html +1456 -0
  41. package/coverage/ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +1390 -0
  42. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +182 -662
  43. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/baseSwapCreationInfo.js.html +16 -7
  44. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwap.js.html +3 -3
  45. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwapWithFiatData.js.html +3 -3
  46. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/index.html +9 -9
  47. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/services/index.html +7 -7
  48. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/services/publicSwapService.js.html +243 -57
  49. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/utils/index.html +13 -13
  50. package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/utils/swapUtils.js.html +127 -52
  51. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/arrowIcon.jsx.html +10 -10
  52. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/arrowTosca.jsx.html +10 -10
  53. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/arrowWhite.jsx.html +11 -11
  54. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/darkRectangle.jsx.html +10 -10
  55. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/determinedError.jsx.html +10 -10
  56. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/failedValidationIcon.jsx.html +10 -10
  57. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/index.html +10 -10
  58. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/infoIcon.jsx.html +10 -10
  59. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/noticeQuestionIcon.jsx.html +10 -10
  60. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/successfulValidationIcon.jsx.html +10 -10
  61. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/assets/wrappedImages/walletIcon.jsx.html +10 -10
  62. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/AssetIcon/AssetIcon.jsx.html +20 -17
  63. package/coverage/{rabbit-ui-kit/src/components/atoms/buttons/Button → ui-kit/src/ui-kit/components/atoms/AssetIcon}/index.html +8 -8
  64. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/AssetSelection/AssetSelection.jsx.html +23 -20
  65. package/coverage/{rabbit-ui-kit/src/components/atoms/buttons/LinkButton → ui-kit/src/ui-kit/components/atoms/AssetSelection}/index.html +8 -8
  66. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +10 -10
  67. package/coverage/ui-kit/src/ui-kit/components/atoms/BackgroundTitle/index.html +116 -0
  68. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/InformationMessage/InformationMessage.jsx.html +21 -18
  69. package/coverage/ui-kit/src/ui-kit/components/atoms/InformationMessage/index.html +116 -0
  70. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/Input/Input.jsx.html +38 -35
  71. package/coverage/{rabbit-ui-kit/src/components/atoms/buttons/Close → ui-kit/src/ui-kit/components/atoms/Input}/index.html +8 -8
  72. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/LoadingDots/LoadingDots.jsx.html +10 -10
  73. package/coverage/{rabbit-ui-kit/src/constants/organisms/dialog/DialogStep → ui-kit/src/ui-kit/components/atoms/LoadingDots}/index.html +8 -8
  74. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/NoticeIcon/NoticeIcon.jsx.html +19 -22
  75. package/coverage/ui-kit/src/ui-kit/components/atoms/NoticeIcon/index.html +116 -0
  76. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/QrCode/QrCode.jsx.html +63 -15
  77. package/coverage/ui-kit/src/ui-kit/components/atoms/QrCode/index.html +116 -0
  78. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/RateSelector/RateSelector.jsx.html +16 -13
  79. package/coverage/ui-kit/src/ui-kit/components/atoms/RateSelector/index.html +116 -0
  80. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/SupportChat/SupportChat.jsx.html +16 -13
  81. package/coverage/ui-kit/src/ui-kit/components/atoms/SupportChat/index.html +116 -0
  82. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/Textarea/Textarea.jsx.html +36 -30
  83. package/coverage/ui-kit/src/ui-kit/components/atoms/Textarea/index.html +116 -0
  84. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/TitleBox/TitleBox.jsx.html +29 -29
  85. package/coverage/ui-kit/src/ui-kit/components/atoms/TitleBox/index.html +116 -0
  86. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/Tooltip/Tooltip.jsx.html +48 -21
  87. package/coverage/ui-kit/src/ui-kit/components/atoms/Tooltip/index.html +116 -0
  88. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +29 -23
  89. package/coverage/ui-kit/src/ui-kit/components/atoms/TwoLinesOfText/index.html +116 -0
  90. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/Validation/Validation.jsx.html +13 -13
  91. package/coverage/ui-kit/src/ui-kit/components/atoms/Validation/index.html +116 -0
  92. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/buttons/Button/Button.jsx.html +10 -10
  93. package/coverage/{rabbit-ui-kit/src/components/atoms/AssetSelection → ui-kit/src/ui-kit/components/atoms/buttons/Button}/index.html +15 -15
  94. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/buttons/Close/Close.jsx.html +30 -15
  95. package/coverage/{rabbit-ui-kit/src/components/atoms/BackgroundTitle → ui-kit/src/ui-kit/components/atoms/buttons/Close}/index.html +15 -15
  96. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/buttons/LinkButton/LinkButton.jsx.html +34 -16
  97. package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/LinkButton/index.html +116 -0
  98. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +11 -11
  99. package/coverage/ui-kit/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +116 -0
  100. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/molecules/AmountInput/AmountInput.jsx.html +20 -17
  101. package/coverage/ui-kit/src/ui-kit/components/molecules/AmountInput/index.html +116 -0
  102. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/molecules/CoinPicker/CoinPicker.jsx.html +44 -38
  103. package/coverage/ui-kit/src/ui-kit/components/molecules/CoinPicker/index.html +116 -0
  104. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +10 -10
  105. package/coverage/{rabbit-ui-kit/src/components/organisms/Dialog/DialogStep → ui-kit/src/ui-kit/components/molecules/LineWithIconLink}/index.html +8 -8
  106. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +25 -19
  107. package/coverage/{rabbit-ui-kit/src/components/atoms/buttons/RadioButtonWithText → ui-kit/src/ui-kit/components/molecules/TitledLineWithIconLink}/index.html +8 -8
  108. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +20 -14
  109. package/coverage/{rabbit-ui-kit/src/components/organisms/Dialog/DialogButtons → ui-kit/src/ui-kit/components/organisms/CoinPickerDialogStep}/index.html +8 -8
  110. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/organisms/Dialog/Dialog.jsx.html +106 -19
  111. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +13 -13
  112. package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +116 -0
  113. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +66 -60
  114. package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +116 -0
  115. package/coverage/ui-kit/src/ui-kit/components/organisms/Dialog/index.html +116 -0
  116. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/organisms/SwapForm/SwapForm.jsx.html +470 -98
  117. package/coverage/ui-kit/src/ui-kit/components/organisms/SwapForm/index.html +116 -0
  118. package/coverage/{rabbit-ui-kit/src → ui-kit/src/ui-kit}/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +12 -12
  119. package/coverage/ui-kit/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +116 -0
  120. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/hooks/index.html +22 -7
  121. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/hooks/useCallHandlingErrors.js.html +4 -4
  122. package/coverage/ui-kit/src/ui-kit/hooks/useIsHydrated.js.html +121 -0
  123. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/hooks/useReferredState.js.html +3 -3
  124. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/utils/index.html +3 -3
  125. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/utils/inputValueProviders.js.html +3 -3
  126. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/utils/textUtils.js.html +4 -4
  127. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/utils/uiUtils.js.html +3 -3
  128. package/coverage/{rabbit-ui-kit/src/components → ui-kit/src/ui-kit}/utils/urlQueryUtils.js.html +3 -3
  129. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/BackgroundTitle.stories.jsx.html +4 -4
  130. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/LinesOfText.stories.jsx.html +6 -6
  131. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/LoadingDots.stories.jsx.html +5 -5
  132. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/QrCode.stories.jsx.html +5 -5
  133. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/RateSelector.stories.jsx.html +4 -4
  134. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/Validation.stories.jsx.html +4 -4
  135. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/Button.stories.jsx.html +29 -92
  136. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/Close.stories.jsx.html +9 -12
  137. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/LinkButton.stories.jsx.html +15 -9
  138. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/index.html +11 -11
  139. package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/index.html +3 -3
  140. package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/LineWithIconLink.stories.jsx.html +5 -5
  141. package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/TitledLineWithIconLink.stories.jsx.html +4 -4
  142. package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/index.html +3 -3
  143. package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/Dialog.stories.jsx.html +15 -81
  144. package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +5 -5
  145. package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogButtons/index.html +3 -3
  146. package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +6 -6
  147. package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogStep/index.html +3 -3
  148. package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/index.html +7 -7
  149. package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/exampleContent.jsx.html +3 -3
  150. package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/index.html +3 -3
  151. package/coverage/{rabbit-ui-kit → ui-kit}/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +9 -12
  152. package/coverage/{rabbit-ui-kit → ui-kit}/stories/templates/index.html +7 -7
  153. package/coverage/ui-kit/storybook-static/124.c2d01e5e.iframe.bundle.js.html +85 -0
  154. package/coverage/ui-kit/storybook-static/138.56b7edc4.iframe.bundle.js.html +85 -0
  155. package/coverage/ui-kit/storybook-static/312.6f62bbd9.iframe.bundle.js.html +85 -0
  156. package/coverage/ui-kit/storybook-static/341.57a15f57.iframe.bundle.js.html +85 -0
  157. package/coverage/ui-kit/storybook-static/370.73bb343e.iframe.bundle.js.html +85 -0
  158. package/coverage/ui-kit/storybook-static/595.2e40d981.iframe.bundle.js.html +85 -0
  159. package/coverage/ui-kit/storybook-static/607.3ea32459.iframe.bundle.js.html +85 -0
  160. package/coverage/ui-kit/storybook-static/609.8c79ec77.iframe.bundle.js.html +85 -0
  161. package/coverage/ui-kit/storybook-static/666.09fdc1d7.iframe.bundle.js.html +85 -0
  162. package/coverage/ui-kit/storybook-static/797.c87cdf19.iframe.bundle.js.html +85 -0
  163. package/coverage/ui-kit/storybook-static/822.4bc0ebce.iframe.bundle.js.html +85 -0
  164. package/coverage/ui-kit/storybook-static/833.08e3ebb6.iframe.bundle.js.html +85 -0
  165. package/coverage/ui-kit/storybook-static/862.bf6bfe62.iframe.bundle.js.html +85 -0
  166. package/coverage/ui-kit/storybook-static/87.0a1bfeb1.iframe.bundle.js.html +85 -0
  167. package/coverage/ui-kit/storybook-static/893.4b09f929.iframe.bundle.js.html +85 -0
  168. package/coverage/ui-kit/storybook-static/996.846a677b.iframe.bundle.js.html +85 -0
  169. package/coverage/ui-kit/storybook-static/atoms-BackgroundTitle-stories.1a5386a1.iframe.bundle.js.html +85 -0
  170. package/coverage/ui-kit/storybook-static/atoms-LinesOfText-stories.7043a48b.iframe.bundle.js.html +85 -0
  171. package/coverage/ui-kit/storybook-static/atoms-LoadingDots-stories.091245c7.iframe.bundle.js.html +85 -0
  172. package/coverage/ui-kit/storybook-static/atoms-QrCode-stories.e10363b6.iframe.bundle.js.html +85 -0
  173. package/coverage/ui-kit/storybook-static/atoms-RateSelector-stories.af208e9a.iframe.bundle.js.html +85 -0
  174. package/coverage/ui-kit/storybook-static/atoms-Validation-stories.d561b311.iframe.bundle.js.html +85 -0
  175. package/coverage/ui-kit/storybook-static/atoms-buttons-Button-stories.e8e6b930.iframe.bundle.js.html +85 -0
  176. package/coverage/ui-kit/storybook-static/atoms-buttons-Close-stories.0a902a7c.iframe.bundle.js.html +85 -0
  177. package/coverage/ui-kit/storybook-static/atoms-buttons-LinkButton-stories.ca93ab6b.iframe.bundle.js.html +85 -0
  178. package/coverage/ui-kit/storybook-static/index.html +596 -0
  179. package/coverage/ui-kit/storybook-static/main.41f410f2.iframe.bundle.js.html +85 -0
  180. package/coverage/ui-kit/storybook-static/molecules-LineWithIconLink-stories.9721a18c.iframe.bundle.js.html +85 -0
  181. package/coverage/ui-kit/storybook-static/molecules-TitledLineWithIconLink-stories.1383fe3f.iframe.bundle.js.html +85 -0
  182. package/coverage/ui-kit/storybook-static/organisms-Dialog-Dialog-stories.4e6da717.iframe.bundle.js.html +85 -0
  183. package/coverage/ui-kit/storybook-static/organisms-Dialog-DialogButtons-DialogButtons-stories.6f45ae6e.iframe.bundle.js.html +85 -0
  184. package/coverage/ui-kit/storybook-static/organisms-Dialog-DialogStep-DialogStep-stories.74896048.iframe.bundle.js.html +85 -0
  185. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/addon-backgrounds/dist/index.html +116 -0
  186. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/addon-backgrounds/dist/preview.js.html +118 -0
  187. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/components/dist/formatter-SWP5E3XI.mjs.html +118 -0
  188. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/components/dist/index.html +116 -0
  189. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/buffer/index.html +116 -0
  190. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/buffer/index.js.html +118 -0
  191. package/coverage/{rabbit-ui-kit/src/components/atoms/InformationMessage → ui-kit/storybook-static/rabbitio/ui-kit/node_modules/markdown-to-jsx/dist}/index.html +15 -15
  192. package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/markdown-to-jsx/dist/index.modern.js.html +118 -0
  193. package/coverage/ui-kit/storybook-static/runtime~main.ad918f38.iframe.bundle.js.html +85 -0
  194. package/coverage/ui-kit/storybook-static/sb-addons/actions-9/index.html +116 -0
  195. package/coverage/ui-kit/storybook-static/sb-addons/actions-9/manager-bundle.js.html +94 -0
  196. package/coverage/ui-kit/storybook-static/sb-addons/essentials-backgrounds-2/index.html +116 -0
  197. package/coverage/ui-kit/storybook-static/sb-addons/essentials-backgrounds-2/manager-bundle.js.html +121 -0
  198. package/coverage/{rabbit-ui-kit/src/components/atoms/LoadingDots → ui-kit/storybook-static/sb-addons/essentials-controls-1}/index.html +15 -15
  199. package/coverage/ui-kit/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.html +274 -0
  200. package/coverage/{rabbit-ui-kit/src/components/atoms/AssetIcon → ui-kit/storybook-static/sb-addons/essentials-measure-4}/index.html +15 -15
  201. package/coverage/ui-kit/storybook-static/sb-addons/essentials-measure-4/manager-bundle.js.html +94 -0
  202. package/coverage/ui-kit/storybook-static/sb-addons/essentials-outline-5/index.html +116 -0
  203. package/coverage/ui-kit/storybook-static/sb-addons/essentials-outline-5/manager-bundle.js.html +94 -0
  204. package/coverage/ui-kit/storybook-static/sb-addons/essentials-toolbars-3/index.html +116 -0
  205. package/coverage/ui-kit/storybook-static/sb-addons/essentials-toolbars-3/manager-bundle.js.html +94 -0
  206. package/coverage/{rabbit-ui-kit/src/components/atoms/QrCode → ui-kit/storybook-static/sb-addons/interactions-7}/index.html +15 -15
  207. package/coverage/ui-kit/storybook-static/sb-addons/interactions-7/manager-bundle.js.html +121 -0
  208. package/coverage/{rabbit-ui-kit/src/constants/atoms/Close → ui-kit/storybook-static/sb-addons/links-0}/index.html +15 -15
  209. package/coverage/{rabbit-ui-kit/src/constants/atoms/LinkButton/linkButton.jsx.html → ui-kit/storybook-static/sb-addons/links-0/manager-bundle.js.html} +16 -25
  210. package/coverage/ui-kit/storybook-static/sb-addons/onboarding-6/index.html +116 -0
  211. package/coverage/ui-kit/storybook-static/sb-addons/onboarding-6/manager-bundle.js.html +1588 -0
  212. package/coverage/{rabbit-ui-kit/src/constants/atoms/Tooltip → ui-kit/storybook-static/sb-addons/viewport-8}/index.html +15 -15
  213. package/coverage/ui-kit/storybook-static/sb-addons/viewport-8/manager-bundle.js.html +94 -0
  214. package/coverage/{rabbit-ui-kit/src/constants/atoms/Close/close.jsx.html → ui-kit/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js.html} +14 -26
  215. package/coverage/ui-kit/storybook-static/sb-manager/chunk-2IXBUOFS.js.html +106 -0
  216. package/coverage/ui-kit/storybook-static/sb-manager/chunk-INSKDKQB.js.html +1129 -0
  217. package/coverage/ui-kit/storybook-static/sb-manager/chunk-NGTUFCUO.js.html +112 -0
  218. package/coverage/ui-kit/storybook-static/sb-manager/chunk-UUEAOBSN.js.html +1303 -0
  219. package/coverage/ui-kit/storybook-static/sb-manager/chunk-ZEU7PDD3.js.html +88 -0
  220. package/coverage/ui-kit/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js.html +553 -0
  221. package/coverage/ui-kit/storybook-static/sb-manager/globals-module-info.js.html +88 -0
  222. package/coverage/ui-kit/storybook-static/sb-manager/globals.js.html +88 -0
  223. package/coverage/ui-kit/storybook-static/sb-manager/index.html +281 -0
  224. package/coverage/{rabbit-ui-kit/src/constants/organisms/dialog/DialogStep/dialogStep.js.html → ui-kit/storybook-static/sb-manager/index.js.html} +11 -11
  225. package/coverage/ui-kit/storybook-static/sb-manager/runtime.js.html +88 -0
  226. package/coverage/ui-kit/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js.html +88 -0
  227. package/coverage/ui-kit/storybook-static/sb-preview/globals.js.html +88 -0
  228. package/coverage/ui-kit/storybook-static/sb-preview/index.html +131 -0
  229. package/coverage/ui-kit/storybook-static/sb-preview/runtime.js.html +421 -0
  230. package/coverage/ui-kit/storybook-static/templates-DeterminedErrorDialogStep-stories.3cc14214.iframe.bundle.js.html +85 -0
  231. package/dist/index.cjs +1568 -796
  232. package/dist/index.cjs.map +1 -1
  233. package/dist/index.css +21030 -21030
  234. package/dist/index.css.map +1 -1
  235. package/dist/index.modern.js +1108 -534
  236. package/dist/index.modern.js.map +1 -1
  237. package/dist/index.module.js +1567 -797
  238. package/dist/index.module.js.map +1 -1
  239. package/dist/index.umd.js +1568 -796
  240. package/dist/index.umd.js.map +1 -1
  241. package/package.json +3 -3
  242. package/src/{common → common-apis}/external-apis/ipAddressProviders.js +2 -2
  243. package/src/index.js +62 -66
  244. package/src/{robustExteranlApiCallerService → robust-api-caller}/cacheAndConcurrentRequestsResolver.js +2 -2
  245. package/src/{robustExteranlApiCallerService → robust-api-caller}/cachedRobustExternalApiCallerService.js +3 -3
  246. package/src/{robustExteranlApiCallerService → robust-api-caller}/concurrentCalculationsMetadataHolder.js +1 -1
  247. package/src/{robustExteranlApiCallerService → robust-api-caller}/externalServicesStatsCollector.js +2 -2
  248. package/src/{robustExteranlApiCallerService → robust-api-caller}/robustExternalAPICallerService.js +5 -5
  249. package/src/{robustExteranlApiCallerService → robust-api-caller}/tests/robustExternalAPICallerService/robustExternalAPICallerService/callExternalAPI/_performCallAttempt.test.js +2 -2
  250. package/src/{robustExteranlApiCallerService → robust-api-caller}/tests/robustExternalAPICallerService/robustExternalAPICallerService/callExternalAPI/callExternalAPI.test.js +1 -1
  251. package/src/{robustExteranlApiCallerService → robust-api-caller}/tests/robustExternalAPICallerService/robustExternalAPICallerService/constructor.test.js +1 -1
  252. package/src/swaps-lib/external-apis/letsExchangeSwapProvider.js +457 -0
  253. package/src/swaps-lib/external-apis/swapProvider.js +247 -20
  254. package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +41 -201
  255. package/src/swaps-lib/models/baseSwapCreationInfo.js +4 -1
  256. package/src/swaps-lib/services/publicSwapService.js +113 -51
  257. package/src/swaps-lib/test/external-apis/swapProvider/removeProtocolNameFromCoinName.test.js +142 -0
  258. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +5 -5
  259. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/createSwap.test.js +3 -3
  260. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getAllSupportedCurrencies.test.js +1 -1
  261. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getDepositCurrencies.test.js +1 -1
  262. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getSwapInfo.test.js +124 -4
  263. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getWithdrawalCurrencies.test.js +1 -1
  264. package/src/swaps-lib/test/utils/swapUtils/safeHandleRequestsLimitExceeding.test.js +2 -2
  265. package/src/swaps-lib/utils/swapUtils.js +69 -44
  266. package/{styles → src/ui-kit/assets/styles}/index.scss +1 -1
  267. package/src/{assets → ui-kit/assets}/wrappedImages/arrowWhite.jsx +1 -1
  268. package/src/{components → ui-kit/components}/atoms/AssetIcon/AssetIcon.jsx +5 -4
  269. package/src/{components → ui-kit/components}/atoms/AssetIcon/asset-icon.module.scss +1 -1
  270. package/src/{components → ui-kit/components}/atoms/AssetSelection/AssetSelection.jsx +8 -7
  271. package/src/{components → ui-kit/components}/atoms/AssetSelection/asset-selection.module.scss +1 -1
  272. package/src/{components → ui-kit/components}/atoms/BackgroundTitle/background-title.module.scss +1 -1
  273. package/src/{components → ui-kit/components}/atoms/InformationMessage/InformationMessage.jsx +6 -5
  274. package/src/{components → ui-kit/components}/atoms/InformationMessage/information-message.module.scss +1 -1
  275. package/src/{components → ui-kit/components}/atoms/Input/Input.jsx +23 -22
  276. package/src/{components → ui-kit/components}/atoms/Input/input.module.scss +1 -1
  277. package/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.module.scss +1 -1
  278. package/src/{components → ui-kit/components}/atoms/NoticeIcon/NoticeIcon.jsx +6 -7
  279. package/src/{components → ui-kit/components}/atoms/NoticeIcon/notice-icon.module.scss +1 -1
  280. package/src/{components → ui-kit/components}/atoms/QrCode/QrCode.jsx +18 -2
  281. package/src/{components → ui-kit/components}/atoms/QrCode/qr-code.module.scss +1 -1
  282. package/src/{components → ui-kit/components}/atoms/RateSelector/RateSelector.jsx +1 -0
  283. package/src/{components → ui-kit/components}/atoms/RateSelector/rate-selector.module.scss +1 -1
  284. package/src/{components → ui-kit/components}/atoms/SupportChat/SupportChat.jsx +1 -0
  285. package/src/{components → ui-kit/components}/atoms/Textarea/Textarea.jsx +19 -17
  286. package/src/{components → ui-kit/components}/atoms/Textarea/textarea.module.scss +1 -1
  287. package/src/{components → ui-kit/components}/atoms/TitleBox/TitleBox.jsx +19 -19
  288. package/src/{components → ui-kit/components}/atoms/TitleBox/title-box.module.scss +1 -1
  289. package/src/{components → ui-kit/components}/atoms/Tooltip/Tooltip.jsx +17 -8
  290. package/src/{components → ui-kit/components}/atoms/Tooltip/tooltip.module.scss +1 -1
  291. package/src/{components → ui-kit/components}/atoms/TwoLinesOfText/LinesOfText.jsx +11 -9
  292. package/src/{components → ui-kit/components}/atoms/TwoLinesOfText/lines-of-text.module.scss +1 -1
  293. package/src/{components → ui-kit/components}/atoms/Validation/Validation.jsx +2 -2
  294. package/src/{components → ui-kit/components}/atoms/Validation/validation.module.scss +1 -1
  295. package/src/{components → ui-kit/components}/atoms/buttons/Button/Button.module.scss +1 -1
  296. package/src/{components → ui-kit/components}/atoms/buttons/Close/Close.jsx +7 -2
  297. package/src/{components → ui-kit/components}/atoms/buttons/Close/close.module.scss +1 -1
  298. package/src/{components → ui-kit/components}/atoms/buttons/LinkButton/LinkButton.jsx +9 -3
  299. package/src/{components → ui-kit/components}/atoms/buttons/LinkButton/link-button.module.scss +1 -1
  300. package/src/{components → ui-kit/components}/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx +1 -1
  301. package/src/{components → ui-kit/components}/atoms/buttons/RadioButtonWithText/radio-button-with-text.module.scss +1 -1
  302. package/src/{components → ui-kit/components}/molecules/AmountInput/AmountInput.jsx +5 -4
  303. package/src/{components → ui-kit/components}/molecules/AmountInput/amount-input.module.scss +1 -1
  304. package/src/{components → ui-kit/components}/molecules/CoinPicker/CoinPicker.jsx +27 -25
  305. package/src/{components → ui-kit/components}/molecules/CoinPicker/coin-picker.module.scss +1 -1
  306. package/src/{components → ui-kit/components}/molecules/LineWithIconLink/line-with-icon-link.module.scss +1 -1
  307. package/src/{components → ui-kit/components}/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx +8 -6
  308. package/src/{components → ui-kit/components}/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx +3 -1
  309. package/src/{components → ui-kit/components}/organisms/Dialog/Dialog.jsx +35 -6
  310. package/src/{components → ui-kit/components}/organisms/Dialog/DialogButtons/DialogButtons.jsx +3 -3
  311. package/src/{components → ui-kit/components}/organisms/Dialog/DialogButtons/dialog-buttons.module.scss +1 -1
  312. package/src/{components → ui-kit/components}/organisms/Dialog/DialogStep/DialogStep.jsx +49 -47
  313. package/src/{components → ui-kit/components}/organisms/Dialog/DialogStep/dialog-step.module.scss +1 -1
  314. package/src/{components → ui-kit/components}/organisms/Dialog/dialog.module.scss +1 -1
  315. package/src/{components → ui-kit/components}/organisms/SwapForm/SwapForm.jsx +209 -85
  316. package/src/{components → ui-kit/components}/organisms/SwapForm/swap-form.module.scss +2 -2
  317. package/src/{components → ui-kit/components}/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx +2 -2
  318. package/src/{components → ui-kit}/hooks/useCallHandlingErrors.js +1 -1
  319. package/src/ui-kit/hooks/useIsHydrated.js +12 -0
  320. package/src/{components → ui-kit}/utils/textUtils.js +1 -1
  321. package/coverage/rabbit-ui-kit/src/components/atoms/Input/index.html +0 -116
  322. package/coverage/rabbit-ui-kit/src/components/atoms/NoticeIcon/index.html +0 -116
  323. package/coverage/rabbit-ui-kit/src/components/atoms/RateSelector/index.html +0 -116
  324. package/coverage/rabbit-ui-kit/src/components/atoms/SupportChat/index.html +0 -116
  325. package/coverage/rabbit-ui-kit/src/components/atoms/Textarea/index.html +0 -116
  326. package/coverage/rabbit-ui-kit/src/components/atoms/TitleBox/index.html +0 -116
  327. package/coverage/rabbit-ui-kit/src/components/atoms/Tooltip/index.html +0 -116
  328. package/coverage/rabbit-ui-kit/src/components/atoms/TwoLinesOfText/index.html +0 -116
  329. package/coverage/rabbit-ui-kit/src/components/atoms/Validation/index.html +0 -116
  330. package/coverage/rabbit-ui-kit/src/components/molecules/AmountInput/index.html +0 -116
  331. package/coverage/rabbit-ui-kit/src/components/molecules/CoinPicker/index.html +0 -116
  332. package/coverage/rabbit-ui-kit/src/components/molecules/LineWithIconLink/index.html +0 -116
  333. package/coverage/rabbit-ui-kit/src/components/molecules/TitledLineWithIconLink/index.html +0 -116
  334. package/coverage/rabbit-ui-kit/src/components/organisms/CoinPickerDialogStep/index.html +0 -116
  335. package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/index.html +0 -116
  336. package/coverage/rabbit-ui-kit/src/components/organisms/SwapForm/index.html +0 -116
  337. package/coverage/rabbit-ui-kit/src/components/templates/DeterminedErrorDialogStep/index.html +0 -116
  338. package/coverage/rabbit-ui-kit/src/constants/atoms/LinkButton/index.html +0 -116
  339. package/coverage/rabbit-ui-kit/src/constants/atoms/Tooltip/tooltip.jsx.html +0 -109
  340. package/coverage/rabbit-ui-kit/src/constants/index.html +0 -116
  341. package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/dialog.js.html +0 -172
  342. package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/index.html +0 -116
  343. package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/index.html +0 -131
  344. package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +0 -709
  345. package/src/assets/image/icons/arrow-tosca.svg +0 -3
  346. package/src/constants/atoms/Close/close.jsx +0 -5
  347. package/src/constants/atoms/LinkButton/linkButton.jsx +0 -6
  348. package/src/constants/atoms/Tooltip/tooltip.jsx +0 -8
  349. package/src/constants/organisms/dialog/DialogStep/dialogStep.js +0 -1
  350. package/src/constants/organisms/dialog/dialog.js +0 -29
  351. /package/src/{common → common-apis}/adapters/axiosAdapter.js +0 -0
  352. /package/src/{common → common-apis}/adapters/qrUtils.js +0 -0
  353. /package/src/{common → common-apis}/amountUtils.js +0 -0
  354. /package/src/{common → common-apis}/errorUtils.js +0 -0
  355. /package/src/{common → common-apis}/external-apis/apiGroups.js +0 -0
  356. /package/src/{common → common-apis}/fiatCurrenciesService.js +0 -0
  357. /package/src/{constants → common-apis}/globalConstants.jsx +0 -0
  358. /package/src/{common → common-apis}/models/blockchain.js +0 -0
  359. /package/src/{common → common-apis}/models/coin.js +0 -0
  360. /package/src/{common → common-apis}/models/protocol.js +0 -0
  361. /package/src/{common → common-apis}/tests/amountUtils/composeRateText.test.js +0 -0
  362. /package/src/{common → common-apis}/tests/integration/external-apis/ipAddressProviders/getClientIpAddress.test.js +0 -0
  363. /package/src/{common → common-apis}/utils/cache.js +0 -0
  364. /package/src/{common → common-apis}/utils/emailAPI.js +0 -0
  365. /package/src/{common → common-apis}/utils/logging/logger.js +0 -0
  366. /package/src/{common → common-apis}/utils/logging/logsStorage.js +0 -0
  367. /package/src/{common → common-apis}/utils/postponeExecution.js +0 -0
  368. /package/src/{common → common-apis}/utils/safeStringify.js +0 -0
  369. /package/src/{robustExteranlApiCallerService → robust-api-caller}/cancelProcessing.js +0 -0
  370. /package/src/{robustExteranlApiCallerService → robust-api-caller}/externalApiProvider.js +0 -0
  371. /package/{styles → src/ui-kit/assets/styles}/_functions.scss +0 -0
  372. /package/{styles → src/ui-kit/assets/styles}/_global-classes.scss +0 -0
  373. /package/{styles → src/ui-kit/assets/styles}/_mixins.scss +0 -0
  374. /package/{styles → src/ui-kit/assets/styles}/_placeholder.scss +0 -0
  375. /package/{styles → src/ui-kit/assets/styles}/_variables.scss +0 -0
  376. /package/{styles → src/ui-kit/assets/styles}/colors/_light-colors.scss +0 -0
  377. /package/{styles → src/ui-kit/assets/styles}/colors/_solid-colors.scss +0 -0
  378. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-Bold.ttf +0 -0
  379. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-ExtraBold.ttf +0 -0
  380. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-Light.ttf +0 -0
  381. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-Regular.ttf +0 -0
  382. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-SemiBold.ttf +0 -0
  383. /package/{styles → src/ui-kit/assets/styles}/global-styles-index.scss +0 -0
  384. /package/{styles → src/ui-kit/assets/styles}/size/_margin-size.scss +0 -0
  385. /package/{styles → src/ui-kit/assets/styles}/size/_padding-size.scss +0 -0
  386. /package/src/{assets → ui-kit/assets}/wrappedImages/arrowIcon.jsx +0 -0
  387. /package/src/{assets → ui-kit/assets}/wrappedImages/arrowTosca.jsx +0 -0
  388. /package/src/{assets → ui-kit/assets}/wrappedImages/darkRectangle.jsx +0 -0
  389. /package/src/{assets → ui-kit/assets}/wrappedImages/determinedError.jsx +0 -0
  390. /package/src/{assets → ui-kit/assets}/wrappedImages/failedValidationIcon.jsx +0 -0
  391. /package/src/{assets → ui-kit/assets}/wrappedImages/infoIcon.jsx +0 -0
  392. /package/src/{assets → ui-kit/assets}/wrappedImages/noticeQuestionIcon.jsx +0 -0
  393. /package/src/{assets → ui-kit/assets}/wrappedImages/successfulValidationIcon.jsx +0 -0
  394. /package/src/{assets → ui-kit/assets}/wrappedImages/walletIcon.jsx +0 -0
  395. /package/src/{components → ui-kit/components}/atoms/BackgroundTitle/BackgroundTitle.jsx +0 -0
  396. /package/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.jsx +0 -0
  397. /package/src/{components → ui-kit/components}/atoms/buttons/Button/Button.jsx +0 -0
  398. /package/src/{components → ui-kit/components}/molecules/LineWithIconLink/LineWithIconLink.jsx +0 -0
  399. /package/src/{components → ui-kit}/hooks/useReferredState.js +0 -0
  400. /package/src/{components → ui-kit}/tests/utils/inputValueProviders/provideFormatOfFloatValueByInputString.test.js +0 -0
  401. /package/src/{components → ui-kit}/tests/utils/urlQueryUtils/getQueryParameterValues.test.js +0 -0
  402. /package/src/{components → ui-kit}/tests/utils/urlQueryUtils/saveQueryParameterAndValues.test.js +0 -0
  403. /package/src/{components → ui-kit}/utils/inputValueProviders.js +0 -0
  404. /package/src/{components → ui-kit}/utils/uiUtils.js +0 -0
  405. /package/src/{components → ui-kit}/utils/urlQueryUtils.js +0 -0
@@ -6,10 +6,10 @@ import { beforeEach, afterEach, describe, it } from "vitest";
6
6
 
7
7
  import { SwapProvider } from "../../../external-apis/swapProvider.js";
8
8
  import { SwapspaceSwapProvider } from "../../../external-apis/swapspaceSwapProvider.js";
9
- import { Cache } from "../../../../common/utils/cache.js";
10
- import { AmountUtils } from "../../../../common/amountUtils.js";
11
- import { Coin } from "../../../../common/models/coin.js";
12
- import { Blockchain } from "../../../../common/models/blockchain.js";
9
+ import { Cache } from "../../../../common-apis/utils/cache.js";
10
+ import { AmountUtils } from "../../../../common-apis/amountUtils.js";
11
+ import { Coin } from "../../../../common-apis/models/coin.js";
12
+ import { Blockchain } from "../../../../common-apis/models/blockchain.js";
13
13
 
14
14
  describe("swapspaceSwapProvider", function () {
15
15
  describe("getSwapInfo", function () {
@@ -92,6 +92,7 @@ describe("swapspaceSwapProvider", function () {
92
92
  let swapspaceSwapProvider;
93
93
  let axiosGetStub;
94
94
  let trimCryptoAmountByCoinStub;
95
+ let _fetchPartnersListIfNeededStub;
95
96
 
96
97
  beforeEach(() => {
97
98
  swapspaceSwapProvider = new SwapspaceSwapProvider("", new Cache());
@@ -100,6 +101,9 @@ describe("swapspaceSwapProvider", function () {
100
101
 
101
102
  trimCryptoAmountByCoinStub = sinon.stub(AmountUtils, "trim");
102
103
  trimCryptoAmountByCoinStub.callsFake(amount => amount?.toString());
104
+
105
+ _fetchPartnersListIfNeededStub = sinon.stub(swapspaceSwapProvider, "_fetchPartnersListIfNeeded");
106
+ _fetchPartnersListIfNeededStub.resolves();
103
107
  });
104
108
 
105
109
  afterEach(() => {
@@ -1576,5 +1580,121 @@ describe("swapspaceSwapProvider", function () {
1576
1580
  result.result.should.be.false();
1577
1581
  result.reason.should.be.equal(SwapProvider.NO_SWAPS_REASONS.NOT_SUPPORTED);
1578
1582
  });
1583
+
1584
+ [
1585
+ {
1586
+ description: "should return a result with isRefundAddressRequired true when partner is not found",
1587
+ supportedCoins: [
1588
+ { coin: BTC, code: "btc", network: "btc", deposit: true },
1589
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1590
+ ],
1591
+ mockData: [
1592
+ {
1593
+ exists: true,
1594
+ fixed: false,
1595
+ toAmount: 2,
1596
+ fromAmount: 1,
1597
+ duration: "10-20",
1598
+ max: 5,
1599
+ min: 0.1,
1600
+ partner: "partner1",
1601
+ },
1602
+ ],
1603
+ partners: [],
1604
+ expected: {
1605
+ result: true,
1606
+ isRefundAddressRequired: true,
1607
+ },
1608
+ },
1609
+ {
1610
+ description:
1611
+ "should return a result with isRefundAddressRequired false for a fixed option with reqFixedRefund as false",
1612
+ isFixed: true,
1613
+ supportedCoins: [
1614
+ { coin: BTC, code: "btc", network: "btc", deposit: true },
1615
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1616
+ ],
1617
+ mockData: [
1618
+ {
1619
+ exists: true,
1620
+ fixed: true,
1621
+ toAmount: 2,
1622
+ fromAmount: 1,
1623
+ duration: "10-20",
1624
+ max: 5,
1625
+ min: 0.1,
1626
+ partner: "partner1",
1627
+ },
1628
+ ],
1629
+ partners: [{ path: "partner1", reqFixedRefund: false, reqFloatRefund: true }],
1630
+ expected: {
1631
+ result: true,
1632
+ isRefundAddressRequired: false,
1633
+ },
1634
+ },
1635
+ {
1636
+ description:
1637
+ "should return a result with isRefundAddressRequired true for a floating option with reqFloatRefund as true",
1638
+ supportedCoins: [
1639
+ { coin: BTC, code: "btc", network: "btc", deposit: true },
1640
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1641
+ ],
1642
+ mockData: [
1643
+ {
1644
+ exists: true,
1645
+ fixed: false,
1646
+ toAmount: 2,
1647
+ fromAmount: 1,
1648
+ duration: "10-20",
1649
+ max: 5,
1650
+ min: 0.1,
1651
+ partner: "partner1",
1652
+ },
1653
+ ],
1654
+ partners: [{ path: "partner1", reqFixedRefund: false, reqFloatRefund: true }],
1655
+ expected: {
1656
+ result: true,
1657
+ isRefundAddressRequired: true,
1658
+ },
1659
+ },
1660
+ ].forEach(({ description, isFixed, supportedCoins, mockData, partners, expected }) => {
1661
+ it(description, async () => {
1662
+ swapspaceSwapProvider._supportedCoins = supportedCoins;
1663
+ axiosGetStub.returns(Promise.resolve({ data: mockData }));
1664
+
1665
+ _fetchPartnersListIfNeededStub.resolves();
1666
+ swapspaceSwapProvider._partners = partners;
1667
+
1668
+ const result = await swapspaceSwapProvider.getSwapInfo(BTC, ETH, "1", !!isFixed);
1669
+
1670
+ result.result.should.be.equal(expected.result);
1671
+ result.isRefundAddressRequired.should.be.equal(expected.isRefundAddressRequired);
1672
+ });
1673
+ });
1674
+ it("should call _fetchPartnersListIfNeeded ones", async () => {
1675
+ swapspaceSwapProvider._supportedCoins = [
1676
+ { coin: BTC, code: "btc", network: "btc", deposit: true },
1677
+ { coin: ETH, code: "eth", network: "eth", withdrawal: true },
1678
+ ];
1679
+ const mockData = [
1680
+ {
1681
+ exists: true,
1682
+ fixed: false,
1683
+ toAmount: 2,
1684
+ fromAmount: 1,
1685
+ duration: "10-20",
1686
+ max: 5,
1687
+ min: 0.1,
1688
+ partner: "partner1",
1689
+ },
1690
+ ];
1691
+ axiosGetStub.returns(Promise.resolve({ data: mockData }));
1692
+
1693
+ swapspaceSwapProvider._partners = [{ path: "partner1", reqFixedRefund: false, reqFloatRefund: true }];
1694
+
1695
+ await swapspaceSwapProvider.getSwapInfo(BTC, ETH, "1");
1696
+
1697
+ _fetchPartnersListIfNeededStub.callCount.should.be.equal(1);
1698
+ });
1579
1699
  });
1580
1700
  });
@@ -6,7 +6,7 @@ import { beforeEach, afterEach, describe, it } from "vitest";
6
6
 
7
7
  import { SwapProvider } from "../../../external-apis/swapProvider.js";
8
8
  import { SwapspaceSwapProvider } from "../../../external-apis/swapspaceSwapProvider.js";
9
- import { Cache } from "../../../../common/utils/cache.js";
9
+ import { Cache } from "../../../../common-apis/utils/cache.js";
10
10
 
11
11
  describe("swapspaceSwapProvider", function () {
12
12
  describe("getWithdrawalCurrencies", function () {
@@ -2,8 +2,8 @@ import sinon from "sinon";
2
2
  import should from "should";
3
3
 
4
4
  import { beforeEach, afterEach, describe, it } from "vitest";
5
- import { Logger } from "../../../../common/utils/logging/logger.js";
6
- import { EmailsApi } from "../../../../common/utils/emailAPI.js";
5
+ import { Logger } from "../../../../common-apis/utils/logging/logger.js";
6
+ import { EmailsApi } from "../../../../common-apis/utils/emailAPI.js";
7
7
  import { SwapUtils } from "../../../utils/swapUtils.js";
8
8
 
9
9
  describe("SwapUtils", function () {
@@ -1,13 +1,13 @@
1
1
  import { BigNumber } from "bignumber.js";
2
2
 
3
- import { AmountUtils } from "../../common/amountUtils.js";
4
- import { FiatCurrenciesService } from "../../common/fiatCurrenciesService.js";
5
- import { improveAndRethrow } from "../../common/errorUtils.js";
3
+ import { AmountUtils } from "../../common-apis/amountUtils.js";
4
+ import { FiatCurrenciesService } from "../../common-apis/fiatCurrenciesService.js";
5
+ import { improveAndRethrow } from "../../common-apis/errorUtils.js";
6
6
  import { ExistingSwapWithFiatData } from "../models/existingSwapWithFiatData.js";
7
- import { EmailsApi } from "../../common/utils/emailAPI.js";
7
+ import { EmailsApi } from "../../common-apis/utils/emailAPI.js";
8
8
  import { SwapProvider } from "../external-apis/swapProvider.js";
9
- import { Logger } from "../../common/utils/logging/logger.js";
10
- import { safeStringify } from "../../common/utils/safeStringify.js";
9
+ import { Logger } from "../../common-apis/utils/logging/logger.js";
10
+ import { safeStringify } from "../../common-apis/utils/safeStringify.js";
11
11
 
12
12
  export class SwapUtils {
13
13
  /**
@@ -112,8 +112,8 @@ export class SwapUtils {
112
112
  /**
113
113
  * If some swap is not found by id then there is no item in return list.
114
114
  *
115
- * @param swapProvider {SwapProvider}
116
- * @param swapIds {string[]}
115
+ * @param swapProviders {SwapProvider[]} - Array of swap providers
116
+ * @param swapIds {string[]} - Array of swap IDs
117
117
  * @return {Promise<{
118
118
  * result: true,
119
119
  * swaps: ExistingSwapWithFiatData[]
@@ -122,47 +122,72 @@ export class SwapUtils {
122
122
  * reason: string
123
123
  * }>}
124
124
  */
125
- static async getExistingSwapsDetailsWithFiatAmounts(swapProvider, swapIds) {
125
+ static async getExistingSwapsDetailsWithFiatAmounts(swapProviders, swapIds) {
126
126
  try {
127
- const result = await swapProvider.getExistingSwapsDetailsAndStatus(swapIds);
128
- if (result.result) {
129
- const extendedSwaps = [];
130
- for (let swap of result.swaps) {
131
- if (swap.status === SwapProvider.SWAP_STATUSES.REFUNDED) {
132
- const rate = await swapProvider.getCoinToUSDTRate(swap.fromCoin);
133
- extendedSwaps.push(
134
- ExistingSwapWithFiatData.fromExistingSwap(
135
- swap,
136
- rate?.rate != null ? BigNumber(swap.fromAmount).times(rate.rate).toNumber() : null,
137
- rate?.rate != null ? BigNumber(swap.toAmount).times(rate.rate).toNumber() : null,
138
- "USD",
139
- FiatCurrenciesService.getCurrencyDecimalCountByCode("USD")
140
- )
141
- );
142
- } else {
143
- const [fromCoinFiatRate, toConFiatRate] = await Promise.all([
144
- swapProvider.getCoinToUSDTRate(swap.fromCoin),
145
- swapProvider.getCoinToUSDTRate(swap.toCoin),
146
- ]);
147
- extendedSwaps.push(
148
- ExistingSwapWithFiatData.fromExistingSwap(
149
- swap,
150
- fromCoinFiatRate?.rate != null
151
- ? BigNumber(swap.fromAmount).times(fromCoinFiatRate.rate).toNumber()
152
- : null,
153
- toConFiatRate?.rate != null
154
- ? BigNumber(swap.toAmount).times(toConFiatRate.rate).toNumber()
155
- : null,
156
- "USD",
157
- FiatCurrenciesService.getCurrencyDecimalCountByCode("USD")
158
- )
159
- );
127
+ let allSwaps = [];
128
+ let remainingSwapIds = new Set(swapIds);
129
+ const failResults = [];
130
+ for (let provider of swapProviders) {
131
+ const result = await provider.getExistingSwapsDetailsAndStatus([...remainingSwapIds]);
132
+ if (result.result) {
133
+ const extendedSwaps = [];
134
+ for (let swap of result.swaps) {
135
+ if (swap.status === SwapProvider.SWAP_STATUSES.REFUNDED) {
136
+ const rate = await provider.getCoinToUSDTRate(swap.fromCoin);
137
+ extendedSwaps.push(
138
+ ExistingSwapWithFiatData.fromExistingSwap(
139
+ swap,
140
+ rate?.rate != null ? BigNumber(swap.fromAmount).times(rate.rate).toNumber() : null,
141
+ rate?.rate != null ? BigNumber(swap.toAmount).times(rate.rate).toNumber() : null,
142
+ "USD",
143
+ FiatCurrenciesService.getCurrencyDecimalCountByCode("USD")
144
+ )
145
+ );
146
+ } else {
147
+ const [fromCoinFiatRate, toCoinFiatRate] = await Promise.all([
148
+ provider.getCoinToUSDTRate(swap.fromCoin),
149
+ provider.getCoinToUSDTRate(swap.toCoin),
150
+ ]);
151
+ extendedSwaps.push(
152
+ ExistingSwapWithFiatData.fromExistingSwap(
153
+ swap,
154
+ fromCoinFiatRate?.rate != null
155
+ ? BigNumber(swap.fromAmount).times(fromCoinFiatRate.rate).toNumber()
156
+ : null,
157
+ toCoinFiatRate?.rate != null
158
+ ? BigNumber(swap.toAmount).times(toCoinFiatRate.rate).toNumber()
159
+ : null,
160
+ "USD",
161
+ FiatCurrenciesService.getCurrencyDecimalCountByCode("USD")
162
+ )
163
+ );
164
+ }
165
+ remainingSwapIds.delete(swap.id);
166
+ }
167
+ allSwaps = allSwaps.concat(extendedSwaps);
168
+
169
+ // Stop if we have retrieved all swaps
170
+ if (allSwaps.length >= swapIds.length) {
171
+ break;
160
172
  }
173
+ } else {
174
+ failResults.push(result);
161
175
  }
162
- result.swaps = extendedSwaps;
163
176
  }
164
177
 
165
- return result;
178
+ if (swapIds.length > 0 && allSwaps.length === 0 && failResults.length > 0) {
179
+ const failReasons = failResults.map(r => r.reason);
180
+ return {
181
+ result: false,
182
+ reason: failReasons.find(r => r !== SwapProvider.COMMON_ERRORS.REQUESTS_LIMIT_EXCEEDED)
183
+ ? failReasons.join("\n")
184
+ : SwapProvider.COMMON_ERRORS.REQUESTS_LIMIT_EXCEEDED,
185
+ };
186
+ }
187
+ return {
188
+ result: true,
189
+ swaps: allSwaps,
190
+ };
166
191
  } catch (e) {
167
192
  improveAndRethrow(e, "getExistingSwapsDetailsWithFiatAmounts");
168
193
  }
@@ -1,7 +1,7 @@
1
1
  @import "variables";
2
2
  @import "global-classes";
3
3
  @import "placeholder";
4
- @import "_mixins";
4
+ @import "mixins";
5
5
 
6
6
  // TODO: [feature, high] Uncomment fonts after adding a new packaging tool. task_id=7375fa84ccab4d66b9e3a177a41f7e26
7
7
  @font-face {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- // Originally: arrow-tosca.svg
3
+ // Originally: arrow-white.svg
4
4
  export default () => (
5
5
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
6
6
  <path
@@ -7,10 +7,11 @@ import s from "./asset-icon.module.scss";
7
7
  * AssetIcon component to display an icon for an asset.
8
8
  *
9
9
  * @component
10
- * @param {string} assetIconSrc - The source URL for the asset icon.
11
- * @param {string} [assetIconProtocolSrc=null] - The source URL for the asset icon that is base for this asset (e.g. ETH for USDT ERC20).
12
- * @param {string} [fallbackSrc=null] - The fallback source URL in case the main source fails to load.
13
- * @param {boolean} [small=false] - Whether to display a smaller version of the icon.
10
+ * @param {Object} props - The props object.
11
+ * @param {string} props.assetIconSrc - The source URL for the asset icon.
12
+ * @param {string} [props.assetIconProtocolSrc=null] - The source URL for the asset icon that is base for this asset (e.g. ETH for USDT ERC20).
13
+ * @param {string} [props.fallbackSrc=null] - The fallback source URL in case the main source fails to load.
14
+ * @param {boolean} [props.small=false] - Whether to display a smaller version of the icon.
14
15
  */
15
16
  export const AssetIcon = ({ assetIconSrc, assetIconProtocolSrc = null, fallbackSrc = null, small = false }) => {
16
17
  const handleFailedLoad = e => {
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .asset-icon {
4
4
  width: 34px;
@@ -6,18 +6,19 @@ import ArrowIcon from "../../../assets/wrappedImages/arrowIcon.jsx";
6
6
 
7
7
  import { AssetIcon } from "../AssetIcon/AssetIcon.jsx";
8
8
 
9
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors.js";
9
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
10
10
 
11
11
  /**
12
12
  * Component-button for triggering selecting an asset.
13
13
  *
14
14
  * @component
15
- * @param {Function} handleClick - The function to call when the component is clicked
16
- * @param {boolean} disabled - If true, disables click functionality
17
- * @param {string} assetIconSrc - The source URL for the asset icon
18
- * @param {string} [protocolName] - The name of the protocol, if any
19
- * @param {string} [assetIconProtocolSrc] - The source URL for the asset protocol icon
20
- * @param {string} [fallbackSrc] - The fallback source URL if the main asset icon fails to load
15
+ * @param {Object} props - The props object.
16
+ * @param {Function} props.handleClick - The function to call when the component is clicked.
17
+ * @param {boolean} props.disabled - If true, disables click functionality.
18
+ * @param {string} props.assetIconSrc - The source URL for the asset icon.
19
+ * @param {string} [props.protocolName] - The name of the protocol, if any.
20
+ * @param {string} [props.assetIconProtocolSrc] - The source URL for the asset protocol icon.
21
+ * @param {string} [props.fallbackSrc] - The fallback source URL if the main asset icon fails to load.
21
22
  */
22
23
  export const AssetSelection = ({
23
24
  handleClick = () => {},
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .asset-selection {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .background-title {
4
4
  pointer-events: none;
@@ -9,11 +9,12 @@ import InfoIcon from "../../../assets/wrappedImages/infoIcon.jsx";
9
9
  * InformationMessage component to display an informational message with an optional icon.
10
10
  *
11
11
  * @component
12
- * @param {string} [text=""] - The text content of the message.
13
- * @param {string|boolean} [icon=false] - The URL or boolean indicating whether to display an icon.
14
- * @param {boolean} [bigImage=false] - Whether to use a larger image for the icon.
15
- * @param {boolean} [whiteText=false] - Whether the text should be displayed in white color.
16
- * @param {ReactNode} [children=null] - Additional child components.
12
+ * @param {Object} props - The props object.
13
+ * @param {string} [props.text=""] - The text content of the message.
14
+ * @param {string|boolean} [props.icon=false] - The URL or boolean indicating whether to display an icon.
15
+ * @param {boolean} [props.bigImage=false] - Whether to use a larger image for the icon.
16
+ * @param {boolean} [props.whiteText=false] - Whether the text should be displayed in white color.
17
+ * @param {ReactNode} [props.children=null] - Additional child components.
17
18
  */
18
19
  export const InformationMessage = ({
19
20
  text = "",
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .information-message {
4
4
  display: flex;
@@ -3,8 +3,8 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./input.module.scss";
5
5
 
6
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors.js";
7
- import { logErrorOrOutputToConsole } from "../../../common/errorUtils.js";
6
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
7
+ import { logErrorOrOutputToConsole } from "../../../../common-apis/errorUtils.js";
8
8
 
9
9
  import { Close } from "../buttons/Close/Close.jsx";
10
10
  import { Validation } from "../Validation/Validation.jsx";
@@ -13,26 +13,27 @@ import { Validation } from "../Validation/Validation.jsx";
13
13
  * Input component for forms.
14
14
  *
15
15
  * @component
16
- * @param {string} [type="text"] - The type of input (e.g., "text", "number", "email").
17
- * @param {string} [name=""] - The name of the input field.
18
- * @param {function} [onChange=() => {}] - Function called when the input value changes.
19
- * @param {string} [alertText=""] - Text for alert messages.
20
- * @param {string} [placeholder=""] - Placeholder text for the input.
21
- * @param {string} [className=""] - Additional CSS classes for styling.
22
- * @param {string} [defaultValue=""] - Default value for the input.
23
- * @param {boolean} [isBigHeight=false] - Whether the input has a larger height.
24
- * @param {boolean} [isSmallHeight=false] - Whether the input has a smaller height.
25
- * @param {string} [label=""] - Label text for the input.
26
- * @param {string} [id=null] - Unique ID for the input.
27
- * @param {string} [value=""] - Value of the input.
28
- * @param {string} [successAlertText=""] - Text for success alert messages.
29
- * @param {boolean} [disabled=false] - Whether the input is disabled.
30
- * @param {function} [onKeyUp=() => {}] - Function called on key up event.
31
- * @param {boolean} [autoFocus=false] - Whether the input should be autofocused.
32
- * @param {boolean} [fillWidth=false] - Whether the input should fill the width of its container.
33
- * @param {boolean} [clearButton=false] - Whether to show a clear button for the input.
34
- * @param {boolean} [imageBackground=false] - Whether the input has an image background.
35
- * @param {boolean} [errorEncountered=false] - Whether an error has been encountered for the input.
16
+ * @param {Object} props - The props object.
17
+ * @param {string} [props.type="text"] - The type of input (e.g., "text", "number", "email").
18
+ * @param {string} [props.name=""] - The name of the input field.
19
+ * @param {function} [props.onChange=() => {}] - Function called when the input value changes.
20
+ * @param {string} [props.alertText=""] - Text for alert messages.
21
+ * @param {string} [props.placeholder=""] - Placeholder text for the input.
22
+ * @param {string} [props.className=""] - Additional CSS classes for styling.
23
+ * @param {string} [props.defaultValue=""] - Default value for the input.
24
+ * @param {boolean} [props.isBigHeight=false] - Whether the input has a larger height.
25
+ * @param {boolean} [props.isSmallHeight=false] - Whether the input has a smaller height.
26
+ * @param {string} [props.label=""] - Label text for the input.
27
+ * @param {string} [props.id=null] - Unique ID for the input.
28
+ * @param {string} [props.value=""] - Value of the input.
29
+ * @param {string} [props.successAlertText=""] - Text for success alert messages.
30
+ * @param {boolean} [props.disabled=false] - Whether the input is disabled.
31
+ * @param {function} [props.onKeyUp=() => {}] - Function called on key up event.
32
+ * @param {boolean} [props.autoFocus=false] - Whether the input should be autofocused.
33
+ * @param {boolean} [props.fillWidth=false] - Whether the input should fill the width of its container.
34
+ * @param {boolean} [props.clearButton=false] - Whether to show a clear button for the input.
35
+ * @param {boolean} [props.imageBackground=false] - Whether the input has an image background.
36
+ * @param {boolean} [props.errorEncountered=false] - Whether an error has been encountered for the input.
36
37
  */
37
38
  export const Input = forwardRef(
38
39
  (
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .input {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .loading-dots {
4
4
  display: flex;
@@ -3,19 +3,18 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./notice-icon.module.scss";
5
5
 
6
- import { handleClickOutside } from "../../utils/uiUtils.js";
7
- import { Tooltip } from "../Tooltip/Tooltip.jsx";
6
+ import { handleClickOutside } from "../../../utils/uiUtils.js";
7
+ import { Tooltip, TOOLTIP_POSITIONS } from "../Tooltip/Tooltip.jsx";
8
8
  import NoticeQuestionIcon from "../../../assets/wrappedImages/noticeQuestionIcon.jsx";
9
9
 
10
- import { TOOLTIP_POSITIONS } from "../../../constants/atoms/Tooltip/tooltip.jsx";
11
-
12
10
  /**
13
11
  * A component that displays a notice icon with optional tooltip.
14
12
  *
15
13
  * @component
16
- * @param {string} noticeText - The text to display inside the tooltip.
17
- * @param {string} [titleNoticeIcon] - The source URL for the icon displayed on the notice.
18
- * @param {string} tooltipPosition - Position for the tooltip relative to the icon.
14
+ * @param {Object} props - The props object.
15
+ * @param {string} props.noticeText - The text to display inside the tooltip.
16
+ * @param {string} [props.titleNoticeIcon] - The source URL for the icon displayed on the notice.
17
+ * @param {string} props.tooltipPosition - Position for the tooltip relative to the icon.
19
18
  */
20
19
  export const NoticeIcon = ({ noticeText, titleNoticeIcon = "", tooltipPosition = TOOLTIP_POSITIONS.TOP }) => {
21
20
  const [showTooltip, setShowTooltip] = useState(false);
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .notice-icon {
4
4
  position: relative;
@@ -1,11 +1,26 @@
1
1
  import React, { useRef, useEffect } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import { logErrorOrOutputToConsole } from "../../../common/errorUtils";
5
- import { generateQrAndShowInCanvas } from "../../../common/adapters/qrUtils";
4
+ import { logErrorOrOutputToConsole } from "../../../../common-apis/errorUtils.js";
5
+ import { generateQrAndShowInCanvas } from "../../../../common-apis/adapters/qrUtils.js";
6
6
 
7
7
  import s from "./qr-code.module.scss";
8
8
 
9
+ /**
10
+ * QrCode component renders a QR code for a provided crypto address.
11
+ *
12
+ * @component
13
+ * @example
14
+ * const address = "0x123456789abcdef";
15
+ * const fill = true;
16
+ * return <QrCode address={address} fill={fill} />;
17
+ *
18
+ * @param {Object} props - The props for the component.
19
+ * @param {string} props.address - The crypto address to generate the QR code for.
20
+ * @param {boolean} [props.fill=false] - If true, applies additional CSS class to fill the container.
21
+ *
22
+ * @returns {JSX.Element} A div containing the generated QR code.
23
+ */
9
24
  export const QrCode = ({ address, fill = false }) => {
10
25
  const canvasRef = useRef();
11
26
 
@@ -31,4 +46,5 @@ QrCode.propTypes = {
31
46
 
32
47
  QrCode.defaultProps = {
33
48
  address: "",
49
+ fill: false,
34
50
  };
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .qr-code {
4
4
  width: 180px !important;
@@ -2,6 +2,7 @@ import React from "react";
2
2
 
3
3
  import s from "./rate-selector.module.scss";
4
4
 
5
+ // TODO: [dev] add JSDoc
5
6
  export const RateSelector = ({
6
7
  isFixed = false,
7
8
  setIsFixed = () => {},
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .rate-selector {
4
4
  background-color: SolidColor("lightsmoke");
@@ -1,6 +1,7 @@
1
1
  import { useEffect } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
+ // TODO: [dev] add JSDoc
4
5
  export const SupportChat = ({ url, websiteToken, welcomeMessage = "", locale = "en" }) => {
5
6
  useEffect(() => {
6
7
  window.chatwootSettings = {