@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
|
@@ -40,9 +40,13 @@ const verifyTelegramLink = generateInternalAction("verifyTelegramLink");
|
|
|
40
40
|
const verifyOAuthLink = generateInternalAction("verifyOAuthLink");
|
|
41
41
|
const verifyExternalWalletLink = generateInternalAction("verifyExternalWalletLink");
|
|
42
42
|
const exportPrivateKey = generateCoreAction("exportPrivateKey");
|
|
43
|
+
const authenticateWithEmailOrPhone = generateCoreAction("authenticateWithEmailOrPhone");
|
|
44
|
+
const authenticateWithOAuth = generateCoreAction("authenticateWithOAuth");
|
|
43
45
|
export {
|
|
44
46
|
accountLinkInProgress,
|
|
45
47
|
addCredential,
|
|
48
|
+
authenticateWithEmailOrPhone,
|
|
49
|
+
authenticateWithOAuth,
|
|
46
50
|
claimPregenWallets,
|
|
47
51
|
createGuestWallets,
|
|
48
52
|
createPregenWallet,
|
|
@@ -5,7 +5,6 @@ import { CosmosExternalWalletProvider } from "../providers/CosmosExternalWalletP
|
|
|
5
5
|
import { useInternalClient } from "../hooks/utils/useInternalClient.js";
|
|
6
6
|
import { useStore } from "../stores/useStore.js";
|
|
7
7
|
import { COSMOS_WALLETS } from "@getpara/web-sdk";
|
|
8
|
-
import { useWalletState } from "../hooks/index.js";
|
|
9
8
|
const CosmosWalletWrapper = ({
|
|
10
9
|
children,
|
|
11
10
|
cosmosConnectorConfig,
|
|
@@ -13,7 +12,6 @@ const CosmosWalletWrapper = ({
|
|
|
13
12
|
onSwitchWallet
|
|
14
13
|
}) => {
|
|
15
14
|
const para = useInternalClient();
|
|
16
|
-
const { selectedWallet } = useWalletState();
|
|
17
15
|
const externalWalletsWithFullAuth = useStore((state) => state.externalWalletsWithFullAuth);
|
|
18
16
|
const wallets = useStore((state) => state.externalWallets);
|
|
19
17
|
const isUsing = wallets.some((w) => w in COSMOS_WALLETS);
|
|
@@ -27,7 +25,6 @@ const CosmosWalletWrapper = ({
|
|
|
27
25
|
onSwitchWallet,
|
|
28
26
|
para,
|
|
29
27
|
walletsWithFullAuth: externalWalletsWithFullAuth,
|
|
30
|
-
connectedWallet: (selectedWallet == null ? void 0 : selectedWallet.id) ? { id: selectedWallet.id, type: selectedWallet.type } : null,
|
|
31
28
|
connectionOnly,
|
|
32
29
|
includeWalletVerification
|
|
33
30
|
},
|
|
@@ -5,7 +5,6 @@ import { EvmExternalWalletProvider } from "../providers/EvmExternalWalletProvide
|
|
|
5
5
|
import { useInternalClient } from "../hooks/utils/useInternalClient.js";
|
|
6
6
|
import { useStore } from "../stores/useStore.js";
|
|
7
7
|
import { EVM_WALLETS } from "@getpara/web-sdk";
|
|
8
|
-
import { useWalletState } from "../hooks/index.js";
|
|
9
8
|
const EvmWalletWrapper = ({
|
|
10
9
|
children,
|
|
11
10
|
evmProviderConfig,
|
|
@@ -13,7 +12,6 @@ const EvmWalletWrapper = ({
|
|
|
13
12
|
onSwitchWallet
|
|
14
13
|
}) => {
|
|
15
14
|
const para = useInternalClient();
|
|
16
|
-
const { selectedWallet } = useWalletState();
|
|
17
15
|
const externalWalletsWithFullAuth = useStore((state) => state.externalWalletsWithFullAuth);
|
|
18
16
|
const wallets = useStore((state) => state.externalWallets);
|
|
19
17
|
const connectionOnly = useStore((state) => state.connectionOnly);
|
|
@@ -27,7 +25,6 @@ const EvmWalletWrapper = ({
|
|
|
27
25
|
onSwitchWallet,
|
|
28
26
|
para,
|
|
29
27
|
walletsWithFullAuth: externalWalletsWithFullAuth,
|
|
30
|
-
connectedWallet: (selectedWallet == null ? void 0 : selectedWallet.id) ? { id: selectedWallet.id, type: selectedWallet.type } : null,
|
|
31
28
|
connectionOnly,
|
|
32
29
|
includeWalletVerification
|
|
33
30
|
},
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
} from "../../chunk-MMUBH76A.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback, useEffect, useMemo } from "react";
|
|
8
|
-
import { useModalStore } from "../../modal/stores/index.js";
|
|
9
8
|
import { ExternalWalletProvider } from "../providers/ExternalWalletProvider.js";
|
|
10
9
|
import { EvmWalletWrapper } from "./EvmWalletWrapper.js";
|
|
11
10
|
import { CosmosWalletWrapper } from "./CosmosWalletWrapper.js";
|
|
@@ -20,7 +19,14 @@ const ExternalWalletWrapper = ({
|
|
|
20
19
|
var _a;
|
|
21
20
|
const { appDescription, appIcon, appUrl, walletConnect, evmConnector, cosmosConnector, solanaConnector } = config != null ? config : {};
|
|
22
21
|
const appName = useStore((state) => state.appName);
|
|
23
|
-
const
|
|
22
|
+
const resetAuthFlow = useStore((state) => state.resetAuthFlow);
|
|
23
|
+
const resetAccountFlow = useStore((state) => state.resetAccountFlow);
|
|
24
|
+
const resetOnRamp = useStore((state) => state.resetOnRamp);
|
|
25
|
+
const resetModalState = () => {
|
|
26
|
+
resetAuthFlow();
|
|
27
|
+
resetAccountFlow();
|
|
28
|
+
resetOnRamp();
|
|
29
|
+
};
|
|
24
30
|
const wallets = useStore((state) => state.externalWallets);
|
|
25
31
|
const para = useInternalClient();
|
|
26
32
|
useEffect(() => {
|
|
@@ -29,3 +29,5 @@ export { useIssueJwt } from './useIssueJwt.js';
|
|
|
29
29
|
export { useAddAuthMethod } from './useAddAuthMethod.js';
|
|
30
30
|
export { useExportPrivateKey } from './useExportPrivateKey.js';
|
|
31
31
|
export declare const useCreateGuestWalletsState: import("../../types/utils.js").CoreMethodMutationStateHook<"createGuestWallets">;
|
|
32
|
+
export { useAuthenticateWithEmailOrPhone } from './useAuthenticateWithEmailOrPhone.js';
|
|
33
|
+
export { useAuthenticateWithOAuth } from './useAuthenticateWithOAuth.js';
|
|
@@ -32,8 +32,12 @@ import { useIssueJwt } from "./useIssueJwt.js";
|
|
|
32
32
|
import { useAddAuthMethod } from "./useAddAuthMethod.js";
|
|
33
33
|
import { useExportPrivateKey } from "./useExportPrivateKey.js";
|
|
34
34
|
const useCreateGuestWalletsState = generateStateHook("createGuestWallets");
|
|
35
|
+
import { useAuthenticateWithEmailOrPhone } from "./useAuthenticateWithEmailOrPhone.js";
|
|
36
|
+
import { useAuthenticateWithOAuth } from "./useAuthenticateWithOAuth.js";
|
|
35
37
|
export {
|
|
36
38
|
useAddAuthMethod,
|
|
39
|
+
useAuthenticateWithEmailOrPhone,
|
|
40
|
+
useAuthenticateWithOAuth,
|
|
37
41
|
useClaimPregenWallets,
|
|
38
42
|
useCreateGuestWallets,
|
|
39
43
|
useCreateGuestWalletsState,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AddCredentialParams } from '@getpara/web-sdk';
|
|
1
2
|
export declare const ADD_CREDENTIAL_KEY = "ADD_CREDENTIAL";
|
|
2
3
|
/**
|
|
3
4
|
* React hook to add a new auth method to a user's account. Useful for move a user's account away from basic login.
|
|
@@ -17,26 +18,20 @@ export declare const ADD_CREDENTIAL_KEY = "ADD_CREDENTIAL";
|
|
|
17
18
|
export declare const useAddAuthMethod: ({ openPopup }?: {
|
|
18
19
|
openPopup: boolean;
|
|
19
20
|
}) => {
|
|
20
|
-
status: "idle" | "pending" | "error" | "success";
|
|
21
|
-
error: Error | null;
|
|
22
21
|
data: string | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
authMethod?: import("@getpara/web-sdk").TAuthMethod | undefined;
|
|
26
|
-
} | undefined;
|
|
22
|
+
variables: void | AddCredentialParams | undefined;
|
|
23
|
+
error: Error | null;
|
|
27
24
|
isError: boolean;
|
|
28
25
|
isIdle: boolean;
|
|
29
26
|
isPending: boolean;
|
|
27
|
+
isSuccess: boolean;
|
|
28
|
+
status: "pending" | "error" | "idle" | "success";
|
|
30
29
|
reset: () => void;
|
|
31
30
|
context: unknown;
|
|
32
31
|
failureCount: number;
|
|
33
32
|
failureReason: Error | null;
|
|
34
33
|
isPaused: boolean;
|
|
35
34
|
submittedAt: number;
|
|
36
|
-
addAuthMethod: import("@tanstack/react-query").UseMutateFunction<string, Error, void |
|
|
37
|
-
|
|
38
|
-
}, unknown>;
|
|
39
|
-
addAuthMethodAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, void | {
|
|
40
|
-
authMethod?: import("@getpara/web-sdk").TAuthMethod | undefined;
|
|
41
|
-
}, unknown>;
|
|
35
|
+
addAuthMethod: import("@tanstack/react-query").UseMutateFunction<string, Error, void | AddCredentialParams, unknown>;
|
|
36
|
+
addAuthMethodAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, void | AddCredentialParams, unknown>;
|
|
42
37
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AuthenticateWithEmailOrPhoneParams } from '@getpara/web-sdk';
|
|
2
|
+
export declare const AUTHENTICATE_EMAIL_OR_PHONE_KEY = "AUTHENTICATE_EMAIL_OR_PHONE";
|
|
3
|
+
/**
|
|
4
|
+
* React hook for the `authenticateWithEmailOrPhone` mutation.
|
|
5
|
+
*
|
|
6
|
+
* Returns a mutation result object with all standard fields from `useMutation`, except:
|
|
7
|
+
* - `mutate` and `mutateAsync` are replaced by:
|
|
8
|
+
* - `authenticateWithEmailOrPhone`: function to trigger the mutation (same as `mutate`)
|
|
9
|
+
* - `authenticateWithEmailOrPhoneAsync`: async function to trigger the mutation (same as `mutateAsync`)
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const { authenticateWithEmailOrPhone, authenticateWithEmailOrPhoneAsync } = useAuthenticateWithEmailOrPhone();
|
|
13
|
+
* authenticateWithEmailOrPhone({ ...params });
|
|
14
|
+
* // or
|
|
15
|
+
* await authenticateWithEmailOrPhoneAsync({ ...params });
|
|
16
|
+
*/
|
|
17
|
+
export declare const useAuthenticateWithEmailOrPhone: () => {
|
|
18
|
+
data: import("@getpara/web-sdk").AuthenticateResponse | undefined;
|
|
19
|
+
variables: AuthenticateWithEmailOrPhoneParams | undefined;
|
|
20
|
+
error: Error | null;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
isIdle: boolean;
|
|
23
|
+
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
26
|
+
reset: () => void;
|
|
27
|
+
context: unknown;
|
|
28
|
+
failureCount: number;
|
|
29
|
+
failureReason: Error | null;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
submittedAt: number;
|
|
32
|
+
authenticateWithEmailOrPhone: import("@tanstack/react-query").UseMutateFunction<import("@getpara/web-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
33
|
+
authenticateWithEmailOrPhoneAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/web-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../../chunk-MMUBH76A.js";
|
|
5
|
+
import { useMutation } from "@tanstack/react-query";
|
|
6
|
+
import { useClient } from "../utils/index.js";
|
|
7
|
+
import { renameMutations } from "../../utils/renameMutations.js";
|
|
8
|
+
import { authenticateWithEmailOrPhone } from "../../actions/index.js";
|
|
9
|
+
const AUTHENTICATE_EMAIL_OR_PHONE_KEY = "AUTHENTICATE_EMAIL_OR_PHONE";
|
|
10
|
+
const useAuthenticateWithEmailOrPhone = () => {
|
|
11
|
+
const para = useClient();
|
|
12
|
+
const mutation = useMutation({
|
|
13
|
+
mutationKey: [AUTHENTICATE_EMAIL_OR_PHONE_KEY],
|
|
14
|
+
mutationFn: (params) => __async(void 0, null, function* () {
|
|
15
|
+
try {
|
|
16
|
+
const result = yield authenticateWithEmailOrPhone(para, params);
|
|
17
|
+
return result;
|
|
18
|
+
} catch (error) {
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
return renameMutations(mutation, "authenticateWithEmailOrPhone");
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
AUTHENTICATE_EMAIL_OR_PHONE_KEY,
|
|
27
|
+
useAuthenticateWithEmailOrPhone
|
|
28
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AuthenticateWithOAuthParams } from '@getpara/web-sdk';
|
|
2
|
+
export declare const AUTHENTICATE_OAUTH_KEY = "AUTHENTICATE_OAUTH";
|
|
3
|
+
/**
|
|
4
|
+
* React hook for the `authenticateWithOAuth` mutation.
|
|
5
|
+
*
|
|
6
|
+
* Returns a mutation result object with all standard fields from `useMutation`, except:
|
|
7
|
+
* - `mutate` and `mutateAsync` are replaced by:
|
|
8
|
+
* - `authenticateWithOAuth`: function to trigger the mutation (same as `mutate`)
|
|
9
|
+
* - `authenticateWithOAuthAsync`: async function to trigger the mutation (same as `mutateAsync`)
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const { authenticateWithOAuth, authenticateWithOAuthAsync } = useAuthenticateWithOAuth();
|
|
13
|
+
* authenticateWithOAuth({ ...params });
|
|
14
|
+
* // or
|
|
15
|
+
* await authenticateWithOAuthAsync({ ...params });
|
|
16
|
+
*/
|
|
17
|
+
export declare const useAuthenticateWithOAuth: () => {
|
|
18
|
+
data: import("@getpara/web-sdk").AuthenticateResponse | undefined;
|
|
19
|
+
variables: AuthenticateWithOAuthParams | undefined;
|
|
20
|
+
error: Error | null;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
isIdle: boolean;
|
|
23
|
+
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
26
|
+
reset: () => void;
|
|
27
|
+
context: unknown;
|
|
28
|
+
failureCount: number;
|
|
29
|
+
failureReason: Error | null;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
submittedAt: number;
|
|
32
|
+
authenticateWithOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/web-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
33
|
+
authenticateWithOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/web-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__async
|
|
4
|
+
} from "../../../chunk-MMUBH76A.js";
|
|
5
|
+
import { useMutation } from "@tanstack/react-query";
|
|
6
|
+
import { useClient } from "../utils/index.js";
|
|
7
|
+
import { renameMutations } from "../../utils/renameMutations.js";
|
|
8
|
+
import { authenticateWithOAuth } from "../../actions/index.js";
|
|
9
|
+
const AUTHENTICATE_OAUTH_KEY = "AUTHENTICATE_OAUTH";
|
|
10
|
+
const useAuthenticateWithOAuth = () => {
|
|
11
|
+
const para = useClient();
|
|
12
|
+
const mutation = useMutation({
|
|
13
|
+
mutationKey: [AUTHENTICATE_OAUTH_KEY],
|
|
14
|
+
mutationFn: (params) => __async(void 0, null, function* () {
|
|
15
|
+
try {
|
|
16
|
+
const result = yield authenticateWithOAuth(para, params);
|
|
17
|
+
return result;
|
|
18
|
+
} catch (error) {
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
return renameMutations(mutation, "authenticateWithOAuth");
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
AUTHENTICATE_OAUTH_KEY,
|
|
27
|
+
useAuthenticateWithOAuth
|
|
28
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ClaimPregenWalletsParams, ClaimPregenWalletsResponse } from '@getpara/web-sdk';
|
|
2
2
|
export declare const CLAIM_PREGEN_WALLETS_KEY = "CLAIM_PREGEN_WALLETS";
|
|
3
3
|
/**
|
|
4
4
|
* React hook for the `claimPregenWallets` mutation.
|
|
@@ -15,26 +15,20 @@ export declare const CLAIM_PREGEN_WALLETS_KEY = "CLAIM_PREGEN_WALLETS";
|
|
|
15
15
|
* await claimPregenWalletsAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useClaimPregenWallets: () => {
|
|
18
|
-
|
|
18
|
+
data: ClaimPregenWalletsResponse;
|
|
19
|
+
variables: ClaimPregenWalletsParams | undefined;
|
|
19
20
|
error: Error | null;
|
|
20
|
-
data: Compute<string | undefined>;
|
|
21
|
-
isSuccess: boolean;
|
|
22
|
-
variables: {
|
|
23
|
-
pregenId?: import("@getpara/web-sdk").PregenAuth | undefined;
|
|
24
|
-
} | undefined;
|
|
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
|
-
claimPregenWallets: import("@tanstack/react-query").UseMutateFunction<
|
|
35
|
-
|
|
36
|
-
}, unknown>;
|
|
37
|
-
claimPregenWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<string | undefined>, Error, {
|
|
38
|
-
pregenId?: import("@getpara/web-sdk").PregenAuth | undefined;
|
|
39
|
-
}, unknown>;
|
|
32
|
+
claimPregenWallets: import("@tanstack/react-query").UseMutateFunction<ClaimPregenWalletsResponse, Error, ClaimPregenWalletsParams, unknown>;
|
|
33
|
+
claimPregenWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<ClaimPregenWalletsResponse, Error, ClaimPregenWalletsParams, unknown>;
|
|
40
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CreateGuestWalletsResponse } from '@getpara/web-sdk';
|
|
1
2
|
export declare const CREATE_GUEST_WALLETS_KEY = "CREATE_GUEST_WALLETS";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `createGuestWallets` mutation.
|
|
@@ -14,20 +15,20 @@ export declare const CREATE_GUEST_WALLETS_KEY = "CREATE_GUEST_WALLETS";
|
|
|
14
15
|
* await createGuestWalletsAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useCreateGuestWallets: () => {
|
|
17
|
-
|
|
18
|
-
error: Error | null;
|
|
19
|
-
data: import("@getpara/web-sdk").Wallet[] | undefined;
|
|
20
|
-
isSuccess: boolean;
|
|
18
|
+
data: CreateGuestWalletsResponse | undefined;
|
|
21
19
|
variables: void | undefined;
|
|
20
|
+
error: Error | null;
|
|
22
21
|
isError: boolean;
|
|
23
22
|
isIdle: boolean;
|
|
24
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
25
26
|
reset: () => void;
|
|
26
27
|
context: unknown;
|
|
27
28
|
failureCount: number;
|
|
28
29
|
failureReason: Error | null;
|
|
29
30
|
isPaused: boolean;
|
|
30
31
|
submittedAt: number;
|
|
31
|
-
createGuestWallets: import("@tanstack/react-query").UseMutateFunction<
|
|
32
|
-
createGuestWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<
|
|
32
|
+
createGuestWallets: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
33
|
+
createGuestWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
33
34
|
};
|
|
@@ -11,16 +11,19 @@ const useCreateGuestWallets = () => {
|
|
|
11
11
|
const para = useClient();
|
|
12
12
|
const mutation = useMutation({
|
|
13
13
|
mutationKey: [CREATE_GUEST_WALLETS_KEY],
|
|
14
|
-
mutationFn: (
|
|
14
|
+
mutationFn: () => __async(void 0, null, function* () {
|
|
15
15
|
try {
|
|
16
|
-
const result = yield createGuestWallets(para
|
|
16
|
+
const result = yield createGuestWallets(para);
|
|
17
17
|
return result;
|
|
18
18
|
} catch (error) {
|
|
19
19
|
throw error;
|
|
20
20
|
}
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
|
-
return renameMutations(
|
|
23
|
+
return renameMutations(
|
|
24
|
+
mutation,
|
|
25
|
+
"createGuestWallets"
|
|
26
|
+
);
|
|
24
27
|
};
|
|
25
28
|
export {
|
|
26
29
|
CREATE_GUEST_WALLETS_KEY,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CreatePregenWalletParams } from '@getpara/web-sdk';
|
|
1
2
|
export declare const CREATE_PREGEN_WALLET_KEY = "CREATE_PREGEN_WALLET";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `createPregenWallet` mutation.
|
|
@@ -14,107 +15,20 @@ export declare const CREATE_PREGEN_WALLET_KEY = "CREATE_PREGEN_WALLET";
|
|
|
14
15
|
* await createPregenWalletAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useCreatePregenWallet: () => {
|
|
17
|
-
|
|
18
|
+
data: import("@getpara/web-sdk").Wallet | undefined;
|
|
19
|
+
variables: CreatePregenWalletParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: {
|
|
20
|
-
createdAt?: string | undefined;
|
|
21
|
-
id: string;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
signer: string;
|
|
24
|
-
address?: string | undefined;
|
|
25
|
-
addressSecondary?: string | undefined;
|
|
26
|
-
publicKey?: string | undefined;
|
|
27
|
-
scheme?: import("@getpara/web-sdk").TWalletScheme | undefined;
|
|
28
|
-
type?: import("@getpara/web-sdk").TWalletType | undefined;
|
|
29
|
-
isPregen?: boolean | undefined;
|
|
30
|
-
pregenIdentifier?: string | undefined;
|
|
31
|
-
pregenIdentifierType?: import("@getpara/web-sdk").TPregenIdentifierType | undefined;
|
|
32
|
-
userId?: string | undefined;
|
|
33
|
-
partnerId?: string | undefined;
|
|
34
|
-
partner?: import("@getpara/web-sdk").PartnerEntity | undefined;
|
|
35
|
-
lastUsedAt?: string | undefined;
|
|
36
|
-
lastUsedPartner?: import("@getpara/web-sdk").PartnerEntity | undefined;
|
|
37
|
-
lastUsedPartnerId?: string | undefined;
|
|
38
|
-
isExternal?: boolean | undefined;
|
|
39
|
-
isExternalWithParaAuth?: boolean | undefined;
|
|
40
|
-
externalProviderId?: string | undefined;
|
|
41
|
-
isExternalWithVerification?: boolean | undefined;
|
|
42
|
-
isExternalConnectionOnly?: boolean | undefined;
|
|
43
|
-
ensName?: string | null | undefined;
|
|
44
|
-
ensAvatar?: string | null | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
isSuccess: boolean;
|
|
47
|
-
variables: {
|
|
48
|
-
type: import("@getpara/web-sdk").TWalletType;
|
|
49
|
-
pregenId: import("@getpara/web-sdk").PregenAuth;
|
|
50
|
-
} | undefined;
|
|
51
21
|
isError: boolean;
|
|
52
22
|
isIdle: boolean;
|
|
53
23
|
isPending: boolean;
|
|
24
|
+
isSuccess: boolean;
|
|
25
|
+
status: "pending" | "error" | "idle" | "success";
|
|
54
26
|
reset: () => void;
|
|
55
27
|
context: unknown;
|
|
56
28
|
failureCount: number;
|
|
57
29
|
failureReason: Error | null;
|
|
58
30
|
isPaused: boolean;
|
|
59
31
|
submittedAt: number;
|
|
60
|
-
createPregenWallet: import("@tanstack/react-query").UseMutateFunction<
|
|
61
|
-
|
|
62
|
-
id: string;
|
|
63
|
-
name?: string | undefined;
|
|
64
|
-
signer: string;
|
|
65
|
-
address?: string | undefined;
|
|
66
|
-
addressSecondary?: string | undefined;
|
|
67
|
-
publicKey?: string | undefined;
|
|
68
|
-
scheme?: import("@getpara/web-sdk").TWalletScheme | undefined;
|
|
69
|
-
type?: import("@getpara/web-sdk").TWalletType | undefined;
|
|
70
|
-
isPregen?: boolean | undefined;
|
|
71
|
-
pregenIdentifier?: string | undefined;
|
|
72
|
-
pregenIdentifierType?: import("@getpara/web-sdk").TPregenIdentifierType | undefined;
|
|
73
|
-
userId?: string | undefined;
|
|
74
|
-
partnerId?: string | undefined;
|
|
75
|
-
partner?: import("@getpara/web-sdk").PartnerEntity | undefined;
|
|
76
|
-
lastUsedAt?: string | undefined;
|
|
77
|
-
lastUsedPartner?: import("@getpara/web-sdk").PartnerEntity | undefined;
|
|
78
|
-
lastUsedPartnerId?: string | undefined;
|
|
79
|
-
isExternal?: boolean | undefined;
|
|
80
|
-
isExternalWithParaAuth?: boolean | undefined;
|
|
81
|
-
externalProviderId?: string | undefined;
|
|
82
|
-
isExternalWithVerification?: boolean | undefined;
|
|
83
|
-
isExternalConnectionOnly?: boolean | undefined;
|
|
84
|
-
ensName?: string | null | undefined;
|
|
85
|
-
ensAvatar?: string | null | undefined;
|
|
86
|
-
}, Error, {
|
|
87
|
-
type: import("@getpara/web-sdk").TWalletType;
|
|
88
|
-
pregenId: import("@getpara/web-sdk").PregenAuth;
|
|
89
|
-
}, unknown>;
|
|
90
|
-
createPregenWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
91
|
-
createdAt?: string | undefined;
|
|
92
|
-
id: string;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
signer: string;
|
|
95
|
-
address?: string | undefined;
|
|
96
|
-
addressSecondary?: string | undefined;
|
|
97
|
-
publicKey?: string | undefined;
|
|
98
|
-
scheme?: import("@getpara/web-sdk").TWalletScheme | undefined;
|
|
99
|
-
type?: import("@getpara/web-sdk").TWalletType | undefined;
|
|
100
|
-
isPregen?: boolean | undefined;
|
|
101
|
-
pregenIdentifier?: string | undefined;
|
|
102
|
-
pregenIdentifierType?: import("@getpara/web-sdk").TPregenIdentifierType | undefined;
|
|
103
|
-
userId?: string | undefined;
|
|
104
|
-
partnerId?: string | undefined;
|
|
105
|
-
partner?: import("@getpara/web-sdk").PartnerEntity | undefined;
|
|
106
|
-
lastUsedAt?: string | undefined;
|
|
107
|
-
lastUsedPartner?: import("@getpara/web-sdk").PartnerEntity | undefined;
|
|
108
|
-
lastUsedPartnerId?: string | undefined;
|
|
109
|
-
isExternal?: boolean | undefined;
|
|
110
|
-
isExternalWithParaAuth?: boolean | undefined;
|
|
111
|
-
externalProviderId?: string | undefined;
|
|
112
|
-
isExternalWithVerification?: boolean | undefined;
|
|
113
|
-
isExternalConnectionOnly?: boolean | undefined;
|
|
114
|
-
ensName?: string | null | undefined;
|
|
115
|
-
ensAvatar?: string | null | undefined;
|
|
116
|
-
}, Error, {
|
|
117
|
-
type: import("@getpara/web-sdk").TWalletType;
|
|
118
|
-
pregenId: import("@getpara/web-sdk").PregenAuth;
|
|
119
|
-
}, unknown>;
|
|
32
|
+
createPregenWallet: import("@tanstack/react-query").UseMutateFunction<import("@getpara/web-sdk").Wallet, Error, CreatePregenWalletParams, unknown>;
|
|
33
|
+
createPregenWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/web-sdk").Wallet, Error, CreatePregenWalletParams, unknown>;
|
|
120
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CreatePregenWalletPerTypeParams, CreatePregenWalletPerTypeResponse } from '@getpara/web-sdk';
|
|
1
2
|
export declare const CREATE_PREGEN_WALLET_PER_TYPE_KEY = "CREATE_PREGEN_WALLET_PER_TYPE";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `createPregenWalletPerType` mutation.
|
|
@@ -14,29 +15,20 @@ export declare const CREATE_PREGEN_WALLET_PER_TYPE_KEY = "CREATE_PREGEN_WALLET_P
|
|
|
14
15
|
* await createPregenWalletPerTypeAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useCreatePregenWalletPerType: () => {
|
|
17
|
-
|
|
18
|
+
data: CreatePregenWalletPerTypeResponse | undefined;
|
|
19
|
+
variables: CreatePregenWalletPerTypeParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: import("@getpara/web-sdk").Wallet[] | undefined;
|
|
20
|
-
isSuccess: boolean;
|
|
21
|
-
variables: {
|
|
22
|
-
types?: import("@getpara/web-sdk").TWalletType[] | undefined;
|
|
23
|
-
pregenId: import("@getpara/web-sdk").PregenAuth;
|
|
24
|
-
} | undefined;
|
|
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
|
-
createPregenWalletPerType: import("@tanstack/react-query").UseMutateFunction<
|
|
35
|
-
|
|
36
|
-
pregenId: import("@getpara/web-sdk").PregenAuth;
|
|
37
|
-
}, unknown>;
|
|
38
|
-
createPregenWalletPerTypeAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/web-sdk").Wallet[], Error, {
|
|
39
|
-
types?: import("@getpara/web-sdk").TWalletType[] | undefined;
|
|
40
|
-
pregenId: import("@getpara/web-sdk").PregenAuth;
|
|
41
|
-
}, unknown>;
|
|
32
|
+
createPregenWalletPerType: import("@tanstack/react-query").UseMutateFunction<CreatePregenWalletPerTypeResponse, Error, CreatePregenWalletPerTypeParams, unknown>;
|
|
33
|
+
createPregenWalletPerTypeAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreatePregenWalletPerTypeResponse, Error, CreatePregenWalletPerTypeParams, unknown>;
|
|
42
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CreateWalletParams, CreateWalletResponse } from '@getpara/web-sdk';
|
|
1
2
|
export declare const CREATE_WALLET_KEY = "CREATE_WALLET";
|
|
2
3
|
/**
|
|
3
4
|
* React hook for the `createWallet` mutation.
|
|
@@ -14,29 +15,20 @@ export declare const CREATE_WALLET_KEY = "CREATE_WALLET";
|
|
|
14
15
|
* await createWalletAsync({ ...params });
|
|
15
16
|
*/
|
|
16
17
|
export declare const useCreateWallet: () => {
|
|
17
|
-
|
|
18
|
+
data: CreateWalletResponse | undefined;
|
|
19
|
+
variables: void | CreateWalletParams | undefined;
|
|
18
20
|
error: Error | null;
|
|
19
|
-
data: [import("@getpara/web-sdk").Wallet, string | undefined] | undefined;
|
|
20
|
-
isSuccess: boolean;
|
|
21
|
-
variables: void | {
|
|
22
|
-
type?: Uppercase<import("@getpara/web-sdk").TWalletType> | undefined;
|
|
23
|
-
skipDistribute?: boolean | undefined;
|
|
24
|
-
} | undefined;
|
|
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
|
-
createWallet: import("@tanstack/react-query").UseMutateFunction<
|
|
35
|
-
|
|
36
|
-
skipDistribute?: boolean | undefined;
|
|
37
|
-
}, unknown>;
|
|
38
|
-
createWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<[import("@getpara/web-sdk").Wallet, string | undefined], Error, void | {
|
|
39
|
-
type?: Uppercase<import("@getpara/web-sdk").TWalletType> | undefined;
|
|
40
|
-
skipDistribute?: boolean | undefined;
|
|
41
|
-
}, unknown>;
|
|
32
|
+
createWallet: import("@tanstack/react-query").UseMutateFunction<CreateWalletResponse, Error, void | CreateWalletParams, unknown>;
|
|
33
|
+
createWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateWalletResponse, Error, void | CreateWalletParams, unknown>;
|
|
42
34
|
};
|