@privy-io/react-auth 3.14.1 → 3.14.2-beta-20260225204743

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.
Files changed (239) hide show
  1. package/dist/cjs/{AccountNotFoundScreen-C25iBRLm.js → AccountNotFoundScreen-Da9qA-56.js} +1 -1
  2. package/dist/cjs/{Address-CHKhHgKJ.js → Address-BqWF0i-J.js} +1 -1
  3. package/dist/cjs/{AffirmativeConsentScreen-DT0ojGpw.js → AffirmativeConsentScreen-BClNt_0J.js} +1 -1
  4. package/dist/cjs/{AllowlistRejectionScreen-D0I4vTcK.js → AllowlistRejectionScreen-zV6NXsBd.js} +1 -1
  5. package/dist/cjs/{AuthenticateWithWalletScreen-dcVrFqXU.js → AuthenticateWithWalletScreen-BoREWQDU.js} +1 -1
  6. package/dist/cjs/{AwaitingEvmToSolBridgingScreen-20Lokl_2.js → AwaitingEvmToSolBridgingScreen-CTZe2U-l.js} +1 -1
  7. package/dist/cjs/{AwaitingExternalEthereumTransferScreen-B2BOyvEP.js → AwaitingExternalEthereumTransferScreen-CWgaBnmf.js} +1 -1
  8. package/dist/cjs/{AwaitingPasswordlessCodeScreen-CjeHuBk7.js → AwaitingPasswordlessCodeScreen-CWWgEkCs.js} +1 -1
  9. package/dist/cjs/{AwaitingSolToEvmBridgingScreen-NSyS8djM.js → AwaitingSolToEvmBridgingScreen-B3hSbpSm.js} +1 -1
  10. package/dist/cjs/{BridgeNetworkSelectionView-Cy4dUUah.js → BridgeNetworkSelectionView-BJ4HU7kS.js} +1 -1
  11. package/dist/cjs/{CaptchaScreen-CchfnELg.js → CaptchaScreen-CuPGvzuE.js} +1 -1
  12. package/dist/cjs/{CoinbaseOnrampStatusScreen-RmmivwEu.js → CoinbaseOnrampStatusScreen-BYh_mtXY.js} +1 -1
  13. package/dist/cjs/{ConnectEmailForm-BibKRhlR.js → ConnectEmailForm-Cw7gmFFy.js} +1 -1
  14. package/dist/cjs/{ConnectLedgerScreen-CB1oTLjq.js → ConnectLedgerScreen-JGZIZrO9.js} +1 -1
  15. package/dist/cjs/{ConnectOnlyLandingScreen-BI0zDj3o.js → ConnectOnlyLandingScreen-BEyo7yCb.js} +1 -1
  16. package/dist/cjs/{ConnectOnlyStatusScreen-BAUS-OpP.js → ConnectOnlyStatusScreen-CHQLiEij.js} +1 -1
  17. package/dist/cjs/{ConnectOrCreateScreen-CdoSL34u.js → ConnectOrCreateScreen-BLz6pmTF.js} +1 -1
  18. package/dist/cjs/{ConnectPhoneForm-BPgbe0j3.js → ConnectPhoneForm-BY1-1V8g.js} +1 -1
  19. package/dist/cjs/{ConnectWalletView-BB2DjcE-.js → ConnectWalletView-CWrY-kEt.js} +1 -1
  20. package/dist/cjs/{ConnectionStatusScreen-D2pFs10v.js → ConnectionStatusScreen-DKwnv7_i.js} +1 -1
  21. package/dist/cjs/{CrossAppAuthScreen-Dzqgp4fv.js → CrossAppAuthScreen-COXktzZ_.js} +1 -1
  22. package/dist/cjs/{CustomLandingScreenView-Pamy7vPb.js → CustomLandingScreenView-BBBb_pIa.js} +1 -1
  23. package/dist/cjs/{DelegatedActionsConsentScreen-B1RznIyD.js → DelegatedActionsConsentScreen-BXuRbdhT.js} +1 -1
  24. package/dist/cjs/{DelegatedActionsRevokeScreen-BfYkymoM.js → DelegatedActionsRevokeScreen-Bi79TDY8.js} +1 -1
  25. package/dist/cjs/{EmbeddedWalletConnectingScreen-DaOL3Ico.js → EmbeddedWalletConnectingScreen-BAdYnWdp.js} +1 -1
  26. package/dist/cjs/{EmbeddedWalletCreatedScreen-B5K1ek4V.js → EmbeddedWalletCreatedScreen-CWkg3irZ.js} +1 -1
  27. package/dist/cjs/{EmbeddedWalletKeyExportScreen-BJTyn-Lk.js → EmbeddedWalletKeyExportScreen-ClvfSZ4d.js} +1 -1
  28. package/dist/cjs/{EmbeddedWalletOnAccountCreateScreen-BbZKkeLp.js → EmbeddedWalletOnAccountCreateScreen-ZGVRCKAf.js} +1 -1
  29. package/dist/cjs/{EmbeddedWalletPasswordUpdateScreen-DMx4Tn8E.js → EmbeddedWalletPasswordUpdateScreen-D9-AY8aF.js} +1 -1
  30. package/dist/cjs/{EmbeddedWalletPasswordUpdateSplashScreen-wUfHEYpF.js → EmbeddedWalletPasswordUpdateSplashScreen-CX3MNNni.js} +1 -1
  31. package/dist/cjs/{EnrollTotp-B1qE1mCx.js → EnrollTotp-oC6vnm7x.js} +1 -1
  32. package/dist/cjs/{ErrorScreen-BPXQabSS.js → ErrorScreen-Ci7dzQ7X.js} +1 -1
  33. package/dist/cjs/{FarcasterConnectStatusScreen-C_NK2UCS.js → FarcasterConnectStatusScreen-DnrqDPpm.js} +1 -1
  34. package/dist/cjs/{FarcasterSignerStatusScreen-D3DUvPPw.js → FarcasterSignerStatusScreen-m-EKHgqe.js} +1 -1
  35. package/dist/cjs/{FundSolWalletWithExternalSolanaWallet-BoOhBVX9.js → FundSolWalletWithExternalSolanaWallet-CL5Jl0zy.js} +1 -1
  36. package/dist/cjs/{FundWalletMethodHeader-BUHyY_8M.js → FundWalletMethodHeader-BncLLS1i.js} +1 -1
  37. package/dist/cjs/FundWithBankDepositScreen-DV41ZeH_.js +176 -0
  38. package/dist/cjs/{FundingEditAmountScreen-DLWLIjEZ.js → FundingEditAmountScreen-C1fCTPJJ.js} +1 -1
  39. package/dist/cjs/{FundingMethodSelectionScreen-BRz8TLz5.js → FundingMethodSelectionScreen-CQt7Dklt.js} +1 -1
  40. package/dist/cjs/{InAppBrowserLoginNotPossible-iLA0OVLk.js → InAppBrowserLoginNotPossible-Cnr9M3gC.js} +1 -1
  41. package/dist/cjs/{InstallWalletScreen-BS2Bwxvi.js → InstallWalletScreen-33F7RRlP.js} +1 -1
  42. package/dist/cjs/{LandingScreen-C4KpTL08.js → LandingScreen-C8pFLR7T.js} +1 -1
  43. package/dist/cjs/{LinkConflictScreen-CNQSun1F.js → LinkConflictScreen-Byy8LnZZ.js} +1 -1
  44. package/dist/cjs/{LinkEmailScreen-oNzcpVes.js → LinkEmailScreen-CM-irais.js} +1 -1
  45. package/dist/cjs/{LinkPasskeyScreen-CjdxFDoA.js → LinkPasskeyScreen-ovk6Ez-d.js} +1 -1
  46. package/dist/cjs/{LinkPhoneScreen-B6OzKZnd.js → LinkPhoneScreen-v6zm1YHw.js} +1 -1
  47. package/dist/cjs/{LoginFailedScreen-Cj3ATfwH.js → LoginFailedScreen-DgYbc_LC.js} +1 -1
  48. package/dist/cjs/{ManualTransferScreen-M26HCQmU.js → ManualTransferScreen-BA6n3GUi.js} +1 -1
  49. package/dist/cjs/{MfaAuthEnrollmentFlowScreen-D1zKxqD8.js → MfaAuthEnrollmentFlowScreen-ZiVEcykS.js} +1 -1
  50. package/dist/cjs/{MfaAuthVerifyFlowScreen-D3eQj9zt.js → MfaAuthVerifyFlowScreen-CdT_6UHO.js} +1 -1
  51. package/dist/cjs/{MfaEnrollmentFlowScreen-B2gvvMfX.js → MfaEnrollmentFlowScreen-t1tyDWZQ.js} +1 -1
  52. package/dist/cjs/{MfaVerifyFlowScreen-AyHxACnF.js → MfaVerifyFlowScreen-B6fjUQhB.js} +1 -1
  53. package/dist/cjs/{ModalHeader-BCPQgekO.js → ModalHeader-C4VvvcJI.js} +1 -1
  54. package/dist/cjs/{MoonpayStatusScreen-BQaJBdWu.js → MoonpayStatusScreen-mQ_glqMp.js} +1 -1
  55. package/dist/cjs/{OAuthStatusScreen-JHIOff6A.js → OAuthStatusScreen-DjGxQpVS.js} +1 -1
  56. package/dist/cjs/{PasskeySelectSignupOrLogin-B9J49RMF.js → PasskeySelectSignupOrLogin-CxmbNK8J.js} +1 -1
  57. package/dist/cjs/{PasskeyStatusScreen-ms-tH4cc.js → PasskeyStatusScreen-DvQuDzXU.js} +1 -1
  58. package/dist/cjs/{PasswordRecoveryScreen-CDHZosNL.js → PasswordRecoveryScreen-CkRGgvXb.js} +1 -1
  59. package/dist/cjs/{QrCode-CE12LRBB.js → QrCode-BhyIQUmQ.js} +1 -1
  60. package/dist/cjs/{RecoveryOAuthStatusScreen-BUxNTtqd.js → RecoveryOAuthStatusScreen-DPR9CgJE.js} +1 -1
  61. package/dist/cjs/{RecoveryPasswordCreateScreen-BkFOrb6m.js → RecoveryPasswordCreateScreen-CxU7NBwk.js} +1 -1
  62. package/dist/cjs/{RecoverySelectionScreen-HBLOm2va.js → RecoverySelectionScreen-DdNob--S.js} +1 -1
  63. package/dist/cjs/{Screen-BfKedqka.js → Screen-CCE-b3Bs.js} +1 -1
  64. package/dist/cjs/{ScreenLayout-CMb-Fua0.js → ScreenLayout-CIucWNBD.js} +1 -1
  65. package/dist/cjs/{SetAutomaticRecoveryScreen-DPjXBMos.js → SetAutomaticRecoveryScreen-DboKNW8C.js} +1 -1
  66. package/dist/cjs/{SetWalletPasswordForm-BslxSGLC.js → SetWalletPasswordForm-BXVDxfaR.js} +1 -1
  67. package/dist/cjs/{SignRequestScreen-Cjn1PsqC.js → SignRequestScreen-B6eHE2B5.js} +1 -1
  68. package/dist/cjs/{StandardSignAndSendTransactionScreen-BIh1TSV6.js → StandardSignAndSendTransactionScreen-DcqaQHy5.js} +1 -1
  69. package/dist/cjs/{TelegramAuthScreen-BZpPqkC8.js → TelegramAuthScreen-DyPX_iGV.js} +1 -1
  70. package/dist/cjs/{TransactionDetails-BY2Ynu2J.js → TransactionDetails-B1h6EeBW.js} +1 -1
  71. package/dist/cjs/{TransactionErrorView-CueeggTz.js → TransactionErrorView-B5sT73Ba.js} +1 -1
  72. package/dist/cjs/{TransferFromWalletScreen-BfWPkgYH.js → TransferFromWalletScreen-BMOX1MK_.js} +1 -1
  73. package/dist/cjs/{TransferOrBridgeLoadingScreen-CI2oh7CB.js → TransferOrBridgeLoadingScreen-Cfn5rlzi.js} +1 -1
  74. package/dist/cjs/{UpdateEmailScreen-BHgHi-KQ.js → UpdateEmailScreen-3BTc4v0E.js} +1 -1
  75. package/dist/cjs/{UpdatePhoneScreen-J83rbDYY.js → UpdatePhoneScreen-CmsYMIzD.js} +1 -1
  76. package/dist/cjs/{UserLimitReachedScreen-CYNd-wAp.js → UserLimitReachedScreen-I9UUK49o.js} +1 -1
  77. package/dist/cjs/{WalletInfoCard-CHdyZdLe.js → WalletInfoCard-ChY3FD9q.js} +1 -1
  78. package/dist/cjs/{WalletInterstitialScreen-CmqF-Oas.js → WalletInterstitialScreen-BUlgDZh5.js} +1 -1
  79. package/dist/cjs/{WalletLink-Bs_1C81F.js → WalletLink-C7ZIDy-A.js} +1 -1
  80. package/dist/cjs/{WalletOverflowButton-BqeWaSEy.js → WalletOverflowButton-Dc59wfc3.js} +1 -1
  81. package/dist/cjs/abstract-smart-wallets.js +1 -1
  82. package/dist/cjs/{context-D-ZJYjUg.js → context-DuuxPOa_.js} +1 -1
  83. package/dist/cjs/{ethers-SCb3aakT.js → ethers-zYuc0hQo.js} +1 -1
  84. package/dist/cjs/extended-chains.js +1 -1
  85. package/dist/cjs/{get-is-unified-wallet-UpdjHxOV.js → get-is-unified-wallet-BLVPD3_u.js} +1 -1
  86. package/dist/cjs/{index-gohEbwKU.js → index-BLtm61jZ.js} +1 -1
  87. package/dist/cjs/{index-BcyDbfqY.js → index-C_DdsmQ1.js} +1 -1
  88. package/dist/cjs/index-nm4KctZS.js +174 -0
  89. package/dist/cjs/index.js +1 -1
  90. package/dist/cjs/internal.js +1 -1
  91. package/dist/cjs/{shared-e1wjsjhc.js → shared-B3lDvuTo.js} +1 -1
  92. package/dist/cjs/{shouldProceedtoEmbeddedWalletCreationFlow-DADJI9f0.js → shouldProceedtoEmbeddedWalletCreationFlow-BWLhx4le.js} +1 -1
  93. package/dist/cjs/{smart-wallets-D-oPjsFS.js → smart-wallets-DVpUjsHG.js} +1 -1
  94. package/dist/cjs/smart-wallets.js +1 -1
  95. package/dist/cjs/solana.js +1 -1
  96. package/dist/cjs/{styles-DUvzIwf1.js → styles-ClNz-IKw.js} +1 -1
  97. package/dist/cjs/{to-ui-error-BJRhg6yc.js → to-ui-error-DK3jeQuM.js} +1 -1
  98. package/dist/cjs/ui.js +1 -1
  99. package/dist/cjs/{use-export-wallet-Dt1qheK5.js → use-export-wallet-BIKY-giO.js} +1 -1
  100. package/dist/cjs/{use-export-wallet-B5ujV5Nk.js → use-export-wallet-CTQ2_-Js.js} +1 -1
  101. package/dist/cjs/{useActiveWallet-Cn6zOXx5.js → useActiveWallet-Dkf84FVu.js} +1 -1
  102. package/dist/cjs/{useGetTokenPrice-761HAiva.js → useGetTokenPrice-BarE9ei-.js} +1 -1
  103. package/dist/cjs/{useI18n-DFGBJl_S.js → useI18n-BhKJoNb2.js} +1 -1
  104. package/dist/cjs/{usePrivy-cfS6o4tX.js → usePrivy-DhBaXRgr.js} +1 -1
  105. package/dist/cjs/{useSolanaRpcClient-PnNtmWdo.js → useSolanaRpcClient-ugDx2qoe.js} +1 -1
  106. package/dist/cjs/{useWallets-CKAypPZB.js → useWallets-BTiaq6pw.js} +1 -1
  107. package/dist/cjs/{useWallets-DeTGSqF_.js → useWallets-BWoRnKwk.js} +1 -1
  108. package/dist/dts/{events-context-Bz1yk0zU.d.mts → events-context-rAo2eQMj.d.mts} +1 -1
  109. package/dist/dts/{events-context-Bz1yk0zU.d.ts → events-context-rAo2eQMj.d.ts} +1 -1
  110. package/dist/dts/extended-chains.d.mts +1 -1
  111. package/dist/dts/extended-chains.d.ts +1 -1
  112. package/dist/dts/farcaster.d.mts +1 -1
  113. package/dist/dts/farcaster.d.ts +1 -1
  114. package/dist/dts/index.d.mts +46 -5
  115. package/dist/dts/index.d.ts +46 -5
  116. package/dist/dts/internal.d.mts +1 -1
  117. package/dist/dts/internal.d.ts +1 -1
  118. package/dist/dts/smart-wallets.d.mts +1 -1
  119. package/dist/dts/smart-wallets.d.ts +1 -1
  120. package/dist/dts/solana.d.mts +3 -3
  121. package/dist/dts/solana.d.ts +3 -3
  122. package/dist/dts/{types-CIvz-X6P.d.mts → types-CDJGb3Hz.d.mts} +1 -37
  123. package/dist/dts/{types-CIvz-X6P.d.ts → types-CDJGb3Hz.d.ts} +1 -37
  124. package/dist/dts/ui.d.mts +1 -1
  125. package/dist/dts/ui.d.ts +1 -1
  126. package/dist/esm/{AccountNotFoundScreen-C055cesr.mjs → AccountNotFoundScreen-Bl7G6bA0.mjs} +1 -1
  127. package/dist/esm/{Address-BjZb-TIL.mjs → Address-CYplVOfb.mjs} +1 -1
  128. package/dist/esm/{AffirmativeConsentScreen-DXy2kEcy.mjs → AffirmativeConsentScreen-DM4TcGfm.mjs} +1 -1
  129. package/dist/esm/{AllowlistRejectionScreen-BIzWPeoe.mjs → AllowlistRejectionScreen-DVLzrq3E.mjs} +1 -1
  130. package/dist/esm/{AuthenticateWithWalletScreen-q3jQKiH6.mjs → AuthenticateWithWalletScreen-Dpv6YNie.mjs} +1 -1
  131. package/dist/esm/{AwaitingEvmToSolBridgingScreen-B4R4PEVm.mjs → AwaitingEvmToSolBridgingScreen-DZeUe4U5.mjs} +1 -1
  132. package/dist/esm/{AwaitingExternalEthereumTransferScreen-Dwy69FD1.mjs → AwaitingExternalEthereumTransferScreen-C0pxxksh.mjs} +1 -1
  133. package/dist/esm/{AwaitingPasswordlessCodeScreen-Ch_YXDTX.mjs → AwaitingPasswordlessCodeScreen-dIOkXMLZ.mjs} +1 -1
  134. package/dist/esm/{AwaitingSolToEvmBridgingScreen-spElnpUE.mjs → AwaitingSolToEvmBridgingScreen-Bnd2OljW.mjs} +1 -1
  135. package/dist/esm/{BridgeNetworkSelectionView-CaDh-Zck.mjs → BridgeNetworkSelectionView-BxiyBV8x.mjs} +1 -1
  136. package/dist/esm/{CaptchaScreen-BZy78GrD.mjs → CaptchaScreen-DQDC7JzN.mjs} +1 -1
  137. package/dist/esm/{CoinbaseOnrampStatusScreen-CTWZaE1o.mjs → CoinbaseOnrampStatusScreen-DXWKfYnS.mjs} +1 -1
  138. package/dist/esm/{ConnectEmailForm-0GOHNayM.mjs → ConnectEmailForm-BPL4v6UQ.mjs} +1 -1
  139. package/dist/esm/{ConnectLedgerScreen-CIPOaq8e.mjs → ConnectLedgerScreen-D-YZA4pE.mjs} +1 -1
  140. package/dist/esm/{ConnectOnlyLandingScreen-CbLV-cj4.mjs → ConnectOnlyLandingScreen-BG56JKfT.mjs} +1 -1
  141. package/dist/esm/{ConnectOnlyStatusScreen-bmx1wwk1.mjs → ConnectOnlyStatusScreen-BqVQKn1g.mjs} +1 -1
  142. package/dist/esm/{ConnectOrCreateScreen-DXw5Y8gN.mjs → ConnectOrCreateScreen-C8u98p86.mjs} +1 -1
  143. package/dist/esm/{ConnectPhoneForm-_lOAQG_X.mjs → ConnectPhoneForm-CvRD6txR.mjs} +1 -1
  144. package/dist/esm/{ConnectWalletView-CDqboUej.mjs → ConnectWalletView-DMF1481Z.mjs} +1 -1
  145. package/dist/esm/{ConnectionStatusScreen-D-9fLZfA.mjs → ConnectionStatusScreen-BqtmBBAM.mjs} +1 -1
  146. package/dist/esm/{CrossAppAuthScreen-Co723kT3.mjs → CrossAppAuthScreen-CNTOhQXE.mjs} +1 -1
  147. package/dist/esm/{CustomLandingScreenView-9mrgsDhT.mjs → CustomLandingScreenView-BDZmrAgq.mjs} +1 -1
  148. package/dist/esm/{DelegatedActionsConsentScreen-CyQTJHgT.mjs → DelegatedActionsConsentScreen-CRl17MGE.mjs} +1 -1
  149. package/dist/esm/{DelegatedActionsRevokeScreen-CFm4F3CM.mjs → DelegatedActionsRevokeScreen-cOpjsU01.mjs} +1 -1
  150. package/dist/esm/{EmbeddedWalletConnectingScreen-DmTtzGwq.mjs → EmbeddedWalletConnectingScreen-DC36YcCz.mjs} +1 -1
  151. package/dist/esm/EmbeddedWalletCreatedScreen-B1DDJTYV.mjs +1 -0
  152. package/dist/esm/{EmbeddedWalletKeyExportScreen-CsWRTEgd.mjs → EmbeddedWalletKeyExportScreen-BoFnx_RO.mjs} +1 -1
  153. package/dist/esm/{EmbeddedWalletOnAccountCreateScreen-DBAmWm90.mjs → EmbeddedWalletOnAccountCreateScreen-D_4FNOwi.mjs} +1 -1
  154. package/dist/esm/{EmbeddedWalletPasswordUpdateScreen-B5w6wtgf.mjs → EmbeddedWalletPasswordUpdateScreen-D6Uuy-A9.mjs} +1 -1
  155. package/dist/esm/{EmbeddedWalletPasswordUpdateSplashScreen-BvsscceO.mjs → EmbeddedWalletPasswordUpdateSplashScreen-BF8d9FtJ.mjs} +1 -1
  156. package/dist/esm/{EnrollTotp-uSQt9d2Q.mjs → EnrollTotp-BFVbJMub.mjs} +1 -1
  157. package/dist/esm/{ErrorScreen-DtGc3Chy.mjs → ErrorScreen-Gt5V4pQE.mjs} +1 -1
  158. package/dist/esm/{FarcasterConnectStatusScreen-DGeCyr6b.mjs → FarcasterConnectStatusScreen-CIOdHs1x.mjs} +1 -1
  159. package/dist/esm/{FarcasterSignerStatusScreen-DASa1xq2.mjs → FarcasterSignerStatusScreen-AvZdT50N.mjs} +1 -1
  160. package/dist/esm/{FundSolWalletWithExternalSolanaWallet-0jNi_hvn.mjs → FundSolWalletWithExternalSolanaWallet-Bd6oLp6j.mjs} +1 -1
  161. package/dist/esm/{FundWalletMethodHeader-Cfci4-83.mjs → FundWalletMethodHeader-DhUicNAG.mjs} +1 -1
  162. package/dist/esm/FundWithBankDepositScreen-Ct4tNUuQ.mjs +176 -0
  163. package/dist/esm/{FundingEditAmountScreen-vQUS-a80.mjs → FundingEditAmountScreen-DVXEtSrh.mjs} +1 -1
  164. package/dist/esm/{FundingMethodSelectionScreen-G8gkM1Mk.mjs → FundingMethodSelectionScreen-BmMfVAl1.mjs} +1 -1
  165. package/dist/esm/{InAppBrowserLoginNotPossible-C8mlSbYe.mjs → InAppBrowserLoginNotPossible-C9mhGZgZ.mjs} +1 -1
  166. package/dist/esm/{InstallWalletScreen-D0kdHc5W.mjs → InstallWalletScreen-D0Z6ZDpC.mjs} +1 -1
  167. package/dist/esm/{LandingScreen-0MlIkV3C.mjs → LandingScreen-J2lzt1oF.mjs} +1 -1
  168. package/dist/esm/{LinkConflictScreen-DW31R5fr.mjs → LinkConflictScreen-Bug434v0.mjs} +1 -1
  169. package/dist/esm/{LinkEmailScreen-B10iXGH8.mjs → LinkEmailScreen-B0OLiefL.mjs} +1 -1
  170. package/dist/esm/{LinkPasskeyScreen-OxaghvUl.mjs → LinkPasskeyScreen-D9SIq3bj.mjs} +1 -1
  171. package/dist/esm/{LinkPhoneScreen-Cdg3eg7w.mjs → LinkPhoneScreen-D__kO_fD.mjs} +1 -1
  172. package/dist/esm/{LoginFailedScreen-BVOo2ycm.mjs → LoginFailedScreen-qfmnt41u.mjs} +1 -1
  173. package/dist/esm/{ManualTransferScreen-_04Sq7zU.mjs → ManualTransferScreen-BFCyDGSu.mjs} +1 -1
  174. package/dist/esm/{MfaAuthEnrollmentFlowScreen-DApO6DPY.mjs → MfaAuthEnrollmentFlowScreen-D0w3-vdh.mjs} +1 -1
  175. package/dist/esm/{MfaAuthVerifyFlowScreen-mdmdgWdO.mjs → MfaAuthVerifyFlowScreen-CRYURiDv.mjs} +1 -1
  176. package/dist/esm/{MfaEnrollmentFlowScreen-DRZTnt-I.mjs → MfaEnrollmentFlowScreen-DdMNW5I5.mjs} +1 -1
  177. package/dist/esm/{MfaVerifyFlowScreen-mrf95cEs.mjs → MfaVerifyFlowScreen-Cp4spBFc.mjs} +1 -1
  178. package/dist/esm/{ModalHeader-D8-mhjp4.mjs → ModalHeader-o3NBflPS.mjs} +1 -1
  179. package/dist/esm/{MoonpayStatusScreen-DDSK5dda.mjs → MoonpayStatusScreen-DEh0wNk6.mjs} +1 -1
  180. package/dist/esm/{OAuthStatusScreen-DSAUQ_YN.mjs → OAuthStatusScreen-C7AX6T_8.mjs} +1 -1
  181. package/dist/esm/{PasskeySelectSignupOrLogin-G19VpAdI.mjs → PasskeySelectSignupOrLogin-rWeNAlAx.mjs} +1 -1
  182. package/dist/esm/{PasskeyStatusScreen-TD2nYAnk.mjs → PasskeyStatusScreen-B787hD8-.mjs} +1 -1
  183. package/dist/esm/{PasswordRecoveryScreen-C0oVVZYe.mjs → PasswordRecoveryScreen-Cg8bsXya.mjs} +1 -1
  184. package/dist/esm/{QrCode-C1tgJtOy.mjs → QrCode-rl0SJEeD.mjs} +1 -1
  185. package/dist/esm/{RecoveryOAuthStatusScreen-Ca9VYOrA.mjs → RecoveryOAuthStatusScreen-gxcHRbq0.mjs} +1 -1
  186. package/dist/esm/{RecoveryPasswordCreateScreen-Q1zuy9fu.mjs → RecoveryPasswordCreateScreen-BA_D-kAG.mjs} +1 -1
  187. package/dist/esm/{RecoverySelectionScreen-scmqFA8Y.mjs → RecoverySelectionScreen-CRGkO5yf.mjs} +1 -1
  188. package/dist/esm/{Screen-Bp-TN9gb.mjs → Screen-Olwu6khI.mjs} +1 -1
  189. package/dist/esm/{ScreenLayout-DTmQLGPf.mjs → ScreenLayout-C8IaXeHq.mjs} +1 -1
  190. package/dist/esm/{SetAutomaticRecoveryScreen-D-__1Pf7.mjs → SetAutomaticRecoveryScreen-DvKhJA06.mjs} +1 -1
  191. package/dist/esm/{SetWalletPasswordForm-0nuoz3XZ.mjs → SetWalletPasswordForm-J_hFHP-B.mjs} +1 -1
  192. package/dist/esm/{SignRequestScreen-D6HSUOxx.mjs → SignRequestScreen-CL1SQeYq.mjs} +1 -1
  193. package/dist/esm/{StandardSignAndSendTransactionScreen-YlstFfkB.mjs → StandardSignAndSendTransactionScreen-DJMqA41z.mjs} +1 -1
  194. package/dist/esm/{TelegramAuthScreen-DHCcieoC.mjs → TelegramAuthScreen-DpKMNMVv.mjs} +1 -1
  195. package/dist/esm/{TransactionDetails-BurRo8R0.mjs → TransactionDetails-D9-ndAu8.mjs} +1 -1
  196. package/dist/esm/{TransactionErrorView-CPFrt0L4.mjs → TransactionErrorView-yLqUT7Rl.mjs} +1 -1
  197. package/dist/esm/{TransferFromWalletScreen-BG5Mj5tz.mjs → TransferFromWalletScreen-5nMASUt-.mjs} +1 -1
  198. package/dist/esm/{TransferOrBridgeLoadingScreen-DcCdHB-g.mjs → TransferOrBridgeLoadingScreen-MqSi9Eb8.mjs} +1 -1
  199. package/dist/esm/{UpdateEmailScreen-ndRi1gY6.mjs → UpdateEmailScreen-Cu56W559.mjs} +1 -1
  200. package/dist/esm/{UpdatePhoneScreen-DoH__glA.mjs → UpdatePhoneScreen-55t_PLxV.mjs} +1 -1
  201. package/dist/esm/{UserLimitReachedScreen-BLzaOW7F.mjs → UserLimitReachedScreen-CizlxFDa.mjs} +1 -1
  202. package/dist/esm/{WalletInfoCard-DFt8ndGE.mjs → WalletInfoCard-CDrk5VVS.mjs} +1 -1
  203. package/dist/esm/{WalletInterstitialScreen-BQ-ku50j.mjs → WalletInterstitialScreen-C0EzB23i.mjs} +1 -1
  204. package/dist/esm/{WalletLink--05Hzo2b.mjs → WalletLink-CZavxRCS.mjs} +1 -1
  205. package/dist/esm/{WalletOverflowButton-BlijhJnI.mjs → WalletOverflowButton-CkCL3wvE.mjs} +1 -1
  206. package/dist/esm/abstract-smart-wallets.mjs +1 -1
  207. package/dist/esm/context-BeiVf64h.mjs +1 -0
  208. package/dist/esm/{ethers-D1WT71Ay.mjs → ethers-CJf4V9xJ.mjs} +1 -1
  209. package/dist/esm/extended-chains.mjs +1 -1
  210. package/dist/esm/{get-is-unified-wallet-Boa8DYrQ.mjs → get-is-unified-wallet-CyC08yWM.mjs} +1 -1
  211. package/dist/esm/index-BAl9y5La.mjs +174 -0
  212. package/dist/esm/{index-C9k7EfLZ.mjs → index-DCaoh7wM.mjs} +1 -1
  213. package/dist/esm/{index-BH9-XZRZ.mjs → index-M8HqoPUl.mjs} +1 -1
  214. package/dist/esm/index.mjs +1 -1
  215. package/dist/esm/internal.mjs +1 -1
  216. package/dist/esm/{shared-CwuyxHmv.mjs → shared-DWMbzbT_.mjs} +1 -1
  217. package/dist/esm/{shouldProceedtoEmbeddedWalletCreationFlow-BMF_3TVv.mjs → shouldProceedtoEmbeddedWalletCreationFlow-_LduuU-p.mjs} +1 -1
  218. package/dist/esm/{smart-wallets-DOAgnxKI.mjs → smart-wallets-69e9jC8u.mjs} +1 -1
  219. package/dist/esm/smart-wallets.mjs +1 -1
  220. package/dist/esm/solana.mjs +1 -1
  221. package/dist/esm/{styles-BmZHuqSX.mjs → styles-DOOmqCS1.mjs} +1 -1
  222. package/dist/esm/{to-ui-error-REESv0kM.mjs → to-ui-error-Crh1yzND.mjs} +1 -1
  223. package/dist/esm/ui.mjs +1 -1
  224. package/dist/esm/{use-export-wallet-CV4p7L0b.mjs → use-export-wallet-5ZtAXJqT.mjs} +1 -1
  225. package/dist/esm/{use-export-wallet-DQde4t0V.mjs → use-export-wallet-CmiZHDwY.mjs} +1 -1
  226. package/dist/esm/{useActiveWallet-3RHPIBxJ.mjs → useActiveWallet-CdOTNCcL.mjs} +1 -1
  227. package/dist/esm/{useGetTokenPrice-BPBpM07F.mjs → useGetTokenPrice-TFzNln4c.mjs} +1 -1
  228. package/dist/esm/{useI18n-BuIe8nUA.mjs → useI18n-MsO3QTRN.mjs} +1 -1
  229. package/dist/esm/{usePrivy-6nkpbErN.mjs → usePrivy-D6pEtdwq.mjs} +1 -1
  230. package/dist/esm/{useSolanaRpcClient-BUWOblv_.mjs → useSolanaRpcClient-Re4dIYnK.mjs} +1 -1
  231. package/dist/esm/{useWallets-C_dCo2_Q.mjs → useWallets-AiuOd29U.mjs} +1 -1
  232. package/dist/esm/{useWallets-CR0z5IIt.mjs → useWallets-BCEKqhGq.mjs} +1 -1
  233. package/package.json +6 -6
  234. package/dist/cjs/FundWithBankDepositScreen-D_qA2wCk.js +0 -176
  235. package/dist/cjs/index-C8lpxYDX.js +0 -174
  236. package/dist/esm/EmbeddedWalletCreatedScreen-Cj1c5KyP.mjs +0 -1
  237. package/dist/esm/FundWithBankDepositScreen-D_uu3GEF.mjs +0 -176
  238. package/dist/esm/context-WTldtXS8.mjs +0 -1
  239. package/dist/esm/index-BBRkihRn.mjs +0 -174
@@ -1 +1 @@
1
- "use strict";var e=require("@solana/kit"),t=require("react"),n=require("@privy-io/js-sdk-core"),i=require("./internal-context-BJv4f_bO.js"),s=require("./get-is-unified-wallet-UpdjHxOV.js"),a=require("./usePrivy-cfS6o4tX.js"),r=require("./useWallets-CKAypPZB.js"),o=require("eventemitter3"),l=require("@scure/base"),d=require("./context-D-ZJYjUg.js"),c=require("./use-sign-with-user-signer-Cu_6Bx7m.js"),u=require("./useSolanaRpcClient-PnNtmWdo.js"),g=require("./use-export-wallet-B5ujV5Nk.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=/*#__PURE__*/h(o);const y=["solana:mainnet","solana:devnet","solana:testnet"];function f(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var v=0,A="__private_"+v+++"__implementation";class w extends p.default{setImplementation(e){f(this,A)[A]=e}async signMessage(e){return f(this,A)[A].signMessage(e)}async signAndSendTransaction(e){return f(this,A)[A].signAndSendTransaction(e)}async signTransaction(e){return f(this,A)[A].signTransaction(e)}constructor(e){super(),Object.defineProperty(this,A,{writable:!0,value:void 0}),f(this,A)[A]=e}}function E(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var T=0;function b(e){return"__private_"+T+++"_"+e}var m=/*#__PURE__*/b("_address"),S=/*#__PURE__*/b("_publicKey"),P=/*#__PURE__*/b("_chains"),O=/*#__PURE__*/b("_features"),W=/*#__PURE__*/b("_label"),I=/*#__PURE__*/b("_icon");class C{get address(){return E(this,m)[m]}get publicKey(){return E(this,S)[S].slice()}get chains(){return E(this,P)[P].slice()}get features(){return E(this,O)[O].slice()}get label(){return E(this,W)[W]}get icon(){return E(this,I)[I]}constructor({address:e,publicKey:t,label:n,icon:i}){Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,W,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:void 0}),E(this,m)[m]=e,E(this,S)[S]=t,E(this,P)[P]=y,E(this,W)[W]=n,E(this,I)[I]=i,E(this,O)[O]=["solana:signAndSendTransaction","solana:signTransaction","solana:signMessage"],new.target===C&&Object.freeze(this)}}function _(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var M=0;function j(e){return"__private_"+M+++"_"+e}var F=/*#__PURE__*/j("_listeners"),U=/*#__PURE__*/j("_version"),D=/*#__PURE__*/j("_name"),N=/*#__PURE__*/j("_icon"),B=/*#__PURE__*/j("_injection"),x=/*#__PURE__*/j("_isPrivyWallet"),R=/*#__PURE__*/j("_accounts"),L=/*#__PURE__*/j("_on"),V=/*#__PURE__*/j("_emit"),q=/*#__PURE__*/j("_off"),Q=/*#__PURE__*/j("_connected"),H=/*#__PURE__*/j("_connect"),G=/*#__PURE__*/j("_disconnect"),K=/*#__PURE__*/j("_signMessage"),J=/*#__PURE__*/j("_signAndSendTransaction"),Y=/*#__PURE__*/j("_signTransaction");function k(e,...t){_(this,F)[F][e]?.forEach((e=>e.apply(null,t)))}function Z(e,t){_(this,F)[F][e]=_(this,F)[F][e]?.filter((e=>t!==e))}function z(t,n,i){let s=structuredClone(e.getTransactionDecoder().decode(t)),a=e.address(n);return a in s.signatures&&(s.signatures[a]=i),new Uint8Array(e.getTransactionEncoder().encode(s))}function X(){let{isHeadlessSigning:e,walletProxy:t,initializeWalletProxy:o,recoverEmbeddedWallet:l,openModal:d,privy:g,client:h}=i.usePrivyInternal(),{user:p}=a.usePrivy(),{setModalData:y}=s.usePrivyModal(),{signWithUserSigner:f}=c.useSignWithUserSigner();return{signMessage:({message:a,address:c,options:v})=>new Promise((async(A,w)=>{let E=s.getPrivyWalletWithAddress(p,c);if("privy"!==E?.walletClientType)return void w(new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:T,entropyIdVerifier:b}=r.getEntropyDetailsForUser(p,E),m=s.getIsUnifiedWallet(E),S=u.bufferFrom(a).toString("base64");if(S.length<1)return void w(new i.PrivyClientError("Message must be a non-empty string",void 0,i.PrivyErrorCode.INVALID_MESSAGE));let P=async()=>{let e;if(!p)throw Error("User must be authenticated before signing with a Privy wallet");let i=await h.getAccessToken();if(!i)throw Error("User must be authenticated to use their embedded wallet.");let s=t??await o(15e3);if(!s)throw Error("Failed to initialize embedded wallet proxy.");if(!await l({address:E.address}))throw Error("Unable to connect to wallet");if(m){let t=await n.rpc(g,f,{chain_type:"solana",method:"signMessage",params:{message:S,encoding:"base64"},wallet_id:E.id});if(!t.data||!("signature"in t.data))throw Error("Failed to sign message");e=t.data.signature}else{let{response:t}=await s.rpc({accessToken:i,entropyId:T,entropyIdVerifier:b,chainType:"solana",hdWalletIndex:E.walletIndex??0,requesterAppId:v?.uiOptions?.requesterAppId,request:{method:"signMessage",params:{message:S}}});e=t.data.signature}return e};if(e({showWalletUIs:v?.uiOptions?.showWalletUIs}))try{let e=await P(),t=new Uint8Array(u.bufferFrom(e,"base64"));A({signature:t})}catch(e){w(e)}else y({signMessage:{method:"solana_signMessage",data:S,confirmAndSign:P,onSuccess:e=>{A({signature:new Uint8Array(u.bufferFrom(e,"base64"))})},onFailure:e=>{w(e)},uiOptions:v?.uiOptions??{}},connectWallet:{recoveryMethod:E.recoveryMethod,connectingWalletAddress:E.address,entropyId:T,entropyIdVerifier:b,isUnifiedWallet:m,onCompleteNavigateTo:"SignRequestScreen",onFailure:e=>{w(new i.PrivyClientError("Failed to connect to wallet",e,i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR))}}}),d("EmbeddedWalletConnectingScreen")}))}}function $(){let{isHeadlessSigning:e,openModal:t}=i.usePrivyInternal(),{setModalData:n}=s.usePrivyModal(),{signMessage:o}=X(),{user:l}=a.usePrivy();return{signTransaction:async({transaction:a,options:d,chain:c="solana:mainnet",address:g})=>{async function h(e){let{signature:t}=await o({message:u.getTransactionMessageBytes(e),address:g,options:{...d,uiOptions:{...d?.uiOptions,showWalletUIs:!1}}});return{signedTransaction:z(e,g,t)}}return e({showWalletUIs:d?.uiOptions?.showWalletUIs})?h(a):new Promise((async(e,o)=>{let u=s.getPrivyWalletWithAddress(l,g);if("privy"!==u?.walletClientType)return void o(new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:p,entropyIdVerifier:y}=r.getEntropyDetailsForUser(l,u),f=s.getIsUnifiedWallet(u);function v(e){return t=>{t instanceof i.PrivyClientError?o(t):o(new i.PrivyClientError("Failed to connect to wallet",t,e))}}let A={account:u,transaction:a,chain:c,signOnly:!0,uiOptions:d?.uiOptions||{},onConfirm:h,onSuccess:e,onFailure:v(i.PrivyErrorCode.TRANSACTION_FAILURE)};n({connectWallet:{recoveryMethod:u.recoveryMethod,connectingWalletAddress:u.address,entropyId:p,entropyIdVerifier:y,isUnifiedWallet:f,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:v(i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR)},standardSignAndSendTransaction:A}),t("EmbeddedWalletConnectingScreen")}))}}}let ee=new w({signTransaction:i.notImplementedWithMessage("signTransaction was not injected"),signAndSendTransaction:i.notImplementedWithMessage("signAndSendTransaction was not injected"),signMessage:i.notImplementedWithMessage("signMessage was not injected")}),te=new class{get version(){return _(this,U)[U]}get name(){return _(this,D)[D]}get icon(){return _(this,N)[N]}get chains(){return y.slice()}get features(){return{"standard:connect":{version:"1.0.0",connect:_(this,H)[H]},"standard:disconnect":{version:"1.0.0",disconnect:_(this,G)[G]},"standard:events":{version:"1.0.0",on:_(this,L)[L]},"solana:signAndSendTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:_(this,J)[J]},"solana:signTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:_(this,Y)[Y]},"solana:signMessage":{version:"1.0.0",signMessage:_(this,K)[K]},"privy:":{privy:{signMessage:_(this,B)[B].signMessage,signTransaction:_(this,B)[B].signTransaction,signAndSendTransaction:_(this,B)[B].signAndSendTransaction}}}}get accounts(){return _(this,R)[R].slice()}get isPrivyWallet(){return _(this,x)[x]}constructor({name:e,icon:t,version:n,injection:i,wallets:s}){Object.defineProperty(this,V,{value:k}),Object.defineProperty(this,q,{value:Z}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,U,{writable:!0,value:void 0}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,B,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,L,{writable:!0,value:void 0}),Object.defineProperty(this,Q,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:void 0}),Object.defineProperty(this,K,{writable:!0,value:void 0}),Object.defineProperty(this,J,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:void 0}),_(this,F)[F]={},_(this,L)[L]=(e,t)=>(_(this,F)[F][e]?.push(t)||(_(this,F)[F][e]=[t]),()=>_(this,q)[q](e,t)),_(this,Q)[Q]=e=>{null!=e&&(_(this,R)[R]=e.map((({address:e})=>new C({address:e,publicKey:l.base58.decode(e)})))),_(this,V)[V]("change",{accounts:this.accounts})},_(this,H)[H]=async()=>(_(this,V)[V]("change",{accounts:this.accounts}),{accounts:this.accounts}),_(this,G)[G]=async()=>{_(this,V)[V]("change",{accounts:this.accounts})},_(this,K)[K]=async(...e)=>{let t=[];for(let{account:n,...i}of e){let{signature:e}=await _(this,B)[B].signMessage({...i,address:n.address});t.push({signedMessage:i.message,signature:e})}return t},_(this,J)[J]=async(...e)=>{let t=[];for(let n of e){let{signature:e}=await _(this,B)[B].signAndSendTransaction({...n,transaction:n.transaction,address:n.account.address,chain:n.chain||"solana:mainnet",options:n.options});t.push({signature:e})}return t},_(this,Y)[Y]=async(...e)=>{let t=[];for(let{transaction:n,account:i,options:s,chain:a}of e){let{signedTransaction:e}=await _(this,B)[B].signTransaction({transaction:n,address:i.address,chain:a||"solana:mainnet",options:s});t.push({signedTransaction:e})}return t},_(this,D)[D]=e,_(this,N)[N]=t,_(this,U)[U]=n,_(this,B)[B]=i,_(this,R)[R]=[],_(this,x)[x]=!0,i.on("accountChanged",_(this,Q)[Q],this),_(this,Q)[Q](s)}}({name:"Privy",version:"1.0.0",icon:"data:image/png;base64,AAABAAEAFBQAAAAAIABlAQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAUAAAAFAgGAAAAjYkdDQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAQVJREFUeJxiYMANZIC4E4ivAPFPIP4FxDeAuB+IlfDowwBMQFwJxF+B+D8O/AOI66Bq8QJGIF6ExyB0vAqImfEZmEeCYTDcgMswPiB+T4aB34FYApuBsWQYBsP52AycToGBK7EZuJECAw9jM3AVBQbuwWZgIwUGTsZmoDkFBnpiMxAEjpJh2FV8iVsbiD+TYBgoDVrgMgwGnID4HRGGgTKBGyHDYEAaiBdCSxh0g/5AU4Q8sYYhAzEgjoGmABBOgFo2eACowFABYn0oVgViAVINkQTiZUD8DIj/ATF6GILEXgLxCiCWIsZAbiAuBeKtQHwHiEHJ6C8UfwHie0C8E4jLoWpRAAAAAP//rcbhsQAAAAZJREFUAwBYFs3VKJ0cuQAAAABJRU5ErkJggg==",wallets:[],injection:ee});function ne(){let{ready:e}=r.useWallets(),{user:o}=a.usePrivy(),{signMessage:h}=X(),{signTransaction:p}=$(),{signAndSendTransaction:y}=function(){let e=d.useAppConfig(),{isHeadlessSigning:t,openModal:o,privy:h}=i.usePrivyInternal(),{setModalData:p}=s.usePrivyModal(),{signTransaction:y}=$(),f=u.useSolanaRpcClient(),{user:v}=a.usePrivy(),{signWithUserSigner:A}=c.useSignWithUserSigner();return{signAndSendTransaction:async({transaction:a,address:d,chain:c="solana:mainnet",options:w})=>{let E=s.getPrivyWalletWithAddress(v,d);if("privy"!==E?.walletClientType)throw new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND);let T=s.getIsUnifiedWallet(E);async function b(e){if(w?.sponsor)return await(async e=>{if(!T)throw new i.PrivyClientError("Sponsoring transactions is only supported for wallets on the TEE stack",i.PrivyErrorCode.INVALID_DATA);let t=await n.rpc(h,A,{chain_type:"solana",method:"signAndSendTransaction",sponsor:!0,params:{transaction:u.bufferFrom(e).toString("base64"),encoding:"base64"},caip2:`solana:${(await f(c).rpc.getGenesisHash().send()).substring(0,32)}`,wallet_id:E.id});if(t.data&&"hash"in t.data)return{signature:l.base58.decode(t.data.hash)};throw Error("Failed to sign and send transaction")})(e);let{signedTransaction:t}=await y({transaction:e,address:d,chain:c,options:{...w,uiOptions:{...w?.uiOptions,showWalletUIs:!1}}}),{signature:s}=await f(c).sendAndConfirmTransaction(t);return{signature:s}}return t({showWalletUIs:w?.uiOptions?.showWalletUIs})?b(a):new Promise((async(t,n)=>{let s,l,{entropyId:u,entropyIdVerifier:h}=r.getEntropyDetailsForUser(v,E);function y(e){return t=>{t instanceof i.PrivyClientError?n(t):n(new i.PrivyClientError("Failed to connect to wallet",t,e))}}let f={account:E,transaction:a,chain:c,signOnly:!1,uiOptions:w?.uiOptions||{},onConfirm:b,onSuccess:t,onFailure:y(i.PrivyErrorCode.TRANSACTION_FAILURE),isSponsored:!!w?.sponsor},A={recoveryMethod:E.recoveryMethod,connectingWalletAddress:E.address,entropyId:u,entropyIdVerifier:h,isUnifiedWallet:T,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:y(i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR)};e.fundingConfig&&(s=g.prepareSolanaFundingModalData({address:d,appConfig:e,methodScreen:"FundingMethodSelectionScreen",fundWalletConfig:{...w,asset:"native-currency",chain:c},externalSolanaFundingScreen:"FundSolWalletWithExternalSolanaWallet"}),l={amount:e.fundingConfig.defaultRecommendedAmount,asset:"SOL",chain:c,destinationAddress:d,afterSuccessScreen:"StandardSignAndSendTransactionScreen",sourceWalletData:void 0}),p({connectWallet:A,standardSignAndSendTransaction:f,funding:s,solanaFundingData:l}),o("EmbeddedWalletConnectingScreen")}))}}}(),f=t.useMemo((()=>{let e=[...s.getPrivySolanaHDWallets(o).sort(((e,t)=>(e.walletIndex??0)-(t.walletIndex??0)))],t=s.getImportedPrivySolanaWallets(o);return t.length?[...e,...t]:e}),[o]),v=t.useMemo((()=>({signMessage:async({message:e,address:t,options:n})=>await h({message:e,address:t,options:n}),signTransaction:async({transaction:e,address:t,chain:n,options:i})=>await p({transaction:e,address:t,chain:n,options:i}),async signAndSendTransaction({transaction:e,address:t,chain:n,options:i}){let{signature:s}=await y({transaction:e,address:t,chain:n,options:i});return{signature:s}}})),[h,p,y]);return t.useEffect((()=>{ee?.setImplementation(v)}),[v]),t.useEffect((()=>{var t;!e||(t=te.accounts).length===f.length&&t.every(((e,t)=>e.address===f[t]?.address))||ee?.emit("accountChanged",f)}),[e,f]),{ready:e,wallet:te}}function ie(){let{client:e}=i.usePrivyInternal(),{ready:n,wallet:s}=ne(),[a,r]=t.useState([]),[o,l]=t.useState([]);return t.useEffect((()=>{let e=[s,...a.filter((e=>"solana"===e.chainType&&!!e.wallet.features)).map((e=>e.wallet))];l(e);let t=a.flatMap((t=>{let n=()=>l([...e]);return t.on("walletsUpdated",n),{connector:t,off:n}})),n=e.map((t=>t.features["standard:events"]?.on("change",(()=>{l([...e])}))));return()=>{n.forEach((e=>e?.())),t.forEach((({connector:e,off:t})=>e.off("walletsUpdated",t)))}}),[a]),t.useEffect((()=>{r(e.connectors?.walletConnectors.filter((e=>"solana"===e.chainType))??[]);let t=()=>{r(e.connectors?.walletConnectors.filter((e=>"solana"===e.chainType))??[])};return e.connectors?.on("connectorInitialized",t),()=>{e.connectors?.off("connectorInitialized",t)}}),[n,e.connectors]),{ready:n,wallets:o}}exports.SOLANA_CHAINS=y,exports.getAddressFromBuffer=function(t){return e.getBase58Decoder().decode(t)},exports.useSolanaStandardWallets=ie,exports.useWallets=function(){let{ready:e,wallets:i}=ie();return{ready:e,wallets:t.useMemo((()=>i.flatMap((e=>e.accounts.map((t=>new n.ConnectedStandardSolanaWallet({wallet:e,account:t})))))),[i])}};
1
+ "use strict";var e=require("@solana/kit"),t=require("react"),n=require("@privy-io/js-sdk-core"),i=require("./internal-context-BJv4f_bO.js"),s=require("./get-is-unified-wallet-BLVPD3_u.js"),a=require("./usePrivy-DhBaXRgr.js"),r=require("./useWallets-BTiaq6pw.js"),o=require("eventemitter3"),l=require("@scure/base"),d=require("./context-DuuxPOa_.js"),c=require("./use-sign-with-user-signer-Cu_6Bx7m.js"),u=require("./useSolanaRpcClient-ugDx2qoe.js"),g=require("./use-export-wallet-CTQ2_-Js.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=/*#__PURE__*/h(o);const y=["solana:mainnet","solana:devnet","solana:testnet"];function f(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var v=0,A="__private_"+v+++"__implementation";class w extends p.default{setImplementation(e){f(this,A)[A]=e}async signMessage(e){return f(this,A)[A].signMessage(e)}async signAndSendTransaction(e){return f(this,A)[A].signAndSendTransaction(e)}async signTransaction(e){return f(this,A)[A].signTransaction(e)}constructor(e){super(),Object.defineProperty(this,A,{writable:!0,value:void 0}),f(this,A)[A]=e}}function E(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var T=0;function b(e){return"__private_"+T+++"_"+e}var m=/*#__PURE__*/b("_address"),S=/*#__PURE__*/b("_publicKey"),P=/*#__PURE__*/b("_chains"),O=/*#__PURE__*/b("_features"),W=/*#__PURE__*/b("_label"),I=/*#__PURE__*/b("_icon");class C{get address(){return E(this,m)[m]}get publicKey(){return E(this,S)[S].slice()}get chains(){return E(this,P)[P].slice()}get features(){return E(this,O)[O].slice()}get label(){return E(this,W)[W]}get icon(){return E(this,I)[I]}constructor({address:e,publicKey:t,label:n,icon:i}){Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,W,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:void 0}),E(this,m)[m]=e,E(this,S)[S]=t,E(this,P)[P]=y,E(this,W)[W]=n,E(this,I)[I]=i,E(this,O)[O]=["solana:signAndSendTransaction","solana:signTransaction","solana:signMessage"],new.target===C&&Object.freeze(this)}}function _(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var M=0;function j(e){return"__private_"+M+++"_"+e}var F=/*#__PURE__*/j("_listeners"),U=/*#__PURE__*/j("_version"),D=/*#__PURE__*/j("_name"),N=/*#__PURE__*/j("_icon"),B=/*#__PURE__*/j("_injection"),x=/*#__PURE__*/j("_isPrivyWallet"),R=/*#__PURE__*/j("_accounts"),L=/*#__PURE__*/j("_on"),V=/*#__PURE__*/j("_emit"),q=/*#__PURE__*/j("_off"),Q=/*#__PURE__*/j("_connected"),H=/*#__PURE__*/j("_connect"),G=/*#__PURE__*/j("_disconnect"),K=/*#__PURE__*/j("_signMessage"),J=/*#__PURE__*/j("_signAndSendTransaction"),Y=/*#__PURE__*/j("_signTransaction");function k(e,...t){_(this,F)[F][e]?.forEach((e=>e.apply(null,t)))}function Z(e,t){_(this,F)[F][e]=_(this,F)[F][e]?.filter((e=>t!==e))}function z(t,n,i){let s=structuredClone(e.getTransactionDecoder().decode(t)),a=e.address(n);return a in s.signatures&&(s.signatures[a]=i),new Uint8Array(e.getTransactionEncoder().encode(s))}function X(){let{isHeadlessSigning:e,walletProxy:t,initializeWalletProxy:o,recoverEmbeddedWallet:l,openModal:d,privy:g,client:h}=i.usePrivyInternal(),{user:p}=a.usePrivy(),{setModalData:y}=s.usePrivyModal(),{signWithUserSigner:f}=c.useSignWithUserSigner();return{signMessage:({message:a,address:c,options:v})=>new Promise((async(A,w)=>{let E=s.getPrivyWalletWithAddress(p,c);if("privy"!==E?.walletClientType)return void w(new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:T,entropyIdVerifier:b}=r.getEntropyDetailsForUser(p,E),m=s.getIsUnifiedWallet(E),S=u.bufferFrom(a).toString("base64");if(S.length<1)return void w(new i.PrivyClientError("Message must be a non-empty string",void 0,i.PrivyErrorCode.INVALID_MESSAGE));let P=async()=>{let e;if(!p)throw Error("User must be authenticated before signing with a Privy wallet");let i=await h.getAccessToken();if(!i)throw Error("User must be authenticated to use their embedded wallet.");let s=t??await o(15e3);if(!s)throw Error("Failed to initialize embedded wallet proxy.");if(!await l({address:E.address}))throw Error("Unable to connect to wallet");if(m){let t=await n.rpc(g,f,{chain_type:"solana",method:"signMessage",params:{message:S,encoding:"base64"},wallet_id:E.id});if(!t.data||!("signature"in t.data))throw Error("Failed to sign message");e=t.data.signature}else{let{response:t}=await s.rpc({accessToken:i,entropyId:T,entropyIdVerifier:b,chainType:"solana",hdWalletIndex:E.walletIndex??0,requesterAppId:v?.uiOptions?.requesterAppId,request:{method:"signMessage",params:{message:S}}});e=t.data.signature}return e};if(e({showWalletUIs:v?.uiOptions?.showWalletUIs}))try{let e=await P(),t=new Uint8Array(u.bufferFrom(e,"base64"));A({signature:t})}catch(e){w(e)}else y({signMessage:{method:"solana_signMessage",data:S,confirmAndSign:P,onSuccess:e=>{A({signature:new Uint8Array(u.bufferFrom(e,"base64"))})},onFailure:e=>{w(e)},uiOptions:v?.uiOptions??{}},connectWallet:{recoveryMethod:E.recoveryMethod,connectingWalletAddress:E.address,entropyId:T,entropyIdVerifier:b,isUnifiedWallet:m,onCompleteNavigateTo:"SignRequestScreen",onFailure:e=>{w(new i.PrivyClientError("Failed to connect to wallet",e,i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR))}}}),d("EmbeddedWalletConnectingScreen")}))}}function $(){let{isHeadlessSigning:e,openModal:t}=i.usePrivyInternal(),{setModalData:n}=s.usePrivyModal(),{signMessage:o}=X(),{user:l}=a.usePrivy();return{signTransaction:async({transaction:a,options:d,chain:c="solana:mainnet",address:g})=>{async function h(e){let{signature:t}=await o({message:u.getTransactionMessageBytes(e),address:g,options:{...d,uiOptions:{...d?.uiOptions,showWalletUIs:!1}}});return{signedTransaction:z(e,g,t)}}return e({showWalletUIs:d?.uiOptions?.showWalletUIs})?h(a):new Promise((async(e,o)=>{let u=s.getPrivyWalletWithAddress(l,g);if("privy"!==u?.walletClientType)return void o(new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:p,entropyIdVerifier:y}=r.getEntropyDetailsForUser(l,u),f=s.getIsUnifiedWallet(u);function v(e){return t=>{t instanceof i.PrivyClientError?o(t):o(new i.PrivyClientError("Failed to connect to wallet",t,e))}}let A={account:u,transaction:a,chain:c,signOnly:!0,uiOptions:d?.uiOptions||{},onConfirm:h,onSuccess:e,onFailure:v(i.PrivyErrorCode.TRANSACTION_FAILURE)};n({connectWallet:{recoveryMethod:u.recoveryMethod,connectingWalletAddress:u.address,entropyId:p,entropyIdVerifier:y,isUnifiedWallet:f,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:v(i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR)},standardSignAndSendTransaction:A}),t("EmbeddedWalletConnectingScreen")}))}}}let ee=new w({signTransaction:i.notImplementedWithMessage("signTransaction was not injected"),signAndSendTransaction:i.notImplementedWithMessage("signAndSendTransaction was not injected"),signMessage:i.notImplementedWithMessage("signMessage was not injected")}),te=new class{get version(){return _(this,U)[U]}get name(){return _(this,D)[D]}get icon(){return _(this,N)[N]}get chains(){return y.slice()}get features(){return{"standard:connect":{version:"1.0.0",connect:_(this,H)[H]},"standard:disconnect":{version:"1.0.0",disconnect:_(this,G)[G]},"standard:events":{version:"1.0.0",on:_(this,L)[L]},"solana:signAndSendTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:_(this,J)[J]},"solana:signTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:_(this,Y)[Y]},"solana:signMessage":{version:"1.0.0",signMessage:_(this,K)[K]},"privy:":{privy:{signMessage:_(this,B)[B].signMessage,signTransaction:_(this,B)[B].signTransaction,signAndSendTransaction:_(this,B)[B].signAndSendTransaction}}}}get accounts(){return _(this,R)[R].slice()}get isPrivyWallet(){return _(this,x)[x]}constructor({name:e,icon:t,version:n,injection:i,wallets:s}){Object.defineProperty(this,V,{value:k}),Object.defineProperty(this,q,{value:Z}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,U,{writable:!0,value:void 0}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,B,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,L,{writable:!0,value:void 0}),Object.defineProperty(this,Q,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:void 0}),Object.defineProperty(this,K,{writable:!0,value:void 0}),Object.defineProperty(this,J,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:void 0}),_(this,F)[F]={},_(this,L)[L]=(e,t)=>(_(this,F)[F][e]?.push(t)||(_(this,F)[F][e]=[t]),()=>_(this,q)[q](e,t)),_(this,Q)[Q]=e=>{null!=e&&(_(this,R)[R]=e.map((({address:e})=>new C({address:e,publicKey:l.base58.decode(e)})))),_(this,V)[V]("change",{accounts:this.accounts})},_(this,H)[H]=async()=>(_(this,V)[V]("change",{accounts:this.accounts}),{accounts:this.accounts}),_(this,G)[G]=async()=>{_(this,V)[V]("change",{accounts:this.accounts})},_(this,K)[K]=async(...e)=>{let t=[];for(let{account:n,...i}of e){let{signature:e}=await _(this,B)[B].signMessage({...i,address:n.address});t.push({signedMessage:i.message,signature:e})}return t},_(this,J)[J]=async(...e)=>{let t=[];for(let n of e){let{signature:e}=await _(this,B)[B].signAndSendTransaction({...n,transaction:n.transaction,address:n.account.address,chain:n.chain||"solana:mainnet",options:n.options});t.push({signature:e})}return t},_(this,Y)[Y]=async(...e)=>{let t=[];for(let{transaction:n,account:i,options:s,chain:a}of e){let{signedTransaction:e}=await _(this,B)[B].signTransaction({transaction:n,address:i.address,chain:a||"solana:mainnet",options:s});t.push({signedTransaction:e})}return t},_(this,D)[D]=e,_(this,N)[N]=t,_(this,U)[U]=n,_(this,B)[B]=i,_(this,R)[R]=[],_(this,x)[x]=!0,i.on("accountChanged",_(this,Q)[Q],this),_(this,Q)[Q](s)}}({name:"Privy",version:"1.0.0",icon:"data:image/png;base64,AAABAAEAFBQAAAAAIABlAQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAUAAAAFAgGAAAAjYkdDQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAQVJREFUeJxiYMANZIC4E4ivAPFPIP4FxDeAuB+IlfDowwBMQFwJxF+B+D8O/AOI66Bq8QJGIF6ExyB0vAqImfEZmEeCYTDcgMswPiB+T4aB34FYApuBsWQYBsP52AycToGBK7EZuJECAw9jM3AVBQbuwWZgIwUGTsZmoDkFBnpiMxAEjpJh2FV8iVsbiD+TYBgoDVrgMgwGnID4HRGGgTKBGyHDYEAaiBdCSxh0g/5AU4Q8sYYhAzEgjoGmABBOgFo2eACowFABYn0oVgViAVINkQTiZUD8DIj/ATF6GILEXgLxCiCWIsZAbiAuBeKtQHwHiEHJ6C8UfwHie0C8E4jLoWpRAAAAAP//rcbhsQAAAAZJREFUAwBYFs3VKJ0cuQAAAABJRU5ErkJggg==",wallets:[],injection:ee});function ne(){let{ready:e}=r.useWallets(),{user:o}=a.usePrivy(),{signMessage:h}=X(),{signTransaction:p}=$(),{signAndSendTransaction:y}=function(){let e=d.useAppConfig(),{isHeadlessSigning:t,openModal:o,privy:h}=i.usePrivyInternal(),{setModalData:p}=s.usePrivyModal(),{signTransaction:y}=$(),f=u.useSolanaRpcClient(),{user:v}=a.usePrivy(),{signWithUserSigner:A}=c.useSignWithUserSigner();return{signAndSendTransaction:async({transaction:a,address:d,chain:c="solana:mainnet",options:w})=>{let E=s.getPrivyWalletWithAddress(v,d);if("privy"!==E?.walletClientType)throw new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND);let T=s.getIsUnifiedWallet(E);async function b(e){if(w?.sponsor)return await(async e=>{if(!T)throw new i.PrivyClientError("Sponsoring transactions is only supported for wallets on the TEE stack",i.PrivyErrorCode.INVALID_DATA);let t=await n.rpc(h,A,{chain_type:"solana",method:"signAndSendTransaction",sponsor:!0,params:{transaction:u.bufferFrom(e).toString("base64"),encoding:"base64"},caip2:`solana:${(await f(c).rpc.getGenesisHash().send()).substring(0,32)}`,wallet_id:E.id});if(t.data&&"hash"in t.data)return{signature:l.base58.decode(t.data.hash)};throw Error("Failed to sign and send transaction")})(e);let{signedTransaction:t}=await y({transaction:e,address:d,chain:c,options:{...w,uiOptions:{...w?.uiOptions,showWalletUIs:!1}}}),{signature:s}=await f(c).sendAndConfirmTransaction(t);return{signature:s}}return t({showWalletUIs:w?.uiOptions?.showWalletUIs})?b(a):new Promise((async(t,n)=>{let s,l,{entropyId:u,entropyIdVerifier:h}=r.getEntropyDetailsForUser(v,E);function y(e){return t=>{t instanceof i.PrivyClientError?n(t):n(new i.PrivyClientError("Failed to connect to wallet",t,e))}}let f={account:E,transaction:a,chain:c,signOnly:!1,uiOptions:w?.uiOptions||{},onConfirm:b,onSuccess:t,onFailure:y(i.PrivyErrorCode.TRANSACTION_FAILURE),isSponsored:!!w?.sponsor},A={recoveryMethod:E.recoveryMethod,connectingWalletAddress:E.address,entropyId:u,entropyIdVerifier:h,isUnifiedWallet:T,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:y(i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR)};e.fundingConfig&&(s=g.prepareSolanaFundingModalData({address:d,appConfig:e,methodScreen:"FundingMethodSelectionScreen",fundWalletConfig:{...w,asset:"native-currency",chain:c},externalSolanaFundingScreen:"FundSolWalletWithExternalSolanaWallet"}),l={amount:e.fundingConfig.defaultRecommendedAmount,asset:"SOL",chain:c,destinationAddress:d,afterSuccessScreen:"StandardSignAndSendTransactionScreen",sourceWalletData:void 0}),p({connectWallet:A,standardSignAndSendTransaction:f,funding:s,solanaFundingData:l}),o("EmbeddedWalletConnectingScreen")}))}}}(),f=t.useMemo((()=>{let e=[...s.getPrivySolanaHDWallets(o).sort(((e,t)=>(e.walletIndex??0)-(t.walletIndex??0)))],t=s.getImportedPrivySolanaWallets(o);return t.length?[...e,...t]:e}),[o]),v=t.useMemo((()=>({signMessage:async({message:e,address:t,options:n})=>await h({message:e,address:t,options:n}),signTransaction:async({transaction:e,address:t,chain:n,options:i})=>await p({transaction:e,address:t,chain:n,options:i}),async signAndSendTransaction({transaction:e,address:t,chain:n,options:i}){let{signature:s}=await y({transaction:e,address:t,chain:n,options:i});return{signature:s}}})),[h,p,y]);return t.useEffect((()=>{ee?.setImplementation(v)}),[v]),t.useEffect((()=>{var t;!e||(t=te.accounts).length===f.length&&t.every(((e,t)=>e.address===f[t]?.address))||ee?.emit("accountChanged",f)}),[e,f]),{ready:e,wallet:te}}function ie(){let{client:e}=i.usePrivyInternal(),{ready:n,wallet:s}=ne(),[a,r]=t.useState([]),[o,l]=t.useState([]);return t.useEffect((()=>{let e=[s,...a.filter((e=>"solana"===e.chainType&&!!e.wallet.features)).map((e=>e.wallet))];l(e);let t=a.flatMap((t=>{let n=()=>l([...e]);return t.on("walletsUpdated",n),{connector:t,off:n}})),n=e.map((t=>t.features["standard:events"]?.on("change",(()=>{l([...e])}))));return()=>{n.forEach((e=>e?.())),t.forEach((({connector:e,off:t})=>e.off("walletsUpdated",t)))}}),[a]),t.useEffect((()=>{r(e.connectors?.walletConnectors.filter((e=>"solana"===e.chainType))??[]);let t=()=>{r(e.connectors?.walletConnectors.filter((e=>"solana"===e.chainType))??[])};return e.connectors?.on("connectorInitialized",t),()=>{e.connectors?.off("connectorInitialized",t)}}),[n,e.connectors]),{ready:n,wallets:o}}exports.SOLANA_CHAINS=y,exports.getAddressFromBuffer=function(t){return e.getBase58Decoder().decode(t)},exports.useSolanaStandardWallets=ie,exports.useWallets=function(){let{ready:e,wallets:i}=ie();return{ready:e,wallets:t.useMemo((()=>i.flatMap((e=>e.accounts.map((t=>new n.ConnectedStandardSolanaWallet({wallet:e,account:t})))))),[i])}};
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '@privy-io/js-sdk-core';
2
- import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-CIvz-X6P.js';
2
+ import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-CDJGb3Hz.js';
3
3
 
4
4
  /**
5
5
  * `CallbackError` optionally includes a second parameter with further error details.
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '@privy-io/js-sdk-core';
2
- import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-CIvz-X6P.js';
2
+ import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-CDJGb3Hz.js';
3
3
 
4
4
  /**
5
5
  * `CallbackError` optionally includes a second parameter with further error details.
@@ -1,5 +1,5 @@
1
1
  import { CurveSigningChainType, Wallet } from '@privy-io/api-types';
2
- import { U as User } from './types-CIvz-X6P.js';
2
+ import { U as User } from './types-CDJGb3Hz.js';
3
3
  import '@coinbase/wallet-sdk';
4
4
  import '@simplewebauthn/browser';
5
5
  import '@solana/kit';
@@ -1,5 +1,5 @@
1
1
  import { CurveSigningChainType, Wallet } from '@privy-io/api-types';
2
- import { U as User } from './types-CIvz-X6P.js';
2
+ import { U as User } from './types-CDJGb3Hz.js';
3
3
  import '@coinbase/wallet-sdk';
4
4
  import '@simplewebauthn/browser';
5
5
  import '@solana/kit';
@@ -1,4 +1,4 @@
1
- import { d as LoginToMiniApp, U as User } from './types-CIvz-X6P.js';
1
+ import { d as LoginToMiniApp, U as User } from './types-CDJGb3Hz.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,4 +1,4 @@
1
- import { d as LoginToMiniApp, U as User } from './types-CIvz-X6P.js';
1
+ import { d as LoginToMiniApp, U as User } from './types-CDJGb3Hz.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,5 +1,5 @@
1
- import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundWithBankDepositScreenOpts, a9 as FundingResult, aa as BaseAccountSdkType, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ad as SignerInput, ae as TelegramAuthFlowState } from './types-CIvz-X6P.js';
2
- export { ax as Apple, aK as AppleOAuthWithMetadata, aS as ContractUIOptions, aB as CrossAppAccount, aN as CrossAppAccountWithMetadata, au as Discord, aF as DiscordOAuthWithMetadata, aP as Email, ap as EmailWithMetadata, aW as Farcaster, aL as FarcasterWithMetadata, aT as FundingStatus, av as Github, aG as GithubOAuthWithMetadata, as as Google, aD as GoogleOAuthWithMetadata, az as Line, aI as LineOAuthWithMetadata, aC as LinkedAccountType, aw as LinkedIn, aJ as LinkedInOAuthWithMetadata, aY as LoginMethodOrderOption, ah as MessageTypes, aj as MoonpayCurrencyCode, ak as MoonpayPaymentMethod, aU as NativeFundingConfig, ao as NonEmptyArray, aX as Passkey, aO as PasskeyWithMetadata, aQ as Phone, aq as PhoneWithMetadata, aV as PriceDisplayOptions, P as PrivyErrorCode, a_ as PrivyI18nStrings, al as Quantity, aZ as SiwsFlowState, ai as SmartWallet, aA as Telegram, aM as TelegramWithMetadata, ay as Tiktok, aH as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aR as TransactionUIOptions, at as Twitter, aE as TwitterOAuthWithMetadata, ag as TypedMessage, ar as WalletWithMetadata, af as createCrossTabUserSyncPlugin, a$ as dataSuffix } from './types-CIvz-X6P.js';
1
+ import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as SignerInput, ad as TelegramAuthFlowState } from './types-CDJGb3Hz.js';
2
+ export { aw as Apple, aJ as AppleOAuthWithMetadata, aR as ContractUIOptions, aA as CrossAppAccount, aM as CrossAppAccountWithMetadata, at as Discord, aE as DiscordOAuthWithMetadata, aO as Email, ao as EmailWithMetadata, aV as Farcaster, aK as FarcasterWithMetadata, aS as FundingStatus, au as Github, aF as GithubOAuthWithMetadata, ar as Google, aC as GoogleOAuthWithMetadata, ay as Line, aH as LineOAuthWithMetadata, aB as LinkedAccountType, av as LinkedIn, aI as LinkedInOAuthWithMetadata, aX as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayCurrencyCode, aj as MoonpayPaymentMethod, aT as NativeFundingConfig, an as NonEmptyArray, aW as Passkey, aN as PasskeyWithMetadata, aP as Phone, ap as PhoneWithMetadata, aU as PriceDisplayOptions, P as PrivyErrorCode, aZ as PrivyI18nStrings, ak as Quantity, aY as SiwsFlowState, ah as SmartWallet, az as Telegram, aL as TelegramWithMetadata, ax as Tiktok, aG as TiktokOAuthWithMetadata, al as TransactionLog, am as TransactionReceipt, aQ as TransactionUIOptions, as as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, aq as WalletWithMetadata, ae as createCrossTabUserSyncPlugin, a_ as dataSuffix } from './types-CDJGb3Hz.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { TurnstileProps } from '@marsidev/react-turnstile';
5
5
  import EventEmitter from 'eventemitter3';
@@ -15,8 +15,8 @@ import { MouseEvent } from 'react';
15
15
  import * as _simplewebauthn_browser from '@simplewebauthn/browser';
16
16
  import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/browser';
17
17
  import { FetchOptions } from 'ofetch';
18
- import { P as PrivyEvents } from './events-context-Bz1yk0zU.js';
19
- export { C as CallbackError } from './events-context-Bz1yk0zU.js';
18
+ import { P as PrivyEvents } from './events-context-rAo2eQMj.js';
19
+ export { C as CallbackError } from './events-context-rAo2eQMj.js';
20
20
  import { PaymentRequirementsSelector } from 'x402/client';
21
21
  import { X402Config } from 'x402/types';
22
22
  import * as viem_accounts from 'viem/accounts';
@@ -10316,7 +10316,48 @@ declare function useCreateWallet(callbacks?: PrivyEvents['createWallet']): {
10316
10316
  createWallet: (options?: CreateWalletOptions | react.MouseEvent<any, any>) => Promise<Wallet>;
10317
10317
  };
10318
10318
 
10319
- type UseFundWalletWithBankDepositOptions = FundWithBankDepositScreenOpts;
10319
+ type UseFundWalletWithBankDepositOptions = {
10320
+ /**
10321
+ * Configuration for the supported source assets
10322
+ */
10323
+ source: {
10324
+ /**
10325
+ * FIAT lowercase (e.g. usd or eur).
10326
+ */
10327
+ assets: ('usd' | 'eur' | 'mxn' | 'brl' | 'gbp')[];
10328
+ /**
10329
+ * The default selected source asset.
10330
+ */
10331
+ defaultAsset?: 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
10332
+ /**
10333
+ * @deprecated
10334
+ *
10335
+ * Unused legacy field, will be removed in a future release
10336
+ */
10337
+ selectedAsset?: any;
10338
+ };
10339
+ /**
10340
+ * Configuration for the desired destination asset and wallet
10341
+ */
10342
+ destination: {
10343
+ /**
10344
+ * Token symbol lowercase (e.g. usdc)
10345
+ */
10346
+ asset: 'usdc';
10347
+ /**
10348
+ * CAIP2 (e.g. eip155:1 or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1)
10349
+ */
10350
+ chain: `${string}:${string}`;
10351
+ /**
10352
+ * The address of the wallet to fund
10353
+ */
10354
+ address: string;
10355
+ };
10356
+ /**
10357
+ * The funding provider
10358
+ */
10359
+ provider: 'bridge' | 'bridge-sandbox';
10360
+ };
10320
10361
  type UseFundWalletWithBankDepositResult = {
10321
10362
  /**
10322
10363
  * Opens the Privy modal and initiates the Bank transfer flow.
@@ -1,5 +1,5 @@
1
- import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundWithBankDepositScreenOpts, a9 as FundingResult, aa as BaseAccountSdkType, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ad as SignerInput, ae as TelegramAuthFlowState } from './types-CIvz-X6P.js';
2
- export { ax as Apple, aK as AppleOAuthWithMetadata, aS as ContractUIOptions, aB as CrossAppAccount, aN as CrossAppAccountWithMetadata, au as Discord, aF as DiscordOAuthWithMetadata, aP as Email, ap as EmailWithMetadata, aW as Farcaster, aL as FarcasterWithMetadata, aT as FundingStatus, av as Github, aG as GithubOAuthWithMetadata, as as Google, aD as GoogleOAuthWithMetadata, az as Line, aI as LineOAuthWithMetadata, aC as LinkedAccountType, aw as LinkedIn, aJ as LinkedInOAuthWithMetadata, aY as LoginMethodOrderOption, ah as MessageTypes, aj as MoonpayCurrencyCode, ak as MoonpayPaymentMethod, aU as NativeFundingConfig, ao as NonEmptyArray, aX as Passkey, aO as PasskeyWithMetadata, aQ as Phone, aq as PhoneWithMetadata, aV as PriceDisplayOptions, P as PrivyErrorCode, a_ as PrivyI18nStrings, al as Quantity, aZ as SiwsFlowState, ai as SmartWallet, aA as Telegram, aM as TelegramWithMetadata, ay as Tiktok, aH as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aR as TransactionUIOptions, at as Twitter, aE as TwitterOAuthWithMetadata, ag as TypedMessage, ar as WalletWithMetadata, af as createCrossTabUserSyncPlugin, a$ as dataSuffix } from './types-CIvz-X6P.js';
1
+ import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as SignerInput, ad as TelegramAuthFlowState } from './types-CDJGb3Hz.js';
2
+ export { aw as Apple, aJ as AppleOAuthWithMetadata, aR as ContractUIOptions, aA as CrossAppAccount, aM as CrossAppAccountWithMetadata, at as Discord, aE as DiscordOAuthWithMetadata, aO as Email, ao as EmailWithMetadata, aV as Farcaster, aK as FarcasterWithMetadata, aS as FundingStatus, au as Github, aF as GithubOAuthWithMetadata, ar as Google, aC as GoogleOAuthWithMetadata, ay as Line, aH as LineOAuthWithMetadata, aB as LinkedAccountType, av as LinkedIn, aI as LinkedInOAuthWithMetadata, aX as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayCurrencyCode, aj as MoonpayPaymentMethod, aT as NativeFundingConfig, an as NonEmptyArray, aW as Passkey, aN as PasskeyWithMetadata, aP as Phone, ap as PhoneWithMetadata, aU as PriceDisplayOptions, P as PrivyErrorCode, aZ as PrivyI18nStrings, ak as Quantity, aY as SiwsFlowState, ah as SmartWallet, az as Telegram, aL as TelegramWithMetadata, ax as Tiktok, aG as TiktokOAuthWithMetadata, al as TransactionLog, am as TransactionReceipt, aQ as TransactionUIOptions, as as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, aq as WalletWithMetadata, ae as createCrossTabUserSyncPlugin, a_ as dataSuffix } from './types-CDJGb3Hz.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { TurnstileProps } from '@marsidev/react-turnstile';
5
5
  import EventEmitter from 'eventemitter3';
@@ -15,8 +15,8 @@ import { MouseEvent } from 'react';
15
15
  import * as _simplewebauthn_browser from '@simplewebauthn/browser';
16
16
  import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/browser';
17
17
  import { FetchOptions } from 'ofetch';
18
- import { P as PrivyEvents } from './events-context-Bz1yk0zU.js';
19
- export { C as CallbackError } from './events-context-Bz1yk0zU.js';
18
+ import { P as PrivyEvents } from './events-context-rAo2eQMj.js';
19
+ export { C as CallbackError } from './events-context-rAo2eQMj.js';
20
20
  import { PaymentRequirementsSelector } from 'x402/client';
21
21
  import { X402Config } from 'x402/types';
22
22
  import * as viem_accounts from 'viem/accounts';
@@ -10316,7 +10316,48 @@ declare function useCreateWallet(callbacks?: PrivyEvents['createWallet']): {
10316
10316
  createWallet: (options?: CreateWalletOptions | react.MouseEvent<any, any>) => Promise<Wallet>;
10317
10317
  };
10318
10318
 
10319
- type UseFundWalletWithBankDepositOptions = FundWithBankDepositScreenOpts;
10319
+ type UseFundWalletWithBankDepositOptions = {
10320
+ /**
10321
+ * Configuration for the supported source assets
10322
+ */
10323
+ source: {
10324
+ /**
10325
+ * FIAT lowercase (e.g. usd or eur).
10326
+ */
10327
+ assets: ('usd' | 'eur' | 'mxn' | 'brl' | 'gbp')[];
10328
+ /**
10329
+ * The default selected source asset.
10330
+ */
10331
+ defaultAsset?: 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
10332
+ /**
10333
+ * @deprecated
10334
+ *
10335
+ * Unused legacy field, will be removed in a future release
10336
+ */
10337
+ selectedAsset?: any;
10338
+ };
10339
+ /**
10340
+ * Configuration for the desired destination asset and wallet
10341
+ */
10342
+ destination: {
10343
+ /**
10344
+ * Token symbol lowercase (e.g. usdc)
10345
+ */
10346
+ asset: 'usdc';
10347
+ /**
10348
+ * CAIP2 (e.g. eip155:1 or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1)
10349
+ */
10350
+ chain: `${string}:${string}`;
10351
+ /**
10352
+ * The address of the wallet to fund
10353
+ */
10354
+ address: string;
10355
+ };
10356
+ /**
10357
+ * The funding provider
10358
+ */
10359
+ provider: 'bridge' | 'bridge-sandbox';
10360
+ };
10320
10361
  type UseFundWalletWithBankDepositResult = {
10321
10362
  /**
10322
10363
  * Opens the Privy modal and initiates the Bank transfer flow.
@@ -1,4 +1,4 @@
1
- import { U as User } from './types-CIvz-X6P.js';
1
+ import { U as User } from './types-CDJGb3Hz.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,4 +1,4 @@
1
- import { U as User } from './types-CIvz-X6P.js';
1
+ import { U as User } from './types-CDJGb3Hz.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default from 'react';
3
- import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-CIvz-X6P.js';
3
+ import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-CDJGb3Hz.js';
4
4
  import { SmartAccountClient } from 'permissionless';
5
5
  import { EIP1193Provider, Chain, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema, SendTransactionParameters, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters } from 'viem';
6
6
  import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default from 'react';
3
- import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-CIvz-X6P.js';
3
+ import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-CDJGb3Hz.js';
4
4
  import { SmartAccountClient } from 'permissionless';
5
5
  import { EIP1193Provider, Chain, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema, SendTransactionParameters, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters } from 'viem';
6
6
  import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
@@ -1,12 +1,12 @@
1
- import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-CIvz-X6P.js';
2
- export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-CIvz-X6P.js';
1
+ import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-CDJGb3Hz.js';
2
+ export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-CDJGb3Hz.js';
3
3
  import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
4
4
  import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
5
5
  import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
8
8
  export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
9
- import { P as PrivyEvents } from './events-context-Bz1yk0zU.js';
9
+ import { P as PrivyEvents } from './events-context-rAo2eQMj.js';
10
10
  import '@coinbase/wallet-sdk';
11
11
  import '@simplewebauthn/browser';
12
12
  import '@solana/kit';
@@ -1,12 +1,12 @@
1
- import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-CIvz-X6P.js';
2
- export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-CIvz-X6P.js';
1
+ import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-CDJGb3Hz.js';
2
+ export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-CDJGb3Hz.js';
3
3
  import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
4
4
  import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
5
5
  import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
8
8
  export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
9
- import { P as PrivyEvents } from './events-context-Bz1yk0zU.js';
9
+ import { P as PrivyEvents } from './events-context-rAo2eQMj.js';
10
10
  import '@coinbase/wallet-sdk';
11
11
  import '@simplewebauthn/browser';
12
12
  import '@solana/kit';
@@ -2409,42 +2409,6 @@ type LoginModalOptions = RuntimeLoginOverridableOptions & {
2409
2409
  isSigningInWithLedgerSolana?: boolean;
2410
2410
  };
2411
2411
  type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
2412
- type FundWithBankDepositScreenOpts = {
2413
- /**
2414
- * Configuration for the supported source assets
2415
- */
2416
- source: {
2417
- /**
2418
- * FIAT lowercase (e.g. usd or eur).
2419
- */
2420
- assets: ('usd' | 'eur' | 'mxn' | 'brl' | 'gbp')[];
2421
- /**
2422
- * The default selected source asset.
2423
- */
2424
- selectedAsset: 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
2425
- };
2426
- /**
2427
- * Configuration for the desired destination asset and wallet
2428
- */
2429
- destination: {
2430
- /**
2431
- * Token symbol lowercase (e.g. usdc)
2432
- */
2433
- asset: 'usdc';
2434
- /**
2435
- * CAIP2 (e.g. eip155:1 or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1)
2436
- */
2437
- chain: `${string}:${string}`;
2438
- /**
2439
- * The address of the wallet to fund
2440
- */
2441
- address: string;
2442
- };
2443
- /**
2444
- * The funding provider
2445
- */
2446
- provider: 'bridge' | 'bridge-sandbox';
2447
- };
2448
2412
  type PrivyFarcasterSignerInitResponse = {
2449
2413
  public_key: string;
2450
2414
  status: 'pending_approval';
@@ -2554,4 +2518,4 @@ type SessionSignerInput = {
2554
2518
  }[];
2555
2519
  type SignerInput = SessionSignerInput;
2556
2520
 
2557
- export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, createDataSuffixPlugin as a$, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundWithBankDepositScreenOpts as a8, type FundingResult as a9, type Telegram as aA, type CrossAppAccount as aB, type LinkedAccountType as aC, type GoogleOAuthWithMetadata as aD, type TwitterOAuthWithMetadata as aE, type DiscordOAuthWithMetadata as aF, type GithubOAuthWithMetadata as aG, type TiktokOAuthWithMetadata as aH, type LineOAuthWithMetadata as aI, type LinkedInOAuthWithMetadata as aJ, type AppleOAuthWithMetadata as aK, type FarcasterWithMetadata as aL, type TelegramWithMetadata as aM, type CrossAppAccountWithMetadata as aN, type PasskeyWithMetadata as aO, type Email as aP, type Phone as aQ, type TransactionUIOptions as aR, type ContractUIOptions as aS, type FundingStatus as aT, type NativeFundingConfig as aU, type PriceDisplayOptions as aV, type Farcaster as aW, type Passkey as aX, type LoginMethodOrderOption as aY, type SiwsFlowState as aZ, type PrivyI18nStrings as a_, type BaseAccountSdkType as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type SignerInput as ad, type TelegramAuthFlowState as ae, createCrossTabUserSyncPlugin as af, type TypedMessage as ag, type MessageTypes as ah, type SmartWallet as ai, type MoonpayCurrencyCode as aj, type MoonpayPaymentMethod as ak, type Quantity as al, type TransactionLog as am, type TransactionReceipt as an, type NonEmptyArray as ao, type EmailWithMetadata as ap, type PhoneWithMetadata as aq, type WalletWithMetadata as ar, type Google as as, type Twitter as at, type Discord as au, type Github as av, type LinkedIn as aw, type Apple as ax, type Tiktok as ay, type Line as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
2521
+ export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType as a9, type CrossAppAccount as aA, type LinkedAccountType as aB, type GoogleOAuthWithMetadata as aC, type TwitterOAuthWithMetadata as aD, type DiscordOAuthWithMetadata as aE, type GithubOAuthWithMetadata as aF, type TiktokOAuthWithMetadata as aG, type LineOAuthWithMetadata as aH, type LinkedInOAuthWithMetadata as aI, type AppleOAuthWithMetadata as aJ, type FarcasterWithMetadata as aK, type TelegramWithMetadata as aL, type CrossAppAccountWithMetadata as aM, type PasskeyWithMetadata as aN, type Email as aO, type Phone as aP, type TransactionUIOptions as aQ, type ContractUIOptions as aR, type FundingStatus as aS, type NativeFundingConfig as aT, type PriceDisplayOptions as aU, type Farcaster as aV, type Passkey as aW, type LoginMethodOrderOption as aX, type SiwsFlowState as aY, type PrivyI18nStrings as aZ, createDataSuffixPlugin as a_, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SignerInput as ac, type TelegramAuthFlowState as ad, createCrossTabUserSyncPlugin as ae, type TypedMessage as af, type MessageTypes as ag, type SmartWallet as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Line as ay, type Telegram as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
@@ -2409,42 +2409,6 @@ type LoginModalOptions = RuntimeLoginOverridableOptions & {
2409
2409
  isSigningInWithLedgerSolana?: boolean;
2410
2410
  };
2411
2411
  type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
2412
- type FundWithBankDepositScreenOpts = {
2413
- /**
2414
- * Configuration for the supported source assets
2415
- */
2416
- source: {
2417
- /**
2418
- * FIAT lowercase (e.g. usd or eur).
2419
- */
2420
- assets: ('usd' | 'eur' | 'mxn' | 'brl' | 'gbp')[];
2421
- /**
2422
- * The default selected source asset.
2423
- */
2424
- selectedAsset: 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
2425
- };
2426
- /**
2427
- * Configuration for the desired destination asset and wallet
2428
- */
2429
- destination: {
2430
- /**
2431
- * Token symbol lowercase (e.g. usdc)
2432
- */
2433
- asset: 'usdc';
2434
- /**
2435
- * CAIP2 (e.g. eip155:1 or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1)
2436
- */
2437
- chain: `${string}:${string}`;
2438
- /**
2439
- * The address of the wallet to fund
2440
- */
2441
- address: string;
2442
- };
2443
- /**
2444
- * The funding provider
2445
- */
2446
- provider: 'bridge' | 'bridge-sandbox';
2447
- };
2448
2412
  type PrivyFarcasterSignerInitResponse = {
2449
2413
  public_key: string;
2450
2414
  status: 'pending_approval';
@@ -2554,4 +2518,4 @@ type SessionSignerInput = {
2554
2518
  }[];
2555
2519
  type SignerInput = SessionSignerInput;
2556
2520
 
2557
- export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, createDataSuffixPlugin as a$, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundWithBankDepositScreenOpts as a8, type FundingResult as a9, type Telegram as aA, type CrossAppAccount as aB, type LinkedAccountType as aC, type GoogleOAuthWithMetadata as aD, type TwitterOAuthWithMetadata as aE, type DiscordOAuthWithMetadata as aF, type GithubOAuthWithMetadata as aG, type TiktokOAuthWithMetadata as aH, type LineOAuthWithMetadata as aI, type LinkedInOAuthWithMetadata as aJ, type AppleOAuthWithMetadata as aK, type FarcasterWithMetadata as aL, type TelegramWithMetadata as aM, type CrossAppAccountWithMetadata as aN, type PasskeyWithMetadata as aO, type Email as aP, type Phone as aQ, type TransactionUIOptions as aR, type ContractUIOptions as aS, type FundingStatus as aT, type NativeFundingConfig as aU, type PriceDisplayOptions as aV, type Farcaster as aW, type Passkey as aX, type LoginMethodOrderOption as aY, type SiwsFlowState as aZ, type PrivyI18nStrings as a_, type BaseAccountSdkType as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type SignerInput as ad, type TelegramAuthFlowState as ae, createCrossTabUserSyncPlugin as af, type TypedMessage as ag, type MessageTypes as ah, type SmartWallet as ai, type MoonpayCurrencyCode as aj, type MoonpayPaymentMethod as ak, type Quantity as al, type TransactionLog as am, type TransactionReceipt as an, type NonEmptyArray as ao, type EmailWithMetadata as ap, type PhoneWithMetadata as aq, type WalletWithMetadata as ar, type Google as as, type Twitter as at, type Discord as au, type Github as av, type LinkedIn as aw, type Apple as ax, type Tiktok as ay, type Line as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
2521
+ export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType as a9, type CrossAppAccount as aA, type LinkedAccountType as aB, type GoogleOAuthWithMetadata as aC, type TwitterOAuthWithMetadata as aD, type DiscordOAuthWithMetadata as aE, type GithubOAuthWithMetadata as aF, type TiktokOAuthWithMetadata as aG, type LineOAuthWithMetadata as aH, type LinkedInOAuthWithMetadata as aI, type AppleOAuthWithMetadata as aJ, type FarcasterWithMetadata as aK, type TelegramWithMetadata as aL, type CrossAppAccountWithMetadata as aM, type PasskeyWithMetadata as aN, type Email as aO, type Phone as aP, type TransactionUIOptions as aQ, type ContractUIOptions as aR, type FundingStatus as aS, type NativeFundingConfig as aT, type PriceDisplayOptions as aU, type Farcaster as aV, type Passkey as aW, type LoginMethodOrderOption as aX, type SiwsFlowState as aY, type PrivyI18nStrings as aZ, createDataSuffixPlugin as a_, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SignerInput as ac, type TelegramAuthFlowState as ad, createCrossTabUserSyncPlugin as ae, type TypedMessage as af, type MessageTypes as ag, type SmartWallet as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Line as ay, type Telegram as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
package/dist/dts/ui.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-CIvz-X6P.js';
2
+ import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-CDJGb3Hz.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Chain } from '@privy-io/js-sdk-core';
5
5
  import '@coinbase/wallet-sdk';
package/dist/dts/ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-CIvz-X6P.js';
2
+ import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-CDJGb3Hz.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Chain } from '@privy-io/js-sdk-core';
5
5
  import '@coinbase/wallet-sdk';
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{HelpCircle as e}from"lucide-react";import{u as o}from"./context-WTldtXS8.mjs";import{u as i}from"./internal-context-Z-fyxadS.mjs";import{a as r}from"./get-is-unified-wallet-Boa8DYrQ.mjs";import{S as a}from"./ScreenLayout-DTmQLGPf.mjs";import"react";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"@privy-io/are-addresses-equal";import"./ModalHeader-D8-mhjp4.mjs";import"styled-components";import"./useActiveWallet-3RHPIBxJ.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-CV4p7L0b.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-CR0z5IIt.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";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"./Screen-Bp-TN9gb.mjs";import"./index-Dq_xe9dz.mjs";const n=({title:o="Account not found",subtitle:i,appName:r="this app",ctaText:n="Try logging in again",onRetry:m})=>/*#__PURE__*/t(a,{title:o,subtitle:i||`Please try logging in again or go to ${r} to create an account.`,icon:e,iconVariant:"warning",primaryCta:{label:n,onClick:m},watermark:!0}),m={component:()=>{let{navigate:e,setModalData:a,data:m}=r(),s=o(),{getAuthMeta:c,client:p}=i();/*#__PURE__*/return t(n,{appName:s?.name,onRetry:()=>{let t=c();a({...m,login:{...m?.login,...t?.disableSignup?{disableSignup:!0}:{}}}),p?.authFlow&&(p.authFlow=void 0),e("LandingScreen")}})}};export{m as AccountNotFoundScreen,n as AccountNotFoundScreenView,m as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{HelpCircle as e}from"lucide-react";import{u as o}from"./context-BeiVf64h.mjs";import{u as i}from"./internal-context-Z-fyxadS.mjs";import{a as r}from"./get-is-unified-wallet-CyC08yWM.mjs";import{S as a}from"./ScreenLayout-C8IaXeHq.mjs";import"react";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"@privy-io/are-addresses-equal";import"./ModalHeader-o3NBflPS.mjs";import"styled-components";import"./useActiveWallet-CdOTNCcL.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-5ZtAXJqT.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-BCEKqhGq.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";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"./Screen-Olwu6khI.mjs";import"./index-Dq_xe9dz.mjs";const n=({title:o="Account not found",subtitle:i,appName:r="this app",ctaText:n="Try logging in again",onRetry:m})=>/*#__PURE__*/t(a,{title:o,subtitle:i||`Please try logging in again or go to ${r} to create an account.`,icon:e,iconVariant:"warning",primaryCta:{label:n,onClick:m},watermark:!0}),m={component:()=>{let{navigate:e,setModalData:a,data:m}=r(),s=o(),{getAuthMeta:c,client:p}=i();/*#__PURE__*/return t(n,{appName:s?.name,onRetry:()=>{let t=c();a({...m,login:{...m?.login,...t?.disableSignup?{disableSignup:!0}:{}}}),p?.authFlow&&(p.authFlow=void 0),e("LandingScreen")}})}};export{m as AccountNotFoundScreen,n as AccountNotFoundScreenView,m 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 n,useEffect as l}from"react";import{styled as s}from"styled-components";import{D as a}from"./useActiveWallet-3RHPIBxJ.mjs";import{S as c}from"./ModalHeader-D8-mhjp4.mjs";const d=({address:s,showCopyIcon:d,url:h,className:u})=>{let[g,x]=n(!1);function y(e){e.stopPropagation(),navigator.clipboard.writeText(s).then((()=>x(!0))).catch(console.error)}return l((()=>{if(g){let e=setTimeout((()=>x(!1)),3e3);return()=>clearTimeout(e)}}),[g]),/*#__PURE__*/e(m,h?{children:[/*#__PURE__*/r(f,{title:s,className:u,href:`${h}/address/${s}`,target:"_blank",children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:16})]}:{children:["Copy",/*#__PURE__*/r(t,{size:16})]})})]}:{children:[/*#__PURE__*/r(p,{title:s,className:u,children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:14})]}:{children:["Copy",/*#__PURE__*/r(t,{size:14})]})})]})};let m=s.span`
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 n,useEffect as l}from"react";import{styled as s}from"styled-components";import{D as a}from"./useActiveWallet-CdOTNCcL.mjs";import{S as c}from"./ModalHeader-o3NBflPS.mjs";const d=({address:s,showCopyIcon:d,url:h,className:u})=>{let[g,x]=n(!1);function y(e){e.stopPropagation(),navigator.clipboard.writeText(s).then((()=>x(!0))).catch(console.error)}return l((()=>{if(g){let e=setTimeout((()=>x(!1)),3e3);return()=>clearTimeout(e)}}),[g]),/*#__PURE__*/e(m,h?{children:[/*#__PURE__*/r(f,{title:s,className:u,href:`${h}/address/${s}`,target:"_blank",children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:16})]}:{children:["Copy",/*#__PURE__*/r(t,{size:16})]})})]}:{children:[/*#__PURE__*/r(p,{title:s,className:u,children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:14})]}:{children:["Copy",/*#__PURE__*/r(t,{size:14})]})})]})};let m=s.span`
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  gap: 0.5rem;
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{FileCheck as r,ExternalLink as i}from"lucide-react";import"react";import{styled as o}from"styled-components";import{a as s}from"./ModalHeader-D8-mhjp4.mjs";import{u as a}from"./context-WTldtXS8.mjs";import{u as n}from"./internal-context-Z-fyxadS.mjs";import{u as m,a as l}from"./get-is-unified-wallet-Boa8DYrQ.mjs";import{s as c}from"./shouldProceedtoEmbeddedWalletCreationFlow-BMF_3TVv.mjs";import{S as p}from"./ScreenLayout-DTmQLGPf.mjs";import"./useActiveWallet-3RHPIBxJ.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-CV4p7L0b.mjs";import"@privy-io/js-sdk-core";import"eventemitter3";import"viem/utils";import"./useWallets-CR0z5IIt.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";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"ofetch";import"@privy-io/are-addresses-equal";import"./index-BBRkihRn.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-6nkpbErN.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"./PrivyPluginContext-2QN2dVUw.mjs";import"./getEmbeddedConnectedWallet-JzK4iD-L.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"./Screen-Bp-TN9gb.mjs";import"./index-Dq_xe9dz.mjs";const d={component:()=>{let{user:t,logout:r}=m(),{onUserCloseViaDialogOrKeybindRef:i,setModalData:o,navigate:s}=l(),p=a(),{acceptTerms:d,closePrivyModal:y,createAnalyticsEvent:v}=n(),h=e=>{e?.preventDefault(),y({shouldCallAuthOnSuccess:!1}),r()};i.current=h;/*#__PURE__*/return e(u,{termsAndConditionsUrl:p?.legal.termsAndConditionsUrl,privacyPolicyUrl:p?.legal.privacyPolicyUrl,onAccept:async e=>{e?.preventDefault(),await d(),t&&c(t,p.embeddedWallets)?(o({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),v({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AffirmativeConsentScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),s("EmbeddedWalletOnAccountCreateScreen")):y()},onDecline:h})}},u=({termsAndConditionsUrl:o,privacyPolicyUrl:a,onAccept:n,onDecline:m,title:l="One last step",subtitle:c="By signing up, you agree to our terms and privacy policy."})=>/*#__PURE__*/e(p,{title:l,subtitle:c,icon:r,primaryCta:{label:"Accept",onClick:n},secondaryCta:{label:"No thanks",onClick:m},watermark:!0,children:(o||a)&&/*#__PURE__*/t(y,{children:[o&&/*#__PURE__*/t(s,{variant:"muted",href:o,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]}),a&&/*#__PURE__*/t(s,{variant:"muted",href:a,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]})]})});let y=o.div`
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{FileCheck as r,ExternalLink as i}from"lucide-react";import"react";import{styled as o}from"styled-components";import{a as s}from"./ModalHeader-o3NBflPS.mjs";import{u as a}from"./context-BeiVf64h.mjs";import{u as n}from"./internal-context-Z-fyxadS.mjs";import{u as m,a as l}from"./get-is-unified-wallet-CyC08yWM.mjs";import{s as c}from"./shouldProceedtoEmbeddedWalletCreationFlow-_LduuU-p.mjs";import{S as p}from"./ScreenLayout-C8IaXeHq.mjs";import"./useActiveWallet-CdOTNCcL.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-5ZtAXJqT.mjs";import"@privy-io/js-sdk-core";import"eventemitter3";import"viem/utils";import"./useWallets-BCEKqhGq.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";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"ofetch";import"@privy-io/are-addresses-equal";import"./index-BAl9y5La.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@privy-io/ethereum";import"mipd";import"@privy-io/popup";import"./paths-3HW55qZg.mjs";import"./usePrivy-D6pEtdwq.mjs";import"@scure/base";import"@headlessui/react";import"@walletconnect/ethereum-provider";import"@privy-io/urls";import"./PrivyPluginContext-2QN2dVUw.mjs";import"./getEmbeddedConnectedWallet-JzK4iD-L.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"./Screen-Olwu6khI.mjs";import"./index-Dq_xe9dz.mjs";const d={component:()=>{let{user:t,logout:r}=m(),{onUserCloseViaDialogOrKeybindRef:i,setModalData:o,navigate:s}=l(),p=a(),{acceptTerms:d,closePrivyModal:y,createAnalyticsEvent:v}=n(),h=e=>{e?.preventDefault(),y({shouldCallAuthOnSuccess:!1}),r()};i.current=h;/*#__PURE__*/return e(u,{termsAndConditionsUrl:p?.legal.termsAndConditionsUrl,privacyPolicyUrl:p?.legal.privacyPolicyUrl,onAccept:async e=>{e?.preventDefault(),await d(),t&&c(t,p.embeddedWallets)?(o({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),v({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AffirmativeConsentScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),s("EmbeddedWalletOnAccountCreateScreen")):y()},onDecline:h})}},u=({termsAndConditionsUrl:o,privacyPolicyUrl:a,onAccept:n,onDecline:m,title:l="One last step",subtitle:c="By signing up, you agree to our terms and privacy policy."})=>/*#__PURE__*/e(p,{title:l,subtitle:c,icon:r,primaryCta:{label:"Accept",onClick:n},secondaryCta:{label:"No thanks",onClick:m},watermark:!0,children:(o||a)&&/*#__PURE__*/t(y,{children:[o&&/*#__PURE__*/t(s,{variant:"muted",href:o,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]}),a&&/*#__PURE__*/t(s,{variant:"muted",href:a,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]})]})});let y=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{Lock as e}from"lucide-react";import"react";import{u as o}from"./context-WTldtXS8.mjs";import{a as i}from"./get-is-unified-wallet-Boa8DYrQ.mjs";import{S as r}from"./ScreenLayout-DTmQLGPf.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"@privy-io/are-addresses-equal";import"./internal-context-Z-fyxadS.mjs";import"ofetch";import"./ModalHeader-D8-mhjp4.mjs";import"styled-components";import"./useActiveWallet-3RHPIBxJ.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-CV4p7L0b.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-CR0z5IIt.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";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"./Screen-Bp-TN9gb.mjs";import"./index-Dq_xe9dz.mjs";const a=({title:o="You don't have access to this app",subtitle:i="Have you been invited?",ctaText:a="Try another account",ctaLink:n,onCtaClick:m})=>/*#__PURE__*/t(r,{title:o,subtitle:i,icon:e,iconVariant:"warning",primaryCta:{label:a,onClick:()=>{n?window.open(n,"_blank"):m?.()}},watermark:!0}),n={component:()=>{let{navigate:e}=i(),r=o(),n=r?.allowlistConfig.errorTitle||"You don't have access to this app",m=r?.allowlistConfig.errorDetail||"Have you been invited?",c=r?.allowlistConfig.errorCtaText||"Try another account",s=r?.allowlistConfig.errorCtaLink;/*#__PURE__*/return t(a,{title:n,subtitle:m,ctaText:c,ctaLink:s??void 0,onCtaClick:()=>{e("LandingScreen")}})}};export{n as AllowlistRejectionScreen,a as AllowlistRejectionScreenView,n as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{Lock as e}from"lucide-react";import"react";import{u as o}from"./context-BeiVf64h.mjs";import{a as i}from"./get-is-unified-wallet-CyC08yWM.mjs";import{S as r}from"./ScreenLayout-C8IaXeHq.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"@privy-io/are-addresses-equal";import"./internal-context-Z-fyxadS.mjs";import"ofetch";import"./ModalHeader-o3NBflPS.mjs";import"styled-components";import"./useActiveWallet-CdOTNCcL.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-5ZtAXJqT.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-BCEKqhGq.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";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"./Screen-Olwu6khI.mjs";import"./index-Dq_xe9dz.mjs";const a=({title:o="You don't have access to this app",subtitle:i="Have you been invited?",ctaText:a="Try another account",ctaLink:n,onCtaClick:m})=>/*#__PURE__*/t(r,{title:o,subtitle:i,icon:e,iconVariant:"warning",primaryCta:{label:a,onClick:()=>{n?window.open(n,"_blank"):m?.()}},watermark:!0}),n={component:()=>{let{navigate:e}=i(),r=o(),n=r?.allowlistConfig.errorTitle||"You don't have access to this app",m=r?.allowlistConfig.errorDetail||"Have you been invited?",c=r?.allowlistConfig.errorCtaText||"Try another account",s=r?.allowlistConfig.errorCtaLink;/*#__PURE__*/return t(a,{title:n,subtitle:m,ctaText:c,ctaLink:s??void 0,onCtaClick:()=>{e("LandingScreen")}})}};export{n as AllowlistRejectionScreen,a as AllowlistRejectionScreenView,n as default};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useRef as t,useCallback as o}from"react";import{u as r}from"./context-WTldtXS8.mjs";import{u as n,c as a,b as i}from"./internal-context-Z-fyxadS.mjs";import{a as l}from"./events-context-CI0iqAXA.mjs";import{a as c}from"./get-is-unified-wallet-Boa8DYrQ.mjs";import{i as s}from"./ConnectWalletView-CDqboUej.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"@privy-io/are-addresses-equal";import"@heroicons/react/24/outline";import"@tanstack/react-virtual";import"react-device-detect";import"styled-components";import"./ModalHeader-D8-mhjp4.mjs";import"./useActiveWallet-3RHPIBxJ.mjs";import"zustand";import"./use-export-wallet-CV4p7L0b.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-CR0z5IIt.mjs";import"viem";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"./CopyableText-BCytXyJL.mjs";import"lucide-react";import"./Link-DJ5gq9Di.mjs";import"./QrCode-C1tgJtOy.mjs";import"qrcode";import"./EmailInputForm-Dgoii4vf.mjs";import"./ErrorMessage-D8VaAP5m.mjs";import"./useI18n-BuIe8nUA.mjs";import"./WalletCards-DH1rqayz.mjs";import"./Screen-Bp-TN9gb.mjs";import"./index-Dq_xe9dz.mjs";const m={component:()=>{let{setWalletConnectionStatus:m,closePrivyModal:p,inProgressAuthFlowRef:u}=n(),{data:d,navigate:C}=c(),j=r(),W=l(),w=d?.externalConnectWallet?.description,E=t(d?.externalConnectWallet?.walletList??j.appearance.walletList),x=t(d?.externalConnectWallet?.walletChainType??j.appearance.walletChainType),f=E.current,h=x.current,v="link"===u.current?void 0:()=>C("LandingScreen");/*#__PURE__*/return e(s,{walletList:f,walletChainType:h,onClose:p,onConnect:o((({connector:e,wallet:t})=>{W("connectWallet","onSuccess",{wallet:t}),m({status:"connected",connectedWallet:t,connector:e,connectError:null,connectRetry:()=>null}),C("ConnectionStatusScreen",!d?.externalConnectWallet?.preSelectedWalletId)}),[m,C,d?.login?.disableSignup,d?.externalConnectWallet?.preSelectedWalletId]),onConnectError:e=>{e instanceof a?(console.warn(e.cause?e.cause:e.message),W("connectWallet","onError",e.privyErrorCode||i.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(e),W("connectWallet","onError",i.UNKNOWN_CONNECT_WALLET_ERROR))},onBack:v,customDescription:w||"",preSelectedWalletId:d?.externalConnectWallet?.preSelectedWalletId,app:j})},isUnauthenticatedScreem:!0};export{m as AuthenticateWithWalletScreen,m as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{useRef as t,useCallback as o}from"react";import{u as r}from"./context-BeiVf64h.mjs";import{u as n,c as a,b as i}from"./internal-context-Z-fyxadS.mjs";import{a as l}from"./events-context-CI0iqAXA.mjs";import{a as c}from"./get-is-unified-wallet-CyC08yWM.mjs";import{i as s}from"./ConnectWalletView-DMF1481Z.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"@privy-io/are-addresses-equal";import"@heroicons/react/24/outline";import"@tanstack/react-virtual";import"react-device-detect";import"styled-components";import"./ModalHeader-o3NBflPS.mjs";import"./useActiveWallet-CdOTNCcL.mjs";import"zustand";import"./use-export-wallet-5ZtAXJqT.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-BCEKqhGq.mjs";import"viem";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"./CopyableText-BCytXyJL.mjs";import"lucide-react";import"./Link-DJ5gq9Di.mjs";import"./QrCode-rl0SJEeD.mjs";import"qrcode";import"./EmailInputForm-Dgoii4vf.mjs";import"./ErrorMessage-D8VaAP5m.mjs";import"./useI18n-MsO3QTRN.mjs";import"./WalletCards-DH1rqayz.mjs";import"./Screen-Olwu6khI.mjs";import"./index-Dq_xe9dz.mjs";const m={component:()=>{let{setWalletConnectionStatus:m,closePrivyModal:p,inProgressAuthFlowRef:u}=n(),{data:d,navigate:C}=c(),j=r(),W=l(),w=d?.externalConnectWallet?.description,E=t(d?.externalConnectWallet?.walletList??j.appearance.walletList),x=t(d?.externalConnectWallet?.walletChainType??j.appearance.walletChainType),f=E.current,h=x.current,v="link"===u.current?void 0:()=>C("LandingScreen");/*#__PURE__*/return e(s,{walletList:f,walletChainType:h,onClose:p,onConnect:o((({connector:e,wallet:t})=>{W("connectWallet","onSuccess",{wallet:t}),m({status:"connected",connectedWallet:t,connector:e,connectError:null,connectRetry:()=>null}),C("ConnectionStatusScreen",!d?.externalConnectWallet?.preSelectedWalletId)}),[m,C,d?.login?.disableSignup,d?.externalConnectWallet?.preSelectedWalletId]),onConnectError:e=>{e instanceof a?(console.warn(e.cause?e.cause:e.message),W("connectWallet","onError",e.privyErrorCode||i.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(e),W("connectWallet","onError",i.UNKNOWN_CONNECT_WALLET_ERROR))},onBack:v,customDescription:w||"",preSelectedWalletId:d?.externalConnectWallet?.preSelectedWalletId,app:j})},isUnauthenticatedScreem:!0};export{m as AuthenticateWithWalletScreen,m as default};