@getpara/react-sdk 2.0.0-alpha.7 → 2.0.0-alpha.71
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/README.md +21 -0
- package/dist/cosmos/actions/getCosmjsAminoSigner.d.ts +8 -0
- package/dist/cosmos/actions/getCosmjsAminoSigner.js +16 -0
- package/dist/cosmos/actions/getCosmjsProtoSigner.d.ts +8 -0
- package/dist/cosmos/actions/getCosmjsProtoSigner.js +16 -0
- package/dist/cosmos/actions/index.d.ts +2 -0
- package/dist/cosmos/actions/index.js +3 -0
- package/dist/cosmos/hooks/index.d.ts +2 -0
- package/dist/cosmos/hooks/index.js +3 -0
- package/dist/cosmos/hooks/useCosmjsAminoSigner.d.ts +11 -0
- package/dist/cosmos/hooks/useCosmjsAminoSigner.js +37 -0
- package/dist/cosmos/hooks/useCosmjsProtoSigner.d.ts +11 -0
- package/dist/cosmos/hooks/useCosmjsProtoSigner.js +37 -0
- package/dist/cosmos/index.d.ts +2 -0
- package/dist/cosmos/index.js +3 -0
- package/dist/css/modal.css +14 -1
- package/dist/evm/actions/getViemAccount.d.ts +22 -0
- package/dist/evm/actions/getViemAccount.js +20 -0
- package/dist/evm/actions/getViemClient.d.ts +17993 -0
- package/dist/evm/actions/getViemClient.js +25 -0
- package/dist/evm/actions/index.d.ts +2 -0
- package/dist/evm/actions/index.js +3 -0
- package/dist/evm/hooks/index.d.ts +2 -0
- package/dist/evm/hooks/index.js +3 -0
- package/dist/evm/hooks/useViemAccount.d.ts +26 -0
- package/dist/evm/hooks/useViemAccount.js +32 -0
- package/dist/evm/hooks/useViemClient.d.ts +17997 -0
- package/dist/evm/hooks/useViemClient.js +30 -0
- package/dist/evm/index.d.ts +2 -0
- package/dist/evm/index.js +3 -0
- package/dist/index.d.ts +3 -6
- package/dist/index.js +4 -9
- package/dist/provider/ParaProvider.d.ts +1 -2
- package/dist/provider/ParaProvider.js +17 -76
- package/dist/public/PPMori-Regular.woff2 +0 -0
- package/dist/public/PPMori-SemiBold.woff2 +0 -0
- package/dist/solana/actions/getSolanaSigner.d.ts +8 -0
- package/dist/solana/actions/getSolanaSigner.js +15 -0
- package/dist/solana/actions/index.d.ts +1 -0
- package/dist/solana/actions/index.js +2 -0
- package/dist/solana/hooks/index.d.ts +1 -0
- package/dist/solana/hooks/index.js +2 -0
- package/dist/solana/hooks/useSolanaSigner.d.ts +12 -0
- package/dist/solana/hooks/useSolanaSigner.js +32 -0
- package/dist/solana/index.d.ts +2 -0
- package/dist/solana/index.js +3 -0
- package/package.json +37 -51
- package/styles.css/package.json +1 -1
- package/dist/cli/cli.mjs +0 -35
- package/dist/modal/ParaModal.d.ts +0 -2
- package/dist/modal/ParaModal.js +0 -262
- package/dist/modal/components/Account/Account.d.ts +0 -5
- package/dist/modal/components/Account/Account.js +0 -139
- package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFunds.js +0 -69
- package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsAsset.js +0 -125
- package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsAwaiting.js +0 -78
- package/dist/modal/components/AddFunds/AddFundsContext.d.ts +0 -31
- package/dist/modal/components/AddFunds/AddFundsContext.js +0 -160
- package/dist/modal/components/AddFunds/AddFundsDone.d.ts +0 -6
- package/dist/modal/components/AddFunds/AddFundsDone.js +0 -49
- package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsProvider.js +0 -109
- package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsReceive.js +0 -83
- package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsSettings.js +0 -237
- package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +0 -2
- package/dist/modal/components/AddFunds/MoonPayEmbed.js +0 -7
- package/dist/modal/components/AddFunds/common.d.ts +0 -19
- package/dist/modal/components/AddFunds/common.js +0 -24
- package/dist/modal/components/AddFunds/index.d.ts +0 -3
- package/dist/modal/components/AddFunds/index.js +0 -4
- package/dist/modal/components/AuthInput/AuthInput.d.ts +0 -6
- package/dist/modal/components/AuthInput/AuthInput.js +0 -262
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +0 -7
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +0 -33
- package/dist/modal/components/AuthInput/phoneMasks.d.ts +0 -247
- package/dist/modal/components/AuthInput/phoneMasks.js +0 -253
- package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStep.js +0 -50
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +0 -157
- package/dist/modal/components/AuthOptions/AuthOptions.d.ts +0 -9
- package/dist/modal/components/AuthOptions/AuthOptions.js +0 -67
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +0 -18
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +0 -10
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -18
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -49
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +0 -63
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -55
- package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +0 -6
- package/dist/modal/components/Body/AnimatedHeightWrapper.js +0 -29
- package/dist/modal/components/Body/Body.d.ts +0 -11
- package/dist/modal/components/Body/Body.js +0 -327
- package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +0 -1
- package/dist/modal/components/ChainSwitch/ChainSwitch.js +0 -95
- package/dist/modal/components/ChainSwitch/config.d.ts +0 -7
- package/dist/modal/components/ChainSwitch/config.js +0 -17
- package/dist/modal/components/Controls/Controls.d.ts +0 -5
- package/dist/modal/components/Controls/Controls.js +0 -77
- package/dist/modal/components/Controls/Selects.d.ts +0 -2
- package/dist/modal/components/Controls/Selects.js +0 -189
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +0 -1
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +0 -144
- package/dist/modal/components/ExternalWalletStep/config.d.ts +0 -7
- package/dist/modal/components/ExternalWalletStep/config.js +0 -17
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +0 -34
- package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +0 -1
- package/dist/modal/components/ExternalWallets/ExternalWallets.js +0 -173
- package/dist/modal/components/Footer/Footer.d.ts +0 -1
- package/dist/modal/components/Footer/Footer.js +0 -95
- package/dist/modal/components/Header/Header.d.ts +0 -1
- package/dist/modal/components/Header/Header.js +0 -43
- package/dist/modal/components/Header/hooks/useStepTitle.d.ts +0 -3
- package/dist/modal/components/Header/hooks/useStepTitle.js +0 -54
- package/dist/modal/components/Hero/Hero.d.ts +0 -1
- package/dist/modal/components/Hero/Hero.js +0 -116
- package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
- package/dist/modal/components/IFrameStep/IFrameStep.js +0 -59
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -1
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +0 -31
- package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -10
- package/dist/modal/components/ModalContent/ModalContent.js +0 -95
- package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -2
- package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -27
- package/dist/modal/components/OAuth/OAuth.d.ts +0 -6
- package/dist/modal/components/OAuth/OAuth.js +0 -79
- package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -1
- package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -90
- package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +0 -1
- package/dist/modal/components/OnRampComponents/AddingFunds.js +0 -23
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +0 -9
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +0 -77
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +0 -6
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +0 -107
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +0 -132
- package/dist/modal/components/StripeComponents/StripeComponents.d.ts +0 -16
- package/dist/modal/components/StripeComponents/StripeComponents.js +0 -88
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +0 -1
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +0 -143
- package/dist/modal/components/Waiting/Waiting.d.ts +0 -6
- package/dist/modal/components/Waiting/Waiting.js +0 -17
- package/dist/modal/components/WalletCard/PartnerIcon.d.ts +0 -6
- package/dist/modal/components/WalletCard/PartnerIcon.js +0 -34
- package/dist/modal/components/WalletCard/WalletCard.d.ts +0 -18
- package/dist/modal/components/WalletCard/WalletCard.js +0 -128
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +0 -73
- package/dist/modal/components/common.d.ts +0 -42
- package/dist/modal/components/common.js +0 -175
- package/dist/modal/components/index.d.ts +0 -1
- package/dist/modal/components/index.js +0 -2
- package/dist/modal/constants/constants.d.ts +0 -39
- package/dist/modal/constants/constants.js +0 -138
- package/dist/modal/constants/defaults.d.ts +0 -5
- package/dist/modal/constants/defaults.js +0 -10
- package/dist/modal/constants/oAuthLogos.d.ts +0 -8
- package/dist/modal/constants/oAuthLogos.js +0 -24
- package/dist/modal/hooks/useGoBack.d.ts +0 -1
- package/dist/modal/hooks/useGoBack.js +0 -43
- package/dist/modal/index.d.ts +0 -8
- package/dist/modal/index.js +0 -29
- package/dist/modal/stores/index.d.ts +0 -1
- package/dist/modal/stores/index.js +0 -2
- package/dist/modal/stores/modal/actions.d.ts +0 -3
- package/dist/modal/stores/modal/actions.js +0 -133
- package/dist/modal/stores/modal/useModalStore.d.ts +0 -102
- package/dist/modal/stores/modal/useModalStore.js +0 -68
- package/dist/modal/types/commonTypes.d.ts +0 -6
- package/dist/modal/types/commonTypes.js +0 -1
- package/dist/modal/types/externalWallets.d.ts +0 -33
- package/dist/modal/types/externalWallets.js +0 -32
- package/dist/modal/types/modalProps.d.ts +0 -124
- package/dist/modal/types/modalProps.js +0 -12
- package/dist/modal/utils/authInputHelpers.d.ts +0 -7
- package/dist/modal/utils/authInputHelpers.js +0 -38
- package/dist/modal/utils/authLayoutHelpers.d.ts +0 -3
- package/dist/modal/utils/authLayoutHelpers.js +0 -8
- package/dist/modal/utils/countryCodes.d.ts +0 -8
- package/dist/modal/utils/countryCodes.js +0 -45
- package/dist/modal/utils/getMailtoLink.d.ts +0 -1
- package/dist/modal/utils/getMailtoLink.js +0 -10
- package/dist/modal/utils/getTileButtonFlex.d.ts +0 -1
- package/dist/modal/utils/getTileButtonFlex.js +0 -20
- package/dist/modal/utils/isPasskeySupported.d.ts +0 -1
- package/dist/modal/utils/isPasskeySupported.js +0 -15
- package/dist/modal/utils/openPopup.d.ts +0 -6
- package/dist/modal/utils/openPopup.js +0 -60
- package/dist/modal/utils/routeMobileExternalWallet.d.ts +0 -1
- package/dist/modal/utils/routeMobileExternalWallet.js +0 -31
- package/dist/modal/utils/steps.d.ts +0 -120
- package/dist/modal/utils/steps.js +0 -247
- package/dist/modal/utils/stringFormatters.d.ts +0 -5
- package/dist/modal/utils/stringFormatters.js +0 -19
- package/dist/modal/utils/validateOnRampConfig.d.ts +0 -5
- package/dist/modal/utils/validateOnRampConfig.js +0 -32
- package/dist/provider/actions/getAccount.d.ts +0 -26
- package/dist/provider/actions/getAccount.js +0 -51
- package/dist/provider/actions/getWallet.d.ts +0 -5
- package/dist/provider/actions/getWallet.js +0 -14
- package/dist/provider/actions/index.d.ts +0 -27
- package/dist/provider/actions/index.js +0 -59
- package/dist/provider/actions/utils.d.ts +0 -3
- package/dist/provider/actions/utils.js +0 -15
- package/dist/provider/components/CosmosWalletWrapper.d.ts +0 -11
- package/dist/provider/components/CosmosWalletWrapper.js +0 -34
- package/dist/provider/components/EvmWalletWrapper.d.ts +0 -12
- package/dist/provider/components/EvmWalletWrapper.js +0 -34
- package/dist/provider/components/ExternalWalletWrapper.d.ts +0 -8
- package/dist/provider/components/ExternalWalletWrapper.js +0 -139
- package/dist/provider/components/SolanaWalletWrapper.d.ts +0 -9
- package/dist/provider/components/SolanaWalletWrapper.js +0 -36
- package/dist/provider/external/getParaCosmosConnector.d.ts +0 -7
- package/dist/provider/external/getParaCosmosConnector.js +0 -22
- package/dist/provider/external/getParaEvmConnector.d.ts +0 -7
- package/dist/provider/external/getParaEvmConnector.js +0 -22
- package/dist/provider/external/getParaSolanaConnector.d.ts +0 -7
- package/dist/provider/external/getParaSolanaConnector.js +0 -22
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +0 -12
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +0 -18
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +0 -3
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +0 -21
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +0 -8
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +0 -14
- package/dist/provider/hooks/index.d.ts +0 -3
- package/dist/provider/hooks/index.js +0 -4
- package/dist/provider/hooks/mutations/index.d.ts +0 -26
- package/dist/provider/hooks/mutations/index.js +0 -61
- package/dist/provider/hooks/mutations/utils.d.ts +0 -4
- package/dist/provider/hooks/mutations/utils.js +0 -22
- package/dist/provider/hooks/queries/index.d.ts +0 -3
- package/dist/provider/hooks/queries/index.js +0 -10
- package/dist/provider/hooks/queries/useAccount.d.ts +0 -5
- package/dist/provider/hooks/queries/useAccount.js +0 -21
- package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
- package/dist/provider/hooks/queries/useWallet.js +0 -22
- package/dist/provider/hooks/queries/useWalletBalance.d.ts +0 -6
- package/dist/provider/hooks/queries/useWalletBalance.js +0 -55
- package/dist/provider/hooks/utils/index.d.ts +0 -3
- package/dist/provider/hooks/utils/index.js +0 -10
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +0 -3
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +0 -74
- package/dist/provider/hooks/utils/useClient.d.ts +0 -5
- package/dist/provider/hooks/utils/useClient.js +0 -10
- package/dist/provider/hooks/utils/useEventListeners.d.ts +0 -2
- package/dist/provider/hooks/utils/useEventListeners.js +0 -147
- package/dist/provider/hooks/utils/useInternalClient.d.ts +0 -5
- package/dist/provider/hooks/utils/useInternalClient.js +0 -10
- package/dist/provider/hooks/utils/useModal.d.ts +0 -8
- package/dist/provider/hooks/utils/useModal.js +0 -17
- package/dist/provider/hooks/utils/useWalletState.d.ts +0 -15
- package/dist/provider/hooks/utils/useWalletState.js +0 -48
- package/dist/provider/index.d.ts +0 -4
- package/dist/provider/index.js +0 -9
- package/dist/provider/providers/AuthProvider.d.ts +0 -35
- package/dist/provider/providers/AuthProvider.js +0 -498
- package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/CosmosExternalWalletProvider.js +0 -66
- package/dist/provider/providers/EvmExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/EvmExternalWalletProvider.js +0 -74
- package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -76
- package/dist/provider/providers/ExternalWalletProvider.js +0 -428
- package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/SolanaExternalWalletProvider.js +0 -66
- package/dist/provider/stores/getters.d.ts +0 -4
- package/dist/provider/stores/getters.js +0 -13
- package/dist/provider/stores/setters.d.ts +0 -1
- package/dist/provider/stores/setters.js +0 -7
- package/dist/provider/stores/slices/client.d.ts +0 -3
- package/dist/provider/stores/slices/client.js +0 -9
- package/dist/provider/stores/slices/config.d.ts +0 -3
- package/dist/provider/stores/slices/config.js +0 -9
- package/dist/provider/stores/slices/externalWallets.d.ts +0 -3
- package/dist/provider/stores/slices/externalWallets.js +0 -40
- package/dist/provider/stores/slices/index.d.ts +0 -4
- package/dist/provider/stores/slices/index.js +0 -5
- package/dist/provider/stores/slices/modal.d.ts +0 -3
- package/dist/provider/stores/slices/modal.js +0 -16
- package/dist/provider/stores/slices/wallet.d.ts +0 -3
- package/dist/provider/stores/slices/wallet.js +0 -13
- package/dist/provider/stores/types.d.ts +0 -64
- package/dist/provider/stores/types.js +0 -1
- package/dist/provider/stores/useStore.d.ts +0 -17
- package/dist/provider/stores/useStore.js +0 -28
- package/dist/provider/types/externalWalletProviders.d.ts +0 -12
- package/dist/provider/types/externalWalletProviders.js +0 -1
- package/dist/provider/types/provider.d.ts +0 -147
- package/dist/provider/types/provider.js +0 -1
- package/dist/provider/types/query.d.ts +0 -3
- package/dist/provider/types/query.js +0 -1
- package/dist/provider/types/utils.d.ts +0 -22
- package/dist/provider/types/utils.js +0 -1
- package/dist/provider/utils/constants.d.ts +0 -5
- package/dist/provider/utils/constants.js +0 -10
- package/dist/provider/utils/paraConfigTypeGuards.d.ts +0 -7
- package/dist/provider/utils/paraConfigTypeGuards.js +0 -13
- package/dist/provider/utils/renameMutations.d.ts +0 -5
- package/dist/provider/utils/renameMutations.js +0 -18
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare enum EvmWallet {
|
|
2
|
-
METAMASK = "METAMASK",
|
|
3
|
-
RAINBOW = "RAINBOW",
|
|
4
|
-
COINBASE = "COINBASE",
|
|
5
|
-
WALLETCONNECT = "WALLETCONNECT",
|
|
6
|
-
ZERION = "ZERION",
|
|
7
|
-
SAFE = "SAFE",
|
|
8
|
-
RABBY = "RABBY"
|
|
9
|
-
}
|
|
10
|
-
export declare enum SolanaWallet {
|
|
11
|
-
PHANTOM = "PHANTOM",
|
|
12
|
-
GLOW = "GLOW",
|
|
13
|
-
BACKPACK = "BACKPACK"
|
|
14
|
-
}
|
|
15
|
-
export declare enum CosmosWallet {
|
|
16
|
-
KEPLR = "KEPLR",
|
|
17
|
-
LEAP = "LEAP"
|
|
18
|
-
}
|
|
19
|
-
export declare const ExternalWallet: {
|
|
20
|
-
KEPLR: CosmosWallet.KEPLR;
|
|
21
|
-
LEAP: CosmosWallet.LEAP;
|
|
22
|
-
PHANTOM: SolanaWallet.PHANTOM;
|
|
23
|
-
GLOW: SolanaWallet.GLOW;
|
|
24
|
-
BACKPACK: SolanaWallet.BACKPACK;
|
|
25
|
-
METAMASK: EvmWallet.METAMASK;
|
|
26
|
-
RAINBOW: EvmWallet.RAINBOW;
|
|
27
|
-
COINBASE: EvmWallet.COINBASE;
|
|
28
|
-
WALLETCONNECT: EvmWallet.WALLETCONNECT;
|
|
29
|
-
ZERION: EvmWallet.ZERION;
|
|
30
|
-
SAFE: EvmWallet.SAFE;
|
|
31
|
-
RABBY: EvmWallet.RABBY;
|
|
32
|
-
};
|
|
33
|
-
export type TExternalWallet = keyof typeof ExternalWallet;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "../../chunk-MMUBH76A.js";
|
|
5
|
-
var EvmWallet = /* @__PURE__ */ ((EvmWallet2) => {
|
|
6
|
-
EvmWallet2["METAMASK"] = "METAMASK";
|
|
7
|
-
EvmWallet2["RAINBOW"] = "RAINBOW";
|
|
8
|
-
EvmWallet2["COINBASE"] = "COINBASE";
|
|
9
|
-
EvmWallet2["WALLETCONNECT"] = "WALLETCONNECT";
|
|
10
|
-
EvmWallet2["ZERION"] = "ZERION";
|
|
11
|
-
EvmWallet2["SAFE"] = "SAFE";
|
|
12
|
-
EvmWallet2["RABBY"] = "RABBY";
|
|
13
|
-
return EvmWallet2;
|
|
14
|
-
})(EvmWallet || {});
|
|
15
|
-
var SolanaWallet = /* @__PURE__ */ ((SolanaWallet2) => {
|
|
16
|
-
SolanaWallet2["PHANTOM"] = "PHANTOM";
|
|
17
|
-
SolanaWallet2["GLOW"] = "GLOW";
|
|
18
|
-
SolanaWallet2["BACKPACK"] = "BACKPACK";
|
|
19
|
-
return SolanaWallet2;
|
|
20
|
-
})(SolanaWallet || {});
|
|
21
|
-
var CosmosWallet = /* @__PURE__ */ ((CosmosWallet2) => {
|
|
22
|
-
CosmosWallet2["KEPLR"] = "KEPLR";
|
|
23
|
-
CosmosWallet2["LEAP"] = "LEAP";
|
|
24
|
-
return CosmosWallet2;
|
|
25
|
-
})(CosmosWallet || {});
|
|
26
|
-
const ExternalWallet = __spreadValues(__spreadValues(__spreadValues({}, EvmWallet), SolanaWallet), CosmosWallet);
|
|
27
|
-
export {
|
|
28
|
-
CosmosWallet,
|
|
29
|
-
EvmWallet,
|
|
30
|
-
ExternalWallet,
|
|
31
|
-
SolanaWallet
|
|
32
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import ParaWeb, { CurrentWalletIds, TOAuthMethod } from '@getpara/web-sdk';
|
|
2
|
-
import { Theme } from '@getpara/react-components';
|
|
3
|
-
import { OnModalStepChangeValue } from '../stores/index.js';
|
|
4
|
-
import { ModalStep, ModalStepProp } from '../utils/steps.js';
|
|
5
|
-
export type ParaModalHandle = {
|
|
6
|
-
/**
|
|
7
|
-
* Move the modal backward
|
|
8
|
-
*/
|
|
9
|
-
goBack: () => void;
|
|
10
|
-
/**
|
|
11
|
-
* Returns if the modal can go back
|
|
12
|
-
*/
|
|
13
|
-
canGoBack: () => boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Returns if the modal is expanded
|
|
16
|
-
*/
|
|
17
|
-
currentStep: () => ModalStep;
|
|
18
|
-
/**
|
|
19
|
-
* Trigger the modal close handler
|
|
20
|
-
*/
|
|
21
|
-
handleModalClose: () => void;
|
|
22
|
-
};
|
|
23
|
-
export type OAuthLogoVariantType = 'dark' | 'light' | 'default';
|
|
24
|
-
export type ParaModalTheme = Theme & {
|
|
25
|
-
oAuthLogoVariant?: OAuthLogoVariantType;
|
|
26
|
-
};
|
|
27
|
-
export declare enum AuthLayout {
|
|
28
|
-
AUTH_FULL = "AUTH:FULL",
|
|
29
|
-
AUTH_CONDENSED = "AUTH:CONDENSED",
|
|
30
|
-
EXTERNAL_FULL = "EXTERNAL:FULL",
|
|
31
|
-
EXTERNAL_CONDENSED = "EXTERNAL:CONDENSED"
|
|
32
|
-
}
|
|
33
|
-
export type TAuthLayout = `${AuthLayout}`;
|
|
34
|
-
export interface ParaModalProps {
|
|
35
|
-
/**
|
|
36
|
-
* Your ParaWeb instance.
|
|
37
|
-
*/
|
|
38
|
-
para?: ParaWeb;
|
|
39
|
-
/**
|
|
40
|
-
* Whether or not the modal is open.
|
|
41
|
-
*/
|
|
42
|
-
isOpen?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Whether or not to show two-factor authentication steps to users.
|
|
45
|
-
* Defaults to `false`.
|
|
46
|
-
*/
|
|
47
|
-
twoFactorAuthEnabled?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Whether or not to show the wallet recovery to users.
|
|
50
|
-
* Defaults to `false`
|
|
51
|
-
*/
|
|
52
|
-
recoverySecretStepEnabled?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Which OAuth methods (if any) to show.
|
|
55
|
-
* Defaults to `true`.
|
|
56
|
-
*/
|
|
57
|
-
oAuthMethods?: TOAuthMethod[];
|
|
58
|
-
/**
|
|
59
|
-
* Whether or not to allow for email login. If true, only OAuth login will be available.
|
|
60
|
-
* Defaults to `false`.
|
|
61
|
-
*/
|
|
62
|
-
disableEmailLogin?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether or not to allow for phone login. If true, only OAuth login will be available.
|
|
65
|
-
* Defaults to `false`.
|
|
66
|
-
*/
|
|
67
|
-
disablePhoneLogin?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Theming to be used throughout the modal.
|
|
70
|
-
*/
|
|
71
|
-
theme?: ParaModalTheme;
|
|
72
|
-
/**
|
|
73
|
-
* Logo to be shown throughout the modal.
|
|
74
|
-
*/
|
|
75
|
-
logo?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Whether or not to run configured on-ramp providers in test mode.
|
|
78
|
-
*/
|
|
79
|
-
onRampTestMode?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Whether to display information about on-chain wallets and use related terminology in the Para Modal.
|
|
82
|
-
*/
|
|
83
|
-
hideWallets?: boolean;
|
|
84
|
-
currentStepOverride?: ModalStepProp | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Whether or not to display just the modal without the overlay component.
|
|
87
|
-
* Useful for rendering the modal inside a custom component
|
|
88
|
-
* Defaults to `false`
|
|
89
|
-
*/
|
|
90
|
-
bareModal?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Whether or not to use the embedded modal styling
|
|
93
|
-
* This is typically only used internally by Para and may result in unwanted styling!
|
|
94
|
-
*/
|
|
95
|
-
embeddedModal?: boolean;
|
|
96
|
-
className?: string;
|
|
97
|
-
/**
|
|
98
|
-
* How the modal should order the components on the main auth screen.
|
|
99
|
-
* Only the first method of each type (auth or external) will be used.
|
|
100
|
-
* Default to [AuthLayout.AUTH_FULL, AuthLayout.EXTERNAL_FULL]
|
|
101
|
-
*/
|
|
102
|
-
authLayout?: TAuthLayout[];
|
|
103
|
-
/**
|
|
104
|
-
* Default email or phone number (formatted like: +15555555555) to pre-populate the input field.
|
|
105
|
-
*/
|
|
106
|
-
defaultAuthIdentifier?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Called when the modal step changes
|
|
109
|
-
*/
|
|
110
|
-
onModalStepChange?: (value: OnModalStepChangeValue) => void;
|
|
111
|
-
/**
|
|
112
|
-
* Called when the modal is closed
|
|
113
|
-
*/
|
|
114
|
-
onClose?: () => void;
|
|
115
|
-
/**
|
|
116
|
-
* Whether to enable guest login. A guest user will be provisioned embedded wallets that they will then claim upon signing up through your app.
|
|
117
|
-
*/
|
|
118
|
-
isGuestModeEnabled?: boolean;
|
|
119
|
-
loginTransitionOverride?: (para: ParaWeb) => Promise<void>;
|
|
120
|
-
createWalletOverride?: (para: ParaWeb) => Promise<{
|
|
121
|
-
recoverySecret?: string;
|
|
122
|
-
walletIds: CurrentWalletIds;
|
|
123
|
-
}>;
|
|
124
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../chunk-MMUBH76A.js";
|
|
3
|
-
var AuthLayout = /* @__PURE__ */ ((AuthLayout2) => {
|
|
4
|
-
AuthLayout2["AUTH_FULL"] = "AUTH:FULL";
|
|
5
|
-
AuthLayout2["AUTH_CONDENSED"] = "AUTH:CONDENSED";
|
|
6
|
-
AuthLayout2["EXTERNAL_FULL"] = "EXTERNAL:FULL";
|
|
7
|
-
AuthLayout2["EXTERNAL_CONDENSED"] = "EXTERNAL:CONDENSED";
|
|
8
|
-
return AuthLayout2;
|
|
9
|
-
})(AuthLayout || {});
|
|
10
|
-
export {
|
|
11
|
-
AuthLayout
|
|
12
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import countryCodes from './countryCodes.js';
|
|
2
|
-
export declare function isCcMatch(countryCode: string, option: (typeof countryCodes)[number]): boolean;
|
|
3
|
-
export declare function validateAuth(identifier: string, countryCode?: string, type?: 'email' | 'phone'): {
|
|
4
|
-
email: string;
|
|
5
|
-
} | {
|
|
6
|
-
phone: import("@getpara/user-management-client").AuthIdentifier<"phone">;
|
|
7
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
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(identifier, countryCode, type) {
|
|
9
|
-
const isEmail = type === "email";
|
|
10
|
-
const isPhone = type === "phone";
|
|
11
|
-
let auth;
|
|
12
|
-
switch (true) {
|
|
13
|
-
case isEmail:
|
|
14
|
-
if (!EMAIL_REGEX.test(identifier)) {
|
|
15
|
-
throw new Error("Please enter a valid email!");
|
|
16
|
-
}
|
|
17
|
-
auth = { email: identifier };
|
|
18
|
-
break;
|
|
19
|
-
case isPhone:
|
|
20
|
-
if (countryCode === "+1" && identifier.slice(3, 6) === "555") {
|
|
21
|
-
auth = { phone: `${countryCode}${identifier}` };
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
const validatedPhone = formatPhoneNumber(identifier, countryCode);
|
|
25
|
-
if (!validatedPhone) {
|
|
26
|
-
throw new Error("Please enter a valid phone number!");
|
|
27
|
-
}
|
|
28
|
-
auth = { phone: validatedPhone };
|
|
29
|
-
break;
|
|
30
|
-
default:
|
|
31
|
-
throw new Error("Please enter a valid email or phone number!");
|
|
32
|
-
}
|
|
33
|
-
return auth;
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
isCcMatch,
|
|
37
|
-
validateAuth
|
|
38
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getMailtoLink(email: any, recoveryShare: any): string;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isPasskeySupported: () => boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const routeMobileExternalWallet: (qrUri?: string) => void;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
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
|
-
VERIFICATIONS = "VERIFICATIONS",
|
|
10
|
-
EXTERNAL_WALLET_VERIFICATION = "EXTERNAL_WALLET_VERIFICATION",
|
|
11
|
-
AWAITING_OAUTH = "AWAITING_OAUTH",
|
|
12
|
-
FARCASTER_OAUTH = "FARCASTER_OAUTH",
|
|
13
|
-
BIOMETRIC_CREATION = "BIOMETRIC_CREATION",
|
|
14
|
-
AWAITING_BIOMETRIC_CREATION = "AWAITING_BIOMETRIC_CREATION",
|
|
15
|
-
PASSWORD_CREATION = "PASSWORD_CREATION",
|
|
16
|
-
AWAITING_PASSWORD_CREATION = "AWAITING_PASSWORD_CREATION",
|
|
17
|
-
AWAITING_WALLET_CREATION = "AWAITING_WALLET_CREATION",
|
|
18
|
-
TELEGRAM_OAUTH = "TELEGRAM_OAUTH",
|
|
19
|
-
WALLET_CREATION_DONE = "WALLET_CREATION_DONE",
|
|
20
|
-
SECRET = "SECRET",
|
|
21
|
-
BIOMETRIC_LOGIN = "BIOMETRIC_LOGIN",
|
|
22
|
-
AWAITING_BIOMETRIC_LOGIN = "AWAITING_BIOMETRIC_LOGIN",
|
|
23
|
-
AWAITING_PASSWORD_LOGIN = "AWAITING_PASSWORD_LOGIN",
|
|
24
|
-
LOGIN_DONE = "LOGIN_DONE",
|
|
25
|
-
SETUP_2FA = "SETUP_2FA",
|
|
26
|
-
VERIFY_2FA = "VERIFY_2FA",
|
|
27
|
-
TWO_FACTOR_DONE = "TWO_FACTOR_DONE",
|
|
28
|
-
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
29
|
-
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
30
|
-
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
31
|
-
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
32
|
-
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
33
|
-
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE",
|
|
34
|
-
ACCOUNT_MAIN = "ACCOUNT_MAIN",
|
|
35
|
-
CHAIN_SWITCH = "CHAIN_SWITCH"
|
|
36
|
-
}
|
|
37
|
-
export type ModalStepPropU = keyof typeof ModalStep | ModalStep;
|
|
38
|
-
export type ModalStepPropL = Lowercase<ModalStepPropU>;
|
|
39
|
-
export type ModalStepProp = ModalStepPropU | ModalStepPropL;
|
|
40
|
-
declare enum AccountStep {
|
|
41
|
-
ACCOUNT_MAIN = "ACCOUNT_MAIN",
|
|
42
|
-
AUTH_GUEST_SIGNUP = "AUTH_GUEST_SIGNUP",
|
|
43
|
-
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
44
|
-
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
45
|
-
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
46
|
-
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
47
|
-
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
48
|
-
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE",
|
|
49
|
-
CHAIN_SWITCH = "CHAIN_SWITCH"
|
|
50
|
-
}
|
|
51
|
-
export declare const RESET_TO_AUTH_STEPS: ModalStep[];
|
|
52
|
-
export declare const RESET_TO_ACCOUNT_STEPS: ModalStep[];
|
|
53
|
-
export declare const AccountPreviousStep: {
|
|
54
|
-
[key in AccountStep]: ModalStep | undefined;
|
|
55
|
-
};
|
|
56
|
-
declare enum SignUpModalStep {
|
|
57
|
-
AUTH_MAIN = "AUTH_MAIN",
|
|
58
|
-
AUTH_MORE = "AUTH_MORE",
|
|
59
|
-
EX_WALLET_MORE = "EX_WALLET_MORE",
|
|
60
|
-
EX_WALLET_SELECTED = "EX_WALLET_SELECTED",
|
|
61
|
-
VERIFICATIONS = "VERIFICATIONS",
|
|
62
|
-
EXTERNAL_WALLET_VERIFICATION = "EXTERNAL_WALLET_VERIFICATION",
|
|
63
|
-
AWAITING_OAUTH = "AWAITING_OAUTH",
|
|
64
|
-
FARCASTER_OAUTH = "FARCASTER_OAUTH",
|
|
65
|
-
TELEGRAM_OAUTH = "TELEGRAM_OAUTH",
|
|
66
|
-
BIOMETRIC_CREATION = "BIOMETRIC_CREATION",
|
|
67
|
-
AWAITING_BIOMETRIC_CREATION = "AWAITING_BIOMETRIC_CREATION",
|
|
68
|
-
PASSWORD_CREATION = "PASSWORD_CREATION",
|
|
69
|
-
AWAITING_PASSWORD_CREATION = "AWAITING_PASSWORD_CREATION",
|
|
70
|
-
AWAITING_WALLET_CREATION = "AWAITING_WALLET_CREATION",
|
|
71
|
-
WALLET_CREATION_DONE = "WALLET_CREATION_DONE",
|
|
72
|
-
SECRET = "SECRET",
|
|
73
|
-
SETUP_2FA = "SETUP_2FA",
|
|
74
|
-
VERIFY_2FA = "VERIFY_2FA",
|
|
75
|
-
TWO_FACTOR_DONE = "TWO_FACTOR_DONE",
|
|
76
|
-
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
77
|
-
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
78
|
-
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
79
|
-
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
80
|
-
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
81
|
-
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE"
|
|
82
|
-
}
|
|
83
|
-
export declare const SignUpPreviousStep: {
|
|
84
|
-
[key in SignUpModalStep]: ModalStep | undefined;
|
|
85
|
-
};
|
|
86
|
-
export declare const GuestPreviousStep: {
|
|
87
|
-
[key in AccountStep]: ModalStep | undefined;
|
|
88
|
-
};
|
|
89
|
-
declare enum LoginModalStep {
|
|
90
|
-
AUTH_MAIN = "AUTH_MAIN",
|
|
91
|
-
AUTH_MORE = "AUTH_MORE",
|
|
92
|
-
EX_WALLET_MORE = "EX_WALLET_MORE",
|
|
93
|
-
EX_WALLET_SELECTED = "EX_WALLET_SELECTED",
|
|
94
|
-
AWAITING_OAUTH = "AWAITING_OAUTH",
|
|
95
|
-
FARCASTER_OAUTH = "FARCASTER_OAUTH",
|
|
96
|
-
TELEGRAM_OAUTH = "TELEGRAM_OAUTH",
|
|
97
|
-
BIOMETRIC_LOGIN = "BIOMETRIC_LOGIN",
|
|
98
|
-
AWAITING_BIOMETRIC_LOGIN = "AWAITING_BIOMETRIC_LOGIN",
|
|
99
|
-
AWAITING_PASSWORD_LOGIN = "AWAITING_PASSWORD_LOGIN",
|
|
100
|
-
AWAITING_WALLET_CREATION = "AWAITING_WALLET_CREATION",
|
|
101
|
-
WALLET_CREATION_DONE = "WALLET_CREATION_DONE",
|
|
102
|
-
SECRET = "SECRET",
|
|
103
|
-
SETUP_2FA = "SETUP_2FA",
|
|
104
|
-
VERIFY_2FA = "VERIFY_2FA",
|
|
105
|
-
TWO_FACTOR_DONE = "TWO_FACTOR_DONE",
|
|
106
|
-
LOGIN_DONE = "LOGIN_DONE",
|
|
107
|
-
ADD_FUNDS_BUY = "ADD_FUNDS_BUY",
|
|
108
|
-
ADD_FUNDS_RECEIVE = "ADD_FUNDS_RECEIVE",
|
|
109
|
-
ADD_FUNDS_WITHDRAW = "ADD_FUNDS_WITHDRAW",
|
|
110
|
-
ADD_FUNDS_AWAITING = "ADD_FUNDS_AWAITING",
|
|
111
|
-
ADD_FUNDS_SUCCESS = "ADD_FUNDS_SUCCESS",
|
|
112
|
-
ADD_FUNDS_FAILURE = "ADD_FUNDS_FAILURE"
|
|
113
|
-
}
|
|
114
|
-
export declare const LoginPreviousStep: {
|
|
115
|
-
[key in LoginModalStep]: ModalStep | undefined;
|
|
116
|
-
};
|
|
117
|
-
export declare const getStepHasFooter: (step: ModalStep) => boolean;
|
|
118
|
-
export declare function getAddFundsStep(currentTab: EnabledFlow): ModalStep;
|
|
119
|
-
export declare const IFrameSteps: ModalStep[];
|
|
120
|
-
export {};
|