@crossmint/client-sdk-react-ui 1.9.3 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-35RV5AOT.cjs +70 -0
- package/dist/chunk-35RV5AOT.cjs.map +1 -0
- package/dist/chunk-3C5IQSUX.cjs +50 -0
- package/dist/chunk-3C5IQSUX.cjs.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-3RXUFZTR.cjs +14 -0
- package/dist/chunk-3RXUFZTR.cjs.map +1 -0
- package/dist/chunk-43P7QWBK.cjs +17 -0
- package/dist/chunk-43P7QWBK.cjs.map +1 -0
- package/dist/chunk-4DAZAO6Y.cjs +59 -0
- package/dist/chunk-4DAZAO6Y.cjs.map +1 -0
- package/dist/chunk-5IX763AW.js +10 -0
- package/dist/chunk-5IX763AW.js.map +1 -0
- package/dist/chunk-5KK3YQWD.cjs +1 -0
- package/dist/chunk-5KK3YQWD.cjs.map +1 -0
- package/dist/chunk-5RX5WFEW.cjs +11 -0
- package/dist/chunk-5RX5WFEW.cjs.map +1 -0
- package/dist/chunk-5S4VO6RB.cjs +55 -0
- package/dist/chunk-5S4VO6RB.cjs.map +1 -0
- package/dist/chunk-6DNBJVR5.js +64 -0
- package/dist/chunk-6DNBJVR5.js.map +1 -0
- package/dist/chunk-6LO4NSRH.cjs +21 -0
- package/dist/chunk-6LO4NSRH.cjs.map +1 -0
- package/dist/chunk-7KIY6DLW.js +28 -0
- package/dist/chunk-7KIY6DLW.js.map +1 -0
- package/dist/chunk-7SBZ6OIH.js +1 -0
- package/dist/chunk-7SBZ6OIH.js.map +1 -0
- package/dist/chunk-A2JCJ2OV.cjs +119 -0
- package/dist/chunk-A2JCJ2OV.cjs.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-AUEQQ4D3.js +119 -0
- package/dist/chunk-AUEQQ4D3.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-BE2ZLB3L.cjs +19 -0
- package/dist/chunk-BE2ZLB3L.cjs.map +1 -0
- package/dist/chunk-BKVDVDKX.cjs +1 -0
- package/dist/chunk-BKVDVDKX.cjs.map +1 -0
- package/dist/chunk-C2VARNXL.js +70 -0
- package/dist/chunk-C2VARNXL.js.map +1 -0
- package/dist/chunk-CPYPI45H.js +98 -0
- package/dist/chunk-CPYPI45H.js.map +1 -0
- package/dist/chunk-CRTRMMJ7.js +59 -0
- package/dist/chunk-CRTRMMJ7.js.map +1 -0
- package/dist/chunk-CUODMU27.js +1265 -0
- package/dist/chunk-CUODMU27.js.map +1 -0
- package/dist/chunk-DJ32OEWG.cjs +54 -0
- package/dist/chunk-DJ32OEWG.cjs.map +1 -0
- package/dist/chunk-DZ5MGN25.js +147 -0
- package/dist/chunk-DZ5MGN25.js.map +1 -0
- package/dist/chunk-ENCR5SUW.cjs +51 -0
- package/dist/chunk-ENCR5SUW.cjs.map +1 -0
- package/dist/chunk-EOWJ7775.js +18 -0
- package/dist/chunk-EOWJ7775.js.map +1 -0
- package/dist/chunk-EVL7VEPX.js +14 -0
- package/dist/chunk-EVL7VEPX.js.map +1 -0
- package/dist/chunk-FKIMKZ4Y.js +17 -0
- package/dist/chunk-FKIMKZ4Y.js.map +1 -0
- package/dist/chunk-FOCUIKYH.cjs +1265 -0
- package/dist/chunk-FOCUIKYH.cjs.map +1 -0
- package/dist/chunk-GGE3H4XP.cjs +33 -0
- package/dist/chunk-GGE3H4XP.cjs.map +1 -0
- package/dist/chunk-GY6G3ZC2.cjs +41 -0
- package/dist/chunk-GY6G3ZC2.cjs.map +1 -0
- package/dist/chunk-H4F7UVPT.js +34 -0
- package/dist/chunk-H4F7UVPT.js.map +1 -0
- package/dist/chunk-HATQVB6H.js +19 -0
- package/dist/chunk-HATQVB6H.js.map +1 -0
- package/dist/chunk-HCW4RO2O.cjs +29 -0
- package/dist/chunk-HCW4RO2O.cjs.map +1 -0
- package/dist/chunk-HENBZUED.cjs +10 -0
- package/dist/chunk-HENBZUED.cjs.map +1 -0
- package/dist/chunk-HG57BLPT.js +31 -0
- package/dist/chunk-HG57BLPT.js.map +1 -0
- package/dist/chunk-HPOZ6I54.cjs +44 -0
- package/dist/chunk-HPOZ6I54.cjs.map +1 -0
- package/dist/chunk-HYGCZCR2.js +33 -0
- package/dist/chunk-HYGCZCR2.js.map +1 -0
- package/dist/chunk-I63FQCIV.js +189 -0
- package/dist/chunk-I63FQCIV.js.map +1 -0
- package/dist/chunk-IP4HQL5I.cjs +147 -0
- package/dist/chunk-IP4HQL5I.cjs.map +1 -0
- package/dist/chunk-IQPA3QOV.js +27 -0
- package/dist/chunk-IQPA3QOV.js.map +1 -0
- package/dist/chunk-KAXBBO66.cjs +30 -0
- package/dist/chunk-KAXBBO66.cjs.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-L3FKENHU.js +14 -0
- package/dist/chunk-L3FKENHU.js.map +1 -0
- package/dist/chunk-L3L7YEW3.js +22 -0
- package/dist/chunk-L3L7YEW3.js.map +1 -0
- package/dist/chunk-MH37OJT2.cjs +80 -0
- package/dist/chunk-MH37OJT2.cjs.map +1 -0
- package/dist/chunk-MJHLKJ6X.cjs +212 -0
- package/dist/chunk-MJHLKJ6X.cjs.map +1 -0
- package/dist/chunk-MUS7DUPS.cjs +98 -0
- package/dist/chunk-MUS7DUPS.cjs.map +1 -0
- package/dist/chunk-NMXFWIFA.js +133 -0
- package/dist/chunk-NMXFWIFA.js.map +1 -0
- package/dist/chunk-OZS4WEKF.js +55 -0
- package/dist/chunk-OZS4WEKF.js.map +1 -0
- package/dist/chunk-PBSL6JOF.cjs +17 -0
- package/dist/chunk-PBSL6JOF.cjs.map +1 -0
- package/dist/chunk-PHCGCJSA.js +107 -0
- package/dist/chunk-PHCGCJSA.js.map +1 -0
- package/dist/chunk-Q3M4UH5U.cjs +48 -0
- package/dist/chunk-Q3M4UH5U.cjs.map +1 -0
- package/dist/chunk-QDKAU3H2.js +31 -0
- package/dist/chunk-QDKAU3H2.js.map +1 -0
- package/dist/chunk-QFQWKKVU.js +11 -0
- package/dist/chunk-QFQWKKVU.js.map +1 -0
- package/dist/chunk-QIPMBCAV.js +86 -0
- package/dist/chunk-QIPMBCAV.js.map +1 -0
- package/dist/chunk-QJ44PL7L.js +41 -0
- package/dist/chunk-QJ44PL7L.js.map +1 -0
- package/dist/chunk-QK5J7FD3.cjs +11 -0
- package/dist/chunk-QK5J7FD3.cjs.map +1 -0
- package/dist/chunk-QKALEGXY.js +153 -0
- package/dist/chunk-QKALEGXY.js.map +1 -0
- package/dist/chunk-QQXBYOKA.cjs +16 -0
- package/dist/chunk-QQXBYOKA.cjs.map +1 -0
- package/dist/chunk-QT7UEJZG.cjs +133 -0
- package/dist/chunk-QT7UEJZG.cjs.map +1 -0
- package/dist/chunk-QTGK3RB5.js +31 -0
- package/dist/chunk-QTGK3RB5.js.map +1 -0
- package/dist/chunk-QTL5I5C2.js +38 -0
- package/dist/chunk-QTL5I5C2.js.map +1 -0
- package/dist/chunk-R6IL3WOE.cjs +31 -0
- package/dist/chunk-R6IL3WOE.cjs.map +1 -0
- package/dist/chunk-RZPQIRIY.js +11 -0
- package/dist/chunk-RZPQIRIY.js.map +1 -0
- package/dist/chunk-RZT2J42J.js +29 -0
- package/dist/chunk-RZT2J42J.js.map +1 -0
- package/dist/chunk-SBA6FMFT.cjs +18 -0
- package/dist/chunk-SBA6FMFT.cjs.map +1 -0
- package/dist/chunk-SVI3L5G5.cjs +86 -0
- package/dist/chunk-SVI3L5G5.cjs.map +1 -0
- package/dist/chunk-SZA3XDJ5.cjs +1 -0
- package/dist/chunk-SZA3XDJ5.cjs.map +1 -0
- package/dist/chunk-TIQPIPH5.cjs +31 -0
- package/dist/chunk-TIQPIPH5.cjs.map +1 -0
- package/dist/chunk-U5EONMPH.js +30 -0
- package/dist/chunk-U5EONMPH.js.map +1 -0
- package/dist/chunk-UASNCH3A.cjs +27 -0
- package/dist/chunk-UASNCH3A.cjs.map +1 -0
- package/dist/chunk-UQAKJ4T7.cjs +29 -0
- package/dist/chunk-UQAKJ4T7.cjs.map +1 -0
- package/dist/chunk-URKPLEPV.cjs +189 -0
- package/dist/chunk-URKPLEPV.cjs.map +1 -0
- package/dist/chunk-VZIXXIU5.js +32 -0
- package/dist/chunk-VZIXXIU5.js.map +1 -0
- package/dist/chunk-W2Q46OO4.js +17 -0
- package/dist/chunk-W2Q46OO4.js.map +1 -0
- package/dist/chunk-W3SNJ5XS.cjs +153 -0
- package/dist/chunk-W3SNJ5XS.cjs.map +1 -0
- package/dist/chunk-WK5RAFJ3.js +54 -0
- package/dist/chunk-WK5RAFJ3.js.map +1 -0
- package/dist/chunk-WQ7WULBW.cjs +31 -0
- package/dist/chunk-WQ7WULBW.cjs.map +1 -0
- package/dist/chunk-XDJ6F7N4.cjs +107 -0
- package/dist/chunk-XDJ6F7N4.cjs.map +1 -0
- package/dist/chunk-XEZF7G64.js +212 -0
- package/dist/chunk-XEZF7G64.js.map +1 -0
- package/dist/chunk-XRFRY2LN.js +50 -0
- package/dist/chunk-XRFRY2LN.js.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-Y7PF2Z3W.cjs +22 -0
- package/dist/chunk-Y7PF2Z3W.cjs.map +1 -0
- package/dist/chunk-YE55IKBP.cjs +34 -0
- package/dist/chunk-YE55IKBP.cjs.map +1 -0
- package/dist/chunk-YNJPYSO4.cjs +17 -0
- package/dist/chunk-YNJPYSO4.cjs.map +1 -0
- package/dist/chunk-YWVQCHQF.js +51 -0
- package/dist/chunk-YWVQCHQF.js.map +1 -0
- package/dist/chunk-ZCYU7QA6.cjs +64 -0
- package/dist/chunk-ZCYU7QA6.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 +37 -1
- package/dist/components/auth/AuthForm.cjs.map +1 -0
- package/dist/components/auth/AuthForm.js +37 -1
- package/dist/components/auth/AuthForm.js.map +1 -0
- package/dist/components/auth/AuthFormBackButton.cjs +10 -1
- package/dist/components/auth/AuthFormBackButton.cjs.map +1 -0
- package/dist/components/auth/AuthFormBackButton.js +10 -1
- package/dist/components/auth/AuthFormBackButton.js.map +1 -0
- package/dist/components/auth/AuthFormDialog.cjs +37 -1
- package/dist/components/auth/AuthFormDialog.cjs.map +1 -0
- package/dist/components/auth/AuthFormDialog.js +37 -1
- package/dist/components/auth/AuthFormDialog.js.map +1 -0
- package/dist/components/auth/EmbeddedAuthForm.cjs +38 -1
- package/dist/components/auth/EmbeddedAuthForm.cjs.map +1 -0
- package/dist/components/auth/EmbeddedAuthForm.js +38 -1
- package/dist/components/auth/EmbeddedAuthForm.js.map +1 -0
- package/dist/components/auth/PasskeyPrompt.cjs +14 -1
- package/dist/components/auth/PasskeyPrompt.cjs.map +1 -0
- package/dist/components/auth/PasskeyPrompt.js +14 -1
- package/dist/components/auth/PasskeyPrompt.js.map +1 -0
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs +37 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs.map +1 -0
- package/dist/components/auth/methods/email/EmailAuthFlow.js +37 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.js.map +1 -0
- package/dist/components/auth/methods/email/EmailOTPInput.cjs +39 -1
- package/dist/components/auth/methods/email/EmailOTPInput.cjs.map +1 -0
- package/dist/components/auth/methods/email/EmailOTPInput.js +39 -1
- package/dist/components/auth/methods/email/EmailOTPInput.js.map +1 -0
- package/dist/components/auth/methods/email/EmailSignIn.cjs +37 -1
- package/dist/components/auth/methods/email/EmailSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/email/EmailSignIn.js +37 -1
- package/dist/components/auth/methods/email/EmailSignIn.js.map +1 -0
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +37 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +37 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js.map +1 -0
- package/dist/components/auth/methods/google/GoogleSignIn.cjs +37 -1
- package/dist/components/auth/methods/google/GoogleSignIn.cjs.map +1 -0
- package/dist/components/auth/methods/google/GoogleSignIn.js +37 -1
- package/dist/components/auth/methods/google/GoogleSignIn.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +37 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.d.cts +5 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.d.ts +5 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.js +37 -0
- package/dist/components/auth/methods/web3/Web3AuthFlow.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthWrapper.cjs +37 -0
- package/dist/components/auth/methods/web3/Web3AuthWrapper.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3AuthWrapper.d.cts +10 -0
- package/dist/components/auth/methods/web3/Web3AuthWrapper.d.ts +10 -0
- package/dist/components/auth/methods/web3/Web3AuthWrapper.js +37 -0
- package/dist/components/auth/methods/web3/Web3AuthWrapper.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3ConnectButton.cjs +11 -0
- package/dist/components/auth/methods/web3/Web3ConnectButton.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3ConnectButton.d.cts +13 -0
- package/dist/components/auth/methods/web3/Web3ConnectButton.d.ts +13 -0
- package/dist/components/auth/methods/web3/Web3ConnectButton.js +11 -0
- package/dist/components/auth/methods/web3/Web3ConnectButton.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3Connectors.cjs +37 -0
- package/dist/components/auth/methods/web3/Web3Connectors.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3Connectors.d.cts +5 -0
- package/dist/components/auth/methods/web3/Web3Connectors.d.ts +5 -0
- package/dist/components/auth/methods/web3/Web3Connectors.js +37 -0
- package/dist/components/auth/methods/web3/Web3Connectors.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3ProviderButton.cjs +9 -0
- package/dist/components/auth/methods/web3/Web3ProviderButton.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3ProviderButton.d.cts +11 -0
- package/dist/components/auth/methods/web3/Web3ProviderButton.d.ts +11 -0
- package/dist/components/auth/methods/web3/Web3ProviderButton.js +9 -0
- package/dist/components/auth/methods/web3/Web3ProviderButton.js.map +1 -0
- package/dist/components/auth/methods/web3/Web3SignIn.cjs +37 -0
- package/dist/components/auth/methods/web3/Web3SignIn.cjs.map +1 -0
- package/dist/components/auth/methods/web3/Web3SignIn.d.cts +5 -0
- package/dist/components/auth/methods/web3/Web3SignIn.d.ts +5 -0
- package/dist/components/auth/methods/web3/Web3SignIn.js +37 -0
- package/dist/components/auth/methods/web3/Web3SignIn.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.d.cts +1 -2
- package/dist/components/common/Dialog.d.ts +1 -2
- package/dist/components/common/Dialog.js +26 -1
- package/dist/components/common/Dialog.js.map +1 -0
- package/dist/components/common/Divider.cjs +37 -1
- package/dist/components/common/Divider.cjs.map +1 -0
- package/dist/components/common/Divider.js +37 -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.d.cts +5 -27
- package/dist/components/common/InputOTP.d.ts +5 -27
- package/dist/components/common/InputOTP.js +14 -1
- package/dist/components/common/InputOTP.js.map +1 -0
- package/dist/components/common/PoweredByCrossmint.cjs +10 -1
- package/dist/components/common/PoweredByCrossmint.cjs.map +1 -0
- package/dist/components/common/PoweredByCrossmint.js +10 -1
- package/dist/components/common/PoweredByCrossmint.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 +39 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs.map +1 -0
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +39 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js.map +1 -0
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +38 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs.map +1 -0
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +38 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js.map +1 -0
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs +135 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js +135 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.cjs +63 -1
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.js +63 -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 +51 -1
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.cjs.map +1 -0
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.js +51 -1
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.js.map +1 -0
- package/dist/components/embed/v3/index.cjs +40 -1
- package/dist/components/embed/v3/index.cjs.map +1 -0
- package/dist/components/embed/v3/index.js +40 -1
- package/dist/components/embed/v3/index.js.map +1 -0
- package/dist/components/hosted/CrossmintPayButton.cjs +11 -1
- package/dist/components/hosted/CrossmintPayButton.cjs.map +1 -0
- package/dist/components/hosted/CrossmintPayButton.js +11 -1
- package/dist/components/hosted/CrossmintPayButton.js.map +1 -0
- package/dist/components/hosted/index.cjs +12 -1
- package/dist/components/hosted/index.cjs.map +1 -0
- package/dist/components/hosted/index.js +12 -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/index.cjs +70 -1
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.js +70 -1
- package/dist/components/index.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 +49 -1
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.cts +3 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +49 -1
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useAuth.cjs +37 -1
- package/dist/hooks/useAuth.cjs.map +1 -0
- package/dist/hooks/useAuth.d.cts +8 -10
- package/dist/hooks/useAuth.d.ts +8 -10
- package/dist/hooks/useAuth.js +37 -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.d.cts +0 -1
- package/dist/hooks/useCrossmint.d.ts +0 -1
- package/dist/hooks/useCrossmint.js +10 -1
- package/dist/hooks/useCrossmint.js.map +1 -0
- package/dist/hooks/useCrossmintAuth.cjs +37 -0
- package/dist/hooks/useCrossmintAuth.cjs.map +1 -0
- package/dist/hooks/useCrossmintAuth.d.cts +11 -0
- package/dist/hooks/useCrossmintAuth.d.ts +11 -0
- package/dist/hooks/useCrossmintAuth.js +37 -0
- 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.d.cts +2 -1
- package/dist/hooks/useCrossmintCheckout.d.ts +2 -1
- 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/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 +37 -1
- package/dist/hooks/useOAuthWindowListener.cjs.map +1 -0
- package/dist/hooks/useOAuthWindowListener.d.cts +2 -6
- package/dist/hooks/useOAuthWindowListener.d.ts +2 -6
- package/dist/hooks/useOAuthWindowListener.js +37 -1
- package/dist/hooks/useOAuthWindowListener.js.map +1 -0
- package/dist/hooks/useWallet.cjs +37 -1
- package/dist/hooks/useWallet.cjs.map +1 -0
- package/dist/hooks/useWallet.js +37 -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 -0
- package/dist/icons/base64Icons.cjs.map +1 -0
- package/dist/icons/base64Icons.d.cts +5 -0
- package/dist/icons/base64Icons.d.ts +5 -0
- package/dist/icons/base64Icons.js +12 -0
- package/dist/icons/base64Icons.js.map +1 -0
- package/dist/icons/chevronRight.cjs +8 -0
- package/dist/icons/chevronRight.cjs.map +1 -0
- package/dist/icons/chevronRight.d.cts +9 -0
- package/dist/icons/chevronRight.d.ts +9 -0
- package/dist/icons/chevronRight.js +8 -0
- 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/poweredByLeaf.cjs +8 -1
- package/dist/icons/poweredByLeaf.cjs.map +1 -0
- package/dist/icons/poweredByLeaf.d.cts +1 -2
- package/dist/icons/poweredByLeaf.d.ts +1 -2
- package/dist/icons/poweredByLeaf.js +8 -1
- package/dist/icons/poweredByLeaf.js.map +1 -0
- package/dist/icons/wallet.cjs +8 -0
- package/dist/icons/wallet.cjs.map +1 -0
- package/dist/icons/wallet.d.cts +9 -0
- package/dist/icons/wallet.d.ts +9 -0
- package/dist/icons/wallet.js +8 -0
- 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 +126 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +126 -1
- package/dist/index.js.map +1 -0
- package/dist/providers/CrossmintAuthProvider.cjs +39 -1
- package/dist/providers/CrossmintAuthProvider.cjs.map +1 -0
- package/dist/providers/CrossmintAuthProvider.d.cts +9 -6
- package/dist/providers/CrossmintAuthProvider.d.ts +9 -6
- package/dist/providers/CrossmintAuthProvider.js +39 -1
- package/dist/providers/CrossmintAuthProvider.js.map +1 -0
- package/dist/providers/CrossmintWalletProvider.cjs +39 -1
- package/dist/providers/CrossmintWalletProvider.cjs.map +1 -0
- package/dist/providers/CrossmintWalletProvider.js +39 -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 +39 -1
- package/dist/providers/auth/AuthFormProvider.cjs.map +1 -0
- package/dist/providers/auth/AuthFormProvider.d.cts +7 -9
- package/dist/providers/auth/AuthFormProvider.d.ts +7 -9
- package/dist/providers/auth/AuthFormProvider.js +39 -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/WagmiAuthProvider.cjs +8 -0
- package/dist/providers/auth/web3/WagmiAuthProvider.cjs.map +1 -0
- package/dist/providers/auth/web3/WagmiAuthProvider.d.cts +8 -0
- package/dist/providers/auth/web3/WagmiAuthProvider.d.ts +8 -0
- package/dist/providers/auth/web3/WagmiAuthProvider.js +8 -0
- package/dist/providers/auth/web3/WagmiAuthProvider.js.map +1 -0
- package/dist/providers/index.cjs +43 -1
- package/dist/providers/index.cjs.map +1 -0
- package/dist/providers/index.d.cts +2 -1
- package/dist/providers/index.d.ts +2 -1
- package/dist/providers/index.js +43 -1
- package/dist/providers/index.js.map +1 -0
- package/dist/testUtils.cjs +8 -1
- package/dist/testUtils.cjs.map +1 -0
- package/dist/testUtils.d.cts +1 -2
- package/dist/testUtils.d.ts +1 -2
- 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.d.cts +0 -3
- package/dist/twind.config.d.ts +0 -3
- 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.js +1 -0
- package/dist/types/auth.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/package.json +21 -15
- package/src/components/auth/AuthForm.tsx +10 -5
- package/src/components/auth/AuthFormBackButton.tsx +1 -5
- package/src/components/auth/AuthFormDialog.tsx +7 -2
- package/src/components/auth/methods/email/EmailOTPInput.tsx +13 -14
- package/src/components/auth/methods/email/EmailSignIn.tsx +15 -19
- package/src/components/auth/methods/farcaster/FarcasterSignIn.tsx +10 -14
- package/src/components/auth/methods/google/GoogleSignIn.tsx +7 -16
- package/src/components/auth/methods/web3/Web3AuthFlow.tsx +17 -0
- package/src/components/auth/methods/web3/Web3AuthWrapper.tsx +87 -0
- package/src/components/auth/methods/web3/Web3ConnectButton.tsx +62 -0
- package/src/components/auth/methods/web3/Web3Connectors.tsx +91 -0
- package/src/components/auth/methods/web3/Web3ProviderButton.tsx +38 -0
- package/src/components/auth/methods/web3/Web3SignIn.tsx +41 -0
- package/src/components/common/Dialog.tsx +10 -29
- package/src/components/common/Divider.tsx +1 -1
- package/src/components/common/InputOTP.tsx +9 -4
- package/src/components/common/PoweredByCrossmint.tsx +3 -10
- package/src/components/embed/v3/EmbeddedCheckoutV3IFrame.tsx +11 -3
- package/src/components/embed/v3/crypto/utils/handleSendTransaction.ts +12 -6
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useAuth.ts +2 -2
- package/src/hooks/useCrossmint.test.tsx +4 -33
- package/src/hooks/useCrossmint.tsx +1 -12
- package/src/hooks/useCrossmintAuth.ts +12 -0
- package/src/hooks/useCrossmintCheckout.tsx +7 -5
- package/src/hooks/useOAuthWindowListener.ts +4 -10
- package/src/icons/base64Icons.ts +8 -0
- package/src/icons/chevronRight.tsx +21 -0
- package/src/icons/poweredByLeaf.tsx +81 -80
- package/src/icons/wallet.tsx +23 -0
- package/src/providers/CrossmintAuthProvider.test.tsx +72 -87
- package/src/providers/CrossmintAuthProvider.tsx +52 -49
- package/src/providers/CrossmintWalletProvider.test.tsx +15 -9
- package/src/providers/auth/AuthFormProvider.test.tsx +61 -19
- package/src/providers/auth/AuthFormProvider.tsx +52 -60
- package/src/providers/auth/web3/WagmiAuthProvider.tsx +56 -0
- package/src/testUtils.ts +0 -4
- package/src/twind.config.ts +12 -5
- package/dist/chunk-22TFOKGT.js +0 -1
- package/dist/chunk-265BME7Y.cjs +0 -1
- package/dist/chunk-2POV64LQ.js +0 -1
- package/dist/chunk-2TVTJ6GV.js +0 -1
- package/dist/chunk-2VQLMU5A.cjs +0 -1
- package/dist/chunk-2WSEHVNP.cjs +0 -1
- package/dist/chunk-3BUVHV54.js +0 -0
- package/dist/chunk-3JUSQ2QE.cjs +0 -1
- package/dist/chunk-47YB6ECI.cjs +0 -1
- package/dist/chunk-4IHRWQWT.js +0 -1
- package/dist/chunk-4ITU7JF2.js +0 -1
- package/dist/chunk-5DCSVXPM.js +0 -1
- package/dist/chunk-5IFQJPBE.cjs +0 -1
- package/dist/chunk-63OMZNLN.js +0 -1
- package/dist/chunk-6GZGVNLH.cjs +0 -1
- package/dist/chunk-6IWCD2YY.cjs +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-7CPFUVAV.js +0 -1
- package/dist/chunk-7HSC6Q3U.js +0 -1
- package/dist/chunk-7M23WP3P.js +0 -1
- package/dist/chunk-7MUBJ5DE.cjs +0 -1
- package/dist/chunk-7MYTZUEK.js +0 -1
- package/dist/chunk-7WTGDAJW.js +0 -1
- package/dist/chunk-7YJMOHOO.js +0 -1
- package/dist/chunk-7Z2T6P5L.cjs +0 -1
- package/dist/chunk-A3QHXPHD.js +0 -1
- package/dist/chunk-AMP2ZDXD.cjs +0 -1
- package/dist/chunk-ASU2E6GU.js +0 -1
- package/dist/chunk-B7GHWWM6.cjs +0 -1
- package/dist/chunk-BHJ5JTA2.js +0 -1
- package/dist/chunk-BR77Q3PK.cjs +0 -1
- package/dist/chunk-C3JRTLQP.js +0 -1
- package/dist/chunk-D3255LVM.cjs +0 -1
- package/dist/chunk-DCG56C7R.cjs +0 -1
- package/dist/chunk-DGZQUCSD.js +0 -1
- package/dist/chunk-E4TBJMOO.js +0 -1
- package/dist/chunk-E75QRQ6Q.js +0 -1
- package/dist/chunk-E7T2NBUP.cjs +0 -1
- package/dist/chunk-EK4Y233O.js +0 -1
- package/dist/chunk-EUXGP4IN.cjs +0 -1
- package/dist/chunk-EVADF7QA.js +0 -1
- package/dist/chunk-FFIN4TCT.cjs +0 -1
- package/dist/chunk-FON43I6G.cjs +0 -1
- package/dist/chunk-FYYNH6VT.js +0 -1
- package/dist/chunk-G6WJLBM7.js +0 -1
- package/dist/chunk-GJTS3VOX.cjs +0 -1
- package/dist/chunk-HFIIBQLK.js +0 -1
- package/dist/chunk-HHQZJJKE.js +0 -1
- package/dist/chunk-HWGRWJUT.cjs +0 -1
- package/dist/chunk-HYI4R74V.cjs +0 -1
- package/dist/chunk-I4GMMHQR.cjs +0 -1
- package/dist/chunk-IAJBYU5C.js +0 -1
- package/dist/chunk-IKY4YQDO.js +0 -1
- package/dist/chunk-IMV35JZB.cjs +0 -1
- package/dist/chunk-JGM3G5E2.js +0 -1
- package/dist/chunk-JSNLFGET.js +0 -1
- package/dist/chunk-JSNUJJQJ.js +0 -1
- package/dist/chunk-KY4UBKAO.cjs +0 -1
- package/dist/chunk-LF6WLVWL.js +0 -1
- package/dist/chunk-LZ5XEFKY.cjs +0 -1
- package/dist/chunk-MC3WZMO2.cjs +0 -1
- package/dist/chunk-MJMMQJVO.cjs +0 -1
- package/dist/chunk-N4QVZLJB.js +0 -1
- package/dist/chunk-NBJIJZGO.js +0 -1
- package/dist/chunk-NETRNZFY.js +0 -1
- package/dist/chunk-NFLGT52C.cjs +0 -1
- package/dist/chunk-NRN4WNQL.cjs +0 -1
- package/dist/chunk-NTIINLZM.cjs +0 -1
- package/dist/chunk-NY7SDPXG.js +0 -1
- package/dist/chunk-NZQIZ4ZY.cjs +0 -1
- package/dist/chunk-O5J2ZIJ6.cjs +0 -1
- package/dist/chunk-OEAPYLBR.cjs +0 -1
- package/dist/chunk-OOLXYAO7.js +0 -1
- package/dist/chunk-OVBCANGC.cjs +0 -1
- package/dist/chunk-PNUQCT4M.cjs +0 -1
- package/dist/chunk-PXDN3KFO.js +0 -1
- package/dist/chunk-QASKWI5Y.js +0 -1
- package/dist/chunk-QDOP7HRG.js +0 -1
- package/dist/chunk-QP4CMLMG.cjs +0 -1
- package/dist/chunk-QYQERFYL.cjs +0 -1
- package/dist/chunk-QZZXNJMU.js +0 -1
- package/dist/chunk-RGOIGFPQ.cjs +0 -1
- package/dist/chunk-RJGOALQ6.cjs +0 -1
- package/dist/chunk-RUQHINLO.js +0 -1
- package/dist/chunk-RYQRCUKB.js +0 -1
- package/dist/chunk-S73E6EBO.cjs +0 -1
- package/dist/chunk-SC5LQJBG.cjs +0 -1
- package/dist/chunk-SFDQPSSP.js +0 -1
- package/dist/chunk-SJFJI2OT.cjs +0 -1
- package/dist/chunk-SKRQKK2T.cjs +0 -1
- package/dist/chunk-SRQAQHYK.cjs +0 -1
- package/dist/chunk-SSWWXH5O.cjs +0 -1
- package/dist/chunk-SYDMK3TQ.js +0 -1
- package/dist/chunk-T422SK4C.cjs +0 -1
- package/dist/chunk-T5PSAJ3R.cjs +0 -1
- package/dist/chunk-TM7WDKYR.cjs +0 -1
- package/dist/chunk-TNCETEEL.js +0 -1
- package/dist/chunk-U6FTIAJO.js +0 -1
- package/dist/chunk-U7JNW7VQ.js +0 -1
- package/dist/chunk-UAFW3OWA.js +0 -1
- package/dist/chunk-UI2RH2CP.js +0 -1
- package/dist/chunk-UOHM5SBY.cjs +0 -1
- package/dist/chunk-UX6T7EAP.js +0 -1
- package/dist/chunk-V2YSOSYZ.cjs +0 -1
- package/dist/chunk-V4LKDMLV.js +0 -1
- package/dist/chunk-VI6TW7JT.cjs +0 -1
- package/dist/chunk-VIJFGMUH.js +0 -1
- package/dist/chunk-VWBAHXIO.cjs +0 -1
- package/dist/chunk-W4UPIFFS.cjs +0 -1
- package/dist/chunk-WABJHG6B.cjs +0 -1
- package/dist/chunk-WARJE3L2.cjs +0 -1
- package/dist/chunk-WF3RK7VH.js +0 -1
- package/dist/chunk-X5BBXO27.cjs +0 -1
- package/dist/chunk-XIVIIEY5.js +0 -1
- package/dist/chunk-XMNGTV3F.cjs +0 -1
- package/dist/chunk-Y5RJUIQB.cjs +0 -1
- package/dist/chunk-YKC4ST2J.js +0 -1
- package/dist/chunk-YLAJFXWZ.js +0 -0
- package/dist/chunk-YVTAV6EU.cjs +0 -1
- package/dist/chunk-Z2FGFHRQ.cjs +0 -1
- package/dist/hooks/useAuthSignIn.cjs +0 -1
- package/dist/hooks/useAuthSignIn.d.cts +0 -21
- package/dist/hooks/useAuthSignIn.d.ts +0 -21
- package/dist/hooks/useAuthSignIn.js +0 -1
- package/dist/hooks/useRefreshToken.cjs +0 -1
- package/dist/hooks/useRefreshToken.d.cts +0 -11
- package/dist/hooks/useRefreshToken.d.ts +0 -11
- package/dist/hooks/useRefreshToken.js +0 -1
- package/dist/utils/authCookies.cjs +0 -1
- package/dist/utils/authCookies.d.cts +0 -5
- package/dist/utils/authCookies.d.ts +0 -5
- package/dist/utils/authCookies.js +0 -1
- package/src/hooks/useAuthSignIn.ts +0 -117
- package/src/hooks/useRefreshToken.test.ts +0 -155
- package/src/hooks/useRefreshToken.ts +0 -68
- package/src/utils/authCookies.test.ts +0 -41
- package/src/utils/authCookies.ts +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/testUtils.ts"],"names":[],"mappings":";;;AAAO,IAAM,eAAe","sourcesContent":["export const MOCK_API_KEY = \"sk_development_12341234\";\n"]}
|
package/dist/testUtils.d.cts
CHANGED
package/dist/testUtils.d.ts
CHANGED
package/dist/testUtils.js
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./chunk-CRTRMMJ7.js";
|
|
2
|
+
|
|
3
|
+
// src/testUtils.ts
|
|
4
|
+
var MOCK_API_KEY = "sk_development_12341234";
|
|
5
|
+
export {
|
|
6
|
+
MOCK_API_KEY
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=testUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/testUtils.ts"],"sourcesContent":["export const MOCK_API_KEY = \"sk_development_12341234\";\n"],"mappings":";;;AAAO,IAAM,eAAe;","names":[]}
|
package/dist/twind.config.cjs
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkA2JCJ2OVcjs = require('./chunk-A2JCJ2OV.cjs');
|
|
4
|
+
require('./chunk-4DAZAO6Y.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = _chunkA2JCJ2OVcjs.twind_config_default;
|
|
8
|
+
//# sourceMappingURL=twind.config.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/twind.config.d.cts
CHANGED
|
@@ -2,9 +2,6 @@ import * as _twind_preset_tailwind from '@twind/preset-tailwind';
|
|
|
2
2
|
import * as _twind_core from '@twind/core';
|
|
3
3
|
|
|
4
4
|
declare const _default: _twind_core.TwindConfig<_twind_core.BaseTheme & _twind_preset_tailwind.TailwindTheme & {
|
|
5
|
-
screens: {
|
|
6
|
-
xs: string;
|
|
7
|
-
};
|
|
8
5
|
extend: never;
|
|
9
6
|
}>;
|
|
10
7
|
|
package/dist/twind.config.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import * as _twind_preset_tailwind from '@twind/preset-tailwind';
|
|
|
2
2
|
import * as _twind_core from '@twind/core';
|
|
3
3
|
|
|
4
4
|
declare const _default: _twind_core.TwindConfig<_twind_core.BaseTheme & _twind_preset_tailwind.TailwindTheme & {
|
|
5
|
-
screens: {
|
|
6
|
-
xs: string;
|
|
7
|
-
};
|
|
8
5
|
extend: never;
|
|
9
6
|
}>;
|
|
10
7
|
|
package/dist/twind.config.js
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {
|
|
2
|
+
twind_config_default
|
|
3
|
+
} from "./chunk-AUEQQ4D3.js";
|
|
4
|
+
import "./chunk-CRTRMMJ7.js";
|
|
5
|
+
export {
|
|
6
|
+
twind_config_default as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=twind.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/types/auth.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";//# sourceMappingURL=auth.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/types/auth.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","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 _chunk5RX5WFEWcjs = require('../chunk-5RX5WFEW.cjs');
|
|
4
|
+
require('../chunk-4DAZAO6Y.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.classNames = _chunk5RX5WFEWcjs.classNames;
|
|
8
|
+
//# sourceMappingURL=classNames.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/utils/classNames.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkY7PF2Z3Wcjs = require('../chunk-Y7PF2Z3W.cjs');
|
|
4
|
+
require('../chunk-HENBZUED.cjs');
|
|
5
|
+
require('../chunk-4DAZAO6Y.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.createCrossmintApiClient = _chunkY7PF2Z3Wcjs.createCrossmintApiClient;
|
|
9
|
+
//# sourceMappingURL=createCrossmintApiClient.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {
|
|
2
|
+
createCrossmintApiClient
|
|
3
|
+
} from "../chunk-L3L7YEW3.js";
|
|
4
|
+
import "../chunk-5IX763AW.js";
|
|
5
|
+
import "../chunk-CRTRMMJ7.js";
|
|
6
|
+
export {
|
|
7
|
+
createCrossmintApiClient
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=createCrossmintApiClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/client-sdk-react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -19,36 +19,42 @@
|
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dynamic-labs/ethereum": "3.
|
|
23
|
-
"@dynamic-labs/ethereum-core": "3.
|
|
24
|
-
"@dynamic-labs/sdk-react-core": "3.
|
|
25
|
-
"@dynamic-labs/solana": "3.
|
|
26
|
-
"@dynamic-labs/solana-core": "3.
|
|
22
|
+
"@dynamic-labs/ethereum": "3.4.4",
|
|
23
|
+
"@dynamic-labs/ethereum-core": "3.4.4",
|
|
24
|
+
"@dynamic-labs/sdk-react-core": "3.4.4",
|
|
25
|
+
"@dynamic-labs/solana": "3.4.4",
|
|
26
|
+
"@dynamic-labs/solana-core": "3.4.4",
|
|
27
27
|
"@ethersproject/transactions": "5.7.0",
|
|
28
28
|
"@farcaster/auth-kit": "0.6.0",
|
|
29
29
|
"@headlessui/react": "2.1.5",
|
|
30
30
|
"@radix-ui/react-dialog": "1.1.2",
|
|
31
31
|
"@radix-ui/react-visually-hidden": "1.1.0",
|
|
32
32
|
"@solana/web3.js": "1.95.1",
|
|
33
|
+
"@tanstack/react-query": "5.51.18",
|
|
33
34
|
"@twind/core": "1.1.3",
|
|
34
35
|
"@twind/preset-tailwind": "1.1.4",
|
|
36
|
+
"@wagmi/connectors": "5.3.3",
|
|
35
37
|
"bs58": "5.0.0",
|
|
36
38
|
"clsx": "2.1.1",
|
|
39
|
+
"color": "4.2.3",
|
|
37
40
|
"input-otp": "1.2.4",
|
|
38
41
|
"lodash.isequal": "4.5.0",
|
|
39
42
|
"react-jss": "10.10.0",
|
|
40
43
|
"tailwind-merge": "2.4.0",
|
|
41
44
|
"tailwindcss": "3.4.10",
|
|
42
45
|
"viem": "2.17.5",
|
|
46
|
+
"wagmi": "2.12.25",
|
|
43
47
|
"zod": "3.22.4",
|
|
44
|
-
"@crossmint/client-sdk-auth": "0.
|
|
45
|
-
"@crossmint/
|
|
46
|
-
"@crossmint/client-sdk-
|
|
47
|
-
"@crossmint/common-sdk-
|
|
48
|
-
"@crossmint/
|
|
49
|
-
"@crossmint/client-sdk-
|
|
48
|
+
"@crossmint/client-sdk-auth": "1.0.0",
|
|
49
|
+
"@crossmint/client-sdk-base": "1.3.2",
|
|
50
|
+
"@crossmint/client-sdk-window": "0.1.0",
|
|
51
|
+
"@crossmint/common-sdk-auth": "1.0.0",
|
|
52
|
+
"@crossmint/common-sdk-base": "0.3.0",
|
|
53
|
+
"@crossmint/client-sdk-smart-wallet": "0.1.22"
|
|
50
54
|
},
|
|
51
55
|
"devDependencies": {
|
|
56
|
+
"@testing-library/react": "^16.0.1",
|
|
57
|
+
"@types/color": "4.2.0",
|
|
52
58
|
"@types/lodash.isequal": "4.5.6",
|
|
53
59
|
"@types/react": "^18.3.0",
|
|
54
60
|
"@types/react-dom": "^18.3.0",
|
|
@@ -60,8 +66,8 @@
|
|
|
60
66
|
"react-dom": ">=17.0.2"
|
|
61
67
|
},
|
|
62
68
|
"scripts": {
|
|
63
|
-
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
64
|
-
"dev": "tsup --watch",
|
|
65
|
-
"test": "vitest run"
|
|
69
|
+
"build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
70
|
+
"dev": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch",
|
|
71
|
+
"test:vitest": "vitest run"
|
|
66
72
|
}
|
|
67
73
|
}
|
|
@@ -6,21 +6,22 @@ import { FarcasterSignIn } from "./methods/farcaster/FarcasterSignIn";
|
|
|
6
6
|
import { PoweredByCrossmint } from "../common/PoweredByCrossmint";
|
|
7
7
|
import { FarcasterProvider } from "../../providers/auth/FarcasterProvider";
|
|
8
8
|
import { classNames } from "@/utils/classNames";
|
|
9
|
+
import { Web3AuthFlow } from "./methods/web3/Web3AuthFlow";
|
|
9
10
|
|
|
10
11
|
export function AuthForm({ className }: { className?: string }) {
|
|
11
|
-
const { step, appearance,
|
|
12
|
+
const { step, appearance, loginMethods, baseUrl } = useAuthForm();
|
|
12
13
|
return (
|
|
13
|
-
<div className={classNames("flex flex-col gap-
|
|
14
|
+
<div className={classNames("flex flex-col gap-[10px] antialiased animate-none", className)}>
|
|
14
15
|
{step === "initial" ? (
|
|
15
16
|
<div>
|
|
16
17
|
<h1
|
|
17
|
-
className="text-2xl font-
|
|
18
|
+
className="text-2xl font-bold text-cm-text-primary"
|
|
18
19
|
style={{ color: appearance?.colors?.textPrimary }}
|
|
19
20
|
>
|
|
20
21
|
Sign In
|
|
21
22
|
</h1>
|
|
22
23
|
<p
|
|
23
|
-
className="text-base font-normal mb-
|
|
24
|
+
className="text-base font-normal mb-3 text-cm-text-secondary"
|
|
24
25
|
style={{ color: appearance?.colors?.textSecondary }}
|
|
25
26
|
>
|
|
26
27
|
Sign in using one of the options below
|
|
@@ -41,9 +42,13 @@ export function AuthForm({ className }: { className?: string }) {
|
|
|
41
42
|
<FarcasterSignIn />
|
|
42
43
|
</FarcasterProvider>
|
|
43
44
|
) : null}
|
|
45
|
+
{loginMethods.includes("web3") ? <Web3AuthFlow /> : null}
|
|
44
46
|
|
|
45
47
|
{step === "initial" || step === "otp" ? (
|
|
46
|
-
<PoweredByCrossmint
|
|
48
|
+
<PoweredByCrossmint
|
|
49
|
+
className="mt-4 justify-center"
|
|
50
|
+
color={appearance?.colors?.textSecondary ?? "#A4AFB2"}
|
|
51
|
+
/>
|
|
47
52
|
) : null}
|
|
48
53
|
</div>
|
|
49
54
|
);
|
|
@@ -11,13 +11,9 @@ export const AuthFormBackButton = ({
|
|
|
11
11
|
return (
|
|
12
12
|
<button
|
|
13
13
|
className={classNames(
|
|
14
|
-
"absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-
|
|
14
|
+
"absolute rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none",
|
|
15
15
|
className
|
|
16
16
|
)}
|
|
17
|
-
style={{
|
|
18
|
-
// @ts-expect-error --tw-ring-color is not recognized by typescript but gets picked up by tailwind
|
|
19
|
-
"--tw-ring-color": ringColor ?? "#1A73E8",
|
|
20
|
-
}}
|
|
21
17
|
{...props}
|
|
22
18
|
>
|
|
23
19
|
<LeftArrowIcon className="w-6 h-6" style={{ color: iconColor }} />
|
|
@@ -2,18 +2,23 @@ import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
|
2
2
|
import { useAuthForm } from "@/providers/auth/AuthFormProvider";
|
|
3
3
|
import { AuthForm } from "./AuthForm";
|
|
4
4
|
import { Dialog, DialogContent, DialogDescription, DialogTitle } from "../common/Dialog";
|
|
5
|
+
import { useEffect } from "react";
|
|
5
6
|
|
|
6
7
|
export default function AuthFormDialog({ open }: { open: boolean }) {
|
|
7
8
|
const { appearance, setDialogOpen } = useAuthForm();
|
|
8
9
|
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
document.body.style.overflow = open ? "hidden" : "";
|
|
12
|
+
}, [open]);
|
|
13
|
+
|
|
9
14
|
return (
|
|
10
|
-
<Dialog open={open} onOpenChange={setDialogOpen}>
|
|
15
|
+
<Dialog modal={false} open={open} onOpenChange={setDialogOpen}>
|
|
11
16
|
<DialogContent
|
|
12
17
|
onInteractOutside={(e) => e.preventDefault()}
|
|
13
18
|
onOpenAutoFocus={(e) => e.preventDefault()}
|
|
14
19
|
closeButtonColor={appearance?.colors?.textPrimary}
|
|
15
20
|
closeButtonRingColor={appearance?.colors?.accent}
|
|
16
|
-
className="responsive-border-radius-auth-dialog"
|
|
21
|
+
className="cm-responsive-border-radius-auth-dialog"
|
|
17
22
|
style={{
|
|
18
23
|
borderRadius: appearance?.borderRadius,
|
|
19
24
|
backgroundColor: appearance?.colors?.background,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import { InputOTP, InputOTPGroup, InputOTPSlot } from "@/components/common/InputOTP";
|
|
3
|
-
import { useAuthSignIn } from "@/hooks/useAuthSignIn";
|
|
4
3
|
import { EmailOtpIcon } from "@/icons/emailOTP";
|
|
5
4
|
import { useAuthForm } from "@/providers/auth/AuthFormProvider";
|
|
6
5
|
import type { OtpEmailPayload } from "@/types/auth";
|
|
7
6
|
import { AuthFormBackButton } from "../../AuthFormBackButton";
|
|
7
|
+
import { useCrossmintAuth } from "@/hooks/useCrossmintAuth";
|
|
8
8
|
|
|
9
9
|
export const EMAIL_VERIFICATION_TOKEN_LENGTH = 6;
|
|
10
10
|
|
|
@@ -12,8 +12,8 @@ export function EmailOTPInput({
|
|
|
12
12
|
otpEmailData,
|
|
13
13
|
setOtpEmailData,
|
|
14
14
|
}: { otpEmailData: OtpEmailPayload | null; setOtpEmailData: (data: OtpEmailPayload | null) => void }) {
|
|
15
|
-
const {
|
|
16
|
-
const {
|
|
15
|
+
const { crossmintAuth } = useCrossmintAuth();
|
|
16
|
+
const { appearance, setDialogOpen, setStep } = useAuthForm();
|
|
17
17
|
|
|
18
18
|
const [token, setToken] = useState("");
|
|
19
19
|
const [hasError, setHasError] = useState(false);
|
|
@@ -22,17 +22,13 @@ export function EmailOTPInput({
|
|
|
22
22
|
const handleOnSubmit = async () => {
|
|
23
23
|
setLoading(true);
|
|
24
24
|
try {
|
|
25
|
-
const oneTimeSecret = await
|
|
25
|
+
const oneTimeSecret = await crossmintAuth?.confirmEmailOtp(
|
|
26
26
|
otpEmailData?.email ?? "",
|
|
27
27
|
otpEmailData?.emailId ?? "",
|
|
28
|
-
token
|
|
29
|
-
{
|
|
30
|
-
baseUrl,
|
|
31
|
-
apiKey,
|
|
32
|
-
}
|
|
28
|
+
token
|
|
33
29
|
);
|
|
34
30
|
|
|
35
|
-
await
|
|
31
|
+
await crossmintAuth?.handleRefreshAuthMaterial(oneTimeSecret as string);
|
|
36
32
|
setDialogOpen(false);
|
|
37
33
|
setStep("initial");
|
|
38
34
|
} catch (e) {
|
|
@@ -65,12 +61,15 @@ export function EmailOTPInput({
|
|
|
65
61
|
/>
|
|
66
62
|
</div>
|
|
67
63
|
<p
|
|
68
|
-
className="text-base font-normal mt-4 mb-1 text-center text-
|
|
64
|
+
className="text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"
|
|
69
65
|
style={{ color: appearance?.colors?.textPrimary }}
|
|
70
66
|
>
|
|
71
67
|
{"Check your email"}
|
|
72
68
|
</p>
|
|
73
|
-
<p
|
|
69
|
+
<p
|
|
70
|
+
className="text-center text-cm-text-secondary px-4"
|
|
71
|
+
style={{ color: appearance?.colors?.textSecondary }}
|
|
72
|
+
>
|
|
74
73
|
{"A temporary login code has been sent to your email"}
|
|
75
74
|
</p>
|
|
76
75
|
<div className="py-8">
|
|
@@ -104,13 +103,13 @@ export function EmailOTPInput({
|
|
|
104
103
|
</InputOTP>
|
|
105
104
|
</div>
|
|
106
105
|
|
|
107
|
-
<p className="text-sm leading-tight text-center">
|
|
106
|
+
<p className="text-sm leading-tight text-cm-text-secondary text-center">
|
|
108
107
|
<span style={{ color: appearance?.colors?.textSecondary }}>
|
|
109
108
|
Can't find the email? Check spam folder or contact
|
|
110
109
|
</span>{" "}
|
|
111
110
|
<a
|
|
112
111
|
key="resend-email-link"
|
|
113
|
-
className="transition-opacity duration-150 text-link hover:opacity-70"
|
|
112
|
+
className="transition-opacity duration-150 text-cm-link hover:opacity-70"
|
|
114
113
|
style={{ color: appearance?.colors?.textLink }}
|
|
115
114
|
href="mailto:support@crossmint.io"
|
|
116
115
|
>
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { type FormEvent, useState } from "react";
|
|
2
|
+
import Color from "color";
|
|
2
3
|
|
|
3
4
|
import { Spinner } from "@/components/common/Spinner";
|
|
4
5
|
import { classNames } from "@/utils/classNames";
|
|
5
6
|
import { AlertIcon } from "../../../../icons/alert";
|
|
6
|
-
import { useAuthSignIn } from "@/hooks/useAuthSignIn";
|
|
7
7
|
import { isEmailValid } from "@crossmint/common-sdk-auth";
|
|
8
8
|
import { useAuthForm } from "@/providers/auth/AuthFormProvider";
|
|
9
9
|
import type { OtpEmailPayload } from "@/types/auth";
|
|
10
|
+
import { useCrossmintAuth } from "@/hooks/useCrossmintAuth";
|
|
10
11
|
|
|
11
12
|
export function EmailSignIn({ setOtpEmailData }: { setOtpEmailData: (data: OtpEmailPayload) => void }) {
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
13
|
+
const { crossmintAuth } = useCrossmintAuth();
|
|
14
|
+
const { appearance, setStep } = useAuthForm();
|
|
14
15
|
|
|
15
16
|
const [emailInput, setEmailInput] = useState("");
|
|
16
17
|
const [emailError, setEmailError] = useState("");
|
|
@@ -28,7 +29,7 @@ export function EmailSignIn({ setOtpEmailData }: { setOtpEmailData: (data: OtpEm
|
|
|
28
29
|
|
|
29
30
|
try {
|
|
30
31
|
const trimmedEmailInput = emailInput.trim().toLowerCase();
|
|
31
|
-
const emailSignInRes = (await
|
|
32
|
+
const emailSignInRes = (await crossmintAuth?.sendEmailOtp(trimmedEmailInput)) as { emailId: string };
|
|
32
33
|
|
|
33
34
|
setOtpEmailData({ email: trimmedEmailInput, emailId: emailSignInRes.emailId });
|
|
34
35
|
setStep("otp");
|
|
@@ -42,12 +43,6 @@ export function EmailSignIn({ setOtpEmailData }: { setOtpEmailData: (data: OtpEm
|
|
|
42
43
|
<>
|
|
43
44
|
<div className="flex flex-col items-start justify-start w-full rounded-lg">
|
|
44
45
|
<div className="w-full">
|
|
45
|
-
<p
|
|
46
|
-
className="text-sm font-inter font-medium text-cm-text-primary pb-2"
|
|
47
|
-
style={{ color: appearance?.colors?.textPrimary }}
|
|
48
|
-
>
|
|
49
|
-
Email
|
|
50
|
-
</p>
|
|
51
46
|
<form
|
|
52
47
|
role="form"
|
|
53
48
|
className="relative"
|
|
@@ -59,9 +54,9 @@ export function EmailSignIn({ setOtpEmailData }: { setOtpEmailData: (data: OtpEm
|
|
|
59
54
|
</label>
|
|
60
55
|
<input
|
|
61
56
|
className={classNames(
|
|
62
|
-
"flex-grow text-left pl-[16px] pr-[80px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-sm placeholder:text-opacity-60",
|
|
63
|
-
"transition-
|
|
64
|
-
"focus:outline-none focus
|
|
57
|
+
"flex-grow text-cm-text-secondary text-left pl-[16px] pr-[80px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-sm placeholder:text-opacity-60",
|
|
58
|
+
"transition-none duration-200 ease-in-out",
|
|
59
|
+
"focus:outline-none focus-ring-custom", // Add focus ring
|
|
65
60
|
emailError ? "border-red-500" : ""
|
|
66
61
|
)}
|
|
67
62
|
style={{
|
|
@@ -69,18 +64,19 @@ export function EmailSignIn({ setOtpEmailData }: { setOtpEmailData: (data: OtpEm
|
|
|
69
64
|
borderRadius: appearance?.borderRadius,
|
|
70
65
|
borderColor: emailError ? appearance?.colors?.danger : appearance?.colors?.border,
|
|
71
66
|
backgroundColor: appearance?.colors?.inputBackground,
|
|
72
|
-
// @ts-expect-error
|
|
73
|
-
"--
|
|
67
|
+
// @ts-expect-error Add custom ring color to tailwind
|
|
68
|
+
"--focus-ring-color": new Color(appearance?.colors?.accent ?? "#04AA6D")
|
|
69
|
+
.alpha(0.18)
|
|
70
|
+
.toString(),
|
|
74
71
|
}}
|
|
75
72
|
type="email"
|
|
76
|
-
placeholder=
|
|
73
|
+
placeholder="Enter email"
|
|
77
74
|
value={emailInput}
|
|
78
75
|
onChange={(e) => {
|
|
79
76
|
setEmailInput(e.target.value);
|
|
80
77
|
setEmailError("");
|
|
81
78
|
}}
|
|
82
79
|
readOnly={isLoading}
|
|
83
|
-
// aria-invalid={emailError != null}
|
|
84
80
|
aria-describedby="emailError"
|
|
85
81
|
/>
|
|
86
82
|
<div className="absolute inset-y-0 right-0 flex items-center pr-4">
|
|
@@ -96,8 +92,8 @@ export function EmailSignIn({ setOtpEmailData }: { setOtpEmailData: (data: OtpEm
|
|
|
96
92
|
{!emailError && !isLoading && (
|
|
97
93
|
<button
|
|
98
94
|
type="submit"
|
|
99
|
-
className={classNames("cursor-pointer text-nowrap")}
|
|
100
|
-
style={{ color: appearance?.colors?.accent
|
|
95
|
+
className={classNames("cursor-pointer font-medium text-cm-accent text-nowrap")}
|
|
96
|
+
style={{ color: appearance?.colors?.accent }}
|
|
101
97
|
disabled={!emailInput}
|
|
102
98
|
>
|
|
103
99
|
Sign in
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { useEffect, useMemo, useState } from "react";
|
|
2
2
|
import { useSignIn, QRCode, type UseSignInData } from "@farcaster/auth-kit";
|
|
3
|
-
import { useAuthSignIn } from "@/hooks/useAuthSignIn";
|
|
4
3
|
import { FarcasterIcon } from "@/icons/farcaster";
|
|
5
4
|
import { useAuthForm } from "@/providers/auth/AuthFormProvider";
|
|
6
5
|
import { Spinner } from "@/components/common/Spinner";
|
|
7
6
|
import { classNames } from "@/utils/classNames";
|
|
8
7
|
import { AuthFormBackButton } from "../../AuthFormBackButton";
|
|
9
|
-
|
|
8
|
+
import { useCrossmintAuth } from "@/hooks/useCrossmintAuth";
|
|
10
9
|
export function FarcasterSignIn() {
|
|
11
10
|
const { step, appearance, setStep } = useAuthForm();
|
|
12
11
|
|
|
@@ -15,16 +14,13 @@ export function FarcasterSignIn() {
|
|
|
15
14
|
<div>
|
|
16
15
|
<button
|
|
17
16
|
className={classNames(
|
|
18
|
-
"relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary
|
|
19
|
-
"transition-
|
|
20
|
-
"
|
|
17
|
+
"relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center",
|
|
18
|
+
"transition-colors duration-200 ease-in-out",
|
|
19
|
+
"hover:bg-cm-hover focus:bg-cm-hover outline-none"
|
|
21
20
|
)}
|
|
22
21
|
style={{
|
|
23
22
|
borderRadius: appearance?.borderRadius,
|
|
24
|
-
borderColor: appearance?.colors?.border,
|
|
25
23
|
backgroundColor: appearance?.colors?.buttonBackground,
|
|
26
|
-
// @ts-expect-error --tw-ring-color is not recognized by typescript but gets picked up by tailwind
|
|
27
|
-
"--tw-ring-color": appearance?.colors?.accent ?? "#1A73E8",
|
|
28
24
|
}}
|
|
29
25
|
onClick={() => {
|
|
30
26
|
setStep("qrCode");
|
|
@@ -35,7 +31,7 @@ export function FarcasterSignIn() {
|
|
|
35
31
|
className="font-medium"
|
|
36
32
|
style={{ margin: "0px 32px", color: appearance?.colors?.textPrimary }}
|
|
37
33
|
>
|
|
38
|
-
Farcaster
|
|
34
|
+
Sign in with Farcaster
|
|
39
35
|
</span>
|
|
40
36
|
<span className="sr-only">Sign in with Farcaster</span>
|
|
41
37
|
</button>
|
|
@@ -52,8 +48,8 @@ export function FarcasterSignIn() {
|
|
|
52
48
|
|
|
53
49
|
// We want this to be a separate component so it can completely un-render when the user goes back to the initial screen
|
|
54
50
|
function FarcasterQRCode() {
|
|
55
|
-
const {
|
|
56
|
-
const {
|
|
51
|
+
const { crossmintAuth } = useCrossmintAuth();
|
|
52
|
+
const { appearance, setStep, setDialogOpen } = useAuthForm();
|
|
57
53
|
const [farcasterData, setFarcasterData] = useState<UseSignInData | null>(null);
|
|
58
54
|
|
|
59
55
|
const farcasterProps = useMemo(
|
|
@@ -70,9 +66,9 @@ function FarcasterQRCode() {
|
|
|
70
66
|
|
|
71
67
|
const handleFarcasterSignIn = async (data: UseSignInData) => {
|
|
72
68
|
try {
|
|
73
|
-
const oneTimeSecret = await
|
|
69
|
+
const oneTimeSecret = await crossmintAuth?.signInWithFarcaster(data);
|
|
74
70
|
// Step 5. fetch the auth material, close the dialog, and unrender any farcaster client stuff
|
|
75
|
-
await
|
|
71
|
+
await crossmintAuth?.handleRefreshAuthMaterial(oneTimeSecret as string);
|
|
76
72
|
setDialogOpen(false);
|
|
77
73
|
setStep("initial");
|
|
78
74
|
} catch (error) {
|
|
@@ -157,7 +153,7 @@ function FarcasterQRCode() {
|
|
|
157
153
|
href={qrCodeUrl}
|
|
158
154
|
rel="noopener noreferrer"
|
|
159
155
|
target="_blank"
|
|
160
|
-
className="text-base font-normal text-cm-
|
|
156
|
+
className="text-base font-normal text-cm-link"
|
|
161
157
|
style={{ color: appearance?.colors?.textLink }}
|
|
162
158
|
>
|
|
163
159
|
Open Warpcast
|
|
@@ -6,12 +6,8 @@ import { useAuthForm } from "@/providers/auth/AuthFormProvider";
|
|
|
6
6
|
import { classNames } from "@/utils/classNames";
|
|
7
7
|
|
|
8
8
|
export function GoogleSignIn({ ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
|
|
9
|
-
const { step,
|
|
10
|
-
const { createPopupAndSetupListeners, isLoading: isLoadingOAuthWindow } = useOAuthWindowListener("google"
|
|
11
|
-
apiKey,
|
|
12
|
-
baseUrl,
|
|
13
|
-
fetchAuthMaterial,
|
|
14
|
-
});
|
|
9
|
+
const { step, appearance, isLoadingOauthUrlMap } = useAuthForm();
|
|
10
|
+
const { createPopupAndSetupListeners, isLoading: isLoadingOAuthWindow } = useOAuthWindowListener("google");
|
|
15
11
|
const isLoading = isLoadingOauthUrlMap || isLoadingOAuthWindow;
|
|
16
12
|
|
|
17
13
|
if (step !== "initial") {
|
|
@@ -21,17 +17,14 @@ export function GoogleSignIn({ ...props }: ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
21
17
|
return (
|
|
22
18
|
<button
|
|
23
19
|
className={classNames(
|
|
24
|
-
"relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary
|
|
25
|
-
"transition-
|
|
26
|
-
"
|
|
27
|
-
isLoading ? "cursor-not-allowed" : ""
|
|
20
|
+
"relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center",
|
|
21
|
+
"transition-colors duration-200 ease-in-out",
|
|
22
|
+
"hover:bg-cm-hover focus:bg-cm-hover outline-none",
|
|
23
|
+
isLoading ? "cursor-not-allowed hover:bg-cm-muted-primary" : ""
|
|
28
24
|
)}
|
|
29
25
|
style={{
|
|
30
26
|
borderRadius: appearance?.borderRadius,
|
|
31
|
-
borderColor: appearance?.colors?.border,
|
|
32
27
|
backgroundColor: appearance?.colors?.buttonBackground,
|
|
33
|
-
// @ts-expect-error --tw-ring-color is not recognized by typescript but gets picked up by tailwind
|
|
34
|
-
"--tw-ring-color": appearance?.colors?.accent ?? "#1A73E8",
|
|
35
28
|
}}
|
|
36
29
|
onClick={isLoading ? undefined : createPopupAndSetupListeners}
|
|
37
30
|
{...props}
|
|
@@ -50,12 +43,10 @@ export function GoogleSignIn({ ...props }: ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
50
43
|
className="font-medium"
|
|
51
44
|
style={{ margin: "0px 32px", color: appearance?.colors?.textPrimary }}
|
|
52
45
|
>
|
|
53
|
-
Google
|
|
46
|
+
Sign in with Google
|
|
54
47
|
</span>
|
|
55
48
|
)}
|
|
56
49
|
</>
|
|
57
|
-
|
|
58
|
-
{/* For accessibility sake */}
|
|
59
50
|
<span className="sr-only">Sign in with Google</span>
|
|
60
51
|
</button>
|
|
61
52
|
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useAuthForm } from "@/providers/auth/AuthFormProvider";
|
|
2
|
+
import { Web3SignIn } from "./Web3SignIn";
|
|
3
|
+
import { Web3Connectors } from "./Web3Connectors";
|
|
4
|
+
|
|
5
|
+
export function Web3AuthFlow() {
|
|
6
|
+
const { step } = useAuthForm();
|
|
7
|
+
|
|
8
|
+
if (step.startsWith("web3")) {
|
|
9
|
+
return <Web3Connectors />;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (step === "initial") {
|
|
13
|
+
return <Web3SignIn />;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return null;
|
|
17
|
+
}
|