@privy-io/react-auth 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client.js +1 -1
- package/dist/cjs/components/LoginModal.js +1 -1
- package/dist/cjs/components/Pill.js +1 -0
- package/dist/cjs/components/QrCode.js +1 -1
- package/dist/cjs/components/embedded-wallets/SolanaTransactionDetails.js +1 -1
- package/dist/cjs/components/primitives/InteractiveLabel.js +1 -0
- package/dist/cjs/components/primitives/JsonTree.js +1 -0
- package/dist/cjs/configuration/wallets.js +1 -1
- package/dist/cjs/connectors/embeddedProvider.js +1 -1
- package/dist/cjs/connectors/ethereum/EthereumNullConnector.js +1 -1
- package/dist/cjs/connectors/ethereum/index.js +1 -1
- package/dist/cjs/connectors/index.js +1 -1
- package/dist/cjs/connectors/is-wallet-installed.js +1 -1
- package/dist/cjs/connectors/mobile-wallets.js +1 -0
- package/dist/cjs/connectors/solana/SolanaNullConnector.js +1 -1
- package/dist/cjs/connectors/solana/index.js +1 -1
- package/dist/cjs/connectors/solana/toSolanaWalletConnectors.js +1 -1
- package/dist/cjs/connectors/stored-connection.js +1 -0
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/embedded-wallets/delegated-actions.js +1 -1
- package/dist/cjs/embedded-wallets/solana/provider.js +1 -1
- package/dist/cjs/hooks/privy-provider.js +1 -1
- package/dist/cjs/hooks/useFormattedBalances.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/ethers.js +1 -1
- package/dist/cjs/lib/external-wallets/displayHelpers.js +1 -1
- package/dist/cjs/paths.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/ActiveWalletCard.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/ConnectWalletView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/SelectActiveWalletView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/WalletCardView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/WalletsDialog.js +1 -1
- package/dist/cjs/privy-provider-Cq1Y-Omj.js +3 -0
- package/dist/cjs/screens/ConnectOnlyAuthenticatedScreen.js +1 -1
- package/dist/cjs/screens/ConnectOnlyLandingScreen.js +1 -1
- package/dist/cjs/screens/ConnectOnlyStatusScreen.js +1 -1
- package/dist/cjs/screens/ConnectionStatusScreen.js +2 -2
- package/dist/cjs/screens/Funding/AwaitingEvmToSolBridgingScreen.js +1 -1
- package/dist/cjs/screens/Funding/AwaitingExternalSolanaTransferScreen.js +2 -2
- package/dist/cjs/screens/Funding/AwaitingExternalTransferScreen.js +1 -1
- package/dist/cjs/screens/Funding/AwaitingSolToEvmBridgingScreen.js +1 -1
- package/dist/cjs/screens/Funding/FundingMethodSelectionScreen.js +1 -1
- package/dist/cjs/screens/Funding/TransferFromWalletScreen.js +1 -1
- package/dist/cjs/screens/Funding/TransferOrBridgeLoadingScreen.js +1 -1
- package/dist/cjs/screens/InstallWalletScreen.js +1 -0
- package/dist/cjs/screens/LandingScreen/ConnectOrCreateScreen.js +1 -1
- package/dist/cjs/screens/LandingScreen/CustomLandingScreenView.js +1 -1
- package/dist/cjs/screens/LandingScreen/LandingScreen.js +1 -1
- package/dist/cjs/screens/LandingScreen/LandingScreenView.js +1 -1
- package/dist/cjs/screens/LandingScreen/WalletButton.js +1 -1
- package/dist/cjs/screens/LandingScreen/WalletButtonList.js +1 -1
- package/dist/cjs/screens/LinkWalletScreen.js +1 -1
- package/dist/cjs/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.js +1 -1
- package/dist/cjs/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/ScanDetails.js +1 -0
- package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreen.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreenView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/TokenDescription.js +1 -0
- package/dist/cjs/screens/SendTransactionScreen/TransactionValidation.js +1 -0
- package/dist/cjs/screens/SendTransactionScreen/index.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/lib.js +1 -0
- package/dist/cjs/screens/SignRequestScreen.js +1 -1
- package/dist/cjs/screens/WalletInterstitialScreen.js +1 -0
- package/dist/cjs/screens/index.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/svg/backpack.js +1 -0
- package/dist/cjs/svg/okx-wallet.js +1 -0
- package/dist/cjs/svg/solflare.js +1 -0
- package/dist/cjs/types.js +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +29 -8
- package/dist/dts/index.d.ts +29 -8
- package/dist/dts/smart-wallets.d.mts +1 -1
- package/dist/dts/smart-wallets.d.ts +1 -1
- package/dist/dts/solana.d.mts +4 -4
- package/dist/dts/solana.d.ts +4 -4
- package/dist/dts/{types-B-zTuIEL.d.mts → types-Do6eK2EI.d.mts} +7 -6
- package/dist/dts/{types-B-zTuIEL.d.ts → types-Do6eK2EI.d.ts} +7 -6
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/dts/{useSolanaWallets-DdM-QdoK.d.mts → useSolanaWallets-CtSHyXUi.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-DdM-QdoK.d.ts → useSolanaWallets-CtSHyXUi.d.ts} +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/components/LoginModal.mjs +1 -1
- package/dist/esm/components/Pill.mjs +1 -0
- package/dist/esm/components/QrCode.mjs +2 -2
- package/dist/esm/components/embedded-wallets/SolanaTransactionDetails.mjs +1 -1
- package/dist/esm/components/primitives/InteractiveLabel.mjs +1 -0
- package/dist/esm/components/primitives/JsonTree.mjs +1 -0
- package/dist/esm/configuration/wallets.mjs +1 -1
- package/dist/esm/connectors/embeddedProvider.mjs +1 -1
- package/dist/esm/connectors/ethereum/EthereumNullConnector.mjs +1 -1
- package/dist/esm/connectors/ethereum/index.mjs +1 -1
- package/dist/esm/connectors/index.mjs +1 -1
- package/dist/esm/connectors/is-wallet-installed.mjs +1 -1
- package/dist/esm/connectors/mobile-wallets.mjs +1 -0
- package/dist/esm/connectors/solana/SolanaNullConnector.mjs +1 -1
- package/dist/esm/connectors/solana/index.mjs +1 -1
- package/dist/esm/connectors/solana/toSolanaWalletConnectors.mjs +1 -1
- package/dist/esm/connectors/stored-connection.mjs +1 -0
- package/dist/esm/constants.mjs +1 -1
- package/dist/esm/embedded-wallets/delegated-actions.mjs +1 -1
- package/dist/esm/embedded-wallets/solana/provider.mjs +1 -1
- package/dist/esm/hooks/privy-provider.mjs +1 -1
- package/dist/esm/hooks/useFormattedBalances.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/lib/ethers.mjs +1 -1
- package/dist/esm/lib/external-wallets/displayHelpers.mjs +1 -1
- package/dist/esm/paths.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/ActiveWalletCard.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/ConnectWalletView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/SelectActiveWalletView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/WalletCardView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/WalletsDialog.mjs +1 -1
- package/dist/esm/privy-provider-C-cTZKVr.mjs +3 -0
- package/dist/esm/screens/ConnectOnlyAuthenticatedScreen.mjs +1 -1
- package/dist/esm/screens/ConnectOnlyLandingScreen.mjs +1 -1
- package/dist/esm/screens/ConnectOnlyStatusScreen.mjs +1 -1
- package/dist/esm/screens/ConnectionStatusScreen.mjs +1 -1
- package/dist/esm/screens/Funding/AwaitingEvmToSolBridgingScreen.mjs +1 -1
- package/dist/esm/screens/Funding/AwaitingExternalSolanaTransferScreen.mjs +1 -1
- package/dist/esm/screens/Funding/AwaitingExternalTransferScreen.mjs +1 -1
- package/dist/esm/screens/Funding/AwaitingSolToEvmBridgingScreen.mjs +1 -1
- package/dist/esm/screens/Funding/FundingMethodSelectionScreen.mjs +1 -1
- package/dist/esm/screens/Funding/TransferFromWalletScreen.mjs +1 -1
- package/dist/esm/screens/Funding/TransferOrBridgeLoadingScreen.mjs +1 -1
- package/dist/esm/screens/InstallWalletScreen.mjs +1 -0
- package/dist/esm/screens/LandingScreen/ConnectOrCreateScreen.mjs +1 -1
- package/dist/esm/screens/LandingScreen/CustomLandingScreenView.mjs +1 -1
- package/dist/esm/screens/LandingScreen/LandingScreen.mjs +1 -1
- package/dist/esm/screens/LandingScreen/LandingScreenView.mjs +1 -1
- package/dist/esm/screens/LandingScreen/WalletButton.mjs +1 -1
- package/dist/esm/screens/LandingScreen/WalletButtonList.mjs +1 -1
- package/dist/esm/screens/LinkWalletScreen.mjs +1 -1
- package/dist/esm/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs +1 -1
- package/dist/esm/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/ScanDetails.mjs +1 -0
- package/dist/esm/screens/SendTransactionScreen/SendTransactionScreen.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/SendTransactionScreenView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/TokenDescription.mjs +1 -0
- package/dist/esm/screens/SendTransactionScreen/TransactionValidation.mjs +1 -0
- package/dist/esm/screens/SendTransactionScreen/index.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/lib.mjs +1 -0
- package/dist/esm/screens/SignRequestScreen.mjs +1 -1
- package/dist/esm/screens/WalletInterstitialScreen.mjs +1 -0
- package/dist/esm/screens/index.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/svg/backpack.mjs +1 -0
- package/dist/esm/svg/okx-wallet.mjs +1 -0
- package/dist/esm/svg/solflare.mjs +1 -0
- package/dist/esm/types.mjs +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/package.json +2 -2
- package/dist/cjs/connectors/phantom-redirect.js +0 -1
- package/dist/cjs/connectors/phantom-solana.js +0 -1
- package/dist/cjs/connectors/phantom.js +0 -1
- package/dist/cjs/privy-provider-B8LaAjk_.js +0 -3
- package/dist/cjs/screens/InstallPhantomScreen.js +0 -1
- package/dist/cjs/screens/PhantomInterstitialScreen.js +0 -1
- package/dist/esm/connectors/phantom-redirect.mjs +0 -1
- package/dist/esm/connectors/phantom-solana.mjs +0 -1
- package/dist/esm/connectors/phantom.mjs +0 -1
- package/dist/esm/privy-provider-CuvYT8ML.mjs +0 -3
- package/dist/esm/screens/InstallPhantomScreen.mjs +0 -1
- package/dist/esm/screens/PhantomInterstitialScreen.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as o,jsx as n,Fragment as i}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ChevronDownIcon";import{useState as
|
|
1
|
+
import{jsxs as o,jsx as n,Fragment as i}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ChevronDownIcon";import{useState as r}from"react";import{styled as e}from"styled-components";import{BackButton as c,NextButton as s}from"../ModalHeader.mjs";import{InteractiveLabel as m}from"../primitives/InteractiveLabel.mjs";import{Rows as a,Row as l}from"../ui/layout/Row.mjs";import{LabelSm as p}from"../ui/typography/LabelSm.mjs";import{Value as d}from"../ui/typography/Value.mjs";import{SolanaPriceDisplay as h}from"./PriceDisplay.mjs";import{WalletLink as u}from"./WalletLink.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"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../constants.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../connectors/chains/utils.mjs";import"../../lib/solana/index.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"../../hooks/internal-context.mjs";import"../../hooks/index.mjs";import"../ui/animation/LoadingSkeleton.mjs";import"viem";import"../../lib/ethers.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/transaction.mjs";import"../../utils/buffer/readBigInt64LE.mjs";const j=({instructions:e,fees:u,transactionInfo:j,solPrice:x,rpcEndpoint:v})=>{let A=e.reduce(((o,{amount:n,token:i})=>n&&"SOL"===i?.symbol?o+n:o),0n),[I,C]=r(0),[E,P]=r(!1),S=e[I];/*#__PURE__*/return o(a,{children:[/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Total"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[A,u],tokenPrice:x})})]}),j&&j.action&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Action"}),/*#__PURE__*/n(d,{children:j.action})]}),/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Fees"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[u||0n],tokenPrice:x})})]}),e.length>1?/*#__PURE__*/o(i,{children:[/*#__PURE__*/n(l,{children:/*#__PURE__*/o(m,{onClick:()=>P((o=>!o)),children:[/*#__PURE__*/n("span",{children:"Details"}),/*#__PURE__*/n(t,{height:"16px",width:"16px",strokeWidth:"2",style:{transition:"all 300ms",transform:E?"rotate(180deg)":void 0}})]})}),E&&/*#__PURE__*/n(l,{children:/*#__PURE__*/o(g,{children:[/*#__PURE__*/o(k,{children:[/*#__PURE__*/o(y,{children:[I+1," of ",e.length," instructions"]}),/*#__PURE__*/o(b,{children:[I>0&&/*#__PURE__*/n(c,{backFn:()=>C((o=>o-1))}),I<e.length-1&&/*#__PURE__*/n(s,{nextFn:()=>C((o=>o+1))})]})]}),/*#__PURE__*/n(w,{children:/*#__PURE__*/n(f,{instruction:S,rpcEndpoint:v,solPrice:x})})]})})]}):/*#__PURE__*/n(f,{instruction:S,rpcEndpoint:v,solPrice:x,hideAmount:!0})]})};function f({instruction:i,rpcEndpoint:t,solPrice:r,hideAmount:e}){return i?/*#__PURE__*/o(a,{children:[!e&&!!i.amount&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Amount"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[i.amount],tokenPrice:r,tokenSymbol:i.token?.symbol??"SOL",tokenDecimals:i.token?.decimals??9})})]}),i.to&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"To"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.to,rpcEndpoint:t,network:"solana"})})]}),i.tokenAccount&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Token account"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.tokenAccount,rpcEndpoint:t,network:"solana"})})]}),i.tokenAccountOwner&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Token account owner"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.tokenAccountOwner,rpcEndpoint:t,network:"solana"})})]}),i.from&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"From"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.from,rpcEndpoint:t,network:"solana"})})]})]}):null}let g=/*#__PURE__*/e.div.withConfig({displayName:"InstructionsBox",componentId:"sc-5a140027-0"})(["display:flex;flex-direction:column;width:100%;overflow:hidden;&&{border:1px solid;border-color:var(--privy-color-foreground-4);border-radius:var(--privy-border-radius-md);}"]),k=/*#__PURE__*/e.header.withConfig({displayName:"InstructionsBoxHeader",componentId:"sc-5a140027-1"})(["display:flex;justify-content:space-between;align-items:center;padding:12px;background-color:var(--privy-color-background-2);"]),y=/*#__PURE__*/e.h4.withConfig({displayName:"HeaderTitle",componentId:"sc-5a140027-2"})(["font-size:14px;font-weight:500;line-height:19.6px;"]),w=/*#__PURE__*/e.div.withConfig({displayName:"InstructionsBoxContent",componentId:"sc-5a140027-3"})(["padding:12px;"]),b=/*#__PURE__*/e.div.withConfig({displayName:"NavigationButtonsConatiner",componentId:"sc-5a140027-4"})(["display:flex;gap:8px;align-items:center;"]);export{j as SolanaTransactionDetails};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styled as o}from"styled-components";import{LabelSm as r}from"../ui/typography/LabelSm.mjs";const c=/*#__PURE__*/o(r).withConfig({displayName:"InteractiveLabel",componentId:"sc-94a4dccc-0"})(["cursor:pointer;display:inline-flex;gap:8px;align-items:center;color:var(--privy-color-accent);svg{fill:var(--privy-color-accent);}"]);export{c as InteractiveLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import{styled as e}from"styled-components";let i=({data:e})=>{let i=e=>"object"==typeof e&&null!==e?/*#__PURE__*/r(n,{children:Object.entries(e).map((([r,e])=>/*#__PURE__*/t("li",{children:[/*#__PURE__*/t("strong",{children:[r,":"]})," ",i(e)]},r)))}):/*#__PURE__*/r("span",{children:String(e)});/*#__PURE__*/return r("div",{children:i(e)})};const o=/*#__PURE__*/e.div.withConfig({displayName:"Message",componentId:"sc-ccf49562-0"})(["margin-top:1.5rem;background-color:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);padding:12px;text-align:left;max-height:310px;overflow:scroll;white-space:pre-wrap;width:100%;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]);let n=/*#__PURE__*/e.ul.withConfig({displayName:"MessageList",componentId:"sc-ccf49562-1"})(["margin-left:12px !important;white-space:nowrap;&:first-child{margin-left:0 !important;}strong{font-weight:500 !important;}"]);const a=({data:t})=>/*#__PURE__*/r(o,{children:/*#__PURE__*/r(i,{data:t})});export{a as DisplayJsonTree,o as Message};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defaultClientConfig as e}from"./defaultClientConfig.mjs";import"../constants.mjs";let t=new Set(["coinbase_wallet","cryptocom","metamask","okx_wallet","phantom","rainbow","uniswap","zerion","universal_profile","bybit_wallet","wallet_connect","detected_wallets","detected_solana_wallets","detected_ethereum_wallets","rabby_wallet","safe"]),
|
|
1
|
+
import{defaultClientConfig as e}from"./defaultClientConfig.mjs";import"../constants.mjs";let t=new Set(["coinbase_wallet","cryptocom","metamask","okx_wallet","phantom","rainbow","uniswap","zerion","universal_profile","bybit_wallet","wallet_connect","detected_wallets","detected_solana_wallets","detected_ethereum_wallets","rabby_wallet","safe","solflare","backpack"]),a=e=>t.has(e),l=(e,t,a)=>a.indexOf(e)===t;const o=({input:t,overrides:o})=>o?o.primary.concat(o.overflow??[]).filter(a).filter(l):t?t.filter(a).filter(l):e.appearance.walletList;export{o as toWalletListConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"eventemitter3";import"../embedded-wallets/rpc/types.mjs";export{E as Embedded1193Provider}from"../privy-provider-CuvYT8ML.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"../utils/index.mjs";import"../utils/eth/getPublicClient.mjs";import"./getRpcTimeout.mjs";import"./providerTypes.mjs";import"react/jsx-runtime";import"mipd";import"react";import"react-device-detect";import"viem/utils";import"../auth-flows/custom-jwt-account.mjs";import"../errors.mjs";import"ofetch";import"../paths.mjs";import"../auth-flows/email.mjs";import"../auth-flows/getUiHeader.mjs";import"../auth-flows/farcaster.mjs";import"./walletconnect-registry.mjs";import"../storage.mjs";import"./get-legacy-injected-providers.mjs";import"./is-wallet-installed.mjs";import"viem";import"../effect.mjs";import"../auth-flows/guest.mjs";import"jose";import"../constants.mjs";import"../crypto.mjs";import"../auth-flows/passkey.mjs";import"../auth-flows/siwe.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../auth-flows/sms.mjs";import"../auth-flows/telegram.mjs";import"../hooks/captcha-context.mjs";import"../hooks/index.mjs";import"uuid";import"../accessToken.mjs";import"../token.mjs";import"../client/user.mjs";import"./coinbase.mjs";import"@coinbase/wallet-sdk";import"../svg/coinbase-wallet.mjs";import"./chains/index.mjs";import"./chains/arbitrum.mjs";import"./chains/arbitrumSepolia.mjs";import"./chains/avalanche.mjs";import"./chains/avalancheFuji.mjs";import"./chains/base.mjs";import"./chains/baseSepolia.mjs";import"./chains/berachainArtio.mjs";import"./chains/celo.mjs";import"./chains/celoAlfajores.mjs";import"./chains/filecoin.mjs";import"./chains/filecoinCalibration.mjs";import"./chains/garnetHolesky.mjs";import"./chains/holesky.mjs";import"./chains/linea.mjs";import"./chains/lineaTestnet.mjs";import"./chains/lukso.mjs";import"./chains/mainnet.mjs";import"./chains/optimism.mjs";import"./chains/optimismSepolia.mjs";import"./chains/polygon.mjs";import"./chains/polygonAmoy.mjs";import"./chains/redstone.mjs";import"./chains/sepolia.mjs";import"./chains/zora.mjs";import"./chains/zoraSepolia.mjs";import"./chains/zoraTestnet.mjs";import"./errors.mjs";import"@privy-io/js-sdk-core";import"./ethereum/index.mjs";import"./areWalletArraysEqual.mjs";import"./isBaseConnectedEthereumWallet.mjs";import"./base.mjs";import"./privyProxyProvider.mjs";import"./embedded.mjs";import"../svg/blobby.mjs";import"../components/Captcha.mjs";import"@marsidev/react-turnstile";import"../components/LoginModal.mjs";import"styled-components";import"../configuration/context.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"./chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/internal-context.mjs";import"../hooks/modal-context.mjs";import"../components/PrefetchedImage.mjs";import"../screens/index.mjs";import"../hooks/privy-context.mjs";import"../hooks/useElementHeight.mjs";import"../hooks/useRegisterMfaListener.mjs";import"../hooks/events-context.mjs";import"../screens/AccountNotFoundScreen.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"../components/Button.mjs";import"../components/Loader.mjs";import"../components/CircleBackground.mjs";import"../components/ModalHeader.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../components/layout/StackedContainer.mjs";import"../screens/LandingScreen/styles.mjs";import"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"../components/CircleBorder.mjs";import"../components/ModalFooter.mjs";import"../svg/protected-by-privy.mjs";import"../components/ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"../screens/AffirmativeConsentScreen.mjs";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../screens/MfaScreens/StyledComponents.mjs";import"../screens/AllowlistRejectionScreen.mjs";import"../svg/lock-closed.mjs";import"../screens/AwaitingPasswordlessCodeScreen.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"../components/Layouts.mjs";import"../components/ScreenHeader.mjs";import"../screens/CaptchaScreen.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"../components/WrappedLoader.mjs";import"../screens/ConnectOnlyAuthenticatedScreen.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"../components/external-wallets/InjectedWalletIcon.mjs";import"../components/ui/chips/Chip.mjs";import"../components/ui/animation/LoadingSkeleton.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/phantom.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../screens/ConnectOnlyLandingScreen.mjs";import"../screens/ConnectOnlyStatusScreen.mjs";import"../svg/browser-extension-wallet-icon.mjs";import"../screens/ConnectionStatusScreen.mjs";import"./userAlreadyHasConnectedCoinbaseWallet.mjs";import"./walletconnect-v2.mjs";import"@walletconnect/ethereum-provider";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"../screens/CrossAppAuthScreen.mjs";import"../components/ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"../screens/DelegatedActionsConsentScreen.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"../components/ui/wallet/WalletInfoCard.mjs";import"../components/ui/layout/Column.mjs";import"../components/ui/typography/ErrorMessage.mjs";import"../components/ui/typography/LabelXs.mjs";import"../components/ui/wallet/shared.mjs";import"../screens/DelegatedActionsRevokeScreen.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"../screens/EmbeddedWalletConnectingScreen.mjs";import"../components/primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../lib/pkce.mjs";import"../screens/EmbeddedWalletCreatedScreen.mjs";import"../screens/EmbeddedWalletKeyExportScreen.mjs";import"../components/ui/banners/WarningBanner.mjs";import"../components/ui/typography/Subtitle.mjs";import"../components/ui/typography/Title.mjs";import"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"../components/Checkbox.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"../screens/ErrorScreen.mjs";import"../screens/FarcasterConnectStatusScreen.mjs";import"../components/CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"../components/OpenLink.mjs";import"../components/QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"../screens/FarcasterSignerStatusScreen.mjs";import"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import"../components/embedded-wallets/FundWalletMethodHeader.mjs";import"../components/primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"../components/ui/layout/Row.mjs";import"../components/ui/typography/LabelSm.mjs";import"../components/ui/wallet/NetworkBalanceCard.mjs";import"../components/ui/typography/Value.mjs";import"../components/ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"../components/ui/icons/Arbitum.mjs";import"../components/ui/icons/Avalanche.mjs";import"../components/ui/icons/Base.mjs";import"../components/ui/icons/Celo.mjs";import"../components/ui/icons/Linea.mjs";import"../components/ui/icons/Mainnnet.mjs";import"../components/ui/icons/Optimism.mjs";import"../components/ui/icons/Polygon.mjs";import"../components/ui/icons/Solana.mjs";import"../components/ui/icons/Zora.mjs";import"../components/ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/LinkPasskeyScreen.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../screens/Funding/AwaitingExternalTransferScreen.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"../screens/Funding/FundingEditAmountScreen.mjs";import"../screens/Funding/FundingMethodSelectionScreen.mjs";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"../components/ui/banners/ErrorBanner.mjs";import"../components/ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"../components/ui/icons/ApplePay.mjs";import"../components/ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../screens/Funding/ManualTransferScreen.mjs";import"../hooks/useWalletBalance.mjs";import"../screens/Funding/MoonpayStatusScreen.mjs";import"../svg/moonpay.mjs";import"../screens/Funding/TransferFromWalletScreen.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"../screens/InAppBrowserLoginNotPossible.mjs";import"../screens/InstallPhantomScreen.mjs";import"../components/TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"../components/AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"../components/ConnectEmailForm.mjs";import"../components/ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"../components/ConnectPhoneForm.mjs";import"../components/PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"../screens/LandingScreen/LandingScreen.mjs";import"../screens/LinkEmailScreen.mjs";import"../screens/LinkPhoneScreen.mjs";import"../screens/LinkWalletScreen.mjs";import"../screens/LoginFailedScreen.mjs";import"../svg/error-circle.mjs";import"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"../components/PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import"../components/embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../components/embedded-wallets/TransactionDetails.mjs";import"../components/embedded-wallets/DisplayInfoItem.mjs";import"../components/embedded-wallets/PriceDisplay.mjs";import"../components/embedded-wallets/TransactionTotal.mjs";import"../components/primitives/Accordion/index.mjs";import"../components/primitives/Accordion/AccordionContext.mjs";import"../components/embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../screens/OAuthStatusScreen.mjs";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../screens/PasskeySelectSignupOrLogin.mjs";import"../screens/PasskeyStatusScreen.mjs";import"../screens/PhantomInterstitialScreen.mjs";import"./phantom-redirect.mjs";import"../screens/Recovery/PasswordRecoveryScreen.mjs";import"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import"../screens/Recovery/RecoverySelectionScreen.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import"../components/ui/icons/WithCircleBorder.mjs";import"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"../components/embedded-wallets/SolanaTransactionDetails.mjs";import"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"../screens/SignRequestScreen.mjs";import"../components/embedded-wallets/StyledLogo.mjs";import"../screens/TelegramAuthScreen.mjs";import"../screens/UpdateEmailScreen.mjs";import"../components/UpdateEmailForm.mjs";import"../screens/UpdatePhoneScreen.mjs";import"../screens/UserLimitReachedScreen.mjs";import"../svg/alert-circle.mjs";import"../styles.mjs";import"../cssNormalize.mjs";import"../components/Dialog.mjs";import"../components/TelegramLoginButton.mjs";import"./solana/index.mjs";import"../types.mjs";import"../embedded-wallets/EmbeddedWalletIframe.mjs";import"../embedded-wallets/eventCallbacksQueue.mjs";import"../embedded-wallets/invokeWithMfa.mjs";import"../embedded-wallets/delegated-actions.mjs";import"../lib/caip2.mjs";import"../lib/cross-app/index.mjs";import"../lib/cross-app/authFlow.mjs";import"../auth-flows/cross-app.mjs";import"../lib/cross-app/popupCrossAppAuthFlow.mjs";import"../lib/cross-app/sendCrossAppRequest.mjs";import"../lib/funding/index.mjs";import"../lib/funding/prepareFundingModalData.mjs";import"../lib/funding/filterSupportedOptions.mjs";import"../lib/funding/usdc.mjs";import"../lib/funding/isFundingEnabled.mjs";import"../lib/popupOAuthFlow.mjs";import"../passkeys/transformResponseToSnakeCase.mjs";import"../auth-flows/oauth/detectCompletingOAuthFlow.mjs";import"../auth-flows/oauth/getIsHeadlessOAuthFlowInProgress.mjs";import"../auth-flows/oauth/OAuthFlow.mjs";import"./injected.mjs";import"./metamask.mjs";import"./phantom.mjs";import"./ethereum/EthereumNullConnector.mjs";import"./phantom-solana.mjs";import"./solana/SolanaNullConnector.mjs";import"../http.mjs";import"../lib/smart-wallet-helpers.mjs";import"../passkeys/transformOptionsToCamelCase.mjs";import"../session.mjs";import"js-cookie";import"../auth-flows/authFlowToAuthenticateMethod.mjs";import"../cookies.mjs";import"../hooks/useIdentityToken.mjs";import"zustand";
|
|
1
|
+
import"eventemitter3";import"../embedded-wallets/rpc/types.mjs";export{E as Embedded1193Provider}from"../privy-provider-C-cTZKVr.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"../utils/index.mjs";import"../utils/eth/getPublicClient.mjs";import"./getRpcTimeout.mjs";import"./providerTypes.mjs";import"react/jsx-runtime";import"mipd";import"react";import"react-device-detect";import"viem/utils";import"../auth-flows/custom-jwt-account.mjs";import"../errors.mjs";import"ofetch";import"../paths.mjs";import"../auth-flows/email.mjs";import"../auth-flows/getUiHeader.mjs";import"../auth-flows/farcaster.mjs";import"./walletconnect-registry.mjs";import"../storage.mjs";import"./get-legacy-injected-providers.mjs";import"./is-wallet-installed.mjs";import"viem";import"../effect.mjs";import"../auth-flows/guest.mjs";import"jose";import"../constants.mjs";import"../crypto.mjs";import"../auth-flows/passkey.mjs";import"../auth-flows/siwe.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../auth-flows/sms.mjs";import"../auth-flows/telegram.mjs";import"../hooks/captcha-context.mjs";import"../hooks/index.mjs";import"uuid";import"../accessToken.mjs";import"../token.mjs";import"../client/user.mjs";import"./coinbase.mjs";import"@coinbase/wallet-sdk";import"../svg/coinbase-wallet.mjs";import"./chains/index.mjs";import"./chains/arbitrum.mjs";import"./chains/arbitrumSepolia.mjs";import"./chains/avalanche.mjs";import"./chains/avalancheFuji.mjs";import"./chains/base.mjs";import"./chains/baseSepolia.mjs";import"./chains/berachainArtio.mjs";import"./chains/celo.mjs";import"./chains/celoAlfajores.mjs";import"./chains/filecoin.mjs";import"./chains/filecoinCalibration.mjs";import"./chains/garnetHolesky.mjs";import"./chains/holesky.mjs";import"./chains/linea.mjs";import"./chains/lineaTestnet.mjs";import"./chains/lukso.mjs";import"./chains/mainnet.mjs";import"./chains/optimism.mjs";import"./chains/optimismSepolia.mjs";import"./chains/polygon.mjs";import"./chains/polygonAmoy.mjs";import"./chains/redstone.mjs";import"./chains/sepolia.mjs";import"./chains/zora.mjs";import"./chains/zoraSepolia.mjs";import"./chains/zoraTestnet.mjs";import"./errors.mjs";import"@privy-io/js-sdk-core";import"./ethereum/index.mjs";import"./areWalletArraysEqual.mjs";import"./isBaseConnectedEthereumWallet.mjs";import"./base.mjs";import"./privyProxyProvider.mjs";import"./embedded.mjs";import"../svg/blobby.mjs";import"../components/Captcha.mjs";import"@marsidev/react-turnstile";import"../components/LoginModal.mjs";import"styled-components";import"../configuration/context.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"./chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/internal-context.mjs";import"../hooks/modal-context.mjs";import"../components/PrefetchedImage.mjs";import"../screens/index.mjs";import"../hooks/privy-context.mjs";import"../hooks/useElementHeight.mjs";import"../hooks/useRegisterMfaListener.mjs";import"../hooks/events-context.mjs";import"../screens/AccountNotFoundScreen.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"../components/Button.mjs";import"../components/Loader.mjs";import"../components/CircleBackground.mjs";import"../components/ModalHeader.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../components/layout/StackedContainer.mjs";import"../screens/LandingScreen/styles.mjs";import"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"../components/CircleBorder.mjs";import"../components/ModalFooter.mjs";import"../svg/protected-by-privy.mjs";import"../components/ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"../screens/AffirmativeConsentScreen.mjs";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../screens/MfaScreens/StyledComponents.mjs";import"../screens/AllowlistRejectionScreen.mjs";import"../svg/lock-closed.mjs";import"../screens/AwaitingPasswordlessCodeScreen.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"../components/Layouts.mjs";import"../components/ScreenHeader.mjs";import"../screens/CaptchaScreen.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"../components/WrappedLoader.mjs";import"../screens/ConnectOnlyAuthenticatedScreen.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"../components/external-wallets/InjectedWalletIcon.mjs";import"../components/ui/chips/Chip.mjs";import"../components/ui/animation/LoadingSkeleton.mjs";import"./mobile-wallets.mjs";import"../svg/backpack.mjs";import"../svg/okx-wallet.mjs";import"../svg/phantom.mjs";import"../svg/solflare.mjs";import"../types.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../screens/ConnectOnlyLandingScreen.mjs";import"../screens/ConnectOnlyStatusScreen.mjs";import"../svg/browser-extension-wallet-icon.mjs";import"../screens/ConnectionStatusScreen.mjs";import"./userAlreadyHasConnectedCoinbaseWallet.mjs";import"./walletconnect-v2.mjs";import"@walletconnect/ethereum-provider";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"../screens/CrossAppAuthScreen.mjs";import"../components/ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"../screens/DelegatedActionsConsentScreen.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"../components/ui/wallet/WalletInfoCard.mjs";import"../components/ui/layout/Column.mjs";import"../components/ui/typography/ErrorMessage.mjs";import"../components/ui/typography/LabelXs.mjs";import"../components/ui/wallet/shared.mjs";import"../screens/DelegatedActionsRevokeScreen.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"../screens/EmbeddedWalletConnectingScreen.mjs";import"../components/primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../lib/pkce.mjs";import"../screens/EmbeddedWalletCreatedScreen.mjs";import"../screens/EmbeddedWalletKeyExportScreen.mjs";import"../components/ui/banners/WarningBanner.mjs";import"../components/ui/typography/Subtitle.mjs";import"../components/ui/typography/Title.mjs";import"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"../components/Checkbox.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"../screens/ErrorScreen.mjs";import"../screens/FarcasterConnectStatusScreen.mjs";import"../components/CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"../components/OpenLink.mjs";import"../components/QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"../screens/FarcasterSignerStatusScreen.mjs";import"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import"../components/embedded-wallets/FundWalletMethodHeader.mjs";import"../components/primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"../components/ui/layout/Row.mjs";import"../components/ui/typography/LabelSm.mjs";import"../components/ui/wallet/NetworkBalanceCard.mjs";import"../components/ui/typography/Value.mjs";import"../components/ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"../components/ui/icons/Arbitum.mjs";import"../components/ui/icons/Avalanche.mjs";import"../components/ui/icons/Base.mjs";import"../components/ui/icons/Celo.mjs";import"../components/ui/icons/Linea.mjs";import"../components/ui/icons/Mainnnet.mjs";import"../components/ui/icons/Optimism.mjs";import"../components/ui/icons/Polygon.mjs";import"../components/ui/icons/Solana.mjs";import"../components/ui/icons/Zora.mjs";import"../components/ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/LinkPasskeyScreen.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../screens/Funding/AwaitingExternalTransferScreen.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"../screens/Funding/FundingEditAmountScreen.mjs";import"../screens/Funding/FundingMethodSelectionScreen.mjs";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"../components/ui/banners/ErrorBanner.mjs";import"../components/ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"../components/ui/icons/ApplePay.mjs";import"../components/ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../screens/Funding/ManualTransferScreen.mjs";import"../hooks/useWalletBalance.mjs";import"../screens/Funding/MoonpayStatusScreen.mjs";import"../svg/moonpay.mjs";import"../screens/Funding/TransferFromWalletScreen.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"../screens/InAppBrowserLoginNotPossible.mjs";import"../screens/InstallWalletScreen.mjs";import"../components/TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"../components/AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"../components/ConnectEmailForm.mjs";import"../components/ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"../components/ConnectPhoneForm.mjs";import"../components/PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"../screens/LandingScreen/LandingScreen.mjs";import"../screens/LinkEmailScreen.mjs";import"../screens/LinkPhoneScreen.mjs";import"../screens/LinkWalletScreen.mjs";import"../screens/LoginFailedScreen.mjs";import"../svg/error-circle.mjs";import"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"../components/PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import"../components/embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../components/embedded-wallets/TransactionDetails.mjs";import"../components/embedded-wallets/DisplayInfoItem.mjs";import"../components/embedded-wallets/PriceDisplay.mjs";import"../components/embedded-wallets/TransactionTotal.mjs";import"../components/primitives/Accordion/index.mjs";import"../components/primitives/Accordion/AccordionContext.mjs";import"../components/embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../screens/OAuthStatusScreen.mjs";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../screens/PasskeySelectSignupOrLogin.mjs";import"../screens/PasskeyStatusScreen.mjs";import"../screens/Recovery/PasswordRecoveryScreen.mjs";import"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import"../screens/Recovery/RecoverySelectionScreen.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import"../components/ui/icons/WithCircleBorder.mjs";import"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"../components/primitives/InteractiveLabel.mjs";import"../screens/SendTransactionScreen/TokenDescription.mjs";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/TransactionValidation.mjs";import"../components/Pill.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"../components/embedded-wallets/SolanaTransactionDetails.mjs";import"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/ScanDetails.mjs";import"../components/primitives/JsonTree.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/lib.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"../screens/SignRequestScreen.mjs";import"../components/embedded-wallets/StyledLogo.mjs";import"../screens/TelegramAuthScreen.mjs";import"../screens/UpdateEmailScreen.mjs";import"../components/UpdateEmailForm.mjs";import"../screens/UpdatePhoneScreen.mjs";import"../screens/UserLimitReachedScreen.mjs";import"../svg/alert-circle.mjs";import"../screens/WalletInterstitialScreen.mjs";import"../styles.mjs";import"../cssNormalize.mjs";import"../components/Dialog.mjs";import"../components/TelegramLoginButton.mjs";import"./solana/index.mjs";import"./stored-connection.mjs";import"../embedded-wallets/EmbeddedWalletIframe.mjs";import"../embedded-wallets/eventCallbacksQueue.mjs";import"../embedded-wallets/invokeWithMfa.mjs";import"../embedded-wallets/delegated-actions.mjs";import"../lib/caip2.mjs";import"../lib/cross-app/index.mjs";import"../lib/cross-app/authFlow.mjs";import"../auth-flows/cross-app.mjs";import"../lib/cross-app/popupCrossAppAuthFlow.mjs";import"../lib/cross-app/sendCrossAppRequest.mjs";import"../lib/funding/index.mjs";import"../lib/funding/prepareFundingModalData.mjs";import"../lib/funding/filterSupportedOptions.mjs";import"../lib/funding/usdc.mjs";import"../lib/funding/isFundingEnabled.mjs";import"../lib/popupOAuthFlow.mjs";import"../passkeys/transformResponseToSnakeCase.mjs";import"../auth-flows/oauth/detectCompletingOAuthFlow.mjs";import"../auth-flows/oauth/getIsHeadlessOAuthFlowInProgress.mjs";import"../auth-flows/oauth/OAuthFlow.mjs";import"./ethereum/EthereumNullConnector.mjs";import"./injected.mjs";import"./metamask.mjs";import"./solana/SolanaNullConnector.mjs";import"../http.mjs";import"../lib/smart-wallet-helpers.mjs";import"../passkeys/transformOptionsToCamelCase.mjs";import"../session.mjs";import"js-cookie";import"../auth-flows/authFlowToAuthenticateMethod.mjs";import"../cookies.mjs";import"../hooks/useIdentityToken.mjs";import"zustand";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EthereumWalletConnector as t}from"./index.mjs";import{DEFAULT_RPC_TIMEOUT as e}from"../../constants.mjs";import{PrivyProxyProvider as
|
|
1
|
+
import{EthereumWalletConnector as t}from"./index.mjs";import{DEFAULT_RPC_TIMEOUT as e}from"../../constants.mjs";import{PrivyProxyProvider as i}from"../privyProxyProvider.mjs";import"viem/utils";import"../../errors.mjs";import"ofetch";import"../../storage.mjs";import"../../utils/index.mjs";import"../get-legacy-injected-providers.mjs";import"../is-wallet-installed.mjs";import"../../utils/eth/getPublicClient.mjs";import"viem";import"../areWalletArraysEqual.mjs";import"../isBaseConnectedEthereumWallet.mjs";import"../base.mjs";import"eventemitter3";import"../getRpcTimeout.mjs";import"../errors.mjs";import"@privy-io/js-sdk-core";class r extends t{get walletBranding(){return{id:this.id,name:this.name,icon:this.icon}}async initialize(){this.initialized=!0,this.emit("initialized")}async connect(){throw Error("connect called for an uninstalled wallet via the EthereumNullConnector")}disconnect(){throw Error("disconnect called for an uninstalled wallet via the EthereumNullConnector")}promptConnection(t){throw Error(`promptConnection called for an uninstalled wallet via the EthereumNullConnector for ${t}`)}constructor({id:t,name:r,icon:o,walletClientType:n,defaultChain:s}){super(n,[],s,{}),this.connectorType="null",this.proxyProvider=new i(void 0,e),this.id=t,this.name=r,this.icon=o,this.connectorType=n}}export{r as EthereumNullConnector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAddress as
|
|
1
|
+
import{getAddress as e,toHex as t}from"viem/utils";import{getPrivyWalletKey as i,DEFAULT_NETWORK as n}from"../../constants.mjs";import{PrivyConnectorError as r}from"../../errors.mjs";import s from"../../storage.mjs";import{formatChainIdToCAIP2 as o,sleep as a,invokeUntilSettled as c}from"../../utils/index.mjs";import{areWalletArraysEqual as h}from"../areWalletArraysEqual.mjs";import{WalletConnector as l}from"../base.mjs";import{getRpcTimeout as d}from"../getRpcTimeout.mjs";import"ofetch";import"../get-legacy-injected-providers.mjs";import"../is-wallet-installed.mjs";import"../../utils/eth/getPublicClient.mjs";import"viem";import"../isBaseConnectedEthereumWallet.mjs";import"eventemitter3";function u(e){return"ethereum"===e.chainType}class m extends l{buildConnectedWallet(t,i,n,s){let c=async()=>!!this.wallets.find((i=>e(i.address)===e(t)));return{type:"ethereum",address:e(t),chainId:i,meta:n,imported:s,switchChain:async n=>{let s,h;if(!c)throw new r("Wallet is not currently connected.");let l=this.wallets.find((i=>e(i.address)===e(t)))?.chainId;if(!l)throw new r("Unable to determine current chainId.");if("number"==typeof n?(s=`0x${n.toString(16)}`,h=n):(s=n,h=Number(n)),l===o(s))return;let d=this.chains.find((e=>e.id===h));if(!d)throw new r(`Unsupported chainId: ${n}`);let u=async()=>{await this.proxyProvider.request({method:"wallet_switchEthereumChain",params:[{chainId:s}]})};try{return await u()}catch(e){if(((e,t)=>{switch(t){case"coinbase_wallet":return e.message.includes("addEthereumChain");case"rabby_wallet":return e.message.includes("Unrecognized chain ID");default:return 4902===e.code||e.message?.includes("4902")}})(e,this.walletClientType))return"rabby_wallet"===this.walletClientType&&await a(300),await this.proxyProvider.request({method:"wallet_addEthereumChain",params:[{chainId:s,chainName:d.name,nativeCurrency:d.nativeCurrency,rpcUrls:[d.rpcUrls.default?.http[0]??""],blockExplorerUrls:[d.blockExplorers?.default.url??""]}]}),u();if("rainbow"===this.walletClientType&&e.message?.includes("wallet_switchEthereumChain"))throw new r(`Rainbow does not support the chainId ${i}`);throw e}},connectedAt:Date.now(),walletClientType:this.walletClientType,connectorType:this.connectorType,isConnected:c,getEthereumProvider:async()=>{if(!await c())throw new r("Wallet is not currently connected.");return this.proxyProvider},sign:async e=>{if(!await c())throw new r("Wallet is not currently connected.");return await this.sign(e)},disconnect:()=>{this.disconnect()}}}async syncAccounts(t){let r,a=t;try{if(void 0===a){let e=await c((()=>this.proxyProvider.request({method:"eth_accounts"})),{maxAttempts:10,delayMs:500});console.debug(`eth_accounts for ${this.walletClientType}:`,e),Array.isArray(e)&&(a=e)}}catch(e){console.debug("Wallet did not respond to eth_accounts. Defaulting to prefetched accounts.",e)}if(!a||!Array.isArray(a)||a.length<=0||!a[0])return;let l=a[0],d=e(l),u=[];if("privy"===this.walletClientType){let e=s.get(i(d));this.chains.find((t=>t.id===Number(e)))||(s.del(i(d)),e=null),r=e||`0x${this.defaultChain.id.toString(16)}`;try{await this.proxyProvider.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]})}catch(e){console.warn(`Unable to switch embedded wallet to chain ID ${r} on initialization`)}}else try{let e=await c((()=>this.proxyProvider.request({method:"eth_chainId"})),{maxAttempts:10,delayMs:500});if(console.debug(`eth_chainId for ${this.walletClientType}:`,e),"string"==typeof e)r=e;else{if("number"!=typeof e)throw Error("Invalid chainId returned from provider");r=`0x${e.toString(16)}`}}catch(e){console.warn(`Failed to get chainId from provider, defaulting to ${n}`,e),r=n}let m=o(r);if(!u.find((t=>e(t.address)===d))){let t={name:this.walletBranding.name,icon:"string"==typeof this.walletBranding.icon?this.walletBranding.icon:void 0,id:this.walletBranding.id};u.push(this.buildConnectedWallet(e(l),m,t,"embedded_imported"===this.connectorType))}h(u,this.wallets)||(this.wallets=u,this.emit("walletsUpdated"))}async getConnectedWallet(){let t=await this.proxyProvider.request({method:"eth_accounts"});return this.wallets.sort(((e,t)=>t.connectedAt-e.connectedAt)).find((i=>t.find((t=>e(t)===e(i.address)))))||null}async isConnected(){let e=await this.proxyProvider.request({method:"eth_accounts"});return Array.isArray(e)&&e.length>0}async sign(e){return await this.connect({showPrompt:!1}),this.proxyProvider.request({method:"personal_sign",params:[t(e),this.wallets[0]?.address]})}subscribeListeners(){this.proxyProvider.on("accountsChanged",this.onAccountsChanged),this.proxyProvider.on("chainChanged",this.onChainChanged),this.proxyProvider.on("disconnect",this.onDisconnect),this.proxyProvider.on("connect",this.onConnect)}unsubscribeListeners(){this.proxyProvider.removeListener("accountsChanged",this.onAccountsChanged),this.proxyProvider.removeListener("chainChanged",this.onChainChanged),this.proxyProvider.removeListener("disconnect",this.onDisconnect),this.proxyProvider.removeListener("connect",this.onConnect)}constructor(e,t,n,r){super(e),this.chainType="ethereum",this.onAccountsChanged=e=>{0===e.length?this.onDisconnect():this.syncAccounts(e)},this.onChainChanged=e=>{this.wallets.forEach((t=>{t.chainId=o(e),"privy"===this.walletClientType&&s.put(i(t.address),e)})),this.emit("walletsUpdated")},this.onDisconnect=()=>{this.connected=!1,this.wallets=[],this.emit("walletsUpdated")},this.onConnect=()=>{this.connected=!0,this.syncAccounts()},this.wallets=[],this.walletClientType=e,this.chains=t,this.defaultChain=n,this.rpcConfig=r,this.rpcTimeoutDuration=d(r,e),this.connected=!1,this.initialized=!1}}export{m as EthereumWalletConnector,u as isEthereumWalletConnector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"eventemitter3";import"viem/utils";import"../client/user.mjs";import"../constants.mjs";import"../storage.mjs";import"../utils/index.mjs";import"./coinbase.mjs";import"./embedded.mjs";export{C as ConnectorManager,l as loadConnectionHistory}from"../privy-provider-CuvYT8ML.mjs";import"./ethereum/index.mjs";import"./injected.mjs";import"./is-wallet-installed.mjs";import"./isBaseConnectedEthereumWallet.mjs";import"./metamask.mjs";import"./phantom.mjs";import"./phantom-solana.mjs";import"./privyProxyProvider.mjs";import"./solana/index.mjs";import"./walletconnect-v2.mjs";import"./get-legacy-injected-providers.mjs";import"../errors.mjs";import"ofetch";import"../utils/eth/getPublicClient.mjs";import"viem";import"@coinbase/wallet-sdk";import"../svg/coinbase-wallet.mjs";import"react/jsx-runtime";import"./chains/index.mjs";import"./chains/arbitrum.mjs";import"./chains/arbitrumSepolia.mjs";import"./chains/avalanche.mjs";import"./chains/avalancheFuji.mjs";import"./chains/base.mjs";import"./chains/baseSepolia.mjs";import"./chains/berachainArtio.mjs";import"./chains/celo.mjs";import"./chains/celoAlfajores.mjs";import"./chains/filecoin.mjs";import"./chains/filecoinCalibration.mjs";import"./chains/garnetHolesky.mjs";import"./chains/holesky.mjs";import"./chains/linea.mjs";import"./chains/lineaTestnet.mjs";import"./chains/lukso.mjs";import"./chains/mainnet.mjs";import"./chains/optimism.mjs";import"./chains/optimismSepolia.mjs";import"./chains/polygon.mjs";import"./chains/polygonAmoy.mjs";import"./chains/redstone.mjs";import"./chains/sepolia.mjs";import"./chains/zora.mjs";import"./chains/zoraSepolia.mjs";import"./chains/zoraTestnet.mjs";import"./errors.mjs";import"@privy-io/js-sdk-core";import"./areWalletArraysEqual.mjs";import"./base.mjs";import"./getRpcTimeout.mjs";import"../svg/blobby.mjs";import"mipd";import"react";import"react-device-detect";import"../auth-flows/custom-jwt-account.mjs";import"../paths.mjs";import"../auth-flows/email.mjs";import"../auth-flows/getUiHeader.mjs";import"../auth-flows/farcaster.mjs";import"./walletconnect-registry.mjs";import"../effect.mjs";import"../auth-flows/guest.mjs";import"jose";import"../crypto.mjs";import"../auth-flows/passkey.mjs";import"../auth-flows/siwe.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../auth-flows/sms.mjs";import"../auth-flows/telegram.mjs";import"../hooks/captcha-context.mjs";import"../hooks/index.mjs";import"uuid";import"../accessToken.mjs";import"../token.mjs";import"../embedded-wallets/rpc/types.mjs";import"../components/Captcha.mjs";import"@marsidev/react-turnstile";import"../components/LoginModal.mjs";import"styled-components";import"../configuration/context.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"./chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/internal-context.mjs";import"../hooks/modal-context.mjs";import"../components/PrefetchedImage.mjs";import"../screens/index.mjs";import"../hooks/privy-context.mjs";import"../hooks/useElementHeight.mjs";import"../hooks/useRegisterMfaListener.mjs";import"../hooks/events-context.mjs";import"../screens/AccountNotFoundScreen.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"../components/Button.mjs";import"../components/Loader.mjs";import"../components/CircleBackground.mjs";import"../components/ModalHeader.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../components/layout/StackedContainer.mjs";import"../screens/LandingScreen/styles.mjs";import"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"../components/CircleBorder.mjs";import"../components/ModalFooter.mjs";import"../svg/protected-by-privy.mjs";import"../components/ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"../screens/AffirmativeConsentScreen.mjs";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../screens/MfaScreens/StyledComponents.mjs";import"../screens/AllowlistRejectionScreen.mjs";import"../svg/lock-closed.mjs";import"../screens/AwaitingPasswordlessCodeScreen.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"../components/Layouts.mjs";import"../components/ScreenHeader.mjs";import"../screens/CaptchaScreen.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"../components/WrappedLoader.mjs";import"../screens/ConnectOnlyAuthenticatedScreen.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"../components/external-wallets/InjectedWalletIcon.mjs";import"../components/ui/chips/Chip.mjs";import"../components/ui/animation/LoadingSkeleton.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/phantom.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../screens/ConnectOnlyLandingScreen.mjs";import"../screens/ConnectOnlyStatusScreen.mjs";import"../svg/browser-extension-wallet-icon.mjs";import"../screens/ConnectionStatusScreen.mjs";import"./userAlreadyHasConnectedCoinbaseWallet.mjs";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"@walletconnect/ethereum-provider";import"../screens/CrossAppAuthScreen.mjs";import"../components/ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"../screens/DelegatedActionsConsentScreen.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"../components/ui/wallet/WalletInfoCard.mjs";import"../components/ui/layout/Column.mjs";import"../components/ui/typography/ErrorMessage.mjs";import"../components/ui/typography/LabelXs.mjs";import"../components/ui/wallet/shared.mjs";import"../screens/DelegatedActionsRevokeScreen.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"../screens/EmbeddedWalletConnectingScreen.mjs";import"../components/primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../lib/pkce.mjs";import"../screens/EmbeddedWalletCreatedScreen.mjs";import"../screens/EmbeddedWalletKeyExportScreen.mjs";import"../components/ui/banners/WarningBanner.mjs";import"../components/ui/typography/Subtitle.mjs";import"../components/ui/typography/Title.mjs";import"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"../components/Checkbox.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"../screens/ErrorScreen.mjs";import"../screens/FarcasterConnectStatusScreen.mjs";import"../components/CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"../components/OpenLink.mjs";import"../components/QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"../screens/FarcasterSignerStatusScreen.mjs";import"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import"../components/embedded-wallets/FundWalletMethodHeader.mjs";import"../components/primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"../components/ui/layout/Row.mjs";import"../components/ui/typography/LabelSm.mjs";import"../components/ui/wallet/NetworkBalanceCard.mjs";import"../components/ui/typography/Value.mjs";import"../components/ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"../components/ui/icons/Arbitum.mjs";import"../components/ui/icons/Avalanche.mjs";import"../components/ui/icons/Base.mjs";import"../components/ui/icons/Celo.mjs";import"../components/ui/icons/Linea.mjs";import"../components/ui/icons/Mainnnet.mjs";import"../components/ui/icons/Optimism.mjs";import"../components/ui/icons/Polygon.mjs";import"../components/ui/icons/Solana.mjs";import"../components/ui/icons/Zora.mjs";import"../components/ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/LinkPasskeyScreen.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../screens/Funding/AwaitingExternalTransferScreen.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"../screens/Funding/FundingEditAmountScreen.mjs";import"../screens/Funding/FundingMethodSelectionScreen.mjs";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"../components/ui/banners/ErrorBanner.mjs";import"../components/ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"../components/ui/icons/ApplePay.mjs";import"../components/ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../screens/Funding/ManualTransferScreen.mjs";import"../hooks/useWalletBalance.mjs";import"../screens/Funding/MoonpayStatusScreen.mjs";import"../svg/moonpay.mjs";import"../screens/Funding/TransferFromWalletScreen.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"../screens/InAppBrowserLoginNotPossible.mjs";import"../screens/InstallPhantomScreen.mjs";import"../components/TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"../components/AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"../components/ConnectEmailForm.mjs";import"../components/ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"../components/ConnectPhoneForm.mjs";import"../components/PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"../screens/LandingScreen/LandingScreen.mjs";import"../screens/LinkEmailScreen.mjs";import"../screens/LinkPhoneScreen.mjs";import"../screens/LinkWalletScreen.mjs";import"../screens/LoginFailedScreen.mjs";import"../svg/error-circle.mjs";import"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"../components/PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import"../components/embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"../components/embedded-wallets/TransactionDetails.mjs";import"../components/embedded-wallets/DisplayInfoItem.mjs";import"../components/embedded-wallets/PriceDisplay.mjs";import"../components/embedded-wallets/TransactionTotal.mjs";import"../components/primitives/Accordion/index.mjs";import"../components/primitives/Accordion/AccordionContext.mjs";import"../components/embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../screens/OAuthStatusScreen.mjs";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../screens/PasskeySelectSignupOrLogin.mjs";import"../screens/PasskeyStatusScreen.mjs";import"../screens/PhantomInterstitialScreen.mjs";import"./phantom-redirect.mjs";import"../screens/Recovery/PasswordRecoveryScreen.mjs";import"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import"../screens/Recovery/RecoverySelectionScreen.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import"../components/ui/icons/WithCircleBorder.mjs";import"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"../components/embedded-wallets/SolanaTransactionDetails.mjs";import"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"../screens/SignRequestScreen.mjs";import"../components/embedded-wallets/StyledLogo.mjs";import"../screens/TelegramAuthScreen.mjs";import"../screens/UpdateEmailScreen.mjs";import"../components/UpdateEmailForm.mjs";import"../screens/UpdatePhoneScreen.mjs";import"../screens/UserLimitReachedScreen.mjs";import"../svg/alert-circle.mjs";import"../styles.mjs";import"../cssNormalize.mjs";import"../components/Dialog.mjs";import"../components/TelegramLoginButton.mjs";import"../embedded-wallets/EmbeddedWalletIframe.mjs";import"../embedded-wallets/eventCallbacksQueue.mjs";import"../embedded-wallets/invokeWithMfa.mjs";import"../embedded-wallets/delegated-actions.mjs";import"../lib/caip2.mjs";import"../lib/cross-app/index.mjs";import"../lib/cross-app/authFlow.mjs";import"../auth-flows/cross-app.mjs";import"../lib/cross-app/popupCrossAppAuthFlow.mjs";import"../lib/cross-app/sendCrossAppRequest.mjs";import"../lib/funding/index.mjs";import"../lib/funding/prepareFundingModalData.mjs";import"../lib/funding/filterSupportedOptions.mjs";import"../lib/funding/usdc.mjs";import"../lib/funding/isFundingEnabled.mjs";import"../lib/popupOAuthFlow.mjs";import"../passkeys/transformResponseToSnakeCase.mjs";import"../auth-flows/oauth/detectCompletingOAuthFlow.mjs";import"../auth-flows/oauth/getIsHeadlessOAuthFlowInProgress.mjs";import"../auth-flows/oauth/OAuthFlow.mjs";import"./providerTypes.mjs";import"../http.mjs";import"../lib/smart-wallet-helpers.mjs";import"../passkeys/transformOptionsToCamelCase.mjs";import"../session.mjs";import"js-cookie";import"../auth-flows/authFlowToAuthenticateMethod.mjs";import"../cookies.mjs";import"../hooks/useIdentityToken.mjs";import"zustand";import"./ethereum/EthereumNullConnector.mjs";import"./solana/SolanaNullConnector.mjs";import"../types.mjs";
|
|
1
|
+
import"eventemitter3";import"viem/utils";import"../client/user.mjs";import"../constants.mjs";import"../storage.mjs";import"../utils/index.mjs";import"./coinbase.mjs";import"./embedded.mjs";export{C as ConnectorManager}from"../privy-provider-C-cTZKVr.mjs";import"./ethereum/index.mjs";import"./ethereum/EthereumNullConnector.mjs";import"./injected.mjs";import"./isBaseConnectedEthereumWallet.mjs";import"./metamask.mjs";import"./mobile-wallets.mjs";import"./privyProxyProvider.mjs";import"./solana/index.mjs";import"./solana/SolanaNullConnector.mjs";import"./stored-connection.mjs";import"./walletconnect-v2.mjs";import"./get-legacy-injected-providers.mjs";import"./is-wallet-installed.mjs";import"../errors.mjs";import"ofetch";import"../utils/eth/getPublicClient.mjs";import"viem";import"@coinbase/wallet-sdk";import"../svg/coinbase-wallet.mjs";import"react/jsx-runtime";import"./chains/index.mjs";import"./chains/arbitrum.mjs";import"./chains/arbitrumSepolia.mjs";import"./chains/avalanche.mjs";import"./chains/avalancheFuji.mjs";import"./chains/base.mjs";import"./chains/baseSepolia.mjs";import"./chains/berachainArtio.mjs";import"./chains/celo.mjs";import"./chains/celoAlfajores.mjs";import"./chains/filecoin.mjs";import"./chains/filecoinCalibration.mjs";import"./chains/garnetHolesky.mjs";import"./chains/holesky.mjs";import"./chains/linea.mjs";import"./chains/lineaTestnet.mjs";import"./chains/lukso.mjs";import"./chains/mainnet.mjs";import"./chains/optimism.mjs";import"./chains/optimismSepolia.mjs";import"./chains/polygon.mjs";import"./chains/polygonAmoy.mjs";import"./chains/redstone.mjs";import"./chains/sepolia.mjs";import"./chains/zora.mjs";import"./chains/zoraSepolia.mjs";import"./chains/zoraTestnet.mjs";import"./errors.mjs";import"@privy-io/js-sdk-core";import"./areWalletArraysEqual.mjs";import"./base.mjs";import"./getRpcTimeout.mjs";import"../svg/blobby.mjs";import"mipd";import"react";import"react-device-detect";import"../auth-flows/custom-jwt-account.mjs";import"../paths.mjs";import"../auth-flows/email.mjs";import"../auth-flows/getUiHeader.mjs";import"../auth-flows/farcaster.mjs";import"./walletconnect-registry.mjs";import"../effect.mjs";import"../auth-flows/guest.mjs";import"jose";import"../crypto.mjs";import"../auth-flows/passkey.mjs";import"../auth-flows/siwe.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../auth-flows/sms.mjs";import"../auth-flows/telegram.mjs";import"../hooks/captcha-context.mjs";import"../hooks/index.mjs";import"uuid";import"../accessToken.mjs";import"../token.mjs";import"../embedded-wallets/rpc/types.mjs";import"../components/Captcha.mjs";import"@marsidev/react-turnstile";import"../components/LoginModal.mjs";import"styled-components";import"../configuration/context.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"./chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/internal-context.mjs";import"../hooks/modal-context.mjs";import"../components/PrefetchedImage.mjs";import"../screens/index.mjs";import"../hooks/privy-context.mjs";import"../hooks/useElementHeight.mjs";import"../hooks/useRegisterMfaListener.mjs";import"../hooks/events-context.mjs";import"../screens/AccountNotFoundScreen.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"../components/Button.mjs";import"../components/Loader.mjs";import"../components/CircleBackground.mjs";import"../components/ModalHeader.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../components/layout/StackedContainer.mjs";import"../screens/LandingScreen/styles.mjs";import"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"../components/CircleBorder.mjs";import"../components/ModalFooter.mjs";import"../svg/protected-by-privy.mjs";import"../components/ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"../screens/AffirmativeConsentScreen.mjs";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../screens/MfaScreens/StyledComponents.mjs";import"../screens/AllowlistRejectionScreen.mjs";import"../svg/lock-closed.mjs";import"../screens/AwaitingPasswordlessCodeScreen.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"../components/Layouts.mjs";import"../components/ScreenHeader.mjs";import"../screens/CaptchaScreen.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"../components/WrappedLoader.mjs";import"../screens/ConnectOnlyAuthenticatedScreen.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"../components/external-wallets/InjectedWalletIcon.mjs";import"../components/ui/chips/Chip.mjs";import"../components/ui/animation/LoadingSkeleton.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/backpack.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/okx-wallet.mjs";import"../svg/phantom.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/solflare.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../types.mjs";import"../screens/ConnectOnlyLandingScreen.mjs";import"../screens/ConnectOnlyStatusScreen.mjs";import"../svg/browser-extension-wallet-icon.mjs";import"../screens/ConnectionStatusScreen.mjs";import"./userAlreadyHasConnectedCoinbaseWallet.mjs";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"@walletconnect/ethereum-provider";import"../screens/CrossAppAuthScreen.mjs";import"../components/ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"../screens/DelegatedActionsConsentScreen.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"../components/ui/wallet/WalletInfoCard.mjs";import"../components/ui/layout/Column.mjs";import"../components/ui/typography/ErrorMessage.mjs";import"../components/ui/typography/LabelXs.mjs";import"../components/ui/wallet/shared.mjs";import"../screens/DelegatedActionsRevokeScreen.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"../screens/EmbeddedWalletConnectingScreen.mjs";import"../components/primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../lib/pkce.mjs";import"../screens/EmbeddedWalletCreatedScreen.mjs";import"../screens/EmbeddedWalletKeyExportScreen.mjs";import"../components/ui/banners/WarningBanner.mjs";import"../components/ui/typography/Subtitle.mjs";import"../components/ui/typography/Title.mjs";import"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"../components/Checkbox.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"../screens/ErrorScreen.mjs";import"../screens/FarcasterConnectStatusScreen.mjs";import"../components/CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"../components/OpenLink.mjs";import"../components/QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"../screens/FarcasterSignerStatusScreen.mjs";import"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import"../components/embedded-wallets/FundWalletMethodHeader.mjs";import"../components/primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"../components/ui/layout/Row.mjs";import"../components/ui/typography/LabelSm.mjs";import"../components/ui/wallet/NetworkBalanceCard.mjs";import"../components/ui/typography/Value.mjs";import"../components/ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"../components/ui/icons/Arbitum.mjs";import"../components/ui/icons/Avalanche.mjs";import"../components/ui/icons/Base.mjs";import"../components/ui/icons/Celo.mjs";import"../components/ui/icons/Linea.mjs";import"../components/ui/icons/Mainnnet.mjs";import"../components/ui/icons/Optimism.mjs";import"../components/ui/icons/Polygon.mjs";import"../components/ui/icons/Solana.mjs";import"../components/ui/icons/Zora.mjs";import"../components/ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/LinkPasskeyScreen.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../screens/Funding/AwaitingExternalTransferScreen.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"../screens/Funding/FundingEditAmountScreen.mjs";import"../screens/Funding/FundingMethodSelectionScreen.mjs";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"../components/ui/banners/ErrorBanner.mjs";import"../components/ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"../components/ui/icons/ApplePay.mjs";import"../components/ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../screens/Funding/ManualTransferScreen.mjs";import"../hooks/useWalletBalance.mjs";import"../screens/Funding/MoonpayStatusScreen.mjs";import"../svg/moonpay.mjs";import"../screens/Funding/TransferFromWalletScreen.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"../screens/InAppBrowserLoginNotPossible.mjs";import"../screens/InstallWalletScreen.mjs";import"../components/TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"../components/AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"../components/ConnectEmailForm.mjs";import"../components/ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"../components/ConnectPhoneForm.mjs";import"../components/PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"../screens/LandingScreen/LandingScreen.mjs";import"../screens/LinkEmailScreen.mjs";import"../screens/LinkPhoneScreen.mjs";import"../screens/LinkWalletScreen.mjs";import"../screens/LoginFailedScreen.mjs";import"../svg/error-circle.mjs";import"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"../components/PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import"../components/embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"../components/embedded-wallets/TransactionDetails.mjs";import"../components/embedded-wallets/DisplayInfoItem.mjs";import"../components/embedded-wallets/PriceDisplay.mjs";import"../components/embedded-wallets/TransactionTotal.mjs";import"../components/primitives/Accordion/index.mjs";import"../components/primitives/Accordion/AccordionContext.mjs";import"../components/embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../screens/OAuthStatusScreen.mjs";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../screens/PasskeySelectSignupOrLogin.mjs";import"../screens/PasskeyStatusScreen.mjs";import"../screens/Recovery/PasswordRecoveryScreen.mjs";import"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import"../screens/Recovery/RecoverySelectionScreen.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import"../components/ui/icons/WithCircleBorder.mjs";import"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"../components/primitives/InteractiveLabel.mjs";import"../screens/SendTransactionScreen/TokenDescription.mjs";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/TransactionValidation.mjs";import"../components/Pill.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"../components/embedded-wallets/SolanaTransactionDetails.mjs";import"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/ScanDetails.mjs";import"../components/primitives/JsonTree.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/lib.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"../screens/SignRequestScreen.mjs";import"../components/embedded-wallets/StyledLogo.mjs";import"../screens/TelegramAuthScreen.mjs";import"../screens/UpdateEmailScreen.mjs";import"../components/UpdateEmailForm.mjs";import"../screens/UpdatePhoneScreen.mjs";import"../screens/UserLimitReachedScreen.mjs";import"../svg/alert-circle.mjs";import"../screens/WalletInterstitialScreen.mjs";import"../styles.mjs";import"../cssNormalize.mjs";import"../components/Dialog.mjs";import"../components/TelegramLoginButton.mjs";import"../embedded-wallets/EmbeddedWalletIframe.mjs";import"../embedded-wallets/eventCallbacksQueue.mjs";import"../embedded-wallets/invokeWithMfa.mjs";import"../embedded-wallets/delegated-actions.mjs";import"../lib/caip2.mjs";import"../lib/cross-app/index.mjs";import"../lib/cross-app/authFlow.mjs";import"../auth-flows/cross-app.mjs";import"../lib/cross-app/popupCrossAppAuthFlow.mjs";import"../lib/cross-app/sendCrossAppRequest.mjs";import"../lib/funding/index.mjs";import"../lib/funding/prepareFundingModalData.mjs";import"../lib/funding/filterSupportedOptions.mjs";import"../lib/funding/usdc.mjs";import"../lib/funding/isFundingEnabled.mjs";import"../lib/popupOAuthFlow.mjs";import"../passkeys/transformResponseToSnakeCase.mjs";import"../auth-flows/oauth/detectCompletingOAuthFlow.mjs";import"../auth-flows/oauth/getIsHeadlessOAuthFlowInProgress.mjs";import"../auth-flows/oauth/OAuthFlow.mjs";import"./providerTypes.mjs";import"../http.mjs";import"../lib/smart-wallet-helpers.mjs";import"../passkeys/transformOptionsToCamelCase.mjs";import"../session.mjs";import"js-cookie";import"../auth-flows/authFlowToAuthenticateMethod.mjs";import"../cookies.mjs";import"../hooks/useIdentityToken.mjs";import"zustand";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLegacyInjectedName as e}from"./get-legacy-injected-providers.mjs";const r=()=>{let e=window;if(!e.ethereum)return!1;if(t(window.ethereum,!1))return!0;if(e.ethereum.providers)for(let r of e.ethereum.providers)if(t(r,!1))return!0;return!!window.ethereum.isZerion},t=(r,i)=>{if(!r.isMetaMask)return!1;if(r.isMetaMask&&!i)return!0;if(r.isBraveWallet&&!r._events&&!r._state||"MetaMask"!==e(r))return!1;if(r.providers)for(let e of r.providers)if(!t(e))return!1;return!0},i=()=>{
|
|
1
|
+
import{getLegacyInjectedName as e}from"./get-legacy-injected-providers.mjs";const r=()=>{let e=window;if(!e.ethereum)return!1;if(t(window.ethereum,!1))return!0;if(e.ethereum.providers)for(let r of e.ethereum.providers)if(t(r,!1))return!0;return!!window.ethereum.isZerion},t=(r,i)=>{if(!r.isMetaMask)return!1;if(r.isMetaMask&&!i)return!0;if(r.isBraveWallet&&!r._events&&!r._state||"MetaMask"!==e(r))return!1;if(r.providers)for(let e of r.providers)if(!t(e))return!1;return!0},i=()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers)for(let r of e.ethereum.providers)if(r&&r.isCoinbaseWallet)return!0;return!1};export{i as isCoinbaseWalletInstalled,t as isMetaMask,r as isMetamaskishInstalled};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react-device-detect";import{Backpack as o,BACKPACK_DATA_URI as n}from"../svg/backpack.mjs";import{OkxWallet as t,OKX_WALLET_DATA_URI as a}from"../svg/okx-wallet.mjs";import{Phantom as l,PHANTOM_DATA_URI as i}from"../svg/phantom.mjs";import{Solflare as r,SOLFLARE_DATA_URI as c}from"../svg/solflare.mjs";import{ALL_WALLET_CLIENT_TYPES as s}from"../types.mjs";import"react/jsx-runtime";const p=Object.freeze({phantom:{client:"phantom",name:"Phantom",installLink:e.isFirefox?"https://addons.mozilla.org/en-US/firefox/addon/phantom-app/":"https://chrome.google.com/webstore/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa?hl=en",logo:l,logoDataUri:i,chainTypes:["ethereum","solana"],get isInstalled(){if("phantom"in window){let e=window;if(e?.phantom?.ethereum?.isPhantom&&e?.phantom?.ethereum?.chainId||e?.phantom?.solana?.isPhantom)return!0}return!1},getMobileRedirect({useUniversalLink:e,isSolana:o,connectOnly:n}){let t=h({client:this.client,isSolana:o,connectOnly:n});return`${e?"phantom://":"https://phantom.app/ul/"}browse/${t}?ref=${t}`}},solflare:{client:"solflare",name:"Solflare",installLink:e.isFirefox?"https://addons.mozilla.org/es/firefox/addon/solflare-wallet/":"https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic",logo:r,logoDataUri:c,chainTypes:["solana"],get isInstalled(){return"solflare"in window&&!!window?.solflare?.isSolflare},getMobileRedirect({useUniversalLink:e,isSolana:o,connectOnly:n}){let t=h({client:this.client,isSolana:o,connectOnly:n});return`${e?"solflare://ul/v1/":"https://solflare.com/ul/v1/"}browse/${t}?ref=${t}`}},backpack:{client:"backpack",name:"Backpack",installLink:"https://chromewebstore.google.com/detail/backpack/aflkmfhebedbjioipglgcbcmnbpgliof",logo:o,logoDataUri:n,chainTypes:["ethereum","solana"],get isInstalled(){return!(!("backpack"in window)||!window?.backpack?.ethereum?.isBackpack&&!window?.backpack?.solana?.isBackpack)},getMobileRedirect({useUniversalLink:e,isSolana:o,connectOnly:n}){let t=h({client:this.client,isSolana:o,connectOnly:n});return`${e?"backpack://ul/v1/":"https://backpack.com/ul/v1/"}browse/${t}?ref=${t}`}},okx_wallet:{client:"okx_wallet",name:"OKX Wallet",installLink:"https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",logo:t,logoDataUri:a,chainTypes:["ethereum","solana"],get isInstalled(){return"okxwallet"in window&&!!window?.okxwallet?.isOkxWallet},getMobileRedirect({isSolana:e,connectOnly:o}){return"https://www.okx.com/download?deeplink="+encodeURIComponent("okx://wallet/dapp/url?dappUrl="+h({client:this.client,isSolana:e,connectOnly:o}))}}});function m({connectorType:e,walletClientType:o}){for(let n of s)if(e===n||o===n)return p[n]}function h({client:e,isSolana:o,connectOnly:n}){let t=new URL(window.location.href);return t.searchParams.set("privy_connector",o?"solana_adapter":"injected"),t.searchParams.set("privy_wallet_client",e),t.searchParams.set("privy_connect_only",String(n)),encodeURIComponent(t.href.replace(/\/$/g,""))}export{m as getWalletConfigForConnector,p as mobileWalletsConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SolanaWalletConnector as o}from"./index.mjs";import{DEFAULT_RPC_TIMEOUT as t}from"../../constants.mjs";import{PrivyProxyProvider as
|
|
1
|
+
import{SolanaWalletConnector as o}from"./index.mjs";import{DEFAULT_RPC_TIMEOUT as t}from"../../constants.mjs";import{PrivyProxyProvider as i}from"../privyProxyProvider.mjs";import"../../hooks/index.mjs";import"../base.mjs";import"eventemitter3";import"../errors.mjs";import"@privy-io/js-sdk-core";import"../../errors.mjs";import"ofetch";import"../stored-connection.mjs";import"../../storage.mjs";class n extends o{get walletBranding(){return{id:this.id,name:this.name,icon:this.icon}}async initialize(){this.initialized=!0,this.emit("initialized")}async connect(){throw Error("connect called for an uninstalled wallet via the SolanaNullConnector")}constructor({id:o,name:n,icon:r}){super({name:n},!1),this.connectorType="null",this.proxyProvider=new i(void 0,t),this.disconnect=async()=>{throw Error("disconnect called for an uninstalled wallet via the SolanaNullConnector")},this.promptConnection=async()=>{throw Error("promptConnection called for an uninstalled wallet via the SolanaNullConnector")},this.id=o,this.name=n,this.icon=r}}export{n as SolanaNullConnector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{notImplementedWithMessage as t}from"../../hooks/index.mjs";import{
|
|
1
|
+
import{notImplementedWithMessage as t}from"../../hooks/index.mjs";import{WalletConnector as e}from"../base.mjs";import{formatConnectorError as n}from"../errors.mjs";import{loadConnectionHistory as s}from"../stored-connection.mjs";import"eventemitter3";import"@privy-io/js-sdk-core";import"../../errors.mjs";import"ofetch";import"../../constants.mjs";import"../../storage.mjs";let a=["phantom","glow","solflare","backpack","okx_wallet"];function i(t){return"solana"===t.chainType}function o(t){return"solana"===t.type}function r(t){return t.name.toLowerCase().split(" ").join("_")}class c extends e{get isInstalled(){return"Installed"===this.adapter.readyState}buildConnectedWallet(e,n){let s,a,i;if("Installed"!==e.readyState||!e.publicKey)throw Error("Wallet is not connected.");return"signMessage"in e&&(s=async(...t)=>{if(!e.connected)throw Error("Wallet is not connected.");return await e.signMessage(t[0])}),"sendTransaction"in e&&(a=async(...t)=>await e.sendTransaction(t[0],t[1],t[2])),"signTransaction"in e&&(i=async t=>await e.signTransaction(t)),{type:"solana",address:e.publicKey.toBase58(),meta:n,imported:!1,connectedAt:Date.now(),walletClientType:this.walletClientType,connectorType:this.connectorType,isConnected:async()=>e.connected,disconnect:()=>{try{e.disconnect()}catch(t){console.error("Wallet does not support programmatic disconnect")}},getProvider:t(`${this.walletClientType||""} wallet does not support 'getProvider'`),signMessage:s??t(`${this.walletClientType||""} wallet does not support 'signMessage'`),sendTransaction:a??t(`${this.walletClientType||""} wallet does not support 'sendTransaction'`),signTransaction:i??t(`${this.walletClientType||""} wallet does not support 'signTransaction'`)}}async syncAccounts(){if("Installed"===this.adapter.readyState&&this.adapter.publicKey){let t={name:this.walletBranding.name,icon:"string"==typeof this.walletBranding.icon?this.walletBranding.icon:void 0,id:this.walletBranding.id};this.wallets.find((t=>this.adapter.publicKey&&t.address===this.adapter.publicKey.toBase58()))||(this.wallets=[this.buildConnectedWallet(this.adapter,t)],this.emit("walletsUpdated"))}else this.wallets.length>0&&(this.wallets=[],this.emit("walletsUpdated"))}get walletBranding(){return{id:this.adapter.name,name:this.adapter.name,icon:this.adapter.icon}}async initialize(){this.subscribeListeners(),await this.syncAccounts(),this.shouldAttemptAutoConnect()&&await this.adapter.autoConnect().catch((()=>{})),this.initialized=!0,this.emit("initialized")}async connect(t){return t.showPrompt&&await this.promptConnection(),await this.isConnected()?this.getConnectedWallet():null}async getConnectedWallet(){return this.wallets.sort(((t,e)=>e.connectedAt-t.connectedAt))[0]||null}async isConnected(){return this.adapter.connected&&["Installed"].includes(this.adapter.readyState)}subscribeListeners(){this.adapter.addListener("disconnect",this.onDisconnect),this.adapter.addListener("connect",this.onConnect),this.adapter.addListener("error",this.onError),this.adapter.addListener("readyStateChange",this.onReadyStateChange)}unsubscribeListeners(){this.adapter.removeAllListeners()}shouldAttemptAutoConnect(){return!(!this.autoConnectEnabled||!a.includes(this.walletClientType))&&("phantom"!==this.walletClientType||s().some((({walletClientType:t})=>"phantom"===t)))}constructor(t,e){super(r(t)),this.chainType="solana",this.connectorType="solana_adapter",this.disconnect=()=>{this.adapter.disconnect().then((()=>this.onDisconnect())).catch((t=>console.error("Error disconnecting",t)))},this.promptConnection=async()=>{try{await this.adapter.connect()}catch(t){throw n(t)}},this.onDisconnect=()=>{this.syncAccounts()},this.onConnect=t=>{this.syncAccounts()},this.onError=t=>{this.syncAccounts()},this.onReadyStateChange=t=>{"Installed"!==t&&(this.connected=!1),this.syncAccounts()},this.adapter=t,this.autoConnectEnabled=e,this.wallets=[]}}export{c as SolanaWalletConnector,o as isBaseConnectedSolanaWallet,i as isSolanaWalletConnector,r as toSolanaWalletClientType};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isWalletAdapterCompatibleStandardWallet as t}from"@solana/wallet-adapter-base";import{StandardWalletAdapter as e}from"@solana/wallet-standard-wallet-adapter-base";import{getWallets as o}from"@wallet-standard/app";import{SolanaWalletConnector as r}from"./index.mjs";import"../../hooks/index.mjs";import"
|
|
1
|
+
import{isWalletAdapterCompatibleStandardWallet as t}from"@solana/wallet-adapter-base";import{StandardWalletAdapter as e}from"@solana/wallet-standard-wallet-adapter-base";import{getWallets as o}from"@wallet-standard/app";import{SolanaWalletConnector as r}from"./index.mjs";import"../../hooks/index.mjs";import"../base.mjs";import"eventemitter3";import"../errors.mjs";import"@privy-io/js-sdk-core";import"../../errors.mjs";import"ofetch";import"../stored-connection.mjs";import"../../constants.mjs";import"../../storage.mjs";const n=t=>{let e,{get:n,on:s}=o(),a=t?.shouldAutoConnect??!0,p=[],i=[];function l(...t){i=(p=p.concat(...m(t))).map((t=>new r(t,a))),e?.(i)}function d(...t){i=(p=p.filter((e=>t.some((t=>e.wallet===t))))).map((t=>new r(t,a))),e?.(i)}let c=[s("register",l),s("unregister",d)];return i=(p=m(n())).map((t=>new r(t,a))),{_setOnConnectorsUpdated:t=>{e=t},onMount:()=>{c[0]||(c[0]=s("register",l)),c[1]||(c[1]=s("unregister",d))},onUnmount:()=>{let t=c.pop();for(;t;)t(),t=c.pop()},get:()=>i}};let m=o=>o.filter(t).map((t=>new e({wallet:t})));export{n as toSolanaWalletConnectors};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CONNECTIONS_HISTORY_KEY as t}from"../constants.mjs";import e from"../storage.mjs";const r=()=>{let r=e.get(t);return r&&Array.isArray(r)&&r.map((t=>(t=>t&&"string"==typeof t.address&&"string"==typeof t.connectorType&&"string"==typeof t.walletClientType&&"number"==typeof t.connectedAt)(t))).every(Boolean)?r:[]};export{r as loadConnectionHistory};
|
package/dist/esm/constants.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="34357d3c125c2bcf2ce2bc3309d98715",i="https://auth.privy.io",r=2e4,t=1400,p=2500,o=4e3,v="2.0
|
|
1
|
+
const e="34357d3c125c2bcf2ce2bc3309d98715",i="https://auth.privy.io",r=2e4,t=1400,p=2500,o=4e3,v="2.1.0",s="ES256",n="privy.io",y="privy:token",c="privy-token",a="privy:refresh_token",_="privy-refresh-token",d="privy:pat",l="privy:id_token",h="privy-id-token",k="privy-session",f="privy:session_transfer_token",u="privy:wallet",b="privy:caid",m=e=>`privy:guest:${e}`,w=e=>`privy:cross-app:${e}`,j="privy:state_code",x="privy:code_verifier",F="privy:headless_oauth",g="privy:oauth_disable_signup",L=e=>`privy:wallet:${e}`,S="privy:connectors",$="privy:connections",q="walletconnect",H=3e4,J=12e4,X=1,z="0x1",C=3e4,E="https://api.moonpay.com/v1",I="https://api.moonpay.com/v1",M="pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL",R="pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI",U="0x420000000000000000000000000000000000000F",V=["function getL1Fee(bytes memory _data) external view returns (uint256)"],W="deprecated";export{X as CHAIN_ID_MAINNET,b as CLIENT_ANALYTICS_ID_KEY,x as CODE_VERIFIER_KEY,$ as CONNECTIONS_HISTORY_KEY,S as CONNECTORS_STATE_KEY,c as CUSTOMER_ACCESS_TOKEN_COOKIE_KEY,y as CUSTOMER_ACCESS_TOKEN_STORAGE_KEY,r as DEFAULT_API_TIMEOUT_MS,z as DEFAULT_NETWORK,i as DEFAULT_PRIVY_API_URL,J as DEFAULT_RPC_TIMEOUT,t as DEFAULT_SUCCESS_SCREEN_DURATION_MS,o as DEFAULT_SUCCESS_SCREEN_EXTRA_LONG_DURATION_MS,p as DEFAULT_SUCCESS_SCREEN_LONG_DURATION_MS,W as DEPRECATED_REFRESH_TOKEN,f as FORKED_TOKEN_STORAGE_KEY,F as HEADLESS_OAUTH_KEY,h as IDENTITY_TOKEN_COOKIE_KEY,l as IDENTITY_TOKEN_STORAGE_KEY,s as JWT_ALGORITHM,n as JWT_ISSUER,E as MOONPAY_API_URL,I as MOONPAY_API_URL_SANDBOX,M as MOONPAY_PUBLIC_KEY,R as MOONPAY_PUBLIC_KEY_SANDBOX,g as OAUTH_DISABLE_SIGNUP_KEY,V as OPTIMISM_STACK_GAS_PRICE_ORACLE_ABI,U as OPTIMISM_STACK_GAS_PRICE_ORACLE_ADDRESS,d as PRIVY_ACCESS_TOKEN_STORAGE_KEY,e as PRIVY_WALLETCONNECT_CLOUD_ID,u as PRIVY_WALLET_KEY_PREFIX,_ as REFRESH_TOKEN_COOKIE_KEY,a as REFRESH_TOKEN_STORAGE_KEY,k as SESSION_COOKIE_KEY,j as STATE_CODE_KEY,v as VERSION,H as WALLET_CONNECT_INFURA_POLLING_INTERVAL,q as WALLET_CONNECT_STORAGE_KEY,C as WALLET_PROXY_TIMEOUT,m as getGuestCredentialStorageKey,L as getPrivyWalletKey,w as getProviderAccessTokenStorageKey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getPrivyPrimaryWallet as e}from"../client/user.mjs";import{PrivyClientError as t}from"../errors.mjs";import"viem/utils";import"ofetch";const r=({address:e,user:r})=>{let d=r.linkedAccounts.find((t=>"wallet"===t.type&&"privy"===t.walletClientType&&t.address===e));if(!d)throw new t("Address to delegate is not associated with current user.");return{address:d.address,chainType:d.chainType,walletIndex:d.walletIndex??0}},d=({address:r,user:d})=>{let s=d.linkedAccounts.find((e=>"wallet"===e.type&&"privy"===e.walletClientType&&e.address===r));if(!s)throw new t("Address to delegate is not associated with current user.");let i=s.imported?s:e(d);if(!i)throw new t("Unable to determine root address for delegated address.");return{address:i.address,chainType:i.chainType,imported:i.imported}},s=e=>e.linkedAccounts.filter((e=>"wallet"===e.type&&"privy"===e.walletClientType&&e.delegated)),i=({address:e,chainType:t,user:r})=>!!s(r).find((r=>r.address===e&&r.chainType===t));export{r as getDelegatedWalletsData,s as getDelegatedWalletsForUser,d as getRootWalletDataForDelegation,i as isWalletDelegated};
|