@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.module.js
CHANGED
|
@@ -2942,7 +2942,7 @@ var DialogStep = function DialogStep(_ref) {
|
|
|
2942
2942
|
assetIconProtocolSrc = _ref2.assetIconProtocolSrc,
|
|
2943
2943
|
fallbackSrc = _ref2.fallbackSrc;
|
|
2944
2944
|
return /*#__PURE__*/React.createElement("div", {
|
|
2945
|
-
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"] : ""),
|
|
2945
|
+
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"] : ""),
|
|
2946
2946
|
ref: currentStepRef,
|
|
2947
2947
|
onTransitionEnd: handleTransitionEnd,
|
|
2948
2948
|
style: height ? {
|
|
@@ -2959,7 +2959,7 @@ var DialogStep = function DialogStep(_ref) {
|
|
|
2959
2959
|
className: s$e["dialog-step-background-image-mobile"] + " " + stepClass + (!backgroundImage ? " " + s$e["primary"] : ""),
|
|
2960
2960
|
alt: "dialog step background"
|
|
2961
2961
|
}) : null) : null, /*#__PURE__*/React.createElement("div", {
|
|
2962
|
-
className: s$e["dialog-step-wrapper"] + " " + s$e[stepClass] + " " + s$e[wrapperDirectionSubclass]
|
|
2962
|
+
className: s$e["dialog-step-wrapper"] + " " + s$e[stepClass] + " " + s$e[wrapperDirectionSubclass] + (inline ? " " + s$e["inline"] : "")
|
|
2963
2963
|
}, isMultiStep && showCornerButtonForStep(stepName, showCornerBackButton) ? /*#__PURE__*/React.createElement("div", {
|
|
2964
2964
|
className: s$e["dialog-step-wrapper-back-button"]
|
|
2965
2965
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
@@ -6454,6 +6454,9 @@ var CoinPickerDialogStep = function CoinPickerDialogStep(_ref) {
|
|
|
6454
6454
|
}));
|
|
6455
6455
|
};
|
|
6456
6456
|
|
|
6457
|
+
var FALLBACK_ASSET_ICON_URL = "https://rabbit.io/asset-icons/fallback.svg";
|
|
6458
|
+
var DEFAULT_CRYPTO_DECIMAL_COUNT = 8;
|
|
6459
|
+
|
|
6457
6460
|
var PARAMETER_VALUES_SEPARATOR = "|*|"; // Sting that with high probability will not be in the user's data
|
|
6458
6461
|
|
|
6459
6462
|
/**
|
|
@@ -10685,8 +10688,8 @@ var PublicSwapService = /*#__PURE__*/function () {
|
|
|
10685
10688
|
var coinUsdtRate = withoutFiat ? _this7$_swapProvider$ : (_this7$_swapProvider$2 = _this7$_swapProvider$ == null ? void 0 : _this7$_swapProvider$.rate) != null ? _this7$_swapProvider$2 : null;
|
|
10686
10689
|
return Promise.resolve(_this7._swapProvider.getSwapInfo(fromCoin, toCoin, fromAmountCoins, fixed, coinUsdtRate)).then(function (details) {
|
|
10687
10690
|
var _result$swapCreationI, _result$swapCreationI2;
|
|
10688
|
-
var min = details.
|
|
10689
|
-
var max = details.
|
|
10691
|
+
var min = details.smallestMin;
|
|
10692
|
+
var max = details.greatestMax;
|
|
10690
10693
|
var fiatMin = null,
|
|
10691
10694
|
fiatMax = null;
|
|
10692
10695
|
if (coinUsdtRate != null) {
|
|
@@ -11113,5 +11116,5 @@ PublicSwapService.PUBLIC_SWAP_DETAILS_FAIL_REASONS = {
|
|
|
11113
11116
|
};
|
|
11114
11117
|
PublicSwapService._fiatDecimalsCount = FiatCurrenciesService.getCurrencyDecimalCountByCode("USD");
|
|
11115
11118
|
|
|
11116
|
-
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 };
|
|
11119
|
+
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 };
|
|
11117
11120
|
//# sourceMappingURL=index.module.js.map
|