@crossmint/client-sdk-react-ui 2.3.2 → 2.3.4
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-YFHVUDZN.cjs → chunk-2LDS5IEH.cjs} +1 -1
- package/dist/{chunk-JVXYIBS3.cjs → chunk-3IRE2QDL.cjs} +1 -1
- package/dist/{chunk-BO6OZOS3.cjs → chunk-4HVF6WME.cjs} +1 -1
- package/dist/{chunk-5MRPY46P.js → chunk-5AMDRL3A.js} +2 -2
- package/dist/{chunk-SDWQMLBA.js → chunk-5J6E3OQM.js} +1 -1
- package/dist/{chunk-G355BJA3.cjs → chunk-7C7GOVND.cjs} +1 -1
- package/dist/{chunk-5TI5SIML.js → chunk-BKAAMIFU.js} +1 -1
- package/dist/chunk-CBP7TWQD.cjs +2 -0
- package/dist/{chunk-KE77KJU5.cjs → chunk-CQCUOJGZ.cjs} +1 -1
- package/dist/{chunk-6IU2VFR7.cjs → chunk-D2K3DYVS.cjs} +1 -1
- package/dist/chunk-DKG6EYTF.js +1 -0
- package/dist/{chunk-YZDJKVPM.js → chunk-EAFMWZEB.js} +1 -1
- package/dist/{chunk-6MTLHE2P.cjs → chunk-EQNLBKIH.cjs} +1 -1
- package/dist/{chunk-XUCYC4BR.js → chunk-F5OWH44M.js} +1 -1
- package/dist/{chunk-RML4JCPB.cjs → chunk-FJODAXUP.cjs} +1 -1
- package/dist/{chunk-XJF56AER.js → chunk-GGAB43L6.js} +1 -1
- package/dist/{chunk-ANSLIVQ7.cjs → chunk-GGGQABDX.cjs} +1 -1
- package/dist/chunk-GQ5LQ4KK.cjs +1 -0
- package/dist/{chunk-MVVTLZ2S.cjs → chunk-HVW43LSM.cjs} +4 -4
- package/dist/{chunk-WDWZCS52.js → chunk-KJ5PQBN5.js} +1 -1
- package/dist/{chunk-TDAMOKR5.cjs → chunk-M2XAZ5VP.cjs} +1 -1
- package/dist/{chunk-7W2HHZR7.js → chunk-MVMD22UV.js} +1 -1
- package/dist/{chunk-UT2DM6MM.cjs → chunk-NXU5RSQF.cjs} +1 -1
- package/dist/{chunk-5IU6MEPU.cjs → chunk-OSJ3GF57.cjs} +1 -1
- package/dist/{chunk-VI3OZ5N4.js → chunk-P73VSCD2.js} +1 -1
- package/dist/chunk-PW4LNAAA.js +2 -0
- package/dist/{chunk-57OO5U3H.js → chunk-QYDJ4V2A.js} +1 -1
- package/dist/chunk-QZHJH22E.js +104 -0
- package/dist/{chunk-DWQ5A3JR.js → chunk-RXOTRFKA.js} +1 -1
- package/dist/{chunk-MS75EYBH.js → chunk-S4MNLI7Z.js} +1 -1
- package/dist/chunk-TD7Y5ILY.js +2 -0
- package/dist/{chunk-YATSUPPU.js → chunk-TIJQGQVG.js} +1 -1
- package/dist/{chunk-PGYKSYL7.cjs → chunk-TK65BHHC.cjs} +1 -1
- package/dist/{chunk-XNNGBVFG.cjs → chunk-TQAFJGZO.cjs} +1 -1
- package/dist/{chunk-44MREOU3.js → chunk-U7W3V4AV.js} +1 -1
- package/dist/chunk-UGAPP5DG.cjs +2 -0
- package/dist/{chunk-VNVI2QSW.cjs → chunk-W6QOMZ54.cjs} +1 -1
- package/dist/{chunk-GKVX7FEM.js → chunk-WHUNYZQD.js} +2 -2
- package/dist/chunk-XL5F5KYH.js +1 -0
- package/dist/{chunk-CIGMEAL7.js → chunk-XON3WTYN.js} +7 -7
- package/dist/chunk-YEXRA5WE.cjs +104 -0
- package/dist/chunk-ZIY2NER7.js +1 -0
- package/dist/components/CrossmintNFTCollectionView.cjs +1 -1
- package/dist/components/CrossmintNFTCollectionView.js +1 -1
- package/dist/components/CrossmintNFTDetail.cjs +1 -1
- package/dist/components/CrossmintNFTDetail.js +1 -1
- package/dist/components/auth/AuthForm.cjs +1 -1
- package/dist/components/auth/AuthForm.js +1 -1
- package/dist/components/auth/AuthFormDialog.cjs +1 -1
- package/dist/components/auth/AuthFormDialog.js +1 -1
- package/dist/components/auth/EmbeddedAuthForm.cjs +1 -1
- package/dist/components/auth/EmbeddedAuthForm.js +1 -1
- package/dist/components/auth/PasskeyPrompt.cjs +1 -1
- package/dist/components/auth/PasskeyPrompt.js +1 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs +1 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.js +1 -1
- package/dist/components/auth/methods/email/EmailOTPInput.cjs +1 -1
- package/dist/components/auth/methods/email/EmailOTPInput.js +1 -1
- package/dist/components/auth/methods/email/EmailSignIn.cjs +1 -1
- package/dist/components/auth/methods/email/EmailSignIn.js +1 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +1 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +1 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.cjs +1 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.js +1 -1
- package/dist/components/auth/methods/google/GoogleSignIn.cjs +1 -1
- package/dist/components/auth/methods/google/GoogleSignIn.js +1 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.cjs +1 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.js +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.js +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.js +1 -1
- package/dist/components/common/OAuthButton.cjs +1 -1
- package/dist/components/common/OAuthButton.js +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +1 -1
- package/dist/components/embed/v3/index.cjs +1 -1
- package/dist/components/embed/v3/index.js +1 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.cjs +1 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.js +1 -1
- package/dist/components/hosted/index.cjs +1 -1
- package/dist/components/hosted/index.js +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.cjs +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.js +1 -1
- package/dist/components/hosted/v3/index.cjs +1 -1
- package/dist/components/hosted/v3/index.js +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/signers/BaseCodeInput.cjs +1 -0
- package/dist/components/signers/{BaseOTPInput.d.cts → BaseCodeInput.d.cts} +4 -4
- package/dist/components/signers/{BaseOTPInput.d.ts → BaseCodeInput.d.ts} +4 -4
- package/dist/components/signers/BaseCodeInput.js +1 -0
- package/dist/components/signers/EmailSignersDialog.cjs +1 -1
- package/dist/components/signers/EmailSignersDialog.js +1 -1
- package/dist/components/signers/PhoneSignersDialog.cjs +1 -1
- package/dist/components/signers/PhoneSignersDialog.js +1 -1
- package/dist/components/signers/index.cjs +1 -1
- package/dist/components/signers/index.js +1 -1
- package/dist/consts/version.cjs +1 -1
- package/dist/consts/version.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAuth.cjs +1 -1
- package/dist/hooks/useAuth.js +1 -1
- package/dist/hooks/useCrossmintAuth.cjs +1 -1
- package/dist/hooks/useCrossmintAuth.js +1 -1
- package/dist/hooks/useCrossmintCheckout.cjs +1 -1
- package/dist/hooks/useCrossmintCheckout.js +1 -1
- package/dist/hooks/useOAuthWindowListener.cjs +1 -1
- package/dist/hooks/useOAuthWindowListener.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/CrossmintAuthProvider.cjs +1 -1
- package/dist/providers/CrossmintAuthProvider.js +1 -1
- package/dist/providers/CrossmintAuthProviderInternal.cjs +1 -1
- package/dist/providers/CrossmintAuthProviderInternal.js +1 -1
- package/dist/providers/CrossmintWalletProvider.cjs +1 -1
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/auth/OAuthFlowProvider.cjs +1 -1
- package/dist/providers/auth/OAuthFlowProvider.js +1 -1
- package/dist/providers/dynamic/DynamicWalletProvider.cjs +1 -1
- package/dist/providers/dynamic/DynamicWalletProvider.js +1 -1
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/types/wallet.cjs +1 -1
- package/dist/types/wallet.d.cts +1 -1
- package/dist/types/wallet.d.ts +1 -1
- package/dist/types/wallet.js +1 -1
- package/dist/utils/createCrossmintApiClient.cjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-36S5R2NM.js +0 -53
- package/dist/chunk-3YLL6H32.js +0 -2
- package/dist/chunk-5J6CUTGJ.cjs +0 -53
- package/dist/chunk-5UKANIFU.cjs +0 -2
- package/dist/chunk-B6B7IV7W.js +0 -1
- package/dist/chunk-BY43VZ7X.js +0 -1
- package/dist/chunk-CILUBBIE.cjs +0 -1
- package/dist/chunk-DFNTIHTH.js +0 -2
- package/dist/chunk-IDQKQMA2.cjs +0 -2
- package/dist/chunk-J4OVY4SC.js +0 -1
- package/dist/components/signers/BaseOTPInput.cjs +0 -1
- package/dist/components/signers/BaseOTPInput.js +0 -1
- /package/dist/{chunk-VRFL53NP.cjs → chunk-CD6E2BGD.cjs} +0 -0
- /package/dist/{chunk-BLES7UUS.cjs → chunk-IDLIUHK2.cjs} +0 -0
package/dist/providers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-7ABHEMG7.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-7ABHEMG7.cjs');var _chunkGQ5LQ4KKcjs = require('../chunk-GQ5LQ4KK.cjs');require('../chunk-TQAFJGZO.cjs');require('../chunk-TWX7ZBKZ.cjs');var _chunkNXU5RSQFcjs = require('../chunk-NXU5RSQF.cjs');require('../chunk-GIFMRB57.cjs');require('../chunk-D2K3DYVS.cjs');require('../chunk-M2XAZ5VP.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-UGAPP5DG.cjs');require('../chunk-CBP7TWQD.cjs');require('../chunk-YEXRA5WE.cjs');require('../chunk-OVJIGWD7.cjs');require('../chunk-EDALAJ5I.cjs');require('../chunk-YGN7O63X.cjs');require('../chunk-HVW43LSM.cjs');require('../chunk-GGGQABDX.cjs');require('../chunk-3IRE2QDL.cjs');require('../chunk-WK3BTTQG.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-PZ3KXKJD.cjs');require('../chunk-AHD64NAJ.cjs');require('../chunk-2SBA4RZZ.cjs');require('../chunk-XBXL7GMY.cjs');require('../chunk-CD6E2BGD.cjs');require('../chunk-7U6Q4ELB.cjs');require('../chunk-KT4LGFPN.cjs');require('../chunk-DJZOP4MT.cjs');require('../chunk-S4BKL6MR.cjs');require('../chunk-AHMPKIEY.cjs');require('../chunk-O3H2EYFA.cjs');require('../chunk-SCHRLC2I.cjs');require('../chunk-4HVF6WME.cjs');require('../chunk-QHI4DOG7.cjs');require('../chunk-3X24JZVG.cjs');require('../chunk-EAWYV5ZO.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-UMWTEGO6.cjs');require('../chunk-YCYSZLQ2.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-W5RDCN5G.cjs');require('../chunk-VXAHFAP4.cjs');require('../chunk-EO53B7LL.cjs');require('../chunk-BPEDL7VV.cjs');require('../chunk-TK65BHHC.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-CDQFTAM2.cjs');require('../chunk-2WSEHVNP.cjs');exports.CrossmintAuthProvider = _chunkNXU5RSQFcjs.a; exports.CrossmintWalletProvider = _chunkGQ5LQ4KKcjs.a;
|
package/dist/providers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-P4RTBQI6.js";import{a as b}from"../chunk-
|
|
1
|
+
import"../chunk-P4RTBQI6.js";import{a as b}from"../chunk-XL5F5KYH.js";import"../chunk-S4MNLI7Z.js";import"../chunk-HVZ5M3FY.js";import{a}from"../chunk-GGAB43L6.js";import"../chunk-HYWUM3J2.js";import"../chunk-RXOTRFKA.js";import"../chunk-P73VSCD2.js";import"../chunk-OOLXYAO7.js";import"../chunk-77PBG2JJ.js";import"../chunk-PW4LNAAA.js";import"../chunk-TD7Y5ILY.js";import"../chunk-QZHJH22E.js";import"../chunk-LUSXGZYB.js";import"../chunk-XFYW7RD2.js";import"../chunk-BWCRTWMO.js";import"../chunk-XON3WTYN.js";import"../chunk-U7W3V4AV.js";import"../chunk-5AMDRL3A.js";import"../chunk-HJGCM4XH.js";import"../chunk-JSNUJJQJ.js";import"../chunk-4KDASQO6.js";import"../chunk-LD3MRJ3F.js";import"../chunk-TBD7RAFW.js";import"../chunk-O5IPDCMT.js";import"../chunk-WHUNYZQD.js";import"../chunk-QQP4GR7V.js";import"../chunk-WK7PY5WL.js";import"../chunk-JL7YHC7D.js";import"../chunk-23YVHBPI.js";import"../chunk-AOBO3CEQ.js";import"../chunk-RV2X7AFS.js";import"../chunk-UG5R7IPH.js";import"../chunk-QYDJ4V2A.js";import"../chunk-HGHYGPCN.js";import"../chunk-NZUCXN2O.js";import"../chunk-DFSB3TWF.js";import"../chunk-H34D6PAN.js";import"../chunk-KFFPM6JM.js";import"../chunk-HHI2XRKR.js";import"../chunk-C3JRTLQP.js";import"../chunk-UHFCB2EY.js";import"../chunk-OAHZHKRR.js";import"../chunk-QFUZG5YR.js";import"../chunk-BAXCSO7J.js";import"../chunk-ZIY2NER7.js";import"../chunk-UAFW3OWA.js";import"../chunk-H3CPTTQQ.js";import"../chunk-PXDN3KFO.js";export{a as CrossmintAuthProvider,b as CrossmintWalletProvider};
|
package/dist/types/wallet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIDLIUHK2cjs = require('../chunk-IDLIUHK2.cjs');require('../chunk-2WSEHVNP.cjs');exports.EVMWallet = _chunkIDLIUHK2cjs.a; exports.SolanaWallet = _chunkIDLIUHK2cjs.b; exports.StellarWallet = _chunkIDLIUHK2cjs.c; exports.Wallet = _chunkIDLIUHK2cjs.d;
|
package/dist/types/wallet.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
2
|
-
export { Activity, Balances, Chain, DelegatedSigner, EVMWallet, SolanaWallet, StellarWallet, Transaction, Wallet } from '@crossmint/wallets-sdk';
|
|
2
|
+
export { Activity, Balances, Chain, DelegatedSigner, EVMWallet, Signature, SolanaWallet, StellarWallet, Transaction, Wallet } from '@crossmint/wallets-sdk';
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
2
|
-
export { Activity, Balances, Chain, DelegatedSigner, EVMWallet, SolanaWallet, StellarWallet, Transaction, Wallet } from '@crossmint/wallets-sdk';
|
|
2
|
+
export { Activity, Balances, Chain, DelegatedSigner, EVMWallet, Signature, SolanaWallet, StellarWallet, Transaction, Wallet } from '@crossmint/wallets-sdk';
|
package/dist/types/wallet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-DKG6EYTF.js";import"../chunk-PXDN3KFO.js";export{a as EVMWallet,b as SolanaWallet,c as StellarWallet,d as Wallet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4HVF6WMEcjs = require('../chunk-4HVF6WME.cjs');require('../chunk-TK65BHHC.cjs');require('../chunk-2WSEHVNP.cjs');exports.createCrossmintApiClient = _chunk4HVF6WMEcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-QYDJ4V2A.js";import"../chunk-ZIY2NER7.js";import"../chunk-PXDN3KFO.js";export{a as createCrossmintApiClient};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/client-sdk-react-ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"react-transition-group": "4.4.5",
|
|
39
39
|
"viem": "2.33.1",
|
|
40
40
|
"zod": "3.22.4",
|
|
41
|
-
"@crossmint/client-sdk-auth": "1.2.27",
|
|
42
41
|
"@crossmint/client-sdk-base": "1.5.18",
|
|
43
|
-
"@crossmint/client-sdk-
|
|
42
|
+
"@crossmint/client-sdk-auth": "1.2.27",
|
|
43
|
+
"@crossmint/client-sdk-react-base": "0.5.24",
|
|
44
44
|
"@crossmint/client-sdk-window": "1.0.3",
|
|
45
45
|
"@crossmint/client-signers": "0.0.18",
|
|
46
46
|
"@crossmint/common-sdk-auth": "1.0.49",
|
|
47
47
|
"@crossmint/common-sdk-base": "0.9.3",
|
|
48
|
-
"@crossmint/wallets-sdk": "0.11.
|
|
48
|
+
"@crossmint/wallets-sdk": "0.11.6"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/react": "^16.0.1",
|
package/dist/chunk-36S5R2NM.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import{a as I}from"./chunk-JL7YHC7D.js";import{a as O,b as w,c as C}from"./chunk-O5IPDCMT.js";import{a as s}from"./chunk-DFSB3TWF.js";import{d as P}from"./chunk-PXDN3KFO.js";import{useState as c,useRef as z}from"react";import r from"@emotion/styled";import{jsx as o,jsxs as G}from"react/jsx-runtime";var H=9,M=r.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
width: 100%;
|
|
7
|
-
`,R=r.p`
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
font-weight: 400;
|
|
10
|
-
margin: 16px 0 4px 0;
|
|
11
|
-
text-align: center;
|
|
12
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.textPrimary)||s["cm-text-primary"]}};
|
|
13
|
-
`,U=r.p`
|
|
14
|
-
text-align: center;
|
|
15
|
-
padding: 0 16px;
|
|
16
|
-
margin: 0;
|
|
17
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||s["cm-text-secondary"]}};
|
|
18
|
-
font-size: 14px;
|
|
19
|
-
line-height: 1.4;
|
|
20
|
-
overflow-wrap: anywhere;
|
|
21
|
-
`,$=r.div`
|
|
22
|
-
padding: 32px 0;
|
|
23
|
-
`,L=r(C)`
|
|
24
|
-
/* Mobile styles */
|
|
25
|
-
@media (max-width: 479px) {
|
|
26
|
-
width: 32px;
|
|
27
|
-
height: 44px;
|
|
28
|
-
font-size: 20px;
|
|
29
|
-
margin: 0;
|
|
30
|
-
}
|
|
31
|
-
/* Mobile styles (small devices) */
|
|
32
|
-
@media (max-width: 379px) {
|
|
33
|
-
width: 24px;
|
|
34
|
-
height: 36px;
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
margin: 0;
|
|
37
|
-
}
|
|
38
|
-
/* Desktop styles */
|
|
39
|
-
@media (min-width: 480px) {
|
|
40
|
-
height: 48px;
|
|
41
|
-
width: 36px;
|
|
42
|
-
}
|
|
43
|
-
`,B=r.div`
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.danger)||s["cm-danger"]}};
|
|
46
|
-
margin-bottom: 16px;
|
|
47
|
-
`,_=r.div`
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
line-height: 1.3;
|
|
50
|
-
text-align: center;
|
|
51
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||s["cm-text-secondary"]}};
|
|
52
|
-
margin-bottom: 16px;
|
|
53
|
-
`;function Q({contactType:n,icon:e,title:t,description:v,onSubmitOTP:S,onResendCode:g,appearance:i,otpLength:f=H,helpText:b}){let[x,E]=c(""),[u,l]=c(!1),[k,h]=c(!1),[T,d]=c(null),m=z(null);return G(M,{children:[e,o(R,{appearance:i,children:t}),o(U,{appearance:i,dangerouslySetInnerHTML:{__html:v}}),o($,{children:o(O,{ref:m,maxLength:f,value:x,onChange:a=>{let p=u;E(a),l(!1),d(null),p&&m.current&&setTimeout(()=>{var y;(y=m.current)==null||y.focus()},0)},onComplete:()=>P(this,null,function*(){h(!0);try{yield S(x),l(!1),d(null)}catch(a){console.error(`Error confirming ${n} OTP:`,a),d("Invalid code. Please try again."),l(!0)}finally{h(!1)}}),disabled:k,appearance:i,style:{overflow:"hidden"},children:o(w,{children:Array.from({length:f}).map((a,p)=>o(L,{index:p,hasError:u},p))})})}),T&&o(B,{appearance:i,children:T}),o(_,{appearance:i,children:b}),g&&o(I,{initialSeconds:60,appearance:i,countdownText:a=>`Re-send code in ${a}s`,countdownCompleteText:"Re-send code",handleOnClick:g})]})}export{Q as a};
|
package/dist/chunk-3YLL6H32.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-LUSXGZYB.js";import{a as C}from"./chunk-36S5R2NM.js";import{a as D}from"./chunk-BAXCSO7J.js";import{a as f,b as g,c as u}from"./chunk-RV2X7AFS.js";import{a as b}from"./chunk-C3JRTLQP.js";import{Fragment as S,jsx as t,jsxs as h}from"react/jsx-runtime";function x({email:i,open:r,setOpen:k,step:e,onSubmitOTP:O,onResendOTPCode:y,onSubmitEmail:P,rejectRef:n,appearance:o}){var s,m,c;function l(a){var d;(r||a)&&((d=n.current)==null||d.call(n,new Error),k(!1))}return h(f,{open:r,setDialogOpen:l,appearance:o,style:{overflow:"hidden"},children:[e==="initial"?h(S,{children:[t(g,{appearance:o,children:"Confirm it's you"}),t(u,{appearance:o,children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code."})]}):null,e==="otp"?t(C,{contactInfo:i!=null?i:"",contactType:"email",icon:t("div",{style:{position:"relative",left:"12px"},children:t(b,{customAccentColor:(s=o==null?void 0:o.colors)==null?void 0:s.accent,customButtonBackgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.buttonBackground,customBackgroundColor:(c=o==null?void 0:o.colors)==null?void 0:c.background})}),title:"Check your email",description:`A temporary login code has been sent to <strong>${i}</strong>`,helpText:`Can't find the email? Check spam folder.
|
|
2
|
-
Some emails may take several minutes to arrive.`,onSubmitOTP:O,onResendCode:y,appearance:o}):t(v,{contactInfo:i!=null?i:"",icon:t(D,{}),onConfirm:P,onCancel:l,appearance:o})]})}export{x as a};
|
package/dist/chunk-5J6CUTGJ.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkDJZOP4MTcjs = require('./chunk-DJZOP4MT.cjs');var _chunkXBXL7GMYcjs = require('./chunk-XBXL7GMY.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _jsxruntime = require('react/jsx-runtime');var H=9,M=_styled2.default.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
width: 100%;
|
|
7
|
-
`,R=_styled2.default.p`
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
font-weight: 400;
|
|
10
|
-
margin: 16px 0 4px 0;
|
|
11
|
-
text-align: center;
|
|
12
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
|
|
13
|
-
`,U=_styled2.default.p`
|
|
14
|
-
text-align: center;
|
|
15
|
-
padding: 0 16px;
|
|
16
|
-
margin: 0;
|
|
17
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
|
|
18
|
-
font-size: 14px;
|
|
19
|
-
line-height: 1.4;
|
|
20
|
-
overflow-wrap: anywhere;
|
|
21
|
-
`,$=_styled2.default.div`
|
|
22
|
-
padding: 32px 0;
|
|
23
|
-
`,L=_styled2.default.call(void 0, _chunkXBXL7GMYcjs.c)`
|
|
24
|
-
/* Mobile styles */
|
|
25
|
-
@media (max-width: 479px) {
|
|
26
|
-
width: 32px;
|
|
27
|
-
height: 44px;
|
|
28
|
-
font-size: 20px;
|
|
29
|
-
margin: 0;
|
|
30
|
-
}
|
|
31
|
-
/* Mobile styles (small devices) */
|
|
32
|
-
@media (max-width: 379px) {
|
|
33
|
-
width: 24px;
|
|
34
|
-
height: 36px;
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
margin: 0;
|
|
37
|
-
}
|
|
38
|
-
/* Desktop styles */
|
|
39
|
-
@media (min-width: 480px) {
|
|
40
|
-
height: 48px;
|
|
41
|
-
width: 36px;
|
|
42
|
-
}
|
|
43
|
-
`,B=_styled2.default.div`
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.danger)||_chunkEAWYV5ZOcjs.a["cm-danger"]}};
|
|
46
|
-
margin-bottom: 16px;
|
|
47
|
-
`,_=_styled2.default.div`
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
line-height: 1.3;
|
|
50
|
-
text-align: center;
|
|
51
|
-
color: ${n=>{var e,t;return((t=(e=n.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
|
|
52
|
-
margin-bottom: 16px;
|
|
53
|
-
`;function K({contactType:n,icon:e,title:t,description:v,onSubmitOTP:S,onResendCode:g,appearance:i,otpLength:f=H,helpText:b}){let[x,E]=_react.useState.call(void 0, ""),[u,l]=_react.useState.call(void 0, !1),[k,h]=_react.useState.call(void 0, !1),[T,d]=_react.useState.call(void 0, null),m=_react.useRef.call(void 0, null);return _jsxruntime.jsxs.call(void 0, M,{children:[e,_jsxruntime.jsx.call(void 0, R,{appearance:i,children:t}),_jsxruntime.jsx.call(void 0, U,{appearance:i,dangerouslySetInnerHTML:{__html:v}}),_jsxruntime.jsx.call(void 0, $,{children:_jsxruntime.jsx.call(void 0, _chunkXBXL7GMYcjs.a,{ref:m,maxLength:f,value:x,onChange:a=>{let p=u;E(a),l(!1),d(null),p&&m.current&&setTimeout(()=>{var y;(y=m.current)==null||y.focus()},0)},onComplete:()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){h(!0);try{yield S(x),l(!1),d(null)}catch(a){console.error(`Error confirming ${n} OTP:`,a),d("Invalid code. Please try again."),l(!0)}finally{h(!1)}}),disabled:k,appearance:i,style:{overflow:"hidden"},children:_jsxruntime.jsx.call(void 0, _chunkXBXL7GMYcjs.b,{children:Array.from({length:f}).map((a,p)=>_jsxruntime.jsx.call(void 0, L,{index:p,hasError:u},p))})})}),T&&_jsxruntime.jsx.call(void 0, B,{appearance:i,children:T}),_jsxruntime.jsx.call(void 0, _,{appearance:i,children:b}),g&&_jsxruntime.jsx.call(void 0, _chunkDJZOP4MTcjs.a,{initialSeconds:60,appearance:i,countdownText:a=>`Re-send code in ${a}s`,countdownCompleteText:"Re-send code",handleOnClick:g})]})}exports.a = K;
|
package/dist/chunk-5UKANIFU.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOVJIGWD7cjs = require('./chunk-OVJIGWD7.cjs');var _chunk5J6CUTGJcjs = require('./chunk-5J6CUTGJ.cjs');var _chunkEDALAJ5Icjs = require('./chunk-EDALAJ5I.cjs');var _chunkYGN7O63Xcjs = require('./chunk-YGN7O63X.cjs');var _chunkO3H2EYFAcjs = require('./chunk-O3H2EYFA.cjs');var _jsxruntime = require('react/jsx-runtime');function B({phone:i,open:e,setOpen:S,step:r,onSubmitOTP:v,onResendOTPCode:D,onSubmitPhone:h,rejectRef:n,appearance:o}){var l,m;function s(O){var c;(e||O)&&((c=n.current)==null||c.call(n,new Error),S(!1))}return _jsxruntime.jsxs.call(void 0, _chunkO3H2EYFAcjs.a,{open:e,setDialogOpen:s,appearance:o,style:{overflow:"hidden"},children:[r==="initial"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.b,{appearance:o,children:"Confirm it's you"}),_jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.c,{appearance:o,children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code via SMS."})]}):null,r==="otp"?_jsxruntime.jsx.call(void 0, _chunk5J6CUTGJcjs.a,{contactInfo:i!=null?i:"",contactType:"phone",icon:_jsxruntime.jsx.call(void 0, _chunkYGN7O63Xcjs.a,{customAccentColor:(l=o==null?void 0:o.colors)==null?void 0:l.accent,customBackgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.background}),title:"Check your phone",description:`A temporary login code has been sent via SMS to <strong>${i}</strong>`,helpText:`Can't receive the SMS? Check your phone number.
|
|
2
|
-
Some messages may take several minutes to arrive.`,onSubmitOTP:v,onResendCode:D,appearance:o}):_jsxruntime.jsx.call(void 0, _chunkOVJIGWD7cjs.a,{contactInfo:i!=null?i:"",icon:_jsxruntime.jsx.call(void 0, _chunkEDALAJ5Icjs.a,{}),onConfirm:h,onCancel:s,appearance:o})]})}exports.a = B;
|
package/dist/chunk-B6B7IV7W.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{EVMWallet as o,SolanaWallet as s,StellarWallet as i,Wallet as n}from"@crossmint/wallets-sdk";export{o as a,s as b,i as c,n as d};
|
package/dist/chunk-BY43VZ7X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s="2.3.2";var r=s;export{r as a};
|
package/dist/chunk-CILUBBIE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXNNGBVFGcjs = require('./chunk-XNNGBVFG.cjs');var _chunkIDQKQMA2cjs = require('./chunk-IDQKQMA2.cjs');var _chunk5UKANIFUcjs = require('./chunk-5UKANIFU.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _jsxruntime = require('react/jsx-runtime');var p=P=>()=>{throw new Error(`${P} is not available. Make sure you're using an email or phone signer wallet.`)};function x({children:P,showPasskeyHelpers:d=!0,appearance:m,createOnLogin:o,callbacks:i}){let{experimental_customAuth:t}=_clientsdkreactbase.useCrossmint.call(void 0, ),[F,c]=_react.useState.call(void 0, {open:!1}),[N,y]=_react.useState.call(void 0, !1),[j,S]=_react.useState.call(void 0, "initial"),[q,f]=_react.useState.call(void 0, !1),[V,u]=_react.useState.call(void 0, "initial"),A=_react.useRef.call(void 0, !1),v=_react.useRef.call(void 0, p("sendEmailWithOtp")),g=_react.useRef.call(void 0, p("verifyOtp")),C=_react.useRef.call(void 0, p("sendPhoneWithOtp")),T=_react.useRef.call(void 0, p("verifyPhoneOtp")),n=_react.useRef.call(void 0, p("reject")),R=(o==null?void 0:o.signer.type)==="phone"&&(o==null?void 0:o.signer.phone)!=null?o.signer.phone:t==null?void 0:t.phone,w=_react.useCallback.call(void 0, e=>()=>new Promise(r=>{if(!d){r();return}c({type:e,open:!0,primaryActionOnClick:()=>{c({open:!1}),r()},secondaryActionOnClick:()=>{c({open:!1}),r()}})}),[d]),O=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield v.current(),S("otp")}catch(e){console.error("Failed to send email OTP",e),n.current(new Error("Failed to send email OTP"))}}),B=e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield g.current(e),y(!1),S("initial")}catch(r){console.error("Failed to verify OTP",r),n.current(new Error("Failed to verify OTP"))}}),E=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield C.current(),u("otp")}catch(e){console.error("Failed to send phone OTP",e),n.current(new Error("Failed to send phone OTP"))}}),I=e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{yield T.current(e),f(!1),u("initial")}catch(r){console.error("Failed to verify phone OTP",r),n.current(new Error("Failed to verify phone OTP"))}});return _jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletBaseProvider,{createOnLogin:o,onAuthRequired:(e,r,b,U)=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){(o==null?void 0:o.signer.type)==="phone"&&o.signer.phone?(f(e),C.current=r,T.current=b):(y(e),v.current=r,g.current=b),A.current=e,n.current=U}),callbacks:(()=>{let e=i==null?void 0:i.onWalletCreationStart,r=i==null?void 0:i.onTransactionStart;return(o==null?void 0:o.signer.type)==="passkey"&&d&&(e=w("create-wallet"),r=w("transaction")),{onWalletCreationStart:e,onTransactionStart:r}})(),children:[P,_jsxruntime.jsx.call(void 0, _chunkIDQKQMA2cjs.a,{rejectRef:n,email:t==null?void 0:t.email,open:N&&(t==null?void 0:t.email)!=null,setOpen:y,step:j,onSubmitOTP:B,onResendOTPCode:O,onSubmitEmail:O,appearance:m}),_jsxruntime.jsx.call(void 0, _chunk5UKANIFUcjs.a,{rejectRef:n,phone:R,open:q&&R!=null,setOpen:f,step:V,onSubmitOTP:I,onResendOTPCode:E,onSubmitPhone:E,appearance:m}),_jsxruntime.jsx.call(void 0, _chunkXNNGBVFGcjs.a,{state:F,appearance:m})]})}exports.a = x;
|
package/dist/chunk-DFNTIHTH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-LUSXGZYB.js";import{a as u}from"./chunk-36S5R2NM.js";import{a as C}from"./chunk-XFYW7RD2.js";import{a as P}from"./chunk-BWCRTWMO.js";import{a as g,b as d,c as f}from"./chunk-RV2X7AFS.js";import{Fragment as y,jsx as t,jsxs as b}from"react/jsx-runtime";function A({phone:i,open:e,setOpen:S,step:r,onSubmitOTP:v,onResendOTPCode:D,onSubmitPhone:h,rejectRef:n,appearance:o}){var l,m;function s(O){var c;(e||O)&&((c=n.current)==null||c.call(n,new Error),S(!1))}return b(g,{open:e,setDialogOpen:s,appearance:o,style:{overflow:"hidden"},children:[r==="initial"?b(y,{children:[t(d,{appearance:o,children:"Confirm it's you"}),t(f,{appearance:o,children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code via SMS."})]}):null,r==="otp"?t(u,{contactInfo:i!=null?i:"",contactType:"phone",icon:t(P,{customAccentColor:(l=o==null?void 0:o.colors)==null?void 0:l.accent,customBackgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.background}),title:"Check your phone",description:`A temporary login code has been sent via SMS to <strong>${i}</strong>`,helpText:`Can't receive the SMS? Check your phone number.
|
|
2
|
-
Some messages may take several minutes to arrive.`,onSubmitOTP:v,onResendCode:D,appearance:o}):t(a,{contactInfo:i!=null?i:"",icon:t(C,{}),onConfirm:h,onCancel:s,appearance:o})]})}export{A as a};
|
package/dist/chunk-IDQKQMA2.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOVJIGWD7cjs = require('./chunk-OVJIGWD7.cjs');var _chunk5J6CUTGJcjs = require('./chunk-5J6CUTGJ.cjs');var _chunkBPEDL7VVcjs = require('./chunk-BPEDL7VV.cjs');var _chunkO3H2EYFAcjs = require('./chunk-O3H2EYFA.cjs');var _chunkI4GMMHQRcjs = require('./chunk-I4GMMHQR.cjs');var _jsxruntime = require('react/jsx-runtime');function M({email:i,open:r,setOpen:k,step:e,onSubmitOTP:O,onResendOTPCode:y,onSubmitEmail:P,rejectRef:n,appearance:o}){var s,m,c;function l(a){var d;(r||a)&&((d=n.current)==null||d.call(n,new Error),k(!1))}return _jsxruntime.jsxs.call(void 0, _chunkO3H2EYFAcjs.a,{open:r,setDialogOpen:l,appearance:o,style:{overflow:"hidden"},children:[e==="initial"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.b,{appearance:o,children:"Confirm it's you"}),_jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.c,{appearance:o,children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code."})]}):null,e==="otp"?_jsxruntime.jsx.call(void 0, _chunk5J6CUTGJcjs.a,{contactInfo:i!=null?i:"",contactType:"email",icon:_jsxruntime.jsx.call(void 0, "div",{style:{position:"relative",left:"12px"},children:_jsxruntime.jsx.call(void 0, _chunkI4GMMHQRcjs.a,{customAccentColor:(s=o==null?void 0:o.colors)==null?void 0:s.accent,customButtonBackgroundColor:(m=o==null?void 0:o.colors)==null?void 0:m.buttonBackground,customBackgroundColor:(c=o==null?void 0:o.colors)==null?void 0:c.background})}),title:"Check your email",description:`A temporary login code has been sent to <strong>${i}</strong>`,helpText:`Can't find the email? Check spam folder.
|
|
2
|
-
Some emails may take several minutes to arrive.`,onSubmitOTP:O,onResendCode:y,appearance:o}):_jsxruntime.jsx.call(void 0, _chunkOVJIGWD7cjs.a,{contactInfo:i!=null?i:"",icon:_jsxruntime.jsx.call(void 0, _chunkBPEDL7VVcjs.a,{}),onConfirm:P,onCancel:l,appearance:o})]})}exports.a = M;
|
package/dist/chunk-J4OVY4SC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as D}from"./chunk-MS75EYBH.js";import{a as k}from"./chunk-3YLL6H32.js";import{a as W}from"./chunk-DFNTIHTH.js";import{d as s}from"./chunk-PXDN3KFO.js";import{useState as l,useCallback as $,useRef as a}from"react";import{CrossmintWalletBaseProvider as z,useCrossmint as G}from"@crossmint/client-sdk-react-base";import{jsx as h,jsxs as J}from"react/jsx-runtime";var p=P=>()=>{throw new Error(`${P} is not available. Make sure you're using an email or phone signer wallet.`)};function L({children:P,showPasskeyHelpers:d=!0,appearance:m,createOnLogin:o,callbacks:i}){let{experimental_customAuth:t}=G(),[F,c]=l({open:!1}),[N,y]=l(!1),[j,S]=l("initial"),[q,f]=l(!1),[V,u]=l("initial"),A=a(!1),v=a(p("sendEmailWithOtp")),g=a(p("verifyOtp")),C=a(p("sendPhoneWithOtp")),T=a(p("verifyPhoneOtp")),n=a(p("reject")),R=(o==null?void 0:o.signer.type)==="phone"&&(o==null?void 0:o.signer.phone)!=null?o.signer.phone:t==null?void 0:t.phone,w=$(e=>()=>new Promise(r=>{if(!d){r();return}c({type:e,open:!0,primaryActionOnClick:()=>{c({open:!1}),r()},secondaryActionOnClick:()=>{c({open:!1}),r()}})}),[d]),O=()=>s(this,null,function*(){try{yield v.current(),S("otp")}catch(e){console.error("Failed to send email OTP",e),n.current(new Error("Failed to send email OTP"))}}),B=e=>s(this,null,function*(){try{yield g.current(e),y(!1),S("initial")}catch(r){console.error("Failed to verify OTP",r),n.current(new Error("Failed to verify OTP"))}}),E=()=>s(this,null,function*(){try{yield C.current(),u("otp")}catch(e){console.error("Failed to send phone OTP",e),n.current(new Error("Failed to send phone OTP"))}}),I=e=>s(this,null,function*(){try{yield T.current(e),f(!1),u("initial")}catch(r){console.error("Failed to verify phone OTP",r),n.current(new Error("Failed to verify phone OTP"))}});return J(z,{createOnLogin:o,onAuthRequired:(e,r,b,U)=>s(this,null,function*(){(o==null?void 0:o.signer.type)==="phone"&&o.signer.phone?(f(e),C.current=r,T.current=b):(y(e),v.current=r,g.current=b),A.current=e,n.current=U}),callbacks:(()=>{let e=i==null?void 0:i.onWalletCreationStart,r=i==null?void 0:i.onTransactionStart;return(o==null?void 0:o.signer.type)==="passkey"&&d&&(e=w("create-wallet"),r=w("transaction")),{onWalletCreationStart:e,onTransactionStart:r}})(),children:[P,h(k,{rejectRef:n,email:t==null?void 0:t.email,open:N&&(t==null?void 0:t.email)!=null,setOpen:y,step:j,onSubmitOTP:B,onResendOTPCode:O,onSubmitEmail:O,appearance:m}),h(W,{rejectRef:n,phone:R,open:q&&R!=null,setOpen:f,step:V,onSubmitOTP:I,onResendOTPCode:E,onSubmitPhone:E,appearance:m}),h(D,{state:F,appearance:m})]})}export{L as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5J6CUTGJcjs = require('../../chunk-5J6CUTGJ.cjs');require('../../chunk-DJZOP4MT.cjs');require('../../chunk-XBXL7GMY.cjs');require('../../chunk-QHI4DOG7.cjs');require('../../chunk-3X24JZVG.cjs');require('../../chunk-EAWYV5ZO.cjs');require('../../chunk-2WSEHVNP.cjs');exports.BaseOTPInput = _chunk5J6CUTGJcjs.a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-36S5R2NM.js";import"../../chunk-JL7YHC7D.js";import"../../chunk-O5IPDCMT.js";import"../../chunk-HGHYGPCN.js";import"../../chunk-NZUCXN2O.js";import"../../chunk-DFSB3TWF.js";import"../../chunk-PXDN3KFO.js";export{a as BaseOTPInput};
|
|
File without changes
|
|
File without changes
|