@rabbitio/ui-kit 1.0.0-beta.53 → 1.0.0-beta.55
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.
- package/.husky/commit-msg +4 -13
- package/coverage/clover.xml +189 -4094
- package/coverage/coverage-final.json +96 -154
- package/coverage/index.html +98 -338
- package/coverage/{ui-kit → rabbit-ui-kit}/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/index.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/arrowIcon.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/arrowTosca.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/arrowWhite.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/darkRectangle.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/determinedError.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/failedValidationIcon.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/infoIcon.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/successfulValidationIcon.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/assets/wrappedImages/walletIcon.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/adapters/axiosAdapter.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/adapters/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/adapters/qrUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/amountUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/errorUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/external-apis/apiGroups.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/external-apis/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/external-apis/ipAddressProviders.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/fiatCurrenciesService.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/models/blockchain.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/models/coin.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/models/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/models/protocol.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/cache.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/emailAPI.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/index.html +7 -22
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/logging/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/logging/logger.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/logging/logsStorage.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/postponeExecution.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/common/utils/safeStringify.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/AssetIcon/AssetIcon.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/AssetIcon/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/AssetSelection/AssetSelection.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/AssetSelection/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/BackgroundTitle/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/InformationMessage/InformationMessage.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/InformationMessage/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Input/Input.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Input/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/LoadingDots/LoadingDots.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/LoadingDots/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/NoticeIcon/NoticeIcon.jsx.html +6 -9
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/NoticeIcon/index.html +7 -7
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/QrCode/QrCode.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/QrCode/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/SupportChat/SupportChat.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/SupportChat/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Textarea/Textarea.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Textarea/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/TitleBox/TitleBox.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/TitleBox/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Tooltip/Tooltip.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Tooltip/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/TwoLinesOfText/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Validation/Validation.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/Validation/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/Button/Button.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/Button/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/Close/Close.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/Close/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/LinkButton/LinkButton.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/LinkButton/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/atoms/buttons/RadioButtonWithText/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/hooks/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/hooks/useCallHandlingErrors.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/hooks/useReferredState.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/AmountInput/AmountInput.jsx.html +7 -16
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/AmountInput/index.html +7 -7
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/CoinPicker/CoinPicker.jsx.html +5 -5
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/CoinPicker/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/LineWithIconLink/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/molecules/TitledLineWithIconLink/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/CoinPickerDialogStep/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/Dialog/Dialog.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/Dialog/DialogButtons/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +14 -8
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/Dialog/DialogStep/index.html +7 -7
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/Dialog/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/SwapForm/SwapForm.jsx.html +93 -105
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/SwapForm/index.html +7 -7
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/templates/DeterminedErrorDialogStep/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/utils/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/utils/inputValueProviders.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/utils/textUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/utils/uiUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/components/utils/urlQueryUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/atoms/Close/close.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/atoms/Close/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/atoms/LinkButton/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/atoms/LinkButton/linkButton.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/atoms/Tooltip/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/atoms/Tooltip/tooltip.jsx.html +3 -3
- package/coverage/{ui-kit/src/common/utils/iconsUtils.js.html → rabbit-ui-kit/src/constants/globalConstants.jsx.html} +23 -14
- package/coverage/rabbit-ui-kit/src/constants/index.html +116 -0
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/organisms/dialog/DialogStep/dialogStep.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/organisms/dialog/DialogStep/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/organisms/dialog/dialog.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/constants/organisms/dialog/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/index.html +7 -7
- package/coverage/{ui-kit → rabbit-ui-kit}/src/index.js.html +18 -6
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/cacheAndConcurrentRequestsResolver.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/cachedRobustExternalApiCallerService.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/cancelProcessing.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/concurrentCalculationsMetadataHolder.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/externalApiProvider.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/externalServicesStatsCollector.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/robustExteranlApiCallerService/robustExternalAPICallerService.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/swapProvider.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +6 -6
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/baseSwapCreationInfo.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/existingSwap.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/existingSwapWithFiatData.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/models/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/services/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/services/publicSwapService.js.html +5 -5
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/utils/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/src/swaps-lib/utils/swapUtils.js.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/BackgroundTitle.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/LinesOfText.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/LoadingDots.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/QrCode.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/Validation.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/Button.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/Close.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/LinkButton.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/buttons/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/atoms/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/molecules/LineWithIconLink.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/molecules/TitledLineWithIconLink.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/molecules/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/Dialog.stories.jsx.html +21 -6
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogButtons/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/DialogStep/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/organisms/Dialog/index.html +7 -7
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/stubs/exampleContent.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/stubs/index.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +3 -3
- package/coverage/{ui-kit → rabbit-ui-kit}/stories/templates/index.html +3 -3
- package/dist/index.cjs +102 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +58 -43
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +99 -103
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +101 -103
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +102 -102
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/NoticeIcon/NoticeIcon.jsx +0 -1
- package/src/components/atoms/TwoLinesOfText/lines-of-text.module.scss +2 -0
- package/src/components/molecules/AmountInput/AmountInput.jsx +1 -4
- package/src/components/molecules/CoinPicker/CoinPicker.jsx +2 -2
- package/src/components/molecules/CoinPicker/coin-picker.module.scss +11 -6
- package/src/components/organisms/Dialog/DialogStep/DialogStep.jsx +4 -2
- package/src/components/organisms/Dialog/DialogStep/dialog-step.module.scss +16 -2
- package/src/components/organisms/Dialog/dialog.module.scss +8 -5
- package/src/components/organisms/SwapForm/SwapForm.jsx +87 -91
- package/src/components/organisms/SwapForm/swap-form.module.scss +1 -2
- package/src/constants/globalConstants.jsx +4 -0
- package/src/index.js +4 -0
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +3 -3
- package/src/swaps-lib/services/publicSwapService.js +2 -2
- package/src/common/utils/iconsUtils.js +0 -1
package/coverage/{ui-kit → rabbit-ui-kit}/src/components/organisms/SwapForm/SwapForm.jsx.html
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for ui-kit/src/components/organisms/SwapForm/SwapForm.jsx</title>
|
|
6
|
+
<title>Code coverage report for rabbit-ui-kit/src/components/organisms/SwapForm/SwapForm.jsx</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../../base.css" />
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../../index.html">All files</a> / <a href="index.html">ui-kit/src/components/organisms/SwapForm</a> SwapForm.jsx</h1>
|
|
22
|
+
<h1><a href="../../../../../index.html">All files</a> / <a href="index.html">rabbit-ui-kit/src/components/organisms/SwapForm</a> SwapForm.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/1155</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/1155</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1218,15 +1218,7 @@
|
|
|
1218
1218
|
<a name='L1153'></a><a href='#L1153'>1153</a>
|
|
1219
1219
|
<a name='L1154'></a><a href='#L1154'>1154</a>
|
|
1220
1220
|
<a name='L1155'></a><a href='#L1155'>1155</a>
|
|
1221
|
-
<a name='L1156'></a><a href='#L1156'>1156</a>
|
|
1222
|
-
<a name='L1157'></a><a href='#L1157'>1157</a>
|
|
1223
|
-
<a name='L1158'></a><a href='#L1158'>1158</a>
|
|
1224
|
-
<a name='L1159'></a><a href='#L1159'>1159</a>
|
|
1225
|
-
<a name='L1160'></a><a href='#L1160'>1160</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
1226
|
-
<span class="cline-any cline-no"> </span>
|
|
1227
|
-
<span class="cline-any cline-no"> </span>
|
|
1228
|
-
<span class="cline-any cline-no"> </span>
|
|
1229
|
-
<span class="cline-any cline-no"> </span>
|
|
1221
|
+
<a name='L1156'></a><a href='#L1156'>1156</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
1230
1222
|
<span class="cline-any cline-no"> </span>
|
|
1231
1223
|
<span class="cline-any cline-no"> </span>
|
|
1232
1224
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2397,18 +2389,18 @@
|
|
|
2397
2389
|
<span class="cstat-no" title="statement not covered" >import { Button } from "../../atoms/buttons/Button/Button.jsx";</span>
|
|
2398
2390
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2399
2391
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2400
|
-
<span class="cstat-no" title="statement not covered" > * This is type definition of a function
|
|
2392
|
+
<span class="cstat-no" title="statement not covered" > * This is the type definition of a function used inside SwapForm to compose the URL for the hero button.</span>
|
|
2401
2393
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2402
2394
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2403
2395
|
<span class="cstat-no" title="statement not covered" > * @name composeConfirmButtonTo</span>
|
|
2404
|
-
<span class="cstat-no" title="statement not covered" > * @param [fromTicker]
|
|
2405
|
-
<span class="cstat-no" title="statement not covered" > * @param [toTicker]
|
|
2406
|
-
<span class="cstat-no" title="statement not covered" > * @param [fromAmount]
|
|
2407
|
-
<span class="cstat-no" title="statement not covered" > * @return {string}
|
|
2396
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [fromTicker] - Ticker symbol of the asset being sent.</span>
|
|
2397
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [toTicker] - Ticker symbol of the asset being received.</span>
|
|
2398
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [fromAmount] - Amount of the asset being sent.</span>
|
|
2399
|
+
<span class="cstat-no" title="statement not covered" > * @return {string} Full URL or relative URL that can be used for <a href="..." />.</span>
|
|
2408
2400
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2409
2401
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2410
2402
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2411
|
-
<span class="cstat-no" title="statement not covered" > * Common click handler without
|
|
2403
|
+
<span class="cstat-no" title="statement not covered" > * Common click handler without parameters and return value, just your logic execution.</span>
|
|
2412
2404
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2413
2405
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2414
2406
|
<span class="cstat-no" title="statement not covered" > * @name handleClick</span>
|
|
@@ -2418,28 +2410,28 @@
|
|
|
2418
2410
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2419
2411
|
<span class="cstat-no" title="statement not covered" > * Form executes this function when swap creation info retrieval is finished successfully.</span>
|
|
2420
2412
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2421
|
-
<span class="cstat-no" title="statement not covered" > * @name setSwapCreationEstimation</span>
|
|
2422
2413
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2423
|
-
<span class="cstat-no" title="statement not covered" > * @
|
|
2414
|
+
<span class="cstat-no" title="statement not covered" > * @name setSwapCreationEstimation</span>
|
|
2415
|
+
<span class="cstat-no" title="statement not covered" > * @param {BaseSwapCreationInfo} details - Details of the swap creation estimation.</span>
|
|
2424
2416
|
<span class="cstat-no" title="statement not covered" > * @return {void}</span>
|
|
2425
2417
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2426
2418
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2427
2419
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2428
2420
|
<span class="cstat-no" title="statement not covered" > * Error handler for unexpected errors.</span>
|
|
2429
2421
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2430
|
-
<span class="cstat-no" title="statement not covered" > * @name handleUnexpectedError</span>
|
|
2431
2422
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2432
|
-
<span class="cstat-no" title="statement not covered" > * @
|
|
2423
|
+
<span class="cstat-no" title="statement not covered" > * @name handleUnexpectedError</span>
|
|
2424
|
+
<span class="cstat-no" title="statement not covered" > * @param {Error} error - The unexpected error encountered.</span>
|
|
2433
2425
|
<span class="cstat-no" title="statement not covered" > * @return {void}</span>
|
|
2434
2426
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2435
2427
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2436
2428
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2437
|
-
<span class="cstat-no" title="statement not covered" > * Should implement the logic with rotating assets (if you want "to" to
|
|
2429
|
+
<span class="cstat-no" title="statement not covered" > * Should implement the logic with rotating assets (if you want "to" to become "from" and "from" to become "to").</span>
|
|
2438
2430
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2439
2431
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2440
2432
|
<span class="cstat-no" title="statement not covered" > * @name rotateAssets</span>
|
|
2441
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2442
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2433
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} sendingAssetTicker - Ticker symbol of the asset being sent.</span>
|
|
2434
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} receivingAssetTicker - Ticker symbol of the asset being received.</span>
|
|
2443
2435
|
<span class="cstat-no" title="statement not covered" > * @return {void}</span>
|
|
2444
2436
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2445
2437
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
@@ -2448,13 +2440,13 @@
|
|
|
2448
2440
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2449
2441
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2450
2442
|
<span class="cstat-no" title="statement not covered" > * @name handleSwapServiceError</span>
|
|
2451
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2452
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2453
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2454
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2455
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2456
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2457
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2443
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} errorCode - Error code returned as "reason" from your handlers.</span>
|
|
2444
|
+
<span class="cstat-no" title="statement not covered" > * @param {function} setValidationContent - Function to set the validation error message on the form.</span>
|
|
2445
|
+
<span class="cstat-no" title="statement not covered" > * @param {function} setBalanceValid - Function to set the balance validity, accepts a boolean.</span>
|
|
2446
|
+
<span class="cstat-no" title="statement not covered" > * @param {function} setMinimalAmountValid - Function to set the minimal amount validity, accepts a boolean.</span>
|
|
2447
|
+
<span class="cstat-no" title="statement not covered" > * @param {function} setMaximumAmountValid - Function to set the maximum amount validity, accepts a boolean.</span>
|
|
2448
|
+
<span class="cstat-no" title="statement not covered" > * @param {function} setIsPairSupported - Function to set the pair support status, accepts a boolean.</span>
|
|
2449
|
+
<span class="cstat-no" title="statement not covered" > * @param {function} setIsSameCoins - Function to set the status if the same coins are used, accepts a boolean.</span>
|
|
2458
2450
|
<span class="cstat-no" title="statement not covered" > * @return {void}</span>
|
|
2459
2451
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2460
2452
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
@@ -2463,10 +2455,10 @@
|
|
|
2463
2455
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2464
2456
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2465
2457
|
<span class="cstat-no" title="statement not covered" > * @name retrieveSwapDetails</span>
|
|
2466
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2467
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2468
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2469
|
-
<span class="cstat-no" title="statement not covered" > * @param [isSwapAll=false]
|
|
2458
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} sendingAssetTicker - Ticker symbol of the asset being sent.</span>
|
|
2459
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} receivingAssetTicker - Ticker symbol of the asset being received.</span>
|
|
2460
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} amount - Amount of the asset to be swapped.</span>
|
|
2461
|
+
<span class="cstat-no" title="statement not covered" > * @param {boolean} [isSwapAll=false] - Indicates if the swap should use all available balance.</span>
|
|
2470
2462
|
<span class="cstat-no" title="statement not covered" > * @return {Promise<{</span>
|
|
2471
2463
|
<span class="cstat-no" title="statement not covered" > * result: false,</span>
|
|
2472
2464
|
<span class="cstat-no" title="statement not covered" > * reason: string,</span>
|
|
@@ -2482,12 +2474,12 @@
|
|
|
2482
2474
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2483
2475
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2484
2476
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2485
|
-
<span class="cstat-no" title="statement not covered" > * Async function that retrieves initial swap details for pair like whether the pair is available, min/max swappable amounts etc.</span>
|
|
2477
|
+
<span class="cstat-no" title="statement not covered" > * Async function that retrieves initial swap details for a pair like whether the pair is available, min/max swappable amounts, etc.</span>
|
|
2486
2478
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2487
2479
|
<span class="cstat-no" title="statement not covered" > * @function</span>
|
|
2488
2480
|
<span class="cstat-no" title="statement not covered" > * @name retrieveInitialSwapData</span>
|
|
2489
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2490
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2481
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} sendingAssetTicker - Ticker symbol of the asset being sent.</span>
|
|
2482
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} receivingAssetTicker - Ticker symbol of the asset being received.</span>
|
|
2491
2483
|
<span class="cstat-no" title="statement not covered" > * @return {Promise<{</span>
|
|
2492
2484
|
<span class="cstat-no" title="statement not covered" > * result: true,</span>
|
|
2493
2485
|
<span class="cstat-no" title="statement not covered" > * min: string,</span>
|
|
@@ -2503,50 +2495,52 @@
|
|
|
2503
2495
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2504
2496
|
<span class="cstat-no" title="statement not covered" >/**</span>
|
|
2505
2497
|
<span class="cstat-no" title="statement not covered" > * Swap form provides basic functionality for entering to/from amounts both in crypto and fiat, switching assets,</span>
|
|
2506
|
-
<span class="cstat-no" title="statement not covered" > * selecting assets, showing balance for assets
|
|
2507
|
-
<span class="cstat-no" title="statement not covered" > *
|
|
2498
|
+
<span class="cstat-no" title="statement not covered" > * selecting assets, showing balance for assets. It gracefully handles unavailable fiat rates and can work</span>
|
|
2499
|
+
<span class="cstat-no" title="statement not covered" > * both with and without a wallet environment (without balances).</span>
|
|
2508
2500
|
<span class="cstat-no" title="statement not covered" > *</span>
|
|
2509
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2510
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2511
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2512
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2513
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2514
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2515
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2516
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2517
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2518
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2519
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2520
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2521
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2522
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2523
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2524
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2525
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2526
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2527
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2528
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2529
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2530
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2531
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2532
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2533
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2534
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2535
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2536
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2537
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2538
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2539
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2540
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2541
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2542
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2543
|
-
<span class="cstat-no" title="statement not covered" > * @param [
|
|
2544
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2545
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2546
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2547
|
-
<span class="cstat-no" title="statement not covered" > * @param
|
|
2548
|
-
<span class="cstat-no" title="statement not covered" > *
|
|
2549
|
-
<span class="cstat-no" title="statement not covered" > * @
|
|
2501
|
+
<span class="cstat-no" title="statement not covered" > * @param {object} props - Props object for SwapForm component.</span>
|
|
2502
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.sendingAssetTicker - Rabbit format of the ticker symbol for the asset being sent.</span>
|
|
2503
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.receivingAssetTicker - Rabbit format of the ticker symbol for the asset being received.</span>
|
|
2504
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} [props.sendingAssetDecimalCount=AmountUtils.significantDecimalCount] - Decimal count for the sending asset.</span>
|
|
2505
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} [props.receivingAssetDecimalCount=AmountUtils.significantDecimalCount] - Decimal count for the receiving asset.</span>
|
|
2506
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.sendingAssetTickerPrintable - Standard ticker symbol for the sending asset.</span>
|
|
2507
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.receivingAssetTickerPrintable - Standard ticker symbol for the receiving asset.</span>
|
|
2508
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.sendingAssetProtocol] - Protocol name to be displayed in text on the change asset button.</span>
|
|
2509
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.receivingAssetProtocol] - Protocol name to be displayed in text on the change asset button.</span>
|
|
2510
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.sendingAssetIconSrc - Source URL for the sending asset icon.</span>
|
|
2511
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.sendingAssetProtocolIconSrc=null] - Optional source URL for the sending asset protocol icon.</span>
|
|
2512
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.receivingAssetIconSrc - Source URL for the receiving asset icon.</span>
|
|
2513
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.receivingAssetProtocolIconSrc=null] - Optional source URL for the receiving asset protocol icon.</span>
|
|
2514
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.fallBackAssetIconSrc=null] - Optional source URL for a fallback icon used when an icon fails to load.</span>
|
|
2515
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.sendingAssetFeeCoinTickerPrintable] - Optional standard ticker symbol for the fee coin of the sending asset.</span>
|
|
2516
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.sendingAssetBalance] - Balance of the sending asset.</span>
|
|
2517
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.receivingAssetBalance] - Balance of the receiving asset.</span>
|
|
2518
|
+
<span class="cstat-no" title="statement not covered" > * @param {handleClick} props.handleChangeSendingAssetClick - Function to handle clicking on the change sending asset button.</span>
|
|
2519
|
+
<span class="cstat-no" title="statement not covered" > * @param {handleClick} props.handleChangeReceivingAssetClick - Function to handle clicking on the change receiving asset button.</span>
|
|
2520
|
+
<span class="cstat-no" title="statement not covered" > * @param {handleClick} props.handleConfirmButtonClick - Function to handle clicking on the confirm button.</span>
|
|
2521
|
+
<span class="cstat-no" title="statement not covered" > * @param {composeConfirmButtonTo} props.composeConfirmButtonTo - Function to compose the URL for the confirm button.</span>
|
|
2522
|
+
<span class="cstat-no" title="statement not covered" > * @param {setSwapCreationEstimation} props.setSwapCreationEstimation - Function to set the swap creation estimation.</span>
|
|
2523
|
+
<span class="cstat-no" title="statement not covered" > * @param {handleUnexpectedError} props.handleUnexpectedError - Function to handle unexpected errors.</span>
|
|
2524
|
+
<span class="cstat-no" title="statement not covered" > * @param {rotateAssets} props.rotateAssets - Function to rotate the assets (swap sending and receiving assets).</span>
|
|
2525
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.preservedAmount=null] - Amount to be preserved.</span>
|
|
2526
|
+
<span class="cstat-no" title="statement not covered" > * @param {handleSwapServiceError} props.handleSwapServiceError - Function to handle standard errors that we can recognize.</span>
|
|
2527
|
+
<span class="cstat-no" title="statement not covered" > * @param {boolean} [props.formHasBalance] - Indicates if the form has balance information.</span>
|
|
2528
|
+
<span class="cstat-no" title="statement not covered" > * @param {retrieveSwapDetails} props.retrieveSwapDetails - Function to retrieve swap details based on the given parameters.</span>
|
|
2529
|
+
<span class="cstat-no" title="statement not covered" > * @param {retrieveInitialSwapData} props.retrieveInitialSwapData - Function to retrieve initial swap data for a given pair of assets.</span>
|
|
2530
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} props.triggerDataUpdateResetting - Number to reset interval updating the data periodically.</span>
|
|
2531
|
+
<span class="cstat-no" title="statement not covered" > * @param {React.Ref} props.fromAssetSelectionButtonRef - Reference to the from asset selection button.</span>
|
|
2532
|
+
<span class="cstat-no" title="statement not covered" > * @param {React.Ref} props.toAssetSelectionButtonRef - Reference to the to asset selection button.</span>
|
|
2533
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|string} [props.sendingAssetToFiatRate] - Rate for converting the sending asset to fiat.</span>
|
|
2534
|
+
<span class="cstat-no" title="statement not covered" > * @param {number|string} [props.receivingAssetToFiatRate] - Rate for converting the receiving asset to fiat.</span>
|
|
2535
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} [props.fiatCurrencyCode] - Code for the fiat currency.</span>
|
|
2536
|
+
<span class="cstat-no" title="statement not covered" > * @param {number} [props.fiatCurrencyDecimals] - Decimal places for the fiat currency.</span>
|
|
2537
|
+
<span class="cstat-no" title="statement not covered" > * @param {boolean} [props.formHasFiat] - Indicates if the form supports fiat currency.</span>
|
|
2538
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} [props.termsOfUseUrl] - Terms of use URL, shown only if both terms & privacy policy passed.</span>
|
|
2539
|
+
<span class="cstat-no" title="statement not covered" > * @param {string|null} [props.privacyPolicyUrl] - Privacy policy of use URL, shown only if both terms & privacy policy passed.</span>
|
|
2540
|
+
<span class="cstat-no" title="statement not covered" > * @param {object} [props.translations] - Object containing translations, default English texts will be used if omitted.</span>
|
|
2541
|
+
<span class="cstat-no" title="statement not covered" > * @param {string} props.swapSeparatorIconSrc - Source URL for the swap separator icon.</span>
|
|
2542
|
+
<span class="cstat-no" title="statement not covered" > * @param {boolean} props.swapButtonAlwaysActive - Setting that allows the form state to proceed to the next step regardless of validity.</span>
|
|
2543
|
+
<span class="cstat-no" title="statement not covered" > * @return {JSX.Element} Rendered SwapForm component.</span>
|
|
2550
2544
|
<span class="cstat-no" title="statement not covered" > * @constructor</span>
|
|
2551
2545
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
2552
2546
|
<span class="cstat-no" title="statement not covered" >export const SwapForm = ({</span>
|
|
@@ -2602,6 +2596,8 @@
|
|
|
2602
2596
|
<span class="cstat-no" title="statement not covered" > fiatCurrencyCode = null,</span>
|
|
2603
2597
|
<span class="cstat-no" title="statement not covered" > fiatCurrencyDecimals = null,</span>
|
|
2604
2598
|
<span class="cstat-no" title="statement not covered" > formHasFiat = true,</span>
|
|
2599
|
+
<span class="cstat-no" title="statement not covered" > termsOfUseUrl = null,</span>
|
|
2600
|
+
<span class="cstat-no" title="statement not covered" > privacyPolicyUrl = null,</span>
|
|
2605
2601
|
<span class="cstat-no" title="statement not covered" > translations = {</span>
|
|
2606
2602
|
<span class="cstat-no" title="statement not covered" > swapAllButtonTitles: {</span>
|
|
2607
2603
|
<span class="cstat-no" title="statement not covered" > enable: "Swap all",</span>
|
|
@@ -2687,7 +2683,6 @@
|
|
|
2687
2683
|
<span class="cstat-no" title="statement not covered" > const callHandlingErrors = useCallHandlingErrors();</span>
|
|
2688
2684
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2689
2685
|
<span class="cstat-no" title="statement not covered" > const recalculationDelayOnTyping = 1000;</span>
|
|
2690
|
-
<span class="cstat-no" title="statement not covered" > const showConsent = !formHasBalance; // We show TOS&PP consent only when working outside wallet</span>
|
|
2691
2686
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
2692
2687
|
<span class="cstat-no" title="statement not covered" > const handleSendAssetAmountChange = (amount) => {</span>
|
|
2693
2688
|
<span class="cstat-no" title="statement not covered" > if (amount != null && amount !== "") {</span>
|
|
@@ -3128,7 +3123,7 @@
|
|
|
3128
3123
|
<span class="cstat-no" title="statement not covered" > }, [sendAssetAmount.current]);</span>
|
|
3129
3124
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
3130
3125
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
3131
|
-
<span class="cstat-no" title="statement not covered" > <div className={s["swap-
|
|
3126
|
+
<span class="cstat-no" title="statement not covered" > <div className={s["swap-form"]}></span>
|
|
3132
3127
|
<span class="cstat-no" title="statement not covered" > <TitleBox</span>
|
|
3133
3128
|
<span class="cstat-no" title="statement not covered" > linkButtonClick={</span>
|
|
3134
3129
|
<span class="cstat-no" title="statement not covered" > BigNumber(sendingAssetBalance?.assetAmount).eq(0)</span>
|
|
@@ -3150,7 +3145,7 @@
|
|
|
3150
3145
|
<span class="cstat-no" title="statement not covered" > BigNumber(sendingAssetBalance?.assetAmount).eq(0)</span>
|
|
3151
3146
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
3152
3147
|
<span class="cstat-no" title="statement not covered" > ></span>
|
|
3153
|
-
<span class="cstat-no" title="statement not covered" > <div className={s["swap-
|
|
3148
|
+
<span class="cstat-no" title="statement not covered" > <div className={s["swap-form-inputs"]}></span>
|
|
3154
3149
|
<span class="cstat-no" title="statement not covered" > <AmountInput</span>
|
|
3155
3150
|
<span class="cstat-no" title="statement not covered" > ticker={sendingAssetTicker}</span>
|
|
3156
3151
|
<span class="cstat-no" title="statement not covered" > tickerPrintable={sendingAssetTickerPrintable}</span>
|
|
@@ -3188,7 +3183,7 @@
|
|
|
3188
3183
|
<span class="cstat-no" title="statement not covered" > /></span>
|
|
3189
3184
|
<span class="cstat-no" title="statement not covered" > <div</span>
|
|
3190
3185
|
<span class="cstat-no" title="statement not covered" > className={</span>
|
|
3191
|
-
<span class="cstat-no" title="statement not covered" > s["swap-
|
|
3186
|
+
<span class="cstat-no" title="statement not covered" > s["swap-form-inputs-separator"] +</span>
|
|
3192
3187
|
<span class="cstat-no" title="statement not covered" > " " +</span>
|
|
3193
3188
|
<span class="cstat-no" title="statement not covered" > (isLoading.current ||</span>
|
|
3194
3189
|
<span class="cstat-no" title="statement not covered" > sendingAssetTicker === null ||</span>
|
|
@@ -3241,7 +3236,7 @@
|
|
|
3241
3236
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
3242
3237
|
<span class="cstat-no" title="statement not covered" > /></span>
|
|
3243
3238
|
<span class="cstat-no" title="statement not covered" > </div></span>
|
|
3244
|
-
<span class="cstat-no" title="statement not covered" > <div className={s["swap-
|
|
3239
|
+
<span class="cstat-no" title="statement not covered" > <div className={s["swap-form-information-field"]}></span>
|
|
3245
3240
|
<span class="cstat-no" title="statement not covered" > <p></span>
|
|
3246
3241
|
<span class="cstat-no" title="statement not covered" > {!isPairSupported ? (</span>
|
|
3247
3242
|
<span class="cstat-no" title="statement not covered" > translations.informationBlock.pairNotAvailable</span>
|
|
@@ -3370,43 +3365,37 @@
|
|
|
3370
3365
|
<span class="cstat-no" title="statement not covered" > ) : (</span>
|
|
3371
3366
|
<span class="cstat-no" title="statement not covered" > translations.informationBlock.loadingMinimalAmount</span>
|
|
3372
3367
|
<span class="cstat-no" title="statement not covered" > )}</span>
|
|
3373
|
-
<span class="cstat-no" title="statement not covered" > {/* TODO: [feature, moderate] add "Please enter the amount you want to swap." */}</span>
|
|
3374
3368
|
<span class="cstat-no" title="statement not covered" > </p></span>
|
|
3375
3369
|
<span class="cstat-no" title="statement not covered" > </div></span>
|
|
3376
3370
|
<span class="cstat-no" title="statement not covered" > {validationContent ? (</span>
|
|
3377
|
-
<span class="cstat-no" title="statement not covered" > <div className={s["swap-
|
|
3371
|
+
<span class="cstat-no" title="statement not covered" > <div className={s["swap-form-validation-text"]}></span>
|
|
3378
3372
|
<span class="cstat-no" title="statement not covered" > <Validation text={validationContent} /></span>
|
|
3379
3373
|
<span class="cstat-no" title="statement not covered" > </div></span>
|
|
3380
3374
|
<span class="cstat-no" title="statement not covered" > ) : (</span>
|
|
3381
3375
|
<span class="cstat-no" title="statement not covered" > ""</span>
|
|
3382
3376
|
<span class="cstat-no" title="statement not covered" > )}</span>
|
|
3383
|
-
<span class="cstat-no" title="statement not covered" > <div className={s["swap-
|
|
3377
|
+
<span class="cstat-no" title="statement not covered" > <div className={s["swap-form-button-container"]}></span>
|
|
3384
3378
|
<span class="cstat-no" title="statement not covered" > {formHasBalance ? null : (</span>
|
|
3385
3379
|
<span class="cstat-no" title="statement not covered" > <p</span>
|
|
3386
3380
|
<span class="cstat-no" title="statement not covered" > className={</span>
|
|
3387
|
-
<span class="cstat-no" title="statement not covered" > s[</span>
|
|
3388
|
-
<span class="cstat-no" title="statement not covered" > "swap-dialog-form-button-container-consent-text"</span>
|
|
3389
|
-
<span class="cstat-no" title="statement not covered" > ]</span>
|
|
3381
|
+
<span class="cstat-no" title="statement not covered" > s["swap-form-button-container-consent-text"]</span>
|
|
3390
3382
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
3391
3383
|
<span class="cstat-no" title="statement not covered" > ></span>
|
|
3392
3384
|
<span class="cstat-no" title="statement not covered" > {translations.consents.consentTextRate}</span>
|
|
3393
3385
|
<span class="cstat-no" title="statement not covered" > </p></span>
|
|
3394
3386
|
<span class="cstat-no" title="statement not covered" > )}</span>
|
|
3395
|
-
<span class="cstat-no" title="statement not covered" > {
|
|
3387
|
+
<span class="cstat-no" title="statement not covered" > {!termsOfUseUrl || !privacyPolicyUrl ? null : (</span>
|
|
3396
3388
|
<span class="cstat-no" title="statement not covered" > <p</span>
|
|
3397
3389
|
<span class="cstat-no" title="statement not covered" > className={</span>
|
|
3398
|
-
<span class="cstat-no" title="statement not covered" > s[</span>
|
|
3399
|
-
<span class="cstat-no" title="statement not covered" > "swap-dialog-form-button-container-consent-text"</span>
|
|
3400
|
-
<span class="cstat-no" title="statement not covered" > ]</span>
|
|
3390
|
+
<span class="cstat-no" title="statement not covered" > s["swap-form-button-container-consent-text"]</span>
|
|
3401
3391
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
3402
3392
|
<span class="cstat-no" title="statement not covered" > ></span>
|
|
3403
3393
|
<span class="cstat-no" title="statement not covered" > {translations.consents.consentText + " "}</span>
|
|
3404
3394
|
<span class="cstat-no" title="statement not covered" > <a</span>
|
|
3405
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3406
|
-
<span class="cstat-no" title="statement not covered" > href="/docs/legal/swap-terms-of-use.html"</span>
|
|
3395
|
+
<span class="cstat-no" title="statement not covered" > href={termsOfUseUrl}</span>
|
|
3407
3396
|
<span class="cstat-no" title="statement not covered" > className={</span>
|
|
3408
3397
|
<span class="cstat-no" title="statement not covered" > s[</span>
|
|
3409
|
-
<span class="cstat-no" title="statement not covered" > "swap-
|
|
3398
|
+
<span class="cstat-no" title="statement not covered" > "swap-form-button-container-consent-text-link"</span>
|
|
3410
3399
|
<span class="cstat-no" title="statement not covered" > ]</span>
|
|
3411
3400
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
3412
3401
|
<span class="cstat-no" title="statement not covered" > target="_blank"</span>
|
|
@@ -3415,11 +3404,10 @@
|
|
|
3415
3404
|
<span class="cstat-no" title="statement not covered" > </a></span>
|
|
3416
3405
|
<span class="cstat-no" title="statement not covered" > {" " + translations.consents.and + " "}</span>
|
|
3417
3406
|
<span class="cstat-no" title="statement not covered" > <a</span>
|
|
3418
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3419
|
-
<span class="cstat-no" title="statement not covered" > href="/docs/legal/swap-privacy-policy.html"</span>
|
|
3407
|
+
<span class="cstat-no" title="statement not covered" > href={privacyPolicyUrl}</span>
|
|
3420
3408
|
<span class="cstat-no" title="statement not covered" > className={</span>
|
|
3421
3409
|
<span class="cstat-no" title="statement not covered" > s[</span>
|
|
3422
|
-
<span class="cstat-no" title="statement not covered" > "swap-
|
|
3410
|
+
<span class="cstat-no" title="statement not covered" > "swap-form-button-container-consent-text-link"</span>
|
|
3423
3411
|
<span class="cstat-no" title="statement not covered" > ]</span>
|
|
3424
3412
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
3425
3413
|
<span class="cstat-no" title="statement not covered" > target="_blank"</span>
|
|
@@ -3547,7 +3535,7 @@
|
|
|
3547
3535
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
3548
3536
|
Code coverage generated by
|
|
3549
3537
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
3550
|
-
at 2024-05-
|
|
3538
|
+
at 2024-05-17T20:49:37.900Z
|
|
3551
3539
|
</div>
|
|
3552
3540
|
<script src="../../../../../prettify.js"></script>
|
|
3553
3541
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for ui-kit/src/components/organisms/SwapForm</title>
|
|
6
|
+
<title>Code coverage report for rabbit-ui-kit/src/components/organisms/SwapForm</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../../base.css" />
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../../index.html">All files</a> ui-kit/src/components/organisms/SwapForm</h1>
|
|
22
|
+
<h1><a href="../../../../../index.html">All files</a> rabbit-ui-kit/src/components/organisms/SwapForm</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/1155</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/1155</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="1155" class="abs low">0/1155</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
89
|
<td data-value="1" class="abs low">0/1</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="1" class="abs low">0/1</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="1155" class="abs low">0/1155</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
</tbody>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2024-05-
|
|
104
|
+
at 2024-05-17T20:49:37.900Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for ui-kit/src/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx</title>
|
|
6
|
+
<title>Code coverage report for rabbit-ui-kit/src/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../../index.html">All files</a> / <a href="index.html">ui-kit/src/components/templates/DeterminedErrorDialogStep</a> DeterminedErrorDialogStep.jsx</h1>
|
|
22
|
+
<h1><a href="../../../../../index.html">All files</a> / <a href="index.html">rabbit-ui-kit/src/components/templates/DeterminedErrorDialogStep</a> DeterminedErrorDialogStep.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
302
302
|
Code coverage generated by
|
|
303
303
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
304
|
-
at 2024-05-
|
|
304
|
+
at 2024-05-17T20:49:37.900Z
|
|
305
305
|
</div>
|
|
306
306
|
<script src="../../../../../prettify.js"></script>
|
|
307
307
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for ui-kit/src/components/templates/DeterminedErrorDialogStep</title>
|
|
6
|
+
<title>Code coverage report for rabbit-ui-kit/src/components/templates/DeterminedErrorDialogStep</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../../index.html">All files</a> ui-kit/src/components/templates/DeterminedErrorDialogStep</h1>
|
|
22
|
+
<h1><a href="../../../../../index.html">All files</a> rabbit-ui-kit/src/components/templates/DeterminedErrorDialogStep</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2024-05-
|
|
104
|
+
at 2024-05-17T20:49:37.900Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for ui-kit/src/components/utils</title>
|
|
6
|
+
<title>Code coverage report for rabbit-ui-kit/src/components/utils</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a> ui-kit/src/components/utils</h1>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> rabbit-ui-kit/src/components/utils</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at 2024-05-
|
|
149
|
+
at 2024-05-17T20:49:37.900Z
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for ui-kit/src/components/utils/inputValueProviders.js</title>
|
|
6
|
+
<title>Code coverage report for rabbit-ui-kit/src/components/utils/inputValueProviders.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../../base.css" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">ui-kit/src/components/utils</a> inputValueProviders.js</h1>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">rabbit-ui-kit/src/components/utils</a> inputValueProviders.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -244,7 +244,7 @@ export class InputValuesProviders {
|
|
|
244
244
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
245
245
|
Code coverage generated by
|
|
246
246
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
247
|
-
at 2024-05-
|
|
247
|
+
at 2024-05-17T20:49:37.900Z
|
|
248
248
|
</div>
|
|
249
249
|
<script src="../../../../prettify.js"></script>
|
|
250
250
|
<script>
|