@getpara/react-sdk-lite 2.11.0 → 2.13.0
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/css/modal.css +0 -3
- package/dist/index.d.ts +1 -0
- package/dist/modal/ParaModal.js +57 -98
- package/dist/modal/components/Body/Body.d.ts +1 -2
- package/dist/modal/components/Body/Body.js +119 -231
- package/dist/modal/components/Controls/ChainSelect.js +3 -4
- package/dist/modal/components/Controls/Controls.js +2 -4
- package/dist/modal/components/Footer/Footer.js +3 -12
- package/dist/modal/components/Header/Header.js +13 -14
- package/dist/modal/components/Header/hooks/useStepTitle.d.ts +1 -1
- package/dist/modal/components/Header/hooks/useStepTitle.js +88 -71
- package/dist/modal/components/ModalContent/ModalContent.d.ts +1 -1
- package/dist/modal/components/ModalContent/ModalContent.js +6 -14
- package/dist/modal/components/OnRampComponents/AddingFunds.js +2 -2
- package/dist/modal/components/WalletCard/WalletCard.js +9 -9
- package/dist/modal/components/WalletSelectOld/WalletSelectOld.js +13 -18
- package/dist/modal/components/common.d.ts +5 -0
- package/dist/modal/components/common.js +17 -10
- package/dist/modal/components/{Account → flows/account/Account}/Account.js +30 -27
- package/dist/modal/components/{Account/AccountHeader.d.ts → flows/account/Account/Header.d.ts} +1 -1
- package/dist/modal/components/{Account/AccountHeader.js → flows/account/Account/Header.js} +8 -8
- package/dist/modal/components/{Account/AccountWalletSelect.d.ts → flows/account/Account/WalletSelect.d.ts} +1 -1
- package/dist/modal/components/{Account/AccountWalletSelect.js → flows/account/Account/WalletSelect.js} +17 -22
- package/dist/modal/components/flows/account/AccountFlow/AccountFlow.d.ts +12 -0
- package/dist/modal/components/flows/account/AccountFlow/AccountFlow.js +126 -0
- package/dist/modal/components/flows/account/AccountProvider/AccountContext.d.ts +11 -0
- package/dist/modal/components/flows/account/AccountProvider/AccountContext.js +42 -0
- package/dist/modal/components/flows/account/AccountProvider/AccountProvider.d.ts +4 -0
- package/dist/modal/components/flows/account/AccountProvider/AccountProvider.js +110 -0
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFunds.js +12 -12
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAsset.js +3 -3
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAwaiting.js +7 -8
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsContext.d.ts +1 -1
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsContext.js +11 -11
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsDone.js +8 -9
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsNetwork.js +2 -2
- package/dist/modal/components/flows/account/AddFunds/AddFundsProvider.d.ts +1 -0
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsProvider.js +13 -12
- package/dist/modal/components/flows/account/AddFunds/AddFundsReceive.d.ts +1 -0
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsReceive.js +10 -10
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsSettings.js +10 -10
- package/dist/modal/components/{AddFunds → flows/account/AddFunds}/MoonPayEmbed.js +1 -1
- package/dist/modal/components/flows/account/AddFunds/utils.d.ts +3 -0
- package/dist/modal/components/flows/account/AddFunds/utils.js +16 -0
- package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/ChainSwitch.js +7 -10
- package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/config.js +1 -1
- package/dist/modal/components/{Account → flows/account/Profile}/AccountMonitorTx.js +13 -13
- package/dist/modal/components/flows/account/Profile/FarcasterLink.d.ts +2 -0
- package/dist/modal/components/{OAuth → flows/account/Profile}/FarcasterLink.js +6 -6
- package/dist/modal/components/{Account/AccountProfile.d.ts → flows/account/Profile/Profile.d.ts} +1 -1
- package/dist/modal/components/{Account/AccountProfile.js → flows/account/Profile/Profile.js} +20 -24
- package/dist/modal/components/{Account/AccountProfileEntry.js → flows/account/Profile/ProfileEntry.js} +13 -15
- package/dist/modal/components/flows/account/Profile/ProfileLink.d.ts +1 -0
- package/dist/modal/components/{Account/AccountProfileLink.js → flows/account/Profile/ProfileLink.js} +19 -34
- package/dist/modal/components/flows/account/Profile/ProfileLinkOptions.d.ts +1 -0
- package/dist/modal/components/{Account/AccountProfileLinkOptions.js → flows/account/Profile/ProfileLinkOptions.js} +11 -11
- package/dist/modal/components/flows/account/Profile/ProfileUnlink.d.ts +1 -0
- package/dist/modal/components/{Account/AccountProfileUnlink.js → flows/account/Profile/ProfileUnlink.js} +6 -6
- package/dist/modal/{hooks/useTelegramLogin.d.ts → components/flows/account/Profile/useTelegramLink.d.ts} +1 -5
- package/dist/modal/{hooks/useTelegramLogin.js → components/flows/account/Profile/useTelegramLink.js} +16 -23
- package/dist/modal/components/{Account/AccountSend → flows/account/Send}/AssetNetwork.js +1 -1
- package/dist/modal/components/flows/account/Send/SendAsset.d.ts +1 -0
- package/dist/modal/components/{Account/AccountSend/AccountSendAsset.js → flows/account/Send/SendAsset.js} +11 -12
- package/dist/modal/components/flows/account/Send/SendForm.d.ts +1 -0
- package/dist/modal/components/{Account/AccountSend/AccountSendForm.js → flows/account/Send/SendForm.js} +15 -16
- package/dist/modal/components/flows/account/Send/SendNetwork.d.ts +1 -0
- package/dist/modal/components/{Account/AccountSend/AccountSendNetwork.js → flows/account/Send/SendNetwork.js} +9 -10
- package/dist/modal/components/flows/account/Send/SendNoAssets.d.ts +1 -0
- package/dist/modal/components/{Account/AccountSend/AccountSendNoAssets.js → flows/account/Send/SendNoAssets.js} +8 -9
- package/dist/modal/components/{Account/AccountSend → flows/account/Send}/context.js +19 -6
- package/dist/modal/components/{Account/AccountSend → flows/account/Send}/index.js +11 -11
- package/dist/modal/components/flows/account/SwitchWallets/SwitchWallets.d.ts +1 -0
- package/dist/modal/components/{SwitchWalletsStep/SwitchWalletsStep.js → flows/account/SwitchWallets/SwitchWallets.js} +4 -4
- package/dist/modal/components/flows/account/Wallet/Wallet.d.ts +1 -0
- package/dist/modal/components/{Account/AccountWallet.js → flows/account/Wallet/Wallet.js} +12 -18
- package/dist/modal/components/flows/auth/AuthFlow/AuthFlow.d.ts +10 -0
- package/dist/modal/components/flows/auth/AuthFlow/AuthFlow.js +94 -0
- package/dist/modal/components/flows/auth/AuthMain/AuthMain.d.ts +9 -0
- package/dist/modal/components/{AuthMainStep/AuthMainStep.js → flows/auth/AuthMain/AuthMain.js} +10 -21
- package/dist/modal/components/flows/auth/AuthMain/AuthMainContent.d.ts +9 -0
- package/dist/modal/components/{AuthMainStep/AuthMainStepContent.js → flows/auth/AuthMain/AuthMainContent.js} +49 -24
- package/dist/modal/components/flows/auth/AwaitingAccountSetup/AwaitingAccountSetup.d.ts +1 -0
- package/dist/modal/components/flows/auth/AwaitingAccountSetup/AwaitingAccountSetup.js +31 -0
- package/dist/modal/components/flows/auth/AwaitingBiometrics/AwaitingBiometrics.d.ts +1 -0
- package/dist/modal/components/flows/auth/AwaitingBiometrics/AwaitingBiometrics.js +21 -0
- package/dist/modal/components/flows/auth/AwaitingOAuth/AwaitingOAuth.d.ts +1 -0
- package/dist/modal/components/{AwaitingOAuthStep/AwaitingOAuthStep.js → flows/auth/AwaitingOAuth/AwaitingOAuth.js} +4 -4
- package/dist/modal/components/flows/auth/AwaitingPassword/AwaitingPassword.d.ts +1 -0
- package/dist/modal/components/flows/auth/AwaitingPassword/AwaitingPassword.js +22 -0
- package/dist/modal/components/flows/auth/BiometricCreation/BiometricCreation.d.ts +1 -0
- package/dist/modal/components/{BiometricCreationStep/BiometricCreationStep.js → flows/auth/BiometricCreation/BiometricCreation.js} +25 -22
- package/dist/modal/components/flows/auth/BiometricLogin/BiometricLogin.d.ts +1 -0
- package/dist/modal/components/flows/auth/BiometricLogin/BiometricLogin.js +72 -0
- package/dist/modal/components/flows/auth/LoginDone/LoginDone.d.ts +5 -0
- package/dist/modal/components/{LoginDoneStep/LoginDoneStep.js → flows/auth/LoginDone/LoginDone.js} +9 -13
- package/dist/modal/components/{OAuth → flows/auth/OAuth}/OAuth.js +15 -23
- package/dist/modal/components/{RecoverySecretStep → flows/auth/RecoverySecretStep}/RecoverySecretStep.js +9 -11
- package/dist/modal/components/flows/auth/Setup2FA/Setup2FA.d.ts +5 -0
- package/dist/modal/components/{Setup2FAStep/Setup2FAStep.js → flows/auth/Setup2FA/Setup2FA.js} +42 -19
- package/dist/modal/components/flows/auth/Verification/Verification.d.ts +1 -0
- package/dist/modal/components/flows/auth/Verification/Verification.js +36 -0
- package/dist/modal/components/flows/auth/WalletCreationDone/WalletCreationDone.d.ts +6 -0
- package/dist/modal/components/{WalletCreationDoneStep/WalletCreationDoneStep.js → flows/auth/WalletCreationDone/WalletCreationDone.js} +19 -46
- package/dist/modal/components/{AuthOptions → shared}/AuthOptions.d.ts +2 -2
- package/dist/modal/components/{AuthOptions → shared}/AuthOptions.js +18 -15
- package/dist/modal/components/{ExternalWalletStep/ExternalWalletStep.d.ts → shared/ConnectExternalWallet/ConnectExternalWallet.d.ts} +1 -1
- package/dist/modal/components/{ExternalWalletStep/ExternalWalletStep.js → shared/ConnectExternalWallet/ConnectExternalWallet.js} +17 -37
- package/dist/modal/components/{ExternalWalletStep → shared/ConnectExternalWallet}/config.js +1 -1
- package/dist/modal/components/{AuthInput/AuthInput.d.ts → shared/EmailOrPhone/EmailOrPhoneInput.d.ts} +4 -4
- package/dist/modal/components/{AuthInput/AuthInput.js → shared/EmailOrPhone/EmailOrPhoneInput.js} +14 -10
- package/dist/modal/components/{AuthInput → shared/EmailOrPhone}/phoneMasks.js +1 -1
- package/dist/modal/components/{ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts → shared/ExternalWalletNetworkSelect.d.ts} +1 -1
- package/dist/modal/components/{ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js → shared/ExternalWalletNetworkSelect.js} +9 -9
- package/dist/modal/components/{ExternalWallets → shared}/ExternalWallets.js +17 -12
- package/dist/modal/components/shared/IFrame.d.ts +1 -0
- package/dist/modal/components/shared/IFrame.js +87 -0
- package/dist/modal/components/{VerificationCodeStep/VerificationCodeStep.d.ts → shared/VerificationCode.d.ts} +3 -4
- package/dist/modal/components/{VerificationCodeStep/VerificationCodeStep.js → shared/VerificationCode.js} +4 -28
- package/dist/modal/components/shared/VerifyExternalWallet.d.ts +1 -0
- package/dist/modal/components/{ExternalWalletVerificationStep/ExternalWalletVerificationStep.js → shared/VerifyExternalWallet.js} +10 -17
- package/dist/modal/hooks/index.d.ts +1 -2
- package/dist/modal/hooks/index.js +1 -2
- package/dist/modal/hooks/useAuthView.d.ts +4 -0
- package/dist/modal/hooks/useAuthView.js +115 -0
- package/dist/modal/hooks/useCanbGoBack.d.ts +3 -0
- package/dist/modal/hooks/useCanbGoBack.js +47 -0
- package/dist/modal/{components/AuthInput/hooks → hooks}/useDropdownPosition.d.ts +1 -1
- package/dist/modal/hooks/useDropdownPosition.js +41 -0
- package/dist/modal/hooks/useGoBack.d.ts +4 -1
- package/dist/modal/hooks/useGoBack.js +60 -36
- package/dist/modal/hooks/useSendMutations.js +4 -5
- package/dist/modal/hooks/useTransactionMonitoring.js +8 -8
- package/dist/modal/index.d.ts +1 -2
- package/dist/modal/index.js +1 -3
- package/dist/modal/stores/index.d.ts +0 -1
- package/dist/modal/stores/index.js +0 -1
- package/dist/modal/types/modalProps.d.ts +18 -8
- package/dist/provider/ParaProviderMin.js +34 -38
- package/dist/provider/actions/getWallet.d.ts +1 -1
- package/dist/provider/actions/index.d.ts +43 -49
- package/dist/provider/actions/index.js +4 -0
- package/dist/provider/components/CosmosWalletWrapper.js +0 -3
- package/dist/provider/components/EvmWalletWrapper.js +0 -3
- package/dist/provider/components/ExternalWalletWrapper.js +8 -2
- package/dist/provider/hooks/mutations/index.d.ts +2 -0
- package/dist/provider/hooks/mutations/index.js +4 -0
- package/dist/provider/hooks/mutations/useAddAuthMethod.d.ts +7 -12
- package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.d.ts +34 -0
- package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.js +28 -0
- package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.d.ts +34 -0
- package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.js +28 -0
- package/dist/provider/hooks/mutations/useClaimPregenWallets.d.ts +7 -13
- package/dist/provider/hooks/mutations/useClaimPregenWallets.js +4 -1
- package/dist/provider/hooks/mutations/useCreateGuestWallets.d.ts +7 -6
- package/dist/provider/hooks/mutations/useCreateGuestWallets.js +6 -3
- package/dist/provider/hooks/mutations/useCreatePregenWallet.d.ts +7 -93
- package/dist/provider/hooks/mutations/useCreatePregenWallet.js +4 -1
- package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.d.ts +7 -15
- package/dist/provider/hooks/mutations/useCreateWallet.d.ts +7 -15
- package/dist/provider/hooks/mutations/useCreateWallet.js +4 -1
- package/dist/provider/hooks/mutations/useCreateWalletPerType.d.ts +7 -27
- package/dist/provider/hooks/mutations/useEnable2fa.d.ts +7 -12
- package/dist/provider/hooks/mutations/useExportPrivateKey.d.ts +2 -7
- package/dist/provider/hooks/mutations/useHasPregenWallet.d.ts +7 -13
- package/dist/provider/hooks/mutations/useIssueJwt.d.ts +7 -21
- package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +6 -7
- package/dist/provider/hooks/mutations/useKeepSessionAlive.js +2 -2
- package/dist/provider/hooks/mutations/useLoginExternalWallet.d.ts +7 -25
- package/dist/provider/hooks/mutations/useLoginExternalWallet.js +4 -1
- package/dist/provider/hooks/mutations/useLogout.d.ts +7 -12
- package/dist/provider/hooks/mutations/useResendVerificationCode.d.ts +7 -13
- package/dist/provider/hooks/mutations/useResendVerificationCode.js +4 -1
- package/dist/provider/hooks/mutations/useSetup2fa.d.ts +7 -7
- package/dist/provider/hooks/mutations/useSetup2fa.js +2 -2
- package/dist/provider/hooks/mutations/useSignMessage.d.ts +7 -31
- package/dist/provider/hooks/mutations/useSignTransaction.d.ts +7 -31
- package/dist/provider/hooks/mutations/useSignTransaction.js +4 -1
- package/dist/provider/hooks/mutations/useSignUpOrLogIn.d.ts +7 -19
- package/dist/provider/hooks/mutations/useSignUpOrLogIn.js +4 -1
- package/dist/provider/hooks/mutations/useSwitchWallets.d.ts +7 -30
- package/dist/provider/hooks/mutations/useSwitchWallets.js +4 -1
- package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.d.ts +7 -15
- package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.js +4 -1
- package/dist/provider/hooks/mutations/useVerify2fa.d.ts +7 -30
- package/dist/provider/hooks/mutations/useVerifyExternalWallet.d.ts +7 -19
- package/dist/provider/hooks/mutations/useVerifyExternalWallet.js +4 -1
- package/dist/provider/hooks/mutations/useVerifyFarcaster.d.ts +7 -31
- package/dist/provider/hooks/mutations/useVerifyFarcaster.js +4 -1
- package/dist/provider/hooks/mutations/useVerifyNewAccount.d.ts +7 -66
- package/dist/provider/hooks/mutations/useVerifyNewAccount.js +4 -1
- package/dist/provider/hooks/mutations/useVerifyOAuth.d.ts +7 -37
- package/dist/provider/hooks/mutations/useVerifyTelegram.d.ts +7 -22
- package/dist/provider/hooks/mutations/useWaitForLogin.d.ts +7 -30
- package/dist/provider/hooks/mutations/useWaitForLogin.js +4 -1
- package/dist/provider/hooks/mutations/useWaitForSignup.d.ts +7 -18
- package/dist/provider/hooks/mutations/useWaitForWalletCreation.d.ts +7 -27
- package/dist/provider/hooks/mutations/utils.js +1 -1
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +4 -1
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +6 -1
- package/dist/provider/hooks/queries/useLinkedAccounts.d.ts +2 -4
- package/dist/provider/hooks/queries/useParaStatus.d.ts +0 -1
- package/dist/provider/hooks/queries/useParaStatus.js +0 -2
- package/dist/provider/hooks/queries/useWallet.d.ts +1 -1
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +1 -1
- package/dist/provider/hooks/utils/useEventListeners.js +0 -7
- package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +1 -0
- package/dist/provider/hooks/utils/useFormattedBiometricHints.js +9 -5
- package/dist/provider/hooks/utils/useModal.d.ts +4 -3
- package/dist/provider/hooks/utils/useModal.js +17 -9
- package/dist/provider/hooks/utils/useWalletState.d.ts +3 -3
- package/dist/provider/hooks/utils/useWalletState.js +14 -6
- package/dist/provider/providers/AccountLinkProvider.js +21 -19
- package/dist/provider/providers/AuthProvider/AuthContext.d.ts +19 -0
- package/dist/provider/providers/AuthProvider/AuthContext.js +35 -0
- package/dist/provider/providers/AuthProvider/AuthProvider.d.ts +9 -0
- package/dist/provider/providers/AuthProvider/AuthProvider.js +261 -0
- package/dist/provider/providers/ExternalWalletProvider.d.ts +12 -4
- package/dist/provider/providers/ExternalWalletProvider.js +285 -283
- package/dist/provider/stores/getters.d.ts +1 -1
- package/dist/provider/stores/getters.js +5 -5
- package/dist/provider/stores/setters.js +2 -2
- package/dist/provider/stores/slices/accountFlow.d.ts +3 -0
- package/dist/provider/stores/slices/accountFlow.js +30 -0
- package/dist/provider/stores/slices/authFlow.d.ts +3 -0
- package/dist/provider/stores/slices/authFlow.js +63 -0
- package/dist/provider/stores/slices/externalWallets.js +10 -0
- package/dist/provider/stores/slices/index.d.ts +4 -0
- package/dist/provider/stores/slices/index.js +4 -0
- package/dist/provider/stores/slices/modal.js +8 -2
- package/dist/provider/stores/slices/onRamp.d.ts +3 -0
- package/dist/provider/stores/slices/onRamp.js +20 -0
- package/dist/provider/stores/slices/paraState.d.ts +3 -0
- package/dist/provider/stores/slices/paraState.js +9 -0
- package/dist/provider/stores/types.d.ts +117 -5
- package/dist/provider/stores/types.js +9 -0
- package/dist/provider/stores/useStore.d.ts +5 -3
- package/dist/provider/stores/useStore.js +15 -8
- package/package.json +8 -8
- package/dist/modal/components/Account/AccountProfileLink.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileUnlink.d.ts +0 -1
- package/dist/modal/components/Account/AccountSend/AccountSendAsset.d.ts +0 -1
- package/dist/modal/components/Account/AccountSend/AccountSendForm.d.ts +0 -1
- package/dist/modal/components/Account/AccountSend/AccountSendNetwork.d.ts +0 -1
- package/dist/modal/components/Account/AccountSend/AccountSendNoAssets.d.ts +0 -1
- package/dist/modal/components/Account/AccountWallet.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +0 -33
- package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
- package/dist/modal/components/AwaitingAccountStep/AwaitingAccountStep.d.ts +0 -1
- package/dist/modal/components/AwaitingAccountStep/AwaitingAccountStep.js +0 -21
- 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/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -21
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -24
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -67
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
- package/dist/modal/components/Hero/Hero.d.ts +0 -1
- package/dist/modal/components/Hero/Hero.js +0 -118
- package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
- package/dist/modal/components/IFrameStep/IFrameStep.js +0 -83
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -5
- package/dist/modal/components/OAuth/FarcasterLink.d.ts +0 -2
- package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -1
- package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -53
- package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -8
- package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -91
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
- package/dist/modal/components/SwitchWalletsStep/SwitchWalletsStep.d.ts +0 -1
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
- package/dist/modal/hooks/useFarcasterLogin.d.ts +0 -9
- package/dist/modal/hooks/useFarcasterLogin.js +0 -77
- package/dist/modal/stores/modal/actions.d.ts +0 -3
- package/dist/modal/stores/modal/actions.js +0 -146
- package/dist/modal/stores/modal/useModalStore.d.ts +0 -119
- package/dist/modal/stores/modal/useModalStore.js +0 -80
- package/dist/modal/utils/steps.d.ts +0 -162
- package/dist/modal/utils/steps.js +0 -335
- package/dist/provider/providers/AuthProvider.d.ts +0 -43
- package/dist/provider/providers/AuthProvider.js +0 -777
- /package/dist/modal/components/{Account → flows/account/Account}/Account.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFunds.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAsset.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsAwaiting.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsDone.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsNetwork.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/AddFundsSettings.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/MoonPayEmbed.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/index.d.ts +0 -0
- /package/dist/modal/components/{AddFunds → flows/account/AddFunds}/index.js +0 -0
- /package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/ChainSwitch.d.ts +0 -0
- /package/dist/modal/components/{ChainSwitch → flows/account/ChainSwitch}/config.d.ts +0 -0
- /package/dist/modal/components/{Account → flows/account/Profile}/AccountMonitorTx.d.ts +0 -0
- /package/dist/modal/components/{Account/AccountProfileEntry.d.ts → flows/account/Profile/ProfileEntry.d.ts} +0 -0
- /package/dist/modal/components/{Account/AccountSend → flows/account/Send}/AssetNetwork.d.ts +0 -0
- /package/dist/modal/components/{Account/AccountSend → flows/account/Send}/context.d.ts +0 -0
- /package/dist/modal/components/{Account/AccountSend → flows/account/Send}/index.d.ts +0 -0
- /package/dist/modal/components/{OAuth → flows/auth/OAuth}/OAuth.d.ts +0 -0
- /package/dist/modal/components/{RecoverySecretStep → flows/auth/RecoverySecretStep}/RecoverySecretStep.d.ts +0 -0
- /package/dist/modal/components/{ExternalWalletStep → shared/ConnectExternalWallet}/config.d.ts +0 -0
- /package/dist/modal/components/{AuthInput → shared/EmailOrPhone}/phoneMasks.d.ts +0 -0
- /package/dist/modal/components/{ExternalWallets → shared}/ExternalWallets.d.ts +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "../../../chunk-MMUBH76A.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { useContext, useEffect, useRef } from "react";
|
|
8
|
+
import { AuthMethod } from "@getpara/web-sdk";
|
|
9
|
+
import { AuthContext } from "./AuthContext.js";
|
|
10
|
+
import {
|
|
11
|
+
useAuthenticateWithEmailOrPhone,
|
|
12
|
+
useAuthenticateWithOAuth,
|
|
13
|
+
useCreateGuestWallets,
|
|
14
|
+
useSetup2fa
|
|
15
|
+
} from "../../index.js";
|
|
16
|
+
import { openPopup } from "../../../modal/utils/openPopup.js";
|
|
17
|
+
import { useStore, store } from "../../stores/useStore.js";
|
|
18
|
+
import { useGoBack } from "../../../modal/hooks/useGoBack.js";
|
|
19
|
+
import { useUserAgent } from "@getpara/react-common";
|
|
20
|
+
import parsePhoneNumberFromString from "libphonenumber-js";
|
|
21
|
+
import { validateInput } from "../../../modal/utils/authInputHelpers.js";
|
|
22
|
+
import { useInternalClient } from "../../hooks/utils/useInternalClient.js";
|
|
23
|
+
const AuthProvider = ({ children, isTwoFactorAuthEnabled, defaultAuthIdentifier }) => {
|
|
24
|
+
const para = useInternalClient();
|
|
25
|
+
const refs = useStore((state) => state.refs);
|
|
26
|
+
const { createGuestWalletsAsync } = useCreateGuestWallets();
|
|
27
|
+
const { authenticateWithEmailOrPhoneAsync, isPending: isAuthenticatingWithEmailOrPhone } = useAuthenticateWithEmailOrPhone();
|
|
28
|
+
const { authenticateWithOAuthAsync, isPending: isAuthenticatingWithOAuth } = useAuthenticateWithOAuth();
|
|
29
|
+
const { setup2faAsync } = useSetup2fa();
|
|
30
|
+
const setIFrameUrl = useStore((state) => state.setIFrameUrl);
|
|
31
|
+
const setAuthMethod = useStore((state) => state.setAuthMethod);
|
|
32
|
+
const setShowPostAuthFlow = useStore((state) => state.setShowPostAuthFlow);
|
|
33
|
+
const setRecoverySecret = useStore((state) => state.setRecoverySecret);
|
|
34
|
+
const setTwoFactorAuthUri = useStore((state) => state.setTwoFactorAuthUri);
|
|
35
|
+
const setHasCreatedWallets = useStore((state) => state.setHasCreatedWallets);
|
|
36
|
+
const bareModal = useStore((state) => {
|
|
37
|
+
var _a;
|
|
38
|
+
return (_a = state.modalConfig) == null ? void 0 : _a.bareModal;
|
|
39
|
+
});
|
|
40
|
+
const setIsOpen = useStore((state) => state.setIsOpen);
|
|
41
|
+
const onWalletCreated = useStore((state) => {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = state.modalConfig) == null ? void 0 : _a.onWalletCreated;
|
|
44
|
+
});
|
|
45
|
+
const { goBack } = useGoBack();
|
|
46
|
+
const userAgent = useUserAgent();
|
|
47
|
+
const paraState = useStore((state) => state.paraState);
|
|
48
|
+
const authStateInfo = paraState == null ? void 0 : paraState.authStateInfo;
|
|
49
|
+
const isAuthFlowActiveRef = useRef(false);
|
|
50
|
+
const lastAuthPhaseRef = useRef(null);
|
|
51
|
+
const lastSetIFrameUrlRef = useRef(null);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
const isMobile = (userAgent == null ? void 0 : userAgent.device.type) === "mobile";
|
|
54
|
+
const unsub = store.subscribe((state) => {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const info = (_a = state.paraState) == null ? void 0 : _a.authStateInfo;
|
|
57
|
+
const authPhase = (_b = state.paraState) == null ? void 0 : _b.authPhase;
|
|
58
|
+
if (!isAuthFlowActiveRef.current || !info || !authPhase) return;
|
|
59
|
+
if (authPhase === lastAuthPhaseRef.current) return;
|
|
60
|
+
lastAuthPhaseRef.current = authPhase;
|
|
61
|
+
if (info.verificationUrl) {
|
|
62
|
+
if (info.verificationUrl !== lastSetIFrameUrlRef.current) {
|
|
63
|
+
lastSetIFrameUrlRef.current = info.verificationUrl;
|
|
64
|
+
store.getState().setIFrameUrl(info.verificationUrl);
|
|
65
|
+
}
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const { passkeyUrl, passwordUrl, pinUrl, isPasskeySupported } = info;
|
|
69
|
+
const hasPassword = !!passwordUrl;
|
|
70
|
+
const hasPin = !!pinUrl;
|
|
71
|
+
const hasExactlyOnePasswordOrPin = hasPassword && !hasPin || !hasPassword && hasPin;
|
|
72
|
+
const shouldUseIFrame = !passkeyUrl || isMobile && !isPasskeySupported && hasExactlyOnePasswordOrPin;
|
|
73
|
+
if (shouldUseIFrame && (hasPassword || hasPin)) {
|
|
74
|
+
const biometricUrl = hasPassword ? passwordUrl : pinUrl;
|
|
75
|
+
if (biometricUrl !== lastSetIFrameUrlRef.current) {
|
|
76
|
+
lastSetIFrameUrlRef.current = biometricUrl;
|
|
77
|
+
store.getState().setAuthMethod(hasPassword ? AuthMethod.PASSWORD : AuthMethod.PIN);
|
|
78
|
+
store.getState().setIFrameUrl(biometricUrl);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return unsub;
|
|
83
|
+
}, [userAgent]);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
const triggerAuth = () => __async(void 0, null, function* () {
|
|
86
|
+
var _a;
|
|
87
|
+
if (!para) return;
|
|
88
|
+
if (defaultAuthIdentifier && ((_a = para.authInfo) == null ? void 0 : _a.identifier) !== defaultAuthIdentifier) {
|
|
89
|
+
const number = parsePhoneNumberFromString(defaultAuthIdentifier);
|
|
90
|
+
try {
|
|
91
|
+
const auth = validateInput(
|
|
92
|
+
number ? number.nationalNumber : defaultAuthIdentifier,
|
|
93
|
+
(number == null ? void 0 : number.countryCallingCode) ? `+${number == null ? void 0 : number.countryCallingCode}` : void 0,
|
|
94
|
+
number ? "phone" : "email"
|
|
95
|
+
);
|
|
96
|
+
yield para.setAuth(number ? { phone: defaultAuthIdentifier } : { email: defaultAuthIdentifier });
|
|
97
|
+
yield handleAuthenticateWithEmailOrPhone(auth);
|
|
98
|
+
} catch (err) {
|
|
99
|
+
console.error("invalid user identifier:", err.message);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
triggerAuth();
|
|
104
|
+
}, []);
|
|
105
|
+
const handleVerification = (code) => __async(void 0, null, function* () {
|
|
106
|
+
if (!para) return;
|
|
107
|
+
yield para == null ? void 0 : para.verifyNewAccount({ verificationCode: code });
|
|
108
|
+
});
|
|
109
|
+
const setupBeforeAuth = () => {
|
|
110
|
+
setAuthMethod(null);
|
|
111
|
+
setShowPostAuthFlow(true);
|
|
112
|
+
isAuthFlowActiveRef.current = true;
|
|
113
|
+
lastAuthPhaseRef.current = null;
|
|
114
|
+
lastSetIFrameUrlRef.current = null;
|
|
115
|
+
};
|
|
116
|
+
const postAuth = (resp) => __async(void 0, null, function* () {
|
|
117
|
+
isAuthFlowActiveRef.current = false;
|
|
118
|
+
if (!resp) {
|
|
119
|
+
goBack();
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (isTwoFactorAuthEnabled) {
|
|
123
|
+
yield setup2faAsync(void 0, {
|
|
124
|
+
onSuccess: (data) => {
|
|
125
|
+
if (!data.isSetup && data.uri) {
|
|
126
|
+
setTwoFactorAuthUri(data.uri);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
if (resp == null ? void 0 : resp.recoverySecret) {
|
|
132
|
+
setRecoverySecret(resp.recoverySecret);
|
|
133
|
+
}
|
|
134
|
+
if (resp == null ? void 0 : resp.hasCreatedWallets) {
|
|
135
|
+
onWalletCreated == null ? void 0 : onWalletCreated({ recoverySecret: resp.recoverySecret });
|
|
136
|
+
setHasCreatedWallets(resp.hasCreatedWallets);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
const handleAuthenticateWithEmailOrPhone = (auth) => __async(void 0, null, function* () {
|
|
140
|
+
setupBeforeAuth();
|
|
141
|
+
try {
|
|
142
|
+
const resp = yield authenticateWithEmailOrPhoneAsync({
|
|
143
|
+
auth,
|
|
144
|
+
sessionPollingCallbacks: {
|
|
145
|
+
onPoll: () => {
|
|
146
|
+
const isUsingIFrame = !!store.getState().iFrameUrl;
|
|
147
|
+
if (isUsingIFrame) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const authMethod = store.getState().authMethod;
|
|
151
|
+
if ((!refs.popupWindow.current || refs.popupWindow.current.closed) && authMethod !== null && authMethod !== AuthMethod.BASIC_LOGIN) {
|
|
152
|
+
setAuthMethod(null);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
yield postAuth(resp);
|
|
158
|
+
} catch (e) {
|
|
159
|
+
isAuthFlowActiveRef.current = false;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
const handleAuthenticateWithOAuth = (method) => __async(void 0, null, function* () {
|
|
163
|
+
setupBeforeAuth();
|
|
164
|
+
let shouldCancelAfterNextPoll = false;
|
|
165
|
+
let shouldCancel = false;
|
|
166
|
+
try {
|
|
167
|
+
const resp = yield authenticateWithOAuthAsync({
|
|
168
|
+
method,
|
|
169
|
+
redirectCallbacks: __spreadValues(__spreadValues({}, method !== "FARCASTER" && method !== "TELEGRAM" && {
|
|
170
|
+
onOAuthPopup: (window2) => {
|
|
171
|
+
refs.popupWindow.current = window2;
|
|
172
|
+
}
|
|
173
|
+
}), (method === "TELEGRAM" || method === "FARCASTER") && {
|
|
174
|
+
onOAuthUrl: (url) => {
|
|
175
|
+
setIFrameUrl(url);
|
|
176
|
+
}
|
|
177
|
+
}),
|
|
178
|
+
sessionPollingCallbacks: {
|
|
179
|
+
onPoll: () => {
|
|
180
|
+
const isUsingIFrame = !!store.getState().iFrameUrl;
|
|
181
|
+
if (isUsingIFrame) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const authMethod = store.getState().authMethod;
|
|
185
|
+
if ((!refs.popupWindow.current || refs.popupWindow.current.closed) && authMethod !== null && authMethod !== AuthMethod.BASIC_LOGIN) {
|
|
186
|
+
setAuthMethod(null);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
oAuthPollingCallbacks: {
|
|
191
|
+
onPoll: () => {
|
|
192
|
+
if (!refs.popupWindow.current || refs.popupWindow.current.closed) {
|
|
193
|
+
shouldCancelAfterNextPoll = true;
|
|
194
|
+
}
|
|
195
|
+
if (shouldCancelAfterNextPoll) {
|
|
196
|
+
shouldCancel = true;
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
isCanceled: () => shouldCancel,
|
|
200
|
+
onCancel: () => {
|
|
201
|
+
goBack();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
yield postAuth(resp);
|
|
206
|
+
} catch (e) {
|
|
207
|
+
isAuthFlowActiveRef.current = false;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
const openBiometricUrl = (method) => {
|
|
211
|
+
var _a, _b, _c;
|
|
212
|
+
setAuthMethod(method);
|
|
213
|
+
const passkeyUrl = (_a = authStateInfo == null ? void 0 : authStateInfo.passkeyUrl) != null ? _a : null;
|
|
214
|
+
const passwordUrl = (_b = authStateInfo == null ? void 0 : authStateInfo.passwordUrl) != null ? _b : null;
|
|
215
|
+
const pinUrl = (_c = authStateInfo == null ? void 0 : authStateInfo.pinUrl) != null ? _c : null;
|
|
216
|
+
const isPassword = method === AuthMethod.PASSWORD;
|
|
217
|
+
const isPIN = method === AuthMethod.PIN;
|
|
218
|
+
if (isPassword || isPIN) {
|
|
219
|
+
const biometricUrl = isPassword ? passwordUrl : pinUrl;
|
|
220
|
+
setIFrameUrl(biometricUrl);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (typeof window !== "undefined" && passkeyUrl) {
|
|
224
|
+
refs.popupWindow.current = openPopup({
|
|
225
|
+
url: passkeyUrl,
|
|
226
|
+
target: "ParaPasskey",
|
|
227
|
+
type: "LOGIN_PASSKEY",
|
|
228
|
+
current: refs.popupWindow.current
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const createGuestWallets = () => __async(void 0, null, function* () {
|
|
233
|
+
if (!bareModal) {
|
|
234
|
+
setIsOpen(false);
|
|
235
|
+
}
|
|
236
|
+
yield createGuestWalletsAsync(void 0);
|
|
237
|
+
});
|
|
238
|
+
const value = {
|
|
239
|
+
// Methods
|
|
240
|
+
verifyEmailOrPhone: {
|
|
241
|
+
verify: handleVerification,
|
|
242
|
+
isVerifying: false
|
|
243
|
+
},
|
|
244
|
+
authenticateWithEmailOrPhone: {
|
|
245
|
+
authenticate: handleAuthenticateWithEmailOrPhone,
|
|
246
|
+
isAuthenticating: isAuthenticatingWithEmailOrPhone
|
|
247
|
+
},
|
|
248
|
+
authenticateWithOAuth: {
|
|
249
|
+
authenticate: handleAuthenticateWithOAuth,
|
|
250
|
+
isAuthenticating: isAuthenticatingWithOAuth
|
|
251
|
+
},
|
|
252
|
+
openBiometricUrl,
|
|
253
|
+
createGuestWallets
|
|
254
|
+
};
|
|
255
|
+
return /* @__PURE__ */ jsx(AuthContext.Provider, { value, children });
|
|
256
|
+
};
|
|
257
|
+
const useAuth = () => useContext(AuthContext);
|
|
258
|
+
export {
|
|
259
|
+
AuthProvider,
|
|
260
|
+
useAuth
|
|
261
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { TWalletType } from '@getpara/web-sdk';
|
|
3
3
|
import { BalanceManagement, ChainManagement, CommonWallet, DisconnectBaseOptions, ExternalWalletContextType, MutationStatus } from '@getpara/react-common';
|
|
4
|
-
import { ExternalWalletInfo
|
|
4
|
+
import { ExternalWalletInfo } from '@getpara/web-sdk';
|
|
5
5
|
import { CosmosSignResult } from '@getpara/cosmos-wallet-connectors';
|
|
6
6
|
export declare const useWalletDisplayHelpers: (wallet: CommonWallet | undefined) => {
|
|
7
7
|
showExtension: boolean;
|
|
@@ -28,19 +28,23 @@ export declare const defaultExternalWallet: {
|
|
|
28
28
|
switchChain: () => Promise<void>;
|
|
29
29
|
setChainIdSwitchingTo: () => void;
|
|
30
30
|
connectEmbeddedToExternalConnectors: () => Promise<void>;
|
|
31
|
-
verifyWalletSignature: () => Promise<any>;
|
|
32
31
|
signMessage: () => Promise<any>;
|
|
33
32
|
isSigningMessage: boolean;
|
|
34
33
|
getWalletBalance: () => Promise<undefined>;
|
|
35
34
|
requestInfo: (_: string) => Promise<ExternalWalletInfo>;
|
|
36
35
|
disconnectBase: (_: string, __: TWalletType, ___?: DisconnectBaseOptions) => Promise<void>;
|
|
37
36
|
connectFarcasterMiniApp: () => Promise<void>;
|
|
37
|
+
switchConnection: (_: {
|
|
38
|
+
type: TWalletType;
|
|
39
|
+
id: string;
|
|
40
|
+
}) => Promise<void>;
|
|
38
41
|
verificationStage: undefined;
|
|
39
42
|
evmDisconnectStatus: string;
|
|
40
43
|
solanaDisconnectStatus: string;
|
|
41
44
|
cosmosDisconnectStatus: string;
|
|
45
|
+
retryVerification: () => Promise<void>;
|
|
42
46
|
};
|
|
43
|
-
type Value = Omit<ExternalWalletContextType<CosmosSignResult>, 'disconnect' | 'disconnectStatus' | 'signVerificationMessage' | 'requestInfo' | 'disconnectBase'> & ChainManagement<string, void> & BalanceManagement & {
|
|
47
|
+
type Value = Omit<ExternalWalletContextType<CosmosSignResult>, 'disconnect' | 'disconnectStatus' | 'signVerificationMessage' | 'requestInfo' | 'disconnectBase' | 'switchConnection'> & ChainManagement<string, void> & BalanceManagement & {
|
|
44
48
|
wallet?: CommonWallet;
|
|
45
49
|
qrUri?: string;
|
|
46
50
|
chainIdSwitchingTo?: string;
|
|
@@ -63,14 +67,18 @@ type Value = Omit<ExternalWalletContextType<CosmosSignResult>, 'disconnect' | 'd
|
|
|
63
67
|
setChainIdSwitchingTo: (chainId?: string) => void;
|
|
64
68
|
connectEmbeddedToExternalConnectors: () => Promise<void>;
|
|
65
69
|
isSigningMessage: boolean;
|
|
66
|
-
verifyWalletSignature: () => Promise<VerifyExternalWalletParams | undefined>;
|
|
67
70
|
requestInfo: (_: string, __: TWalletType) => Promise<ExternalWalletInfo>;
|
|
68
71
|
disconnectBase: (_: string, __: TWalletType, ___?: DisconnectBaseOptions) => Promise<void>;
|
|
69
72
|
connectFarcasterMiniApp: () => Promise<void>;
|
|
73
|
+
switchConnection: (_: {
|
|
74
|
+
type: TWalletType;
|
|
75
|
+
id: string;
|
|
76
|
+
}) => Promise<void>;
|
|
70
77
|
verificationStage?: 'verifying' | 'switchingChain';
|
|
71
78
|
evmDisconnectStatus: MutationStatus;
|
|
72
79
|
solanaDisconnectStatus: MutationStatus;
|
|
73
80
|
cosmosDisconnectStatus: MutationStatus;
|
|
81
|
+
retryVerification: () => Promise<void>;
|
|
74
82
|
};
|
|
75
83
|
export declare const ExternalWalletContext: import("react").Context<Value>;
|
|
76
84
|
export declare function ExternalWalletProvider({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|