@getpara/react-sdk-lite 2.12.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 +46 -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 +1 -1
- 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 +7 -5
- 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} +13 -11
- 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} +15 -22
- 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 +5 -5
- 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} +11 -12
- 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} +16 -36
- 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.js +3 -3
- 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/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/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 +2 -2
- package/dist/provider/hooks/utils/useModal.js +9 -8
- 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/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 -120
- package/dist/modal/stores/modal/useModalStore.js +0 -81
- 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
- /package/dist/modal/{components/AuthInput/hooks → hooks}/useDropdownPosition.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UpdatePregenWalletIdentifierParams } from '@getpara/web-sdk';
|
|
1
2
|
export declare const UPDATE_PREGEN_WALLET_IDENTIFIER_KEY = "UPDATE_PREGEN_WALLET_IDENTIFIER";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `updatePregenWalletIdentifier` mutation.
|
|
@@ -14,29 +15,20 @@ export declare const UPDATE_PREGEN_WALLET_IDENTIFIER_KEY = "UPDATE_PREGEN_WALLET
|
|
|
14
15
|
* await updatePregenWalletIdentifierAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useUpdatePregenWalletIdentifier: () => {
|
|
17
|
-
status: "idle" | "pending" | "error" | "success";
|
|
18
|
-
error: Error | null;
|
|
19
18
|
data: void | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
walletId: string;
|
|
23
|
-
newPregenId: import("@getpara/web-sdk").PregenAuth;
|
|
24
|
-
} | undefined;
|
|
19
|
+
variables: UpdatePregenWalletIdentifierParams | undefined;
|
|
20
|
+
error: Error | null;
|
|
25
21
|
isError: boolean;
|
|
26
22
|
isIdle: boolean;
|
|
27
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
28
26
|
reset: () => void;
|
|
29
27
|
context: unknown;
|
|
30
28
|
failureCount: number;
|
|
31
29
|
failureReason: Error | null;
|
|
32
30
|
isPaused: boolean;
|
|
33
31
|
submittedAt: number;
|
|
34
|
-
updatePregenWalletIdentifier: import("@tanstack/react-query").UseMutateFunction<void, Error,
|
|
35
|
-
|
|
36
|
-
newPregenId: import("@getpara/web-sdk").PregenAuth;
|
|
37
|
-
}, unknown>;
|
|
38
|
-
updatePregenWalletIdentifierAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, {
|
|
39
|
-
walletId: string;
|
|
40
|
-
newPregenId: import("@getpara/web-sdk").PregenAuth;
|
|
41
|
-
}, unknown>;
|
|
32
|
+
updatePregenWalletIdentifier: import("@tanstack/react-query").UseMutateFunction<void, Error, UpdatePregenWalletIdentifierParams, unknown>;
|
|
33
|
+
updatePregenWalletIdentifierAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, UpdatePregenWalletIdentifierParams, unknown>;
|
|
42
34
|
};
|
|
@@ -20,7 +20,10 @@ const useUpdatePregenWalletIdentifier = () => {
|
|
|
20
20
|
}
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
|
-
return renameMutations(
|
|
23
|
+
return renameMutations(
|
|
24
|
+
mutation,
|
|
25
|
+
"updatePregenWalletIdentifier"
|
|
26
|
+
);
|
|
24
27
|
};
|
|
25
28
|
export {
|
|
26
29
|
UPDATE_PREGEN_WALLET_IDENTIFIER_KEY,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Verify2faParams, Verify2faResponse } from '@getpara/web-sdk';
|
|
1
2
|
export declare const VERIFY_2FA_KEY = "VERIFY_2FA";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `verify2fa` mutation.
|
|
@@ -14,44 +15,20 @@ export declare const VERIFY_2FA_KEY = "VERIFY_2FA";
|
|
|
14
15
|
* await verify2faAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useVerify2fa: () => {
|
|
17
|
-
|
|
18
|
+
data: Verify2faResponse | undefined;
|
|
19
|
+
variables: Verify2faParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: {
|
|
20
|
-
initiatedAt?: Date | undefined;
|
|
21
|
-
status?: import("@getpara/web-sdk").RecoveryStatus | undefined;
|
|
22
|
-
userId: string;
|
|
23
|
-
wallets: Pick<import("@getpara/web-sdk").Wallet, "address" | "id">[];
|
|
24
|
-
} | undefined;
|
|
25
|
-
isSuccess: boolean;
|
|
26
|
-
variables: {
|
|
27
|
-
auth: import("@getpara/web-sdk").VerifiedAuth;
|
|
28
|
-
verificationCode: string;
|
|
29
|
-
} | undefined;
|
|
30
21
|
isError: boolean;
|
|
31
22
|
isIdle: boolean;
|
|
32
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
33
26
|
reset: () => void;
|
|
34
27
|
context: unknown;
|
|
35
28
|
failureCount: number;
|
|
36
29
|
failureReason: Error | null;
|
|
37
30
|
isPaused: boolean;
|
|
38
31
|
submittedAt: number;
|
|
39
|
-
verify2fa: import("@tanstack/react-query").UseMutateFunction<
|
|
40
|
-
|
|
41
|
-
status?: import("@getpara/web-sdk").RecoveryStatus | undefined;
|
|
42
|
-
userId: string;
|
|
43
|
-
wallets: Pick<import("@getpara/web-sdk").Wallet, "address" | "id">[];
|
|
44
|
-
}, Error, {
|
|
45
|
-
auth: import("@getpara/web-sdk").VerifiedAuth;
|
|
46
|
-
verificationCode: string;
|
|
47
|
-
}, unknown>;
|
|
48
|
-
verify2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
49
|
-
initiatedAt?: Date | undefined;
|
|
50
|
-
status?: import("@getpara/web-sdk").RecoveryStatus | undefined;
|
|
51
|
-
userId: string;
|
|
52
|
-
wallets: Pick<import("@getpara/web-sdk").Wallet, "address" | "id">[];
|
|
53
|
-
}, Error, {
|
|
54
|
-
auth: import("@getpara/web-sdk").VerifiedAuth;
|
|
55
|
-
verificationCode: string;
|
|
56
|
-
}, unknown>;
|
|
32
|
+
verify2fa: import("@tanstack/react-query").UseMutateFunction<Verify2faResponse, Error, Verify2faParams, unknown>;
|
|
33
|
+
verify2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Verify2faResponse, Error, Verify2faParams, unknown>;
|
|
57
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { VerifyExternalWalletParams, VerifyExternalWalletResponse } from '@getpara/web-sdk';
|
|
2
2
|
export declare const VERIFY_EXTERNAL_WALLET_KEY = "VERIFY_EXTERNAL_WALLET";
|
|
3
3
|
/**
|
|
4
4
|
* React hook for the `verifyExternalWallet` mutation.
|
|
@@ -15,32 +15,20 @@ export declare const VERIFY_EXTERNAL_WALLET_KEY = "VERIFY_EXTERNAL_WALLET";
|
|
|
15
15
|
* await verifyExternalWalletAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useVerifyExternalWallet: () => {
|
|
18
|
-
|
|
18
|
+
data: VerifyExternalWalletResponse | undefined;
|
|
19
|
+
variables: VerifyExternalWalletParams | undefined;
|
|
19
20
|
error: Error | null;
|
|
20
|
-
data: Compute<import("@getpara/web-sdk").AuthStateSignup | import("@getpara/web-sdk").AuthStateLogin | import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateDone> | undefined;
|
|
21
|
-
isSuccess: boolean;
|
|
22
|
-
variables: Compute<(import("@getpara/core-sdk/dist/types/types/methods.js").WithCustomTheme & import("@getpara/core-sdk/dist/types/types/methods.js").WithUseShortUrls & {
|
|
23
|
-
serverAuthState: import("@getpara/shared").ServerAuthStateSignup | import("@getpara/shared").ServerAuthStateLogin | import("@getpara/shared").ServerAuthStateDone;
|
|
24
|
-
}) | (import("@getpara/core-sdk/dist/types/types/methods.js").WithCustomTheme & import("@getpara/core-sdk/dist/types/types/methods.js").WithUseShortUrls & import("@getpara/web-sdk").VerifyExternalWalletParams & {
|
|
25
|
-
serverAuthState?: undefined;
|
|
26
|
-
})> | undefined;
|
|
27
21
|
isError: boolean;
|
|
28
22
|
isIdle: boolean;
|
|
29
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
30
26
|
reset: () => void;
|
|
31
27
|
context: unknown;
|
|
32
28
|
failureCount: number;
|
|
33
29
|
failureReason: Error | null;
|
|
34
30
|
isPaused: boolean;
|
|
35
31
|
submittedAt: number;
|
|
36
|
-
verifyExternalWallet: import("@tanstack/react-query").UseMutateFunction<
|
|
37
|
-
|
|
38
|
-
}) | (import("@getpara/core-sdk/dist/types/types/methods.js").WithCustomTheme & import("@getpara/core-sdk/dist/types/types/methods.js").WithUseShortUrls & import("@getpara/web-sdk").VerifyExternalWalletParams & {
|
|
39
|
-
serverAuthState?: undefined;
|
|
40
|
-
})>, unknown>;
|
|
41
|
-
verifyExternalWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").AuthStateSignup | import("@getpara/web-sdk").AuthStateLogin | import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateDone>, Error, Compute<(import("@getpara/core-sdk/dist/types/types/methods.js").WithCustomTheme & import("@getpara/core-sdk/dist/types/types/methods.js").WithUseShortUrls & {
|
|
42
|
-
serverAuthState: import("@getpara/shared").ServerAuthStateSignup | import("@getpara/shared").ServerAuthStateLogin | import("@getpara/shared").ServerAuthStateDone;
|
|
43
|
-
}) | (import("@getpara/core-sdk/dist/types/types/methods.js").WithCustomTheme & import("@getpara/core-sdk/dist/types/types/methods.js").WithUseShortUrls & import("@getpara/web-sdk").VerifyExternalWalletParams & {
|
|
44
|
-
serverAuthState?: undefined;
|
|
45
|
-
})>, unknown>;
|
|
32
|
+
verifyExternalWallet: import("@tanstack/react-query").UseMutateFunction<VerifyExternalWalletResponse, Error, VerifyExternalWalletParams, unknown>;
|
|
33
|
+
verifyExternalWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<VerifyExternalWalletResponse, Error, VerifyExternalWalletParams, unknown>;
|
|
46
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { VerifyFarcasterParams } from '@getpara/web-sdk';
|
|
2
2
|
export declare const VERIFY_FARCASTER_KEY = "VERIFY_FARCASTER";
|
|
3
3
|
/**
|
|
4
4
|
* React hook for the `verifyFarcaster` mutation.
|
|
@@ -15,44 +15,20 @@ export declare const VERIFY_FARCASTER_KEY = "VERIFY_FARCASTER";
|
|
|
15
15
|
* await verifyFarcasterAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useVerifyFarcaster: () => {
|
|
18
|
-
|
|
18
|
+
data: import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone | undefined;
|
|
19
|
+
variables: void | VerifyFarcasterParams | undefined;
|
|
19
20
|
error: Error | null;
|
|
20
|
-
data: Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateSignupOrLoginOrDone> | undefined;
|
|
21
|
-
isSuccess: boolean;
|
|
22
|
-
variables: void | {
|
|
23
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
24
|
-
useShortUrls?: boolean | undefined;
|
|
25
|
-
onPoll?: (() => void) | undefined;
|
|
26
|
-
onCancel?: (() => void) | undefined;
|
|
27
|
-
isCanceled?: (() => boolean) | undefined;
|
|
28
|
-
onConnectUri?: ((uri: string) => void) | undefined;
|
|
29
|
-
serverAuthState?: import("@getpara/shared").VerifyThirdPartyAuth | undefined;
|
|
30
|
-
} | undefined;
|
|
31
21
|
isError: boolean;
|
|
32
22
|
isIdle: boolean;
|
|
33
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
34
26
|
reset: () => void;
|
|
35
27
|
context: unknown;
|
|
36
28
|
failureCount: number;
|
|
37
29
|
failureReason: Error | null;
|
|
38
30
|
isPaused: boolean;
|
|
39
31
|
submittedAt: number;
|
|
40
|
-
verifyFarcaster: import("@tanstack/react-query").UseMutateFunction<
|
|
41
|
-
|
|
42
|
-
useShortUrls?: boolean | undefined;
|
|
43
|
-
onPoll?: (() => void) | undefined;
|
|
44
|
-
onCancel?: (() => void) | undefined;
|
|
45
|
-
isCanceled?: (() => boolean) | undefined;
|
|
46
|
-
onConnectUri?: ((uri: string) => void) | undefined;
|
|
47
|
-
serverAuthState?: import("@getpara/shared").VerifyThirdPartyAuth | undefined;
|
|
48
|
-
}, unknown>;
|
|
49
|
-
verifyFarcasterAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateSignupOrLoginOrDone>, Error, void | {
|
|
50
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
51
|
-
useShortUrls?: boolean | undefined;
|
|
52
|
-
onPoll?: (() => void) | undefined;
|
|
53
|
-
onCancel?: (() => void) | undefined;
|
|
54
|
-
isCanceled?: (() => boolean) | undefined;
|
|
55
|
-
onConnectUri?: ((uri: string) => void) | undefined;
|
|
56
|
-
serverAuthState?: import("@getpara/shared").VerifyThirdPartyAuth | undefined;
|
|
57
|
-
}, unknown>;
|
|
32
|
+
verifyFarcaster: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, void | VerifyFarcasterParams, unknown>;
|
|
33
|
+
verifyFarcasterAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, void | VerifyFarcasterParams, unknown>;
|
|
58
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerifyNewAccountParams } from '@getpara/web-sdk';
|
|
1
2
|
export declare const VERIFY_NEW_ACCOUNT_KEY = "VERIFY_NEW_ACCOUNT";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `verifyNewAccount` mutation.
|
|
@@ -14,80 +15,20 @@ export declare const VERIFY_NEW_ACCOUNT_KEY = "VERIFY_NEW_ACCOUNT";
|
|
|
14
15
|
* await verifyNewAccountAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useVerifyNewAccount: () => {
|
|
17
|
-
|
|
18
|
+
data: import("@getpara/web-sdk").AuthStateSignup | undefined;
|
|
19
|
+
variables: VerifyNewAccountParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: {
|
|
20
|
-
userId: string;
|
|
21
|
-
externalWallet?: import("@getpara/web-sdk").ExternalWalletInfo | undefined;
|
|
22
|
-
username?: string | undefined;
|
|
23
|
-
displayName?: string | undefined;
|
|
24
|
-
pfpUrl?: string | undefined;
|
|
25
|
-
auth: import("@getpara/shared").PrimaryAuth;
|
|
26
|
-
stage: "signup";
|
|
27
|
-
isPasskeySupported: boolean;
|
|
28
|
-
passkeyUrl?: string | undefined;
|
|
29
|
-
passwordUrl?: string | undefined;
|
|
30
|
-
pinUrl?: string | undefined;
|
|
31
|
-
passkeyId?: string | undefined;
|
|
32
|
-
passwordId?: string | undefined;
|
|
33
|
-
pinId?: string | undefined;
|
|
34
|
-
signupAuthMethods?: import("@getpara/web-sdk").TAuthMethod[] | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
isSuccess: boolean;
|
|
37
|
-
variables: {
|
|
38
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
39
|
-
useShortUrls?: boolean | undefined;
|
|
40
|
-
verificationCode: string;
|
|
41
|
-
} | undefined;
|
|
42
21
|
isError: boolean;
|
|
43
22
|
isIdle: boolean;
|
|
44
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
45
26
|
reset: () => void;
|
|
46
27
|
context: unknown;
|
|
47
28
|
failureCount: number;
|
|
48
29
|
failureReason: Error | null;
|
|
49
30
|
isPaused: boolean;
|
|
50
31
|
submittedAt: number;
|
|
51
|
-
verifyNewAccount: import("@tanstack/react-query").UseMutateFunction<
|
|
52
|
-
|
|
53
|
-
externalWallet?: import("@getpara/web-sdk").ExternalWalletInfo | undefined;
|
|
54
|
-
username?: string | undefined;
|
|
55
|
-
displayName?: string | undefined;
|
|
56
|
-
pfpUrl?: string | undefined;
|
|
57
|
-
auth: import("@getpara/shared").PrimaryAuth;
|
|
58
|
-
stage: "signup";
|
|
59
|
-
isPasskeySupported: boolean;
|
|
60
|
-
passkeyUrl?: string | undefined;
|
|
61
|
-
passwordUrl?: string | undefined;
|
|
62
|
-
pinUrl?: string | undefined;
|
|
63
|
-
passkeyId?: string | undefined;
|
|
64
|
-
passwordId?: string | undefined;
|
|
65
|
-
pinId?: string | undefined;
|
|
66
|
-
signupAuthMethods?: import("@getpara/web-sdk").TAuthMethod[] | undefined;
|
|
67
|
-
}, Error, {
|
|
68
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
69
|
-
useShortUrls?: boolean | undefined;
|
|
70
|
-
verificationCode: string;
|
|
71
|
-
}, unknown>;
|
|
72
|
-
verifyNewAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
73
|
-
userId: string;
|
|
74
|
-
externalWallet?: import("@getpara/web-sdk").ExternalWalletInfo | undefined;
|
|
75
|
-
username?: string | undefined;
|
|
76
|
-
displayName?: string | undefined;
|
|
77
|
-
pfpUrl?: string | undefined;
|
|
78
|
-
auth: import("@getpara/shared").PrimaryAuth;
|
|
79
|
-
stage: "signup";
|
|
80
|
-
isPasskeySupported: boolean;
|
|
81
|
-
passkeyUrl?: string | undefined;
|
|
82
|
-
passwordUrl?: string | undefined;
|
|
83
|
-
pinUrl?: string | undefined;
|
|
84
|
-
passkeyId?: string | undefined;
|
|
85
|
-
passwordId?: string | undefined;
|
|
86
|
-
pinId?: string | undefined;
|
|
87
|
-
signupAuthMethods?: import("@getpara/web-sdk").TAuthMethod[] | undefined;
|
|
88
|
-
}, Error, {
|
|
89
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
90
|
-
useShortUrls?: boolean | undefined;
|
|
91
|
-
verificationCode: string;
|
|
92
|
-
}, unknown>;
|
|
32
|
+
verifyNewAccount: import("@tanstack/react-query").UseMutateFunction<import("@getpara/web-sdk").AuthStateSignup, Error, VerifyNewAccountParams, unknown>;
|
|
33
|
+
verifyNewAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/web-sdk").AuthStateSignup, Error, VerifyNewAccountParams, unknown>;
|
|
93
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { VerifyOAuthProcessParams } from '@getpara/web-sdk';
|
|
2
2
|
export declare const VERIFY_OAUTH_KEY = "VERIFY_OAUTH";
|
|
3
3
|
/**
|
|
4
4
|
* React hook for the `verifyOAuth` mutation.
|
|
@@ -15,50 +15,20 @@ export declare const VERIFY_OAUTH_KEY = "VERIFY_OAUTH";
|
|
|
15
15
|
* await verifyOAuthAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useVerifyOAuth: () => {
|
|
18
|
-
|
|
18
|
+
data: import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone | undefined;
|
|
19
|
+
variables: VerifyOAuthProcessParams | undefined;
|
|
19
20
|
error: Error | null;
|
|
20
|
-
data: Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateSignupOrLoginOrDone> | undefined;
|
|
21
|
-
isSuccess: boolean;
|
|
22
|
-
variables: {
|
|
23
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
24
|
-
useShortUrls?: boolean | undefined;
|
|
25
|
-
method: Exclude<import("@getpara/web-sdk").TOAuthMethod, "TELEGRAM" | "FARCASTER">;
|
|
26
|
-
appScheme?: string | undefined;
|
|
27
|
-
onPoll?: (() => void) | undefined;
|
|
28
|
-
onCancel?: (() => void) | undefined;
|
|
29
|
-
isCanceled?: (() => boolean) | undefined;
|
|
30
|
-
onOAuthUrl?: ((url: string) => void) | undefined;
|
|
31
|
-
onOAuthPopup?: ((popup: Window) => void) | undefined;
|
|
32
|
-
} | undefined;
|
|
33
21
|
isError: boolean;
|
|
34
22
|
isIdle: boolean;
|
|
35
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
36
26
|
reset: () => void;
|
|
37
27
|
context: unknown;
|
|
38
28
|
failureCount: number;
|
|
39
29
|
failureReason: Error | null;
|
|
40
30
|
isPaused: boolean;
|
|
41
31
|
submittedAt: number;
|
|
42
|
-
verifyOAuth: import("@tanstack/react-query").UseMutateFunction<
|
|
43
|
-
|
|
44
|
-
useShortUrls?: boolean | undefined;
|
|
45
|
-
method: Exclude<import("@getpara/web-sdk").TOAuthMethod, "TELEGRAM" | "FARCASTER">;
|
|
46
|
-
appScheme?: string | undefined;
|
|
47
|
-
onPoll?: (() => void) | undefined;
|
|
48
|
-
onCancel?: (() => void) | undefined;
|
|
49
|
-
isCanceled?: (() => boolean) | undefined;
|
|
50
|
-
onOAuthUrl?: ((url: string) => void) | undefined;
|
|
51
|
-
onOAuthPopup?: ((popup: Window) => void) | undefined;
|
|
52
|
-
}, unknown>;
|
|
53
|
-
verifyOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateSignupOrLoginOrDone>, Error, {
|
|
54
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
55
|
-
useShortUrls?: boolean | undefined;
|
|
56
|
-
method: Exclude<import("@getpara/web-sdk").TOAuthMethod, "TELEGRAM" | "FARCASTER">;
|
|
57
|
-
appScheme?: string | undefined;
|
|
58
|
-
onPoll?: (() => void) | undefined;
|
|
59
|
-
onCancel?: (() => void) | undefined;
|
|
60
|
-
isCanceled?: (() => boolean) | undefined;
|
|
61
|
-
onOAuthUrl?: ((url: string) => void) | undefined;
|
|
62
|
-
onOAuthPopup?: ((popup: Window) => void) | undefined;
|
|
63
|
-
}, unknown>;
|
|
32
|
+
verifyOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, VerifyOAuthProcessParams, unknown>;
|
|
33
|
+
verifyOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, VerifyOAuthProcessParams, unknown>;
|
|
64
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { VerifyTelegramParams } from '@getpara/web-sdk';
|
|
2
2
|
export declare const VERIFY_TELEGRAM_KEY = "VERIFY_TELEGRAM";
|
|
3
3
|
/**
|
|
4
4
|
* React hook for the `verifyTelegram` mutation.
|
|
@@ -15,35 +15,20 @@ export declare const VERIFY_TELEGRAM_KEY = "VERIFY_TELEGRAM";
|
|
|
15
15
|
* await verifyTelegramAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useVerifyTelegram: () => {
|
|
18
|
-
|
|
18
|
+
data: import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone | undefined;
|
|
19
|
+
variables: VerifyTelegramParams | undefined;
|
|
19
20
|
error: Error | null;
|
|
20
|
-
data: Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateSignupOrLoginOrDone> | undefined;
|
|
21
|
-
isSuccess: boolean;
|
|
22
|
-
variables: {
|
|
23
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
24
|
-
useShortUrls?: boolean | undefined;
|
|
25
|
-
telegramAuthResponse?: import("@getpara/web-sdk").TelegramAuthResponse | undefined;
|
|
26
|
-
serverAuthState?: import("@getpara/shared").VerifyThirdPartyAuth | undefined;
|
|
27
|
-
} | undefined;
|
|
28
21
|
isError: boolean;
|
|
29
22
|
isIdle: boolean;
|
|
30
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
31
26
|
reset: () => void;
|
|
32
27
|
context: unknown;
|
|
33
28
|
failureCount: number;
|
|
34
29
|
failureReason: Error | null;
|
|
35
30
|
isPaused: boolean;
|
|
36
31
|
submittedAt: number;
|
|
37
|
-
verifyTelegram: import("@tanstack/react-query").UseMutateFunction<
|
|
38
|
-
|
|
39
|
-
useShortUrls?: boolean | undefined;
|
|
40
|
-
telegramAuthResponse?: import("@getpara/web-sdk").TelegramAuthResponse | undefined;
|
|
41
|
-
serverAuthState?: import("@getpara/shared").VerifyThirdPartyAuth | undefined;
|
|
42
|
-
}, unknown>;
|
|
43
|
-
verifyTelegramAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/core-sdk/dist/types/types/methods.js").AuthStateSignupOrLoginOrDone>, Error, {
|
|
44
|
-
portalTheme?: import("@getpara/web-sdk").Theme | undefined;
|
|
45
|
-
useShortUrls?: boolean | undefined;
|
|
46
|
-
telegramAuthResponse?: import("@getpara/web-sdk").TelegramAuthResponse | undefined;
|
|
47
|
-
serverAuthState?: import("@getpara/shared").VerifyThirdPartyAuth | undefined;
|
|
48
|
-
}, unknown>;
|
|
32
|
+
verifyTelegram: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, VerifyTelegramParams, unknown>;
|
|
33
|
+
verifyTelegramAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, VerifyTelegramParams, unknown>;
|
|
49
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WaitForLoginParams, WaitForLoginResponse } from '@getpara/web-sdk';
|
|
1
2
|
export declare const WAIT_FOR_LOG_IN_KEY = "WAIT_FOR_LOG_IN";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `waitForLogin` mutation.
|
|
@@ -14,44 +15,20 @@ export declare const WAIT_FOR_LOG_IN_KEY = "WAIT_FOR_LOG_IN";
|
|
|
14
15
|
* await waitForLoginAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useWaitForLogin: () => {
|
|
17
|
-
|
|
18
|
+
data: WaitForLoginResponse | undefined;
|
|
19
|
+
variables: void | WaitForLoginParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: {
|
|
20
|
-
needsWallet?: boolean | undefined;
|
|
21
|
-
partnerId?: string | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
isSuccess: boolean;
|
|
24
|
-
variables: void | {
|
|
25
|
-
onPoll?: (() => void) | undefined;
|
|
26
|
-
onCancel?: (() => void) | undefined;
|
|
27
|
-
skipSessionRefresh?: boolean | undefined;
|
|
28
|
-
isCanceled?: (() => boolean) | undefined;
|
|
29
|
-
} | undefined;
|
|
30
21
|
isError: boolean;
|
|
31
22
|
isIdle: boolean;
|
|
32
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
33
26
|
reset: () => void;
|
|
34
27
|
context: unknown;
|
|
35
28
|
failureCount: number;
|
|
36
29
|
failureReason: Error | null;
|
|
37
30
|
isPaused: boolean;
|
|
38
31
|
submittedAt: number;
|
|
39
|
-
waitForLogin: import("@tanstack/react-query").UseMutateFunction<
|
|
40
|
-
|
|
41
|
-
partnerId?: string | undefined;
|
|
42
|
-
}, Error, void | {
|
|
43
|
-
onPoll?: (() => void) | undefined;
|
|
44
|
-
onCancel?: (() => void) | undefined;
|
|
45
|
-
skipSessionRefresh?: boolean | undefined;
|
|
46
|
-
isCanceled?: (() => boolean) | undefined;
|
|
47
|
-
}, unknown>;
|
|
48
|
-
waitForLoginAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
49
|
-
needsWallet?: boolean | undefined;
|
|
50
|
-
partnerId?: string | undefined;
|
|
51
|
-
}, Error, void | {
|
|
52
|
-
onPoll?: (() => void) | undefined;
|
|
53
|
-
onCancel?: (() => void) | undefined;
|
|
54
|
-
skipSessionRefresh?: boolean | undefined;
|
|
55
|
-
isCanceled?: (() => boolean) | undefined;
|
|
56
|
-
}, unknown>;
|
|
32
|
+
waitForLogin: import("@tanstack/react-query").UseMutateFunction<WaitForLoginResponse, Error, void | WaitForLoginParams, unknown>;
|
|
33
|
+
waitForLoginAsync: import("@tanstack/react-query").UseMutateAsyncFunction<WaitForLoginResponse, Error, void | WaitForLoginParams, unknown>;
|
|
57
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WaitForSignupParams } from '@getpara/web-sdk';
|
|
1
2
|
export declare const WAIT_FOR_SIGN_UP_KEY = "WAIT_FOR_SIGN_UP";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `waitForSignup` mutation.
|
|
@@ -14,32 +15,20 @@ export declare const WAIT_FOR_SIGN_UP_KEY = "WAIT_FOR_SIGN_UP";
|
|
|
14
15
|
* await waitForSignupAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useWaitForSignup: () => {
|
|
17
|
-
status: "idle" | "pending" | "error" | "success";
|
|
18
|
-
error: Error | null;
|
|
19
18
|
data: true | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
onPoll?: (() => void) | undefined;
|
|
23
|
-
onCancel?: (() => void) | undefined;
|
|
24
|
-
isCanceled?: (() => boolean) | undefined;
|
|
25
|
-
} | undefined;
|
|
19
|
+
variables: void | WaitForSignupParams | undefined;
|
|
20
|
+
error: Error | null;
|
|
26
21
|
isError: boolean;
|
|
27
22
|
isIdle: boolean;
|
|
28
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
29
26
|
reset: () => void;
|
|
30
27
|
context: unknown;
|
|
31
28
|
failureCount: number;
|
|
32
29
|
failureReason: Error | null;
|
|
33
30
|
isPaused: boolean;
|
|
34
31
|
submittedAt: number;
|
|
35
|
-
waitForSignup: import("@tanstack/react-query").UseMutateFunction<true, Error, void |
|
|
36
|
-
|
|
37
|
-
onCancel?: (() => void) | undefined;
|
|
38
|
-
isCanceled?: (() => boolean) | undefined;
|
|
39
|
-
}, unknown>;
|
|
40
|
-
waitForSignupAsync: import("@tanstack/react-query").UseMutateAsyncFunction<true, Error, void | {
|
|
41
|
-
onPoll?: (() => void) | undefined;
|
|
42
|
-
onCancel?: (() => void) | undefined;
|
|
43
|
-
isCanceled?: (() => boolean) | undefined;
|
|
44
|
-
}, unknown>;
|
|
32
|
+
waitForSignup: import("@tanstack/react-query").UseMutateFunction<true, Error, void | WaitForSignupParams, unknown>;
|
|
33
|
+
waitForSignupAsync: import("@tanstack/react-query").UseMutateAsyncFunction<true, Error, void | WaitForSignupParams, unknown>;
|
|
45
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WaitForWalletCreationParams, WaitForWalletCreationResponse } from '@getpara/web-sdk';
|
|
1
2
|
export declare const WAIT_FOR_WALLET_CREATION_KEY = "WAIT_FOR_WALLET_CREATION";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `waitForWalletCreation` mutation.
|
|
@@ -14,41 +15,20 @@ export declare const WAIT_FOR_WALLET_CREATION_KEY = "WAIT_FOR_WALLET_CREATION";
|
|
|
14
15
|
* await waitForWalletCreationAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useWaitForWalletCreation: () => {
|
|
17
|
-
|
|
18
|
+
data: WaitForWalletCreationResponse | undefined;
|
|
19
|
+
variables: void | WaitForWalletCreationParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: {
|
|
20
|
-
walletIds: import("@getpara/web-sdk").CurrentWalletIds;
|
|
21
|
-
recoverySecret?: string | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
isSuccess: boolean;
|
|
24
|
-
variables: void | {
|
|
25
|
-
onPoll?: (() => void) | undefined;
|
|
26
|
-
onCancel?: (() => void) | undefined;
|
|
27
|
-
isCanceled?: (() => boolean) | undefined;
|
|
28
|
-
} | undefined;
|
|
29
21
|
isError: boolean;
|
|
30
22
|
isIdle: boolean;
|
|
31
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
32
26
|
reset: () => void;
|
|
33
27
|
context: unknown;
|
|
34
28
|
failureCount: number;
|
|
35
29
|
failureReason: Error | null;
|
|
36
30
|
isPaused: boolean;
|
|
37
31
|
submittedAt: number;
|
|
38
|
-
waitForWalletCreation: import("@tanstack/react-query").UseMutateFunction<
|
|
39
|
-
|
|
40
|
-
recoverySecret?: string | undefined;
|
|
41
|
-
}, Error, void | {
|
|
42
|
-
onPoll?: (() => void) | undefined;
|
|
43
|
-
onCancel?: (() => void) | undefined;
|
|
44
|
-
isCanceled?: (() => boolean) | undefined;
|
|
45
|
-
}, unknown>;
|
|
46
|
-
waitForWalletCreationAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
47
|
-
walletIds: import("@getpara/web-sdk").CurrentWalletIds;
|
|
48
|
-
recoverySecret?: string | undefined;
|
|
49
|
-
}, Error, void | {
|
|
50
|
-
onPoll?: (() => void) | undefined;
|
|
51
|
-
onCancel?: (() => void) | undefined;
|
|
52
|
-
isCanceled?: (() => boolean) | undefined;
|
|
53
|
-
}, unknown>;
|
|
32
|
+
waitForWalletCreation: import("@tanstack/react-query").UseMutateFunction<WaitForWalletCreationResponse, Error, void | WaitForWalletCreationParams, unknown>;
|
|
33
|
+
waitForWalletCreationAsync: import("@tanstack/react-query").UseMutateAsyncFunction<WaitForWalletCreationResponse, Error, void | WaitForWalletCreationParams, unknown>;
|
|
54
34
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const IS_FULLY_LOGGED_IN_BASE_KEY = "PARA_FULLY_LOGGED_IN";
|
|
2
2
|
/**
|
|
3
|
-
* Hook for returning whether the user is fully logged in with Para
|
|
3
|
+
* Hook for returning whether the user is fully logged in with Para.
|
|
4
|
+
* Uses the core state machine phase as a reactive query key so the query
|
|
5
|
+
* automatically refetches on state transitions (login, logout, etc.)
|
|
6
|
+
* without relying on manual event-based invalidation.
|
|
4
7
|
*/
|
|
5
8
|
export declare const useIsFullyLoggedIn: () => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|