@privy-io/react-auth 3.11.0 → 3.11.1-beta-20260121203903
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-BgbWqFBz.js → AccountNotFoundScreen-RZUQmQIk.js} +1 -1
- package/dist/cjs/{Address-DiSm2l-W.js → Address-DvOcxlUo.js} +1 -1
- package/dist/cjs/{AffirmativeConsentScreen-frUX4n9j.js → AffirmativeConsentScreen-DLWcVEb0.js} +1 -1
- package/dist/cjs/{AllowlistRejectionScreen-CZ4wDXU2.js → AllowlistRejectionScreen-D4SmR-eM.js} +1 -1
- package/dist/cjs/{AuthenticateWithWalletScreen-CoV6Cepf.js → AuthenticateWithWalletScreen-BWzZT5MI.js} +1 -1
- package/dist/cjs/{AwaitingEvmToSolBridgingScreen-5qv5Urz2.js → AwaitingEvmToSolBridgingScreen-k97fI9em.js} +1 -1
- package/dist/cjs/AwaitingExternalEthereumTransferScreen-m4IWTGam.js +2 -0
- package/dist/cjs/{AwaitingPasswordlessCodeScreen-DrgaEVkD.js → AwaitingPasswordlessCodeScreen-BpPFuyVa.js} +1 -1
- package/dist/cjs/{AwaitingSolToEvmBridgingScreen-CQAxGoKP.js → AwaitingSolToEvmBridgingScreen-DPrRf-se.js} +1 -1
- package/dist/cjs/{BridgeNetworkSelectionView-Bd-ehyqP.js → BridgeNetworkSelectionView-pqZH6aEP.js} +1 -1
- package/dist/cjs/{CaptchaScreen-Csab6OjG.js → CaptchaScreen-nno_DeVo.js} +1 -1
- package/dist/cjs/{CoinbaseOnrampStatusScreen-Dsc8OMxP.js → CoinbaseOnrampStatusScreen-Fit_-mUl.js} +1 -1
- package/dist/cjs/{ConnectEmailForm-BaLVG2V3.js → ConnectEmailForm-CvpXHbvm.js} +1 -1
- package/dist/cjs/{ConnectLedgerScreen-cPU7ad2m.js → ConnectLedgerScreen-nBnIQH_E.js} +1 -1
- package/dist/cjs/{ConnectOnlyLandingScreen-Br3hNEVI.js → ConnectOnlyLandingScreen-DYyltRDK.js} +1 -1
- package/dist/cjs/{ConnectOnlyStatusScreen-CwYbJV03.js → ConnectOnlyStatusScreen-CNydKxL3.js} +1 -1
- package/dist/cjs/{ConnectOrCreateScreen-C5n4aoBd.js → ConnectOrCreateScreen-CEYOMLS0.js} +1 -1
- package/dist/cjs/{ConnectPhoneForm-grT6QJKW.js → ConnectPhoneForm-n0Ir63YF.js} +1 -1
- package/dist/cjs/{ConnectWalletView-acXo09ry.js → ConnectWalletView-C5RUSkYw.js} +1 -1
- package/dist/cjs/{ConnectionStatusScreen-DvxCQtND.js → ConnectionStatusScreen-D66HjJ9d.js} +1 -1
- package/dist/cjs/{CrossAppAuthScreen-BZrqdowY.js → CrossAppAuthScreen-BlAAnv4P.js} +1 -1
- package/dist/cjs/{CustomLandingScreenView-DQhD7H-Y.js → CustomLandingScreenView-Bb3HFp04.js} +1 -1
- package/dist/cjs/{DelegatedActionsConsentScreen-aa3stKge.js → DelegatedActionsConsentScreen-BwFIgwlL.js} +1 -1
- package/dist/cjs/{DelegatedActionsRevokeScreen-C4dyQxew.js → DelegatedActionsRevokeScreen-hYJVAMSG.js} +1 -1
- package/dist/cjs/{EmbeddedWalletConnectingScreen-B2sIDKrU.js → EmbeddedWalletConnectingScreen-AHB8rY4q.js} +1 -1
- package/dist/cjs/{EmbeddedWalletCreatedScreen-Dq73pt9b.js → EmbeddedWalletCreatedScreen-DHAatfd0.js} +1 -1
- package/dist/cjs/{EmbeddedWalletKeyExportScreen-BTB0EbJJ.js → EmbeddedWalletKeyExportScreen-CV925NJl.js} +1 -1
- package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-7a79-vYL.js +1 -0
- package/dist/cjs/{EmbeddedWalletPasswordUpdateScreen-BBoSpChs.js → EmbeddedWalletPasswordUpdateScreen-DjKQJpbm.js} +1 -1
- package/dist/cjs/{EmbeddedWalletPasswordUpdateSplashScreen-CLaYjxpz.js → EmbeddedWalletPasswordUpdateSplashScreen-Cv5jWZxV.js} +1 -1
- package/dist/cjs/{EnrollTotp-D6ocCn4v.js → EnrollTotp-Dj3Dsvm_.js} +1 -1
- package/dist/cjs/{ErrorScreen-C2xSdkYC.js → ErrorScreen-CZPWuczS.js} +1 -1
- package/dist/cjs/{FarcasterConnectStatusScreen-DvVyh8zU.js → FarcasterConnectStatusScreen-DUYhOO7b.js} +1 -1
- package/dist/cjs/{FarcasterSignerStatusScreen-kIG2AKFp.js → FarcasterSignerStatusScreen-jWhFgNOH.js} +1 -1
- package/dist/cjs/{FundSolWalletWithExternalSolanaWallet-B2U_lFvw.js → FundSolWalletWithExternalSolanaWallet-BSgvqB70.js} +1 -1
- package/dist/cjs/{FundWalletMethodHeader-CfHXgc0M.js → FundWalletMethodHeader-DQK9y0aY.js} +1 -1
- package/dist/cjs/FundingEditAmountScreen-DvNnAP2W.js +1 -0
- package/dist/cjs/{FundingMethodSelectionScreen-CBjGLXbZ.js → FundingMethodSelectionScreen-CalOUo0B.js} +1 -1
- package/dist/cjs/{InAppBrowserLoginNotPossible-CIG8bv6d.js → InAppBrowserLoginNotPossible-BDiHa7jI.js} +1 -1
- package/dist/cjs/{InstallWalletScreen-B2vD26WT.js → InstallWalletScreen-BJnzGz4d.js} +1 -1
- package/dist/cjs/{LandingScreen-BEYwefB2.js → LandingScreen-C1x4_p_d.js} +1 -1
- package/dist/cjs/{LinkConflictScreen-CgR1CRSp.js → LinkConflictScreen-C6x_ncim.js} +1 -1
- package/dist/cjs/{LinkEmailScreen-aoilMVGp.js → LinkEmailScreen-AjVtqBaA.js} +1 -1
- package/dist/cjs/{LinkPasskeyScreen-CMBY4_3D.js → LinkPasskeyScreen-DMRGlud1.js} +1 -1
- package/dist/cjs/{LinkPhoneScreen-BuspORFm.js → LinkPhoneScreen-DD21Qmod.js} +1 -1
- package/dist/cjs/{LoginFailedScreen-rbFVmsvC.js → LoginFailedScreen-CIpe87NH.js} +1 -1
- package/dist/cjs/{ManualTransferScreen-COoRzSz6.js → ManualTransferScreen-CyJYfUlU.js} +1 -1
- package/dist/cjs/{MfaAuthEnrollmentFlowScreen-_ncbAR0l.js → MfaAuthEnrollmentFlowScreen-DzngmyLo.js} +1 -1
- package/dist/cjs/{MfaAuthVerifyFlowScreen--2tpPZkF.js → MfaAuthVerifyFlowScreen-CBOzaSAc.js} +1 -1
- package/dist/cjs/{MfaEnrollmentFlowScreen-Bn7kOj-x.js → MfaEnrollmentFlowScreen-55tEmBJh.js} +1 -1
- package/dist/cjs/{MfaVerifyFlowScreen-CjXrt1xv.js → MfaVerifyFlowScreen-DaIPQR72.js} +1 -1
- package/dist/cjs/{ModalHeader-HFJct04e.js → ModalHeader-LSXkaXcl.js} +1 -1
- package/dist/cjs/{MoonpayStatusScreen-BYVEV6Hl.js → MoonpayStatusScreen-D_q2vNSj.js} +1 -1
- package/dist/cjs/{OAuthStatusScreen-Yyaxj4Os.js → OAuthStatusScreen-Q32YT7Xd.js} +1 -1
- package/dist/cjs/{PasskeySelectSignupOrLogin-DnuQecC6.js → PasskeySelectSignupOrLogin-QWZDah9B.js} +1 -1
- package/dist/cjs/{PasskeyStatusScreen-i0ui7oVt.js → PasskeyStatusScreen-Btu1z-Db.js} +1 -1
- package/dist/cjs/{PasswordRecoveryScreen-eges-du_.js → PasswordRecoveryScreen-DBi0pol-.js} +1 -1
- package/dist/cjs/{QrCode-B0wOoW1E.js → QrCode-B5AlIfrN.js} +1 -1
- package/dist/cjs/RecoveryOAuthStatusScreen-COSwnkwr.js +1 -0
- package/dist/cjs/RecoveryPasswordCreateScreen-DBXYtHzz.js +1 -0
- package/dist/cjs/{RecoverySelectionScreen-CwLucuiD.js → RecoverySelectionScreen-CMaje15b.js} +1 -1
- package/dist/cjs/{Screen-M6XQZTd0.js → Screen-C4gtVIB2.js} +1 -1
- package/dist/cjs/{ScreenLayout-DND5buhY.js → ScreenLayout-COH0TK8Y.js} +1 -1
- package/dist/cjs/{SetAutomaticRecoveryScreen-DuRPXhP0.js → SetAutomaticRecoveryScreen-D5Hw8eNe.js} +1 -1
- package/dist/cjs/{SetWalletPasswordForm-D0eEjP-u.js → SetWalletPasswordForm-BIaXMtEl.js} +1 -1
- package/dist/cjs/{SignRequestScreen-LGzYoSpD.js → SignRequestScreen-BZ4eapC7.js} +1 -1
- package/dist/cjs/{StandardSignAndSendTransactionScreen-dtePWf7A.js → StandardSignAndSendTransactionScreen-r2GXb1G6.js} +1 -1
- package/dist/cjs/{TelegramAuthScreen-BOQRRBD-.js → TelegramAuthScreen-9wKUQlkU.js} +1 -1
- package/dist/cjs/{TransactionDetails-CoviBGbu.js → TransactionDetails-COpAbn2x.js} +1 -1
- package/dist/cjs/{TransactionErrorView-CZIADuCd.js → TransactionErrorView-0GIGeFK2.js} +1 -1
- package/dist/cjs/{TransferFromWalletScreen-CAvZpFHU.js → TransferFromWalletScreen-DWZP1uGW.js} +1 -1
- package/dist/cjs/{TransferOrBridgeLoadingScreen-rCuYNou5.js → TransferOrBridgeLoadingScreen-CkIL1XXz.js} +2 -2
- package/dist/cjs/{UpdateEmailScreen-BRl0rLXi.js → UpdateEmailScreen-DvH9-lSu.js} +1 -1
- package/dist/cjs/{UpdatePhoneScreen-mByXtOCY.js → UpdatePhoneScreen-DRed5FbH.js} +1 -1
- package/dist/cjs/{UserLimitReachedScreen-CjNxv9xy.js → UserLimitReachedScreen-BqYIFksV.js} +1 -1
- package/dist/cjs/{WalletInfoCard-wDKvmmsx.js → WalletInfoCard-CiGIQ_Ui.js} +1 -1
- package/dist/cjs/{WalletInterstitialScreen-BW-Ju9PU.js → WalletInterstitialScreen-Lj5ftT4Q.js} +1 -1
- package/dist/cjs/{WalletLink-Dglkazqd.js → WalletLink-Dj3bs71e.js} +1 -1
- package/dist/cjs/{WalletOverflowButton-BAZ96Q1e.js → WalletOverflowButton-CqqjQnq9.js} +1 -1
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/context-wZdgWZUB.js +1 -0
- package/dist/cjs/{ethers-O1Nyjl84.js → ethers-CKQdyx7W.js} +1 -1
- package/dist/cjs/extended-chains.js +1 -1
- package/dist/cjs/farcaster.js +1 -1
- package/dist/cjs/{frame-B14fp9oC.js → frame-Oz7volks.js} +1 -1
- package/dist/cjs/{get-is-unified-wallet--p0rdEtP.js → get-is-unified-wallet-ibtz66iD.js} +1 -1
- package/dist/cjs/{getErc20Balance-DknCauCO.js → getErc20Balance-CN3JMVjF.js} +1 -1
- package/dist/cjs/{getErc20TokenInfo-CBduyYx4.js → getErc20TokenInfo-DxDd_HN6.js} +1 -1
- package/dist/cjs/{getPublicClient-CGlodIp_.js → getPublicClient-BsmZyCGX.js} +1 -1
- package/dist/cjs/{index-BmQlwyOF.js → index-BQkbc-uV.js} +1 -1
- package/dist/cjs/{index-B-V647xG.js → index-mNjkTRbF.js} +4 -4
- package/dist/cjs/{index-Dnijyzka.js → index-wMbil80w.js} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{internal-context-NWsAL807.js → internal-context-BJv4f_bO.js} +1 -1
- package/dist/cjs/internal.js +1 -1
- package/dist/cjs/{prepareFundingModalData-BADfvap9.js → prepareFundingModalData-DUhgT6Y0.js} +1 -1
- package/dist/cjs/{reservoir-CQGyEBb7.js → reservoir-Bx0HQwbb.js} +1 -1
- package/dist/cjs/{shared-CJn0wmyB.js → shared-C7aAS5SO.js} +1 -1
- package/dist/cjs/{shouldProceedtoEmbeddedWalletCreationFlow-DwKYEqJV.js → shouldProceedtoEmbeddedWalletCreationFlow-CwtJGqzM.js} +1 -1
- package/dist/cjs/{smart-wallets-BxSjnmxi.js → smart-wallets-B-fEYiIl.js} +1 -1
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/{styles-Dg1qQgOa.js → styles-DH0Tsq0O.js} +1 -1
- package/dist/cjs/{to-ui-error-CnjmH8us.js → to-ui-error-ByzUez1b.js} +1 -1
- package/dist/cjs/transfer-B1Y_9LWi.js +1 -0
- package/dist/cjs/ui.js +1 -1
- package/dist/cjs/{use-export-wallet-no3ZWIW-.js → use-export-wallet-Be7AipzS.js} +1 -1
- package/dist/cjs/{use-sign-with-user-signer-BcAsQTGF.js → use-sign-with-user-signer-Cu_6Bx7m.js} +1 -1
- package/dist/cjs/{useActiveWallet-Wp8zv7qb.js → useActiveWallet-D9GOotll.js} +1 -1
- package/dist/cjs/{useGetSolPrice-C986iVoO.js → useGetSolPrice-Ca32VAbF.js} +1 -1
- package/dist/cjs/{useGetTokenPrice-BkD8eOWh.js → useGetTokenPrice-CoEf4JSB.js} +1 -1
- package/dist/cjs/{useI18n-J8z0zLWw.js → useI18n-Dqwophu1.js} +1 -1
- package/dist/cjs/{usePrivy-BM1sYNel.js → usePrivy-BhaLJaKF.js} +1 -1
- package/dist/cjs/{useSolanaRpcClient-CLYG-Dxk.js → useSolanaRpcClient-DxLm7cuH.js} +1 -1
- package/dist/cjs/{useWalletBalance-BVb8F3RO.js → useWalletBalance-DI8AY31i.js} +1 -1
- package/dist/cjs/{useWallets-20ZeTYCD.js → useWallets-DCGyh9dN.js} +1 -1
- package/dist/cjs/{useWallets-DEyFRWD0.js → useWallets-DoT0AQ3s.js} +1 -1
- package/dist/esm/{AccountNotFoundScreen-Q-gvf1Fn.mjs → AccountNotFoundScreen-CI0D4ySi.mjs} +1 -1
- package/dist/esm/{Address-BGlhcEcA.mjs → Address-C4fukiNP.mjs} +1 -1
- package/dist/esm/{AffirmativeConsentScreen-CLQuUvfP.mjs → AffirmativeConsentScreen-efWx6UzN.mjs} +1 -1
- package/dist/esm/{AllowlistRejectionScreen-CA0r2B2G.mjs → AllowlistRejectionScreen-BXMajVbe.mjs} +1 -1
- package/dist/esm/{AuthenticateWithWalletScreen-CJ0PGjN8.mjs → AuthenticateWithWalletScreen-B7IBRpcP.mjs} +1 -1
- package/dist/esm/{AwaitingEvmToSolBridgingScreen-BCl9wYAA.mjs → AwaitingEvmToSolBridgingScreen-cxBOftrF.mjs} +1 -1
- package/dist/esm/AwaitingExternalEthereumTransferScreen-CgZPJxNW.mjs +2 -0
- package/dist/esm/{AwaitingPasswordlessCodeScreen-BV79QlfB.mjs → AwaitingPasswordlessCodeScreen-pIPldPkU.mjs} +1 -1
- package/dist/esm/{AwaitingSolToEvmBridgingScreen-BAWOxcgh.mjs → AwaitingSolToEvmBridgingScreen-BJc0jK3s.mjs} +1 -1
- package/dist/esm/{BridgeNetworkSelectionView-T2-4Tr4k.mjs → BridgeNetworkSelectionView-DjURqgXj.mjs} +1 -1
- package/dist/esm/{CaptchaScreen-BpGtWd73.mjs → CaptchaScreen-DZhOLCO9.mjs} +1 -1
- package/dist/esm/{CoinbaseOnrampStatusScreen-0Uex7DsA.mjs → CoinbaseOnrampStatusScreen-CY3MKXAS.mjs} +1 -1
- package/dist/esm/{ConnectEmailForm-DjET3G-q.mjs → ConnectEmailForm-NcyqdOJE.mjs} +1 -1
- package/dist/esm/{ConnectLedgerScreen-CQFzXuWK.mjs → ConnectLedgerScreen-BCbXSUmJ.mjs} +1 -1
- package/dist/esm/{ConnectOnlyLandingScreen-BHXmw89v.mjs → ConnectOnlyLandingScreen-DDKT7Q7k.mjs} +1 -1
- package/dist/esm/{ConnectOnlyStatusScreen-CrK4PC6t.mjs → ConnectOnlyStatusScreen-CYq-frYL.mjs} +1 -1
- package/dist/esm/ConnectOrCreateScreen-cJAfQx-J.mjs +1 -0
- package/dist/esm/{ConnectPhoneForm-CYfqSIAI.mjs → ConnectPhoneForm-DjqZxuB-.mjs} +1 -1
- package/dist/esm/{ConnectWalletView-CduRtfEz.mjs → ConnectWalletView-CGp7rFXq.mjs} +1 -1
- package/dist/esm/{ConnectionStatusScreen-KrobwyOT.mjs → ConnectionStatusScreen-CWFkg5OC.mjs} +1 -1
- package/dist/esm/{CrossAppAuthScreen-BOKIMDhq.mjs → CrossAppAuthScreen-DqRTKCRF.mjs} +1 -1
- package/dist/esm/{CustomLandingScreenView-BcDpTdY_.mjs → CustomLandingScreenView-BxPTSEZL.mjs} +1 -1
- package/dist/esm/{DelegatedActionsConsentScreen-B7RhRjIf.mjs → DelegatedActionsConsentScreen-Dgg2-1Sn.mjs} +1 -1
- package/dist/esm/{DelegatedActionsRevokeScreen-C5V6mhCq.mjs → DelegatedActionsRevokeScreen-CztqU_Oo.mjs} +1 -1
- package/dist/esm/{EmbeddedWalletConnectingScreen-C9Fw9Ret.mjs → EmbeddedWalletConnectingScreen-B4sUIif5.mjs} +1 -1
- package/dist/esm/EmbeddedWalletCreatedScreen-Djv6kWAI.mjs +1 -0
- package/dist/esm/{EmbeddedWalletKeyExportScreen-DxbOABYY.mjs → EmbeddedWalletKeyExportScreen-BqozBh7H.mjs} +1 -1
- package/dist/esm/EmbeddedWalletOnAccountCreateScreen-DWvW9eRs.mjs +1 -0
- package/dist/esm/{EmbeddedWalletPasswordUpdateScreen-B25GzXZc.mjs → EmbeddedWalletPasswordUpdateScreen-BoQ-HdCR.mjs} +1 -1
- package/dist/esm/{EmbeddedWalletPasswordUpdateSplashScreen-Cu_NA9L6.mjs → EmbeddedWalletPasswordUpdateSplashScreen-B6k6GRZN.mjs} +1 -1
- package/dist/esm/{EnrollTotp-CXZmaa4A.mjs → EnrollTotp-CukCif6j.mjs} +1 -1
- package/dist/esm/{ErrorScreen-DLsfgpC9.mjs → ErrorScreen-BACrlbnT.mjs} +1 -1
- package/dist/esm/{FarcasterConnectStatusScreen-ng3F34Zy.mjs → FarcasterConnectStatusScreen-BmATusyA.mjs} +1 -1
- package/dist/esm/{FarcasterSignerStatusScreen-C19Go4EG.mjs → FarcasterSignerStatusScreen-CWjyzBwk.mjs} +1 -1
- package/dist/esm/{FundSolWalletWithExternalSolanaWallet-DpBJNLZJ.mjs → FundSolWalletWithExternalSolanaWallet-BvQrkL0k.mjs} +1 -1
- package/dist/esm/{FundWalletMethodHeader-CI5afzwL.mjs → FundWalletMethodHeader-AiS18uZn.mjs} +1 -1
- package/dist/esm/{FundingEditAmountScreen-DVwlwSMh.mjs → FundingEditAmountScreen-kKwJ8dz8.mjs} +1 -1
- package/dist/esm/{FundingMethodSelectionScreen-BEXU_dRV.mjs → FundingMethodSelectionScreen-Cywf8FMW.mjs} +1 -1
- package/dist/esm/{InAppBrowserLoginNotPossible-fdO06E7f.mjs → InAppBrowserLoginNotPossible-DfscY-nj.mjs} +1 -1
- package/dist/esm/{InstallWalletScreen-BTCkqOY-.mjs → InstallWalletScreen-CCT-Qs7e.mjs} +1 -1
- package/dist/esm/LandingScreen-BKw0C3-6.mjs +1 -0
- package/dist/esm/{LinkConflictScreen-CEU67LFR.mjs → LinkConflictScreen-ppQfc4uC.mjs} +1 -1
- package/dist/esm/{LinkEmailScreen-frIcyTMB.mjs → LinkEmailScreen-3fD1dFMW.mjs} +1 -1
- package/dist/esm/{LinkPasskeyScreen-DJveInKu.mjs → LinkPasskeyScreen-CUdvQeqw.mjs} +1 -1
- package/dist/esm/{LinkPhoneScreen-DoNf-oO4.mjs → LinkPhoneScreen-avo8CmrK.mjs} +1 -1
- package/dist/esm/{LoginFailedScreen-g2jT2Kyc.mjs → LoginFailedScreen-CqOzzZaq.mjs} +1 -1
- package/dist/esm/{ManualTransferScreen-Cc1Y8Jih.mjs → ManualTransferScreen-BE_WaxS9.mjs} +1 -1
- package/dist/esm/{MfaAuthEnrollmentFlowScreen-O3_CYjp9.mjs → MfaAuthEnrollmentFlowScreen-D8kccFQA.mjs} +1 -1
- package/dist/esm/{MfaAuthVerifyFlowScreen-T7Rg8uvy.mjs → MfaAuthVerifyFlowScreen-Cb9DZ4gN.mjs} +1 -1
- package/dist/esm/{MfaEnrollmentFlowScreen-Bz72-m4D.mjs → MfaEnrollmentFlowScreen-99fSY8g-.mjs} +1 -1
- package/dist/esm/{MfaVerifyFlowScreen-C_vKdC1M.mjs → MfaVerifyFlowScreen-o_Yfo0QH.mjs} +1 -1
- package/dist/esm/{ModalHeader-D5psNgrf.mjs → ModalHeader-BAGwTwiB.mjs} +1 -1
- package/dist/esm/{MoonpayStatusScreen-B8KZWDvr.mjs → MoonpayStatusScreen-Cg4mZfRC.mjs} +2 -2
- package/dist/esm/{OAuthStatusScreen-BqifArEf.mjs → OAuthStatusScreen-UdobH4WP.mjs} +1 -1
- package/dist/esm/{PasskeySelectSignupOrLogin-BnluBsvm.mjs → PasskeySelectSignupOrLogin-xct1rtzo.mjs} +1 -1
- package/dist/esm/{PasskeyStatusScreen-DNO05Efn.mjs → PasskeyStatusScreen-DYsvVX3i.mjs} +1 -1
- package/dist/esm/{PasswordRecoveryScreen-B7NJ3m5d.mjs → PasswordRecoveryScreen-B9EHvANs.mjs} +1 -1
- package/dist/esm/{QrCode-Bp7vKyXB.mjs → QrCode-CT_CXG3e.mjs} +1 -1
- package/dist/esm/RecoveryOAuthStatusScreen-DNfp6fRv.mjs +1 -0
- package/dist/esm/RecoveryPasswordCreateScreen-CtisV6Qu.mjs +1 -0
- package/dist/esm/{RecoverySelectionScreen-ePxeHUj1.mjs → RecoverySelectionScreen-BzhQF-en.mjs} +2 -2
- package/dist/esm/{Screen-q8npRQhQ.mjs → Screen-Dv092amM.mjs} +1 -1
- package/dist/esm/{ScreenLayout-DIdy7nhJ.mjs → ScreenLayout-DG_XRElR.mjs} +1 -1
- package/dist/esm/{SetAutomaticRecoveryScreen-CVl0jRLW.mjs → SetAutomaticRecoveryScreen-Cc5MVRbR.mjs} +1 -1
- package/dist/esm/{SetWalletPasswordForm-B55ZeX-5.mjs → SetWalletPasswordForm-D3-A_JVl.mjs} +1 -1
- package/dist/esm/{SignRequestScreen-DsHKzR1x.mjs → SignRequestScreen-DXUaMZ6j.mjs} +1 -1
- package/dist/esm/{StandardSignAndSendTransactionScreen-BuT88OVq.mjs → StandardSignAndSendTransactionScreen-DuuDN9Sp.mjs} +1 -1
- package/dist/esm/{TelegramAuthScreen-DQ63cPv-.mjs → TelegramAuthScreen-ByE57dqV.mjs} +1 -1
- package/dist/esm/{TransactionDetails-DB8AH1mq.mjs → TransactionDetails-BnKb_enO.mjs} +1 -1
- package/dist/esm/{TransactionErrorView-CkMh0sTl.mjs → TransactionErrorView-BEWZNGyq.mjs} +1 -1
- package/dist/esm/{TransferFromWalletScreen-rtFkHQRz.mjs → TransferFromWalletScreen-CHxSLdSM.mjs} +2 -2
- package/dist/esm/{TransferOrBridgeLoadingScreen-BZTN__SI.mjs → TransferOrBridgeLoadingScreen-mLHBuB78.mjs} +1 -1
- package/dist/esm/{UpdateEmailScreen-sALtnLLN.mjs → UpdateEmailScreen-Ckp4zEBP.mjs} +1 -1
- package/dist/esm/{UpdatePhoneScreen-DKfVISn1.mjs → UpdatePhoneScreen-CBJdvtlX.mjs} +1 -1
- package/dist/esm/{UserLimitReachedScreen-BoinP76r.mjs → UserLimitReachedScreen-Csq5lFOZ.mjs} +1 -1
- package/dist/esm/{WalletInfoCard-BtliVaf0.mjs → WalletInfoCard-DKxQTgDG.mjs} +1 -1
- package/dist/esm/{WalletInterstitialScreen-jn7VehvZ.mjs → WalletInterstitialScreen-TrxS1y6N.mjs} +1 -1
- package/dist/esm/{WalletLink-foFywOfy.mjs → WalletLink-Dqy4DrLT.mjs} +1 -1
- package/dist/esm/{WalletOverflowButton-DWdepzzi.mjs → WalletOverflowButton-CF8zOlXL.mjs} +1 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/context-C7FGpzoq.mjs +1 -0
- package/dist/esm/{ethers-TpFbevgv.mjs → ethers-jrpF9vqa.mjs} +1 -1
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/{frame-CwE9r3cT.mjs → frame-uzTmvtww.mjs} +1 -1
- package/dist/esm/{get-is-unified-wallet-CvIzjbW7.mjs → get-is-unified-wallet-DKm2LBUt.mjs} +1 -1
- package/dist/esm/{getErc20Balance-CaKjNAs9.mjs → getErc20Balance-DA4dGV9O.mjs} +1 -1
- package/dist/esm/{getErc20TokenInfo-BFoeg5F6.mjs → getErc20TokenInfo-CxatSwzi.mjs} +1 -1
- package/dist/esm/{getPublicClient-A9RSftUZ.mjs → getPublicClient-B4uPLKn-.mjs} +1 -1
- package/dist/esm/{index-DEy_pO5S.mjs → index-BLPxiHb2.mjs} +1 -1
- package/dist/esm/index-DNLZMnCG.mjs +174 -0
- package/dist/esm/{index-DieEhruj.mjs → index-RTEGzREl.mjs} +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{internal-context-e-Eni5bG.mjs → internal-context-Z-fyxadS.mjs} +1 -1
- package/dist/esm/internal.mjs +1 -1
- package/dist/esm/{prepareFundingModalData-CRrWM52E.mjs → prepareFundingModalData-BHVs3Cx-.mjs} +1 -1
- package/dist/esm/{reservoir-kvLjIrEo.mjs → reservoir-0wfhnc0j.mjs} +1 -1
- package/dist/esm/{shared-JeLSzCHD.mjs → shared-BjYW7t-U.mjs} +1 -1
- package/dist/esm/{shouldProceedtoEmbeddedWalletCreationFlow-D0uaMzCB.mjs → shouldProceedtoEmbeddedWalletCreationFlow-Ir-axYfm.mjs} +1 -1
- package/dist/esm/{smart-wallets-XRilJC8w.mjs → smart-wallets-BcApWuwL.mjs} +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/{styles-CaJCyFB5.mjs → styles-C12iVD4I.mjs} +1 -1
- package/dist/esm/{to-ui-error-l1Vm31qE.mjs → to-ui-error-GnZ5qhQ4.mjs} +1 -1
- package/dist/esm/{transfer-CMPmjPsM.mjs → transfer-6YztDh-t.mjs} +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/dist/esm/{use-export-wallet-D-0qOhlZ.mjs → use-export-wallet-D2afU6Pi.mjs} +1 -1
- package/dist/esm/{use-sign-with-user-signer-eEm9Olt_.mjs → use-sign-with-user-signer-Do5Oi_rb.mjs} +1 -1
- package/dist/esm/{useActiveWallet-RUYo4pXO.mjs → useActiveWallet-CT7uncGy.mjs} +2 -2
- package/dist/esm/{useGetSolPrice-Cfm8o9C5.mjs → useGetSolPrice-DwwjjGbd.mjs} +1 -1
- package/dist/esm/{useGetTokenPrice-C1-pGMgN.mjs → useGetTokenPrice-CInz9y-l.mjs} +1 -1
- package/dist/esm/{useI18n-CD7HCIxK.mjs → useI18n-_trTURSX.mjs} +1 -1
- package/dist/esm/usePrivy-DXv-y-86.mjs +1 -0
- package/dist/esm/{useSolanaRpcClient-C55AFEgY.mjs → useSolanaRpcClient-BPnbGqxB.mjs} +1 -1
- package/dist/esm/{useWalletBalance-CkNw6kj0.mjs → useWalletBalance-CRXiZUj2.mjs} +1 -1
- package/dist/esm/{useWallets-BkIu5vyx.mjs → useWallets-Cs7YKcaR.mjs} +1 -1
- package/dist/esm/{useWallets-O-mGV40Z.mjs → useWallets-DnyWQdit.mjs} +1 -1
- package/package.json +7 -7
- package/dist/cjs/AwaitingExternalEthereumTransferScreen-DVUwVgck.js +0 -2
- package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-1TcX3o8K.js +0 -1
- package/dist/cjs/FundingEditAmountScreen-CzTSH2dC.js +0 -1
- package/dist/cjs/RecoveryOAuthStatusScreen-lyldMRwo.js +0 -1
- package/dist/cjs/RecoveryPasswordCreateScreen-Cb83wfAF.js +0 -1
- package/dist/cjs/context-B8VkgLLk.js +0 -1
- package/dist/cjs/transfer-Cit146vy.js +0 -1
- package/dist/cjs/use-create-wallet-without-fallback-B3AnOM0l.js +0 -1
- package/dist/esm/AwaitingExternalEthereumTransferScreen-PysgS8Qt.mjs +0 -2
- package/dist/esm/ConnectOrCreateScreen-BrRb6sNR.mjs +0 -1
- package/dist/esm/EmbeddedWalletCreatedScreen-keGjjfu4.mjs +0 -1
- package/dist/esm/EmbeddedWalletOnAccountCreateScreen-B7blEQwB.mjs +0 -1
- package/dist/esm/LandingScreen-BYYtxc3M.mjs +0 -1
- package/dist/esm/RecoveryOAuthStatusScreen-C0tnlfv2.mjs +0 -1
- package/dist/esm/RecoveryPasswordCreateScreen-BgT7udfA.mjs +0 -1
- package/dist/esm/context-Bu4xmqpC.mjs +0 -1
- package/dist/esm/index-ygZBlWlm.mjs +0 -174
- package/dist/esm/use-create-wallet-without-fallback-BLN3_KXw.mjs +0 -1
- package/dist/esm/usePrivy-Bn7q4pcu.mjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{FingerprintIcon as r}from"lucide-react";import{useState as t,useRef as o,useEffect as s}from"react";import{styled as i}from"styled-components";import{u as a,q as n}from"./context-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{FingerprintIcon as r}from"lucide-react";import{useState as t,useRef as o,useEffect as s}from"react";import{styled as i}from"styled-components";import{u as a,q as n}from"./context-C7FGpzoq.mjs";import{c,b as m,u}from"./internal-context-Z-fyxadS.mjs";import{a as l,u as p}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{s as d}from"./shouldProceedtoEmbeddedWalletCreationFlow-Ir-axYfm.mjs";import{S as y}from"./ScreenLayout-DG_XRElR.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"viem";import"./index-DNLZMnCG.mjs";import"uuid";import"jose";import"eventemitter3";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./ModalHeader-BAGwTwiB.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"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const h=({status:t,passkeySignupFlow:o=!1,error:s,onRetry:i})=>/*#__PURE__*/e(y,{title:(()=>{switch(t){case"loading":return"Waiting for passkey";case"success":return"Success";case"error":return"Something went wrong"}})(),subtitle:/*#__PURE__*/e(g,{children:(()=>{switch(t){case"loading":return o?"Please follow prompts to register your passkey.":"Please follow prompts to verify your passkey.\nYou will have to sign up with another method first to register a passkey for your account.";case"success":return"You've successfully logged in with your passkey.";case"error":if(s instanceof c){if(s.privyErrorCode===m.CANNOT_LINK_MORE_OF_TYPE)return"Cannot link more passkeys to account.";if(s.privyErrorCode===m.PASSKEY_NOT_ALLOWED)return"Passkey request timed out or rejected by user.\nYou will have to sign up with another method first to register a passkey for your account."}return"An unknown error occurred.\nYou will have to sign up with another method first to register a passkey for your account."}})()}),icon:r,iconVariant:"loading",iconLoadingStatus:{success:"success"===t,fail:"error"===t},primaryCta:"error"===t&&i?{label:"Retry",onClick:i}:"success"===t?{label:"Continue",disabled:!0}:void 0,watermark:!0}),f={component:()=>{let{data:r,setModalData:i,navigate:c}=l(),m=a(),{loginWithPasskey:y,signupWithPasskey:f,closePrivyModal:g,createAnalyticsEvent:v}=u(),{user:w,logout:k}=p(),{passkeySignupFlow:j}=r?.passkeyAuthModalData??{},S=n-500,[b,C]=t("loading"),[A,P]=t(null),E=o([]),W=e=>{E.current=[e,...E.current]};s((()=>()=>{E.current.forEach((e=>clearTimeout(e))),E.current=[]}),[]);let T=async()=>{C("loading");try{j?await f():await y(),C("success")}catch(e){P(e),C("error")}};return s((()=>{if("success"===b&&w){if(m?.legal.requireUsersAcceptTerms&&!w.hasAcceptedTerms)return void W(setTimeout((()=>{c("AffirmativeConsentScreen")}),S));if(!d(w,m?.embeddedWallets))return void W(setTimeout((()=>{g({shouldCallAuthOnSuccess:!0,isSuccess:!0})}),n));W(setTimeout((()=>{i({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),v({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"PasskeyStatusScreen"}}),k()},callAuthOnSuccessOnClose:!0}}),c("EmbeddedWalletOnAccountCreateScreen")}),S))}}),[w,b]),s((()=>{T()}),[]),/*#__PURE__*/e(h,{status:b,passkeySignupFlow:j,error:A,onRetry:T})}};let g=i.span`
|
|
2
2
|
white-space: pre-wrap;
|
|
3
3
|
`;export{f as PasskeyStatusScreen,h as PasskeyStatusScreenView,f as default};
|
package/dist/esm/{PasswordRecoveryScreen-B7NJ3m5d.mjs → PasswordRecoveryScreen-B9EHvANs.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ShieldCheckIcon";import{useState as o,useEffect as i}from"react";import{styled as a,css as s}from"styled-components";import{u as n,a as l,h as c}from"./get-is-unified-wallet-
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ShieldCheckIcon";import{useState as o,useEffect as i}from"react";import{styled as a,css as s}from"styled-components";import{u as n,a as l,h as c}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{P as m}from"./ModalHeader-BAGwTwiB.mjs";import{S as d}from"./Layouts-BlFm53ED.mjs";import{P as p,a as u,I as h,H as y,S as v}from"./shared-BjYW7t-U.mjs";import{n as f}from"./index-DNLZMnCG.mjs";import{u as w,m as g}from"./internal-context-Z-fyxadS.mjs";import{S as j}from"./Screen-Dv092amM.mjs";import"viem";import"./context-C7FGpzoq.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.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"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"ofetch";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./index-Dq_xe9dz.mjs";const b={component:()=>{let[a,s]=o(!0),{authenticated:m,user:b}=n(),{walletProxy:A,closePrivyModal:I,createAnalyticsEvent:P,client:S}=w(),{navigate:W,data:T,onUserCloseViaDialogOrKeybindRef:_}=l(),[E,M]=o(void 0),[R,H]=o(""),[U,F]=o(!1),{entropyId:N,entropyIdVerifier:O,onCompleteNavigateTo:V,onSuccess:$,onFailure:z}=T.recoverWallet,B=(e="User exited before their wallet could be recovered")=>{I({shouldCallAuthOnSuccess:!1}),z("string"==typeof e?new g(e):e)};_.current=B,i((()=>{if(!m)return B("User must be authenticated and have a Privy wallet before it can be recovered")}),[m]);/*#__PURE__*/return e(j,{children:[/*#__PURE__*/r(j.Header,{icon:t,title:"Enter your password",subtitle:"Please provision your account on this new device. To continue, enter your recovery password.",showClose:!0,onClose:B}),/*#__PURE__*/r(j.Body,{children:/*#__PURE__*/r(x,{children:/*#__PURE__*/e("div",{children:[/*#__PURE__*/e(p,{children:[/*#__PURE__*/r(u,{type:a?"password":"text",onChange:e=>(e=>{e&&M(e)})(e.target.value),disabled:U,style:{paddingRight:"2.3rem"}}),/*#__PURE__*/r(h,{style:{right:"0.75rem"},children:a?/*#__PURE__*/r(y,{onClick:()=>s(!1)}):/*#__PURE__*/r(v,{onClick:()=>s(!0)})})]}),!!R&&/*#__PURE__*/r(k,{children:R})]})})}),/*#__PURE__*/e(j.Footer,{children:[/*#__PURE__*/r(j.HelpText,{children:/*#__PURE__*/e(d,{children:[/*#__PURE__*/r("h4",{children:"Why is this necessary?"}),/*#__PURE__*/r("p",{children:"You previously set a password for this wallet. This helps ensure only you can access it"})]})}),/*#__PURE__*/r(j.Actions,{children:/*#__PURE__*/r(C,{loading:U||!A,disabled:!E,onClick:async()=>{F(!0);let e=await S.getAccessToken(),r=c(b,N);if(!e||!r||null===E)return B("User must be authenticated and have a Privy wallet before it can be recovered");try{P({eventName:"embedded_wallet_recovery_started",payload:{walletAddress:r.address}}),await(A?.recover({accessToken:e,entropyId:N,entropyIdVerifier:O,recoveryPassword:E})),H(""),V?W(V):I({shouldCallAuthOnSuccess:!1}),$?.(r),P({eventName:"embedded_wallet_recovery_completed",payload:{walletAddress:r.address}})}catch(e){f(e)?H("Invalid recovery password, please try again."):H("An error has occurred, please try again.")}finally{F(!1)}},$hideAnimations:!N&&U,children:"Recover your account"})}),/*#__PURE__*/r(j.Watermark,{})]})]})}};let x=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1.5rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as o}from"react/jsx-runtime";import t from"qrcode";import l from"react";import{styled as i}from"styled-components";import{u as c}from"./context-
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as o}from"react/jsx-runtime";import t from"qrcode";import l from"react";import{styled as i}from"styled-components";import{u as c}from"./context-C7FGpzoq.mjs";import{a2 as n,a3 as a}from"./useActiveWallet-CT7uncGy.mjs";const g=()=>/*#__PURE__*/e("svg",{width:"200",height:"200",viewBox:"-77 -77 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"28px",width:"28px"},children:/*#__PURE__*/e("rect",{width:"50",height:"50",fill:"black",rx:10,ry:10})});let h=(e,r,o,t,l)=>{for(let i=r;i<r+t;i++)for(let r=o;r<o+l;r++){let o=e?.[r];o&&o[i]&&(o[i]=0)}return e},m=(e,r)=>{let o=t.create(e,{errorCorrectionLevel:r}).modules,l=a(Array.from(o.data),o.size);return l=h(l,0,0,7,7),l=h(l,l.length-7,0,7,7),h(l,0,l.length-7,7,7)},d=({x:r,y:t,cellSize:l,bgColor:i,fgColor:c})=>
|
|
2
2
|
/*#__PURE__*/e(o,{children:[0,1,2].map((o=>/*#__PURE__*/e("circle",{r:l*(7-2*o)/2,cx:r+7*l/2,cy:t+7*l/2,fill:o%2!=0?i:c},`finder-${r}-${t}-${o}`)))}),s=({cellSize:r,matrixSize:t,bgColor:l,fgColor:i})=>/*#__PURE__*/e(o,{children:[[0,0],[(t-7)*r,0],[0,(t-7)*r]].map((([o,t])=>/*#__PURE__*/e(d,{x:o,y:t,cellSize:r,bgColor:l,fgColor:i},`finder-${o}-${t}`)))}),p=({matrix:r,cellSize:t,color:i})=>/*#__PURE__*/e(o,{children:r.map(((r,o)=>r.map(((r,c)=>r?/*#__PURE__*/e("rect",{height:t-.4,width:t-.4,x:o*t+.1*t,y:c*t+.1*t,rx:.5*t,ry:.5*t,fill:i},`cell-${o}-${c}`):/*#__PURE__*/e(l.Fragment,{},`circle-${o}-${c}`)))))}),u=({cellSize:t,matrixSize:l,element:i,sizePercentage:c,bgColor:n})=>{if(!i)/*#__PURE__*/return e(o,{});let a=l*(c||.14),g=Math.floor(l/2-a/2),h=Math.floor(l/2+a/2);(h-g)%2!=l%2&&(h+=1);let m=(h-g)*t,d=m-.2*m,s=g*t;/*#__PURE__*/return r(o,{children:[/*#__PURE__*/e("rect",{x:g*t,y:g*t,width:m,height:m,fill:n}),/*#__PURE__*/e(i,{x:s+.1*m,y:s+.1*m,height:d,width:d})]})},f=o=>{let t=o.outputSize,l=m(o.url,o.errorCorrectionLevel),i=t/l.length,c=n(2*i,{min:.025*t,max:.036*t});/*#__PURE__*/return r("svg",{height:o.outputSize,width:o.outputSize,viewBox:`0 0 ${o.outputSize} ${o.outputSize}`,style:{height:"100%",width:"100%",padding:`${c}px`},children:[/*#__PURE__*/e(p,{matrix:l,cellSize:i,color:o.fgColor}),/*#__PURE__*/e(s,{cellSize:i,matrixSize:l.length,fgColor:o.fgColor,bgColor:o.bgColor}),/*#__PURE__*/e(u,{cellSize:i,element:o.logo?.element,bgColor:o.bgColor,matrixSize:l.length})]})},x=i.div.attrs({className:"ph-no-capture"})`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{useState as o,useEffect as a,useCallback as i}from"react";import{M as c,P as s,B as l}from"./ModalHeader-BAGwTwiB.mjs";import{C as n}from"./ScreenHeader-CHmc4-Lu.mjs";import{q as d}from"./context-C7FGpzoq.mjs";import{o as p,q as u,r as m,v as h,R as v,l as w}from"./index-DNLZMnCG.mjs";import{a as y,f,b as _,u as A}from"./internal-context-Z-fyxadS.mjs";import{a as E,u as g,g as C}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{a8 as b,a9 as R,aa as k}from"./paths-3HW55qZg.mjs";import{g as T}from"./useWallets-Cs7YKcaR.mjs";import{a as O}from"./events-context-CI0iqAXA.mjs";import{A as N,G as S,R as I}from"./styles-BsotlekN.mjs";import"styled-components";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"@privy-io/js-sdk-core";import"eventemitter3";import"viem";import"viem/utils";import"./getPublicClient-B4uPLKn-.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"tinycolor2";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./usePrivy-DXv-y-86.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"ofetch";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";async function M({url:e,popup:t,provider:r}){return t.location=e,new Promise(((e,r)=>{function o(){t?.close(),window.removeEventListener("message",a)}function a(t){t.data&&("PRIVY_OAUTH_RESPONSE"===t.data.type&&t.data.stateCode&&t.data.authorizationCode&&(e(t.data),o()),"https://cdn.apple-cloudkit.com"===t.origin&&t.data.ckSession&&(e({type:"PRIVY_OAUTH_RESPONSE",ckWebAuthToken:t.data.ckSession}),o()),"PRIVY_OAUTH_ERROR"===t.data.type&&(r(t.data.error),o()))}window.addEventListener("message",a)}))}async function x({api:e,provider:t,stateCode:r,codeVerifier:o,authorizationCode:a}){if(!a||!r)throw new y("[OAuth AuthFlow] Authorization and state codes code must be set prior to calling authenicate.");if("undefined"===a)throw new y("User denied confirmation during OAuth flow");try{return(await e.post(b,{authorization_code:a,state_code:r,code_verifier:o,provider:t})).access_token}catch(e){let t=f(e);if(t.privyErrorCode)throw new y(t.message||"Invalid code during OAuth flow.",void 0,t.privyErrorCode);if("User denied confirmation during OAuth flow"===t.message)throw new y("Invalid code during oauth flow.",void 0,_.OAUTH_USER_DENIED);throw new y("Invalid code during OAuth flow.",void 0,_.UNKNOWN_AUTH_ERROR)}}async function U({api:e,provider:t}){let r=p(),o=u(),a=await m(r);try{return"icloud"===t?{url:(await e.post(R,{client_type:"web"})).url}:{url:(await e.post(k,{redirect_to:window.location.href,code_challenge:a,state_code:o})).url,codeVerifier:r,stateCode:o,provider:t}}catch(e){throw f(e)}}let j={"google-drive":{name:"Google Drive",component:S},icloud:{name:"iCloud",component:N}};const W={component:()=>{let{logout:p}=g(),{navigate:u,setModalData:m,data:f}=E(),{closePrivyModal:b,createAnalyticsEvent:R}=A(),{execute:k}=(()=>{let{client:e,walletProxy:t,refreshSessionAndUser:r}=A(),{data:o}=E(),{user:a}=g(),i=O(),{create:c}=h();return{execute:async({provider:s,action:l,popup:n,shouldCreateEth:d,shouldCreateSol:p})=>{let u,m;if(!e)throw new y("Missing client");function h(t){if(!t&&e)throw e.createAnalyticsEvent({eventName:"recovery_oauth_error",payload:{error:"Unable to open recovery OAuth popup",provider:s}}),new y("Recovery OAuth failed")}switch(s){case"google-drive":{let t,r,{url:o,codeVerifier:a,stateCode:i}=await U({api:e.api,provider:s});h(o);try{let a=await M({url:o,popup:n,provider:s});if(t=a.stateCode,r=a.authorizationCode,t!==i)throw e.createAnalyticsEvent({eventName:"possible_phishing_attempt",payload:{provider:s,storedStateCode:i??"",returnedStateCode:t??""}}),new y("Unexpected auth flow. This may be a phishing attempt.",void 0,_.OAUTH_UNEXPECTED)}catch(t){throw e.createAnalyticsEvent({eventName:"recovery_oauth_error",payload:{error:t.toString(),provider:s}}),new y("Recovery OAuth failed")}[u,m]=await Promise.all([e.getAccessToken(),x({api:e.api,provider:s,codeVerifier:a,stateCode:t,authorizationCode:r})]);break}case"icloud":{let{url:t}=await U({api:e.api,provider:s});h(t);let{ckWebAuthToken:r}=await M({url:t,popup:n,provider:s});m=r,u=await e.getAccessToken()}}if(!t)throw new y("Cannot connect to wallet proxy");if(!u)throw new y("Unable to authorize user");switch(l){case"recover":{let r=o?.recoverWallet?.entropyId,a=o?.recoverWallet?.entropyIdVerifier;if(!r||!a)throw new y("Recovery OAuth failed");e.createAnalyticsEvent({eventName:"embedded_wallet_recovery_started",payload:{walletAddress:r,recoveryMethod:s}}),await t.recover({accessToken:u,entropyId:r,entropyIdVerifier:a,recoveryAccessToken:m}),e.createAnalyticsEvent({eventName:"embedded_wallet_recovery_completed",payload:{walletAddress:r,recoveryMethod:s}});break}case"create-wallet":{let t;if(e.createAnalyticsEvent({eventName:"embedded_wallet_creation_started"}),d&&p)t=await c({recoveryMethod:s,recoveryAccessToken:m,chainType:"ethereum",walletIndex:0,latestUser:a}),t=await c({chainType:"solana",walletIndex:0,latestUser:t.user});else if(p)t=await c({recoveryMethod:s,recoveryAccessToken:m,chainType:"solana",walletIndex:0,latestUser:a});else{if(!d)throw Error("Invalid args to create wallet");t=await c({recoveryMethod:s,recoveryAccessToken:m,chainType:"ethereum",walletIndex:0,latestUser:a})}if(!t)throw i("createWallet","onError",_.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to create wallet");e.createAnalyticsEvent({eventName:"embedded_wallet_creation_completed",payload:{walletAddress:t.account.address}}),i("createWallet","onSuccess",{wallet:t.account});break}case"set-recovery":{let o=C(a);if(!o)throw i("setWalletRecovery","onError",_.EMBEDDED_WALLET_NOT_FOUND),Error("Embedded wallet not found");e.createAnalyticsEvent({eventName:"embedded_wallet_set_recovery_started",payload:{walletAddress:o.address,existingRecoveryMethod:o.recoveryMethod,targetRecoveryMethod:s}});let{entropyId:c,entropyIdVerifier:l}=T(a);await t.setRecovery({accessToken:u,entropyId:c,entropyIdVerifier:l,recoveryMethod:s,recoveryAccessToken:m});let n=C(await r());if(!n)throw i("createWallet","onError",_.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to set recovery on wallet");e.createAnalyticsEvent({eventName:"embedded_wallet_set_recovery_completed",payload:{walletAddress:o.address,existingRecoveryMethod:o.recoveryMethod,targetRecoveryMethod:s}}),i("setWalletRecovery","onSuccess",{method:s,wallet:n});break}default:throw new y("Unsupported recovery action")}}}})(),[N,S]=o(!1),{provider:W,action:D,isInAccountCreateFlow:P,shouldCreateEth:V,shouldCreateSol:L}=f?.recoveryOAuthStatus,[z,H]=o(void 0),[$,F]=o("create-wallet"===D);if("user-passcode"===W)throw Error("RecoveryOAuthScreen should never be called with a wallet that specifies recoveryMethod: `user-passcode`");let B=j[W].name,G=j[W].component,K=f?.recoverWallet?.onCompleteNavigateTo,Y=new v((async(e="create-wallet")=>(F(!0),new Promise(((t,r)=>{setTimeout((async()=>{try{let r=window.open();await k({provider:W,action:e,popup:r,shouldCreateEth:V,shouldCreateSol:L}),S(!0),t()}catch(t){H({message:`${"recover"===e?"Recovery":"Back up"} with ${B} unsuccessful`,detail:"recover"===D?`Please verify that you are selecting the ${B} account associated with your backup.`:"",retryable:!0}),r()}}),0)})))));a((()=>{"recover"!==D&&Y.execute(P?"create-wallet":"set-recovery")}),[]),a((()=>{if(!N)return;let e=setTimeout((()=>{P?(m({createWallet:{onSuccess:()=>{},onFailure:e=>{R({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"RecoveryOAuthScreen"}}),p()},callAuthOnSuccessOnClose:!0,shouldCreateEth:!1,shouldCreateSol:!1}}),u("EmbeddedWalletCreatedScreen")):b({shouldCallAuthOnSuccess:!1})}),d);return()=>clearTimeout(e)}),[N]);let q=i((async()=>{await Y.execute("recover"),K?u(K):S(!0)}),[]),X="google-drive"===W?"Google Drive":"Apple iCloud",Q=N&&`Successfully ${"recover"===D?"recovered":"backed up"} with ${X}.`||z&&z.message||`${"recover"===D?"Recovering":"Backing up"} with ${X}...`,J=z?z.detail:"";/*#__PURE__*/return e(t,{children:[/*#__PURE__*/r(c,{}),$?/*#__PURE__*/r(t,{children:/*#__PURE__*/e(I,{children:[/*#__PURE__*/r(n,{title:Q,icon:/*#__PURE__*/r(G,{style:{width:"38px",height:"38px"}}),description:J}),z&&z?.retryable?/*#__PURE__*/r(s,{onClick:()=>{w(),H(void 0),"create-wallet"===D?Y.execute("create-wallet"):q()},disabled:!N&&!z?.retryable,children:"Try again"}):null]})}):/*#__PURE__*/e(I,{children:[/*#__PURE__*/r(n,{title:"Confirm it's really you",icon:/*#__PURE__*/r(G,{style:{height:42,width:48}}),description:`To confirm your identity, please log in to ${X} where your account is backed up.`}),/*#__PURE__*/e(s,{onClick:q,children:["Confirm with ",X]})]}),/*#__PURE__*/r(l,{})]})}};export{W as RecoveryOAuthScreen,W as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useState as o,useEffect as t}from"react";import{u as r}from"./context-C7FGpzoq.mjs";import{v as i,R as s}from"./index-DNLZMnCG.mjs";import{u as a,m as n}from"./internal-context-Z-fyxadS.mjs";import{a as c,u as l}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{S as m,g as p}from"./SetWalletPasswordForm-D3-A_JVl.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"uuid";import"jose";import"eventemitter3";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"styled-components";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"ofetch";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"./Layouts-BlFm53ED.mjs";import"./ModalHeader-BAGwTwiB.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"./shared-BjYW7t-U.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"./Checkbox-BhNoOKjX.mjs";import"@heroicons/react/24/outline/KeyIcon";import"@heroicons/react/24/solid/CheckCircleIcon";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"@heroicons/react/24/solid/XCircleIcon";import"./ScreenHeader-CHmc4-Lu.mjs";const u={component:()=>{let{navigate:u,data:d,onUserCloseViaDialogOrKeybindRef:h}=c(),w=r(),[y,v]=o(""),[f,j]=o(!1),[g,C]=o(),[I,b]=o(null),{create:S}=i(),{authenticated:x,user:P}=l(),{closePrivyModal:A,isNewUserThisSession:M,initializeWalletProxy:U}=a(),{onSuccess:k,onFailure:E,callAuthOnSuccessOnClose:T,shouldCreateEth:O,shouldCreateSol:W}=d.createWallet,[D,L]=o(null),R=new s((async()=>{try{let e;if(O&&W)e=await S({recoveryMethod:"user-passcode",recoveryPassword:g,chainType:"ethereum",walletIndex:0,latestUser:P}),e=await S({chainType:"solana",walletIndex:0,latestUser:e.user});else if(W)e=await S({recoveryMethod:"user-passcode",recoveryPassword:g,chainType:"solana",walletIndex:0,latestUser:P});else{if(!O)throw Error("Invalid args to create wallet");e=await S({recoveryMethod:"user-passcode",recoveryPassword:g,chainType:"ethereum",walletIndex:0,latestUser:P})}L(e),M?u("EmbeddedWalletCreatedScreen"):(k(e),A({shouldCallAuthOnSuccess:T}))}catch(e){v(e.message)}}));t((()=>{I||U(3e4).then((e=>b(e)))}),[I]),t((()=>{if(!x||!P)return u("LandingScreen"),void E(Error("User must be authenticated before creating a Privy wallet"))}),[x]),h.current=()=>null;/*#__PURE__*/return e(m,{config:{initiatedBy:"automatic"},appName:w?.name||"privy",loading:!I,buttonLoading:f,buttonHideAnimations:!D&&f,isResettingPassword:!1,error:y,password:g||"",onClose:()=>{D&&"user-passcode"!==D.account.recoveryMethod?(E(new n("User created a wallet but failed to set a password for it")),A({shouldCallAuthOnSuccess:!1})):D?(k(D),A({shouldCallAuthOnSuccess:T})):(E(new n("User wallet creation failed")),A({shouldCallAuthOnSuccess:!1}))},onPasswordChange:C,onPasswordGenerate:()=>C(p()),onSubmit:async()=>(j(!0),R.execute().then((()=>new Promise((e=>setTimeout(e,250))))).finally((()=>j(!1))))})}};export{u as EmbeddedWalletPasswordCreateScreen,u as default};
|
package/dist/esm/{RecoverySelectionScreen-ePxeHUj1.mjs → RecoverySelectionScreen-BzhQF-en.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{jsxs as e,jsx as o,Fragment as r}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/LockClosedIcon";import i from"@heroicons/react/24/outline/PencilSquareIcon";import s from"@heroicons/react/24/outline/QuestionMarkCircleIcon";import{useState as c}from"react";import{styled as n}from"styled-components";import{a,u as l,g as p}from"./get-is-unified-wallet-
|
|
1
|
+
import{jsxs as e,jsx as o,Fragment as r}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/LockClosedIcon";import i from"@heroicons/react/24/outline/PencilSquareIcon";import s from"@heroicons/react/24/outline/QuestionMarkCircleIcon";import{useState as c}from"react";import{styled as n}from"styled-components";import{a,u as l,g as p}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{M as d,B as u,P as m}from"./ModalHeader-BAGwTwiB.mjs";import{C as h}from"./ScreenHeader-CHmc4-Lu.mjs";import{u as y}from"./context-C7FGpzoq.mjs";import{u as v}from"./internal-context-Z-fyxadS.mjs";import{w as g}from"./index-DNLZMnCG.mjs";import{R as f,A as w,G as C,a as j}from"./styles-BsotlekN.mjs";import{U as k}from"./useActiveWallet-CT7uncGy.mjs";import"viem";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"uuid";import"jose";import"eventemitter3";import"./useWallets-Cs7YKcaR.mjs";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"react-device-detect";import"viem/utils";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"./events-context-CI0iqAXA.mjs";import"@scure/base";import"zustand";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"./getPublicClient-B4uPLKn-.mjs";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";let S=n.div`
|
|
2
2
|
width: 24px;
|
|
3
3
|
height: 24px;
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
align-items: center;
|
|
7
|
-
`,A={"google-drive":"Google Drive",icloud:"iCloud","user-passcode":"password",privy:"Privy","privy-v2":"Privy"},b=({onClose:t})=>/*#__PURE__*/e(j,{children:[/*#__PURE__*/o(h,{title:"Why do I need to secure my account?",icon:/*#__PURE__*/o(s,{width:48}),description:/*#__PURE__*/e(r,{children:[/*#__PURE__*/o("p",{children:"Your app uses cryptography to secure your account. App secrets are split and encrypted so only you can access them."}),/*#__PURE__*/o("p",{children:"To use this app on new devices, secure account secrets using a password, your Google or your Apple account. It’s important you don’t lose access to the method you choose."})]})}),/*#__PURE__*/o(m,{onClick:t,children:"Select backup method"})]});const x={component:()=>{let[s,n]=c(!1),{navigate:m,lastScreen:j,navigateBack:x,setModalData:M,data:I,onUserCloseViaDialogOrKeybindRef:P}=a(),{user:O}=l(),{embeddedWallets:W}=
|
|
7
|
+
`,A={"google-drive":"Google Drive",icloud:"iCloud","user-passcode":"password",privy:"Privy","privy-v2":"Privy"},b=({onClose:t})=>/*#__PURE__*/e(j,{children:[/*#__PURE__*/o(h,{title:"Why do I need to secure my account?",icon:/*#__PURE__*/o(s,{width:48}),description:/*#__PURE__*/e(r,{children:[/*#__PURE__*/o("p",{children:"Your app uses cryptography to secure your account. App secrets are split and encrypted so only you can access them."}),/*#__PURE__*/o("p",{children:"To use this app on new devices, secure account secrets using a password, your Google or your Apple account. It’s important you don’t lose access to the method you choose."})]})}),/*#__PURE__*/o(m,{onClick:t,children:"Select backup method"})]});const x={component:()=>{let[s,n]=c(!1),{navigate:m,lastScreen:j,navigateBack:x,setModalData:M,data:I,onUserCloseViaDialogOrKeybindRef:P}=a(),{user:O}=l(),{embeddedWallets:W}=y(),{closePrivyModal:R}=v(),F=p(O),D=null===F,{isInAccountCreateFlow:B,isResettingPassword:E,shouldCreateEth:G,shouldCreateSol:U}=I.recoverySelection,H=F&&"privy"!==F.recoveryMethod,L=H?/*#__PURE__*/e("span",{children:["Your account is currently secured using"," ",/*#__PURE__*/o("strong",{children:A[F?.recoveryMethod||"user-passcode"]}),"."]}):"Select a method for logging in on new devices and recovering your account.";function Y(e){M({recoveryOAuthStatus:{provider:e,action:D?"create-wallet":"set-recovery",isInAccountCreateFlow:B,shouldCreateEth:G,shouldCreateSol:U}}),m("RecoveryOAuthScreen")}function q(){I?.setWalletPassword?.onFailure(Error("User exited set recovery flow")),R({shouldCallAuthOnSuccess:I?.setWalletPassword?.callAuthOnSuccessOnClose??!1})}return P.current=q,/*#__PURE__*/e(r,{children:[/*#__PURE__*/o(d,{onClose:q,backFn:s?()=>n(!1):j?x:void 0,infoFn:j||s?void 0:()=>n(!0)},"header"),s?/*#__PURE__*/o(b,{onClose:()=>n(!1)}):/*#__PURE__*/e(r,{children:[/*#__PURE__*/o(h,{title:H?"Update backup method":"Secure your account",icon:/*#__PURE__*/o(t,{width:48}),description:L}),/*#__PURE__*/o(f,{children:W.userOwnedRecoveryOptions.filter((e=>!["icloud","google-drive"].includes(F?.recoveryMethod||"")||e!==F?.recoveryMethod)).sort().map((r=>{switch(r){case"google-drive":/*#__PURE__*/return e(k,{onClick:()=>Y("google-drive"),children:[/*#__PURE__*/o(S,{children:/*#__PURE__*/o(C,{style:{width:18}})}),"Back up to Google Drive"]},r);case"icloud":/*#__PURE__*/return e(k,{onClick:()=>Y("icloud"),children:[/*#__PURE__*/o(S,{children:/*#__PURE__*/o(w,{style:{width:24}})}),"Back up to Apple iCloud"]},r);case"user-passcode":/*#__PURE__*/return e(k,{onClick:()=>{m(g({isCreatingWallet:D,skipSplashScreen:!0}))},children:[/*#__PURE__*/o(S,{children:/*#__PURE__*/o(i,{style:{width:18}})}),E?"Reset your":"Set a"," password"]},r);default:return null}}))})]}),/*#__PURE__*/o(u,{})]})}};export{x as RecoverySelectionScreen,x as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import i from"react";import{styled as o}from"styled-components";import{a4 as n}from"./useActiveWallet-
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import i from"react";import{styled as o}from"styled-components";import{a4 as n}from"./useActiveWallet-CT7uncGy.mjs";import{M as a,B as t}from"./ModalHeader-BAGwTwiB.mjs";import{N as c}from"./index-Dq_xe9dz.mjs";const l=o.div`
|
|
2
2
|
/* spacing tokens */
|
|
3
3
|
--screen-space: 16px; /* base 1x = 16 */
|
|
4
4
|
--screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as r,Fragment as e,jsx as l}from"react/jsx-runtime";import{a}from"./ModalHeader-
|
|
1
|
+
import{jsxs as r,Fragment as e,jsx as l}from"react/jsx-runtime";import{a}from"./ModalHeader-BAGwTwiB.mjs";import{S as t}from"./Screen-Dv092amM.mjs";const n=({primaryCta:n,secondaryCta:i,helpText:d,watermark:s=!0,children:c,...m})=>{let o=n||i?/*#__PURE__*/r(e,{children:[n&&(()=>{let{label:r,...e}=n,t=e.variant||"primary";/*#__PURE__*/return l(a,{...e,variant:t,style:{width:"100%",...e.style},children:r})})(),i&&(()=>{let{label:r,...e}=i,t=e.variant||"secondary";/*#__PURE__*/return l(a,{...e,variant:t,style:{width:"100%",...e.style},children:r})})()]}):null;/*#__PURE__*/return r(t,{id:m.id,className:m.className,children:[/*#__PURE__*/l(t.Header,{...m}),c?/*#__PURE__*/l(t.Body,{children:c}):null,d||o||s?/*#__PURE__*/r(t.Footer,{children:[d?/*#__PURE__*/l(t.HelpText,{children:d}):null,o?/*#__PURE__*/l(t.Actions,{children:o}):null,s?/*#__PURE__*/l(t.Watermark,{}):null]}):null]})};export{n as S};
|
package/dist/esm/{SetAutomaticRecoveryScreen-CVl0jRLW.mjs → SetAutomaticRecoveryScreen-Cc5MVRbR.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ExclamationTriangleIcon";import i from"@heroicons/react/24/outline/LockClosedIcon";import{useState as n}from"react";import{u as l,a,h as s}from"./get-is-unified-wallet-
|
|
1
|
+
import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ExclamationTriangleIcon";import i from"@heroicons/react/24/outline/LockClosedIcon";import{useState as n}from"react";import{u as l,a,h as s}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{M as c,c as m,B as d}from"./ModalHeader-BAGwTwiB.mjs";import{styled as p}from"styled-components";import{S as u}from"./Subtitle-CV-2yKE4.mjs";import{T as y}from"./Title-BnzYV3Is.mjs";import{q as h}from"./context-C7FGpzoq.mjs";import{u as f}from"./internal-context-Z-fyxadS.mjs";import{Y as v}from"./useActiveWallet-CT7uncGy.mjs";import"viem";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"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.mjs";const g=p.div`
|
|
2
2
|
&& {
|
|
3
3
|
border-width: 4px;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as i,useMemo as t,useCallback as a,useReducer as l}from"react";import{q as c}from"./context-
|
|
1
|
+
import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as i,useMemo as t,useCallback as a,useReducer as l}from"react";import{q as c}from"./context-C7FGpzoq.mjs";import{a as s}from"./get-is-unified-wallet-DKm2LBUt.mjs";import d from"@heroicons/react/24/outline/ExclamationTriangleIcon";import{b as h,R as u,c as p}from"./Layouts-BlFm53ED.mjs";import{M as m,B as g,S as y,P as v}from"./ModalHeader-BAGwTwiB.mjs";import{E as f,b as w,P as b,a as k,I as C,H as S,S as x,c as $,N as B,D as R,d as P,R as A,e as I,f as j,g as L}from"./shared-BjYW7t-U.mjs";import{styled as E}from"styled-components";import{C as z}from"./Checkbox-BhNoOKjX.mjs";import D from"@heroicons/react/24/outline/KeyIcon";import H from"@heroicons/react/24/solid/CheckCircleIcon";import T from"fast-password-entropy";import*as U from"secure-password-utilities";import{DEFAULT_WORDLIST as F}from"secure-password-utilities/wordlists";import M from"@heroicons/react/24/outline/ArrowDownTrayIcon";import K from"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import O from"@heroicons/react/24/outline/DocumentDuplicateIcon";import N from"@heroicons/react/24/solid/XCircleIcon";import{C as W}from"./ScreenHeader-CHmc4-Lu.mjs";const Y=({buttonHideAnimations:t,buttonLoading:a,password:l,onSubmit:c,onBack:s})=>{let[p,y]=n(!0),[v,R]=n(!1),[P,A]=n(""),I=l===P;return i((()=>{P&&!v&&R(!0)}),[P]),/*#__PURE__*/e(r,{children:[/*#__PURE__*/o(m,{closeable:!1,backFn:s}),/*#__PURE__*/o(h,{}),/*#__PURE__*/e(f,{children:[/*#__PURE__*/e(w,{children:[/*#__PURE__*/o(d,{height:48,width:48,stroke:"var(--privy-color-background)",fill:"var(--privy-color-accent)"}),/*#__PURE__*/o("h3",{style:{color:"var(--privy-color-foreground)"},children:"Confirm your password"}),/*#__PURE__*/o("p",{style:{color:"var(--privy-color-foreground-2)"},children:"Please re-enter your password below to continue."})]}),/*#__PURE__*/e(b,{children:[/*#__PURE__*/o(k,{value:P,onChange:e=>A(e.target.value),onKeyUp:e=>{"Enter"===e.key&&c()},onBlur:()=>R(!0),placeholder:"confirm your password",type:p?"password":"text",style:{paddingRight:"2.3rem"}}),/*#__PURE__*/o(C,{style:{right:"0.75rem"},children:p?/*#__PURE__*/o(S,{onClick:()=>y(!1)}):/*#__PURE__*/o(x,{onClick:()=>y(!0)})})]}),
|
|
2
2
|
/*#__PURE__*/o($,{"aria-hidden":!v||I,error:!0,children:"Passwords do not match"})]}),/*#__PURE__*/o(B,{onClick:c,loading:a,disabled:!I,$hideAnimations:t,children:"Continue"}),/*#__PURE__*/o(u,{}),/*#__PURE__*/o(g,{})]})},Z=({buttonHideAnimations:i,buttonLoading:t,onSubmit:a,onBack:l,config:c})=>{let[s,p]=n(!1);/*#__PURE__*/return e(r,{children:[/*#__PURE__*/o(m,{closeable:!1,backFn:l}),/*#__PURE__*/o(h,{}),/*#__PURE__*/e(f,{children:[/*#__PURE__*/e(w,{children:[/*#__PURE__*/o(d,{height:48,width:48,stroke:"var(--privy-color-background)",fill:"var(--privy-color-error)"}),/*#__PURE__*/o("h3",{style:{color:"var(--privy-color-foreground)"},children:"Confirm you have saved"}),/*#__PURE__*/o("p",{style:{color:"var(--privy-color-foreground-2)"},children:"Losing access to your password means you will lose access to your account."})]}),/*#__PURE__*/o(R,{children:/*#__PURE__*/e(P,{style:{color:"var(--privy-color-error)",cursor:"pointer"},onClick:e=>{e.preventDefault(),p((e=>!e))},children:[/*#__PURE__*/o(z,{color:"var(--privy-color-error)",readOnly:!0,checked:s}),/*#__PURE__*/o(r,{children:"I understand that if I lose my password and device, I will lose access to my account and my assets."})]})})]}),/*#__PURE__*/e(_,{children:["user"===c.initiatedBy&&/*#__PURE__*/o(y,{onClick:c.onCancel,disabled:t,children:"Cancel"}),/*#__PURE__*/o(B,{onClick:a,loading:t,$hideAnimations:i,disabled:!s,children:"Set Password"})]}),/*#__PURE__*/o(u,{}),/*#__PURE__*/o(g,{})]})};let _=E.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
gap: 10px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{base64 as r}from"@scure/base";import{Edit as i}from"lucide-react";import{useState as n,useEffect as a}from"react";import{styled as s}from"styled-components";import{isHex as l,hexToString as c}from"viem";import{ProviderErrors as m}from"@privy-io/js-sdk-core";import{C as p}from"./CopyToClipboard-BGTSFnT3.mjs";import{a as d}from"./Layouts-BlFm53ED.mjs";import{M as u,D as g}from"./JsonTree-aPaJmPx7.mjs";import{P as h,j as y}from"./prepareFundingModalData-
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{base64 as r}from"@scure/base";import{Edit as i}from"lucide-react";import{useState as n,useEffect as a}from"react";import{styled as s}from"styled-components";import{isHex as l,hexToString as c}from"viem";import{ProviderErrors as m}from"@privy-io/js-sdk-core";import{C as p}from"./CopyToClipboard-BGTSFnT3.mjs";import{a as d}from"./Layouts-BlFm53ED.mjs";import{M as u,D as g}from"./JsonTree-aPaJmPx7.mjs";import{P as h,j as y}from"./prepareFundingModalData-BHVs3Cx-.mjs";import{W as f,q as x}from"./context-C7FGpzoq.mjs";import{u as C}from"./internal-context-Z-fyxadS.mjs";import{u as j,a as b}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{S as v}from"./ScreenLayout-DG_XRElR.mjs";import"./copy-Bx2Jwc5_.mjs";import"eventemitter3";import"tinycolor2";import"ofetch";import"./ModalHeader-BAGwTwiB.mjs";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.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"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const w=s.img`
|
|
2
2
|
&& {
|
|
3
3
|
height: ${e=>"sm"===e.size?"65px":"140px"};
|
|
4
4
|
width: ${e=>"sm"===e.size?"65px":"140px"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as t,jsx as n,Fragment as e}from"react/jsx-runtime";import{useState as a,useMemo as r,useEffect as o}from"react";import{formatTokenAmount as i}from"@privy-io/js-sdk-core";import{a as s,u as c,
|
|
1
|
+
import{jsxs as t,jsx as n,Fragment as e}from"react/jsx-runtime";import{useState as a,useMemo as r,useEffect as o}from"react";import{formatTokenAmount as i}from"@privy-io/js-sdk-core";import{a as s,u as c,k as l,g as d}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{u}from"./context-C7FGpzoq.mjs";import{u as m}from"./internal-context-Z-fyxadS.mjs";import{u as p}from"./useGetSolPrice-DwwjjGbd.mjs";import{ErrorScreenView as f}from"./ErrorScreen-BACrlbnT.mjs";import g from"@heroicons/react/24/outline/CheckCircleIcon";import{styled as h}from"styled-components";import{M as y,B as w,P as k}from"./ModalHeader-BAGwTwiB.mjs";import{R as b}from"./Layouts-BlFm53ED.mjs";import{C as v}from"./ScreenHeader-CHmc4-Lu.mjs";import{a as A,R as I}from"./Row-C9vrS4Zi.mjs";import{L as S,V as j}from"./Value-tcJV9e0L.mjs";import{S as C,W as T}from"./WalletLink-Dqy4DrLT.mjs";import{e as O}from"./StackedContainer-B2vaEl56.mjs";import{Y as x}from"./useActiveWallet-CT7uncGy.mjs";import{T as $,a as L}from"./TransactionErrorView-BEWZNGyq.mjs";import{g as E}from"./transaction-CnfuREWo.mjs";import{pipe as F,getCompiledTransactionMessageDecoder as _,decompileTransactionMessage as P,setTransactionMessageLifetimeUsingBlockhash as B,compileTransaction as J,getTransactionEncoder as W,getBase58Decoder as D,fetchAddressesForLookupTables as M}from"@solana/kit";import{a as R,f as q,s as U,b as H,u as V}from"./useSolanaRpcClient-BPnbGqxB.mjs";import{D as z,T as Q,a as X,S as Y,A as G,R as K,J as N,g as Z}from"./getFormattedUsdFromLamports-B6EqSEho.mjs";import"viem";import"tinycolor2";import"ofetch";import"lucide-react";import"./index-DNLZMnCG.mjs";import"uuid";import"jose";import"eventemitter3";import"./useWallets-Cs7YKcaR.mjs";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"react-device-detect";import"viem/utils";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"./events-context-CI0iqAXA.mjs";import"@scure/base";import"zustand";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"./getPublicClient-B4uPLKn-.mjs";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"./reservoir-0wfhnc0j.mjs";import"./ScreenLayout-DG_XRElR.mjs";import"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.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"./LoadingSkeleton-U6-3yFwI.mjs";import"./ethers-jrpF9vqa.mjs";import"@heroicons/react/24/outline";import"./ErrorMessage-D8VaAP5m.mjs";import"./LabelXs-oqZNqbm_.mjs";import"./Subtitle-CV-2yKE4.mjs";import"./Title-BnzYV3Is.mjs";import"./Address-C4fukiNP.mjs";import"./WalletInfoCard-DKxQTgDG.mjs";import"./shared-FM0rljBt.mjs";import"./Checkbox-BhNoOKjX.mjs";import"./ErrorBanner-CQERa7bL.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"./WarningBanner-c8L53pJ2.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/ClipboardDocumentIcon";const tt=h.span`
|
|
2
2
|
&& {
|
|
3
3
|
width: 82px;
|
|
4
4
|
height: 82px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as r}from"react";import{a as o,m as i,C as a}from"./index-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as r}from"react";import{a as o,m as i,C as a}from"./index-DNLZMnCG.mjs";import{u as s,q as n}from"./context-C7FGpzoq.mjs";import{u as l,b as m,k as c}from"./internal-context-Z-fyxadS.mjs";import{u as d,a as u}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{s as p}from"./shouldProceedtoEmbeddedWalletCreationFlow-Ir-axYfm.mjs";import{S as g}from"./ScreenLayout-DG_XRElR.mjs";import{T as v}from"./telegram-B-JqnkqZ.mjs";import"@privy-io/js-sdk-core";import"uuid";import"jose";import"eventemitter3";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"styled-components";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"ofetch";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"tinycolor2";import"./ModalHeader-BAGwTwiB.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"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const y=({success:t,errorMessage:r,onRetry:o})=>{let i=t?"Successfully connected with Telegram":r?r.message:"Verifying connection to Telegram";/*#__PURE__*/return e(g,{title:i,subtitle:t?"You're good to go!":r?r.detail:"Just a few moments more",icon:v,iconVariant:"loading",iconLoadingStatus:{success:t,fail:!!r},secondaryCta:r?.retryable&&o?{label:"Retry",onClick:o}:void 0,watermark:!0})},h={component:()=>{let{authenticated:g,logout:v,ready:h,user:f}=d(),{setModalData:A,navigate:b,resetNavigation:T,data:j}=u(),S=s(),{initLoginWithTelegram:C,loginWithTelegram:w,updateWallets:E,setReadyToTrue:R,closePrivyModal:W,createAnalyticsEvent:_,getAuthMeta:M}=l(),[k,L]=t(!1),[I,x]=t(void 0),D=o();async function N(){try{let e=await async function(){let e;if(!g){if(D.enabled&&"error"===D.status)throw new a(D.error,null,m.CAPTCHA_FAILURE);return D.enabled&&"success"!==D.status&&(D.execute(),e=await D.waitForResult()),e}}();await w({captchaToken:e}),L(!0),R(!0)}catch(e){if(e?.privyErrorCode===m.ALLOWLIST_REJECTED)return x(void 0),T(),void b("AllowlistRejectionScreen");if(e?.privyErrorCode===m.USER_LIMIT_REACHED)return console.error(new c(e).toString()),x(void 0),T(),void b("UserLimitReachedScreen");if(e?.privyErrorCode===m.USER_DOES_NOT_EXIST)return x(void 0),T(),void b("AccountNotFoundScreen");if(e?.privyErrorCode===m.ACCOUNT_TRANSFER_REQUIRED&&e.data?.data?.nonce)return x(void 0),T(),A({accountTransfer:{nonce:e.data?.data?.nonce,account:e.data?.data?.subject,telegramAuthResult:M()?.telegramAuthResult,telegramWebAppData:M()?.telegramWebAppData,displayName:e.data?.data?.account?.displayName,linkMethod:"telegram",embeddedWalletAddress:e.data?.data?.otherUser?.embeddedWalletAddress}}),void b("LinkConflictScreen");let{retryable:t,detail:r}=i(e);x({retryable:t,detail:r,message:"Authentication failed"})}}r((()=>{N()}),[]),r((()=>{if(!(h&&g&&k&&f))return;if(S?.legal.requireUsersAcceptTerms&&!f.hasAcceptedTerms){let e=setTimeout((()=>{b("AffirmativeConsentScreen")}),n);return()=>clearTimeout(e)}if(p(f,S.embeddedWallets)){let e=setTimeout((()=>{A({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),_({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,provider:"telegram",screen:"TelegramAuthScreen"}}),v()},callAuthOnSuccessOnClose:!0}}),b("EmbeddedWalletOnAccountCreateScreen")}),n);return()=>clearTimeout(e)}E();let e=setTimeout((()=>W({shouldCallAuthOnSuccess:!0,isSuccess:!0})),n);return()=>clearTimeout(e)}),[h,g,k,f]);/*#__PURE__*/return e(y,{success:k,errorMessage:I,onRetry:I?.retryable?async()=>{try{x(void 0),j?.telegramAuthModalData?.seamlessAuth||await C(void 0,j?.login?.disableSignup),await N()}catch(e){let{retryable:t,detail:r}=i(e);x({retryable:t,detail:r,message:"Authentication failed"})}}:void 0})},isCaptchaRequired:!0,isShownBeforeReady:!0};export{h as TelegramAuthScreen,y as TelegramAuthScreenView,h as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as i,Fragment as t}from"react/jsx-runtime";import{styled as n}from"styled-components";import{P as r,H as l,W as o}from"./WalletLink-
|
|
1
|
+
import{jsxs as e,jsx as i,Fragment as t}from"react/jsx-runtime";import{styled as n}from"styled-components";import{P as r,H as l,W as o}from"./WalletLink-Dqy4DrLT.mjs";import{g as d}from"./ethers-jrpF9vqa.mjs";import{F as a}from"./Layouts-BlFm53ED.mjs";import c from"@heroicons/react/24/outline/ChevronDownIcon";import{createContext as s,useState as h,useContext as p}from"react";import{s as v,u}from"./context-C7FGpzoq.mjs";const g=({label:t,children:n,valueStyles:r})=>/*#__PURE__*/e(f,{children:[/*#__PURE__*/i("div",{children:t}),/*#__PURE__*/i(x,{style:{...r},children:n})]});let f=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import{BoltIcon as i,ArrowRightIcon as o,ChevronDownIcon as t}from"@heroicons/react/24/outline";import{useState as l}from"react";import{styled as a}from"styled-components";import{formatTokenAmount as s}from"@privy-io/js-sdk-core";import{M as c,P as d,E as h,B as m,b as u}from"./ModalHeader-
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import{BoltIcon as i,ArrowRightIcon as o,ChevronDownIcon as t}from"@heroicons/react/24/outline";import{useState as l}from"react";import{styled as a}from"styled-components";import{formatTokenAmount as s}from"@privy-io/js-sdk-core";import{M as c,P as d,E as h,B as m,b as u}from"./ModalHeader-BAGwTwiB.mjs";import{L as p,V as g,a as f}from"./Value-tcJV9e0L.mjs";import{a as y,R as x}from"./Row-C9vrS4Zi.mjs";import{E as k}from"./ErrorMessage-D8VaAP5m.mjs";import{L as v}from"./LabelXs-oqZNqbm_.mjs";import{S as b}from"./Subtitle-CV-2yKE4.mjs";import{T as w}from"./Title-BnzYV3Is.mjs";import{A as T}from"./Address-C4fukiNP.mjs";import{W as I}from"./WalletInfoCard-DKxQTgDG.mjs";import{u as A}from"./context-C7FGpzoq.mjs";import{Y as S}from"./useActiveWallet-CT7uncGy.mjs";import{L as C}from"./LoadingSkeleton-U6-3yFwI.mjs";import{isAddress as $}from"viem";import{B as j}from"./shared-FM0rljBt.mjs";import{C as M}from"./Checkbox-BhNoOKjX.mjs";import{E}from"./ErrorBanner-CQERa7bL.mjs";import{W as O}from"./WarningBanner-c8L53pJ2.mjs";import D from"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import N from"@heroicons/react/24/outline/ClipboardDocumentIcon";import F from"@heroicons/react/24/outline/ExclamationCircleIcon";import{u as L}from"./internal-context-Z-fyxadS.mjs";const P=a(p)`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
gap: 8px;
|
package/dist/esm/{TransferFromWalletScreen-rtFkHQRz.mjs → TransferFromWalletScreen-CHxSLdSM.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import{useState as l,useEffect as a}from"react";import{M as o,B as i}from"./ModalHeader-
|
|
1
|
+
import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import{useState as l,useEffect as a}from"react";import{M as o,B as i}from"./ModalHeader-BAGwTwiB.mjs";import{C as r}from"./ScreenHeader-CHmc4-Lu.mjs";import{t as c}from"./FundWalletMethodHeader-AiS18uZn.mjs";import{C as s}from"./Chip-D2-wZOHJ.mjs";import{S as p}from"./Subtitle-CV-2yKE4.mjs";import{u as d}from"./context-C7FGpzoq.mjs";import{F as m,Q as y,m as u,T as h,U as w,v as f,a8 as T}from"./useActiveWallet-CT7uncGy.mjs";import{u as g}from"./internal-context-Z-fyxadS.mjs";import{a as C}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{u as v}from"./useWallets-Cs7YKcaR.mjs";import{W as _}from"./WalletOverflowButton-CF8zOlXL.mjs";import{A as j,D as x,E as S}from"./index-DNLZMnCG.mjs";import{isMobile as W}from"react-device-detect";import{styled as b}from"styled-components";import{I as $}from"./InjectedWalletIcon-DLcYOGDj.mjs";import{I as k}from"./styles-C12iVD4I.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"./LoadingSkeleton-U6-3yFwI.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"zustand";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"ofetch";import"lucide-react";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import"@heroicons/react/24/outline/WalletIcon";import"./LinkPasskeyScreen-CUdvQeqw.mjs";import"./TodoList-CgrU7uwu.mjs";import"./ScreenLayout-DG_XRElR.mjs";import"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const O=({provider:t,displayName:l,logo:a,connectOnly:o,connector:i})=>{let r,{navigate:c,setModalData:s}=C(),{connectWallet:p}=g(),d=m(),w=y(t),f="wallet_connect_v2"===i.connectorType?t:i.walletClientType,T=window.matchMedia("(display-mode: standalone)").matches,v=u({connectorType:i.connectorType,walletClientType:f});r=v&&v.chainTypes.includes(i.chainType)?()=>{v.isInstalled||"solana"===i.chainType&&"isInstalled"in i&&i.isInstalled?(p(i,f),c(o?"ConnectOnlyStatusScreen":"ConnectionStatusScreen")):W?(s({installWalletModalData:{walletConfig:v,chainType:i.chainType,connectOnly:o}}),c("WalletInterstitialScreen")):(s({installWalletModalData:{walletConfig:v,chainType:i.chainType,connectOnly:o}}),c("InstallWalletScreen"))}:"coinbase_wallet"!==i.connectorType||"eoaOnly"!==i.coinbaseWalletConfig.preference?.options||!W||T||h()?()=>{(!j(window.navigator.userAgent)||event?.isTrusted)&&(p(i,f),o?"wallet_connect_v2"===i.connectorType?(s((e=>({...e,externalConnectWallet:{...e?.externalConnectWallet,preSelectedWalletId:"wallet_connect_qr"}}))),c("ConnectOnlyLandingScreen")):c("ConnectOnlyStatusScreen"):c("ConnectionStatusScreen"))}:()=>{window.location.href=`https://go.cb-w.com/dapp?cb_url=${encodeURI(window.location.href)}`};let _=l||w?.metadata?.shortName||w?.name||i.walletClientType;/*#__PURE__*/return e(D,{onClick:r,children:[/*#__PURE__*/n($,{icon:a||w?.image_url?.md,name:_}),/*#__PURE__*/n("span",{children:_}),/*#__PURE__*/e(M,{id:"chip-container",children:[d?.walletClientType===f&&d?.chainType===i.chainType?/*#__PURE__*/n(I,{color:"gray",children:"Recent"}):/*#__PURE__*/n("span",{id:"connect-text",children:"Connect"}),"solana"===i.chainType&&/*#__PURE__*/n(I,{color:"gray",children:"Solana"})]})]})};let D=b(w)`
|
|
2
2
|
/* Wallet name text color */
|
|
3
3
|
> span {
|
|
4
4
|
color: var(--privy-color-foreground);
|
|
@@ -28,4 +28,4 @@ import{jsxs as e,jsx as n,Fragment as t}from"react/jsx-runtime";import{useState
|
|
|
28
28
|
flex-wrap: wrap;
|
|
29
29
|
gap: 8px;
|
|
30
30
|
margin-left: auto;
|
|
31
|
-
`;const F=["coinbase_wallet","base_account"];let B=["metamask","okx_wallet","rainbow","uniswap","bybit_wallet","ronin_wallet","haha_wallet","uniswap_extension","zerion","rabby_wallet","cryptocom","binance","kraken_wallet"];const
|
|
31
|
+
`;const F=["coinbase_wallet","base_account"];let B=["metamask","okx_wallet","rainbow","uniswap","bybit_wallet","ronin_wallet","haha_wallet","uniswap_extension","zerion","rabby_wallet","cryptocom","binance","kraken_wallet"];const E=["safe"],A=["phantom","backpack","solflare","jupiter","universal_profile"],L={component:()=>{let s,{connectors:m}=g(),{setModalData:y,data:u,navigate:h}=C(),w=d(),{wallets:j}=v(),W=m.filter(f).flatMap((e=>e.wallets)),[b,$]=l("default"),k="solana"===u?.funding?.chainType,D=!!u?.funding?.crossChainBridgingEnabled;s="ethereum"===u?.funding?.chainType?u.funding.erc20Address&&!u.funding.isUSDC?"ethereum-only":D&&!u.funding.chain.testnet?"ethereum-and-solana":"ethereum-only":D&&!u.funding?.isUSDC?"ethereum-and-solana":"solana-only";let I=j.filter((e=>"privy"!==e.walletClientType)),M=I.map((e=>e.walletClientType)),L=W.filter((e=>"privy"!==e.walletClientType)),U=L.map((e=>e.walletClientType)),H=[],P={...u.funding};P.usingDefaultFundingMethod&&(P.usingDefaultFundingMethod=!1);let R=({wallet:e,walletChainType:n})=>{y({...u,funding:{...P,connectedWallet:e,onContinueWithExternalWallet:()=>h(Q({destChainType:k?"solana":"ethereum",sourceChainType:n}))},solanaFundingData:u?.solanaFundingData?{...u.solanaFundingData,sourceWalletData:{address:e.address,walletClientType:e.walletClientType}}:void 0}),h("FundingAmountEditScreen")};"solana-only"!==s&&H.push(...I.map(((e,t)=>/*#__PURE__*/n(N,{onClick:()=>R({wallet:e,walletChainType:"ethereum"}),icon:e.meta.icon,name:e.meta.name,chainType:e.type},t)))),"ethereum-only"!==s&&H.push(...L.map(((e,t)=>/*#__PURE__*/n(N,{onClick:()=>R({wallet:e,walletChainType:"solana"}),icon:e.meta.icon,name:e.meta.name,chainType:e.type},t)))),H.push(...(({walletList:e,walletChainType:t,connectors:l,connectOnly:a,ignore:o,walletConnectEnabled:i,forceWallet:r})=>{let c=[],s=[],p=[],d=l.filter((e=>"ethereum-only"===t?"ethereum"===e.chainType:"solana-only"!==t||"solana"===e.chainType)),m=d.find((e=>"wallet_connect_v2"===e.connectorType));for(let[l,y]of(r?[r.wallet]:e).entries()){if("detected_ethereum_wallets"===y)for(let[e,t]of d.filter((({chainType:e,connectorType:n,walletClientType:t})=>"solana"!==e&&("uniswap_wallet_extension"===t||"uniswap_extension"===t?!o.includes("uniswap"):"crypto.com_wallet_extension"===t||"crypto.com_onchain"===t?!o.includes("cryptocom"):"injected"===n&&!o.includes(t)))).entries()){let{walletClientType:o,walletBranding:i,chainType:r}=t;("unknown"===o?s:c).push(/*#__PURE__*/n(O,{connectOnly:a,provider:o,logo:i.icon,displayName:i.name,connector:t},`${l}-${y}-${o}-${r}-${e}`))}if("detected_solana_wallets"===y)for(let[e,i]of d.filter((({chainType:e,walletClientType:n})=>{if("solana"===e)return"ethereum-only"!==t&&!o.includes(n)})).entries()){let{walletClientType:t,walletBranding:o,chainType:r}=i;("unknown"===t?s:c).push(/*#__PURE__*/n(O,{connectOnly:a,provider:t,logo:o.icon,displayName:o.name,connector:i},`${l}-${y}-${t}-${r}-${e}`))}if(A.includes(y)){let e=d.find((e=>"injected"===e.connectorType&&e.walletClientType===y||e.connectorType===y));if(e&&c.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:e},`${l}-${y}`)),"solana-only"===t||"ethereum-and-solana"===t){let e=d.find((({chainType:e,walletClientType:n})=>"solana"===e&&n===y));e&&c.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:e},`${y}-solana`))}}else if(B.includes(y)){let e=d.find((e=>"uniswap"===y?"uniswap_wallet_extension"===e.walletClientType||"uniswap_extension"===e.walletClientType:"cryptocom"===y?"crypto.com_wallet_extension"===e.walletClientType||"crypto.com_onchain"===e.walletClientType:"injected"===e.connectorType&&e.walletClientType===y));if(i&&!e&&(e=m),e&&c.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:e,logo:"injected"===e.connectorType?e.walletBranding.icon:void 0,displayName:"injected"===e.connectorType?e.walletBranding.name:void 0},`${l}-${y}`)),"solana-only"===t||"ethereum-and-solana"===t){let e=d.find((({chainType:e,walletClientType:n})=>"solana"===e&&n===y));e&&c.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:e},`${y}-solana`))}}else if(F.includes(y)){let e=d.find((({connectorType:e})=>e===y));e&&c.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:e,displayName:"coinbase_wallet"===e.walletClientType?"Coinbase":"Base",logo:"coinbase_wallet"===e.walletClientType?x:S},`${l}-${y}`))}else if(E.includes(y))m&&p.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:m},`${l}-${y}`));else if("wallet_connect"===y)m&&p.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,connector:m,logo:m.walletBranding.icon,displayName:"WalletConnect"},`${l}-${y}`));else if(y===r?.wallet){let t="ethereum"===r.chainType&&e.includes("detected_ethereum_wallets"),o="solana"===r.chainType&&e.includes("detected_solana_wallets");if(t||o){let e=d.find((({walletClientType:e})=>e===y));e&&c.push(/*#__PURE__*/n(O,{connectOnly:a,provider:y,displayName:e.walletBranding?.name,logo:e.walletBranding?.icon,connector:e},`${l}-${y}`))}}}return[...s,...c,...p]})({walletList:w.appearance.walletList.filter((e=>!I.some((n=>n.walletClientType===e))&&!L.some((n=>n.walletClientType===e)))),walletChainType:s,connectors:m,connectOnly:!0,ignore:[...w.appearance.walletList,...M,...U],walletConnectEnabled:w.externalWallets.walletConnect.enabled}));let z=/*#__PURE__*/n(_,{text:"More wallets",onClick:()=>$("overflow")}),Q=({sourceChainType:e,destChainType:n})=>"ethereum"===e&&"solana"===n?"AwaitingEvmToSolBridgingScreen":"ethereum"===e&&"ethereum"===n?"AwaitingExternalEthereumTransferScreen":"solana"===e&&"ethereum"===n?"AwaitingSolToEvmBridgingScreen":P.externalSolanaFundingScreen;return a((()=>{y({...u,externalConnectWallet:{onCompleteNavigateTo:({address:e,walletClientType:n,walletChainType:t})=>{let l=t??"ethereum",a="ethereum"===l?I.find((t=>t.address===e&&t.walletClientType===n)):L.find((t=>t.address===e&&t.walletClientType===n));return y({...u,funding:{...P,connectedWallet:a,onContinueWithExternalWallet:()=>{h(Q({destChainType:k?"solana":"ethereum",sourceChainType:l}))}},solanaFundingData:u?.solanaFundingData?{...u.solanaFundingData,sourceWalletData:{address:e||"",walletClientType:n||""}}:void 0}),"FundingAmountEditScreen"}}})}),[]),/*#__PURE__*/e(t,"overflow"===b?{children:[/*#__PURE__*/n(o,{backFn:()=>$("default")},"header"),/*#__PURE__*/e(T,{children:[/*#__PURE__*/n(p,{style:{color:"var(--privy-color-foreground-3)",textAlign:"left"},children:"More wallets"}),H]}),/*#__PURE__*/n(i,{})]}:{children:[/*#__PURE__*/n(c,{}),/*#__PURE__*/n(r,{title:"Transfer from wallet",description:"Connect a wallet to deposit funds or send funds manually to your wallet address."}),/*#__PURE__*/e(T,{children:[H.length>4?H.slice(0,3):H,H.length>4&&z]}),/*#__PURE__*/n(i,{})]})}};let N=({onClick:t,icon:l,name:a,chainType:o})=>/*#__PURE__*/e(w,{onClick:t,children:[/*#__PURE__*/n(k,{style:{width:20},children:/*#__PURE__*/n("img",{src:l})}),a,/*#__PURE__*/n(s,{color:"gray",style:{marginLeft:"auto"},children:"Connected"}),"solana"===o&&/*#__PURE__*/n(s,{color:"gray",children:"Solana"})]});export{L as TransferFromWalletScreen,L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{styled as o}from"styled-components";import{d as t}from"./Layouts-BlFm53ED.mjs";import{B as n}from"./ModalHeader-
|
|
1
|
+
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{styled as o}from"styled-components";import{d as t}from"./Layouts-BlFm53ED.mjs";import{B as n}from"./ModalHeader-BAGwTwiB.mjs";import{C as m}from"./ScreenHeader-CHmc4-Lu.mjs";import{t as a}from"./FundWalletMethodHeader-AiS18uZn.mjs";import{I as s}from"./InjectedWalletIcon-DLcYOGDj.mjs";import{N as d}from"./index-Dq_xe9dz.mjs";import{a as l,R as c}from"./Row-C9vrS4Zi.mjs";import{L as h,V as p}from"./Value-tcJV9e0L.mjs";import{A as f}from"./Address-C4fukiNP.mjs";import{N as g}from"./NetworkIcon-B48ilzF8.mjs";import{Q as j}from"./useActiveWallet-CT7uncGy.mjs";const I=({walletClientType:o,displayName:I,addressToFund:w,chainId:y,chainName:x,isBridging:N,isErc20Flow:C,totalPriceInNativeCurrency:T,totalPriceInUsd:v,gasPriceInNativeCurrency:B,gasPriceInUsd:P})=>{let A=j(o);/*#__PURE__*/return e(r,{children:[/*#__PURE__*/i(a,{}),/*#__PURE__*/i(d,{centerIcon:/*#__PURE__*/i(s,{icon:A?.image_url?.md,name:o})}),/*#__PURE__*/i(m,{style:{marginTop:"8px",marginBottom:"12px"},title:`${N?"Bridging":"Confirming"} with ${I}`}),!N&&!C&&/*#__PURE__*/e(l,{children:[/*#__PURE__*/e(c,{children:[/*#__PURE__*/i(h,{children:"Total"}),/*#__PURE__*/i(p,{children:v||T})]}),/*#__PURE__*/e(c,{children:[/*#__PURE__*/i(h,{children:"To"}),/*#__PURE__*/i(p,{children:/*#__PURE__*/i(f,{address:w,showCopyIcon:!1})})]}),/*#__PURE__*/e(c,{children:[/*#__PURE__*/i(h,{children:"Network"}),/*#__PURE__*/i(p,{children:/*#__PURE__*/e(u,{children:[/*#__PURE__*/i(g,{chainId:y,height:16,width:16})," ",x]})})]}),B&&/*#__PURE__*/e(c,{children:[/*#__PURE__*/i(h,{children:"Estimated fee"}),/*#__PURE__*/i(p,{children:P||B})]})]}),/*#__PURE__*/i(t,{height:24}),/*#__PURE__*/i(n,{})]})};let u=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import i from"@heroicons/react/24/outline/EnvelopeIcon";import{B as o}from"./Layouts-BlFm53ED.mjs";import{Mail as a}from"lucide-react";import{forwardRef as s,useState as m}from"react";import{u as n}from"./context-
|
|
1
|
+
import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import i from"@heroicons/react/24/outline/EnvelopeIcon";import{B as o}from"./Layouts-BlFm53ED.mjs";import{Mail as a}from"lucide-react";import{forwardRef as s,useState as m}from"react";import{u as n}from"./context-C7FGpzoq.mjs";import{a as l}from"./index-DNLZMnCG.mjs";import{u as d}from"./internal-context-Z-fyxadS.mjs";import{u as c,a as p}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{a1 as u,V as h}from"./useActiveWallet-CT7uncGy.mjs";import{E as f,P as j}from"./ModalHeader-BAGwTwiB.mjs";import{I as v,E as g}from"./EmailInputForm-Dgoii4vf.mjs";import{E as y}from"./ErrorMessage-D8VaAP5m.mjs";import{S as w}from"./ScreenLayout-DG_XRElR.mjs";import"styled-components";import"@privy-io/js-sdk-core";import"tinycolor2";import"uuid";import"jose";import"eventemitter3";import"./useWallets-Cs7YKcaR.mjs";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"react-device-detect";import"viem/utils";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-DXv-y-86.mjs";import"./events-context-CI0iqAXA.mjs";import"@scure/base";import"zustand";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"viem";import"./getPublicClient-B4uPLKn-.mjs";import"ofetch";import"js-cookie";import"./frame-uzTmvtww.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-Do5Oi_rb.mjs";import"./getEmbeddedConnectedWallet-CM6cDQCS.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"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const k=/*#__PURE__*/s(((i,o)=>{let[s,v]=m(""),[g,w]=m(""),[k,E]=m(!1),{authenticated:A,user:C}=c(),{initUpdateEmail:x}=d(),{navigate:I,setModalData:M,currentScreen:P}=p(),{enabled:T,token:U}=l(),D=n(),L=u(s)&&(D.disablePlusEmails&&s.includes("+")?(g||w("Please enter a valid email address without a '+'."),!1):(g&&w(""),!0)),W=k||!L,q=()=>{!T||U||A?(async e=>{if(!C?.email)throw Error("User is required to have an email address to update it.");E(!0);try{await x({oldAddress:C.email.address,newAddress:s,captchaToken:e}),I("AwaitingPasswordlessCodeScreen")}catch(e){M({errorModalData:{error:e,previousScreen:P||"LandingScreen"}}),I("ErrorScreen")}E(!1)})(U):(M({captchaModalData:{callback:e=>{if(!C?.email)throw Error("User is required to have an email address to update it.");return x({oldAddress:C.email.address,newAddress:s,captchaToken:e})},userIntentRequired:!1,onSuccessNavigateTo:"AwaitingPasswordlessCodeScreen",onErrorNavigateTo:"ErrorScreen"}}),I("CaptchaScreen"))};/*#__PURE__*/return e(r,{children:[/*#__PURE__*/e(b,{children:[g&&/*#__PURE__*/t(y,{style:{marginTop:"0.25rem",textAlign:"left"},children:g}),/*#__PURE__*/e(S,{$error:!!g,children:[/*#__PURE__*/t(h,{children:/*#__PURE__*/t(a,{})}),/*#__PURE__*/t("input",{ref:o,id:"email-input",type:"email",placeholder:"your@email.com",onChange:e=>v(e.target.value),onKeyUp:e=>{"Enter"===e.key&&q()},value:s,autoComplete:"email"}),i.stacked?null:/*#__PURE__*/t(f,{isSubmitting:k,onClick:q,disabled:W,children:"Submit"})]})]}),i.stacked?/*#__PURE__*/t(j,{loadingText:null,loading:k,disabled:W,onClick:q,style:{width:"100%"},children:"Submit"}):null]})}));let b=v,S=g;const E=({title:e="Update your email",subtitle:r="Add the email address you'd like to use going forward. We'll send you a confirmation code"})=>/*#__PURE__*/t(w,{title:e,subtitle:r,icon:i,watermark:!0,children:/*#__PURE__*/t(o,{children:/*#__PURE__*/t(k,{stacked:!0})})}),A={component:()=>/*#__PURE__*/t(E,{})};export{A as UpdateEmailScreen,E as UpdateEmailScreenView,A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/PhoneIcon";import{useState as o}from"react";import{C as r}from"./ConnectPhoneForm-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/PhoneIcon";import{useState as o}from"react";import{C as r}from"./ConnectPhoneForm-DjqZxuB-.mjs";import{u as i}from"./internal-context-Z-fyxadS.mjs";import{a as n,u as m}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{S as a}from"./ScreenLayout-DG_XRElR.mjs";import"styled-components";import"@privy-io/js-sdk-core";import"./context-C7FGpzoq.mjs";import"tinycolor2";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.mjs";import"./ModalHeader-BAGwTwiB.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"./Chip-D2-wZOHJ.mjs";import"./LoadingSkeleton-U6-3yFwI.mjs";import"ofetch";import"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const s=({title:i="Update your phone number",subtitle:n="Add the phone number you'd like to use going forward. We'll send you a confirmation code",onSubmit:m,isSubmitting:s=!1})=>{let[c,u]=o(null);/*#__PURE__*/return e(a,{title:i,subtitle:n,icon:t,primaryCta:{label:s?"Submitting":"Update",onClick:async()=>{c?.qualifiedPhoneNumber&&await m(c)},disabled:!c?.isValid||s},watermark:!0,children:/*#__PURE__*/e(r,{onChange:e=>{u(e)},onSubmit:async()=>{},noIncludeSubmitButton:!0,hideRecent:!0})})},c={component:()=>{let{currentScreen:t,data:r,navigate:a,setModalData:c}=n(),{user:u}=m(),{initUpdatePhone:p}=i(),[l,d]=o(!1);/*#__PURE__*/return e(s,{onSubmit:async e=>{d(!0);try{if(!u?.phone?.number)throw Error("User is required to have an phone number to update it.");await p(u?.phone?.number,e.qualifiedPhoneNumber),a("AwaitingPasswordlessCodeScreen")}catch(e){c({errorModalData:{error:e,previousScreen:r?.errorModalData?.previousScreen||t||"LinkPhoneScreen"}}),a("ErrorScreen")}finally{d(!1)}},isSubmitting:l})}};export{c as UpdatePhoneScreen,s as UpdatePhoneScreenView,c as default};
|
package/dist/esm/{UserLimitReachedScreen-BoinP76r.mjs → UserLimitReachedScreen-Csq5lFOZ.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{a as e}from"./get-is-unified-wallet-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{a as e}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{S as o}from"./ScreenLayout-DG_XRElR.mjs";import"viem";import"react";import"./context-C7FGpzoq.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"./internal-context-Z-fyxadS.mjs";import"ofetch";import"./ModalHeader-BAGwTwiB.mjs";import"styled-components";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.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"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const i=({style:e,...o})=>/*#__PURE__*/t("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"38px",width:"38px",...e},...o,children:/*#__PURE__*/t("path",{d:"M20 13.6V20M20 26.4H20.016M36 20C36 28.8365 28.8366 36 20 36C11.1635 36 4.00001 28.8365 4.00001 20C4.00001 11.1634 11.1635 3.99999 20 3.99999C28.8366 3.99999 36 11.1634 36 20Z",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round"})}),r=({title:e="Unable to sign in",subtitle:r="This is a test application that has reached its user limit. To allow more users, this app needs to be upgraded to production.",onGoBack:n})=>/*#__PURE__*/t(o,{title:e,subtitle:r,icon:i,iconVariant:"subtle",primaryCta:{label:"Go back",onClick:n},showBack:!0,onBack:n,watermark:!0}),n={component:()=>{let{navigate:o}=e();/*#__PURE__*/return t(r,{onGoBack:()=>{o("LandingScreen")}})}};export{n as UserLimitReachedScreen,r as UserLimitReachedScreenView,n as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import{Check as i,Copy as t}from"lucide-react";import{useState as s,useEffect as a}from"react";import{styled as n}from"styled-components";import{S as m}from"./ModalHeader-
|
|
1
|
+
import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import{Check as i,Copy as t}from"lucide-react";import{useState as s,useEffect as a}from"react";import{styled as n}from"styled-components";import{S as m}from"./ModalHeader-BAGwTwiB.mjs";import{E as l}from"./ErrorMessage-D8VaAP5m.mjs";import{L as d}from"./LabelXs-oqZNqbm_.mjs";import{A as c}from"./Address-C4fukiNP.mjs";import{B as p}from"./shared-FM0rljBt.mjs";let h=n(p)`
|
|
2
2
|
&& {
|
|
3
3
|
padding: 0.75rem;
|
|
4
4
|
height: 56px;
|
package/dist/esm/{WalletInterstitialScreen-jn7VehvZ.mjs → WalletInterstitialScreen-TrxS1y6N.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as e}from"react";import{u as o,a as i}from"./get-is-unified-wallet-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useState as e}from"react";import{u as o,a as i}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{S as n}from"./ScreenLayout-DG_XRElR.mjs";import"viem";import"./context-C7FGpzoq.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"./internal-context-Z-fyxadS.mjs";import"ofetch";import"./ModalHeader-BAGwTwiB.mjs";import"styled-components";import"./useActiveWallet-CT7uncGy.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-BHVs3Cx-.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-B4uPLKn-.mjs";import"./useWallets-Cs7YKcaR.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"./Screen-Dv092amM.mjs";import"./index-Dq_xe9dz.mjs";const r=({title:e,subtitle:o,buttonText:i,buttonHref:r,isLoading:l=!1,helpText:a,onButtonClick:m})=>/*#__PURE__*/t(n,{title:e,subtitle:o,primaryCta:{label:i,onClick:()=>{r&&window.open(r,"_self"),m?.()},disabled:l},helpText:a,watermark:!0}),l={component:()=>{let{ready:n}=o(),{data:l}=i(),[a,m]=e(!1);if(!l?.installWalletModalData)throw Error("Wallet data is missing");let{walletConfig:s,connectOnly:c,chainType:p}=l.installWalletModalData,u=s.getMobileRedirect({useUniversalLink:!a,isSolana:"solana"===p,connectOnly:c}),d=s.name.replace(/ wallet/gi,""),h={title:`Redirecting to ${d} Mobile Wallet`,description:`We'll take you to the ${d} Mobile Wallet app to continue your login experience.`,footnote:""};return n&&(h.description=`For the best experience, we'll automatically log you into the ${d} Mobile Wallet in-app browser.`,h.footnote="You can always return here to login via other methods."),a&&(h.title="Still here?",h.description=`You may need to install the ${s.name} mobile app.`,h.footnote=`Once you're done, you can connect with ${s.name} wallet to complete the login.`),/*#__PURE__*/t(r,{title:h.title,subtitle:h.description,buttonText:a?"Go to App Store":"Continue",buttonHref:u,isLoading:n&&!u,helpText:h.footnote||void 0,onButtonClick:()=>{setTimeout((()=>m(!0)),1e3)}})}};export{l as WalletInterstitialScreen,r as WalletInterstitialScreenView,l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{styled as n}from"styled-components";import{formatUnits as i}from"viem";import{s as o,a as s,g as a,b as l}from"./ethers-
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{styled as n}from"styled-components";import{formatUnits as i}from"viem";import{s as o,a as s,g as a,b as l}from"./ethers-jrpF9vqa.mjs";import{g as c}from"./getFormattedUsdFromLamports-B6EqSEho.mjs";import{g as m}from"./transaction-CnfuREWo.mjs";import{D as d}from"./useActiveWallet-CT7uncGy.mjs";const p=({weiQuantities:t,tokenPrice:r,tokenSymbol:n})=>{let i=o(t),l=r?s(i,r):void 0,c=a(i,n);/*#__PURE__*/return e(u,{children:l||c})},h=({weiQuantities:n,tokenPrice:i,tokenSymbol:l})=>{let c=o(n),m=i?s(c,i):void 0,d=a(c,l);/*#__PURE__*/return e(u,{children:m?/*#__PURE__*/r(t,{children:[/*#__PURE__*/e(g,{children:"USD"}),"<$0.01"===m?
|
|
2
2
|
/*#__PURE__*/r(k,{children:[/*#__PURE__*/e(x,{children:"<"}),"$0.01"]}):m]}):d})},f=({quantities:n,tokenPrice:o,tokenSymbol:s="SOL",tokenDecimals:a=9})=>{let l=n.reduce(((e,t)=>e+t),0n),d=o&&"SOL"===s&&9===a?c(l,o):void 0,p="SOL"===s&&9===a?m(l):`${i(l,a)} ${s}`;/*#__PURE__*/return e(u,{children:d?/*#__PURE__*/e(t,{children:"<$0.01"===d?
|
|
3
3
|
/*#__PURE__*/r(k,{children:[/*#__PURE__*/e(x,{children:"<"}),"$0.01"]}):d}):p})};let u=n.span`
|
|
4
4
|
font-size: 14px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Wallet as t}from"lucide-react";import{U as i,V as c,Y as o}from"./useActiveWallet-
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Wallet as t}from"lucide-react";import{U as i,V as c,Y as o}from"./useActiveWallet-CT7uncGy.mjs";const l=({onClick:l,text:m})=>/*#__PURE__*/r(i,{onClick:l,children:[/*#__PURE__*/e(c,{children:/*#__PURE__*/e(t,{})}),/*#__PURE__*/e(o,{children:m})]});export{l as W};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createAbstractClient as e}from"@abstract-foundation/agw-client";import{getBatchTransactionObject as a}from"@abstract-foundation/agw-client/actions";import{hexToNumber as n,createWalletClient as t,custom as r,http as s}from"viem";import{toAccount as i}from"viem/accounts";import{abstractTestnet as o,zksync as c}from"viem/chains";import{u as d,a as l,
|
|
1
|
+
import{createAbstractClient as e}from"@abstract-foundation/agw-client";import{getBatchTransactionObject as a}from"@abstract-foundation/agw-client/actions";import{hexToNumber as n,createWalletClient as t,custom as r,http as s}from"viem";import{toAccount as i}from"viem/accounts";import{abstractTestnet as o,zksync as c}from"viem/chains";import{u as d,a as l,c as m,b as p}from"./get-is-unified-wallet-DKm2LBUt.mjs";import{u}from"./context-C7FGpzoq.mjs";import{u as g}from"./internal-context-Z-fyxadS.mjs";import{u as y,g as f}from"./useWallets-Cs7YKcaR.mjs";import{a as h}from"./getPublicClient-B4uPLKn-.mjs";import{g as v}from"./getEmbeddedConnectedWallet-CM6cDQCS.mjs";import{c as I}from"./smart-wallets-BcApWuwL.mjs";import"react/jsx-runtime";import"react";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"permissionless";import"permissionless/accounts";import"permissionless/clients/pimlico";import"viem/account-abstraction";function T(){let{user:T}=d(),{hideWalletUIs:S,openPrivyModal:w,chains:P,appId:W,rpcConfig:b,client:C}=g(),F=u(),{wallets:M}=y(),{setModalData:_}=l(),x=m(T),A=!!x&&p(x),q=async(a=o.id)=>{let d=v(M);if(!d)throw Error("No connected wallet found");let l="string"==typeof a?n(a):a;if(![o.id,2741,c.id].includes(l))throw Error("Error, only Abstract and ZKSync Era chains are supported");let m=P.find((e=>e.id===l));if(!m)throw Error("Chain not configured");await d.switchChain(m.id);let p=await d.getEthereumProvider(),u=t({account:d.address,transport:r(p)}),g=i({address:d.address,signMessage:u.signMessage,signTransaction:u.signTransaction,signTypedData:u.signTypedData});return await e({chain:m,transport:s(h(m,b,W)),publicTransport:s(h(m,b,W)),signer:g})};return{signMessage:async({message:e},a)=>{let n=await q(a);return new Promise((async(a,t)=>{let{entropyId:r,entropyIdVerifier:s}=f(T);S.current=!0,_({connectWallet:{recoveryMethod:x.recoveryMethod,connectingWalletAddress:x.address,isUnifiedWallet:A,entropyId:r,entropyIdVerifier:s,onCompleteNavigateTo:"SignRequestScreen",onFailure:()=>{}},signMessage:{method:"personal_sign",data:e,confirmAndSign:()=>n.signMessage({message:e}),onSuccess:e=>a(e),onFailure:t,uiOptions:{isCancellable:!0}}}),w("EmbeddedWalletConnectingScreen")})).finally((()=>{S.current=!1}))},signTypedData:async(e,a)=>{let n=await q(a);return new Promise((async(a,t)=>{S.current=!0;let{entropyId:r,entropyIdVerifier:s}=f(T);_({connectWallet:{recoveryMethod:x.recoveryMethod,connectingWalletAddress:x.address,isUnifiedWallet:A,entropyId:r,entropyIdVerifier:s,onCompleteNavigateTo:"SignRequestScreen",onFailure:()=>{}},signMessage:{method:"eth_signTypedData_v4",data:e,confirmAndSign:()=>n.signTypedData(e),onSuccess:e=>a(e),onFailure:t,uiOptions:{isCancellable:!0}}}),w("EmbeddedWalletConnectingScreen")})).finally((()=>{S.current=!1}))},sendTransaction:async e=>{let n=await q(e.chainId),t=[],r="calls"in e&&void 0!==e.calls;return t=r?[...e.calls]:[e],new Promise((async(s,i)=>{S.current=!0;let{entropyId:o,entropyIdVerifier:c}=f(T);_({connectWallet:{recoveryMethod:x.recoveryMethod,connectingWalletAddress:x.address,isUnifiedWallet:A,entropyId:o,entropyIdVerifier:c,onCompleteNavigateTo:"SendTransactionScreen",onFailure:()=>{}},sendTransaction:{transactionRequests:I({calls:t,chain:n.chain,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas,nonce:e.nonce?BigInt(e.nonce):void 0}),entropyId:o,entropyIdVerifier:c,transactingWalletAddress:n.account.address,transactingWalletIndex:void 0,prepareTransactionRequest:async()=>{let t=r?a(n.account.address,e):e;return await n.prepareAbstractTransactionRequest(t)},scanTransaction:async()=>{if(!C)throw Error("Privy client not found");let t=r?a(n.account.address,e):e,s=await n.prepareAbstractTransactionRequest(t);return await C.scanTransaction({metadata:{domain:F.embeddedWallets.transactionScanning.domain},chain_id:e.chainId.toString(),request:{method:"eth_sendTransaction",params:[{from:s.from,to:s.to,value:s.value?.toString(),gas:s.gas?.toString(),gasPrice:s.gasPrice?.toString(),nonce:s.nonce?.toString(),data:s.data,eip_712_meta:{paymaster_params:{paymaster:s.paymaster,paymaster_input:s.paymasterInput}}}]}})},signOnly:!1,getIsSponsored:async()=>void 0!==e.paymaster&&void 0!==e.paymasterInput,onConfirm:()=>r?n.sendTransactionBatch(e):n.sendTransaction(e),onSuccess:e=>s(e.hash),onFailure:i,uiOptions:{isCancellable:!0}}}),w("EmbeddedWalletConnectingScreen")})).finally((()=>{S.current=!1}))},signTransaction:async e=>{let n=await q(e.chainId),t=[],r="calls"in e&&void 0!==e.calls;return t=r?[...e.calls]:[e],new Promise((async(s,i)=>{S.current=!0;let{entropyId:o,entropyIdVerifier:c}=f(T);_({connectWallet:{recoveryMethod:x.recoveryMethod,connectingWalletAddress:x.address,isUnifiedWallet:A,entropyId:o,entropyIdVerifier:c,onCompleteNavigateTo:"SendTransactionScreen",onFailure:()=>{}},sendTransaction:{transactionRequests:I({calls:t,chain:n.chain,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas,nonce:e.nonce?BigInt(e.nonce):void 0}),entropyId:o,entropyIdVerifier:c,transactingWalletAddress:n.account.address,transactingWalletIndex:void 0,prepareTransactionRequest:async()=>{let t=r?a(n.account.address,e):e;return await n.prepareAbstractTransactionRequest(t)},scanTransaction:async()=>{if(!C)throw Error("Privy client not found");let t=r?a(n.account.address,e):e,s=await n.prepareAbstractTransactionRequest(t);return await C.scanTransaction({metadata:{domain:F.embeddedWallets.transactionScanning.domain},chain_id:e.chainId.toString(),request:{method:"eth_sendTransaction",params:[{from:s.from,to:s.to,value:s.value?.toString(),gas:s.gas?.toString(),gasPrice:s.gasPrice?.toString(),nonce:s.nonce?.toString(),data:s.data,eip_712_meta:{paymaster_params:{paymaster:s.paymaster,paymaster_input:s.paymasterInput}}}]}})},signOnly:!0,getIsSponsored:async()=>void 0!==e.paymaster&&void 0!==e.paymasterInput,onConfirm:async()=>{let t=r?a(n.account.address,e):e,s=await n.prepareAbstractTransactionRequest(t);return n.signTransaction(s)},onSuccess:e=>s(e.hash),onFailure:i,uiOptions:{isCancellable:!0}}}),w("EmbeddedWalletConnectingScreen")})).finally((()=>{S.current=!1}))}}}export{T as useAbstractSmartWallets};
|