@crossmint/client-sdk-react-ui 1.18.3 → 1.19.0-alpha.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/chunk-2DG4R653.cjs +79 -0
- package/dist/chunk-2DG4R653.cjs.map +1 -0
- package/dist/chunk-2T2VCED7.js +17 -0
- package/dist/chunk-2T2VCED7.js.map +1 -0
- package/dist/chunk-33WZFL2D.js +80 -0
- package/dist/chunk-33WZFL2D.js.map +1 -0
- package/dist/chunk-35QBUT6F.js +89 -0
- package/dist/chunk-35QBUT6F.js.map +1 -0
- package/dist/chunk-35RV5AOT.cjs +70 -0
- package/dist/chunk-35RV5AOT.cjs.map +1 -0
- package/dist/chunk-3CWYQQ65.cjs +45 -0
- package/dist/chunk-3CWYQQ65.cjs.map +1 -0
- package/dist/chunk-3IQALRY5.js +14 -0
- package/dist/chunk-3IQALRY5.js.map +1 -0
- package/dist/chunk-3J6CUUWT.js +50 -0
- package/dist/chunk-3J6CUUWT.js.map +1 -0
- package/dist/chunk-3KR4GYLF.js +26 -0
- package/dist/chunk-3KR4GYLF.js.map +1 -0
- package/dist/chunk-43P7QWBK.cjs +17 -0
- package/dist/chunk-43P7QWBK.cjs.map +1 -0
- package/dist/chunk-4D4AAZAE.cjs +32 -0
- package/dist/chunk-4D4AAZAE.cjs.map +1 -0
- package/dist/chunk-4DAZAO6Y.cjs +59 -0
- package/dist/chunk-4DAZAO6Y.cjs.map +1 -0
- package/dist/chunk-4EZ2R33I.cjs +28 -0
- package/dist/chunk-4EZ2R33I.cjs.map +1 -0
- package/dist/chunk-5BYCXTC3.js +17 -0
- package/dist/chunk-5BYCXTC3.js.map +1 -0
- package/dist/chunk-5KK3YQWD.cjs +1 -0
- package/dist/chunk-5KK3YQWD.cjs.map +1 -0
- package/dist/chunk-5OGRPJ2L.js +198 -0
- package/dist/chunk-5OGRPJ2L.js.map +1 -0
- package/dist/chunk-5RDAQSJK.cjs +27 -0
- package/dist/chunk-5RDAQSJK.cjs.map +1 -0
- package/dist/chunk-5RX5WFEW.cjs +11 -0
- package/dist/chunk-5RX5WFEW.cjs.map +1 -0
- package/dist/chunk-5TH75X5L.js +27 -0
- package/dist/chunk-5TH75X5L.js.map +1 -0
- package/dist/chunk-6A5ZUKVT.cjs +31 -0
- package/dist/chunk-6A5ZUKVT.cjs.map +1 -0
- package/dist/chunk-6LO4NSRH.cjs +21 -0
- package/dist/chunk-6LO4NSRH.cjs.map +1 -0
- package/dist/chunk-6TFIQWYJ.js +79 -0
- package/dist/chunk-6TFIQWYJ.js.map +1 -0
- package/dist/chunk-72LSMHPL.js +131 -0
- package/dist/chunk-72LSMHPL.js.map +1 -0
- package/dist/chunk-7EPTEGBP.cjs +51 -0
- package/dist/chunk-7EPTEGBP.cjs.map +1 -0
- package/dist/chunk-7HBAJHZZ.cjs +198 -0
- package/dist/chunk-7HBAJHZZ.cjs.map +1 -0
- package/dist/chunk-7HENIDX5.js +39 -0
- package/dist/chunk-7HENIDX5.js.map +1 -0
- package/dist/chunk-7IC6PRTG.js +10 -0
- package/dist/chunk-7IC6PRTG.js.map +1 -0
- package/dist/chunk-7KIY6DLW.js +28 -0
- package/dist/chunk-7KIY6DLW.js.map +1 -0
- package/dist/chunk-7UXIFMNO.js +1 -0
- package/dist/chunk-7UXIFMNO.js.map +1 -0
- package/dist/chunk-A7J4DAE7.js +16 -0
- package/dist/chunk-A7J4DAE7.js.map +1 -0
- package/dist/chunk-ATHR4S2P.js +48 -0
- package/dist/chunk-ATHR4S2P.js.map +1 -0
- package/dist/chunk-AXZLLRBU.cjs +26 -0
- package/dist/chunk-AXZLLRBU.cjs.map +1 -0
- package/dist/chunk-B7LYPQ4K.cjs +38 -0
- package/dist/chunk-B7LYPQ4K.cjs.map +1 -0
- package/dist/chunk-C2VARNXL.js +70 -0
- package/dist/chunk-C2VARNXL.js.map +1 -0
- package/dist/chunk-C3MY2FND.cjs +78 -0
- package/dist/chunk-C3MY2FND.cjs.map +1 -0
- package/dist/chunk-CRTRMMJ7.js +59 -0
- package/dist/chunk-CRTRMMJ7.js.map +1 -0
- package/dist/chunk-DF5JCCWO.cjs +124 -0
- package/dist/chunk-DF5JCCWO.cjs.map +1 -0
- package/dist/chunk-EAEMD3DY.cjs +34 -0
- package/dist/chunk-EAEMD3DY.cjs.map +1 -0
- package/dist/chunk-EH64D65Z.cjs +137 -0
- package/dist/chunk-EH64D65Z.cjs.map +1 -0
- package/dist/chunk-EON274FF.cjs +33 -0
- package/dist/chunk-EON274FF.cjs.map +1 -0
- package/dist/chunk-EOWJ7775.js +18 -0
- package/dist/chunk-EOWJ7775.js.map +1 -0
- package/dist/chunk-F2AWZC4M.js +51 -0
- package/dist/chunk-F2AWZC4M.js.map +1 -0
- package/dist/chunk-F3AMLCQL.js +22 -0
- package/dist/chunk-F3AMLCQL.js.map +1 -0
- package/dist/chunk-FCL2DOPJ.js +33 -0
- package/dist/chunk-FCL2DOPJ.js.map +1 -0
- package/dist/chunk-FHPIRUUD.cjs +17 -0
- package/dist/chunk-FHPIRUUD.cjs.map +1 -0
- package/dist/chunk-FKL462NZ.js +22 -0
- package/dist/chunk-FKL462NZ.js.map +1 -0
- package/dist/chunk-FU74NHZW.js +34 -0
- package/dist/chunk-FU74NHZW.js.map +1 -0
- package/dist/chunk-FXKNGWFA.cjs +17 -0
- package/dist/chunk-FXKNGWFA.cjs.map +1 -0
- package/dist/chunk-H4F7UVPT.js +34 -0
- package/dist/chunk-H4F7UVPT.js.map +1 -0
- package/dist/chunk-H4TVOH5V.cjs +51 -0
- package/dist/chunk-H4TVOH5V.cjs.map +1 -0
- package/dist/chunk-HCW4RO2O.cjs +29 -0
- package/dist/chunk-HCW4RO2O.cjs.map +1 -0
- package/dist/chunk-HFPR3JUK.js +31 -0
- package/dist/chunk-HFPR3JUK.js.map +1 -0
- package/dist/chunk-HIU3FK4M.cjs +13 -0
- package/dist/chunk-HIU3FK4M.cjs.map +1 -0
- package/dist/chunk-HPOZ6I54.cjs +44 -0
- package/dist/chunk-HPOZ6I54.cjs.map +1 -0
- package/dist/chunk-I22MLYYW.cjs +21 -0
- package/dist/chunk-I22MLYYW.cjs.map +1 -0
- package/dist/chunk-I63FQCIV.js +189 -0
- package/dist/chunk-I63FQCIV.js.map +1 -0
- package/dist/chunk-IDJ7FOHB.js +34 -0
- package/dist/chunk-IDJ7FOHB.js.map +1 -0
- package/dist/chunk-IQPA3QOV.js +27 -0
- package/dist/chunk-IQPA3QOV.js.map +1 -0
- package/dist/chunk-IUCMANQB.js +137 -0
- package/dist/chunk-IUCMANQB.js.map +1 -0
- package/dist/chunk-JBCO6SN6.js +50 -0
- package/dist/chunk-JBCO6SN6.js.map +1 -0
- package/dist/chunk-JVVTHOFN.js +153 -0
- package/dist/chunk-JVVTHOFN.js.map +1 -0
- package/dist/chunk-KBMNS57M.js +17 -0
- package/dist/chunk-KBMNS57M.js.map +1 -0
- package/dist/chunk-KEKBOJCF.cjs +50 -0
- package/dist/chunk-KEKBOJCF.cjs.map +1 -0
- package/dist/chunk-KLWDDALZ.cjs +14 -0
- package/dist/chunk-KLWDDALZ.cjs.map +1 -0
- package/dist/chunk-KNOUJZN5.cjs +32 -0
- package/dist/chunk-KNOUJZN5.cjs.map +1 -0
- package/dist/chunk-KPQDVXHK.js +105 -0
- package/dist/chunk-KPQDVXHK.js.map +1 -0
- package/dist/chunk-KYC6TDD4.cjs +82 -0
- package/dist/chunk-KYC6TDD4.cjs.map +1 -0
- package/dist/chunk-L3FKENHU.js +14 -0
- package/dist/chunk-L3FKENHU.js.map +1 -0
- package/dist/chunk-LAI55KMW.cjs +34 -0
- package/dist/chunk-LAI55KMW.cjs.map +1 -0
- package/dist/chunk-LD7PAUBR.cjs +31 -0
- package/dist/chunk-LD7PAUBR.cjs.map +1 -0
- package/dist/chunk-LEAESLKV.cjs +131 -0
- package/dist/chunk-LEAESLKV.cjs.map +1 -0
- package/dist/chunk-LYNYDYMA.js +31 -0
- package/dist/chunk-LYNYDYMA.js.map +1 -0
- package/dist/chunk-LYUX72JO.cjs +110 -0
- package/dist/chunk-LYUX72JO.cjs.map +1 -0
- package/dist/chunk-MH37OJT2.cjs +80 -0
- package/dist/chunk-MH37OJT2.cjs.map +1 -0
- package/dist/chunk-MSZ635MU.cjs +22 -0
- package/dist/chunk-MSZ635MU.cjs.map +1 -0
- package/dist/chunk-OBYFRT3I.cjs +14 -0
- package/dist/chunk-OBYFRT3I.cjs.map +1 -0
- package/dist/chunk-OYO5HXKX.js +32 -0
- package/dist/chunk-OYO5HXKX.js.map +1 -0
- package/dist/chunk-OZKGMYKX.js +21 -0
- package/dist/chunk-OZKGMYKX.js.map +1 -0
- package/dist/chunk-PCY3N6C2.js +1 -0
- package/dist/chunk-PCY3N6C2.js.map +1 -0
- package/dist/chunk-PHCGCJSA.js +107 -0
- package/dist/chunk-PHCGCJSA.js.map +1 -0
- package/dist/chunk-PIBLEOBQ.js +124 -0
- package/dist/chunk-PIBLEOBQ.js.map +1 -0
- package/dist/chunk-PQSWDEZX.js +28 -0
- package/dist/chunk-PQSWDEZX.js.map +1 -0
- package/dist/chunk-Q3M4UH5U.cjs +48 -0
- package/dist/chunk-Q3M4UH5U.cjs.map +1 -0
- package/dist/chunk-QBYRMPKN.js +82 -0
- package/dist/chunk-QBYRMPKN.js.map +1 -0
- package/dist/chunk-QDKAU3H2.js +31 -0
- package/dist/chunk-QDKAU3H2.js.map +1 -0
- package/dist/chunk-QQXBYOKA.cjs +16 -0
- package/dist/chunk-QQXBYOKA.cjs.map +1 -0
- package/dist/chunk-QTL5I5C2.js +38 -0
- package/dist/chunk-QTL5I5C2.js.map +1 -0
- package/dist/chunk-QUZAE6AP.cjs +1898 -0
- package/dist/chunk-QUZAE6AP.cjs.map +1 -0
- package/dist/chunk-R6IL3WOE.cjs +31 -0
- package/dist/chunk-R6IL3WOE.cjs.map +1 -0
- package/dist/chunk-RB34BJZ6.js +57 -0
- package/dist/chunk-RB34BJZ6.js.map +1 -0
- package/dist/chunk-RU4ZOZP5.cjs +1 -0
- package/dist/chunk-RU4ZOZP5.cjs.map +1 -0
- package/dist/chunk-RZPQIRIY.js +11 -0
- package/dist/chunk-RZPQIRIY.js.map +1 -0
- package/dist/chunk-SBA6FMFT.cjs +18 -0
- package/dist/chunk-SBA6FMFT.cjs.map +1 -0
- package/dist/chunk-STNIRPZP.js +78 -0
- package/dist/chunk-STNIRPZP.js.map +1 -0
- package/dist/chunk-SZA3XDJ5.cjs +1 -0
- package/dist/chunk-SZA3XDJ5.cjs.map +1 -0
- package/dist/chunk-SZMTAO74.cjs +50 -0
- package/dist/chunk-SZMTAO74.cjs.map +1 -0
- package/dist/chunk-TKFSXTH5.js +51 -0
- package/dist/chunk-TKFSXTH5.js.map +1 -0
- package/dist/chunk-TOCRVS5A.js +1898 -0
- package/dist/chunk-TOCRVS5A.js.map +1 -0
- package/dist/chunk-UASNCH3A.cjs +27 -0
- package/dist/chunk-UASNCH3A.cjs.map +1 -0
- package/dist/chunk-UD3UTFV3.cjs +1 -0
- package/dist/chunk-UD3UTFV3.cjs.map +1 -0
- package/dist/chunk-URKPLEPV.cjs +189 -0
- package/dist/chunk-URKPLEPV.cjs.map +1 -0
- package/dist/chunk-UYMSOJYK.cjs +89 -0
- package/dist/chunk-UYMSOJYK.cjs.map +1 -0
- package/dist/chunk-V7CWLETC.js +13 -0
- package/dist/chunk-V7CWLETC.js.map +1 -0
- package/dist/chunk-VEPJM7ZC.cjs +125 -0
- package/dist/chunk-VEPJM7ZC.cjs.map +1 -0
- package/dist/chunk-VKQ4YOEX.cjs +19 -0
- package/dist/chunk-VKQ4YOEX.cjs.map +1 -0
- package/dist/chunk-VPXCDIYZ.cjs +153 -0
- package/dist/chunk-VPXCDIYZ.cjs.map +1 -0
- package/dist/chunk-VZIXXIU5.js +32 -0
- package/dist/chunk-VZIXXIU5.js.map +1 -0
- package/dist/chunk-WO6OW46H.cjs +57 -0
- package/dist/chunk-WO6OW46H.cjs.map +1 -0
- package/dist/chunk-WS6OOSH7.js +110 -0
- package/dist/chunk-WS6OOSH7.js.map +1 -0
- package/dist/chunk-WVM3I3I3.js +45 -0
- package/dist/chunk-WVM3I3I3.js.map +1 -0
- package/dist/chunk-XDJ6F7N4.cjs +107 -0
- package/dist/chunk-XDJ6F7N4.cjs.map +1 -0
- package/dist/chunk-XSXE5LWO.js +19 -0
- package/dist/chunk-XSXE5LWO.js.map +1 -0
- package/dist/chunk-XW53XESI.cjs +39 -0
- package/dist/chunk-XW53XESI.cjs.map +1 -0
- package/dist/chunk-XXJ7LQ44.js +1 -0
- package/dist/chunk-XXJ7LQ44.js.map +1 -0
- package/dist/chunk-XYMYRPVT.js +1 -0
- package/dist/chunk-XYMYRPVT.js.map +1 -0
- package/dist/chunk-YE55IKBP.cjs +34 -0
- package/dist/chunk-YE55IKBP.cjs.map +1 -0
- package/dist/chunk-YHFDNKTS.cjs +10 -0
- package/dist/chunk-YHFDNKTS.cjs.map +1 -0
- package/dist/chunk-YKL53K3C.cjs +22 -0
- package/dist/chunk-YKL53K3C.cjs.map +1 -0
- package/dist/chunk-YWGWSNTU.js +125 -0
- package/dist/chunk-YWGWSNTU.js.map +1 -0
- package/dist/chunk-Z6QSH522.cjs +105 -0
- package/dist/chunk-Z6QSH522.cjs.map +1 -0
- package/dist/chunk-ZDQGQY7Z.js +29 -0
- package/dist/chunk-ZDQGQY7Z.js.map +1 -0
- package/dist/chunk-ZIHCLVCD.js +44 -0
- package/dist/chunk-ZIHCLVCD.js.map +1 -0
- package/dist/chunk-ZMSST6ZZ.cjs +28 -0
- package/dist/chunk-ZMSST6ZZ.cjs.map +1 -0
- package/dist/chunk-ZUIS3FET.js +21 -0
- package/dist/chunk-ZUIS3FET.js.map +1 -0
- package/dist/components/CrossmintNFTCollectionView.cjs +9 -1
- package/dist/components/CrossmintNFTCollectionView.cjs.map +1 -0
- package/dist/components/CrossmintNFTCollectionView.js +9 -1
- package/dist/components/CrossmintNFTCollectionView.js.map +1 -0
- package/dist/components/CrossmintNFTDetail.cjs +9 -1
- package/dist/components/CrossmintNFTDetail.cjs.map +1 -0
- package/dist/components/CrossmintNFTDetail.js +9 -1
- package/dist/components/CrossmintNFTDetail.js.map +1 -0
- package/dist/components/auth/AuthForm.cjs +44 -1
- package/dist/components/auth/AuthForm.cjs.map +1 -0
- package/dist/components/auth/AuthForm.js +44 -1
- package/dist/components/auth/AuthForm.js.map +1 -0
- package/dist/components/auth/AuthFormBackButton.cjs +44 -1
- package/dist/components/auth/AuthFormBackButton.cjs.map +1 -0
- package/dist/components/auth/AuthFormBackButton.js +44 -1
- package/dist/components/auth/AuthFormBackButton.js.map +1 -0
- package/dist/components/auth/AuthFormDialog.cjs +44 -1
- package/dist/components/auth/AuthFormDialog.cjs.map +1 -0
- package/dist/components/auth/AuthFormDialog.js +44 -1
- package/dist/components/auth/AuthFormDialog.js.map +1 -0
- package/dist/components/auth/EmbeddedAuthForm.cjs +45 -1
- package/dist/components/auth/EmbeddedAuthForm.cjs.map +1 -0
- package/dist/components/auth/EmbeddedAuthForm.js +45 -1
- package/dist/components/auth/EmbeddedAuthForm.js.map +1 -0
- package/dist/components/auth/PasskeyPrompt.cjs +15 -1
- package/dist/components/auth/PasskeyPrompt.cjs.map +1 -0
- package/dist/components/auth/PasskeyPrompt.js +15 -1
- package/dist/components/auth/PasskeyPrompt.js.map +1 -0
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs +44 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs.map +1 -0
- package/dist/components/auth/methods/email/EmailAuthFlow.js +44 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.js.map +1 -0
- package/dist/components/auth/methods/email/EmailOTPInput.cjs +46 -1
- package/dist/components/auth/methods/email/EmailOTPInput.cjs.map +1 -0
- package/dist/components/auth/methods/email/EmailOTPInput.js +46 -1
- package/dist/components/auth/methods/email/EmailOTPInput.js.map +1 -0
- package/dist/components/auth/methods/email/EmailSignIn.cjs +44 -1
- package/dist/components/auth/methods/email/EmailSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/email/EmailSignIn.js +44 -1
- package/dist/components/auth/methods/email/EmailSignIn.js.map +1 -0
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +44 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +44 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js.map +1 -0
- package/dist/components/auth/methods/google/ContinueWithGoogle.cjs +44 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.cjs.map +1 -0
- package/dist/components/auth/methods/google/ContinueWithGoogle.js +44 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.js.map +1 -0
- package/dist/components/auth/methods/google/GoogleSignIn.cjs +44 -1
- package/dist/components/auth/methods/google/GoogleSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/google/GoogleSignIn.js +44 -1
- package/dist/components/auth/methods/google/GoogleSignIn.js.map +1 -0
- package/dist/components/auth/methods/twitter/TwitterSignIn.cjs +44 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/twitter/TwitterSignIn.js +44 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +44 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.js +44 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.cjs +44 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.js +44 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3Connector.cjs +65 -1
- package/dist/components/auth/methods/web3/Web3Connector.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3Connector.js +65 -1
- package/dist/components/auth/methods/web3/Web3Connector.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3ConnectorButton.cjs +53 -1
- package/dist/components/auth/methods/web3/Web3ConnectorButton.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3ConnectorButton.js +53 -1
- package/dist/components/auth/methods/web3/Web3ConnectorButton.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3Connectors.cjs +44 -1
- package/dist/components/auth/methods/web3/Web3Connectors.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3Connectors.js +44 -1
- package/dist/components/auth/methods/web3/Web3Connectors.js.map +1 -0
- package/dist/components/common/CountdownButton.cjs +9 -1
- package/dist/components/common/CountdownButton.cjs.map +1 -0
- package/dist/components/common/CountdownButton.js +9 -1
- package/dist/components/common/CountdownButton.js.map +1 -0
- package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.cjs +9 -1
- package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.cjs.map +1 -0
- package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.js +9 -1
- package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.js.map +1 -0
- package/dist/components/common/CrossmintLogoV2/consts.cjs +12 -1
- package/dist/components/common/CrossmintLogoV2/consts.cjs.map +1 -0
- package/dist/components/common/CrossmintLogoV2/consts.js +12 -1
- package/dist/components/common/CrossmintLogoV2/consts.js.map +1 -0
- package/dist/components/common/CrossmintLogoV2/schemas.cjs +34 -1
- package/dist/components/common/CrossmintLogoV2/schemas.cjs.map +1 -0
- package/dist/components/common/CrossmintLogoV2/schemas.js +34 -1
- package/dist/components/common/CrossmintLogoV2/schemas.js.map +1 -0
- package/dist/components/common/Dialog.cjs +26 -1
- package/dist/components/common/Dialog.cjs.map +1 -0
- package/dist/components/common/Dialog.js +26 -1
- package/dist/components/common/Dialog.js.map +1 -0
- package/dist/components/common/Divider.cjs +44 -1
- package/dist/components/common/Divider.cjs.map +1 -0
- package/dist/components/common/Divider.js +44 -1
- package/dist/components/common/Divider.js.map +1 -0
- package/dist/components/common/InputOTP.cjs +14 -1
- package/dist/components/common/InputOTP.cjs.map +1 -0
- package/dist/components/common/InputOTP.js +14 -1
- package/dist/components/common/InputOTP.js.map +1 -0
- package/dist/components/common/SecuredByCrossmint.cjs +10 -1
- package/dist/components/common/SecuredByCrossmint.cjs.map +1 -0
- package/dist/components/common/SecuredByCrossmint.js +10 -1
- package/dist/components/common/SecuredByCrossmint.js.map +1 -0
- package/dist/components/common/Spinner.cjs +9 -1
- package/dist/components/common/Spinner.cjs.map +1 -0
- package/dist/components/common/Spinner.js +9 -1
- package/dist/components/common/Spinner.js.map +1 -0
- package/dist/components/dynamic-xyz/DynamicContextProviderWrapper.cjs +8 -1
- package/dist/components/dynamic-xyz/DynamicContextProviderWrapper.cjs.map +1 -0
- package/dist/components/dynamic-xyz/DynamicContextProviderWrapper.js +8 -1
- package/dist/components/dynamic-xyz/DynamicContextProviderWrapper.js.map +1 -0
- package/dist/components/embed/EmbeddedCheckoutIFrame.cjs +8 -1
- package/dist/components/embed/EmbeddedCheckoutIFrame.cjs.map +1 -0
- package/dist/components/embed/EmbeddedCheckoutIFrame.js +8 -1
- package/dist/components/embed/EmbeddedCheckoutIFrame.js.map +1 -0
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.cjs +11 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.cjs.map +1 -0
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.js +11 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.js.map +1 -0
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.cjs +10 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.cjs.map +1 -0
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.js +10 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.js.map +1 -0
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.cjs +11 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.cjs.map +1 -0
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.js +11 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.js.map +1 -0
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.cjs +10 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.cjs.map +1 -0
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.js +10 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.js.map +1 -0
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.cjs +75 -1
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.cjs.map +1 -0
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.js +75 -1
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.js.map +1 -0
- package/dist/components/embed/index.cjs +14 -1
- package/dist/components/embed/index.cjs.map +1 -0
- package/dist/components/embed/index.js +14 -1
- package/dist/components/embed/index.js.map +1 -0
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs +47 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs.map +1 -0
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +47 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js.map +1 -0
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +46 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs.map +1 -0
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +46 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js.map +1 -0
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs +174 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js +174 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js.map +1 -0
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.cjs +8 -1
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.js +8 -1
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.js.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.cjs +72 -1
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.js +72 -1
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.js.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.cjs +8 -1
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.js +8 -1
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.js.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.cjs +55 -1
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.js +55 -1
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.js.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSuiTransaction.cjs +71 -1
- package/dist/components/embed/v3/crypto/utils/handleSuiTransaction.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSuiTransaction.js +71 -1
- package/dist/components/embed/v3/crypto/utils/handleSuiTransaction.js.map +1 -0
- package/dist/components/embed/v3/index.cjs +48 -1
- package/dist/components/embed/v3/index.cjs.map +1 -0
- package/dist/components/embed/v3/index.js +48 -1
- package/dist/components/embed/v3/index.js.map +1 -0
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.cjs +11 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.cjs.map +1 -0
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.js +11 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.js.map +1 -0
- package/dist/components/hosted/index.cjs +21 -1
- package/dist/components/hosted/index.cjs.map +1 -0
- package/dist/components/hosted/index.js +21 -1
- package/dist/components/hosted/index.js.map +1 -0
- package/dist/components/hosted/styles.cjs +10 -1
- package/dist/components/hosted/styles.cjs.map +1 -0
- package/dist/components/hosted/styles.js +10 -1
- package/dist/components/hosted/styles.js.map +1 -0
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.cjs +13 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.cjs.map +1 -0
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.js +13 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.js.map +1 -0
- package/dist/components/hosted/v3/index.cjs +14 -1
- package/dist/components/hosted/v3/index.cjs.map +1 -0
- package/dist/components/hosted/v3/index.js +14 -1
- package/dist/components/hosted/v3/index.js.map +1 -0
- package/dist/components/index.cjs +85 -1
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.js +85 -1
- package/dist/components/index.js.map +1 -0
- package/dist/components/signers/EmailInput.cjs +11 -0
- package/dist/components/signers/EmailInput.cjs.map +1 -0
- package/dist/components/signers/EmailInput.d.cts +12 -0
- package/dist/components/signers/EmailInput.d.ts +12 -0
- package/dist/components/signers/EmailInput.js +11 -0
- package/dist/components/signers/EmailInput.js.map +1 -0
- package/dist/components/signers/EmailOTPInput.cjs +13 -0
- package/dist/components/signers/EmailOTPInput.cjs.map +1 -0
- package/dist/components/signers/EmailOTPInput.d.cts +13 -0
- package/dist/components/signers/EmailOTPInput.d.ts +13 -0
- package/dist/components/signers/EmailOTPInput.js +13 -0
- package/dist/components/signers/EmailOTPInput.js.map +1 -0
- package/dist/components/signers/EmailSignersDialog.cjs +18 -0
- package/dist/components/signers/EmailSignersDialog.cjs.map +1 -0
- package/dist/components/signers/EmailSignersDialog.d.cts +16 -0
- package/dist/components/signers/EmailSignersDialog.d.ts +16 -0
- package/dist/components/signers/EmailSignersDialog.js +18 -0
- package/dist/components/signers/EmailSignersDialog.js.map +1 -0
- package/dist/consts/version.cjs +8 -1
- package/dist/consts/version.cjs.map +1 -0
- package/dist/consts/version.js +8 -1
- package/dist/consts/version.js.map +1 -0
- package/dist/hooks/index.cjs +56 -1
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.js +56 -1
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useAuth.cjs +44 -1
- package/dist/hooks/useAuth.cjs.map +1 -0
- package/dist/hooks/useAuth.js +44 -1
- package/dist/hooks/useAuth.js.map +1 -0
- package/dist/hooks/useCrossmint.cjs +10 -1
- package/dist/hooks/useCrossmint.cjs.map +1 -0
- package/dist/hooks/useCrossmint.js +10 -1
- package/dist/hooks/useCrossmint.js.map +1 -0
- package/dist/hooks/useCrossmintAuth.cjs +44 -1
- package/dist/hooks/useCrossmintAuth.cjs.map +1 -0
- package/dist/hooks/useCrossmintAuth.js +44 -1
- package/dist/hooks/useCrossmintAuth.js.map +1 -0
- package/dist/hooks/useCrossmintCheckout.cjs +13 -1
- package/dist/hooks/useCrossmintCheckout.cjs.map +1 -0
- package/dist/hooks/useCrossmintCheckout.js +13 -1
- package/dist/hooks/useCrossmintCheckout.js.map +1 -0
- package/dist/hooks/useDeepEffect.cjs +8 -1
- package/dist/hooks/useDeepEffect.cjs.map +1 -0
- package/dist/hooks/useDeepEffect.js +8 -1
- package/dist/hooks/useDeepEffect.js.map +1 -0
- package/dist/hooks/useDynamicConnect.cjs +8 -1
- package/dist/hooks/useDynamicConnect.cjs.map +1 -0
- package/dist/hooks/useDynamicConnect.js +8 -1
- package/dist/hooks/useDynamicConnect.js.map +1 -0
- package/dist/hooks/useEnvironment.cjs +8 -1
- package/dist/hooks/useEnvironment.cjs.map +1 -0
- package/dist/hooks/useEnvironment.js +8 -1
- package/dist/hooks/useEnvironment.js.map +1 -0
- package/dist/hooks/useOAuthWindowListener.cjs +44 -1
- package/dist/hooks/useOAuthWindowListener.cjs.map +1 -0
- package/dist/hooks/useOAuthWindowListener.js +44 -1
- package/dist/hooks/useOAuthWindowListener.js.map +1 -0
- package/dist/hooks/useSignerInvisibleIFrame.cjs +8 -0
- package/dist/hooks/useSignerInvisibleIFrame.cjs.map +1 -0
- package/dist/hooks/useSignerInvisibleIFrame.d.cts +377 -0
- package/dist/hooks/useSignerInvisibleIFrame.d.ts +377 -0
- package/dist/hooks/useSignerInvisibleIFrame.js +8 -0
- package/dist/hooks/useSignerInvisibleIFrame.js.map +1 -0
- package/dist/hooks/useWallet.cjs +44 -1
- package/dist/hooks/useWallet.cjs.map +1 -0
- package/dist/hooks/useWallet.d.cts +16 -0
- package/dist/hooks/useWallet.d.ts +16 -0
- package/dist/hooks/useWallet.js +44 -1
- package/dist/hooks/useWallet.js.map +1 -0
- package/dist/icons/alert.cjs +8 -1
- package/dist/icons/alert.cjs.map +1 -0
- package/dist/icons/alert.js +8 -1
- package/dist/icons/alert.js.map +1 -0
- package/dist/icons/base64Icons.cjs +12 -1
- package/dist/icons/base64Icons.cjs.map +1 -0
- package/dist/icons/base64Icons.js +12 -1
- package/dist/icons/base64Icons.js.map +1 -0
- package/dist/icons/chevronRight.cjs +8 -1
- package/dist/icons/chevronRight.cjs.map +1 -0
- package/dist/icons/chevronRight.js +8 -1
- package/dist/icons/chevronRight.js.map +1 -0
- package/dist/icons/discord.cjs +29 -1
- package/dist/icons/discord.cjs.map +1 -0
- package/dist/icons/discord.js +29 -1
- package/dist/icons/discord.js.map +1 -0
- package/dist/icons/emailOTP.cjs +8 -1
- package/dist/icons/emailOTP.cjs.map +1 -0
- package/dist/icons/emailOTP.js +8 -1
- package/dist/icons/emailOTP.js.map +1 -0
- package/dist/icons/farcaster.cjs +8 -1
- package/dist/icons/farcaster.cjs.map +1 -0
- package/dist/icons/farcaster.js +8 -1
- package/dist/icons/farcaster.js.map +1 -0
- package/dist/icons/fingerprint.cjs +8 -1
- package/dist/icons/fingerprint.cjs.map +1 -0
- package/dist/icons/fingerprint.js +8 -1
- package/dist/icons/fingerprint.js.map +1 -0
- package/dist/icons/google.cjs +8 -1
- package/dist/icons/google.cjs.map +1 -0
- package/dist/icons/google.js +8 -1
- package/dist/icons/google.js.map +1 -0
- package/dist/icons/leftArrow.cjs +8 -1
- package/dist/icons/leftArrow.cjs.map +1 -0
- package/dist/icons/leftArrow.js +8 -1
- package/dist/icons/leftArrow.js.map +1 -0
- package/dist/icons/passkey.cjs +8 -1
- package/dist/icons/passkey.cjs.map +1 -0
- package/dist/icons/passkey.js +8 -1
- package/dist/icons/passkey.js.map +1 -0
- package/dist/icons/passkeyPromptLogo.cjs +8 -1
- package/dist/icons/passkeyPromptLogo.cjs.map +1 -0
- package/dist/icons/passkeyPromptLogo.js +8 -1
- package/dist/icons/passkeyPromptLogo.js.map +1 -0
- package/dist/icons/securedByLeaf.cjs +8 -1
- package/dist/icons/securedByLeaf.cjs.map +1 -0
- package/dist/icons/securedByLeaf.js +8 -1
- package/dist/icons/securedByLeaf.js.map +1 -0
- package/dist/icons/twitter.cjs +8 -1
- package/dist/icons/twitter.cjs.map +1 -0
- package/dist/icons/twitter.js +8 -1
- package/dist/icons/twitter.js.map +1 -0
- package/dist/icons/wallet.cjs +8 -1
- package/dist/icons/wallet.cjs.map +1 -0
- package/dist/icons/wallet.js +8 -1
- package/dist/icons/wallet.js.map +1 -0
- package/dist/icons/x.cjs +29 -1
- package/dist/icons/x.cjs.map +1 -0
- package/dist/icons/x.js +29 -1
- package/dist/icons/x.js.map +1 -0
- package/dist/index.cjs +117 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +117 -1
- package/dist/index.js.map +1 -0
- package/dist/providers/CrossmintAuthProvider.cjs +46 -1
- package/dist/providers/CrossmintAuthProvider.cjs.map +1 -0
- package/dist/providers/CrossmintAuthProvider.js +46 -1
- package/dist/providers/CrossmintAuthProvider.js.map +1 -0
- package/dist/providers/CrossmintWalletProvider.cjs +46 -1
- package/dist/providers/CrossmintWalletProvider.cjs.map +1 -0
- package/dist/providers/CrossmintWalletProvider.d.cts +6 -1
- package/dist/providers/CrossmintWalletProvider.d.ts +6 -1
- package/dist/providers/CrossmintWalletProvider.js +46 -1
- package/dist/providers/CrossmintWalletProvider.js.map +1 -0
- package/dist/providers/TwindProvider.cjs +9 -1
- package/dist/providers/TwindProvider.cjs.map +1 -0
- package/dist/providers/TwindProvider.js +9 -1
- package/dist/providers/TwindProvider.js.map +1 -0
- package/dist/providers/auth/AuthFormProvider.cjs +46 -1
- package/dist/providers/auth/AuthFormProvider.cjs.map +1 -0
- package/dist/providers/auth/AuthFormProvider.js +46 -1
- package/dist/providers/auth/AuthFormProvider.js.map +1 -0
- package/dist/providers/auth/FarcasterProvider.cjs +8 -1
- package/dist/providers/auth/FarcasterProvider.cjs.map +1 -0
- package/dist/providers/auth/FarcasterProvider.js +8 -1
- package/dist/providers/auth/FarcasterProvider.js.map +1 -0
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.cjs +44 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.cjs.map +1 -0
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.js +44 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.js.map +1 -0
- package/dist/providers/index.cjs +50 -1
- package/dist/providers/index.cjs.map +1 -0
- package/dist/providers/index.js +50 -1
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/signers/CrossmintSignerProvider.cjs +48 -0
- package/dist/providers/signers/CrossmintSignerProvider.cjs.map +1 -0
- package/dist/providers/signers/CrossmintSignerProvider.d.cts +25 -0
- package/dist/providers/signers/CrossmintSignerProvider.d.ts +25 -0
- package/dist/providers/signers/CrossmintSignerProvider.js +48 -0
- package/dist/providers/signers/CrossmintSignerProvider.js.map +1 -0
- package/dist/testUtils.cjs +8 -1
- package/dist/testUtils.cjs.map +1 -0
- package/dist/testUtils.js +8 -1
- package/dist/testUtils.js.map +1 -0
- package/dist/twind.config.cjs +8 -1
- package/dist/twind.config.cjs.map +1 -0
- package/dist/twind.config.js +8 -1
- package/dist/twind.config.js.map +1 -0
- package/dist/types/auth.cjs +1 -1
- package/dist/types/auth.cjs.map +1 -0
- package/dist/types/auth.d.cts +1 -0
- package/dist/types/auth.d.ts +1 -0
- package/dist/types/auth.js +1 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/types/passkey.cjs +1 -1
- package/dist/types/passkey.cjs.map +1 -0
- package/dist/types/passkey.js +1 -0
- package/dist/types/passkey.js.map +1 -0
- package/dist/types/wallet.cjs +1 -1
- package/dist/types/wallet.cjs.map +1 -0
- package/dist/types/wallet.js +1 -0
- package/dist/types/wallet.js.map +1 -0
- package/dist/utils/classNames.cjs +8 -1
- package/dist/utils/classNames.cjs.map +1 -0
- package/dist/utils/classNames.js +8 -1
- package/dist/utils/classNames.js.map +1 -0
- package/dist/utils/createCrossmintApiClient.cjs +9 -1
- package/dist/utils/createCrossmintApiClient.cjs.map +1 -0
- package/dist/utils/createCrossmintApiClient.js +9 -1
- package/dist/utils/createCrossmintApiClient.js.map +1 -0
- package/dist/utils/createPasskeySigner.cjs +8 -1
- package/dist/utils/createPasskeySigner.cjs.map +1 -0
- package/dist/utils/createPasskeySigner.js +8 -1
- package/dist/utils/createPasskeySigner.js.map +1 -0
- package/dist/utils/dynamic/dynamicChainToCrossmintChain.cjs +10 -1
- package/dist/utils/dynamic/dynamicChainToCrossmintChain.cjs.map +1 -0
- package/dist/utils/dynamic/dynamicChainToCrossmintChain.js +10 -1
- package/dist/utils/dynamic/dynamicChainToCrossmintChain.js.map +1 -0
- package/dist/utils/errorUtils.cjs +8 -0
- package/dist/utils/errorUtils.cjs.map +1 -0
- package/dist/utils/errorUtils.d.cts +6 -0
- package/dist/utils/errorUtils.d.ts +6 -0
- package/dist/utils/errorUtils.js +8 -0
- package/dist/utils/errorUtils.js.map +1 -0
- package/dist/utils/mapSignerToWalletType.cjs +8 -1
- package/dist/utils/mapSignerToWalletType.cjs.map +1 -0
- package/dist/utils/mapSignerToWalletType.js +8 -1
- package/dist/utils/mapSignerToWalletType.js.map +1 -0
- package/package.json +68 -70
- package/dist/chunk-2BOQSASO.cjs +0 -1
- package/dist/chunk-2HFBJAZF.js +0 -1
- package/dist/chunk-2POV64LQ.js +0 -1
- package/dist/chunk-2PVYNZP7.cjs +0 -1
- package/dist/chunk-2VBA64WU.js +0 -1
- package/dist/chunk-2VQLMU5A.cjs +0 -1
- package/dist/chunk-2WSEHVNP.cjs +0 -1
- package/dist/chunk-2ZIM34DD.js +0 -1
- package/dist/chunk-3BUVHV54.js +0 -0
- package/dist/chunk-3EQVCVCE.cjs +0 -1
- package/dist/chunk-3WVCUHA6.js +0 -6
- package/dist/chunk-4CJIQ6A2.cjs +0 -1
- package/dist/chunk-4IHRWQWT.js +0 -1
- package/dist/chunk-4KDASQO6.js +0 -1
- package/dist/chunk-56YL3XJW.cjs +0 -1
- package/dist/chunk-5IFQJPBE.cjs +0 -1
- package/dist/chunk-5X3MPD2V.js +0 -1
- package/dist/chunk-6IR5LWE2.js +0 -1
- package/dist/chunk-72MMCJ2E.js +0 -0
- package/dist/chunk-72P3JMXX.js +0 -1
- package/dist/chunk-77PBG2JJ.js +0 -1
- package/dist/chunk-AHD64NAJ.cjs +0 -1
- package/dist/chunk-BFHQZOV3.js +0 -1
- package/dist/chunk-BQG5DRF3.cjs +0 -1
- package/dist/chunk-BR77Q3PK.cjs +0 -1
- package/dist/chunk-C3JRTLQP.js +0 -1
- package/dist/chunk-DGZQUCSD.js +0 -1
- package/dist/chunk-DQD3L5EO.cjs +0 -1
- package/dist/chunk-E3MTNQXP.cjs +0 -1
- package/dist/chunk-E4TBJMOO.js +0 -1
- package/dist/chunk-E65EGG73.cjs +0 -1
- package/dist/chunk-EA7H4AXL.js +0 -1
- package/dist/chunk-EDEMTFMZ.js +0 -1
- package/dist/chunk-EMXNIC4M.js +0 -1
- package/dist/chunk-EUXGP4IN.cjs +0 -1
- package/dist/chunk-FASRTACD.cjs +0 -1
- package/dist/chunk-FQ246XXN.cjs +0 -1
- package/dist/chunk-GARYGAY7.cjs +0 -1
- package/dist/chunk-GPQZG7HC.cjs +0 -1
- package/dist/chunk-H34D6PAN.js +0 -1
- package/dist/chunk-HG5ML6KX.cjs +0 -1
- package/dist/chunk-HLGNSXEQ.cjs +0 -1
- package/dist/chunk-HLWWVAU2.js +0 -1
- package/dist/chunk-HVZ5M3FY.js +0 -1
- package/dist/chunk-I4GMMHQR.cjs +0 -1
- package/dist/chunk-IAJBYU5C.js +0 -1
- package/dist/chunk-IMV35JZB.cjs +0 -1
- package/dist/chunk-J6YZ5NIK.cjs +0 -1
- package/dist/chunk-JGM3G5E2.js +0 -1
- package/dist/chunk-JNLQRLIC.cjs +0 -1
- package/dist/chunk-JPJKOERH.js +0 -1
- package/dist/chunk-JSNUJJQJ.js +0 -1
- package/dist/chunk-JYGAXNZX.cjs +0 -1
- package/dist/chunk-KFL42A3A.js +0 -1
- package/dist/chunk-KI4HRYHD.cjs +0 -1
- package/dist/chunk-KSYHGCDK.js +0 -1
- package/dist/chunk-L6UXIP23.cjs +0 -6
- package/dist/chunk-L7JAEZCV.cjs +0 -1
- package/dist/chunk-LCCZ7PP2.js +0 -1
- package/dist/chunk-LD3MRJ3F.js +0 -1
- package/dist/chunk-LGI44G6N.js +0 -1
- package/dist/chunk-N65GIM5A.js +0 -1
- package/dist/chunk-NB7AJIPT.js +0 -0
- package/dist/chunk-NBJIJZGO.js +0 -1
- package/dist/chunk-NFLGT52C.cjs +0 -1
- package/dist/chunk-NRN4WNQL.cjs +0 -1
- package/dist/chunk-NZQIZ4ZY.cjs +0 -1
- package/dist/chunk-O5J2ZIJ6.cjs +0 -1
- package/dist/chunk-OOLXYAO7.js +0 -1
- package/dist/chunk-PKGRU57J.js +0 -1
- package/dist/chunk-PXDN3KFO.js +0 -1
- package/dist/chunk-PZ3KXKJD.cjs +0 -1
- package/dist/chunk-PZUWRGVP.cjs +0 -1
- package/dist/chunk-QASKWI5Y.js +0 -1
- package/dist/chunk-QLPV72AE.cjs +0 -1
- package/dist/chunk-QVXTNSBH.js +0 -1
- package/dist/chunk-QYQERFYL.cjs +0 -1
- package/dist/chunk-ROJ6HFVK.js +0 -1
- package/dist/chunk-RYQRCUKB.js +0 -1
- package/dist/chunk-RZG2PAKA.js +0 -1
- package/dist/chunk-S3GCH6GM.js +0 -1
- package/dist/chunk-S73E6EBO.cjs +0 -1
- package/dist/chunk-SFDQPSSP.js +0 -1
- package/dist/chunk-SOVVPJBQ.cjs +0 -1
- package/dist/chunk-SRQAQHYK.cjs +0 -1
- package/dist/chunk-TM7WDKYR.cjs +0 -1
- package/dist/chunk-TNCETEEL.js +0 -1
- package/dist/chunk-TWX7ZBKZ.cjs +0 -1
- package/dist/chunk-TXOVDTYK.cjs +0 -1
- package/dist/chunk-UAFW3OWA.js +0 -1
- package/dist/chunk-UDQUVZUQ.js +0 -1
- package/dist/chunk-UILJI3DM.js +0 -1
- package/dist/chunk-UVNGTD6E.cjs +0 -1
- package/dist/chunk-VB5DXNMG.js +0 -1
- package/dist/chunk-VHNBXIOC.js +0 -1
- package/dist/chunk-VI6TW7JT.cjs +0 -1
- package/dist/chunk-VLDE23JX.js +0 -1
- package/dist/chunk-VWL76U5G.js +0 -1
- package/dist/chunk-W4UPIFFS.cjs +0 -1
- package/dist/chunk-WABJHG6B.cjs +0 -1
- package/dist/chunk-WGXVGMSG.cjs +0 -1
- package/dist/chunk-WHFUW3W3.js +0 -0
- package/dist/chunk-WHRHGJWN.cjs +0 -1
- package/dist/chunk-WMBBIP2C.cjs +0 -1
- package/dist/chunk-WW6GUXHG.js +0 -1
- package/dist/chunk-X5BBXO27.cjs +0 -1
- package/dist/chunk-XRO372DI.cjs +0 -1
- package/dist/chunk-XUT4N66R.cjs +0 -1
- package/dist/chunk-YU5GDE44.cjs +0 -1
- package/dist/chunk-YXF74MVI.cjs +0 -1
- package/dist/chunk-Z2FGFHRQ.cjs +0 -1
- package/dist/chunk-ZBQCXWMD.cjs +0 -1
- package/dist/chunk-ZJHNEQNA.js +0 -1
- package/dist/chunk-ZZYJ6XM2.js +0 -1
|
@@ -1 +1,174 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
handleSendTransaction
|
|
3
|
+
} from "../../../../chunk-FU74NHZW.js";
|
|
4
|
+
import {
|
|
5
|
+
ChainNotSupportedError,
|
|
6
|
+
dynamicChainToCrossmintChain
|
|
7
|
+
} from "../../../../chunk-7HENIDX5.js";
|
|
8
|
+
import {
|
|
9
|
+
DynamicContextProviderWrapper
|
|
10
|
+
} from "../../../../chunk-F2AWZC4M.js";
|
|
11
|
+
import {
|
|
12
|
+
__async,
|
|
13
|
+
__spreadValues
|
|
14
|
+
} from "../../../../chunk-CRTRMMJ7.js";
|
|
15
|
+
|
|
16
|
+
// src/components/embed/v3/crypto/CryptoWalletConnectionHandler.tsx
|
|
17
|
+
import {
|
|
18
|
+
blockchainToChainId
|
|
19
|
+
} from "@crossmint/common-sdk-base";
|
|
20
|
+
import { EthereumWalletConnectors } from "@dynamic-labs/ethereum";
|
|
21
|
+
import { DynamicContext, useDynamicContext } from "@dynamic-labs/sdk-react-core";
|
|
22
|
+
import { SolanaWalletConnectors } from "@dynamic-labs/solana";
|
|
23
|
+
import { SuiWalletConnectors } from "@dynamic-labs/sui";
|
|
24
|
+
import { useContext, useEffect, useState } from "react";
|
|
25
|
+
import { jsx } from "react/jsx-runtime";
|
|
26
|
+
function CryptoWalletConnectionHandler(props) {
|
|
27
|
+
const { iframeClient, apiKeyEnvironment } = props;
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
DynamicContextProviderWrapper,
|
|
30
|
+
{
|
|
31
|
+
apiKeyEnvironment,
|
|
32
|
+
settings: {
|
|
33
|
+
walletConnectors: [EthereumWalletConnectors, SolanaWalletConnectors, SuiWalletConnectors],
|
|
34
|
+
events: {
|
|
35
|
+
onAuthFlowCancel() {
|
|
36
|
+
console.log("[CryptoWalletConnectionHandler] onAuthFlowCancel");
|
|
37
|
+
iframeClient == null ? void 0 : iframeClient.send("crypto:connect-wallet.failed", {
|
|
38
|
+
error: "Wallet connection was cancelled"
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
onAuthFlowClose() {
|
|
42
|
+
console.log("[CryptoWalletConnectionHandler] onAuthFlowClose");
|
|
43
|
+
},
|
|
44
|
+
onAuthFailure(data, reason) {
|
|
45
|
+
console.error("[CryptoWalletConnectionHandler] onAuthFailure", data, reason);
|
|
46
|
+
},
|
|
47
|
+
onAuthSuccess(data) {
|
|
48
|
+
console.log("[CryptoWalletConnectionHandler] onAuthSuccess", data);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
handlers: {
|
|
52
|
+
handleConnectedWallet: (wallet) => __async(this, null, function* () {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
console.log("[CryptoWalletConnectionHandler] handleConnectedWallet", wallet);
|
|
55
|
+
const address = wallet.address;
|
|
56
|
+
if (!address) {
|
|
57
|
+
console.error(
|
|
58
|
+
"[CryptoWalletConnectionHandler] Failed to connect wallet: Could not retrieve wallet address"
|
|
59
|
+
);
|
|
60
|
+
iframeClient == null ? void 0 : iframeClient.send("crypto:connect-wallet.failed", {
|
|
61
|
+
error: "Could not retrieve wallet address. Please ensure your wallet is properly connected and try again."
|
|
62
|
+
});
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
let chain;
|
|
66
|
+
try {
|
|
67
|
+
chain = yield dynamicChainToCrossmintChain(wallet);
|
|
68
|
+
} catch (e) {
|
|
69
|
+
if (e instanceof ChainNotSupportedError) {
|
|
70
|
+
const defaultCrossmintChain = apiKeyEnvironment === "production" ? "ethereum" : "ethereum-sepolia";
|
|
71
|
+
const defaultChainId = blockchainToChainId(defaultCrossmintChain);
|
|
72
|
+
try {
|
|
73
|
+
yield (_a = wallet == null ? void 0 : wallet.connector) == null ? void 0 : _a.switchNetwork({
|
|
74
|
+
networkChainId: defaultChainId
|
|
75
|
+
});
|
|
76
|
+
chain = defaultCrossmintChain;
|
|
77
|
+
} catch (switchNetworkError) {
|
|
78
|
+
console.error(
|
|
79
|
+
`[CryptoWalletConnectionHandler] Failed to switch to default chain ${defaultChainId}`,
|
|
80
|
+
switchNetworkError
|
|
81
|
+
);
|
|
82
|
+
iframeClient == null ? void 0 : iframeClient.send("crypto:connect-wallet.failed", {
|
|
83
|
+
error: `Chain with id ${e.chainId} is not supported. Please change the network in your wallet and try again.`
|
|
84
|
+
});
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
throw e;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
iframeClient == null ? void 0 : iframeClient.send("crypto:connect-wallet.success", {
|
|
92
|
+
address,
|
|
93
|
+
chain,
|
|
94
|
+
walletProviderKey: (_b = wallet.connector) == null ? void 0 : _b.key
|
|
95
|
+
});
|
|
96
|
+
return true;
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
children: /* @__PURE__ */ jsx(_CryptoWalletConnectionHandler, __spreadValues({}, props))
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function _CryptoWalletConnectionHandler({ iframeClient }) {
|
|
105
|
+
const [showDynamicModal, setShowDynamicModal] = useState(false);
|
|
106
|
+
const { primaryWallet } = useDynamicContext();
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
if (iframeClient == null) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const showAuthFlowListener = iframeClient.on("crypto:connect-wallet.show", ({ show }) => {
|
|
112
|
+
setShowDynamicModal(show);
|
|
113
|
+
});
|
|
114
|
+
return () => {
|
|
115
|
+
iframeClient.off(showAuthFlowListener);
|
|
116
|
+
};
|
|
117
|
+
}, [iframeClient]);
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (iframeClient == null) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const signTransactionListener = iframeClient.on(
|
|
123
|
+
"crypto:send-transaction",
|
|
124
|
+
(_0) => __async(this, [_0], function* ({ chain, serializedTransaction }) {
|
|
125
|
+
if (primaryWallet == null) {
|
|
126
|
+
console.error("[CryptoWalletConnectionHandler] signTransaction: primaryWallet is missing");
|
|
127
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
128
|
+
error: "primaryWallet is missing"
|
|
129
|
+
});
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
yield handleSendTransaction(
|
|
133
|
+
primaryWallet,
|
|
134
|
+
chain,
|
|
135
|
+
serializedTransaction,
|
|
136
|
+
iframeClient
|
|
137
|
+
);
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
return () => {
|
|
141
|
+
iframeClient.off(signTransactionListener);
|
|
142
|
+
};
|
|
143
|
+
}, [iframeClient, primaryWallet]);
|
|
144
|
+
return showDynamicModal ? /* @__PURE__ */ jsx(ShowDynamicModal, { setShowDynamicModal }) : null;
|
|
145
|
+
}
|
|
146
|
+
function ShowDynamicModal({ setShowDynamicModal }) {
|
|
147
|
+
const context = useContext(DynamicContext);
|
|
148
|
+
if (context == null) {
|
|
149
|
+
throw new Error("DynamicContext is missing");
|
|
150
|
+
}
|
|
151
|
+
const { setShowAuthFlow, handleLogOut } = context;
|
|
152
|
+
useEffect(() => {
|
|
153
|
+
var _a;
|
|
154
|
+
(_a = document.getElementById("crossmint-focus-target")) == null ? void 0 : _a.focus();
|
|
155
|
+
(() => __async(this, null, function* () {
|
|
156
|
+
yield handleLogOut();
|
|
157
|
+
setShowAuthFlow(true, {
|
|
158
|
+
clearErrors: true,
|
|
159
|
+
emitCancelAuth: true,
|
|
160
|
+
ignoreIfIsEmbeddedWidget: true,
|
|
161
|
+
initializeWalletConnect: true,
|
|
162
|
+
performMultiWalletChecks: false
|
|
163
|
+
// Important to be false in order to not require double clicking connect button
|
|
164
|
+
});
|
|
165
|
+
setShowDynamicModal(false);
|
|
166
|
+
}))();
|
|
167
|
+
}, []);
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
CryptoWalletConnectionHandler,
|
|
172
|
+
ShowDynamicModal
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=CryptoWalletConnectionHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed/v3/crypto/CryptoWalletConnectionHandler.tsx"],"sourcesContent":["import DynamicContextProviderWrapper from \"@/components/dynamic-xyz/DynamicContextProviderWrapper\";\nimport type { EmbeddedCheckoutV3IFrameEmitter } from \"@crossmint/client-sdk-base\";\nimport {\n blockchainToChainId,\n type APIKeyEnvironmentPrefix,\n type BlockchainIncludingTestnet,\n} from \"@crossmint/common-sdk-base\";\nimport { EthereumWalletConnectors } from \"@dynamic-labs/ethereum\";\nimport { DynamicContext, useDynamicContext } from \"@dynamic-labs/sdk-react-core\";\nimport { SolanaWalletConnectors } from \"@dynamic-labs/solana\";\nimport { SuiWalletConnectors } from \"@dynamic-labs/sui\";\nimport { type Dispatch, type SetStateAction, useContext, useEffect, useState } from \"react\";\nimport { handleSendTransaction } from \"./utils/handleSendTransaction\";\nimport { ChainNotSupportedError, dynamicChainToCrossmintChain } from \"@/utils/dynamic/dynamicChainToCrossmintChain\";\n\nexport function CryptoWalletConnectionHandler(props: {\n iframeClient: EmbeddedCheckoutV3IFrameEmitter | null;\n apiKeyEnvironment: APIKeyEnvironmentPrefix;\n}) {\n const { iframeClient, apiKeyEnvironment } = props;\n\n return (\n <DynamicContextProviderWrapper\n apiKeyEnvironment={apiKeyEnvironment}\n settings={{\n walletConnectors: [EthereumWalletConnectors, SolanaWalletConnectors, SuiWalletConnectors],\n events: {\n onAuthFlowCancel() {\n console.log(\"[CryptoWalletConnectionHandler] onAuthFlowCancel\");\n iframeClient?.send(\"crypto:connect-wallet.failed\", {\n error: \"Wallet connection was cancelled\",\n });\n },\n onAuthFlowClose() {\n console.log(\"[CryptoWalletConnectionHandler] onAuthFlowClose\");\n },\n onAuthFailure(data, reason) {\n console.error(\"[CryptoWalletConnectionHandler] onAuthFailure\", data, reason);\n },\n onAuthSuccess(data) {\n console.log(\"[CryptoWalletConnectionHandler] onAuthSuccess\", data);\n },\n },\n handlers: {\n handleConnectedWallet: async (wallet) => {\n console.log(\"[CryptoWalletConnectionHandler] handleConnectedWallet\", wallet);\n\n const address = wallet.address;\n if (!address) {\n console.error(\n \"[CryptoWalletConnectionHandler] Failed to connect wallet: Could not retrieve wallet address\"\n );\n iframeClient?.send(\"crypto:connect-wallet.failed\", {\n error: \"Could not retrieve wallet address. Please ensure your wallet is properly connected and try again.\",\n });\n return false;\n }\n\n let chain;\n try {\n chain = await dynamicChainToCrossmintChain(wallet);\n } catch (e) {\n // If the user's wallet is on a chain we don't support (this should only happen for EVM):\n // - Switch to the default chain\n // - If that fails, return an error explaining user must switch to a supported chain\n if (e instanceof ChainNotSupportedError) {\n const defaultCrossmintChain =\n apiKeyEnvironment === \"production\" ? \"ethereum\" : \"ethereum-sepolia\";\n const defaultChainId = blockchainToChainId(defaultCrossmintChain);\n try {\n await wallet?.connector?.switchNetwork({\n networkChainId: defaultChainId,\n });\n chain = defaultCrossmintChain;\n } catch (switchNetworkError) {\n console.error(\n `[CryptoWalletConnectionHandler] Failed to switch to default chain ${defaultChainId}`,\n switchNetworkError\n );\n iframeClient?.send(\"crypto:connect-wallet.failed\", {\n error: `Chain with id ${e.chainId} is not supported. Please change the network in your wallet and try again.`,\n });\n return false;\n }\n } else {\n throw e;\n }\n }\n\n iframeClient?.send(\"crypto:connect-wallet.success\", {\n address,\n chain,\n walletProviderKey: wallet.connector?.key,\n });\n\n return true;\n },\n },\n }}\n >\n <_CryptoWalletConnectionHandler {...props} />\n </DynamicContextProviderWrapper>\n );\n}\n\nfunction _CryptoWalletConnectionHandler({ iframeClient }: Parameters<typeof CryptoWalletConnectionHandler>[0]) {\n const [showDynamicModal, setShowDynamicModal] = useState(false);\n const { primaryWallet } = useDynamicContext();\n\n useEffect(() => {\n if (iframeClient == null) {\n return;\n }\n const showAuthFlowListener = iframeClient.on(\"crypto:connect-wallet.show\", ({ show }) => {\n setShowDynamicModal(show);\n });\n\n return () => {\n iframeClient.off(showAuthFlowListener);\n };\n }, [iframeClient]);\n\n useEffect(() => {\n if (iframeClient == null) {\n return;\n }\n const signTransactionListener = iframeClient.on(\n \"crypto:send-transaction\",\n async ({ chain, serializedTransaction }) => {\n if (primaryWallet == null) {\n console.error(\"[CryptoWalletConnectionHandler] signTransaction: primaryWallet is missing\");\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: \"primaryWallet is missing\",\n });\n return;\n }\n\n await handleSendTransaction(\n primaryWallet,\n chain as BlockchainIncludingTestnet,\n serializedTransaction,\n iframeClient\n );\n }\n );\n\n return () => {\n iframeClient.off(signTransactionListener);\n };\n }, [iframeClient, primaryWallet]);\n\n return showDynamicModal ? <ShowDynamicModal setShowDynamicModal={setShowDynamicModal} /> : null;\n}\n\nexport function ShowDynamicModal({ setShowDynamicModal }: { setShowDynamicModal: Dispatch<SetStateAction<boolean>> }) {\n const context = useContext(DynamicContext);\n if (context == null) {\n throw new Error(\"DynamicContext is missing\");\n }\n const { setShowAuthFlow, handleLogOut } = context;\n\n useEffect(() => {\n // Move focus from the iframe to the main page, otherwise the modal will require a double click to interact with it\n document.getElementById(\"crossmint-focus-target\")?.focus();\n\n (async () => {\n await handleLogOut();\n setShowAuthFlow(true, {\n clearErrors: true,\n emitCancelAuth: true,\n ignoreIfIsEmbeddedWidget: true,\n initializeWalletConnect: true,\n performMultiWalletChecks: false, // Important to be false in order to not require double clicking connect button\n });\n setShowDynamicModal(false);\n })();\n }, []);\n\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAEA;AAAA,EACI;AAAA,OAGG;AACP,SAAS,gCAAgC;AACzC,SAAS,gBAAgB,yBAAyB;AAClD,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAA6C,YAAY,WAAW,gBAAgB;AAyFxE;AArFL,SAAS,8BAA8B,OAG3C;AACC,QAAM,EAAE,cAAc,kBAAkB,IAAI;AAE5C,SACI;AAAA,IAAC;AAAA;AAAA,MACG;AAAA,MACA,UAAU;AAAA,QACN,kBAAkB,CAAC,0BAA0B,wBAAwB,mBAAmB;AAAA,QACxF,QAAQ;AAAA,UACJ,mBAAmB;AACf,oBAAQ,IAAI,kDAAkD;AAC9D,yDAAc,KAAK,gCAAgC;AAAA,cAC/C,OAAO;AAAA,YACX;AAAA,UACJ;AAAA,UACA,kBAAkB;AACd,oBAAQ,IAAI,iDAAiD;AAAA,UACjE;AAAA,UACA,cAAc,MAAM,QAAQ;AACxB,oBAAQ,MAAM,iDAAiD,MAAM,MAAM;AAAA,UAC/E;AAAA,UACA,cAAc,MAAM;AAChB,oBAAQ,IAAI,iDAAiD,IAAI;AAAA,UACrE;AAAA,QACJ;AAAA,QACA,UAAU;AAAA,UACN,uBAAuB,CAAO,WAAW;AA5C7D;AA6CwB,oBAAQ,IAAI,yDAAyD,MAAM;AAE3E,kBAAM,UAAU,OAAO;AACvB,gBAAI,CAAC,SAAS;AACV,sBAAQ;AAAA,gBACJ;AAAA,cACJ;AACA,2DAAc,KAAK,gCAAgC;AAAA,gBAC/C,OAAO;AAAA,cACX;AACA,qBAAO;AAAA,YACX;AAEA,gBAAI;AACJ,gBAAI;AACA,sBAAQ,MAAM,6BAA6B,MAAM;AAAA,YACrD,SAAS,GAAG;AAIR,kBAAI,aAAa,wBAAwB;AACrC,sBAAM,wBACF,sBAAsB,eAAe,aAAa;AACtD,sBAAM,iBAAiB,oBAAoB,qBAAqB;AAChE,oBAAI;AACA,yBAAM,sCAAQ,cAAR,mBAAmB,cAAc;AAAA,oBACnC,gBAAgB;AAAA,kBACpB;AACA,0BAAQ;AAAA,gBACZ,SAAS,oBAAoB;AACzB,0BAAQ;AAAA,oBACJ,qEAAqE,cAAc;AAAA,oBACnF;AAAA,kBACJ;AACA,+DAAc,KAAK,gCAAgC;AAAA,oBAC/C,OAAO,iBAAiB,EAAE,OAAO;AAAA,kBACrC;AACA,yBAAO;AAAA,gBACX;AAAA,cACJ,OAAO;AACH,sBAAM;AAAA,cACV;AAAA,YACJ;AAEA,yDAAc,KAAK,iCAAiC;AAAA,cAChD;AAAA,cACA;AAAA,cACA,oBAAmB,YAAO,cAAP,mBAAkB;AAAA,YACzC;AAEA,mBAAO;AAAA,UACX;AAAA,QACJ;AAAA,MACJ;AAAA,MAEA,8BAAC,mDAAmC,MAAO;AAAA;AAAA,EAC/C;AAER;AAEA,SAAS,+BAA+B,EAAE,aAAa,GAAwD;AAC3G,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,SAAS,KAAK;AAC9D,QAAM,EAAE,cAAc,IAAI,kBAAkB;AAE5C,YAAU,MAAM;AACZ,QAAI,gBAAgB,MAAM;AACtB;AAAA,IACJ;AACA,UAAM,uBAAuB,aAAa,GAAG,8BAA8B,CAAC,EAAE,KAAK,MAAM;AACrF,0BAAoB,IAAI;AAAA,IAC5B,CAAC;AAED,WAAO,MAAM;AACT,mBAAa,IAAI,oBAAoB;AAAA,IACzC;AAAA,EACJ,GAAG,CAAC,YAAY,CAAC;AAEjB,YAAU,MAAM;AACZ,QAAI,gBAAgB,MAAM;AACtB;AAAA,IACJ;AACA,UAAM,0BAA0B,aAAa;AAAA,MACzC;AAAA,MACA,CAAO,OAAqC,eAArC,KAAqC,WAArC,EAAE,OAAO,sBAAsB,GAAM;AACxC,YAAI,iBAAiB,MAAM;AACvB,kBAAQ,MAAM,2EAA2E;AACzF,uBAAa,KAAK,kCAAkC;AAAA,YAChD,OAAO;AAAA,UACX,CAAC;AACD;AAAA,QACJ;AAEA,cAAM;AAAA,UACF;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACJ;AAAA,MACJ;AAAA,IACJ;AAEA,WAAO,MAAM;AACT,mBAAa,IAAI,uBAAuB;AAAA,IAC5C;AAAA,EACJ,GAAG,CAAC,cAAc,aAAa,CAAC;AAEhC,SAAO,mBAAmB,oBAAC,oBAAiB,qBAA0C,IAAK;AAC/F;AAEO,SAAS,iBAAiB,EAAE,oBAAoB,GAA+D;AAClH,QAAM,UAAU,WAAW,cAAc;AACzC,MAAI,WAAW,MAAM;AACjB,UAAM,IAAI,MAAM,2BAA2B;AAAA,EAC/C;AACA,QAAM,EAAE,iBAAiB,aAAa,IAAI;AAE1C,YAAU,MAAM;AAjKpB;AAmKQ,mBAAS,eAAe,wBAAwB,MAAhD,mBAAmD;AAEnD,KAAC,MAAY;AACT,YAAM,aAAa;AACnB,sBAAgB,MAAM;AAAA,QAClB,aAAa;AAAA,QACb,gBAAgB;AAAA,QAChB,0BAA0B;AAAA,QAC1B,yBAAyB;AAAA,QACzB,0BAA0B;AAAA;AAAA,MAC9B,CAAC;AACD,0BAAoB,KAAK;AAAA,IAC7B,IAAG;AAAA,EACP,GAAG,CAAC,CAAC;AAEL,SAAO;AACX;","names":[]}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk3CWYQQ65cjs = require('../../../../chunk-3CWYQQ65.cjs');
|
|
4
|
+
require('../../../../chunk-4DAZAO6Y.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.PayerConnectionHandler = _chunk3CWYQQ65cjs.PayerConnectionHandler;
|
|
8
|
+
//# sourceMappingURL=PayerConnectionHandler.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {
|
|
2
|
+
PayerConnectionHandler
|
|
3
|
+
} from "../../../../chunk-WVM3I3I3.js";
|
|
4
|
+
import "../../../../chunk-CRTRMMJ7.js";
|
|
5
|
+
export {
|
|
6
|
+
PayerConnectionHandler
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=PayerConnectionHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk4DAZAO6Ycjs = require('../../../../../chunk-4DAZAO6Y.cjs');
|
|
4
|
+
|
|
5
|
+
// src/components/embed/v3/crypto/utils/handleEvmTransaction.ts
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _commonsdkbase = require('@crossmint/common-sdk-base');
|
|
9
|
+
var _ethereum = require('@dynamic-labs/ethereum');
|
|
10
|
+
var _viem = require('viem');
|
|
11
|
+
function handleEvmTransaction(_0) {
|
|
12
|
+
return _chunk4DAZAO6Ycjs.__async.call(void 0, this, arguments, function* ({
|
|
13
|
+
primaryWallet,
|
|
14
|
+
chain,
|
|
15
|
+
serializedTransaction,
|
|
16
|
+
iframeClient
|
|
17
|
+
}) {
|
|
18
|
+
const { connector } = primaryWallet;
|
|
19
|
+
const chainId = _commonsdkbase.blockchainToChainId.call(void 0, chain);
|
|
20
|
+
try {
|
|
21
|
+
yield connector.switchNetwork({ networkChainId: chainId });
|
|
22
|
+
} catch (error) {
|
|
23
|
+
console.error(`[CryptoWalletConnectionHandler] failed to switch network to ${chainId}`, error);
|
|
24
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
25
|
+
error: error.message
|
|
26
|
+
});
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
let walletClient;
|
|
30
|
+
try {
|
|
31
|
+
if (!_ethereum.isEthereumWallet.call(void 0, primaryWallet)) {
|
|
32
|
+
throw new Error("primaryWallet is not an ethereum wallet");
|
|
33
|
+
}
|
|
34
|
+
walletClient = yield primaryWallet.getWalletClient(String(chainId));
|
|
35
|
+
if (!walletClient) {
|
|
36
|
+
throw new Error(`primaryWallet.getWalletClient(${chainId}) returned undefined`);
|
|
37
|
+
}
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error("[CryptoWalletConnectionHandler] failed to get wallet client", error);
|
|
40
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
41
|
+
error: error.message
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
let parsedTransaction;
|
|
46
|
+
try {
|
|
47
|
+
parsedTransaction = _viem.parseTransaction.call(void 0, serializedTransaction);
|
|
48
|
+
} catch (error) {
|
|
49
|
+
console.error("[CryptoWalletConnectionHandler] failed to parse transaction", error);
|
|
50
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
51
|
+
error: error.message
|
|
52
|
+
});
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
const txId = yield walletClient.sendTransaction(parsedTransaction);
|
|
57
|
+
console.log("[CryptoWalletConnectionHandler] txId", txId);
|
|
58
|
+
iframeClient.send("crypto:send-transaction:success", {
|
|
59
|
+
txId
|
|
60
|
+
});
|
|
61
|
+
} catch (error) {
|
|
62
|
+
console.error("[CryptoWalletConnectionHandler] failed to send transaction", error);
|
|
63
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
64
|
+
error: error.message
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
exports.handleEvmTransaction = handleEvmTransaction;
|
|
72
|
+
//# sourceMappingURL=handleEvmTransaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/embed/v3/crypto/utils/handleEvmTransaction.ts"],"names":[],"mappings":";;;;;AACA;AAAA,EAEI;AAAA,OAEG;AACP,SAAS,wBAAwB;AAEjC,SAA8C,wBAAwB;AAEtE,SAAsB,qBAAqB,IAUxC;AAAA,6CAVwC;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAKG;AACC,UAAM,EAAE,UAAU,IAAI;AACtB,UAAM,UAAU,oBAAoB,KAAsC;AAE1E,QAAI;AACA,YAAM,UAAU,cAAc,EAAE,gBAAgB,QAAQ,CAAC;AAAA,IAC7D,SAAS,OAAO;AACZ,cAAQ,MAAM,+DAA+D,OAAO,IAAI,KAAK;AAC7F,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACJ,QAAI;AACA,UAAI,CAAC,iBAAiB,aAAa,GAAG;AAClC,cAAM,IAAI,MAAM,yCAAyC;AAAA,MAC7D;AAEA,qBAAe,MAAM,cAAc,gBAAgB,OAAO,OAAO,CAAC;AAClE,UAAI,CAAC,cAAc;AACf,cAAM,IAAI,MAAM,iCAAiC,OAAO,sBAAsB;AAAA,MAClF;AAAA,IACJ,SAAS,OAAO;AACZ,cAAQ,MAAM,+DAA+D,KAAK;AAClF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACJ,QAAI;AACA,0BAAoB,iBAAiB,qBAAsC;AAAA,IAC/E,SAAS,OAAO;AACZ,cAAQ,MAAM,+DAA+D,KAAK;AAClF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACA,YAAM,OAAO,MAAM,aAAa,gBAAgB,iBAAiB;AACjE,cAAQ,IAAI,wCAAwC,IAAI;AACxD,mBAAa,KAAK,mCAAmC;AAAA,QACjD;AAAA,MACJ,CAAC;AAAA,IACL,SAAS,OAAO;AACZ,cAAQ,MAAM,8DAA8D,KAAK;AACjF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AAAA,IACL;AAAA,EACJ;AAAA","sourcesContent":["import type { EmbeddedCheckoutV3IFrameEmitter } from \"@crossmint/client-sdk-base\";\nimport {\n type BlockchainIncludingTestnet,\n blockchainToChainId,\n type EVMBlockchainIncludingTestnet,\n} from \"@crossmint/common-sdk-base\";\nimport { isEthereumWallet } from \"@dynamic-labs/ethereum\";\nimport type { Wallet } from \"@dynamic-labs/sdk-react-core\";\nimport { type TransactionSerializableEIP1559, parseTransaction } from \"viem\";\n\nexport async function handleEvmTransaction({\n primaryWallet,\n chain,\n serializedTransaction,\n iframeClient,\n}: {\n primaryWallet: Wallet;\n chain: BlockchainIncludingTestnet;\n serializedTransaction: string;\n iframeClient: EmbeddedCheckoutV3IFrameEmitter;\n}) {\n const { connector } = primaryWallet;\n const chainId = blockchainToChainId(chain as EVMBlockchainIncludingTestnet);\n\n try {\n await connector.switchNetwork({ networkChainId: chainId });\n } catch (error) {\n console.error(`[CryptoWalletConnectionHandler] failed to switch network to ${chainId}`, error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n return;\n }\n\n let walletClient;\n try {\n if (!isEthereumWallet(primaryWallet)) {\n throw new Error(\"primaryWallet is not an ethereum wallet\");\n }\n\n walletClient = await primaryWallet.getWalletClient(String(chainId));\n if (!walletClient) {\n throw new Error(`primaryWallet.getWalletClient(${chainId}) returned undefined`);\n }\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to get wallet client\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n return;\n }\n\n let parsedTransaction: TransactionSerializableEIP1559;\n try {\n parsedTransaction = parseTransaction(serializedTransaction as `0x${string}`) as TransactionSerializableEIP1559;\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to parse transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n return;\n }\n\n try {\n const txId = await walletClient.sendTransaction(parsedTransaction);\n console.log(\"[CryptoWalletConnectionHandler] txId\", txId);\n iframeClient.send(\"crypto:send-transaction:success\", {\n txId,\n });\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to send transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n }\n}\n"]}
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__async
|
|
3
|
+
} from "../../../../../chunk-CRTRMMJ7.js";
|
|
4
|
+
|
|
5
|
+
// src/components/embed/v3/crypto/utils/handleEvmTransaction.ts
|
|
6
|
+
import {
|
|
7
|
+
blockchainToChainId
|
|
8
|
+
} from "@crossmint/common-sdk-base";
|
|
9
|
+
import { isEthereumWallet } from "@dynamic-labs/ethereum";
|
|
10
|
+
import { parseTransaction } from "viem";
|
|
11
|
+
function handleEvmTransaction(_0) {
|
|
12
|
+
return __async(this, arguments, function* ({
|
|
13
|
+
primaryWallet,
|
|
14
|
+
chain,
|
|
15
|
+
serializedTransaction,
|
|
16
|
+
iframeClient
|
|
17
|
+
}) {
|
|
18
|
+
const { connector } = primaryWallet;
|
|
19
|
+
const chainId = blockchainToChainId(chain);
|
|
20
|
+
try {
|
|
21
|
+
yield connector.switchNetwork({ networkChainId: chainId });
|
|
22
|
+
} catch (error) {
|
|
23
|
+
console.error(`[CryptoWalletConnectionHandler] failed to switch network to ${chainId}`, error);
|
|
24
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
25
|
+
error: error.message
|
|
26
|
+
});
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
let walletClient;
|
|
30
|
+
try {
|
|
31
|
+
if (!isEthereumWallet(primaryWallet)) {
|
|
32
|
+
throw new Error("primaryWallet is not an ethereum wallet");
|
|
33
|
+
}
|
|
34
|
+
walletClient = yield primaryWallet.getWalletClient(String(chainId));
|
|
35
|
+
if (!walletClient) {
|
|
36
|
+
throw new Error(`primaryWallet.getWalletClient(${chainId}) returned undefined`);
|
|
37
|
+
}
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error("[CryptoWalletConnectionHandler] failed to get wallet client", error);
|
|
40
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
41
|
+
error: error.message
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
let parsedTransaction;
|
|
46
|
+
try {
|
|
47
|
+
parsedTransaction = parseTransaction(serializedTransaction);
|
|
48
|
+
} catch (error) {
|
|
49
|
+
console.error("[CryptoWalletConnectionHandler] failed to parse transaction", error);
|
|
50
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
51
|
+
error: error.message
|
|
52
|
+
});
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
const txId = yield walletClient.sendTransaction(parsedTransaction);
|
|
57
|
+
console.log("[CryptoWalletConnectionHandler] txId", txId);
|
|
58
|
+
iframeClient.send("crypto:send-transaction:success", {
|
|
59
|
+
txId
|
|
60
|
+
});
|
|
61
|
+
} catch (error) {
|
|
62
|
+
console.error("[CryptoWalletConnectionHandler] failed to send transaction", error);
|
|
63
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
64
|
+
error: error.message
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
handleEvmTransaction
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=handleEvmTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/embed/v3/crypto/utils/handleEvmTransaction.ts"],"sourcesContent":["import type { EmbeddedCheckoutV3IFrameEmitter } from \"@crossmint/client-sdk-base\";\nimport {\n type BlockchainIncludingTestnet,\n blockchainToChainId,\n type EVMBlockchainIncludingTestnet,\n} from \"@crossmint/common-sdk-base\";\nimport { isEthereumWallet } from \"@dynamic-labs/ethereum\";\nimport type { Wallet } from \"@dynamic-labs/sdk-react-core\";\nimport { type TransactionSerializableEIP1559, parseTransaction } from \"viem\";\n\nexport async function handleEvmTransaction({\n primaryWallet,\n chain,\n serializedTransaction,\n iframeClient,\n}: {\n primaryWallet: Wallet;\n chain: BlockchainIncludingTestnet;\n serializedTransaction: string;\n iframeClient: EmbeddedCheckoutV3IFrameEmitter;\n}) {\n const { connector } = primaryWallet;\n const chainId = blockchainToChainId(chain as EVMBlockchainIncludingTestnet);\n\n try {\n await connector.switchNetwork({ networkChainId: chainId });\n } catch (error) {\n console.error(`[CryptoWalletConnectionHandler] failed to switch network to ${chainId}`, error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n return;\n }\n\n let walletClient;\n try {\n if (!isEthereumWallet(primaryWallet)) {\n throw new Error(\"primaryWallet is not an ethereum wallet\");\n }\n\n walletClient = await primaryWallet.getWalletClient(String(chainId));\n if (!walletClient) {\n throw new Error(`primaryWallet.getWalletClient(${chainId}) returned undefined`);\n }\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to get wallet client\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n return;\n }\n\n let parsedTransaction: TransactionSerializableEIP1559;\n try {\n parsedTransaction = parseTransaction(serializedTransaction as `0x${string}`) as TransactionSerializableEIP1559;\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to parse transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n return;\n }\n\n try {\n const txId = await walletClient.sendTransaction(parsedTransaction);\n console.log(\"[CryptoWalletConnectionHandler] txId\", txId);\n iframeClient.send(\"crypto:send-transaction:success\", {\n txId,\n });\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to send transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n }\n}\n"],"mappings":";;;;;AACA;AAAA,EAEI;AAAA,OAEG;AACP,SAAS,wBAAwB;AAEjC,SAA8C,wBAAwB;AAEtE,SAAsB,qBAAqB,IAUxC;AAAA,6CAVwC;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAKG;AACC,UAAM,EAAE,UAAU,IAAI;AACtB,UAAM,UAAU,oBAAoB,KAAsC;AAE1E,QAAI;AACA,YAAM,UAAU,cAAc,EAAE,gBAAgB,QAAQ,CAAC;AAAA,IAC7D,SAAS,OAAO;AACZ,cAAQ,MAAM,+DAA+D,OAAO,IAAI,KAAK;AAC7F,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACJ,QAAI;AACA,UAAI,CAAC,iBAAiB,aAAa,GAAG;AAClC,cAAM,IAAI,MAAM,yCAAyC;AAAA,MAC7D;AAEA,qBAAe,MAAM,cAAc,gBAAgB,OAAO,OAAO,CAAC;AAClE,UAAI,CAAC,cAAc;AACf,cAAM,IAAI,MAAM,iCAAiC,OAAO,sBAAsB;AAAA,MAClF;AAAA,IACJ,SAAS,OAAO;AACZ,cAAQ,MAAM,+DAA+D,KAAK;AAClF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACJ,QAAI;AACA,0BAAoB,iBAAiB,qBAAsC;AAAA,IAC/E,SAAS,OAAO;AACZ,cAAQ,MAAM,+DAA+D,KAAK;AAClF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACA,YAAM,OAAO,MAAM,aAAa,gBAAgB,iBAAiB;AACjE,cAAQ,IAAI,wCAAwC,IAAI;AACxD,mBAAa,KAAK,mCAAmC;AAAA,QACjD;AAAA,MACJ,CAAC;AAAA,IACL,SAAS,OAAO;AACZ,cAAQ,MAAM,8DAA8D,KAAK;AACjF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AAAA,IACL;AAAA,EACJ;AAAA;","names":[]}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkLAI55KMWcjs = require('../../../../../chunk-LAI55KMW.cjs');
|
|
4
|
+
require('../../../../../chunk-4DAZAO6Y.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.handleSendTransaction = _chunkLAI55KMWcjs.handleSendTransaction;
|
|
8
|
+
//# sourceMappingURL=handleSendTransaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {
|
|
2
|
+
handleSendTransaction
|
|
3
|
+
} from "../../../../../chunk-FU74NHZW.js";
|
|
4
|
+
import "../../../../../chunk-CRTRMMJ7.js";
|
|
5
|
+
export {
|
|
6
|
+
handleSendTransaction
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=handleSendTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +1,55 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
+
|
|
3
|
+
var _chunk4DAZAO6Ycjs = require('../../../../../chunk-4DAZAO6Y.cjs');
|
|
4
|
+
|
|
5
|
+
// src/components/embed/v3/crypto/utils/handleSolanaTransaction.ts
|
|
6
|
+
var _solana = require('@dynamic-labs/solana');
|
|
7
|
+
var _web3js = require('@solana/web3.js');
|
|
8
|
+
var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);
|
|
9
|
+
function handleSolanaTransaction(_0) {
|
|
10
|
+
return _chunk4DAZAO6Ycjs.__async.call(void 0, this, arguments, function* ({
|
|
11
|
+
primaryWallet,
|
|
12
|
+
serializedTransaction,
|
|
13
|
+
iframeClient
|
|
14
|
+
}) {
|
|
15
|
+
let signer;
|
|
16
|
+
try {
|
|
17
|
+
if (!_solana.isSolanaWallet.call(void 0, primaryWallet)) {
|
|
18
|
+
throw new Error("primaryWallet is not a Solana wallet");
|
|
19
|
+
}
|
|
20
|
+
signer = yield primaryWallet.getSigner();
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error("[CryptoWalletConnectionHandler] failed to get signer", error);
|
|
23
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
24
|
+
error: "Failed to get signer"
|
|
25
|
+
});
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
let deserializedTransaction;
|
|
29
|
+
try {
|
|
30
|
+
deserializedTransaction = _web3js.Transaction.from(_bs582.default.decode(serializedTransaction));
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error("[CryptoWalletConnectionHandler] failed to deserialize transaction", error);
|
|
33
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
34
|
+
error: "Failed to deserialize transaction"
|
|
35
|
+
});
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const { signature: txId } = yield signer.signAndSendTransaction(deserializedTransaction);
|
|
40
|
+
console.log("[CryptoWalletConnectionHandler] txId", txId);
|
|
41
|
+
iframeClient.send("crypto:send-transaction:success", {
|
|
42
|
+
txId
|
|
43
|
+
});
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error("[CryptoWalletConnectionHandler] failed to send transaction", error);
|
|
46
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
47
|
+
error: error.message
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
exports.handleSolanaTransaction = handleSolanaTransaction;
|
|
55
|
+
//# sourceMappingURL=handleSolanaTransaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/embed/v3/crypto/utils/handleSolanaTransaction.ts"],"names":[],"mappings":";;;;;AAEA,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,OAAO,YAAY;AAEnB,SAAsB,wBAAwB,IAQ3C;AAAA,6CAR2C;AAAA,IAC1C;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAIG;AAGC,QAAI;AACJ,QAAI;AACA,UAAI,CAAC,eAAe,aAAa,GAAG;AAChC,cAAM,IAAI,MAAM,sCAAsC;AAAA,MAC1D;AACA,eAAS,MAAM,cAAc,UAAU;AAAA,IAC3C,SAAS,OAAO;AACZ,cAAQ,MAAM,wDAAwD,KAAK;AAC3E,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAO;AAAA,MACX,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACJ,QAAI;AACA,gCAA0B,YAAY,KAAK,OAAO,OAAO,qBAAqB,CAAC;AAAA,IACnF,SAAS,OAAO;AACZ,cAAQ,MAAM,qEAAqE,KAAK;AACxF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAO;AAAA,MACX,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACA,YAAM,EAAE,WAAW,KAAK,IAAI,MAAM,OAAO,uBAAuB,uBAAuB;AACvF,cAAQ,IAAI,wCAAwC,IAAI;AACxD,mBAAa,KAAK,mCAAmC;AAAA,QACjD;AAAA,MACJ,CAAC;AAAA,IACL,SAAS,OAAO;AACZ,cAAQ,MAAM,8DAA8D,KAAK;AACjF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AAAA,IACL;AAAA,EACJ;AAAA","sourcesContent":["import type { EmbeddedCheckoutV3IFrameEmitter } from \"@crossmint/client-sdk-base\";\nimport type { Wallet } from \"@dynamic-labs/sdk-react-core\";\nimport { isSolanaWallet } from \"@dynamic-labs/solana\";\nimport { Transaction } from \"@solana/web3.js\";\nimport base58 from \"bs58\";\n\nexport async function handleSolanaTransaction({\n primaryWallet,\n serializedTransaction,\n iframeClient,\n}: {\n primaryWallet: Wallet;\n serializedTransaction: string;\n iframeClient: EmbeddedCheckoutV3IFrameEmitter;\n}) {\n // TODO: Handle switch network\n\n let signer;\n try {\n if (!isSolanaWallet(primaryWallet)) {\n throw new Error(\"primaryWallet is not a Solana wallet\");\n }\n signer = await primaryWallet.getSigner();\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to get signer\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: \"Failed to get signer\",\n });\n return;\n }\n\n let deserializedTransaction: Transaction;\n try {\n deserializedTransaction = Transaction.from(base58.decode(serializedTransaction));\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to deserialize transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: \"Failed to deserialize transaction\",\n });\n return;\n }\n\n try {\n const { signature: txId } = await signer.signAndSendTransaction(deserializedTransaction);\n console.log(\"[CryptoWalletConnectionHandler] txId\", txId);\n iframeClient.send(\"crypto:send-transaction:success\", {\n txId,\n });\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to send transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n }\n}\n"]}
|
|
@@ -1 +1,55 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__async
|
|
3
|
+
} from "../../../../../chunk-CRTRMMJ7.js";
|
|
4
|
+
|
|
5
|
+
// src/components/embed/v3/crypto/utils/handleSolanaTransaction.ts
|
|
6
|
+
import { isSolanaWallet } from "@dynamic-labs/solana";
|
|
7
|
+
import { Transaction } from "@solana/web3.js";
|
|
8
|
+
import base58 from "bs58";
|
|
9
|
+
function handleSolanaTransaction(_0) {
|
|
10
|
+
return __async(this, arguments, function* ({
|
|
11
|
+
primaryWallet,
|
|
12
|
+
serializedTransaction,
|
|
13
|
+
iframeClient
|
|
14
|
+
}) {
|
|
15
|
+
let signer;
|
|
16
|
+
try {
|
|
17
|
+
if (!isSolanaWallet(primaryWallet)) {
|
|
18
|
+
throw new Error("primaryWallet is not a Solana wallet");
|
|
19
|
+
}
|
|
20
|
+
signer = yield primaryWallet.getSigner();
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error("[CryptoWalletConnectionHandler] failed to get signer", error);
|
|
23
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
24
|
+
error: "Failed to get signer"
|
|
25
|
+
});
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
let deserializedTransaction;
|
|
29
|
+
try {
|
|
30
|
+
deserializedTransaction = Transaction.from(base58.decode(serializedTransaction));
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error("[CryptoWalletConnectionHandler] failed to deserialize transaction", error);
|
|
33
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
34
|
+
error: "Failed to deserialize transaction"
|
|
35
|
+
});
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const { signature: txId } = yield signer.signAndSendTransaction(deserializedTransaction);
|
|
40
|
+
console.log("[CryptoWalletConnectionHandler] txId", txId);
|
|
41
|
+
iframeClient.send("crypto:send-transaction:success", {
|
|
42
|
+
txId
|
|
43
|
+
});
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error("[CryptoWalletConnectionHandler] failed to send transaction", error);
|
|
46
|
+
iframeClient.send("crypto:send-transaction:failed", {
|
|
47
|
+
error: error.message
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
handleSolanaTransaction
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=handleSolanaTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/embed/v3/crypto/utils/handleSolanaTransaction.ts"],"sourcesContent":["import type { EmbeddedCheckoutV3IFrameEmitter } from \"@crossmint/client-sdk-base\";\nimport type { Wallet } from \"@dynamic-labs/sdk-react-core\";\nimport { isSolanaWallet } from \"@dynamic-labs/solana\";\nimport { Transaction } from \"@solana/web3.js\";\nimport base58 from \"bs58\";\n\nexport async function handleSolanaTransaction({\n primaryWallet,\n serializedTransaction,\n iframeClient,\n}: {\n primaryWallet: Wallet;\n serializedTransaction: string;\n iframeClient: EmbeddedCheckoutV3IFrameEmitter;\n}) {\n // TODO: Handle switch network\n\n let signer;\n try {\n if (!isSolanaWallet(primaryWallet)) {\n throw new Error(\"primaryWallet is not a Solana wallet\");\n }\n signer = await primaryWallet.getSigner();\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to get signer\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: \"Failed to get signer\",\n });\n return;\n }\n\n let deserializedTransaction: Transaction;\n try {\n deserializedTransaction = Transaction.from(base58.decode(serializedTransaction));\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to deserialize transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: \"Failed to deserialize transaction\",\n });\n return;\n }\n\n try {\n const { signature: txId } = await signer.signAndSendTransaction(deserializedTransaction);\n console.log(\"[CryptoWalletConnectionHandler] txId\", txId);\n iframeClient.send(\"crypto:send-transaction:success\", {\n txId,\n });\n } catch (error) {\n console.error(\"[CryptoWalletConnectionHandler] failed to send transaction\", error);\n iframeClient.send(\"crypto:send-transaction:failed\", {\n error: (error as Error).message,\n });\n }\n}\n"],"mappings":";;;;;AAEA,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,OAAO,YAAY;AAEnB,SAAsB,wBAAwB,IAQ3C;AAAA,6CAR2C;AAAA,IAC1C;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAIG;AAGC,QAAI;AACJ,QAAI;AACA,UAAI,CAAC,eAAe,aAAa,GAAG;AAChC,cAAM,IAAI,MAAM,sCAAsC;AAAA,MAC1D;AACA,eAAS,MAAM,cAAc,UAAU;AAAA,IAC3C,SAAS,OAAO;AACZ,cAAQ,MAAM,wDAAwD,KAAK;AAC3E,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAO;AAAA,MACX,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACJ,QAAI;AACA,gCAA0B,YAAY,KAAK,OAAO,OAAO,qBAAqB,CAAC;AAAA,IACnF,SAAS,OAAO;AACZ,cAAQ,MAAM,qEAAqE,KAAK;AACxF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAO;AAAA,MACX,CAAC;AACD;AAAA,IACJ;AAEA,QAAI;AACA,YAAM,EAAE,WAAW,KAAK,IAAI,MAAM,OAAO,uBAAuB,uBAAuB;AACvF,cAAQ,IAAI,wCAAwC,IAAI;AACxD,mBAAa,KAAK,mCAAmC;AAAA,QACjD;AAAA,MACJ,CAAC;AAAA,IACL,SAAS,OAAO;AACZ,cAAQ,MAAM,8DAA8D,KAAK;AACjF,mBAAa,KAAK,kCAAkC;AAAA,QAChD,OAAQ,MAAgB;AAAA,MAC5B,CAAC;AAAA,IACL;AAAA,EACJ;AAAA;","names":[]}
|