@rabbitio/ui-kit 1.0.0-beta.53 → 1.0.0-beta.54
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 +36 -15
- package/coverage/coverage-final.json +9 -8
- package/coverage/index.html +30 -15
- package/coverage/ui-kit/index.html +1 -1
- package/coverage/ui-kit/index.js.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/arrowIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/arrowTosca.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/arrowWhite.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/darkRectangle.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/determinedError.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/failedValidationIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/index.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/infoIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/successfulValidationIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/assets/wrappedImages/walletIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/common/adapters/axiosAdapter.js.html +1 -1
- package/coverage/ui-kit/src/common/adapters/index.html +1 -1
- package/coverage/ui-kit/src/common/adapters/qrUtils.js.html +1 -1
- package/coverage/ui-kit/src/common/amountUtils.js.html +1 -1
- package/coverage/ui-kit/src/common/errorUtils.js.html +1 -1
- package/coverage/ui-kit/src/common/external-apis/apiGroups.js.html +1 -1
- package/coverage/ui-kit/src/common/external-apis/index.html +1 -1
- package/coverage/ui-kit/src/common/external-apis/ipAddressProviders.js.html +1 -1
- package/coverage/ui-kit/src/common/fiatCurrenciesService.js.html +1 -1
- package/coverage/ui-kit/src/common/index.html +1 -1
- package/coverage/ui-kit/src/common/models/blockchain.js.html +1 -1
- package/coverage/ui-kit/src/common/models/coin.js.html +1 -1
- package/coverage/ui-kit/src/common/models/index.html +1 -1
- package/coverage/ui-kit/src/common/models/protocol.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/cache.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/emailAPI.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/iconsUtils.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/index.html +1 -1
- package/coverage/ui-kit/src/common/utils/logging/index.html +1 -1
- package/coverage/ui-kit/src/common/utils/logging/logger.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/logging/logsStorage.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/postponeExecution.js.html +1 -1
- package/coverage/ui-kit/src/common/utils/safeStringify.js.html +1 -1
- package/coverage/ui-kit/src/components/atoms/AssetIcon/AssetIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/AssetIcon/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/AssetSelection/AssetSelection.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/AssetSelection/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/BackgroundTitle/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/InformationMessage/InformationMessage.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/InformationMessage/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Input/Input.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Input/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/LoadingDots/LoadingDots.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/LoadingDots/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/NoticeIcon/NoticeIcon.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/NoticeIcon/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/QrCode/QrCode.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/QrCode/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/SupportChat/SupportChat.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/SupportChat/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Textarea/Textarea.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Textarea/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/TitleBox/TitleBox.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/TitleBox/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Tooltip/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/TwoLinesOfText/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Validation/Validation.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/Validation/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/Button/Button.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/Button/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/Close/Close.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/Close/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/LinkButton/LinkButton.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/LinkButton/index.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +1 -1
- package/coverage/ui-kit/src/components/atoms/buttons/RadioButtonWithText/index.html +1 -1
- package/coverage/ui-kit/src/components/hooks/index.html +1 -1
- package/coverage/ui-kit/src/components/hooks/useCallHandlingErrors.js.html +1 -1
- package/coverage/ui-kit/src/components/hooks/useReferredState.js.html +1 -1
- package/coverage/ui-kit/src/components/molecules/AmountInput/AmountInput.jsx.html +1 -1
- package/coverage/ui-kit/src/components/molecules/AmountInput/index.html +1 -1
- package/coverage/ui-kit/src/components/molecules/CoinPicker/CoinPicker.jsx.html +1 -1
- package/coverage/ui-kit/src/components/molecules/CoinPicker/index.html +1 -1
- package/coverage/ui-kit/src/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +1 -1
- package/coverage/ui-kit/src/components/molecules/LineWithIconLink/index.html +1 -1
- package/coverage/ui-kit/src/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +1 -1
- package/coverage/ui-kit/src/components/molecules/TitledLineWithIconLink/index.html +1 -1
- package/coverage/ui-kit/src/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +1 -1
- package/coverage/ui-kit/src/components/organisms/CoinPickerDialogStep/index.html +1 -1
- package/coverage/ui-kit/src/components/organisms/Dialog/Dialog.jsx.html +1 -1
- package/coverage/ui-kit/src/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +1 -1
- package/coverage/ui-kit/src/components/organisms/Dialog/DialogButtons/index.html +1 -1
- package/coverage/ui-kit/src/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +12 -6
- package/coverage/ui-kit/src/components/organisms/Dialog/DialogStep/index.html +5 -5
- package/coverage/ui-kit/src/components/organisms/Dialog/index.html +1 -1
- package/coverage/ui-kit/src/components/organisms/SwapForm/SwapForm.jsx.html +1 -1
- package/coverage/ui-kit/src/components/organisms/SwapForm/index.html +1 -1
- package/coverage/ui-kit/src/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +1 -1
- package/coverage/ui-kit/src/components/templates/DeterminedErrorDialogStep/index.html +1 -1
- package/coverage/ui-kit/src/components/utils/index.html +1 -1
- package/coverage/ui-kit/src/components/utils/inputValueProviders.js.html +1 -1
- package/coverage/ui-kit/src/components/utils/textUtils.js.html +1 -1
- package/coverage/ui-kit/src/components/utils/uiUtils.js.html +1 -1
- package/coverage/ui-kit/src/components/utils/urlQueryUtils.js.html +1 -1
- package/coverage/ui-kit/src/constants/atoms/Close/close.jsx.html +1 -1
- package/coverage/ui-kit/src/constants/atoms/Close/index.html +1 -1
- package/coverage/ui-kit/src/constants/atoms/LinkButton/index.html +1 -1
- package/coverage/ui-kit/src/constants/atoms/LinkButton/linkButton.jsx.html +1 -1
- package/coverage/ui-kit/src/constants/atoms/Tooltip/index.html +1 -1
- package/coverage/ui-kit/src/constants/atoms/Tooltip/tooltip.jsx.html +1 -1
- package/coverage/ui-kit/src/constants/globalConstants.jsx.html +97 -0
- package/coverage/ui-kit/src/constants/index.html +116 -0
- package/coverage/ui-kit/src/constants/organisms/dialog/DialogStep/dialogStep.js.html +1 -1
- package/coverage/ui-kit/src/constants/organisms/dialog/DialogStep/index.html +1 -1
- package/coverage/ui-kit/src/constants/organisms/dialog/dialog.js.html +1 -1
- package/coverage/ui-kit/src/constants/organisms/dialog/index.html +1 -1
- package/coverage/ui-kit/src/index.html +5 -5
- package/coverage/ui-kit/src/index.js.html +16 -4
- package/coverage/ui-kit/src/robustExteranlApiCallerService/cacheAndConcurrentRequestsResolver.js.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/cachedRobustExternalApiCallerService.js.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/cancelProcessing.js.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/concurrentCalculationsMetadataHolder.js.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/externalApiProvider.js.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/externalServicesStatsCollector.js.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/index.html +1 -1
- package/coverage/ui-kit/src/robustExteranlApiCallerService/robustExternalAPICallerService.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/external-apis/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/baseSwapCreationInfo.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/existingSwap.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/models/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/services/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/services/publicSwapService.js.html +3 -3
- package/coverage/ui-kit/src/swaps-lib/utils/index.html +1 -1
- package/coverage/ui-kit/src/swaps-lib/utils/swapUtils.js.html +1 -1
- package/coverage/ui-kit/stories/atoms/BackgroundTitle.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/LinesOfText.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/LoadingDots.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/QrCode.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/Validation.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/Button.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/Close.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/LinkButton.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/atoms/buttons/index.html +1 -1
- package/coverage/ui-kit/stories/atoms/index.html +1 -1
- package/coverage/ui-kit/stories/molecules/LineWithIconLink.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/TitledLineWithIconLink.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/molecules/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/Dialog.stories.jsx.html +19 -4
- package/coverage/ui-kit/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogButtons/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/DialogStep/index.html +1 -1
- package/coverage/ui-kit/stories/organisms/Dialog/index.html +5 -5
- package/coverage/ui-kit/stories/stubs/exampleContent.jsx.html +1 -1
- package/coverage/ui-kit/stories/stubs/index.html +1 -1
- package/coverage/ui-kit/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +1 -1
- package/coverage/ui-kit/stories/templates/index.html +1 -1
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +32 -17
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +8 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +8 -5
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +9 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/TwoLinesOfText/lines-of-text.module.scss +2 -0
- 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/constants/globalConstants.jsx +4 -0
- package/src/index.js +4 -0
- package/src/swaps-lib/services/publicSwapService.js +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -2668,7 +2668,7 @@ const DialogStep = ({
|
|
|
2668
2668
|
fallbackSrc
|
|
2669
2669
|
} = titleIconCoin && _coinToIconPaths ? _coinToIconPaths(titleIconCoin) : {};
|
|
2670
2670
|
return /*#__PURE__*/React.createElement("div", {
|
|
2671
|
-
className: s$e[DIALOG_STEP_CLASS] + " " + s$e[stepClass] + (!isMultiStep || !(animationConfiguration != null && animationConfiguration.currentStepAnimationEnabled) ? " " + s$e["animation-disabled"] : "") + (!isMultiStep ? " " + s$e["single-step"] : "") + (backgroundImage || backgroundImageMobile ? " " + s$e["with-background"] : ""),
|
|
2671
|
+
className: s$e[DIALOG_STEP_CLASS] + " " + s$e[stepClass] + (!isMultiStep || !(animationConfiguration != null && animationConfiguration.currentStepAnimationEnabled) ? " " + s$e["animation-disabled"] : "") + (!isMultiStep ? " " + s$e["single-step"] : "") + (backgroundImage || backgroundImageMobile ? " " + s$e["with-background"] : "") + (inline ? " " + s$e["inline"] : ""),
|
|
2672
2672
|
ref: currentStepRef,
|
|
2673
2673
|
onTransitionEnd: handleTransitionEnd,
|
|
2674
2674
|
style: height ? {
|
|
@@ -2685,7 +2685,7 @@ const DialogStep = ({
|
|
|
2685
2685
|
className: s$e["dialog-step-background-image-mobile"] + " " + stepClass + (!backgroundImage ? " " + s$e["primary"] : ""),
|
|
2686
2686
|
alt: "dialog step background"
|
|
2687
2687
|
}) : null) : null, /*#__PURE__*/React.createElement("div", {
|
|
2688
|
-
className: s$e["dialog-step-wrapper"] + " " + s$e[stepClass] + " " + s$e[wrapperDirectionSubclass]
|
|
2688
|
+
className: s$e["dialog-step-wrapper"] + " " + s$e[stepClass] + " " + s$e[wrapperDirectionSubclass] + (inline ? " " + s$e["inline"] : "")
|
|
2689
2689
|
}, isMultiStep && showCornerButtonForStep(_stepName, _showCornerBackButton) ? /*#__PURE__*/React.createElement("div", {
|
|
2690
2690
|
className: s$e["dialog-step-wrapper-back-button"]
|
|
2691
2691
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
@@ -5679,6 +5679,9 @@ const CoinPickerDialogStep = ({
|
|
|
5679
5679
|
}));
|
|
5680
5680
|
};
|
|
5681
5681
|
|
|
5682
|
+
const FALLBACK_ASSET_ICON_URL = "https://rabbit.io/asset-icons/fallback.svg";
|
|
5683
|
+
const DEFAULT_CRYPTO_DECIMAL_COUNT = 8;
|
|
5684
|
+
|
|
5682
5685
|
const PARAMETER_VALUES_SEPARATOR = "|*|"; // Sting that with high probability will not be in the user's data
|
|
5683
5686
|
|
|
5684
5687
|
/**
|
|
@@ -8523,8 +8526,8 @@ class PublicSwapService {
|
|
|
8523
8526
|
var _await$this$_swapProv, _await$this$_swapProv2, _result$swapCreationI, _result$swapCreationI2;
|
|
8524
8527
|
const coinUsdtRate = withoutFiat ? null : (_await$this$_swapProv = (_await$this$_swapProv2 = await this._swapProvider.getCoinToUSDTRate(fromCoin)) == null ? void 0 : _await$this$_swapProv2.rate) != null ? _await$this$_swapProv : null;
|
|
8525
8528
|
const details = await this._swapProvider.getSwapInfo(fromCoin, toCoin, fromAmountCoins, fixed, coinUsdtRate);
|
|
8526
|
-
const min = details.
|
|
8527
|
-
const max = details.
|
|
8529
|
+
const min = details.smallestMin;
|
|
8530
|
+
const max = details.greatestMax;
|
|
8528
8531
|
let fiatMin = null,
|
|
8529
8532
|
fiatMax = null;
|
|
8530
8533
|
if (coinUsdtRate != null) {
|
|
@@ -8880,5 +8883,5 @@ PublicSwapService.PUBLIC_SWAP_DETAILS_FAIL_REASONS = {
|
|
|
8880
8883
|
};
|
|
8881
8884
|
PublicSwapService._fiatDecimalsCount = FiatCurrenciesService.getCurrencyDecimalCountByCode("USD");
|
|
8882
8885
|
|
|
8883
|
-
export { AmountInput, AmountUtils, ApiGroup, ApiGroups, AssetIcon, AssetSelection, AxiosAdapter, BackgroundTitle, BaseSwapCreationInfo, Blockchain, Button, CLOSE_COLORS, COIN_PICKER_MODES, Cache, CacheAndConcurrentRequestsResolver, CachedRobustExternalApiCallerService, CancelProcessing, Close, Coin, CoinPicker, CoinPickerDialogStep, ConcurrentCalculationsMetadataHolder, DIALOG_SIZES, DIALOG_STEP_CLASS, DeterminedErrorDialogStep, Dialog, DialogButtons, DialogStep, EmailsApi, ExistingSwap, ExistingSwapWithFiatData, ExternalApiProvider, FiatCurrenciesService, ICON_ROTATE_OPTIONS, InformationMessage, Input, InputValuesProviders, IpAddressProvider, LineWithIconLink, LinesOfText, LinkButton, LoadingDots, Logger, LogsStorage, NoticeIcon, Protocol, PublicSwapService, QrCode, RadioButtonWithText, RobustExternalAPICallerService, SupportChat, SwapForm, SwapProvider, SwapUtils, SwapspaceSwapProvider, TOOLTIP_POSITIONS, Textarea, TitleBox, TitledLineWithIconLink, Tooltip, Validation, copyBrowserTextToClipboard, getQueryParameterSingleValue, getQueryParameterValues, handleClickOutside, improveAndRethrow, logErrorOrOutputToConsole, postponeExecution, removeQueryParameterAndValues, safeStringify, saveQueryParameterAndValues, useCallHandlingErrors, useReferredState };
|
|
8886
|
+
export { AmountInput, AmountUtils, ApiGroup, ApiGroups, AssetIcon, AssetSelection, AxiosAdapter, BackgroundTitle, BaseSwapCreationInfo, Blockchain, Button, CLOSE_COLORS, COIN_PICKER_MODES, Cache, CacheAndConcurrentRequestsResolver, CachedRobustExternalApiCallerService, CancelProcessing, Close, Coin, CoinPicker, CoinPickerDialogStep, ConcurrentCalculationsMetadataHolder, DEFAULT_CRYPTO_DECIMAL_COUNT, DIALOG_SIZES, DIALOG_STEP_CLASS, DeterminedErrorDialogStep, Dialog, DialogButtons, DialogStep, EmailsApi, ExistingSwap, ExistingSwapWithFiatData, ExternalApiProvider, FALLBACK_ASSET_ICON_URL, FiatCurrenciesService, ICON_ROTATE_OPTIONS, InformationMessage, Input, InputValuesProviders, IpAddressProvider, LineWithIconLink, LinesOfText, LinkButton, LoadingDots, Logger, LogsStorage, NoticeIcon, Protocol, PublicSwapService, QrCode, RadioButtonWithText, RobustExternalAPICallerService, SupportChat, SwapForm, SwapProvider, SwapUtils, SwapspaceSwapProvider, TOOLTIP_POSITIONS, Textarea, TitleBox, TitledLineWithIconLink, Tooltip, Validation, copyBrowserTextToClipboard, getQueryParameterSingleValue, getQueryParameterValues, handleClickOutside, improveAndRethrow, logErrorOrOutputToConsole, postponeExecution, removeQueryParameterAndValues, safeStringify, saveQueryParameterAndValues, useCallHandlingErrors, useReferredState };
|
|
8884
8887
|
//# sourceMappingURL=index.modern.js.map
|