@privy-io/react-auth 3.8.0 → 3.8.1
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/cjs/{AccountNotFoundScreen-jSbfPu_e.js → AccountNotFoundScreen-Cu7enz9o.js} +1 -1
- package/dist/cjs/{Address-CZQd_MIA.js → Address-DYZ3IQKV.js} +1 -1
- package/dist/cjs/AffirmativeConsentScreen-Cl_SWg16.js +1 -0
- package/dist/cjs/{AllowlistRejectionScreen-B6roj0JU.js → AllowlistRejectionScreen-D5b9mnX_.js} +1 -1
- package/dist/cjs/{AuthenticateWithWalletScreen-BcBapHrq.js → AuthenticateWithWalletScreen-CfFbXvGY.js} +1 -1
- package/dist/cjs/AwaitingEvmToSolBridgingScreen-CCdsJbKx.js +2 -0
- package/dist/cjs/AwaitingExternalEthereumTransferScreen-CTI3rpHf.js +2 -0
- package/dist/cjs/AwaitingPasswordlessCodeScreen-ftedBDSO.js +1 -0
- package/dist/cjs/{AwaitingSolToEvmBridgingScreen-DYS3lDs0.js → AwaitingSolToEvmBridgingScreen-CaKyEgGQ.js} +1 -1
- package/dist/cjs/{BridgeNetworkSelectionView-uivzU_Y9.js → BridgeNetworkSelectionView-ekW1jVoZ.js} +1 -1
- package/dist/cjs/{Button-nXApC2Jy.js → Button-BpQ22RCK.js} +1 -1
- package/dist/cjs/CaptchaScreen-aaD10pK6.js +1 -0
- package/dist/cjs/CoinbaseOnrampStatusScreen-DXk7YS8-.js +1 -0
- package/dist/cjs/{ConnectEmailForm-BEv-7qU9.js → ConnectEmailForm-uUuYB04I.js} +1 -1
- package/dist/cjs/ConnectLedgerScreen-BsZYPosO.js +1 -0
- package/dist/cjs/{ConnectOnlyLandingScreen-bOhkl0xJ.js → ConnectOnlyLandingScreen-DDCcNqF9.js} +1 -1
- package/dist/cjs/ConnectOnlyStatusScreen-DyJB2X3z.js +1 -0
- package/dist/cjs/ConnectOrCreateScreen-Dfoq-0pD.js +1 -0
- package/dist/cjs/{ConnectPhoneForm-DK-bg2D5.js → ConnectPhoneForm-tjeQd9v8.js} +1 -1
- package/dist/cjs/{ConnectWalletView-4vj7Sq7-.js → ConnectWalletView-CxfQTEJ2.js} +1 -1
- package/dist/cjs/ConnectionStatusScreen-iMAYJhVc.js +1 -0
- package/dist/cjs/CrossAppAuthScreen-CsZ_rLLg.js +1 -0
- package/dist/cjs/{CustomLandingScreenView-tt_NEfU6.js → CustomLandingScreenView-B0bNrKZn.js} +2 -2
- package/dist/cjs/{DelegatedActionsConsentScreen-B5WlYn7z.js → DelegatedActionsConsentScreen-CyITZiB7.js} +1 -1
- package/dist/cjs/DelegatedActionsRevokeScreen-vQnlP7qN.js +1 -0
- package/dist/cjs/EmbeddedWalletConnectingScreen-D5yc0IhZ.js +1 -0
- package/dist/cjs/{EmbeddedWalletCreatedScreen-PycFyIz6.js → EmbeddedWalletCreatedScreen-BFJ6BKQ4.js} +1 -1
- package/dist/cjs/{EmbeddedWalletKeyExportScreen-BDTDQY1f.js → EmbeddedWalletKeyExportScreen-Cz3cpL6Q.js} +2 -2
- package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-L4tUdjxn.js +1 -0
- package/dist/cjs/{EmbeddedWalletPasswordUpdateScreen-ZfgU86hx.js → EmbeddedWalletPasswordUpdateScreen-n5Z982kO.js} +1 -1
- package/dist/cjs/{EmbeddedWalletPasswordUpdateSplashScreen-tP8rSVUL.js → EmbeddedWalletPasswordUpdateSplashScreen-BJQXfJ5I.js} +1 -1
- package/dist/cjs/{EnrollTotp-DZ5fIrXr.js → EnrollTotp-Bo2kHSAy.js} +1 -1
- package/dist/cjs/ErrorScreen-BGI-4cUT.js +1 -0
- package/dist/cjs/FarcasterConnectStatusScreen-BKcQ6ZMu.js +2 -0
- package/dist/cjs/{FarcasterSignerStatusScreen-CDYkqsxz.js → FarcasterSignerStatusScreen-BB63F9MZ.js} +2 -2
- package/dist/cjs/{FundSolWalletWithExternalSolanaWallet-DC_xoE6W.js → FundSolWalletWithExternalSolanaWallet-DFQlLB8a.js} +1 -1
- package/dist/cjs/{FundWalletMethodHeader-zYWhBIiS.js → FundWalletMethodHeader-CZ9E9Pcd.js} +1 -1
- package/dist/cjs/{FundingEditAmountScreen-BB7-k00c.js → FundingEditAmountScreen-C8OzBV96.js} +1 -1
- package/dist/cjs/{FundingMethodSelectionScreen-BrV94GD2.js → FundingMethodSelectionScreen-GE2W8CGa.js} +1 -1
- package/dist/cjs/HCaptchaWrapper-DMLxURsO.js +1 -0
- package/dist/cjs/{InAppBrowserLoginNotPossible-y8g07-kU.js → InAppBrowserLoginNotPossible-BDJuZ0-D.js} +1 -1
- package/dist/cjs/{InstallWalletScreen-CmGi6mS1.js → InstallWalletScreen-tcaVKdvZ.js} +1 -1
- package/dist/cjs/LandingScreen-BIRSSuAB.js +1 -0
- package/dist/cjs/{LinkConflictScreen-BJXyOu2J.js → LinkConflictScreen-D6812iEs.js} +1 -1
- package/dist/cjs/LinkEmailScreen-D-kZRiYu.js +1 -0
- package/dist/cjs/{LinkPasskeyScreen-Bw7Xs741.js → LinkPasskeyScreen-Dn0beRU9.js} +1 -1
- package/dist/cjs/{LinkPhoneScreen-C4JQblY3.js → LinkPhoneScreen-D2wD2X6_.js} +1 -1
- package/dist/cjs/{LoginFailedScreen-CGT-2B2h.js → LoginFailedScreen-JL8lSBDT.js} +1 -1
- package/dist/cjs/ManualTransferScreen-rVVbGuHO.js +1 -0
- package/dist/cjs/MfaAuthEnrollmentFlowScreen-7wF7sedZ.js +1 -0
- package/dist/cjs/MfaAuthVerifyFlowScreen-DXT_z8L7.js +1 -0
- package/dist/cjs/MfaEnrollmentFlowScreen-DJWHdMZL.js +1 -0
- package/dist/cjs/MfaVerifyFlowScreen-BC3Vuttf.js +1 -0
- package/dist/cjs/{ModalHeader-DbV81e3m.js → ModalHeader-BmFtLkWJ.js} +1 -1
- package/dist/cjs/{MoonpayStatusScreen-yghPhz7v.js → MoonpayStatusScreen-DyW9zeoT.js} +1 -1
- package/dist/cjs/OAuthStatusScreen-FjNrpKlb.js +1 -0
- package/dist/cjs/PasskeySelectSignupOrLogin-DyHtky_y.js +1 -0
- package/dist/cjs/PasskeyStatusScreen-Q0ag_5Jx.js +1 -0
- package/dist/cjs/PasswordRecoveryScreen-D6vuUKqB.js +1 -0
- package/dist/cjs/{QrCode-Ua_0cVUP.js → QrCode-qgAdMqWi.js} +1 -1
- package/dist/cjs/RecoveryOAuthStatusScreen-D1xbanmh.js +1 -0
- package/dist/cjs/RecoveryPasswordCreateScreen-DW-I4Bjp.js +1 -0
- package/dist/cjs/RecoverySelectionScreen-CSsw-SMB.js +1 -0
- package/dist/cjs/{Screen-65eQbiHD.js → Screen-BAXdSOJk.js} +1 -1
- package/dist/cjs/{ScreenLayout-B_60rKhZ.js → ScreenLayout-95K6C4n8.js} +1 -1
- package/dist/cjs/{SetAutomaticRecoveryScreen-DQolobOz.js → SetAutomaticRecoveryScreen-DdYvhBam.js} +1 -1
- package/dist/cjs/{SetWalletPasswordForm-8g-lawop.js → SetWalletPasswordForm-D7TN70-K.js} +2 -2
- package/dist/cjs/{SignRequestScreen-BAgmmVVW.js → SignRequestScreen-B6DzD2bf.js} +1 -1
- package/dist/cjs/StandardSignAndSendTransactionScreen-Cl_1GhiF.js +1 -0
- package/dist/cjs/TelegramAuthScreen-D32WGqrh.js +1 -0
- package/dist/cjs/{TransactionDetails-BefABtVQ.js → TransactionDetails-B4mP9iqk.js} +1 -1
- package/dist/cjs/{TransactionErrorView-QKWh4urc.js → TransactionErrorView-BPMOzuyp.js} +2 -2
- package/dist/cjs/TransferFromWalletScreen-BbJ3ISYt.js +1 -0
- package/dist/cjs/{TransferOrBridgeLoadingScreen-C6t1_cTP.js → TransferOrBridgeLoadingScreen-DsBPxxqR.js} +1 -1
- package/dist/cjs/TurnstileWrapper-qLN0G5m7.js +1 -0
- package/dist/cjs/UpdateEmailScreen-fqqg8VfP.js +1 -0
- package/dist/cjs/{UpdatePhoneScreen-DefnuTEZ.js → UpdatePhoneScreen-BJDovBOR.js} +1 -1
- package/dist/cjs/{UserLimitReachedScreen-B76r_-LC.js → UserLimitReachedScreen-CSkM5uLj.js} +1 -1
- package/dist/cjs/WalletButtonList-jzt0Egd8.js +1 -0
- package/dist/cjs/{WalletInfoCard-CscdnrUV.js → WalletInfoCard-bdaI4ebq.js} +1 -1
- package/dist/cjs/{WalletInterstitialScreen-CG1k3EvV.js → WalletInterstitialScreen-BzSNp3dA.js} +1 -1
- package/dist/cjs/{WalletLink-DF6dDjkz.js → WalletLink-2kOfC5R5.js} +1 -1
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/context-CToLw7Dr.js +1 -0
- package/dist/cjs/{ethers-uj8IknV_.js → ethers-Djy--MKt.js} +1 -1
- package/dist/cjs/extended-chains.js +1 -1
- package/dist/cjs/farcaster.js +1 -1
- package/dist/cjs/{frame-bPqBJ8fS.js → frame-BSQIYvLs.js} +1 -1
- package/dist/cjs/{get-is-unified-wallet-DmiciSes.js → get-is-unified-wallet-CAK7Zx3C.js} +1 -1
- package/dist/cjs/{getErc20Balance-BZ5-OGfD.js → getErc20Balance-BiXU_58s.js} +1 -1
- package/dist/cjs/{getErc20TokenInfo-HX7DgcWx.js → getErc20TokenInfo-B78AxnZ3.js} +1 -1
- package/dist/cjs/{getPublicClient-EjAv8R2z.js → getPublicClient-d-gCTRgH.js} +1 -1
- package/dist/cjs/index-BqAmClyL.js +1 -0
- package/dist/cjs/{index-Cuv6j_Y0.js → index-CBf8l7UH.js} +1 -1
- package/dist/cjs/index-DKxtLOTJ.js +5 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/internal-context-D80qA_jS.js +1 -0
- package/dist/cjs/internal.js +1 -1
- package/dist/cjs/{prepareFundingModalData-BVlyr8l5.js → prepareFundingModalData-BhY38T4k.js} +1 -1
- package/dist/cjs/{reservoir-3I-Vkf2B.js → reservoir-DLqCfAka.js} +1 -1
- package/dist/cjs/{shared-CT5ocsPG.js → shared-LnNw37YZ.js} +1 -1
- package/dist/cjs/{shouldProceedtoEmbeddedWalletCreationFlow-DcjqezwI.js → shouldProceedtoEmbeddedWalletCreationFlow-D8TmPfTs.js} +1 -1
- package/dist/cjs/{smart-wallets-B7vHjGAW.js → smart-wallets-BxBo7Rwr.js} +1 -1
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/{to-ui-error-a-xwbRKZ.js → to-ui-error-DQR0PH1r.js} +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/cjs/{use-create-wallet-without-fallback-DSOJS4h0.js → use-create-wallet-without-fallback-DVsaEUAi.js} +1 -1
- package/dist/cjs/{use-export-wallet-BRFTskbr.js → use-export-wallet-Bp3Q263k.js} +1 -1
- package/dist/cjs/{use-sign-with-user-signer-On9f1Fag.js → use-sign-with-user-signer-H6aAias8.js} +1 -1
- package/dist/cjs/{useActiveWallet-DcxqWAsq.js → useActiveWallet-rCbIz7HK.js} +1 -1
- package/dist/cjs/{useGetSolPrice-eOpcFeNE.js → useGetSolPrice-mb9rbK56.js} +1 -1
- package/dist/cjs/{useGetTokenPrice-EcT0H5rf.js → useGetTokenPrice-BXSjabMV.js} +1 -1
- package/dist/cjs/{useI18n-hYSvbQCq.js → useI18n-DnOEBAdg.js} +1 -1
- package/dist/cjs/{usePrivy-CXPeoT5g.js → usePrivy-fmKLKsT3.js} +1 -1
- package/dist/cjs/{useSolanaRpcClient-mfV88iJm.js → useSolanaRpcClient-BSb_hq8i.js} +1 -1
- package/dist/cjs/{useWalletBalance-CQAgfkRc.js → useWalletBalance-9yRQYIAe.js} +1 -1
- package/dist/cjs/{useWallets-h2xCj02C.js → useWallets-D6t7Ii2K.js} +1 -1
- package/dist/cjs/{useWallets-TxPVNWGS.js → useWallets-dr024nCy.js} +1 -1
- package/dist/dts/{events-context-CkFXl3uc.d.mts → events-context-Bt8hY3AJ.d.mts} +1 -1
- package/dist/dts/{events-context-CkFXl3uc.d.ts → events-context-Bt8hY3AJ.d.ts} +1 -1
- package/dist/dts/extended-chains.d.mts +1 -1
- package/dist/dts/extended-chains.d.ts +1 -1
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +17 -10
- package/dist/dts/index.d.ts +17 -10
- package/dist/dts/internal.d.mts +1 -1
- package/dist/dts/internal.d.ts +1 -1
- package/dist/dts/smart-wallets.d.mts +1 -1
- package/dist/dts/smart-wallets.d.ts +1 -1
- package/dist/dts/solana.d.mts +3 -3
- package/dist/dts/solana.d.ts +3 -3
- package/dist/dts/{types-BkkvIRg5.d.mts → types-Dx2VbdX1.d.mts} +52 -7
- package/dist/dts/{types-BkkvIRg5.d.ts → types-Dx2VbdX1.d.ts} +52 -7
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/esm/AccountNotFoundScreen-DQR0FatT.mjs +1 -0
- package/dist/esm/{Address-DtXA0OPS.mjs → Address-C1iw9r70.mjs} +1 -1
- package/dist/esm/AffirmativeConsentScreen-BU4I5ISJ.mjs +1 -0
- package/dist/esm/{AllowlistRejectionScreen-BuH5iBJ3.mjs → AllowlistRejectionScreen-WgcCN6CH.mjs} +1 -1
- package/dist/esm/{AuthenticateWithWalletScreen-CKJqrLEm.mjs → AuthenticateWithWalletScreen-D6Zy69An.mjs} +1 -1
- package/dist/esm/AwaitingEvmToSolBridgingScreen-ByIVuwRF.mjs +2 -0
- package/dist/esm/AwaitingExternalEthereumTransferScreen-Bq0rCErj.mjs +2 -0
- package/dist/esm/AwaitingPasswordlessCodeScreen-itJ4854u.mjs +1 -0
- package/dist/esm/{AwaitingSolToEvmBridgingScreen-YsM6M4T9.mjs → AwaitingSolToEvmBridgingScreen-BSxfnQcf.mjs} +1 -1
- package/dist/esm/{BridgeNetworkSelectionView-Bu0vi9_a.mjs → BridgeNetworkSelectionView-DXjTVIcQ.mjs} +1 -1
- package/dist/esm/{Button-DJ-mtuuD.mjs → Button-OlK_6fKk.mjs} +1 -1
- package/dist/esm/CaptchaScreen-BBjPbV4B.mjs +1 -0
- package/dist/esm/CoinbaseOnrampStatusScreen-CZpfBNiz.mjs +1 -0
- package/dist/esm/{ConnectEmailForm-DUgOCS2V.mjs → ConnectEmailForm-C2TJPUYV.mjs} +1 -1
- package/dist/esm/ConnectLedgerScreen-TCVn5s4x.mjs +1 -0
- package/dist/esm/{ConnectOnlyLandingScreen-BVkcUaO6.mjs → ConnectOnlyLandingScreen-CjVJO9uh.mjs} +1 -1
- package/dist/esm/ConnectOnlyStatusScreen-BGJ4l52n.mjs +1 -0
- package/dist/esm/ConnectOrCreateScreen-CZDi1Oaj.mjs +1 -0
- package/dist/esm/{ConnectPhoneForm-CbuSfwAI.mjs → ConnectPhoneForm-kW8tUq0-.mjs} +1 -1
- package/dist/esm/{ConnectWalletView-DVDOSzi0.mjs → ConnectWalletView-tpdAD3K7.mjs} +1 -1
- package/dist/esm/ConnectionStatusScreen-B3NfUQx_.mjs +1 -0
- package/dist/esm/CrossAppAuthScreen-CnvB1lhx.mjs +1 -0
- package/dist/esm/{CustomLandingScreenView-DWt9lv8W.mjs → CustomLandingScreenView-DZTOg8z4.mjs} +2 -2
- package/dist/esm/DelegatedActionsConsentScreen-DeBkGN9b.mjs +1 -0
- package/dist/esm/{DelegatedActionsRevokeScreen-B-xLCB1j.mjs → DelegatedActionsRevokeScreen-CTgPXrqu.mjs} +1 -1
- package/dist/esm/EmbeddedWalletConnectingScreen-Qu9cmWzJ.mjs +1 -0
- package/dist/esm/EmbeddedWalletCreatedScreen-DFciR3k8.mjs +1 -0
- package/dist/esm/{EmbeddedWalletKeyExportScreen-DX22sVNh.mjs → EmbeddedWalletKeyExportScreen-CEo3FI_N.mjs} +2 -2
- package/dist/esm/EmbeddedWalletOnAccountCreateScreen-C7cawTmQ.mjs +1 -0
- package/dist/esm/{EmbeddedWalletPasswordUpdateScreen-CezgHp88.mjs → EmbeddedWalletPasswordUpdateScreen-GdNNmtZR.mjs} +1 -1
- package/dist/esm/{EmbeddedWalletPasswordUpdateSplashScreen-BFamfPb_.mjs → EmbeddedWalletPasswordUpdateSplashScreen-BNOCuoES.mjs} +1 -1
- package/dist/esm/{EnrollTotp-BzAm1Ya4.mjs → EnrollTotp-CtNw20-I.mjs} +1 -1
- package/dist/esm/ErrorScreen-NoHFWbKU.mjs +1 -0
- package/dist/esm/FarcasterConnectStatusScreen-CiN00CmD.mjs +1 -0
- package/dist/esm/{FarcasterSignerStatusScreen-DIfmv7Ft.mjs → FarcasterSignerStatusScreen-MQ2QrijY.mjs} +1 -1
- package/dist/esm/{FundSolWalletWithExternalSolanaWallet-CkEgl8wO.mjs → FundSolWalletWithExternalSolanaWallet-DVaHCgDh.mjs} +1 -1
- package/dist/esm/{FundWalletMethodHeader-CbTaIDLQ.mjs → FundWalletMethodHeader-RY6-H-Ry.mjs} +1 -1
- package/dist/esm/FundingEditAmountScreen-DiZ2-4XS.mjs +1 -0
- package/dist/esm/{FundingMethodSelectionScreen-fBauGI0K.mjs → FundingMethodSelectionScreen-yZenKs6o.mjs} +1 -1
- package/dist/esm/HCaptchaWrapper-Dl2Jt_Df.mjs +1 -0
- package/dist/esm/{InAppBrowserLoginNotPossible-DBhsoAkw.mjs → InAppBrowserLoginNotPossible-CTnPeOBa.mjs} +1 -1
- package/dist/esm/{InstallWalletScreen-CEcl2LHj.mjs → InstallWalletScreen-CBxWJiQf.mjs} +1 -1
- package/dist/esm/LandingScreen-CzhCoUSE.mjs +1 -0
- package/dist/esm/{LinkConflictScreen-Bg9QTrJX.mjs → LinkConflictScreen-BnoDRUE0.mjs} +1 -1
- package/dist/esm/LinkEmailScreen-x_TPODcx.mjs +1 -0
- package/dist/esm/{LinkPasskeyScreen-CNFL2N09.mjs → LinkPasskeyScreen-D9IfHaec.mjs} +1 -1
- package/dist/esm/{LinkPhoneScreen-DnPAvact.mjs → LinkPhoneScreen-DaK-7otl.mjs} +1 -1
- package/dist/esm/{LoginFailedScreen-CkxfR75o.mjs → LoginFailedScreen-CoukYLVP.mjs} +1 -1
- package/dist/esm/ManualTransferScreen-DdumQnbt.mjs +1 -0
- package/dist/esm/MfaAuthEnrollmentFlowScreen-BsRpCR72.mjs +1 -0
- package/dist/esm/MfaAuthVerifyFlowScreen-Cr92F0yT.mjs +1 -0
- package/dist/esm/MfaEnrollmentFlowScreen-CXyaDU1D.mjs +1 -0
- package/dist/esm/MfaVerifyFlowScreen-ghKHn2BT.mjs +1 -0
- package/dist/esm/{ModalHeader-D7WajfD8.mjs → ModalHeader-CxHK1IKF.mjs} +1 -1
- package/dist/esm/{MoonpayStatusScreen-CBc4DLDR.mjs → MoonpayStatusScreen-DhMZLroP.mjs} +1 -1
- package/dist/esm/OAuthStatusScreen-BFVDc4G4.mjs +1 -0
- package/dist/esm/PasskeySelectSignupOrLogin-Dvxli58H.mjs +1 -0
- package/dist/esm/PasskeyStatusScreen-c9nu4s_d.mjs +1 -0
- package/dist/esm/PasswordRecoveryScreen-CsdO4G6h.mjs +1 -0
- package/dist/esm/{QrCode-zzqjquVm.mjs → QrCode-BI2LxLLg.mjs} +1 -1
- package/dist/esm/RecoveryOAuthStatusScreen-Dp7fnj5t.mjs +1 -0
- package/dist/esm/RecoveryPasswordCreateScreen-DdzD09T3.mjs +1 -0
- package/dist/esm/RecoverySelectionScreen-D2nDGt4R.mjs +1 -0
- package/dist/esm/{Screen-dwi2CitY.mjs → Screen-Dzz_AFFs.mjs} +1 -1
- package/dist/esm/{ScreenLayout-Dmrhdwtt.mjs → ScreenLayout-pthdsODa.mjs} +1 -1
- package/dist/esm/{SetAutomaticRecoveryScreen-Db5Xg_sQ.mjs → SetAutomaticRecoveryScreen-g1kDOe61.mjs} +1 -1
- package/dist/esm/{SetWalletPasswordForm-ZtRqoZYj.mjs → SetWalletPasswordForm-DUTEhc4R.mjs} +2 -2
- package/dist/esm/{SignRequestScreen-DdAK4SlJ.mjs → SignRequestScreen-DjLHkDxK.mjs} +1 -1
- package/dist/esm/StandardSignAndSendTransactionScreen-CFqthHKF.mjs +1 -0
- package/dist/esm/TelegramAuthScreen-B5uYbdxP.mjs +1 -0
- package/dist/esm/{TransactionDetails-fgHkAnf9.mjs → TransactionDetails-DITlhQNk.mjs} +3 -3
- package/dist/esm/{TransactionErrorView-Dgp1KSy5.mjs → TransactionErrorView-DmFbjQHi.mjs} +2 -2
- package/dist/esm/TransferFromWalletScreen-Dvp-YNqS.mjs +1 -0
- package/dist/esm/{TransferOrBridgeLoadingScreen-D3vBwM_o.mjs → TransferOrBridgeLoadingScreen-CFRKffkj.mjs} +1 -1
- package/dist/esm/TurnstileWrapper-Co-t5mTh.mjs +1 -0
- package/dist/esm/UpdateEmailScreen-DoDVvVCw.mjs +1 -0
- package/dist/esm/{UpdatePhoneScreen-Byn7UW7u.mjs → UpdatePhoneScreen-BoEnTnCl.mjs} +1 -1
- package/dist/esm/{UserLimitReachedScreen-DXDqdBpt.mjs → UserLimitReachedScreen-68Vv3bFU.mjs} +1 -1
- package/dist/esm/WalletButtonList-C1OqZHCA.mjs +1 -0
- package/dist/esm/{WalletInfoCard-DAv0WFcc.mjs → WalletInfoCard-DmIqX_B8.mjs} +1 -1
- package/dist/esm/{WalletInterstitialScreen-CKiSWjpa.mjs → WalletInterstitialScreen-Du_L0CK7.mjs} +1 -1
- package/dist/esm/{WalletLink-CjuEskpb.mjs → WalletLink-D2x4SkPO.mjs} +2 -2
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/context-B4VZqX5H.mjs +1 -0
- package/dist/esm/{ethers-CpMSCMOg.mjs → ethers-oRuqwv5W.mjs} +1 -1
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/{frame-BMa3kyjk.mjs → frame-BMn1PaPp.mjs} +1 -1
- package/dist/esm/{get-is-unified-wallet-DymQMSJy.mjs → get-is-unified-wallet-DXko-EzF.mjs} +1 -1
- package/dist/esm/{getErc20Balance-Dtau1386.mjs → getErc20Balance-Cl5jZN3g.mjs} +1 -1
- package/dist/esm/getErc20TokenInfo-wBcf5dYY.mjs +1 -0
- package/dist/esm/{getPublicClient-IxRndou_.mjs → getPublicClient-C_l_ocJu.mjs} +1 -1
- package/dist/esm/{index-DdlRJsoj.mjs → index-BctMJtH0.mjs} +1 -1
- package/dist/esm/index-CCrVHfyv.mjs +5 -0
- package/dist/esm/index-Ce4cEnEO.mjs +1 -0
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{internal-context-Cvo1WmWN.mjs → internal-context-DLZicboG.mjs} +1 -1
- package/dist/esm/internal.mjs +1 -1
- package/dist/esm/{prepareFundingModalData-BUyu5Vhr.mjs → prepareFundingModalData-CndHQFiM.mjs} +1 -1
- package/dist/esm/{reservoir-B0V48m2I.mjs → reservoir-DRNnyqld.mjs} +1 -1
- package/dist/esm/{shared-DsP7M4P5.mjs → shared-BMOp6N9y.mjs} +1 -1
- package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-DVwf2mAj.mjs +1 -0
- package/dist/esm/{smart-wallets-Cbhn7qlU.mjs → smart-wallets-B3-1-dnO.mjs} +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/{to-ui-error-B3m2hl6e.mjs → to-ui-error-B8DSJO-0.mjs} +1 -1
- package/dist/esm/ui.mjs +2 -2
- package/dist/esm/{use-create-wallet-without-fallback-DodUf3VP.mjs → use-create-wallet-without-fallback-COqi_EHH.mjs} +1 -1
- package/dist/esm/{use-export-wallet-CWslDKqf.mjs → use-export-wallet-CRKJ4-yx.mjs} +1 -1
- package/dist/esm/{use-sign-with-user-signer-LJ6ROduD.mjs → use-sign-with-user-signer-J1po7l19.mjs} +1 -1
- package/dist/esm/useActiveWallet-Bj-s666H.mjs +1 -0
- package/dist/esm/{useGetSolPrice-Bi0pPiUW.mjs → useGetSolPrice-fF6UX0Cj.mjs} +1 -1
- package/dist/esm/{useGetTokenPrice-B4XVfxeD.mjs → useGetTokenPrice-CnQZmfvQ.mjs} +1 -1
- package/dist/esm/{useI18n-ByKvnaXP.mjs → useI18n-DIAzggWr.mjs} +1 -1
- package/dist/esm/{usePrivy-D3OPY7tm.mjs → usePrivy-BSIhOAz8.mjs} +1 -1
- package/dist/esm/{useSolanaRpcClient-DjD2ma5c.mjs → useSolanaRpcClient-Be5Dd6m5.mjs} +1 -1
- package/dist/esm/{useWalletBalance-Xca4-c_r.mjs → useWalletBalance-BuMx9pCk.mjs} +1 -1
- package/dist/esm/{useWallets-CQMJYOF9.mjs → useWallets-Cc1ILfGS.mjs} +1 -1
- package/dist/esm/{useWallets-BplPx0Pz.mjs → useWallets-DuxHKVvE.mjs} +1 -1
- package/package.json +7 -6
- package/dist/cjs/AffirmativeConsentScreen-7a4hl59A.js +0 -1
- package/dist/cjs/AwaitingEvmToSolBridgingScreen-D1Xd83Hp.js +0 -2
- package/dist/cjs/AwaitingExternalEthereumTransferScreen-COL0WYkT.js +0 -2
- package/dist/cjs/AwaitingPasswordlessCodeScreen-Cx5fqGf6.js +0 -1
- package/dist/cjs/CaptchaScreen-025syTLo.js +0 -1
- package/dist/cjs/CoinbaseOnrampStatusScreen-ORl8wt4H.js +0 -1
- package/dist/cjs/ConnectLedgerScreen-DBYExlWR.js +0 -1
- package/dist/cjs/ConnectOnlyStatusScreen-DvTrLHyY.js +0 -1
- package/dist/cjs/ConnectOrCreateScreen-Dh4EFU5N.js +0 -1
- package/dist/cjs/ConnectionStatusScreen-Ct-KTCXS.js +0 -1
- package/dist/cjs/CrossAppAuthScreen-B-DtA7IH.js +0 -1
- package/dist/cjs/DelegatedActionsRevokeScreen-2g_ydX-Y.js +0 -1
- package/dist/cjs/EmbeddedWalletConnectingScreen-9seYvsTF.js +0 -1
- package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-B0tXEtG9.js +0 -1
- package/dist/cjs/ErrorScreen-Cob9AO30.js +0 -1
- package/dist/cjs/FarcasterConnectStatusScreen-C5FoWA6N.js +0 -2
- package/dist/cjs/LandingScreen-B9jb8n_d.js +0 -1
- package/dist/cjs/LinkEmailScreen-zyJFrvy-.js +0 -1
- package/dist/cjs/ManualTransferScreen-DPz98CSt.js +0 -1
- package/dist/cjs/MfaAuthEnrollmentFlowScreen-BBKMKDGR.js +0 -1
- package/dist/cjs/MfaAuthVerifyFlowScreen-3LKUo_xV.js +0 -1
- package/dist/cjs/MfaEnrollmentFlowScreen-B2YgNRCC.js +0 -1
- package/dist/cjs/MfaVerifyFlowScreen-BhVqkM2f.js +0 -1
- package/dist/cjs/OAuthStatusScreen-q9MFItPT.js +0 -1
- package/dist/cjs/PasskeySelectSignupOrLogin-BKBH0QxK.js +0 -1
- package/dist/cjs/PasskeyStatusScreen-DVx4lzwq.js +0 -1
- package/dist/cjs/PasswordRecoveryScreen-BmGdXVfh.js +0 -1
- package/dist/cjs/RecoveryOAuthStatusScreen-DUobwBXF.js +0 -1
- package/dist/cjs/RecoveryPasswordCreateScreen-vQG4ErlF.js +0 -1
- package/dist/cjs/RecoverySelectionScreen-E2l_NO8y.js +0 -1
- package/dist/cjs/StandardSignAndSendTransactionScreen-BUB57iWU.js +0 -1
- package/dist/cjs/TelegramAuthScreen-D5uhx6WN.js +0 -1
- package/dist/cjs/TransferFromWalletScreen-C_0IpL-A.js +0 -1
- package/dist/cjs/UpdateEmailScreen-BUAgWudx.js +0 -1
- package/dist/cjs/WalletButtonList-bICzXZXM.js +0 -1
- package/dist/cjs/context-JUEgi5-6.js +0 -1
- package/dist/cjs/index-BNNk54gK.js +0 -1
- package/dist/cjs/index-DvDeCr_m.js +0 -5
- package/dist/cjs/internal-context-VDPFkIXN.js +0 -1
- package/dist/esm/AccountNotFoundScreen-CmhSsknC.mjs +0 -1
- package/dist/esm/AffirmativeConsentScreen-C6AcYU94.mjs +0 -1
- package/dist/esm/AwaitingEvmToSolBridgingScreen-DuO5iRV2.mjs +0 -2
- package/dist/esm/AwaitingExternalEthereumTransferScreen-C50_Dj-N.mjs +0 -2
- package/dist/esm/AwaitingPasswordlessCodeScreen-Bb0UxW46.mjs +0 -1
- package/dist/esm/CaptchaScreen-CWQAXaCK.mjs +0 -1
- package/dist/esm/CoinbaseOnrampStatusScreen-NdySyA5D.mjs +0 -1
- package/dist/esm/ConnectLedgerScreen-3wp1wuP2.mjs +0 -1
- package/dist/esm/ConnectOnlyStatusScreen-CyT_IEgy.mjs +0 -1
- package/dist/esm/ConnectOrCreateScreen-BlIxCxVJ.mjs +0 -1
- package/dist/esm/ConnectionStatusScreen-DNdZyKcL.mjs +0 -1
- package/dist/esm/CrossAppAuthScreen-DEF_slEx.mjs +0 -1
- package/dist/esm/DelegatedActionsConsentScreen-DqeBCJkz.mjs +0 -1
- package/dist/esm/EmbeddedWalletConnectingScreen-BCg7qeI6.mjs +0 -1
- package/dist/esm/EmbeddedWalletCreatedScreen-jGepSDyo.mjs +0 -1
- package/dist/esm/EmbeddedWalletOnAccountCreateScreen-hkifQ988.mjs +0 -1
- package/dist/esm/ErrorScreen-DFAo4S7A.mjs +0 -1
- package/dist/esm/FarcasterConnectStatusScreen-Ys1uAk-s.mjs +0 -1
- package/dist/esm/FundingEditAmountScreen-Cz4tmsMX.mjs +0 -1
- package/dist/esm/LandingScreen-BvRIrtFN.mjs +0 -1
- package/dist/esm/LinkEmailScreen-SlCMvM43.mjs +0 -1
- package/dist/esm/ManualTransferScreen-px_MUbVh.mjs +0 -1
- package/dist/esm/MfaAuthEnrollmentFlowScreen-RbHifi_a.mjs +0 -1
- package/dist/esm/MfaAuthVerifyFlowScreen-B3SIiFnH.mjs +0 -1
- package/dist/esm/MfaEnrollmentFlowScreen-LgmZFVEZ.mjs +0 -1
- package/dist/esm/MfaVerifyFlowScreen-DZkVptvz.mjs +0 -1
- package/dist/esm/OAuthStatusScreen-DvD84FHd.mjs +0 -1
- package/dist/esm/PasskeySelectSignupOrLogin-DZP4Hj5r.mjs +0 -1
- package/dist/esm/PasskeyStatusScreen-bP3yfXNt.mjs +0 -1
- package/dist/esm/PasswordRecoveryScreen-Bt_Cf8-l.mjs +0 -1
- package/dist/esm/RecoveryOAuthStatusScreen-y6_gmb9s.mjs +0 -1
- package/dist/esm/RecoveryPasswordCreateScreen-CloUjFKm.mjs +0 -1
- package/dist/esm/RecoverySelectionScreen-FxCwz-PR.mjs +0 -1
- package/dist/esm/StandardSignAndSendTransactionScreen-C0IrbkCx.mjs +0 -1
- package/dist/esm/TelegramAuthScreen-vp2lrJFZ.mjs +0 -1
- package/dist/esm/TransferFromWalletScreen-CTAGaF9C.mjs +0 -1
- package/dist/esm/UpdateEmailScreen-BBtChP9Q.mjs +0 -1
- package/dist/esm/WalletButtonList-CGloXTN0.mjs +0 -1
- package/dist/esm/context-Cb5MFcME.mjs +0 -1
- package/dist/esm/getErc20TokenInfo-CKA_MDcy.mjs +0 -1
- package/dist/esm/index-B_e8abKi.mjs +0 -1
- package/dist/esm/index-CI666IP9.mjs +0 -5
- package/dist/esm/shouldProceedtoEmbeddedWalletCreationFlow-CxerhsH3.mjs +0 -1
- package/dist/esm/useActiveWallet-hrZcON-K.mjs +0 -1
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as
|
|
2
|
-
export { au as Apple, aH as AppleOAuthWithMetadata, aP as ContractUIOptions, ay as CrossAppAccount, aK as CrossAppAccountWithMetadata, ar as Discord, aC as DiscordOAuthWithMetadata, aM as Email, am as EmailWithMetadata,
|
|
1
|
+
import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as TelegramAuthFlowState } from './types-Dx2VbdX1.js';
|
|
2
|
+
export { au as Apple, aH as AppleOAuthWithMetadata, aP as ContractUIOptions, ay as CrossAppAccount, aK as CrossAppAccountWithMetadata, ar as Discord, aC as DiscordOAuthWithMetadata, aM as Email, am as EmailWithMetadata, aT as Farcaster, aI as FarcasterWithMetadata, aQ as FundingStatus, as as Github, aD as GithubOAuthWithMetadata, ap as Google, aA as GoogleOAuthWithMetadata, aw as Line, aF as LineOAuthWithMetadata, az as LinkedAccountType, at as LinkedIn, aG as LinkedInOAuthWithMetadata, aV as LoginMethodOrderOption, ae as MessageTypes, ag as MoonpayCurrencyCode, ah as MoonpayPaymentMethod, aR as NativeFundingConfig, al as NonEmptyArray, aU as Passkey, aL as PasskeyWithMetadata, aN as Phone, an as PhoneWithMetadata, aS as PriceDisplayOptions, P as PrivyErrorCode, aX as PrivyI18nStrings, ai as Quantity, aW as SiwsFlowState, af as SmartWallet, ax as Telegram, aJ as TelegramWithMetadata, av as Tiktok, aE as TiktokOAuthWithMetadata, aj as TransactionLog, ak as TransactionReceipt, aO as TransactionUIOptions, aq as Twitter, aB as TwitterOAuthWithMetadata, ad as TypedMessage, ao as WalletWithMetadata } from './types-Dx2VbdX1.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
5
5
|
import EventEmitter from 'eventemitter3';
|
|
@@ -15,8 +15,8 @@ import { MouseEvent } from 'react';
|
|
|
15
15
|
import * as _simplewebauthn_browser from '@simplewebauthn/browser';
|
|
16
16
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/browser';
|
|
17
17
|
import { FetchOptions } from 'ofetch';
|
|
18
|
-
import { P as PrivyEvents } from './events-context-
|
|
19
|
-
export { C as CallbackError } from './events-context-
|
|
18
|
+
import { P as PrivyEvents } from './events-context-Bt8hY3AJ.js';
|
|
19
|
+
export { C as CallbackError } from './events-context-Bt8hY3AJ.js';
|
|
20
20
|
import { PaymentRequirementsSelector } from 'x402/client';
|
|
21
21
|
import { X402Config } from 'x402/types';
|
|
22
22
|
import * as viem_accounts from 'viem/accounts';
|
|
@@ -1394,9 +1394,16 @@ interface PrivyProviderProps {
|
|
|
1394
1394
|
*/
|
|
1395
1395
|
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
1396
1396
|
|
|
1397
|
-
|
|
1397
|
+
/**
|
|
1398
|
+
* Provider-agnostic captcha props that work across both Turnstile and hCaptcha.
|
|
1399
|
+
*
|
|
1400
|
+
* Note: Some callbacks may not be supported by all providers:
|
|
1401
|
+
* - `onUnsupported`: Only supported by Turnstile (browser compatibility check)
|
|
1402
|
+
*/
|
|
1403
|
+
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire'>> & {
|
|
1398
1404
|
delayedExecution?: boolean;
|
|
1399
1405
|
};
|
|
1406
|
+
|
|
1400
1407
|
/**
|
|
1401
1408
|
* Used to render an invisible captcha alongside important forms
|
|
1402
1409
|
*
|
|
@@ -1406,7 +1413,7 @@ type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | '
|
|
|
1406
1413
|
* - the state of the captcha workflow can be accessed using `useCaptcha`
|
|
1407
1414
|
* - wrapper around [marsidev/react-turnstile](https://github.com/marsidev/react-turnstile), _accepts same [props](https://docs.page/marsidev/react-turnstile/props)_
|
|
1408
1415
|
*/
|
|
1409
|
-
declare const Captcha: (
|
|
1416
|
+
declare const Captcha: (props: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
1410
1417
|
|
|
1411
1418
|
declare class EmbeddedWalletConnector extends EthereumWalletConnector {
|
|
1412
1419
|
connectorType: ConnectorType;
|
|
@@ -2754,7 +2761,6 @@ declare class PrivyClient {
|
|
|
2754
2761
|
* token refresh when the token is expired or expiring soon
|
|
2755
2762
|
*/
|
|
2756
2763
|
private _getToken;
|
|
2757
|
-
getSmartWalletsConfig(): Promise<SmartWalletConfig>;
|
|
2758
2764
|
getUsdTokenPrice(chain: Chain): Promise<number | undefined>;
|
|
2759
2765
|
getUsdPriceForSol(): Promise<number | undefined>;
|
|
2760
2766
|
getSplTokenMetadata({ mintAddress, cluster, }: {
|
|
@@ -3513,11 +3519,12 @@ interface UseFundWalletInterface {
|
|
|
3513
3519
|
*
|
|
3514
3520
|
* @param address typed data payload to be signed
|
|
3515
3521
|
* @param options {@link FundWalletConfig} Funding configuration to specify chain and funding amount (if enabled)
|
|
3522
|
+
* @returns Promise that resolves when funding completes with FundingResult data
|
|
3516
3523
|
*/
|
|
3517
|
-
fundWallet: ({ address, options }: {
|
|
3524
|
+
fundWallet: ({ address, options, }: {
|
|
3518
3525
|
address: string;
|
|
3519
3526
|
options?: FundWalletConfig;
|
|
3520
|
-
}) => Promise<
|
|
3527
|
+
}) => Promise<FundingResult>;
|
|
3521
3528
|
}
|
|
3522
3529
|
/**
|
|
3523
3530
|
* Hook to fund a wallet via Privy's fiat on-ramp integration given the wallet address.
|
|
@@ -4389,4 +4396,4 @@ declare const useMigrateWallets: () => {
|
|
|
4389
4396
|
}>;
|
|
4390
4397
|
};
|
|
4391
4398
|
|
|
4392
|
-
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, type JwtAuthFlowState, LinkedAccountWithMetadata, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyModal, PrivyProvider, type PrivyProviderProps, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseGetAccessTokenForProvider, type UseImportWalletInterface, type UseLinkJwtAccount, type UseLinkWithPasskey, type UseLinkWithSiws, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSiws, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSessionSignersInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, type UseX402Fetch, User, VERSION, Wallet, WalletConnector, WalletListEntry, type WrapFetchWithPayment, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, getIdentityToken, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGetAccessTokenForProvider, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLinkWithSiws, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSiws, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useMigrateWallets, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletRecovery, useSign7702Authorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets, useX402Fetch };
|
|
4399
|
+
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedWallet, ConnectorManager, type CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, FundingResult, type JwtAuthFlowState, LinkedAccountWithMetadata, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyModal, PrivyProvider, type PrivyProviderProps, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseAuthorizationSignatureInterface, type UseBaseAccountSdkInterface, type UseConnectBaseAccountInterface, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseGetAccessTokenForProvider, type UseImportWalletInterface, type UseLinkJwtAccount, type UseLinkWithPasskey, type UseLinkWithSiws, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSiws, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSessionSignersInterface, type UseSignupWithPasskey, type UseSubscribeToJwtAuthWithFlagInput, type UseSyncJwtBasedAuthStateInput, type UseSyncJwtBasedAuthStateInterface, type UseWalletsInterface, type UseX402Fetch, User, VERSION, Wallet, WalletConnector, WalletListEntry, type WrapFetchWithPayment, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, getIdentityToken, toViemAccount, useActiveWallet, useAuthMfa, useAuthMfaEnrollment, useAuthorizationSignature, useBaseAccountSdk, useConnectBaseAccount, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGetAccessTokenForProvider, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkJwtAccount, useLinkWithPasskey, useLinkWithSiwe, useLinkWithSiws, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSiwe, useLoginWithSiws, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useMigrateWallets, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSessionSigners, useSetWalletRecovery, useSign7702Authorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useSubscribeToJwtAuthWithFlag, useSyncJwtBasedAuthState, useToken, useUpdateAccount, useUpdateEmail, useUser, useWallets, useX402Fetch };
|
package/dist/dts/internal.d.mts
CHANGED
package/dist/dts/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import react__default from 'react';
|
|
3
|
-
import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-
|
|
3
|
+
import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-Dx2VbdX1.js';
|
|
4
4
|
import { SmartAccountClient } from 'permissionless';
|
|
5
5
|
import { EIP1193Provider, Chain, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema, SendTransactionParameters, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters } from 'viem';
|
|
6
6
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import react__default from 'react';
|
|
3
|
-
import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-
|
|
3
|
+
import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-Dx2VbdX1.js';
|
|
4
4
|
import { SmartAccountClient } from 'permissionless';
|
|
5
5
|
import { EIP1193Provider, Chain, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema, SendTransactionParameters, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters } from 'viem';
|
|
6
6
|
import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-
|
|
2
|
-
export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
1
|
+
import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-Dx2VbdX1.js';
|
|
2
|
+
export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-Dx2VbdX1.js';
|
|
3
3
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
4
4
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
5
5
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
7
7
|
import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
|
|
8
8
|
export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
|
|
9
|
-
import { P as PrivyEvents } from './events-context-
|
|
9
|
+
import { P as PrivyEvents } from './events-context-Bt8hY3AJ.js';
|
|
10
10
|
import '@coinbase/wallet-sdk';
|
|
11
11
|
import '@simplewebauthn/browser';
|
|
12
12
|
import '@solana/kit';
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-
|
|
2
|
-
export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
1
|
+
import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-Dx2VbdX1.js';
|
|
2
|
+
export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-Dx2VbdX1.js';
|
|
3
3
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
4
4
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
5
5
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
7
7
|
import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
|
|
8
8
|
export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
|
|
9
|
-
import { P as PrivyEvents } from './events-context-
|
|
9
|
+
import { P as PrivyEvents } from './events-context-Bt8hY3AJ.js';
|
|
10
10
|
import '@coinbase/wallet-sdk';
|
|
11
11
|
import '@simplewebauthn/browser';
|
|
12
12
|
import '@solana/kit';
|
|
@@ -3,7 +3,7 @@ import { PublicKeyCredentialCreationOptionsJSON } from '@simplewebauthn/browser'
|
|
|
3
3
|
import { Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '@solana/kit';
|
|
4
4
|
import { ReactElement, ReactNode } from 'react';
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
|
-
import { OAuthProviderID, AppResponse, PasskeyAuthenticateRequestBody, CustomOAuthProviderID, WalletChainType,
|
|
6
|
+
import { OAuthProviderID, AppResponse, SmartWalletType, PasskeyAuthenticateRequestBody, CustomOAuthProviderID, WalletChainType, User as User$1 } from '@privy-io/api-types';
|
|
7
7
|
import { CountryCode, Chain, ConnectedStandardSolanaWallet, RpcConfig, ChainLikeWithId } from '@privy-io/js-sdk-core';
|
|
8
8
|
import { createBaseAccountSDK } from '@base-org/account';
|
|
9
9
|
import { WalletWithFeatures, Wallet as Wallet$1 } from '@wallet-standard/base';
|
|
@@ -300,7 +300,8 @@ declare enum PrivyErrorCode {
|
|
|
300
300
|
INSUFFICIENT_BALANCE = "insufficient_balance",
|
|
301
301
|
ACCOUNT_TRANSFER_REQUIRED = "account_transfer_required",
|
|
302
302
|
BUFFER_NOT_DEFINED = "buffer_not_defined",
|
|
303
|
-
UNSUPPORTED_WALLET_TYPE = "unsupported_wallet_type"
|
|
303
|
+
UNSUPPORTED_WALLET_TYPE = "unsupported_wallet_type",
|
|
304
|
+
UNKNOWN_FUNDING_ERROR = "unknown_funding_error"
|
|
304
305
|
}
|
|
305
306
|
|
|
306
307
|
declare class WalletTimeoutError extends PrivyConnectorError {
|
|
@@ -581,7 +582,7 @@ type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
|
|
|
581
582
|
type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
|
|
582
583
|
declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
|
|
583
584
|
type UnknownWalletClientType = (typeof UNKNOWN_WALLET_CLIENT_TYPES)[number];
|
|
584
|
-
declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack", "mobile_wallet_adapter"];
|
|
585
|
+
declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack", "jupiter", "mobile_wallet_adapter"];
|
|
585
586
|
type SolanaWalletClientType = (typeof SOLANA_WALLET_CLIENT_TYPES)[number];
|
|
586
587
|
type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType | SolanaWalletClientType;
|
|
587
588
|
declare const SUPPORTED_CONNECTOR_TYPES: string[];
|
|
@@ -668,6 +669,46 @@ type NativeFundingConfig = {
|
|
|
668
669
|
* Optional configuration parameter for the fiat on-ramp.
|
|
669
670
|
*/
|
|
670
671
|
type FundWalletConfig = NativeFundingConfig;
|
|
672
|
+
/**
|
|
673
|
+
* Status of a funding transaction
|
|
674
|
+
*/
|
|
675
|
+
type FundingStatus = 'completed' | 'cancelled';
|
|
676
|
+
/**
|
|
677
|
+
* Result returned when fundWallet() promise resolves
|
|
678
|
+
*/
|
|
679
|
+
interface FundingResult {
|
|
680
|
+
/**
|
|
681
|
+
* Status of the funding transaction
|
|
682
|
+
*/
|
|
683
|
+
status: FundingStatus;
|
|
684
|
+
/**
|
|
685
|
+
* Wallet address that was funded
|
|
686
|
+
*/
|
|
687
|
+
address: string;
|
|
688
|
+
/**
|
|
689
|
+
* Method used to fund the wallet
|
|
690
|
+
*/
|
|
691
|
+
fundingMethod: FundingMethod | undefined;
|
|
692
|
+
/**
|
|
693
|
+
* Transaction hash (if available from on-chain transfer or fiat provider)
|
|
694
|
+
*/
|
|
695
|
+
transactionHash?: string;
|
|
696
|
+
/**
|
|
697
|
+
* Amount transferred
|
|
698
|
+
*/
|
|
699
|
+
amount?: string;
|
|
700
|
+
/**
|
|
701
|
+
* Asset type transferred (e.g., 'Ether', 'USDC')
|
|
702
|
+
*/
|
|
703
|
+
assetType?: string;
|
|
704
|
+
/**
|
|
705
|
+
* Additional provider-specific metadata
|
|
706
|
+
*/
|
|
707
|
+
metadata?: {
|
|
708
|
+
/** Type of wallet used (e.g., 'metamask', 'rainbow', 'phantom') */
|
|
709
|
+
walletClientType?: string;
|
|
710
|
+
};
|
|
711
|
+
}
|
|
671
712
|
/**
|
|
672
713
|
* Possible methods of user-driven recovery.
|
|
673
714
|
* This is set, per app, on the server.
|
|
@@ -1252,7 +1293,7 @@ type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbo
|
|
|
1252
1293
|
/** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
|
|
1253
1294
|
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'wallet_connect_qr_solana'
|
|
1254
1295
|
/** @deprecated rabby_wallet is no longer supported */
|
|
1255
|
-
| 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance' | 'binanceus' | 'bitget_wallet';
|
|
1296
|
+
| 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'jupiter' | 'binance' | 'binanceus' | 'bitget_wallet' | 'kraken_wallet';
|
|
1256
1297
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
1257
1298
|
type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderID | `privy:${string}` | 'farcaster' | 'telegram';
|
|
1258
1299
|
type ExternalWalletsConfig = {
|
|
@@ -1881,8 +1922,11 @@ type AppConfig = {
|
|
|
1881
1922
|
* the default chain in the required chains namespace for WalletConnect.
|
|
1882
1923
|
*/
|
|
1883
1924
|
shouldEnforceDefaultChainOnConnect: boolean;
|
|
1884
|
-
|
|
1885
|
-
|
|
1925
|
+
captcha: {
|
|
1926
|
+
enabled: NonNullable<AppResponse['captcha_enabled']>;
|
|
1927
|
+
siteKey: NonNullable<AppResponse['captcha_site_key']>;
|
|
1928
|
+
provider: 'turnstile' | 'hcaptcha' | null;
|
|
1929
|
+
};
|
|
1886
1930
|
externalWallets: {
|
|
1887
1931
|
coinbaseWallet: {
|
|
1888
1932
|
config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
|
|
@@ -1961,6 +2005,7 @@ type AppConfig = {
|
|
|
1961
2005
|
rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
|
|
1962
2006
|
blockExplorerUrl?: string;
|
|
1963
2007
|
} | null>;
|
|
2008
|
+
smartWallets?: SmartWalletConfig;
|
|
1964
2009
|
};
|
|
1965
2010
|
/** Privy's generated color palette.
|
|
1966
2011
|
* This will be generated, given a passed theme and accent color (from configuration),
|
|
@@ -2394,4 +2439,4 @@ type SessionSignerInput = {
|
|
|
2394
2439
|
policyIds?: string[];
|
|
2395
2440
|
}[];
|
|
2396
2441
|
|
|
2397
|
-
export { type
|
|
2442
|
+
export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type FundingStatus as aQ, type NativeFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type SiwsFlowState as aW, type PrivyI18nStrings as aX, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
|
|
@@ -3,7 +3,7 @@ import { PublicKeyCredentialCreationOptionsJSON } from '@simplewebauthn/browser'
|
|
|
3
3
|
import { Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '@solana/kit';
|
|
4
4
|
import { ReactElement, ReactNode } from 'react';
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
|
-
import { OAuthProviderID, AppResponse, PasskeyAuthenticateRequestBody, CustomOAuthProviderID, WalletChainType,
|
|
6
|
+
import { OAuthProviderID, AppResponse, SmartWalletType, PasskeyAuthenticateRequestBody, CustomOAuthProviderID, WalletChainType, User as User$1 } from '@privy-io/api-types';
|
|
7
7
|
import { CountryCode, Chain, ConnectedStandardSolanaWallet, RpcConfig, ChainLikeWithId } from '@privy-io/js-sdk-core';
|
|
8
8
|
import { createBaseAccountSDK } from '@base-org/account';
|
|
9
9
|
import { WalletWithFeatures, Wallet as Wallet$1 } from '@wallet-standard/base';
|
|
@@ -300,7 +300,8 @@ declare enum PrivyErrorCode {
|
|
|
300
300
|
INSUFFICIENT_BALANCE = "insufficient_balance",
|
|
301
301
|
ACCOUNT_TRANSFER_REQUIRED = "account_transfer_required",
|
|
302
302
|
BUFFER_NOT_DEFINED = "buffer_not_defined",
|
|
303
|
-
UNSUPPORTED_WALLET_TYPE = "unsupported_wallet_type"
|
|
303
|
+
UNSUPPORTED_WALLET_TYPE = "unsupported_wallet_type",
|
|
304
|
+
UNKNOWN_FUNDING_ERROR = "unknown_funding_error"
|
|
304
305
|
}
|
|
305
306
|
|
|
306
307
|
declare class WalletTimeoutError extends PrivyConnectorError {
|
|
@@ -581,7 +582,7 @@ type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
|
|
|
581
582
|
type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
|
|
582
583
|
declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
|
|
583
584
|
type UnknownWalletClientType = (typeof UNKNOWN_WALLET_CLIENT_TYPES)[number];
|
|
584
|
-
declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack", "mobile_wallet_adapter"];
|
|
585
|
+
declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack", "jupiter", "mobile_wallet_adapter"];
|
|
585
586
|
type SolanaWalletClientType = (typeof SOLANA_WALLET_CLIENT_TYPES)[number];
|
|
586
587
|
type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType | SolanaWalletClientType;
|
|
587
588
|
declare const SUPPORTED_CONNECTOR_TYPES: string[];
|
|
@@ -668,6 +669,46 @@ type NativeFundingConfig = {
|
|
|
668
669
|
* Optional configuration parameter for the fiat on-ramp.
|
|
669
670
|
*/
|
|
670
671
|
type FundWalletConfig = NativeFundingConfig;
|
|
672
|
+
/**
|
|
673
|
+
* Status of a funding transaction
|
|
674
|
+
*/
|
|
675
|
+
type FundingStatus = 'completed' | 'cancelled';
|
|
676
|
+
/**
|
|
677
|
+
* Result returned when fundWallet() promise resolves
|
|
678
|
+
*/
|
|
679
|
+
interface FundingResult {
|
|
680
|
+
/**
|
|
681
|
+
* Status of the funding transaction
|
|
682
|
+
*/
|
|
683
|
+
status: FundingStatus;
|
|
684
|
+
/**
|
|
685
|
+
* Wallet address that was funded
|
|
686
|
+
*/
|
|
687
|
+
address: string;
|
|
688
|
+
/**
|
|
689
|
+
* Method used to fund the wallet
|
|
690
|
+
*/
|
|
691
|
+
fundingMethod: FundingMethod | undefined;
|
|
692
|
+
/**
|
|
693
|
+
* Transaction hash (if available from on-chain transfer or fiat provider)
|
|
694
|
+
*/
|
|
695
|
+
transactionHash?: string;
|
|
696
|
+
/**
|
|
697
|
+
* Amount transferred
|
|
698
|
+
*/
|
|
699
|
+
amount?: string;
|
|
700
|
+
/**
|
|
701
|
+
* Asset type transferred (e.g., 'Ether', 'USDC')
|
|
702
|
+
*/
|
|
703
|
+
assetType?: string;
|
|
704
|
+
/**
|
|
705
|
+
* Additional provider-specific metadata
|
|
706
|
+
*/
|
|
707
|
+
metadata?: {
|
|
708
|
+
/** Type of wallet used (e.g., 'metamask', 'rainbow', 'phantom') */
|
|
709
|
+
walletClientType?: string;
|
|
710
|
+
};
|
|
711
|
+
}
|
|
671
712
|
/**
|
|
672
713
|
* Possible methods of user-driven recovery.
|
|
673
714
|
* This is set, per app, on the server.
|
|
@@ -1252,7 +1293,7 @@ type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbo
|
|
|
1252
1293
|
/** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
|
|
1253
1294
|
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'wallet_connect_qr_solana'
|
|
1254
1295
|
/** @deprecated rabby_wallet is no longer supported */
|
|
1255
|
-
| 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance' | 'binanceus' | 'bitget_wallet';
|
|
1296
|
+
| 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'jupiter' | 'binance' | 'binanceus' | 'bitget_wallet' | 'kraken_wallet';
|
|
1256
1297
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
1257
1298
|
type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderID | `privy:${string}` | 'farcaster' | 'telegram';
|
|
1258
1299
|
type ExternalWalletsConfig = {
|
|
@@ -1881,8 +1922,11 @@ type AppConfig = {
|
|
|
1881
1922
|
* the default chain in the required chains namespace for WalletConnect.
|
|
1882
1923
|
*/
|
|
1883
1924
|
shouldEnforceDefaultChainOnConnect: boolean;
|
|
1884
|
-
|
|
1885
|
-
|
|
1925
|
+
captcha: {
|
|
1926
|
+
enabled: NonNullable<AppResponse['captcha_enabled']>;
|
|
1927
|
+
siteKey: NonNullable<AppResponse['captcha_site_key']>;
|
|
1928
|
+
provider: 'turnstile' | 'hcaptcha' | null;
|
|
1929
|
+
};
|
|
1886
1930
|
externalWallets: {
|
|
1887
1931
|
coinbaseWallet: {
|
|
1888
1932
|
config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
|
|
@@ -1961,6 +2005,7 @@ type AppConfig = {
|
|
|
1961
2005
|
rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi>;
|
|
1962
2006
|
blockExplorerUrl?: string;
|
|
1963
2007
|
} | null>;
|
|
2008
|
+
smartWallets?: SmartWalletConfig;
|
|
1964
2009
|
};
|
|
1965
2010
|
/** Privy's generated color palette.
|
|
1966
2011
|
* This will be generated, given a passed theme and accent color (from configuration),
|
|
@@ -2394,4 +2439,4 @@ type SessionSignerInput = {
|
|
|
2394
2439
|
policyIds?: string[];
|
|
2395
2440
|
}[];
|
|
2396
2441
|
|
|
2397
|
-
export { type
|
|
2442
|
+
export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type FundingStatus as aQ, type NativeFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type SiwsFlowState as aW, type PrivyI18nStrings as aX, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
|
package/dist/dts/ui.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-Dx2VbdX1.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-Dx2VbdX1.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{HelpCircle as o}from"lucide-react";import{u as e}from"./context-B4VZqX5H.mjs";import{u as i}from"./internal-context-DLZicboG.mjs";import{a as r}from"./get-is-unified-wallet-DXko-EzF.mjs";import{S as a}from"./ScreenLayout-pthdsODa.mjs";import"react";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"viem";import"./Button-OlK_6fKk.mjs";import"styled-components";import"./useActiveWallet-Bj-s666H.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-CndHQFiM.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-C_l_ocJu.mjs";import"./useWallets-DuxHKVvE.mjs";import"./Screen-Dzz_AFFs.mjs";import"./ModalHeader-CxHK1IKF.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./index-CJMgUOnw.mjs";const n=({title:e="Account not found",subtitle:i,appName:r="this app",ctaText:n="Try logging in again",onRetry:m})=>/*#__PURE__*/t(a,{title:e,subtitle:i||`Please try logging in again or go to ${r} to create an account.`,icon:o,iconVariant:"warning",primaryCta:{label:n,onClick:m},watermark:!0}),m={component:()=>{let{navigate:o,setModalData:a,data:m}=r(),c=e(),{getAuthMeta:p,client:s}=i();/*#__PURE__*/return t(n,{appName:c?.name,onRetry:()=>{let t=p();a({...m,login:{...m?.login,...t?.disableSignup?{disableSignup:!0}:{}}}),s?.authFlow&&(s.authFlow=void 0),o("LandingScreen")}})}};export{m as AccountNotFoundScreen,n as AccountNotFoundScreenView,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as o,Fragment as r}from"react/jsx-runtime";import{Check as i,Copy as t}from"lucide-react";import{useState as n,useEffect as s}from"react";import{styled as c}from"styled-components";import{D as a}from"./useActiveWallet-
|
|
1
|
+
import{jsxs as e,jsx as o,Fragment as r}from"react/jsx-runtime";import{Check as i,Copy as t}from"lucide-react";import{useState as n,useEffect as s}from"react";import{styled as c}from"styled-components";import{D as a}from"./useActiveWallet-Bj-s666H.mjs";import{S as l}from"./Button-OlK_6fKk.mjs";const d=({address:c,showCopyIcon:d,url:h,className:g})=>{let[u,y]=n(!1);function C(e){e.stopPropagation(),navigator.clipboard.writeText(c).then((()=>y(!0))).catch(console.error)}return s((()=>{if(u){let e=setTimeout((()=>y(!1)),3e3);return()=>clearTimeout(e)}}),[u]),/*#__PURE__*/e(m,h?{children:[/*#__PURE__*/o(f,{title:c,className:g,href:`${h}/address/${c}`,target:"_blank",children:a(c)}),d&&/*#__PURE__*/o(l,{onClick:C,size:"sm",style:{gap:"0.375rem"},children:/*#__PURE__*/e(r,u?{children:["Copied",/*#__PURE__*/o(i,{size:16})]}:{children:["Copy",/*#__PURE__*/o(t,{size:16})]})})]}:{children:[/*#__PURE__*/o(p,{title:c,className:g,children:a(c)}),d&&/*#__PURE__*/o(l,{onClick:C,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:/*#__PURE__*/e(r,u?{children:["Copied",/*#__PURE__*/o(i,{size:14})]}:{children:["Copy",/*#__PURE__*/o(t,{size:14})]})})]})};let m=/*#__PURE__*/c.span.withConfig({displayName:"AddressContainer",componentId:"sc-3a987cc8-0"})(["display:inline-flex;align-items:center;gap:0.5rem;"]),p=/*#__PURE__*/c.span.withConfig({displayName:"AddressText",componentId:"sc-3a987cc8-1"})(["font-size:14px;font-weight:500;color:var(--privy-color-foreground);"]),f=/*#__PURE__*/c.a.withConfig({displayName:"AddressLink",componentId:"sc-3a987cc8-2"})(["font-size:14px;color:var(--privy-color-foreground);text-decoration:none;&:hover{text-decoration:underline;}"]);export{d as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{FileCheck as r,ExternalLink as i}from"lucide-react";import"react";import{styled as o}from"styled-components";import{B as n}from"./Button-OlK_6fKk.mjs";import{u as a}from"./context-B4VZqX5H.mjs";import{u as s}from"./internal-context-DLZicboG.mjs";import{u as m,a as l}from"./get-is-unified-wallet-DXko-EzF.mjs";import{s as c}from"./shouldProceedtoEmbeddedWalletCreationFlow-DVwf2mAj.mjs";import{S as p}from"./ScreenLayout-pthdsODa.mjs";import"./useActiveWallet-Bj-s666H.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-CndHQFiM.mjs";import"@privy-io/js-sdk-core";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem";import"viem/utils";import"./getPublicClient-C_l_ocJu.mjs";import"./useWallets-DuxHKVvE.mjs";import"tinycolor2";import"ofetch";import"./index-CCrVHfyv.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"@scure/base";import"./usePrivy-BSIhOAz8.mjs";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"js-cookie";import"./frame-BMn1PaPp.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-J1po7l19.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./Screen-Dzz_AFFs.mjs";import"./ModalHeader-CxHK1IKF.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./index-CJMgUOnw.mjs";const d={component:()=>{let{user:t,logout:r}=m(),{onUserCloseViaDialogOrKeybindRef:i,setModalData:o,navigate:n}=l(),p=a(),{acceptTerms:d,closePrivyModal:y,createAnalyticsEvent:h}=s(),v=e=>{e?.preventDefault(),y({shouldCallAuthOnSuccess:!1}),r()};i.current=v;/*#__PURE__*/return e(u,{termsAndConditionsUrl:p?.legal.termsAndConditionsUrl,privacyPolicyUrl:p?.legal.privacyPolicyUrl,onAccept:async e=>{e?.preventDefault(),await d(),t&&c(t,p.embeddedWallets)?(o({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),h({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AffirmativeConsentScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),n("EmbeddedWalletOnAccountCreateScreen")):y()},onDecline:v})}},u=({termsAndConditionsUrl:o,privacyPolicyUrl:a,onAccept:s,onDecline:m,title:l="One last step",subtitle:c="By signing up, you agree to our terms and privacy policy."})=>/*#__PURE__*/e(p,{title:l,subtitle:c,icon:r,primaryCta:{label:"Accept",onClick:s},secondaryCta:{label:"No thanks",onClick:m},watermark:!0,children:(o||a)&&/*#__PURE__*/t(y,{children:[o&&/*#__PURE__*/t(n,{variant:"muted",href:o,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]}),a&&/*#__PURE__*/t(n,{variant:"muted",href:a,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]})]})});let y=/*#__PURE__*/o.div.withConfig({displayName:"LinksContainer",componentId:"sc-d5115275-0"})(["display:flex;flex-direction:column;gap:12px;margin-top:var(--screen-space);"]);export{d as AffirmativeConsentScreen,u as AffirmativeConsentScreenView,d as default};
|
package/dist/esm/{AllowlistRejectionScreen-BuH5iBJ3.mjs → AllowlistRejectionScreen-WgcCN6CH.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{Lock as o}from"lucide-react";import"react";import{u as e}from"./context-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Lock as o}from"lucide-react";import"react";import{u as e}from"./context-B4VZqX5H.mjs";import{a as i}from"./get-is-unified-wallet-DXko-EzF.mjs";import{S as r}from"./ScreenLayout-pthdsODa.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"viem";import"./internal-context-DLZicboG.mjs";import"ofetch";import"./Button-OlK_6fKk.mjs";import"styled-components";import"./useActiveWallet-Bj-s666H.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-CndHQFiM.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-C_l_ocJu.mjs";import"./useWallets-DuxHKVvE.mjs";import"./Screen-Dzz_AFFs.mjs";import"./ModalHeader-CxHK1IKF.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./index-CJMgUOnw.mjs";const n=({title:e="You don't have access to this app",subtitle:i="Have you been invited?",ctaText:n="Try another account",ctaLink:a,onCtaClick:m})=>/*#__PURE__*/t(r,{title:e,subtitle:i,icon:o,iconVariant:"warning",primaryCta:{label:n,onClick:()=>{a?window.open(a,"_blank"):m?.()}},watermark:!0}),a={component:()=>{let{navigate:o}=i(),r=e(),a=r?.allowlistConfig.errorTitle||"You don't have access to this app",m=r?.allowlistConfig.errorDetail||"Have you been invited?",c=r?.allowlistConfig.errorCtaText||"Try another account",l=r?.allowlistConfig.errorCtaLink;/*#__PURE__*/return t(n,{title:a,subtitle:m,ctaText:c,ctaLink:l??void 0,onCtaClick:()=>{o("LandingScreen")}})}};export{a as AllowlistRejectionScreen,n as AllowlistRejectionScreenView,a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useRef as t,useCallback as o}from"react";import{u as r}from"./context-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useRef as t,useCallback as o}from"react";import{u as r}from"./context-B4VZqX5H.mjs";import{u as n,c as a,b as i}from"./internal-context-DLZicboG.mjs";import{a as l}from"./events-context-CI0iqAXA.mjs";import{a as c}from"./get-is-unified-wallet-DXko-EzF.mjs";import{i as s}from"./ConnectWalletView-tpdAD3K7.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"viem";import"@heroicons/react/24/outline";import"@tanstack/react-virtual";import"react-device-detect";import"styled-components";import"./Button-OlK_6fKk.mjs";import"./useActiveWallet-Bj-s666H.mjs";import"zustand";import"./prepareFundingModalData-CndHQFiM.mjs";import"eventemitter3";import"viem/utils";import"./getPublicClient-C_l_ocJu.mjs";import"./useWallets-DuxHKVvE.mjs";import"@heroicons/react/24/outline/CheckIcon";import"./copy-Bx2Jwc5_.mjs";import"./ModalHeader-CxHK1IKF.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./QrCode-BI2LxLLg.mjs";import"qrcode";import"./EmailInputForm-B4hjCxRU.mjs";import"./ErrorMessage-Cx8GKGhL.mjs";import"./useI18n-DIAzggWr.mjs";import"./WalletCards-DH1rqayz.mjs";import"./Screen-Dzz_AFFs.mjs";import"./index-CJMgUOnw.mjs";const m={component:()=>{let{setWalletConnectionStatus:m,closePrivyModal:p,inProgressAuthFlowRef:u}=n(),{data:d,navigate:C}=c(),W=r(),j=l(),w=d?.externalConnectWallet?.description,h=t(d?.externalConnectWallet?.walletList??W.appearance.walletList),E=t(d?.externalConnectWallet?.walletChainType??W.appearance.walletChainType),f=h.current,v=E.current,x="link"===u.current?void 0:()=>C("LandingScreen");/*#__PURE__*/return e(s,{walletList:f,walletChainType:v,onClose:p,onConnect:o((({connector:e,wallet:t})=>{j("connectWallet","onSuccess",{wallet:t}),m({status:"connected",connectedWallet:t,connector:e,connectError:null,connectRetry:()=>null}),C("ConnectionStatusScreen",!d?.externalConnectWallet?.preSelectedWalletId)}),[m,C,d?.login?.disableSignup,d?.externalConnectWallet?.preSelectedWalletId]),onConnectError:e=>{e instanceof a?(console.warn(e.cause?e.cause:e.message),j("connectWallet","onError",e.privyErrorCode||i.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(e),j("connectWallet","onError",i.UNKNOWN_CONNECT_WALLET_ERROR))},onBack:x,customDescription:w||"",preSelectedWalletId:d?.externalConnectWallet?.preSelectedWalletId,app:W})},isUnauthenticatedScreem:!0};export{m as AuthenticateWithWalletScreen,m as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as t,jsx as a}from"react/jsx-runtime";import i from"@heroicons/react/24/outline/CheckCircleIcon";import{useState as n,useEffect as r}from"react";import{createWalletClient as o,custom as s,publicActions as d,createPublicClient as c,http as m,formatUnits as l}from"viem";import{addToDefaultChains as u}from"@privy-io/js-sdk-core";import{b as p,c as h,R as g}from"./Layouts-Bmf8DxNP.mjs";import{B as f}from"./ModalHeader-CxHK1IKF.mjs";import{C as v}from"./ScreenHeader-Biz1wq02.mjs";import{t as I}from"./FundWalletMethodHeader-RY6-H-Ry.mjs";import{N as j}from"./index-CJMgUOnw.mjs";import{u as w,t as y}from"./context-B4VZqX5H.mjs";import{u as T,a as C,b}from"./internal-context-DLZicboG.mjs";import{Q as S,D as N}from"./useActiveWallet-Bj-s666H.mjs";import{a as E}from"./get-is-unified-wallet-DXko-EzF.mjs";import{u as x}from"./useGetTokenPrice-CnQZmfvQ.mjs";import{u as A}from"./useWallets-DuxHKVvE.mjs";import{O as k}from"./analytics-mkkvFRju.mjs";import{g as F,t as B,a as U,b as L,c as M,u as P}from"./reservoir-DRNnyqld.mjs";import{z as W}from"./index-CCrVHfyv.mjs";import{g as q}from"./getChainName-DjpPdUSc.mjs";import{g as H,a as R}from"./transaction-CnfuREWo.mjs";import{g as D,B as O}from"./BridgeNetworkSelectionView-DXjTVIcQ.mjs";import{a as $}from"./getPublicClient-C_l_ocJu.mjs";import{T as _}from"./TransferOrBridgeLoadingScreen-CFRKffkj.mjs";import"styled-components";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"tinycolor2";import"ofetch";import"zustand";import"react-device-detect";import"./prepareFundingModalData-CndHQFiM.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./useGetSolPrice-fF6UX0Cj.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"@scure/base";import"./usePrivy-BSIhOAz8.mjs";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"js-cookie";import"./frame-BMn1PaPp.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-J1po7l19.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./getFormattedUsdFromLamports-B6EqSEho.mjs";import"./getErc20Balance-Cl5jZN3g.mjs";import"./Button-OlK_6fKk.mjs";import"./Row-CG0lSY5Z.mjs";import"./ErrorMessage-Cx8GKGhL.mjs";import"./Value-B4M62ove.mjs";import"./LoadingSkeleton-CHdaq3pb.mjs";import"./Subtitle-DkvfP2Ev.mjs";import"./Title-D0pfZff-.mjs";import"@heroicons/react/24/outline/WalletIcon";import"./Chip-Bsgj4Yc-.mjs";import"./NetworkIcon-B48ilzF8.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"./shared-CtYf3O54.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"./formatErc20TokenAmount-BuPk9xcy.mjs";import"./ethers-oRuqwv5W.mjs";import"./styles-DY17fuAX.mjs";import"./InjectedWalletIcon-DLcYOGDj.mjs";import"./Address-C1iw9r70.mjs";import"lucide-react";const Q={component:()=>{let Q=w(),{rpcConfig:V,appId:z,closePrivyModal:G,createAnalyticsEvent:X}=T(),{navigate:Y,setModalData:J,data:K}=E(),Z=w(),{wallets:ee}=A(),[te,ae]=n(null),[ie,ne]=n(null),[re,oe]=n([]),[se,de]=n(0),[ce,me]=n(!1),[le,ue]=n(!1),[pe,he]=n(!1),[ge,fe]=n(!1),[ve,Ie]=n(),[je,we]=n();if(!K?.funding||"solana"!==K.funding.chainType)throw Error("Invalid funding data");let{address:ye,chain:Te,connectedWallet:Ce}=K.funding,[be,Se]=n(K.funding.amount),Ne=("ethereum"===Ce?.type?Ce:void 0)??ee[0],Ee=S(Ne?.walletClientType||"unknown"),xe=Ee?.name||"wallet",[Ae,ke]=n(null);r((()=>{(async()=>{if(!Ne)return;let e=await Ne.getEthereumProvider();ke(o({account:Ne.address,transport:s(e)}).extend(d))})().catch(console.error)}),[Ne]);let[Fe,Be]=n(0n),Ue=H(Fe);r((()=>{let e=Q.solanaRpcs[Te];e?W({rpc:e.rpc,address:ye}).then((e=>Be(BigInt(e)))).catch(console.error):console.warn("Unable to load solana rpc, skipping balance")}),[]);let[Le,Me]=n(),{tokenPrice:Pe}=x("solana"),{fundingAmountInBaseUnit:We,fundingAmountInUsd:qe}=R({amount:be,fee:0n,tokenPrice:Pe,isUsdc:K.funding.isUSDC});if(r((()=>{(async()=>{if(!Ae||!Ne)return;let e=["solana:testnet","solana:devnet"].includes(Te);e&&console.warn("Solana testnets are not supported for bridging");let t=u(Z.chains).filter((({testnet:t})=>!!t===e)),a=(await D({chains:t,address:Ne.address,appId:z,rpcConfig:V})).filter((e=>e.balance>0n));if(a.length<1)return void ae(new C(`Wallet ${N(Ne.address)} does not have enough funds.`,void 0,b.INSUFFICIENT_BALANCE));a.sort(((e,t)=>Number(t.balance-e.balance)));let i=(await Promise.allSettled(a.map((async e=>({...e,quote:await F({isTestnet:!1,input:B({appId:z,amount:We.toString(),user:Ne.address,recipient:ye,destinationChainId:L,destinationCurrency:U,originChainId:e.chain.id})})}))))).filter((e=>"fulfilled"===e.status)).map((e=>e.value));if(i.length<1)return void ae(new C(`Unable to fetch quotes for bridging. Wallet ${N(Ne.address)} does not have enough funds.`,void 0,b.INSUFFICIENT_BALANCE));let n=i.map((({quote:e,balance:t,chain:a})=>({bridgeTx:M(e),balance:t,chain:a,isErc20Quote:!1}))).filter((({bridgeTx:e})=>!!e));if(n.length>1)return void oe(n);let r=n.at(0);r?(ue(!0),Me({data:r.bridgeTx.data,to:r.bridgeTx.to,value:r.bridgeTx.value,chain:r.chain})):ae(new C(`Unable to select bridge option from quotes. Wallet ${N(Ne.address)} does not have enough funds.`,void 0,b.INSUFFICIENT_BALANCE))})().catch(console.error)}),[Ae]),r((()=>{(async()=>{let e,t;if(!Ae||!Ne||ce||pe||!Le)return;me(!0);let a=c({chain:Le.chain,transport:m($(Le.chain,V,z))});try{e=await a.prepareTransactionRequest({account:Ne.address,to:Le.to,chain:Le.chain,data:Le.data,value:BigInt(Le.value??0)})}catch(e){console.error(e),re.length>1&&ne(e.shortMessage??"Something went wrong")}if(e){me(!1),he(!0);try{await Ae.switchChain({id:Le.chain.id})}catch(e){await Ae.addChain({chain:Le.chain}),await Ae.switchChain({id:Le.chain.id})}try{t=await Ae.sendTransaction(e)}catch(e){console.error(e),"TransactionExecutionError"===e.name&&(re.length<1?ae(new C(e.shortMessage,void 0,b.TRANSACTION_FAILURE)):ne(e.shortMessage??"Something went wrong"))}if(t)return await Ae.waitForTransactionReceipt({hash:t}),le?(we("pending"),void Ie(t)):(he(!1),fe(!0),void X({eventName:k,payload:{provider:"external",status:"success",txHash:t,address:Ne.address,chainId:Le.chain.id,chainType:"ethereum",value:Le.value?l(BigInt(Le.value),18):void 0,token:"ETH",destination:ye,destinationClusterName:"mainnet-beta",destinationChainType:"solana",destinationValue:l(We,9),destinationToken:"SOL"}}));he(!1)}else me(!1)})().catch(console.error)}),[Ae,Le]),P({transactionHash:ve,isTestnet:!1,bridgingStatus:je,setBridgingStatus:we,onSuccess({transactionHash:e}){ue(!1),fe(!0),X({eventName:k,payload:{provider:"external",status:"success",txHash:e,address:Ne?.address,chainId:Le?.chain.id,chainType:"ethereum",value:Le?.value?l(BigInt(Le.value),18):void 0,token:"ETH",destination:ye,destinationClusterName:"mainnet-beta",destinationChainType:"solana",destinationValue:l(We,9),destinationToken:"SOL"}})},onFailure({error:e}){ue(!1),ae(e)}}),r((()=>{te&&(J({funding:K?.funding,solanaFundingData:K?.solanaFundingData,sendTransaction:K?.sendTransaction,errorModalData:{error:te,previousScreen:"TransferFromWalletScreen"}}),Y("ErrorScreen",!1))}),[te]),r((()=>{if(!ge)return;let e=setTimeout(G,y);return()=>clearTimeout(e)}),[ge]),ge/*#__PURE__*/)return e(t,{children:[/*#__PURE__*/a(I,{}),/*#__PURE__*/a(p,{}),/*#__PURE__*/e(h,{children:[/*#__PURE__*/a(i,{color:"var(--privy-color-success)",width:"64px",height:"64px"}),/*#__PURE__*/a(v,{title:"Success!",description:`You’ve successfully added ${be} SOL to your ${Z.name} wallet. It may take a minute before the funds are available to use.`})]}),/*#__PURE__*/a(g,{}),/*#__PURE__*/a(f,{})]});let He=re[se];return re.length>1&&He?/*#__PURE__*/a(O,{displayName:xe,configuredFundingChain:Te,formattedBalance:Ue,fundingAmount:be,fundingCurrency:"SOL",fundingAmountInUsd:qe,options:re,selectedOption:He,isPreparing:ce,isSubmitting:pe,addressToFund:ye,fundingWalletAddress:Ne?.address||"",errorMessage:ie,onSubmit:()=>{K.funding?.amount!==be?async function(){if(Ne&&He)try{let e=await F({isTestnet:!1,input:B({appId:z,amount:We.toString(),user:Ne.address,recipient:ye,destinationChainId:L,destinationCurrency:U,originChainId:He.chain.id})}),t=M(e);if(!t)throw Error("Invalid transaction request");ue(!0),Me({data:t.data,to:t.to,value:t.value,chain:He.chain})}catch(e){console.error(e),ae(new C("Unable to fetch quotes for bridging",e,b.INSUFFICIENT_BALANCE))}}().catch(console.error):Me({to:He.bridgeTx.to,data:He.bridgeTx.data,value:He.bridgeTx.value,chain:He.chain})},onSelect:e=>{e!==se&&(ne(null),de(e))},onAmountChange:Se}):pe&&Ne?/*#__PURE__*/a(_,{walletClientType:Ne?.walletClientType||"unknown",displayName:xe,addressToFund:ye,isBridging:le,isErc20Flow:!1,chainId:"solana",chainName:q(Te),totalPriceInUsd:void 0,totalPriceInNativeCurrency:void 0,gasPriceInUsd:void 0,gasPriceInNativeCurrency:void 0}):
|
|
2
|
+
/*#__PURE__*/e(t,{children:[/*#__PURE__*/a(I,{}),/*#__PURE__*/a(j,{}),/*#__PURE__*/a("div",{style:{marginTop:"1rem"}}),/*#__PURE__*/a(f,{})]})}};export{Q as AwaitingEvmToSolBridgingScreen,Q as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as t,jsx as i}from"react/jsx-runtime";import r from"@heroicons/react/24/outline/CheckCircleIcon";import{useState as a,useEffect as n}from"react";import{parseEther as o,createWalletClient as s,custom as d,publicActions as c,createPublicClient as l,http as m,encodeFunctionData as u,formatUnits as p}from"viem";import{addToDefaultChains as h}from"@privy-io/js-sdk-core";import{b as f,c as g,R as v}from"./Layouts-Bmf8DxNP.mjs";import{B as y}from"./ModalHeader-CxHK1IKF.mjs";import{C}from"./ScreenHeader-Biz1wq02.mjs";import{t as I}from"./FundWalletMethodHeader-RY6-H-Ry.mjs";import{N as T}from"./index-CJMgUOnw.mjs";import{u as w,t as b}from"./context-B4VZqX5H.mjs";import{u as j,a as E,b as N}from"./internal-context-DLZicboG.mjs";import{Q as A,D as S}from"./useActiveWallet-Bj-s666H.mjs";import{a as x}from"./get-is-unified-wallet-DXko-EzF.mjs";import{u as B}from"./useGetTokenPrice-CnQZmfvQ.mjs";import{u as F}from"./useWallets-DuxHKVvE.mjs";import{E as k}from"./transfer-CMPmjPsM.mjs";import{f as M}from"./formatErc20TokenAmount-BuPk9xcy.mjs";import{c as U,a as W,g as P,s as H}from"./ethers-oRuqwv5W.mjs";import{O as $}from"./analytics-mkkvFRju.mjs";import{t as q,g as L,c as D,u as R}from"./reservoir-DRNnyqld.mjs";import{A as Q}from"./index-CCrVHfyv.mjs";import{g as _,B as O}from"./BridgeNetworkSelectionView-DXjTVIcQ.mjs";import{g as V}from"./getErc20Balance-Cl5jZN3g.mjs";import{a as G}from"./getPublicClient-C_l_ocJu.mjs";import{T as z}from"./TransferOrBridgeLoadingScreen-CFRKffkj.mjs";import"styled-components";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"tinycolor2";import"ofetch";import"zustand";import"react-device-detect";import"./prepareFundingModalData-CndHQFiM.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./useGetSolPrice-fF6UX0Cj.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"@scure/base";import"./usePrivy-BSIhOAz8.mjs";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"js-cookie";import"./frame-BMn1PaPp.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-J1po7l19.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./Button-OlK_6fKk.mjs";import"./Row-CG0lSY5Z.mjs";import"./ErrorMessage-Cx8GKGhL.mjs";import"./Value-B4M62ove.mjs";import"./LoadingSkeleton-CHdaq3pb.mjs";import"./Subtitle-DkvfP2Ev.mjs";import"./Title-D0pfZff-.mjs";import"@heroicons/react/24/outline/WalletIcon";import"./getChainName-DjpPdUSc.mjs";import"./Chip-Bsgj4Yc-.mjs";import"./NetworkIcon-B48ilzF8.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"./shared-CtYf3O54.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"./styles-DY17fuAX.mjs";import"./InjectedWalletIcon-DLcYOGDj.mjs";import"./Address-C1iw9r70.mjs";import"lucide-react";const X={component:()=>{let{rpcConfig:X,appId:Y,closePrivyModal:J,createAnalyticsEvent:K}=j(),{navigate:Z,setModalData:ee,data:te}=x(),ie=w(),{wallets:re}=F(),[ae,ne]=a(!1),[oe,se]=a(0n),[de,ce]=a(!1),[le,me]=a(null),[ue,pe]=a(null),[he,fe]=a([]),[ge,ve]=a(0),[ye,Ce]=a(!1),[Ie,Te]=a(!1),[we,be]=a(!1),[je,Ee]=a(!1),[Ne,Ae]=a(),[Se,xe]=a();if(!te?.funding||"ethereum"!==te.funding.chainType)throw Error("Invalid funding data");let{erc20ContractInfo:Be,chain:Fe,connectedWallet:ke}=te.funding,Me=te.funding.address,Ue=te.funding.erc20Address,[We,Pe]=a(te.funding.amount);n((()=>{Ue&&!Be&&me(Error("Unable to fetch token details"))}),[]);let He=!!Ue&&!!Be,$e=He?BigInt(parseFloat(We)*10**Be.decimals):o(We),qe=("ethereum"===ke?.type?ke:void 0)??re[0],Le=A(qe?.walletClientType||"unknown"),De=Le?.name||"wallet",[Re,Qe]=a(null);n((()=>{(async()=>{if(!qe)return;let e=await qe.getEthereumProvider();Qe(s({account:qe.address,transport:d(e)}).extend(c))})().catch(console.error)}),[qe]);let[_e,Oe]=a(0n);n((()=>{l({chain:Fe,transport:m(G(Fe,X,Y))}).getBalance({address:Me}).then(Oe).catch(console.error)}),[]);let[Ve,Ge]=a(0n);n((()=>{He&&V({chain:Fe,address:Me,appId:Y,rpcConfig:X,erc20Address:Ue}).then((e=>Ge(e.balance))).catch(console.error)}),[]);let{tokenPrice:ze}=B(Fe.id),[Xe,Ye]=a({to:Me,chain:Fe,value:$e,data:void 0});n((()=>{(async()=>{let e,t;if(!Re||!qe||ye||we)return;Ce(!0);let i=l({chain:Xe.chain,transport:m(G(Xe.chain,X,Y))});if(He&&!Xe.data)return await i.simulateContract({address:Ue,chain:Xe.chain,abi:k,functionName:"transfer",args:[Me,$e],account:qe.address}).catch((e=>{console.warn("Simulated token transfer failed with error, fetching bridge options.",e)}))?(Ce(!1),void Ye({to:Ue,chain:Xe.chain,data:u({abi:k,functionName:"transfer",args:[Me,$e]}),value:"0x0"})):(Ce(!1),void ce(!0));try{e=await i.prepareTransactionRequest({account:qe.address,to:Xe.to,chain:Xe.chain,data:Xe.data,value:BigInt(Xe.value??0)})}catch(e){if(console.error(e),he.length>1)pe(e.shortMessage??"Something went wrong");else if(Ie&&0===he.length)return void me(new E(`Wallet ${S(qe.address)} does not have enough funds.`,void 0,N.INSUFFICIENT_BALANCE))}if(!e)return Ce(!1),void ce(!0);Ce(!1),be(!0),ne(!0),se(e.gas);try{await Re.switchChain({id:Xe.chain.id})}catch(e){await Re.addChain({chain:Xe.chain}),await Re.switchChain({id:Xe.chain.id})}try{t=await Re.sendTransaction(e)}catch(e){if(console.error(e),"TransactionExecutionError"===e.name)if(he.length<1){let t=e.shortMessage;(e.shortMessage.includes("rejected the request")||e.details.includes("rejected the request"))&&(t="User rejected the request."),me(new E(t,void 0,N.TRANSACTION_FAILURE))}else pe(e.shortMessage??"Something went wrong")}if(t)return await Re.waitForTransactionReceipt({hash:t}),be(!1),Ie?(Ae(t),void xe("pending")):(Ee(!0),ee(Q(te,"completed",t,qe?.walletClientType,He,Be,Fe)),void K({eventName:$,payload:{provider:"external",status:"success",txHash:t,address:qe.address,chainId:Xe.chain.id,chainType:"ethereum",value:Xe.value?p(BigInt(Xe.value),Be?.decimals??18):void 0,token:Be?.symbol??Ue??"ETH",destinationAddress:Me,destinationChainId:Fe.id,destinationChainType:"ethereum",destinationValue:$e?p($e,Be?.decimals??18):void 0,destinationToken:Be?.symbol??Ue??Fe.nativeCurrency.name}}));be(!1)})().catch(console.error)}),[Re,Xe]),n((()=>{(async()=>{if(!de||!Re||!qe)return;let e=h(ie.chains).filter((e=>e.id!==Fe.id&&!!e.testnet==!!Fe.testnet));He&&e.unshift(Fe);let t=await _({chains:e,address:qe.address,appId:Y,rpcConfig:X,includeUsdc:te.funding?.isUSDC}),i=He?t.filter((e=>e.balance>0n)):t.filter((e=>e.balance>$e)),r=He&&t.every((e=>0n===e.balance));if(i.length<1)return void me(new E(r?`Wallet ${S(qe.address)} doesn't have enough funds to cover gas fees. Top up your wallet and try again.`:`Wallet ${S(qe.address)} does not have enough funds.`,void 0,N.INSUFFICIENT_BALANCE));i.sort(((e,t)=>Number(He?(t.erc20Balance??0n)-(e.erc20Balance??0n):t.balance-e.balance)));let a=i.flatMap((e=>{let t=[{...e,isErc20Quote:!1,isTestnet:!!Fe.testnet,input:q({appId:Y,amount:$e.toString(),user:qe.address,recipient:Me,destinationChainId:Fe.id,destinationCurrency:Ue,originChainId:e.chain.id})}];return He&&Ue&&(e.erc20Balance??0n)>=$e&&t.push({...e,isErc20Quote:!0,isTestnet:!!Fe.testnet,input:q({appId:Y,amount:$e.toString(),user:qe.address,recipient:Me,destinationChainId:Fe.id,destinationCurrency:Ue,originChainId:e.chain.id,originCurrency:e.erc20Address})}),t})),n=(await Promise.allSettled(a.map((async e=>({...e,quote:await L(e)}))))).filter((e=>"fulfilled"===e.status)).map((e=>e.value));if(n.length<1)return void me(new E(`Wallet ${S(qe.address)} does not have enough funds.`,void 0,N.INSUFFICIENT_BALANCE));let o=n.map((e=>({bridgeTx:D(e.quote),balance:e.balance,chain:e.chain,erc20Balance:e.erc20Balance,isErc20Quote:e.isErc20Quote}))).filter((e=>!!e.bridgeTx));if(o.length>1)return void fe(o);let s=o[0];s?(Te(!0),Ye({data:s.bridgeTx.data,to:s.bridgeTx.to,value:s.bridgeTx.value,chain:s.chain})):me(new E(`Wallet ${S(qe.address)} does not have enough funds.`,void 0,N.INSUFFICIENT_BALANCE))})().catch(console.error)}),[de]),R({transactionHash:Ne,isTestnet:!!Fe.testnet,bridgingStatus:Se,setBridgingStatus:xe,onSuccess({transactionHash:e}){Te(!1),Ee(!0),ee(Q(te,"completed",e,qe?.walletClientType,He,Be,Fe)),K({eventName:$,payload:{provider:"external",status:"success",txHash:e,address:qe?.address,chainId:Xe.chain.id,chainType:"ethereum",value:Xe.value?p(BigInt(Xe.value),Be?.decimals??18):void 0,token:Be?.symbol??Ue??"ETH",destinationAddress:Me,destinationChainId:Fe.id,destinationChainType:"ethereum",destinationValue:$e?p($e,Be?.decimals??18):void 0,destinationToken:Be?.symbol??Ue??Fe.nativeCurrency.name}})},onFailure({error:e}){Te(!1),me(e)}}),n((()=>{le&&(ee({funding:te?.funding,solanaFundingData:te?.solanaFundingData,sendTransaction:te?.sendTransaction,errorModalData:{error:le,previousScreen:"TransferFromWalletScreen"}}),Z("ErrorScreen",!1))}),[le]);let Je=!He&&ze?U(We??"0",ze):void 0,Ke=He?oe:H([oe,$e]),Ze=Ke&&ze?W(Ke,ze):void 0,et=Ke?P(Ke,te?.funding?.erc20Address?te?.funding?.erc20ContractInfo?.symbol||"ETH":te?.funding?.chain.nativeCurrency.symbol||"ETH"):void 0,tt=oe&&ze?W(oe,ze):void 0,it=oe?P(oe,Fe?.nativeCurrency?.symbol||"ETH"):void 0;if(n((()=>{if(!je)return;let e=setTimeout(J,b);return()=>clearTimeout(e)}),[je]),je/*#__PURE__*/)return e(t,{children:[/*#__PURE__*/i(I,{}),/*#__PURE__*/i(f,{}),/*#__PURE__*/e(g,{children:[/*#__PURE__*/i(r,{color:"var(--privy-color-success)",width:"64px",height:"64px"}),/*#__PURE__*/i(C,{title:"Success!",description:`You’ve successfully added ${We} ${He?Be.symbol:Fe.nativeCurrency.symbol} to your ${ie.name} wallet. It may take a minute before the funds are available to use.`})]}),/*#__PURE__*/i(v,{}),/*#__PURE__*/i(y,{})]});let rt=He?`${M({amount:Ve,decimals:Be.decimals})} ${Be.symbol}`:P(_e,Fe.nativeCurrency.symbol,3,!0),at=he[ge];return he.length>1&&at?/*#__PURE__*/i(O,{displayName:De,configuredFundingChain:Fe,erc20ContractInfo:Be,formattedBalance:rt,fundingAmount:We,fundingCurrency:He?Be.symbol:Fe.nativeCurrency.symbol,fundingAmountInUsd:Je,options:he,selectedOption:at,isPreparing:ye,isSubmitting:we,addressToFund:Me,fundingWalletAddress:qe?.address||"",errorMessage:ue,onSubmit:()=>{te.funding?.amount!==We?async function(){if(qe&&at)try{let e=await L({isTestnet:!!Fe.testnet,input:q({appId:Y,amount:$e.toString(),user:qe.address,recipient:Me,destinationChainId:Fe.id,destinationCurrency:Ue,originChainId:at.chain.id})}),t=D(e);if(!t)throw Error("Invalid transaction request");Te(!0),Ye({data:t.data,to:t.to,value:t.value,chain:at.chain})}catch(e){console.error(e),me(new E("Unable to fetch quotes for bridging",e,N.INSUFFICIENT_BALANCE))}}().catch(console.error):Ye({to:at.bridgeTx.to,data:at.bridgeTx.data,value:at.bridgeTx.value,chain:at.chain})},onSelect:e=>{e!==ge&&(pe(null),ve(e))},onAmountChange:Pe}):ae&&oe&&qe&&te?.funding?/*#__PURE__*/i(z,{walletClientType:qe?.walletClientType||"unknown",displayName:De,addressToFund:Me,isBridging:Ie,isErc20Flow:He,totalPriceInUsd:Ze,totalPriceInNativeCurrency:et,gasPriceInUsd:tt,gasPriceInNativeCurrency:it,chainId:Fe.id,chainName:Fe.name}):
|
|
2
|
+
/*#__PURE__*/e(t,{children:[/*#__PURE__*/i(I,{}),/*#__PURE__*/i(T,{}),/*#__PURE__*/i("div",{style:{marginTop:"1rem"}}),/*#__PURE__*/i(y,{})]})}};export{X as AwaitingExternalEthereumTransferScreen,X as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import o from"@heroicons/react/20/solid/CheckIcon";import t from"@heroicons/react/24/outline/EnvelopeIcon";import i from"@heroicons/react/24/outline/PhoneIcon";import{useState as n,useEffect as a}from"react";import{isMobile as s}from"react-device-detect";import{styled as c}from"styled-components";import{H as l}from"./Layouts-Bmf8DxNP.mjs";import{L as d}from"./Link-DwjLfHwW.mjs";import{u as p,q as m}from"./context-B4VZqX5H.mjs";import{u,e as f,b as v,j as h}from"./internal-context-DLZicboG.mjs";import{a as y,u as g}from"./get-is-unified-wallet-DXko-EzF.mjs";import{s as b}from"./shouldProceedtoEmbeddedWalletCreationFlow-DVwf2mAj.mjs";import{S as x}from"./ScreenLayout-pthdsODa.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"viem";import"./index-CCrVHfyv.mjs";import"uuid";import"jose";import"eventemitter3";import"./useActiveWallet-Bj-s666H.mjs";import"zustand";import"./prepareFundingModalData-CndHQFiM.mjs";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-C_l_ocJu.mjs";import"./useWallets-DuxHKVvE.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"@scure/base";import"./usePrivy-BSIhOAz8.mjs";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"js-cookie";import"./frame-BMn1PaPp.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-J1po7l19.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./Button-OlK_6fKk.mjs";import"./Screen-Dzz_AFFs.mjs";import"./ModalHeader-CxHK1IKF.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./index-CJMgUOnw.mjs";const C=({contactMethod:c,authFlow:p,appName:m="Privy",whatsAppEnabled:u=!1,onBack:f,onCodeSubmit:v,onResend:h,errorMessage:y,success:g=!1,resendCountdown:b=0,onInvalidInput:C,onClearError:S})=>{let[A,I]=n(w);a((()=>{y||I(w)}),[y]);let N=async e=>{e.preventDefault();let r=e.currentTarget.value.replace(" ","");if(""===r)return;if(isNaN(Number(r)))return void C?.("Code should be numeric");S?.();let o=Number(e.currentTarget.name?.charAt(5)),t=[...r||[""]].slice(0,E-o),i=[...A.slice(0,o),...t,...A.slice(o+t.length)];I(i);let n=Math.min(Math.max(o+t.length,0),E-1);if(!isNaN(Number(e.currentTarget.value))){let e=document.querySelector(`input[name=code-${n}]`);e?.focus()}if(i.every((e=>e&&!isNaN(+e)))){let e=document.querySelector(`input[name=code-${n}]`);e?.blur(),await(v?.(i.join("")))}};/*#__PURE__*/return e(x,{title:"Enter confirmation code",subtitle:/*#__PURE__*/r("span","email"===p?{children:["Please check ",/*#__PURE__*/e(R,{children:c})," for an email from privy.io and enter your code below."]}:{children:["Please check ",/*#__PURE__*/e(R,{children:c})," for a",u?" WhatsApp":""," message from ",m," and enter your code below."]}),icon:"email"===p?t:i,onBack:f,showBack:!0,helpText:/*#__PURE__*/r(L,{children:[/*#__PURE__*/r("span",{children:["Didn't get ","email"===p?"an email":"a message","?"]}),b?/*#__PURE__*/r(M,{children:[/*#__PURE__*/e(o,{color:"var(--privy-color-foreground)",strokeWidth:1.33,height:"12px",width:"12px"}),/*#__PURE__*/e("span",{children:"Code sent"})]}):/*#__PURE__*/e(d,{as:"button",size:"sm",onClick:h,children:"Resend code"})]}),children:/*#__PURE__*/e(j,{children:/*#__PURE__*/e(l,{children:/*#__PURE__*/r(k,{children:[/*#__PURE__*/e("div",{children:A.map(((r,o)=>/*#__PURE__*/e("input",{name:`code-${o}`,type:"text",value:A[o],onChange:N,onKeyUp:e=>{"Backspace"===e.key&&(e=>{if(S?.(),I([...A.slice(0,e),"",...A.slice(e+1)]),e>0){let r=document.querySelector(`input[name=code-${e-1}]`);r?.focus()}})(o)},inputMode:"numeric",autoFocus:0===o,pattern:"[0-9]",className:`${g?"success":""} ${y?"fail":""}`,autoComplete:s?"one-time-code":"off"},o)))}),/*#__PURE__*/e(_,{$fail:!!y,$success:g,children:/*#__PURE__*/e("span",{children:"Invalid or expired verification code"===y?"Incorrect code":y||(g?"Success!":"")})})]})})})})};let E=6,w=Array(6).fill("");var S,A,I=((S=I||{})[S.RESET_AFTER_DELAY=0]="RESET_AFTER_DELAY",S[S.CLEAR_ON_NEXT_VALID_INPUT=1]="CLEAR_ON_NEXT_VALID_INPUT",S),N=((A=N||{})[A.EMAIL=0]="EMAIL",A[A.SMS=1]="SMS",A);const T={component:()=>{let{navigate:r,lastScreen:o,navigateBack:t,setModalData:i,onUserCloseViaDialogOrKeybindRef:s}=y(),c=p(),{closePrivyModal:l,resendEmailCode:d,resendSmsCode:x,getAuthMeta:E,loginWithCode:w,updateWallets:S,createAnalyticsEvent:A}=u(),{authenticated:I,logout:N,user:T}=g(),{whatsAppEnabled:j}=p(),[k,_]=n(!1),[L,M]=n(null),[R,D]=n(null),[O,P]=n(0);s.current=()=>null;let W=E()?.email?0:1,U=0===W?E()?.email||"":E()?.phoneNumber||"",F=m-500;a((()=>{if(O){let e=setTimeout((()=>{P(O-1)}),1e3);return()=>clearTimeout(e)}}),[O]),a((()=>{if(I&&k&&T){if(c?.legal.requireUsersAcceptTerms&&!T.hasAcceptedTerms){let e=setTimeout((()=>{r("AffirmativeConsentScreen")}),F);return()=>clearTimeout(e)}if(b(T,c.embeddedWallets)){let e=setTimeout((()=>{i({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),A({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AwaitingPasswordlessCodeScreen"}}),N()},callAuthOnSuccessOnClose:!0}}),r("EmbeddedWalletOnAccountCreateScreen")}),F);return()=>clearTimeout(e)}{S();let e=setTimeout((()=>l({shouldCallAuthOnSuccess:!0,isSuccess:!0})),m);return()=>clearTimeout(e)}}}),[I,k,T]),a((()=>{if(L&&0===R){let e=setTimeout((()=>{M(null),D(null);let e=document.querySelector("input[name=code-0]");e?.focus()}),1400);return()=>clearTimeout(e)}}),[L,R]);/*#__PURE__*/return e(C,{contactMethod:U,authFlow:0===W?"email":"sms",appName:c?.name,whatsAppEnabled:j,onBack:()=>t(),onCodeSubmit:async e=>{try{await w(e),_(!0)}catch(e){if(e instanceof f&&e.privyErrorCode===v.INVALID_CREDENTIALS)M("Invalid or expired verification code"),D(0);else if(e instanceof f&&e.privyErrorCode===v.CANNOT_LINK_MORE_OF_TYPE)M(e.message);else{if(e instanceof f&&e.privyErrorCode===v.USER_LIMIT_REACHED)return console.error(new h(e).toString()),void r("UserLimitReachedScreen");if(e instanceof f&&e.privyErrorCode===v.USER_DOES_NOT_EXIST)return void r("AccountNotFoundScreen");if(e instanceof f&&e.privyErrorCode===v.LINKED_TO_ANOTHER_USER)return i({errorModalData:{error:e,previousScreen:o??"AwaitingPasswordlessCodeScreen"}}),void r("ErrorScreen",!1);if(e instanceof f&&e.privyErrorCode===v.DISALLOWED_PLUS_EMAIL)return i({inlineError:{error:e}}),void r("ConnectOrCreateScreen",!1);if(e instanceof f&&e.privyErrorCode===v.ACCOUNT_TRANSFER_REQUIRED&&e.data?.data?.nonce)return i({accountTransfer:{nonce:e.data?.data?.nonce,account:U,displayName:e.data?.data?.account?.displayName,linkMethod:0===W?"email":"sms",embeddedWalletAddress:e.data?.data?.otherUser?.embeddedWalletAddress}}),void r("LinkConflictScreen");M("Issue verifying code"),D(0)}}},onResend:async()=>{P(30),0===W?await d():await x()},errorMessage:L||void 0,success:k,resendCountdown:O,onInvalidInput:e=>{M(e),D(1)},onClearError:()=>{1===R&&(M(null),D(null))}})}};let j=/*#__PURE__*/c.div.withConfig({displayName:"PasswordlessCodeContainer",componentId:"sc-6187bfee-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto;gap:16px;flex-grow:1;width:100%;"]),k=/*#__PURE__*/c.div.withConfig({displayName:"CodeInput",componentId:"sc-6187bfee-1"})(["display:flex;flex-direction:column;width:100%;gap:12px;> div:first-child{display:flex;justify-content:center;gap:0.5rem;width:100%;border-radius:var(--privy-border-radius-sm);> input{border:1px solid var(--privy-color-foreground-4);background:var(--privy-color-background);border-radius:var(--privy-border-radius-sm);padding:8px 10px;height:48px;width:40px;text-align:center;font-size:18px;font-weight:600;color:var(--privy-color-foreground);transition:all 0.2s ease;}> input:focus{border:1px solid var(--privy-color-foreground);box-shadow:0 0 0 1px var(--privy-color-foreground);}> input:invalid{border:1px solid var(--privy-color-error);}> input.success{border:1px solid var(--privy-color-border-success);background:var(--privy-color-success-bg);}> input.fail{border:1px solid var(--privy-color-border-error);background:var(--privy-color-error-bg);animation:shake 180ms;animation-iteration-count:2;}}@keyframes shake{0%{transform:translate(1px,0px);}33%{transform:translate(-1px,0px);}67%{transform:translate(-1px,0px);}100%{transform:translate(1px,0px);}}"]),_=/*#__PURE__*/c.div.withConfig({displayName:"InputHelp",componentId:"sc-6187bfee-2"})(["line-height:20px;min-height:20px;font-size:14px;font-weight:400;color:",";display:flex;justify-content:center;width:100%;text-align:center;"],(e=>e.$success?"var(--privy-color-success-dark)":e.$fail?"var(--privy-color-error-dark)":"transparent")),L=/*#__PURE__*/c.div.withConfig({displayName:"HelpTextContainer",componentId:"sc-6187bfee-3"})(["display:flex;gap:8px;align-items:center;justify-content:center;width:100%;color:var(--privy-color-foreground-2);"]),M=/*#__PURE__*/c.div.withConfig({displayName:"Badge",componentId:"sc-6187bfee-4"})(["display:flex;align-items:center;justify-content:center;border-radius:var(--privy-border-radius-sm);padding:2px 8px;gap:4px;background:var(--privy-color-background-2);color:var(--privy-color-foreground-2);"]),R=/*#__PURE__*/c.span.withConfig({displayName:"BoldWrappingSpan",componentId:"sc-6187bfee-5"})(["font-weight:500;word-break:break-all;color:var(--privy-color-foreground);"]);export{T as AwaitingPasswordlessCodeScreen,C as AwaitingPasswordlessCodeScreenView,T as default};
|