@getpara/react-sdk-lite 2.0.0-alpha.33
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/dist/chunk-MMUBH76A.js +59 -0
- package/dist/cli/cli.mjs +51 -0
- package/dist/css/modal.css +13 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +10 -0
- package/dist/modal/ParaModal.d.ts +2 -0
- package/dist/modal/ParaModal.js +308 -0
- package/dist/modal/components/Account/Account.d.ts +5 -0
- package/dist/modal/components/Account/Account.js +148 -0
- package/dist/modal/components/Account/AccountProfile.d.ts +1 -0
- package/dist/modal/components/Account/AccountProfile.js +168 -0
- package/dist/modal/components/Account/AccountProfileLink.d.ts +1 -0
- package/dist/modal/components/Account/AccountProfileLink.js +206 -0
- package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +1 -0
- package/dist/modal/components/Account/AccountProfileLinkOptions.js +111 -0
- package/dist/modal/components/Account/AccountProfileUnlink.d.ts +1 -0
- package/dist/modal/components/Account/AccountProfileUnlink.js +47 -0
- package/dist/modal/components/AddFunds/AddFunds.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFunds.js +69 -0
- package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFundsAsset.js +125 -0
- package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFundsAwaiting.js +78 -0
- package/dist/modal/components/AddFunds/AddFundsContext.d.ts +31 -0
- package/dist/modal/components/AddFunds/AddFundsContext.js +160 -0
- package/dist/modal/components/AddFunds/AddFundsDone.d.ts +6 -0
- package/dist/modal/components/AddFunds/AddFundsDone.js +49 -0
- package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFundsProvider.js +109 -0
- package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFundsReceive.js +83 -0
- package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +1 -0
- package/dist/modal/components/AddFunds/AddFundsSettings.js +237 -0
- package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +2 -0
- package/dist/modal/components/AddFunds/MoonPayEmbed.js +7 -0
- package/dist/modal/components/AddFunds/common.d.ts +19 -0
- package/dist/modal/components/AddFunds/common.js +24 -0
- package/dist/modal/components/AddFunds/index.d.ts +3 -0
- package/dist/modal/components/AddFunds/index.js +4 -0
- package/dist/modal/components/AuthInput/AuthInput.d.ts +20 -0
- package/dist/modal/components/AuthInput/AuthInput.js +277 -0
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +7 -0
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +33 -0
- package/dist/modal/components/AuthInput/phoneMasks.d.ts +247 -0
- package/dist/modal/components/AuthInput/phoneMasks.js +253 -0
- package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +9 -0
- package/dist/modal/components/AuthMainStep/AuthMainStep.js +50 -0
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +9 -0
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +179 -0
- package/dist/modal/components/AuthOptions/AuthOptions.d.ts +9 -0
- package/dist/modal/components/AuthOptions/AuthOptions.js +85 -0
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +1 -0
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +18 -0
- package/dist/modal/components/AwaitingIFrameStep/AwaitingIFrameStep.d.ts +1 -0
- package/dist/modal/components/AwaitingIFrameStep/AwaitingIFrameStep.js +12 -0
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +1 -0
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +10 -0
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +1 -0
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +18 -0
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +5 -0
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +49 -0
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +1 -0
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +62 -0
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +1 -0
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +48 -0
- package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +6 -0
- package/dist/modal/components/Body/AnimatedHeightWrapper.js +29 -0
- package/dist/modal/components/Body/Body.d.ts +11 -0
- package/dist/modal/components/Body/Body.js +354 -0
- package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +1 -0
- package/dist/modal/components/ChainSwitch/ChainSwitch.js +95 -0
- package/dist/modal/components/ChainSwitch/config.d.ts +7 -0
- package/dist/modal/components/ChainSwitch/config.js +17 -0
- package/dist/modal/components/Controls/Controls.d.ts +5 -0
- package/dist/modal/components/Controls/Controls.js +78 -0
- package/dist/modal/components/Controls/Selects.d.ts +2 -0
- package/dist/modal/components/Controls/Selects.js +173 -0
- package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts +1 -0
- package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js +75 -0
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +8 -0
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +175 -0
- package/dist/modal/components/ExternalWalletStep/config.d.ts +7 -0
- package/dist/modal/components/ExternalWalletStep/config.js +17 -0
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +1 -0
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +39 -0
- package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +1 -0
- package/dist/modal/components/ExternalWallets/ExternalWallets.js +182 -0
- package/dist/modal/components/Footer/Footer.d.ts +1 -0
- package/dist/modal/components/Footer/Footer.js +95 -0
- package/dist/modal/components/Header/Header.d.ts +1 -0
- package/dist/modal/components/Header/Header.js +43 -0
- package/dist/modal/components/Header/hooks/useStepTitle.d.ts +3 -0
- package/dist/modal/components/Header/hooks/useStepTitle.js +62 -0
- package/dist/modal/components/Hero/Hero.d.ts +1 -0
- package/dist/modal/components/Hero/Hero.js +116 -0
- package/dist/modal/components/IFrameStep/IFrameStep.d.ts +1 -0
- package/dist/modal/components/IFrameStep/IFrameStep.js +70 -0
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +5 -0
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +44 -0
- package/dist/modal/components/ModalContent/ModalContent.d.ts +10 -0
- package/dist/modal/components/ModalContent/ModalContent.js +88 -0
- package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +3 -0
- package/dist/modal/components/OAuth/FarcasterOAuthStep.js +31 -0
- package/dist/modal/components/OAuth/OAuth.d.ts +6 -0
- package/dist/modal/components/OAuth/OAuth.js +81 -0
- package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +8 -0
- package/dist/modal/components/OAuth/TelegramOAuthStep.js +74 -0
- package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +1 -0
- package/dist/modal/components/OnRampComponents/AddingFunds.js +23 -0
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +9 -0
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +77 -0
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +6 -0
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +107 -0
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +5 -0
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +132 -0
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +5 -0
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +27 -0
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +12 -0
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +160 -0
- package/dist/modal/components/Waiting/Waiting.d.ts +6 -0
- package/dist/modal/components/Waiting/Waiting.js +17 -0
- package/dist/modal/components/WalletCard/PartnerIcon.d.ts +6 -0
- package/dist/modal/components/WalletCard/PartnerIcon.js +34 -0
- package/dist/modal/components/WalletCard/WalletCard.d.ts +18 -0
- package/dist/modal/components/WalletCard/WalletCard.js +128 -0
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +6 -0
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +83 -0
- package/dist/modal/components/common.d.ts +59 -0
- package/dist/modal/components/common.js +261 -0
- package/dist/modal/components/index.d.ts +1 -0
- package/dist/modal/components/index.js +2 -0
- package/dist/modal/constants/constants.d.ts +40 -0
- package/dist/modal/constants/constants.js +142 -0
- package/dist/modal/constants/defaults.d.ts +5 -0
- package/dist/modal/constants/defaults.js +10 -0
- package/dist/modal/constants/oAuthLogos.d.ts +17 -0
- package/dist/modal/constants/oAuthLogos.js +158 -0
- package/dist/modal/constants/walletTypeConfig.d.ts +6 -0
- package/dist/modal/constants/walletTypeConfig.js +13 -0
- package/dist/modal/hooks/useGoBack.d.ts +1 -0
- package/dist/modal/hooks/useGoBack.js +43 -0
- package/dist/modal/hooks/useTelegramLogin.d.ts +12 -0
- package/dist/modal/hooks/useTelegramLogin.js +65 -0
- package/dist/modal/index.d.ts +8 -0
- package/dist/modal/index.js +29 -0
- package/dist/modal/stores/index.d.ts +1 -0
- package/dist/modal/stores/index.js +2 -0
- package/dist/modal/stores/modal/actions.d.ts +3 -0
- package/dist/modal/stores/modal/actions.js +139 -0
- package/dist/modal/stores/modal/useModalStore.d.ts +105 -0
- package/dist/modal/stores/modal/useModalStore.js +75 -0
- package/dist/modal/types/commonTypes.d.ts +6 -0
- package/dist/modal/types/commonTypes.js +1 -0
- package/dist/modal/types/modalProps.d.ts +129 -0
- package/dist/modal/types/modalProps.js +12 -0
- package/dist/modal/utils/authInputHelpers.d.ts +5 -0
- package/dist/modal/utils/authInputHelpers.js +41 -0
- package/dist/modal/utils/authLayoutHelpers.d.ts +3 -0
- package/dist/modal/utils/authLayoutHelpers.js +8 -0
- package/dist/modal/utils/countryCodes.d.ts +8 -0
- package/dist/modal/utils/countryCodes.js +45 -0
- package/dist/modal/utils/getMailtoLink.d.ts +1 -0
- package/dist/modal/utils/getMailtoLink.js +10 -0
- package/dist/modal/utils/getTileButtonFlex.d.ts +1 -0
- package/dist/modal/utils/getTileButtonFlex.js +20 -0
- package/dist/modal/utils/getWalletDisplayName.d.ts +5 -0
- package/dist/modal/utils/getWalletDisplayName.js +22 -0
- package/dist/modal/utils/isPasskeySupported.d.ts +1 -0
- package/dist/modal/utils/isPasskeySupported.js +15 -0
- package/dist/modal/utils/openPopup.d.ts +6 -0
- package/dist/modal/utils/openPopup.js +60 -0
- package/dist/modal/utils/routeMobileExternalWallet.d.ts +1 -0
- package/dist/modal/utils/routeMobileExternalWallet.js +31 -0
- package/dist/modal/utils/steps.d.ts +136 -0
- package/dist/modal/utils/steps.js +279 -0
- package/dist/modal/utils/stringFormatters.d.ts +5 -0
- package/dist/modal/utils/stringFormatters.js +19 -0
- package/dist/modal/utils/validateOnRampConfig.d.ts +5 -0
- package/dist/modal/utils/validateOnRampConfig.js +32 -0
- package/dist/package.json +6 -0
- package/dist/provider/ParaProvider.d.ts +4 -0
- package/dist/provider/ParaProvider.js +140 -0
- package/dist/provider/actions/getEmbeddedAccount.d.ts +26 -0
- package/dist/provider/actions/getEmbeddedAccount.js +57 -0
- package/dist/provider/actions/getWallet.d.ts +5 -0
- package/dist/provider/actions/getWallet.js +18 -0
- package/dist/provider/actions/index.d.ts +47 -0
- package/dist/provider/actions/index.js +79 -0
- package/dist/provider/actions/utils.d.ts +4 -0
- package/dist/provider/actions/utils.js +34 -0
- package/dist/provider/components/CosmosWalletWrapper.d.ts +11 -0
- package/dist/provider/components/CosmosWalletWrapper.js +43 -0
- package/dist/provider/components/EvmWalletWrapper.d.ts +12 -0
- package/dist/provider/components/EvmWalletWrapper.js +43 -0
- package/dist/provider/components/ExternalWalletWrapper.d.ts +8 -0
- package/dist/provider/components/ExternalWalletWrapper.js +140 -0
- package/dist/provider/components/SolanaWalletWrapper.d.ts +9 -0
- package/dist/provider/components/SolanaWalletWrapper.js +44 -0
- package/dist/provider/external/getParaCosmosConnector.d.ts +7 -0
- package/dist/provider/external/getParaCosmosConnector.js +19 -0
- package/dist/provider/external/getParaCosmosLib.d.ts +4 -0
- package/dist/provider/external/getParaCosmosLib.js +16 -0
- package/dist/provider/external/getParaEvmConnector.d.ts +7 -0
- package/dist/provider/external/getParaEvmConnector.js +19 -0
- package/dist/provider/external/getParaEvmLib.d.ts +4 -0
- package/dist/provider/external/getParaEvmLib.js +16 -0
- package/dist/provider/external/getParaSolanaConnector.d.ts +7 -0
- package/dist/provider/external/getParaSolanaConnector.js +19 -0
- package/dist/provider/external/getParaSolanaLib.d.ts +4 -0
- package/dist/provider/external/getParaSolanaLib.js +16 -0
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +2 -0
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +8 -0
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +2 -0
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +8 -0
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +2 -0
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +8 -0
- package/dist/provider/hooks/index.d.ts +3 -0
- package/dist/provider/hooks/index.js +4 -0
- package/dist/provider/hooks/mutations/core.d.ts +27 -0
- package/dist/provider/hooks/mutations/core.js +66 -0
- package/dist/provider/hooks/mutations/index.d.ts +3 -0
- package/dist/provider/hooks/mutations/index.js +9 -0
- package/dist/provider/hooks/mutations/useLinkAccount.d.ts +9 -0
- package/dist/provider/hooks/mutations/useLinkAccount.js +18 -0
- package/dist/provider/hooks/mutations/utils.d.ts +12 -0
- package/dist/provider/hooks/mutations/utils.js +90 -0
- package/dist/provider/hooks/queries/core.d.ts +4 -0
- package/dist/provider/hooks/queries/core.js +16 -0
- package/dist/provider/hooks/queries/index.d.ts +5 -0
- package/dist/provider/hooks/queries/index.js +13 -0
- package/dist/provider/hooks/queries/useAccount.d.ts +90 -0
- package/dist/provider/hooks/queries/useAccount.js +141 -0
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +5 -0
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +24 -0
- package/dist/provider/hooks/queries/useParaStatus.d.ts +22 -0
- package/dist/provider/hooks/queries/useParaStatus.js +25 -0
- package/dist/provider/hooks/queries/useWallet.d.ts +5 -0
- package/dist/provider/hooks/queries/useWallet.js +26 -0
- package/dist/provider/hooks/queries/useWalletBalance.d.ts +6 -0
- package/dist/provider/hooks/queries/useWalletBalance.js +55 -0
- package/dist/provider/hooks/queries/utils.d.ts +7 -0
- package/dist/provider/hooks/queries/utils.js +25 -0
- package/dist/provider/hooks/utils/index.d.ts +3 -0
- package/dist/provider/hooks/utils/index.js +10 -0
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +3 -0
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +74 -0
- package/dist/provider/hooks/utils/useClient.d.ts +5 -0
- package/dist/provider/hooks/utils/useClient.js +10 -0
- package/dist/provider/hooks/utils/useEventListeners.d.ts +2 -0
- package/dist/provider/hooks/utils/useEventListeners.js +157 -0
- package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +4 -0
- package/dist/provider/hooks/utils/useFormattedBiometricHints.js +27 -0
- package/dist/provider/hooks/utils/useInternalClient.d.ts +5 -0
- package/dist/provider/hooks/utils/useInternalClient.js +10 -0
- package/dist/provider/hooks/utils/useModal.d.ts +11 -0
- package/dist/provider/hooks/utils/useModal.js +27 -0
- package/dist/provider/hooks/utils/useWalletState.d.ts +15 -0
- package/dist/provider/hooks/utils/useWalletState.js +48 -0
- package/dist/provider/index.d.ts +6 -0
- package/dist/provider/index.js +11 -0
- package/dist/provider/providers/AccountLinkProvider.d.ts +47 -0
- package/dist/provider/providers/AccountLinkProvider.js +452 -0
- package/dist/provider/providers/AuthProvider.d.ts +38 -0
- package/dist/provider/providers/AuthProvider.js +575 -0
- package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +7 -0
- package/dist/provider/providers/CosmosExternalWalletProvider.js +66 -0
- package/dist/provider/providers/EvmExternalWalletProvider.d.ts +7 -0
- package/dist/provider/providers/EvmExternalWalletProvider.js +74 -0
- package/dist/provider/providers/ExternalWalletProvider.d.ts +61 -0
- package/dist/provider/providers/ExternalWalletProvider.js +626 -0
- package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +7 -0
- package/dist/provider/providers/SolanaExternalWalletProvider.js +66 -0
- package/dist/provider/stores/getters.d.ts +4 -0
- package/dist/provider/stores/getters.js +13 -0
- package/dist/provider/stores/setters.d.ts +1 -0
- package/dist/provider/stores/setters.js +7 -0
- package/dist/provider/stores/slices/analytics.d.ts +3 -0
- package/dist/provider/stores/slices/analytics.js +9 -0
- package/dist/provider/stores/slices/client.d.ts +3 -0
- package/dist/provider/stores/slices/client.js +9 -0
- package/dist/provider/stores/slices/config.d.ts +3 -0
- package/dist/provider/stores/slices/config.js +11 -0
- package/dist/provider/stores/slices/externalWallets.d.ts +3 -0
- package/dist/provider/stores/slices/externalWallets.js +46 -0
- package/dist/provider/stores/slices/index.d.ts +5 -0
- package/dist/provider/stores/slices/index.js +6 -0
- package/dist/provider/stores/slices/modal.d.ts +3 -0
- package/dist/provider/stores/slices/modal.js +18 -0
- package/dist/provider/stores/slices/wallet.d.ts +3 -0
- package/dist/provider/stores/slices/wallet.js +13 -0
- package/dist/provider/stores/types.d.ts +86 -0
- package/dist/provider/stores/types.js +1 -0
- package/dist/provider/stores/useStore.d.ts +17 -0
- package/dist/provider/stores/useStore.js +34 -0
- package/dist/provider/types/externalWalletProviders.d.ts +12 -0
- package/dist/provider/types/externalWalletProviders.js +1 -0
- package/dist/provider/types/provider.d.ts +166 -0
- package/dist/provider/types/provider.js +1 -0
- package/dist/provider/types/query.d.ts +3 -0
- package/dist/provider/types/query.js +1 -0
- package/dist/provider/types/utils.d.ts +45 -0
- package/dist/provider/types/utils.js +1 -0
- package/dist/provider/utils/constants.d.ts +5 -0
- package/dist/provider/utils/constants.js +10 -0
- package/dist/provider/utils/paraConfigTypeGuards.d.ts +7 -0
- package/dist/provider/utils/paraConfigTypeGuards.js +13 -0
- package/dist/provider/utils/renameMutations.d.ts +5 -0
- package/dist/provider/utils/renameMutations.js +18 -0
- package/dist/public/Inter-VariableFont_slnt,wght.ttf +0 -0
- package/package.json +63 -0
- package/styles.css/package.json +3 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
import { EMAIL_REGEX } from "../constants/constants.js";
|
|
4
|
+
import { formatPhoneNumber } from "@getpara/web-sdk";
|
|
5
|
+
function isCcMatch(countryCode, option) {
|
|
6
|
+
return countryCode === "+1" ? option.selectedLabel === "US" : option.value === countryCode;
|
|
7
|
+
}
|
|
8
|
+
function validateAuth(auth) {
|
|
9
|
+
switch (true) {
|
|
10
|
+
case "email" in auth:
|
|
11
|
+
if (!EMAIL_REGEX.test(auth.email)) {
|
|
12
|
+
throw new Error("Please enter a valid email address!");
|
|
13
|
+
}
|
|
14
|
+
break;
|
|
15
|
+
case "phone" in auth:
|
|
16
|
+
{
|
|
17
|
+
if (!/^\+1\d{3}555\d{4}$/.test(auth.phone)) {
|
|
18
|
+
const formatted = formatPhoneNumber(auth.phone);
|
|
19
|
+
if (!formatted) {
|
|
20
|
+
throw new Error("Please enter a valid phone number!");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
return auth;
|
|
27
|
+
}
|
|
28
|
+
function validateInput(identifier, countryCode, type) {
|
|
29
|
+
const isEmail = type === "email";
|
|
30
|
+
const isPhone = type === "phone";
|
|
31
|
+
const auth = isEmail ? { email: identifier } : isPhone ? { phone: `${countryCode}${identifier}` } : void 0;
|
|
32
|
+
if (!auth) {
|
|
33
|
+
throw new Error("Please enter a valid email or phone number!");
|
|
34
|
+
}
|
|
35
|
+
return validateAuth(auth);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
isCcMatch,
|
|
39
|
+
validateAuth,
|
|
40
|
+
validateInput
|
|
41
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TAuthLayout } from '../types/modalProps.js';
|
|
2
|
+
export declare const hasExternalWallet: (authLayout: TAuthLayout[]) => "AUTH:FULL" | "AUTH:CONDENSED" | "EXTERNAL:FULL" | "EXTERNAL:CONDENSED" | undefined;
|
|
3
|
+
export declare const hasEmbeddedAuth: (authLayout: TAuthLayout[]) => "AUTH:FULL" | "AUTH:CONDENSED" | "EXTERNAL:FULL" | "EXTERNAL:CONDENSED" | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
const hasExternalWallet = (authLayout) => authLayout.find((layout) => layout.includes("EXTERNAL"));
|
|
4
|
+
const hasEmbeddedAuth = (authLayout) => authLayout.find((layout) => layout.includes("AUTH"));
|
|
5
|
+
export {
|
|
6
|
+
hasEmbeddedAuth,
|
|
7
|
+
hasExternalWallet
|
|
8
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
import { getCountries, getCountryCallingCode } from "libphonenumber-js";
|
|
4
|
+
const excludedCountries = [
|
|
5
|
+
"AC",
|
|
6
|
+
"CG",
|
|
7
|
+
"CI",
|
|
8
|
+
"CV",
|
|
9
|
+
"GF",
|
|
10
|
+
"GP",
|
|
11
|
+
"MF",
|
|
12
|
+
"NC",
|
|
13
|
+
"PM",
|
|
14
|
+
"RE",
|
|
15
|
+
"SD",
|
|
16
|
+
"SH",
|
|
17
|
+
"SJ",
|
|
18
|
+
"TA",
|
|
19
|
+
"VA",
|
|
20
|
+
"WF",
|
|
21
|
+
"XK",
|
|
22
|
+
"YT"
|
|
23
|
+
];
|
|
24
|
+
const generateCountryCodes = () => {
|
|
25
|
+
const countries = getCountries();
|
|
26
|
+
const countryList = countries.filter((country) => !excludedCountries.includes(country)).map((country) => {
|
|
27
|
+
const countryCode = getCountryCallingCode(country);
|
|
28
|
+
const countryName = new Intl.DisplayNames(["en"], { type: "region" }).of(country);
|
|
29
|
+
return {
|
|
30
|
+
label: countryName != null ? countryName : "",
|
|
31
|
+
value: `+${countryCode}`,
|
|
32
|
+
selectedLabel: country,
|
|
33
|
+
icon: country
|
|
34
|
+
};
|
|
35
|
+
}).sort((a, b) => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
return ((_a = a.label) != null ? _a : "").localeCompare((_b = b.label) != null ? _b : "");
|
|
38
|
+
});
|
|
39
|
+
return countryList;
|
|
40
|
+
};
|
|
41
|
+
const countryCodes = generateCountryCodes();
|
|
42
|
+
var countryCodes_default = countryCodes;
|
|
43
|
+
export {
|
|
44
|
+
countryCodes_default as default
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getMailtoLink(email: any, recoveryShare: any): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
function getMailtoLink(email, recoveryShare) {
|
|
4
|
+
const emailBody = `Hello,%0D%0DBelow is your Para Recovery Secret. Keep this safe!%0D%0D${recoveryShare}%0D%0DPlease get in touch via support@getpara.com if you have any questions`;
|
|
5
|
+
const mailText = `mailto:${email}?subject=Para%20Recovery%20Secret&body=${emailBody}`;
|
|
6
|
+
return mailText;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
getMailtoLink
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTileButtonFlex: (index: number, totalItems: number) => "1 1 auto" | "0 0 calc(33.333333% - 5.336px)" | "0 0 calc(50% - 4px)" | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
const getTileButtonFlex = (index, totalItems) => {
|
|
4
|
+
const gapOffset = 8 - 8 * 0.333;
|
|
5
|
+
if (totalItems < 2) {
|
|
6
|
+
return "1 1 auto";
|
|
7
|
+
}
|
|
8
|
+
if (totalItems % 3 === 0) {
|
|
9
|
+
return `0 0 calc(33.333333% - ${gapOffset}px)`;
|
|
10
|
+
}
|
|
11
|
+
if (totalItems % 3 === 1) {
|
|
12
|
+
return index < 4 ? "0 0 calc(50% - 4px)" : `0 0 calc(33.333333% - ${gapOffset}px)`;
|
|
13
|
+
}
|
|
14
|
+
if (totalItems % 3 === 2) {
|
|
15
|
+
return index < 2 ? "0 0 calc(50% - 4px)" : `0 0 calc(33.333333% - ${gapOffset}px)`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
getTileButtonFlex
|
|
20
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import ParaWeb from '@getpara/web-sdk';
|
|
2
|
+
export declare function getWalletDisplayName(para: ParaWeb, { type, isExternal, name, isMenu, hideWallets, }: Partial<Pick<(typeof para.availableWallets)[0], 'type' | 'isExternal' | 'name'> & {
|
|
3
|
+
isMenu?: boolean;
|
|
4
|
+
hideWallets?: boolean;
|
|
5
|
+
}>): string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
const WALLET_TYPES = {
|
|
4
|
+
EVM: "EVM",
|
|
5
|
+
SOLANA: "Solana",
|
|
6
|
+
COSMOS: "Cosmos"
|
|
7
|
+
};
|
|
8
|
+
function getWalletDisplayName(para, {
|
|
9
|
+
type,
|
|
10
|
+
isExternal,
|
|
11
|
+
name,
|
|
12
|
+
isMenu = false,
|
|
13
|
+
hideWallets = false
|
|
14
|
+
}) {
|
|
15
|
+
if (para.isMultiWallet) {
|
|
16
|
+
return name != null ? name : `${isExternal ? "External " : ""}${type ? WALLET_TYPES[type] : ""}${!hideWallets && (isMenu || isExternal) ? " Wallet" : ""}`;
|
|
17
|
+
}
|
|
18
|
+
return hideWallets ? "My Account" : name || "My Wallet";
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
getWalletDisplayName
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isPasskeySupported: () => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
import { detect } from "detect-browser";
|
|
4
|
+
const isPasskeySupported = () => {
|
|
5
|
+
const browser = detect();
|
|
6
|
+
switch (browser == null ? void 0 : browser.os) {
|
|
7
|
+
case "linux":
|
|
8
|
+
case "Chrome OS":
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
return true;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
isPasskeySupported
|
|
15
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
function openPopup({
|
|
4
|
+
url,
|
|
5
|
+
target,
|
|
6
|
+
type,
|
|
7
|
+
current
|
|
8
|
+
}) {
|
|
9
|
+
if (typeof window === "undefined") {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
current == null ? void 0 : current.close();
|
|
13
|
+
const popUpWidth = 560;
|
|
14
|
+
let popUpHeight;
|
|
15
|
+
switch (type) {
|
|
16
|
+
case "LOGIN_PASSWORD": {
|
|
17
|
+
popUpHeight = 460;
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
case "LOGIN_PASSKEY": {
|
|
21
|
+
popUpHeight = 798;
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
case "CREATE_PASSWORD": {
|
|
25
|
+
popUpHeight = 400;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
case "CREATE_PASSKEY": {
|
|
29
|
+
popUpHeight = 464;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
case "TRANSACTION_REVIEW": {
|
|
33
|
+
popUpHeight = 480;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
case "OAUTH":
|
|
37
|
+
default: {
|
|
38
|
+
popUpHeight = 768;
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const dualScreenLeft = window.screenLeft !== void 0 ? window.screenLeft : window.screenX;
|
|
43
|
+
const dualScreenTop = window.screenTop !== void 0 ? window.screenTop : window.screenY;
|
|
44
|
+
const width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
|
|
45
|
+
const height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
|
|
46
|
+
const left = (width - popUpWidth) / 2 + dualScreenLeft;
|
|
47
|
+
const top = (height - popUpHeight) / 2 + dualScreenTop;
|
|
48
|
+
const windowFeatures = `toolbar=no, menubar=no, width=${popUpWidth},
|
|
49
|
+
height=${popUpHeight}, top=${top}, left=${left}`;
|
|
50
|
+
let popupWindow = window.open(url, target, windowFeatures);
|
|
51
|
+
if (!popupWindow) {
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
popupWindow = window.open(url, "_blank");
|
|
54
|
+
}, 0);
|
|
55
|
+
}
|
|
56
|
+
return popupWindow != null ? popupWindow : null;
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
openPopup
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const routeMobileExternalWallet: (qrUri?: string) => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-MMUBH76A.js";
|
|
3
|
+
import { isAndroid, isMobile, isTelegram } from "@getpara/web-sdk";
|
|
4
|
+
const routeMobileExternalWallet = (qrUri) => {
|
|
5
|
+
if (typeof window === "undefined") {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (isMobile()) {
|
|
9
|
+
if (!qrUri) return;
|
|
10
|
+
if (!isTelegram() && qrUri.startsWith("http")) {
|
|
11
|
+
const link = document.createElement("a");
|
|
12
|
+
link.href = qrUri;
|
|
13
|
+
link.target = "_blank";
|
|
14
|
+
link.rel = "noreferrer noopener";
|
|
15
|
+
link.click();
|
|
16
|
+
} else {
|
|
17
|
+
if (isTelegram()) {
|
|
18
|
+
let href = qrUri;
|
|
19
|
+
if (isAndroid()) {
|
|
20
|
+
href = encodeURI(qrUri);
|
|
21
|
+
}
|
|
22
|
+
window.open(href, "_blank", "noreferrer noopener");
|
|
23
|
+
} else {
|
|
24
|
+
window.location.href = qrUri;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
routeMobileExternalWallet
|
|
31
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { EnabledFlow } from '@getpara/web-sdk';
|
|
2
|
+
export declare enum ModalStep {
|
|
3
|
+
AUTH_MAIN = "AUTH_MAIN",
|
|
4
|
+
AUTH_MORE = "AUTH_MORE",
|
|
5
|
+
AUTH_GUEST_SIGNUP = "AUTH_GUEST_SIGNUP",
|
|
6
|
+
AWAITING_GUEST_WALLET_CREATION = "AWAITING_GUEST_WALLET_CREATION",
|
|
7
|
+
EX_WALLET_MORE = "EX_WALLET_MORE",
|
|
8
|
+
EX_WALLET_SELECTED = "EX_WALLET_SELECTED",
|
|
9
|
+
EX_WALLET_NETWORK_SELECT = "EX_WALLET_NETWORK_SELECT",
|
|
10
|
+
VERIFICATIONS = "VERIFICATIONS",
|
|
11
|
+
EXTERNAL_WALLET_VERIFICATION = "EXTERNAL_WALLET_VERIFICATION",
|
|
12
|
+
AWAITING_OAUTH = "AWAITING_OAUTH",
|
|
13
|
+
FARCASTER_OAUTH = "FARCASTER_OAUTH",
|
|
14
|
+
BIOMETRIC_CREATION = "BIOMETRIC_CREATION",
|
|
15
|
+
AWAITING_BIOMETRIC_CREATION = "AWAITING_BIOMETRIC_CREATION",
|
|
16
|
+
PASSWORD_CREATION = "PASSWORD_CREATION",
|
|
17
|
+
AWAITING_PASSWORD_CREATION = "AWAITING_PASSWORD_CREATION",
|
|
18
|
+
AWAITING_WALLET_CREATION = "AWAITING_WALLET_CREATION",
|
|
19
|
+
TELEGRAM_OAUTH = "TELEGRAM_OAUTH",
|
|
20
|
+
WALLET_CREATION_DONE = "WALLET_CREATION_DONE",
|
|
21
|
+
SECRET = "SECRET",
|
|
22
|
+
BIOMETRIC_LOGIN = "BIOMETRIC_LOGIN",
|
|
23
|
+
EMBEDDED_PASSWORD_LOGIN = "EMBEDDED_PASSWORD_LOGIN",
|
|
24
|
+
AWAITING_BIOMETRIC_LOGIN = "AWAITING_BIOMETRIC_LOGIN",
|
|
25
|
+
AWAITING_PASSWORD_LOGIN = "AWAITING_PASSWORD_LOGIN",
|
|
26
|
+
LOGIN_DONE = "LOGIN_DONE",
|
|
27
|
+
SETUP_2FA = "SETUP_2FA",
|
|
28
|
+
VERIFY_2FA = "VERIFY_2FA",
|
|
29
|
+
TWO_FACTOR_DONE = "TWO_FACTOR_DONE",
|
|
30
|
+
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
31
|
+
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
32
|
+
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
33
|
+
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
34
|
+
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
35
|
+
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE",
|
|
36
|
+
ACCOUNT_MAIN = "ACCOUNT_MAIN",
|
|
37
|
+
CHAIN_SWITCH = "CHAIN_SWITCH",
|
|
38
|
+
ACCOUNT_PROFILE = "ACCOUNT_PROFILE",
|
|
39
|
+
ACCOUNT_PROFILE_ADD = "ACCOUNT_PROFILE_ADD",
|
|
40
|
+
ACCOUNT_PROFILE_LIST = "ACCOUNT_PROFILE_LIST",
|
|
41
|
+
ACCOUNT_PROFILE_REMOVE = "ACCOUNT_PROFILE_REMOVE",
|
|
42
|
+
AWAITING_IFRAME = "AWAITING_IFRAME"
|
|
43
|
+
}
|
|
44
|
+
export type ModalStepPropU = keyof typeof ModalStep | ModalStep;
|
|
45
|
+
export type ModalStepPropL = Lowercase<ModalStepPropU>;
|
|
46
|
+
export type ModalStepProp = ModalStepPropU | ModalStepPropL;
|
|
47
|
+
declare enum AccountStep {
|
|
48
|
+
ACCOUNT_MAIN = "ACCOUNT_MAIN",
|
|
49
|
+
AUTH_GUEST_SIGNUP = "AUTH_GUEST_SIGNUP",
|
|
50
|
+
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
51
|
+
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
52
|
+
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
53
|
+
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
54
|
+
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
55
|
+
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE",
|
|
56
|
+
CHAIN_SWITCH = "CHAIN_SWITCH",
|
|
57
|
+
ACCOUNT_PROFILE = "ACCOUNT_PROFILE",
|
|
58
|
+
ACCOUNT_PROFILE_ADD = "ACCOUNT_PROFILE_ADD",
|
|
59
|
+
ACCOUNT_PROFILE_LIST = "ACCOUNT_PROFILE_LIST",
|
|
60
|
+
ACCOUNT_PROFILE_REMOVE = "ACCOUNT_PROFILE_REMOVE"
|
|
61
|
+
}
|
|
62
|
+
export declare const RESET_TO_AUTH_STEPS: ModalStep[];
|
|
63
|
+
export declare const RESET_TO_ACCOUNT_STEPS: ModalStep[];
|
|
64
|
+
export declare const AccountPreviousStep: {
|
|
65
|
+
[key in AccountStep]: ModalStep | undefined;
|
|
66
|
+
};
|
|
67
|
+
declare enum SignUpModalStep {
|
|
68
|
+
AUTH_MAIN = "AUTH_MAIN",
|
|
69
|
+
AUTH_MORE = "AUTH_MORE",
|
|
70
|
+
EX_WALLET_MORE = "EX_WALLET_MORE",
|
|
71
|
+
EX_WALLET_SELECTED = "EX_WALLET_SELECTED",
|
|
72
|
+
EX_WALLET_NETWORK_SELECT = "EX_WALLET_NETWORK_SELECT",
|
|
73
|
+
VERIFICATIONS = "VERIFICATIONS",
|
|
74
|
+
EXTERNAL_WALLET_VERIFICATION = "EXTERNAL_WALLET_VERIFICATION",
|
|
75
|
+
AWAITING_OAUTH = "AWAITING_OAUTH",
|
|
76
|
+
FARCASTER_OAUTH = "FARCASTER_OAUTH",
|
|
77
|
+
TELEGRAM_OAUTH = "TELEGRAM_OAUTH",
|
|
78
|
+
BIOMETRIC_CREATION = "BIOMETRIC_CREATION",
|
|
79
|
+
AWAITING_BIOMETRIC_CREATION = "AWAITING_BIOMETRIC_CREATION",
|
|
80
|
+
PASSWORD_CREATION = "PASSWORD_CREATION",
|
|
81
|
+
AWAITING_PASSWORD_CREATION = "AWAITING_PASSWORD_CREATION",
|
|
82
|
+
AWAITING_WALLET_CREATION = "AWAITING_WALLET_CREATION",
|
|
83
|
+
WALLET_CREATION_DONE = "WALLET_CREATION_DONE",
|
|
84
|
+
SECRET = "SECRET",
|
|
85
|
+
SETUP_2FA = "SETUP_2FA",
|
|
86
|
+
VERIFY_2FA = "VERIFY_2FA",
|
|
87
|
+
TWO_FACTOR_DONE = "TWO_FACTOR_DONE",
|
|
88
|
+
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
89
|
+
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
90
|
+
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
91
|
+
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
92
|
+
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
93
|
+
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE",
|
|
94
|
+
AWAITING_IFRAME = "AWAITING_IFRAME"
|
|
95
|
+
}
|
|
96
|
+
export declare const SignUpPreviousStep: {
|
|
97
|
+
[key in SignUpModalStep]: ModalStep | undefined;
|
|
98
|
+
};
|
|
99
|
+
export declare const GuestPreviousStep: {
|
|
100
|
+
[key in AccountStep]: ModalStep | undefined;
|
|
101
|
+
};
|
|
102
|
+
declare enum LoginModalStep {
|
|
103
|
+
AUTH_MAIN = "AUTH_MAIN",
|
|
104
|
+
AUTH_MORE = "AUTH_MORE",
|
|
105
|
+
EX_WALLET_MORE = "EX_WALLET_MORE",
|
|
106
|
+
EX_WALLET_SELECTED = "EX_WALLET_SELECTED",
|
|
107
|
+
EX_WALLET_NETWORK_SELECT = "EX_WALLET_NETWORK_SELECT",
|
|
108
|
+
AWAITING_OAUTH = "AWAITING_OAUTH",
|
|
109
|
+
FARCASTER_OAUTH = "FARCASTER_OAUTH",
|
|
110
|
+
TELEGRAM_OAUTH = "TELEGRAM_OAUTH",
|
|
111
|
+
BIOMETRIC_LOGIN = "BIOMETRIC_LOGIN",
|
|
112
|
+
EMBEDDED_PASSWORD_LOGIN = "EMBEDDED_PASSWORD_LOGIN",
|
|
113
|
+
AWAITING_BIOMETRIC_LOGIN = "AWAITING_BIOMETRIC_LOGIN",
|
|
114
|
+
AWAITING_PASSWORD_LOGIN = "AWAITING_PASSWORD_LOGIN",
|
|
115
|
+
AWAITING_WALLET_CREATION = "AWAITING_WALLET_CREATION",
|
|
116
|
+
WALLET_CREATION_DONE = "WALLET_CREATION_DONE",
|
|
117
|
+
SECRET = "SECRET",
|
|
118
|
+
SETUP_2FA = "SETUP_2FA",
|
|
119
|
+
VERIFY_2FA = "VERIFY_2FA",
|
|
120
|
+
TWO_FACTOR_DONE = "TWO_FACTOR_DONE",
|
|
121
|
+
LOGIN_DONE = "LOGIN_DONE",
|
|
122
|
+
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
123
|
+
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
124
|
+
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
125
|
+
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
126
|
+
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
127
|
+
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE",
|
|
128
|
+
AWAITING_IFRAME = "AWAITING_IFRAME"
|
|
129
|
+
}
|
|
130
|
+
export declare const LoginPreviousStep: {
|
|
131
|
+
[key in LoginModalStep]: ModalStep | undefined;
|
|
132
|
+
};
|
|
133
|
+
export declare const getStepHasFooter: (step: ModalStep) => boolean;
|
|
134
|
+
export declare function getAddFundsStep(currentTab: EnabledFlow): ModalStep;
|
|
135
|
+
export declare const IFrameSteps: ModalStep[];
|
|
136
|
+
export {};
|