@rabbitio/ui-kit 1.0.0-beta.72 → 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.
- package/coverage/clover.xml +6428 -1864
- package/coverage/coverage-final.json +157 -95
- package/coverage/index.html +339 -84
- package/coverage/{rabbit-ui-kit → ui-kit}/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/index.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/axiosAdapter.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/adapters/qrUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/amountUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/errorUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/apiGroups.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/external-apis/ipAddressProviders.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/fiatCurrenciesService.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/globalConstants.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/blockchain.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/coin.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/models/protocol.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/cache.js.html +8 -8
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/emailAPI.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/logging/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/logging/logger.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/logging/logsStorage.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/postponeExecution.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/common-apis/utils/safeStringify.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/index.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/cacheAndConcurrentRequestsResolver.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/cachedRobustExternalApiCallerService.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/cancelProcessing.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/concurrentCalculationsMetadataHolder.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/externalApiProvider.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/externalServicesStatsCollector.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/robust-api-caller/robustExternalAPICallerService.js.html +3 -3
- package/coverage/ui-kit/src/swaps-lib/external-apis/index.html +146 -0
- package/coverage/ui-kit/src/swaps-lib/external-apis/letsExchangeSwapProvider.js.html +1456 -0
- package/coverage/ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +1390 -0
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +45 -585
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/baseSwapCreationInfo.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwap.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/existingSwapWithFiatData.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/models/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/services/index.html +7 -7
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/services/publicSwapService.js.html +233 -50
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/utils/index.html +13 -13
- package/coverage/{rabbit-ui-kit → ui-kit}/src/swaps-lib/utils/swapUtils.js.html +121 -46
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/arrowIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/arrowTosca.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/arrowWhite.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/darkRectangle.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/determinedError.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/failedValidationIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/infoIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/noticeQuestionIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/successfulValidationIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/assets/wrappedImages/walletIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetIcon/AssetIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetIcon/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetSelection/AssetSelection.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/AssetSelection/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/BackgroundTitle/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/InformationMessage/InformationMessage.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/InformationMessage/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Input/Input.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Input/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/LoadingDots/LoadingDots.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/LoadingDots/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/NoticeIcon/NoticeIcon.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/NoticeIcon/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/QrCode/QrCode.jsx.html +52 -7
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/QrCode/index.html +7 -7
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/RateSelector/RateSelector.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/RateSelector/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/SupportChat/SupportChat.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/SupportChat/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Textarea/Textarea.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Textarea/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TitleBox/TitleBox.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TitleBox/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Tooltip/Tooltip.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Tooltip/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/TwoLinesOfText/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Validation/Validation.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/Validation/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Button/Button.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Button/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Close/Close.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/Close/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/LinkButton/LinkButton.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/LinkButton/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/AmountInput/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/CoinPicker/CoinPicker.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/CoinPicker/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/LineWithIconLink/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/molecules/TitledLineWithIconLink/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/CoinPickerDialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/Dialog.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/Dialog/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx.html +129 -36
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/organisms/SwapForm/index.html +7 -7
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/useCallHandlingErrors.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/useIsHydrated.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/hooks/useReferredState.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/inputValueProviders.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/textUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/uiUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/src/ui-kit/utils/urlQueryUtils.js.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/BackgroundTitle.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/LinesOfText.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/LoadingDots.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/QrCode.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/RateSelector.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/Validation.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/Button.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/Close.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/LinkButton.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/buttons/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/atoms/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/LineWithIconLink.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/TitledLineWithIconLink.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/molecules/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/Dialog.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogButtons/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/DialogStep/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/organisms/Dialog/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/exampleContent.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/stubs/index.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +3 -3
- package/coverage/{rabbit-ui-kit → ui-kit}/stories/templates/index.html +3 -3
- package/coverage/ui-kit/storybook-static/124.c2d01e5e.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/138.56b7edc4.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/312.6f62bbd9.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/341.57a15f57.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/370.73bb343e.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/595.2e40d981.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/607.3ea32459.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/609.8c79ec77.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/666.09fdc1d7.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/797.c87cdf19.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/822.4bc0ebce.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/833.08e3ebb6.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/862.bf6bfe62.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/87.0a1bfeb1.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/893.4b09f929.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/996.846a677b.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-BackgroundTitle-stories.1a5386a1.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-LinesOfText-stories.7043a48b.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-LoadingDots-stories.091245c7.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-QrCode-stories.e10363b6.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-RateSelector-stories.af208e9a.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-Validation-stories.d561b311.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-buttons-Button-stories.e8e6b930.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-buttons-Close-stories.0a902a7c.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/atoms-buttons-LinkButton-stories.ca93ab6b.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/index.html +596 -0
- package/coverage/ui-kit/storybook-static/main.41f410f2.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/molecules-LineWithIconLink-stories.9721a18c.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/molecules-TitledLineWithIconLink-stories.1383fe3f.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/organisms-Dialog-Dialog-stories.4e6da717.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/organisms-Dialog-DialogButtons-DialogButtons-stories.6f45ae6e.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/organisms-Dialog-DialogStep-DialogStep-stories.74896048.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/addon-backgrounds/dist/index.html +116 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/addon-backgrounds/dist/preview.js.html +118 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/components/dist/formatter-SWP5E3XI.mjs.html +118 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/@storybook/components/dist/index.html +116 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/buffer/index.html +116 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/buffer/index.js.html +118 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/markdown-to-jsx/dist/index.html +116 -0
- package/coverage/ui-kit/storybook-static/rabbitio/ui-kit/node_modules/markdown-to-jsx/dist/index.modern.js.html +118 -0
- package/coverage/ui-kit/storybook-static/runtime~main.ad918f38.iframe.bundle.js.html +85 -0
- package/coverage/ui-kit/storybook-static/sb-addons/actions-9/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/actions-9/manager-bundle.js.html +94 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-backgrounds-2/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-backgrounds-2/manager-bundle.js.html +121 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-controls-1/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.html +274 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-measure-4/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-measure-4/manager-bundle.js.html +94 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-outline-5/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-outline-5/manager-bundle.js.html +94 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-toolbars-3/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/essentials-toolbars-3/manager-bundle.js.html +94 -0
- package/coverage/ui-kit/storybook-static/sb-addons/interactions-7/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/interactions-7/manager-bundle.js.html +121 -0
- package/coverage/ui-kit/storybook-static/sb-addons/links-0/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/links-0/manager-bundle.js.html +94 -0
- package/coverage/ui-kit/storybook-static/sb-addons/onboarding-6/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/onboarding-6/manager-bundle.js.html +1588 -0
- package/coverage/ui-kit/storybook-static/sb-addons/viewport-8/index.html +116 -0
- package/coverage/ui-kit/storybook-static/sb-addons/viewport-8/manager-bundle.js.html +94 -0
- package/coverage/ui-kit/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-manager/chunk-2IXBUOFS.js.html +106 -0
- package/coverage/ui-kit/storybook-static/sb-manager/chunk-INSKDKQB.js.html +1129 -0
- package/coverage/ui-kit/storybook-static/sb-manager/chunk-NGTUFCUO.js.html +112 -0
- package/coverage/ui-kit/storybook-static/sb-manager/chunk-UUEAOBSN.js.html +1303 -0
- package/coverage/ui-kit/storybook-static/sb-manager/chunk-ZEU7PDD3.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js.html +553 -0
- package/coverage/ui-kit/storybook-static/sb-manager/globals-module-info.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-manager/globals.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-manager/index.html +281 -0
- package/coverage/ui-kit/storybook-static/sb-manager/index.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-manager/runtime.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-preview/globals.js.html +88 -0
- package/coverage/ui-kit/storybook-static/sb-preview/index.html +131 -0
- package/coverage/ui-kit/storybook-static/sb-preview/runtime.js.html +421 -0
- package/coverage/ui-kit/storybook-static/templates-DeterminedErrorDialogStep-stories.3cc14214.iframe.bundle.js.html +85 -0
- package/dist/index.cjs +1156 -571
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +775 -328
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1156 -571
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1156 -571
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/external-apis/letsExchangeSwapProvider.js +457 -0
- package/src/swaps-lib/external-apis/swapProvider.js +246 -20
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +20 -200
- package/src/swaps-lib/services/publicSwapService.js +105 -44
- package/src/swaps-lib/test/external-apis/swapProvider/removeProtocolNameFromCoinName.test.js +142 -0
- package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +2 -2
- package/src/swaps-lib/utils/swapUtils.js +63 -38
- package/src/ui-kit/components/atoms/QrCode/QrCode.jsx +16 -1
- package/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx +61 -30
- package/src/ui-kit/components/organisms/SwapForm/swap-form.module.scss +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/index.html +0 -131
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +0 -712
|
@@ -151,6 +151,15 @@ import { useIsHydrated } from "../../../hooks/useIsHydrated.js";
|
|
|
151
151
|
* @return {string|null}
|
|
152
152
|
*/
|
|
153
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Callback to handle isFixed flag change.
|
|
156
|
+
*
|
|
157
|
+
* @function
|
|
158
|
+
* @name onIsFixedChange
|
|
159
|
+
* @param {boolean} isFixedNewValue - new value
|
|
160
|
+
* @return {void}
|
|
161
|
+
*/
|
|
162
|
+
|
|
154
163
|
/**
|
|
155
164
|
* Function validating addresses.
|
|
156
165
|
* By default, will treat any addresses as valid.
|
|
@@ -160,6 +169,7 @@ import { useIsHydrated } from "../../../hooks/useIsHydrated.js";
|
|
|
160
169
|
* @name validateAddressByTicker
|
|
161
170
|
* @param {string} ticker - Ticker symbol of the asset.
|
|
162
171
|
* @param {string} address - Address to be validated
|
|
172
|
+
* @param {boolean} isFixed - Is swap rate mode = fixed
|
|
163
173
|
* @return {Promise<boolean>}
|
|
164
174
|
*/
|
|
165
175
|
|
|
@@ -207,11 +217,13 @@ import { useIsHydrated } from "../../../hooks/useIsHydrated.js";
|
|
|
207
217
|
* @param {boolean} [props.formHasFiat] - Indicates if the form supports fiat currency.
|
|
208
218
|
* @param {string|null} [props.termsOfUseUrl] - Terms of use URL, shown only if both terms & privacy policy passed.
|
|
209
219
|
* @param {string|null} [props.privacyPolicyUrl] - Privacy policy of use URL, shown only if both terms & privacy policy passed.
|
|
220
|
+
* @param {string} props.recipientAddressExtraIdName - Extra ID name for the recipient address.
|
|
221
|
+
* @param {string} props.refundAddressExtraIdName - Extra ID name for the refund address.
|
|
210
222
|
* @param {object} [props.translations] - Object containing translations, default English texts will be used if omitted.
|
|
211
223
|
* @param {string} props.swapSeparatorIconSrc - Source URL for the swap separator icon.
|
|
212
224
|
* @param {boolean} props.swapButtonAlwaysActive - Setting that allows the form state to proceed to the next step regardless of validity.
|
|
213
|
-
* @param {getExtraIdNameByTicker} props.getExtraIdNameByTicker - Function returning extraId name for asset
|
|
214
225
|
* @param {validateAddressByTicker} [props.validateAddressByTicker] - Function validating address
|
|
226
|
+
* @param {onIsFixedChange} [props.onIsFixedChange] - callback for changed isFixed
|
|
215
227
|
* @return {JSX.Element} Rendered SwapForm component.
|
|
216
228
|
* @constructor
|
|
217
229
|
*/
|
|
@@ -262,7 +274,13 @@ export const SwapForm = ({
|
|
|
262
274
|
setIsSameCoins
|
|
263
275
|
) => {},
|
|
264
276
|
formHasBalance = false,
|
|
265
|
-
retrieveSwapDetails = async (
|
|
277
|
+
retrieveSwapDetails = async (
|
|
278
|
+
sendingAssetTicker,
|
|
279
|
+
receivingAssetTicker,
|
|
280
|
+
amount,
|
|
281
|
+
isSwapAll = false,
|
|
282
|
+
editedLastInput = false
|
|
283
|
+
) => {},
|
|
266
284
|
retrieveInitialSwapData = async (sendingAssetTicker, receivingAssetTicker) => {},
|
|
267
285
|
triggerDataUpdateResetting = 0,
|
|
268
286
|
fromAssetSelectionButtonRef = null,
|
|
@@ -275,9 +293,12 @@ export const SwapForm = ({
|
|
|
275
293
|
termsOfUseUrl = null,
|
|
276
294
|
privacyPolicyUrl = null,
|
|
277
295
|
getExtraIdNameByTicker = ticker => null,
|
|
278
|
-
validateAddressByTicker =
|
|
296
|
+
validateAddressByTicker = () => false,
|
|
279
297
|
swapSeparatorIconSrc,
|
|
280
298
|
swapButtonAlwaysActive = false,
|
|
299
|
+
onIsFixedChange = () => {},
|
|
300
|
+
recipientAddressExtraIdName,
|
|
301
|
+
refundAddressExtraIdName,
|
|
281
302
|
translations = {
|
|
282
303
|
swapAllButtonTitles: {
|
|
283
304
|
enable: "Swap all",
|
|
@@ -307,8 +328,10 @@ export const SwapForm = ({
|
|
|
307
328
|
addressTitle: "Recepient address",
|
|
308
329
|
refundAddressTitle: "Refund address",
|
|
309
330
|
extraIdPlaceholder: "(optional)",
|
|
331
|
+
refundAddressExtraIdTitle: "Refund extra ID (MEMO):",
|
|
310
332
|
refundAddressExtraIdNotice:
|
|
311
333
|
"Please check if your address requires additional identifier (sometimes called a Memo, Destination Tag, Tag, ID, Label or Note). Including this identifier is crucial when required, as omitting or misentering it can result in lost assets.",
|
|
334
|
+
receivingAddressExtraIdTitle: "Destination extra ID (MEMO):",
|
|
312
335
|
receivingAddressExtraIdNotice:
|
|
313
336
|
"Please check if your address requires additional identifier (sometimes called a Memo, Destination Tag, Tag, ID, Label or Note). Including this identifier is crucial when required, as omitting or misentering it can result in lost assets.",
|
|
314
337
|
},
|
|
@@ -322,7 +345,6 @@ export const SwapForm = ({
|
|
|
322
345
|
const DETAIL_REFRESH_INTERVAL_MS = 1.5 * 60000;
|
|
323
346
|
const IS_FIXED_BY_DEFAULT = false;
|
|
324
347
|
|
|
325
|
-
// Updating the states below will insert the new value into the send or receive input field
|
|
326
348
|
const [updateSendInputTo, setUpdateSendInputTo] = useState(preservedAmount ?? null);
|
|
327
349
|
const [updateReceiveInputTo, setUpdateReceiveInputTo] = useState(null);
|
|
328
350
|
|
|
@@ -341,11 +363,10 @@ export const SwapForm = ({
|
|
|
341
363
|
const [isSameCoins, setIsSameCoins] = useState(false);
|
|
342
364
|
const [isSwapCalculated, setIsSwapCalculated] = useState(false);
|
|
343
365
|
const [readyToSwap, setReadyToSwap] = useState(false); // Basically a param that enables/disables the "Next" button
|
|
344
|
-
// TODO: [refactoring, moderate] instead of handling preservedAmount at a lot of cases below, just
|
|
345
|
-
// write single useEffect setting sendAssetAmount to the=is passed value and simplify the logic below. task_id=6453251e49b04c5e88a3cc771479ffb5
|
|
346
366
|
const [isAmountZero, setIsAmountZero] = useState(preservedAmount == null || String(preservedAmount) === "0");
|
|
347
367
|
const [isLoading, setIsLoading] = useReferredState(false); // Whether the form is in the progress of loading some data (new rates, for example)
|
|
348
368
|
const [isFixedRate, setIsFixedRate] = useReferredState(null);
|
|
369
|
+
const [isLastEditedReceiving, setIsLastEditedReceiving] = useState(false);
|
|
349
370
|
|
|
350
371
|
const [confirmButtonTo, setConfirmButtonTo] = useState(
|
|
351
372
|
composeConfirmButtonTo(sendingAssetTicker, receivingAssetTicker, preservedAmount)
|
|
@@ -374,10 +395,9 @@ export const SwapForm = ({
|
|
|
374
395
|
|
|
375
396
|
const isAddressFieldEnabled = !formHasBalance;
|
|
376
397
|
const displayRateSelector = !formHasBalance;
|
|
377
|
-
const recipientAddressExtraIdName = getExtraIdNameByTicker(receivingAssetTicker);
|
|
378
|
-
const refundAddressExtraIdName = getExtraIdNameByTicker(sendingAssetTicker);
|
|
379
398
|
|
|
380
399
|
const handleSendAssetAmountChange = amount => {
|
|
400
|
+
setIsLastEditedReceiving(false);
|
|
381
401
|
if (amount != null && amount !== "") {
|
|
382
402
|
setUpdateReceiveInputTo(AmountUtils.trim(BigNumber(amount).times(swapRate), receivingAssetDecimalCount));
|
|
383
403
|
} else {
|
|
@@ -387,6 +407,7 @@ export const SwapForm = ({
|
|
|
387
407
|
};
|
|
388
408
|
|
|
389
409
|
const handleReceiveAssetAmountChange = amount => {
|
|
410
|
+
setIsLastEditedReceiving(true);
|
|
390
411
|
let sendAssetAmount = "";
|
|
391
412
|
if (amount != null && amount !== "") {
|
|
392
413
|
sendAssetAmount = AmountUtils.trim(BigNumber(amount).div(swapRate), sendingAssetDecimalCount);
|
|
@@ -505,7 +526,8 @@ export const SwapForm = ({
|
|
|
505
526
|
receivingAssetTicker,
|
|
506
527
|
amount,
|
|
507
528
|
isSwapAll.current,
|
|
508
|
-
isFixedRate.current ?? IS_FIXED_BY_DEFAULT
|
|
529
|
+
isFixedRate.current ?? IS_FIXED_BY_DEFAULT,
|
|
530
|
+
isFixedRate.current ? isLastEditedReceiving : false
|
|
509
531
|
);
|
|
510
532
|
|
|
511
533
|
if (
|
|
@@ -630,6 +652,11 @@ export const SwapForm = ({
|
|
|
630
652
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
631
653
|
}, [isSwapAll.current]);
|
|
632
654
|
|
|
655
|
+
useEffect(() => {
|
|
656
|
+
onIsFixedChange(isFixedRate.current);
|
|
657
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
658
|
+
}, [isFixedRate.current]);
|
|
659
|
+
|
|
633
660
|
useEffect(() => {
|
|
634
661
|
setConfirmButtonTo(
|
|
635
662
|
composeConfirmButtonTo(
|
|
@@ -711,7 +738,7 @@ export const SwapForm = ({
|
|
|
711
738
|
setIsRecipientAddressValid(
|
|
712
739
|
recipientAddress.current === ""
|
|
713
740
|
? false
|
|
714
|
-
: await validateAddressByTicker(receivingAssetTicker, recipientAddress.current)
|
|
741
|
+
: await validateAddressByTicker(receivingAssetTicker, recipientAddress.current, isFixedRate.current)
|
|
715
742
|
);
|
|
716
743
|
})();
|
|
717
744
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -723,7 +750,7 @@ export const SwapForm = ({
|
|
|
723
750
|
setIsRefundAddressValid(
|
|
724
751
|
refundAddress.current === ""
|
|
725
752
|
? false
|
|
726
|
-
: await validateAddressByTicker(sendingAssetTicker, refundAddress.current)
|
|
753
|
+
: await validateAddressByTicker(sendingAssetTicker, refundAddress.current, isFixedRate.current)
|
|
727
754
|
);
|
|
728
755
|
})();
|
|
729
756
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -748,7 +775,6 @@ export const SwapForm = ({
|
|
|
748
775
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
749
776
|
}, [readyToSwap]);
|
|
750
777
|
|
|
751
|
-
// TODO: [refactoring, critical] this code looks like a hack related to task_id=6e328d39063142b7b9fa01d497e616da
|
|
752
778
|
useEffect(() => {
|
|
753
779
|
if (triggerDataUpdateResetting) {
|
|
754
780
|
clearTimeout(dataUpdateTimeoutId.current);
|
|
@@ -760,7 +786,6 @@ export const SwapForm = ({
|
|
|
760
786
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
761
787
|
}, [triggerDataUpdateResetting]);
|
|
762
788
|
|
|
763
|
-
// Resets the passed "set value to" param to null, so it can be used multiple times with any value
|
|
764
789
|
useEffect(() => {
|
|
765
790
|
if (!!updateSendInputTo) setUpdateSendInputTo(null);
|
|
766
791
|
if (!!updateReceiveInputTo) setUpdateReceiveInputTo(null);
|
|
@@ -784,7 +809,6 @@ export const SwapForm = ({
|
|
|
784
809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
785
810
|
}, [isLoading.current, swapAllButtonLoaderReSetter]);
|
|
786
811
|
|
|
787
|
-
// Handlers upon changing the asset amount
|
|
788
812
|
useEffect(() => {
|
|
789
813
|
setConfirmButtonTo(composeConfirmButtonTo(sendingAssetTicker, receivingAssetTicker, sendAssetAmount.current));
|
|
790
814
|
|
|
@@ -819,6 +843,18 @@ export const SwapForm = ({
|
|
|
819
843
|
BigNumber(sendingAssetBalance?.assetAmount).eq(0)
|
|
820
844
|
}
|
|
821
845
|
>
|
|
846
|
+
{displayRateSelector ? (
|
|
847
|
+
<div className={s["swap-form-rate-selector"]}>
|
|
848
|
+
<RateSelector
|
|
849
|
+
isFixed={isFixedRate.current ?? IS_FIXED_BY_DEFAULT}
|
|
850
|
+
setIsFixed={handleRateModeChanged}
|
|
851
|
+
translations={translations.rateSelector}
|
|
852
|
+
/>
|
|
853
|
+
</div>
|
|
854
|
+
) : (
|
|
855
|
+
""
|
|
856
|
+
)}
|
|
857
|
+
|
|
822
858
|
<div className={s["swap-form-inputs"]}>
|
|
823
859
|
<AmountInput
|
|
824
860
|
ticker={sendingAssetTicker}
|
|
@@ -872,7 +908,7 @@ export const SwapForm = ({
|
|
|
872
908
|
assetIconProtocolSrc={receivingAssetProtocolIconSrc}
|
|
873
909
|
fallbackAssetIconSrc={fallBackAssetIconSrc}
|
|
874
910
|
disabled={isSwapAll.current || sendingAssetTicker === null || receivingAssetTicker === null}
|
|
875
|
-
locked={!formHasBalance}
|
|
911
|
+
locked={!formHasBalance && !isFixedRate.current}
|
|
876
912
|
handleCoinAmountChange={handleReceiveAssetAmountChange}
|
|
877
913
|
handleChangeAssetClick={handleChangeReceivingAssetClick}
|
|
878
914
|
updateAssetInputTo={updateReceiveInputTo}
|
|
@@ -891,7 +927,6 @@ export const SwapForm = ({
|
|
|
891
927
|
/>
|
|
892
928
|
</div>
|
|
893
929
|
<div className={s["swap-form-information-field"]}>
|
|
894
|
-
{/* TODO: [refactoring, moderate] Add flags calculation for each message to avoid this ugly cumbersome implicit unclear logic of message displaying. task_id=8bc31dbcd94d46a598346e8bfb505971 */}
|
|
895
930
|
<p>
|
|
896
931
|
{!isPairSupported ? (
|
|
897
932
|
translations.informationBlock.pairNotAvailable
|
|
@@ -995,7 +1030,7 @@ export const SwapForm = ({
|
|
|
995
1030
|
</TitleBox>
|
|
996
1031
|
{isHydrated && recipientAddressExtraIdName ? (
|
|
997
1032
|
<TitleBox
|
|
998
|
-
title={
|
|
1033
|
+
title={translations.addressFields.receivingAddressExtraIdTitle}
|
|
999
1034
|
titleNoticeText={translations.addressFields.receivingAddressExtraIdNotice}
|
|
1000
1035
|
titleNoticePosition={TOOLTIP_POSITIONS.TOP_LEFT}
|
|
1001
1036
|
>
|
|
@@ -1021,7 +1056,7 @@ export const SwapForm = ({
|
|
|
1021
1056
|
</TitleBox>
|
|
1022
1057
|
{refundAddressExtraIdName ? (
|
|
1023
1058
|
<TitleBox
|
|
1024
|
-
title={
|
|
1059
|
+
title={translations.addressFields.refundAddressExtraIdTitle}
|
|
1025
1060
|
titleNoticeText={translations.addressFields.refundAddressExtraIdNotice}
|
|
1026
1061
|
titleNoticePosition={TOOLTIP_POSITIONS.TOP_LEFT}
|
|
1027
1062
|
>
|
|
@@ -1039,18 +1074,6 @@ export const SwapForm = ({
|
|
|
1039
1074
|
</div>
|
|
1040
1075
|
) : null}
|
|
1041
1076
|
|
|
1042
|
-
{displayRateSelector ? (
|
|
1043
|
-
<div className={s["swap-form-rate-selector"]}>
|
|
1044
|
-
<RateSelector
|
|
1045
|
-
isFixed={isFixedRate.current ?? IS_FIXED_BY_DEFAULT}
|
|
1046
|
-
setIsFixed={!isLoading.current ? handleRateModeChanged : () => {}}
|
|
1047
|
-
translations={translations.rateSelector}
|
|
1048
|
-
/>
|
|
1049
|
-
</div>
|
|
1050
|
-
) : (
|
|
1051
|
-
""
|
|
1052
|
-
)}
|
|
1053
|
-
|
|
1054
1077
|
{validationContent ? (
|
|
1055
1078
|
<div className={s["swap-form-validation-text"]}>
|
|
1056
1079
|
<Validation text={validationContent} />
|
|
@@ -1148,7 +1171,12 @@ SwapForm.propTypes = {
|
|
|
1148
1171
|
fiatCurrencyCode: PropTypes.oneOfType([PropTypes.string, null]),
|
|
1149
1172
|
fiatCurrencyDecimals: PropTypes.oneOfType([PropTypes.number, null]),
|
|
1150
1173
|
formHasFiat: PropTypes.bool,
|
|
1174
|
+
termsOfUseUrl: PropTypes.oneOfType([PropTypes.string, null]),
|
|
1175
|
+
privacyPolicyUrl: PropTypes.oneOfType([PropTypes.string, null]),
|
|
1176
|
+
recipientAddressExtraIdName: PropTypes.string,
|
|
1177
|
+
refundAddressExtraIdName: PropTypes.string,
|
|
1151
1178
|
translations: PropTypes.object,
|
|
1179
|
+
validateAddressByTicker: PropTypes.func,
|
|
1152
1180
|
swapSeparatorIconSrc: PropTypes.string.isRequired,
|
|
1153
1181
|
swapButtonAlwaysActive: PropTypes.bool,
|
|
1154
1182
|
};
|
|
@@ -1196,5 +1224,8 @@ SwapForm.defaultProps = {
|
|
|
1196
1224
|
fiatCurrencyCode: null,
|
|
1197
1225
|
fiatCurrencyDecimals: null,
|
|
1198
1226
|
formHasFiat: true,
|
|
1227
|
+
termsOfUseUrl: null,
|
|
1228
|
+
privacyPolicyUrl: null,
|
|
1229
|
+
validateAddressByTicker: ticker => false,
|
|
1199
1230
|
swapButtonAlwaysActive: false,
|
|
1200
1231
|
};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for rabbit-ui-kit/src/swaps-lib/external-apis</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../../index.html">All files</a> rabbit-ui-kit/src/swaps-lib/external-apis</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">73.41% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>685/933</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">97.22% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>210/216</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">29.41% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>10/34</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">73.41% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>685/933</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line medium'></div>
|
|
65
|
-
<div class="pad1">
|
|
66
|
-
<table class="coverage-summary">
|
|
67
|
-
<thead>
|
|
68
|
-
<tr>
|
|
69
|
-
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
-
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
-
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
-
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
-
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
-
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
-
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
-
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
-
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
-
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
-
</tr>
|
|
80
|
-
</thead>
|
|
81
|
-
<tbody><tr>
|
|
82
|
-
<td class="file high" data-value="swapProvider.js"><a href="swapProvider.js.html">swapProvider.js</a></td>
|
|
83
|
-
<td data-value="82.29" class="pic high">
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width: 82%"></div><div class="cover-empty" style="width: 18%"></div></div>
|
|
85
|
-
</td>
|
|
86
|
-
<td data-value="82.29" class="pct high">82.29%</td>
|
|
87
|
-
<td data-value="209" class="abs high">172/209</td>
|
|
88
|
-
<td data-value="100" class="pct high">100%</td>
|
|
89
|
-
<td data-value="1" class="abs high">1/1</td>
|
|
90
|
-
<td data-value="7.14" class="pct low">7.14%</td>
|
|
91
|
-
<td data-value="14" class="abs low">1/14</td>
|
|
92
|
-
<td data-value="82.29" class="pct high">82.29%</td>
|
|
93
|
-
<td data-value="209" class="abs high">172/209</td>
|
|
94
|
-
</tr>
|
|
95
|
-
|
|
96
|
-
<tr>
|
|
97
|
-
<td class="file medium" data-value="swapspaceSwapProvider.js"><a href="swapspaceSwapProvider.js.html">swapspaceSwapProvider.js</a></td>
|
|
98
|
-
<td data-value="70.85" class="pic medium">
|
|
99
|
-
<div class="chart"><div class="cover-fill" style="width: 70%"></div><div class="cover-empty" style="width: 30%"></div></div>
|
|
100
|
-
</td>
|
|
101
|
-
<td data-value="70.85" class="pct medium">70.85%</td>
|
|
102
|
-
<td data-value="724" class="abs medium">513/724</td>
|
|
103
|
-
<td data-value="97.2" class="pct high">97.2%</td>
|
|
104
|
-
<td data-value="215" class="abs high">209/215</td>
|
|
105
|
-
<td data-value="45" class="pct low">45%</td>
|
|
106
|
-
<td data-value="20" class="abs low">9/20</td>
|
|
107
|
-
<td data-value="70.85" class="pct medium">70.85%</td>
|
|
108
|
-
<td data-value="724" class="abs medium">513/724</td>
|
|
109
|
-
</tr>
|
|
110
|
-
|
|
111
|
-
</tbody>
|
|
112
|
-
</table>
|
|
113
|
-
</div>
|
|
114
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
115
|
-
</div><!-- /wrapper -->
|
|
116
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
|
-
Code coverage generated by
|
|
118
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2024-06-03T13:53:18.820Z
|
|
120
|
-
</div>
|
|
121
|
-
<script src="../../../../prettify.js"></script>
|
|
122
|
-
<script>
|
|
123
|
-
window.onload = function () {
|
|
124
|
-
prettyPrint();
|
|
125
|
-
};
|
|
126
|
-
</script>
|
|
127
|
-
<script src="../../../../sorter.js"></script>
|
|
128
|
-
<script src="../../../../block-navigation.js"></script>
|
|
129
|
-
</body>
|
|
130
|
-
</html>
|
|
131
|
-
|