@crossmint/client-sdk-react-ui 1.15.2 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WMDN55HV.js → chunk-2ZIM34DD.js} +1 -1
- package/dist/{chunk-NWV2BWKN.js → chunk-4BAS5B3G.js} +1 -1
- package/dist/{chunk-GCTSDYRG.js → chunk-5NEQHK6G.js} +1 -1
- package/dist/{chunk-GZQT7XQ2.cjs → chunk-5QERQCD2.cjs} +1 -1
- package/dist/{chunk-XNOVYSQ3.cjs → chunk-5XZRIBQ4.cjs} +1 -1
- package/dist/chunk-BFHQZOV3.js +1 -0
- package/dist/{chunk-47LMPW3K.cjs → chunk-CRLSSIGH.cjs} +1 -1
- package/dist/{chunk-6FS7UPZR.cjs → chunk-DQD3L5EO.cjs} +1 -1
- package/dist/chunk-F7L7VKNG.js +1 -0
- package/dist/chunk-FASRTACD.cjs +1 -0
- package/dist/{chunk-2FLKUVWF.cjs → chunk-FIZ5CKIL.cjs} +1 -1
- package/dist/{chunk-J7EPYIXO.js → chunk-FKRXNNNG.js} +1 -1
- package/dist/{chunk-AHFTXEUY.cjs → chunk-FR3Q7LYX.cjs} +1 -1
- package/dist/{chunk-2S3XUN2Z.cjs → chunk-G4X36DW5.cjs} +1 -1
- package/dist/{chunk-GA26TE7D.cjs → chunk-HOKYWKAW.cjs} +1 -1
- package/dist/chunk-ISHNN6HB.js +6 -0
- package/dist/{chunk-XC35DNUL.js → chunk-JA4A4XNR.js} +1 -1
- package/dist/{chunk-Q3JAM43Q.js → chunk-KDD57XGV.js} +1 -1
- package/dist/{chunk-7N4M5VIB.js → chunk-KQYQJ3PO.js} +1 -1
- package/dist/{chunk-MZZ2LINY.cjs → chunk-MPBGLLBN.cjs} +1 -1
- package/dist/{chunk-WA5U4ZXS.cjs → chunk-MZ6SRZXQ.cjs} +1 -1
- package/dist/{chunk-X2BVKPOG.js → chunk-Q6MSOUTV.js} +1 -1
- package/dist/{chunk-BDAOLFFE.js → chunk-RLWOLQ4K.js} +1 -1
- package/dist/chunk-RNLQP6LT.js +1 -0
- package/dist/{chunk-6OYTEKVX.cjs → chunk-SU6V65HR.cjs} +1 -1
- package/dist/chunk-TCA2FO3T.cjs +1 -0
- package/dist/{chunk-CKUPPCY3.js → chunk-UP2GSKOK.js} +1 -1
- package/dist/{chunk-YY2U5O6A.cjs → chunk-UX27EUXM.cjs} +1 -1
- package/dist/chunk-VSHZHQSV.cjs +6 -0
- package/dist/{chunk-FPLBVO4B.cjs → chunk-XSSLMN52.cjs} +1 -1
- package/dist/{chunk-SWT6BOWG.js → chunk-Z5SZYNSO.js} +1 -1
- package/dist/{chunk-7U42LKAP.js → chunk-ZL65VGQJ.js} +1 -1
- 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/AuthFormBackButton.cjs +1 -1
- package/dist/components/auth/AuthFormBackButton.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/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/auth/methods/web3/Web3Connectors.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3Connectors.js +1 -1
- package/dist/components/common/CrossmintLogoV2/schemas.d.cts +32 -32
- package/dist/components/common/CrossmintLogoV2/schemas.d.ts +32 -32
- package/dist/components/common/Divider.cjs +1 -1
- package/dist/components/common/Divider.js +1 -1
- package/dist/components/embed/index.cjs +1 -1
- package/dist/components/embed/index.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/crypto/CryptoWalletConnectionHandler.cjs +1 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js +1 -1
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.cjs +1 -1
- package/dist/components/embed/v3/crypto/utils/handleEvmTransaction.js +1 -1
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.cjs +1 -1
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.js +1 -1
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.cjs +1 -1
- package/dist/components/embed/v3/crypto/utils/handleSolanaTransaction.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/consts/version.cjs +1 -1
- package/dist/consts/version.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +6 -6
- package/dist/hooks/index.d.ts +6 -6
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAuth.cjs +1 -1
- package/dist/hooks/useAuth.d.cts +13 -8
- package/dist/hooks/useAuth.d.ts +13 -8
- package/dist/hooks/useAuth.js +1 -1
- package/dist/hooks/useCrossmintAuth.cjs +1 -1
- package/dist/hooks/useCrossmintAuth.d.cts +13 -8
- package/dist/hooks/useCrossmintAuth.d.ts +13 -8
- 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/hooks/useWallet.cjs +1 -1
- package/dist/hooks/useWallet.d.cts +53 -13
- package/dist/hooks/useWallet.d.ts +53 -13
- package/dist/hooks/useWallet.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +1 -1
- package/dist/providers/CrossmintAuthProvider.cjs +1 -1
- package/dist/providers/CrossmintAuthProvider.d.cts +7 -13
- package/dist/providers/CrossmintAuthProvider.d.ts +7 -13
- package/dist/providers/CrossmintAuthProvider.js +1 -1
- package/dist/providers/CrossmintWalletProvider.cjs +1 -1
- package/dist/providers/CrossmintWalletProvider.d.cts +32 -15
- package/dist/providers/CrossmintWalletProvider.d.ts +32 -15
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/auth/AuthFormProvider.cjs +1 -1
- package/dist/providers/auth/AuthFormProvider.d.cts +4 -4
- package/dist/providers/auth/AuthFormProvider.d.ts +4 -4
- package/dist/providers/auth/AuthFormProvider.js +1 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.cjs +1 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.js +1 -1
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.d.cts +7 -3
- package/dist/providers/index.d.ts +7 -3
- package/dist/providers/index.js +1 -1
- package/dist/types/auth.d.cts +3 -1
- package/dist/types/auth.d.ts +3 -1
- package/dist/types/passkey.cjs +1 -0
- package/dist/types/passkey.d.cts +8 -0
- package/dist/types/passkey.d.ts +8 -0
- package/dist/types/passkey.js +0 -0
- package/dist/types/wallet.cjs +1 -0
- package/dist/types/wallet.d.cts +34 -0
- package/dist/types/wallet.d.ts +34 -0
- package/dist/types/wallet.js +0 -0
- package/dist/utils/createCrossmintApiClient.cjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/dist/utils/createPasskeySigner.cjs +1 -0
- package/dist/utils/createPasskeySigner.d.cts +6 -0
- package/dist/utils/createPasskeySigner.d.ts +6 -0
- package/dist/utils/createPasskeySigner.js +1 -0
- package/package.json +11 -11
- package/dist/chunk-3FTGZMOH.js +0 -1
- package/dist/chunk-7ABP5BM2.cjs +0 -6
- package/dist/chunk-7G3VO3NN.js +0 -1
- package/dist/chunk-J43ZSGOP.cjs +0 -1
- package/dist/chunk-JVRVVRWV.js +0 -6
- package/dist/chunk-QNWGOW4I.js +0 -1
- package/dist/chunk-WCDR3KSE.cjs +0 -1
- package/dist/hooks/useWalletCache.cjs +0 -1
- package/dist/hooks/useWalletCache.d.cts +0 -12
- package/dist/hooks/useWalletCache.d.ts +0 -12
- package/dist/hooks/useWalletCache.js +0 -1
- /package/dist/{chunk-U2KHFXUK.js → chunk-Q7J4KIEO.js} +0 -0
- /package/dist/{chunk-NMROW7IT.cjs → chunk-QN5Y5AHL.cjs} +0 -0
package/dist/hooks/useAuth.d.cts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@crossmint/client-sdk-auth';
|
|
5
|
-
import '@crossmint/client-sdk-smart-wallet';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '@crossmint/common-sdk-auth';
|
|
1
|
+
import { AuthStatus } from '../types/auth.cjs';
|
|
2
|
+
import * as _crossmint_common_sdk_auth from '@crossmint/common-sdk-auth';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as _crossmint_client_sdk_auth from '@crossmint/client-sdk-auth';
|
|
8
5
|
|
|
9
|
-
declare function useAuth():
|
|
6
|
+
declare function useAuth(): {
|
|
7
|
+
crossmintAuth?: _crossmint_client_sdk_auth.CrossmintAuth;
|
|
8
|
+
login: (defaultEmail?: string | React.MouseEvent) => void;
|
|
9
|
+
logout: () => void;
|
|
10
|
+
jwt?: string;
|
|
11
|
+
user?: _crossmint_common_sdk_auth.SDKExternalUser;
|
|
12
|
+
status: AuthStatus;
|
|
13
|
+
getUser: () => void;
|
|
14
|
+
};
|
|
10
15
|
|
|
11
16
|
export { useAuth };
|
package/dist/hooks/useAuth.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@crossmint/client-sdk-auth';
|
|
5
|
-
import '@crossmint/client-sdk-smart-wallet';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '@crossmint/common-sdk-auth';
|
|
1
|
+
import { AuthStatus } from '../types/auth.js';
|
|
2
|
+
import * as _crossmint_common_sdk_auth from '@crossmint/common-sdk-auth';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as _crossmint_client_sdk_auth from '@crossmint/client-sdk-auth';
|
|
8
5
|
|
|
9
|
-
declare function useAuth():
|
|
6
|
+
declare function useAuth(): {
|
|
7
|
+
crossmintAuth?: _crossmint_client_sdk_auth.CrossmintAuth;
|
|
8
|
+
login: (defaultEmail?: string | React.MouseEvent) => void;
|
|
9
|
+
logout: () => void;
|
|
10
|
+
jwt?: string;
|
|
11
|
+
user?: _crossmint_common_sdk_auth.SDKExternalUser;
|
|
12
|
+
status: AuthStatus;
|
|
13
|
+
getUser: () => void;
|
|
14
|
+
};
|
|
10
15
|
|
|
11
16
|
export { useAuth };
|
package/dist/hooks/useAuth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as a}from"../chunk-
|
|
1
|
+
import{v as a}from"../chunk-ISHNN6HB.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-BFHQZOV3.js";import"../chunk-VRC3MYU6.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-NQ2WKZU6.js";import"../chunk-QRX6P4MW.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-EVADF7QA.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-UAFW3OWA.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-KDD57XGV.js";import"../chunk-Q6MSOUTV.js";import"../chunk-ROJ6HFVK.js";import"../chunk-6LMKMBUO.js";import"../chunk-F7L7VKNG.js";import"../chunk-PXDN3KFO.js";export{a as useAuth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVSHZHQSVcjs = require('../chunk-VSHZHQSV.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-62JYTT2Y.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-FSG3MT7C.cjs');require('../chunk-E5PPNNTL.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-XSSLMN52.cjs');require('../chunk-G4X36DW5.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-BMLVCKVF.cjs');require('../chunk-5QERQCD2.cjs');require('../chunk-2WSEHVNP.cjs');exports.useCrossmintAuth = _chunkVSHZHQSVcjs.d;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@crossmint/client-sdk-auth';
|
|
5
|
-
import '@crossmint/client-sdk-smart-wallet';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '@crossmint/common-sdk-auth';
|
|
1
|
+
import { AuthStatus } from '../types/auth.cjs';
|
|
2
|
+
import * as _crossmint_common_sdk_auth from '@crossmint/common-sdk-auth';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as _crossmint_client_sdk_auth from '@crossmint/client-sdk-auth';
|
|
8
5
|
|
|
9
|
-
declare function useCrossmintAuth():
|
|
6
|
+
declare function useCrossmintAuth(): {
|
|
7
|
+
crossmintAuth?: _crossmint_client_sdk_auth.CrossmintAuth;
|
|
8
|
+
login: (defaultEmail?: string | React.MouseEvent) => void;
|
|
9
|
+
logout: () => void;
|
|
10
|
+
jwt?: string;
|
|
11
|
+
user?: _crossmint_common_sdk_auth.SDKExternalUser;
|
|
12
|
+
status: AuthStatus;
|
|
13
|
+
getUser: () => void;
|
|
14
|
+
};
|
|
10
15
|
|
|
11
16
|
export { useCrossmintAuth };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@crossmint/client-sdk-auth';
|
|
5
|
-
import '@crossmint/client-sdk-smart-wallet';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '@crossmint/common-sdk-auth';
|
|
1
|
+
import { AuthStatus } from '../types/auth.js';
|
|
2
|
+
import * as _crossmint_common_sdk_auth from '@crossmint/common-sdk-auth';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as _crossmint_client_sdk_auth from '@crossmint/client-sdk-auth';
|
|
8
5
|
|
|
9
|
-
declare function useCrossmintAuth():
|
|
6
|
+
declare function useCrossmintAuth(): {
|
|
7
|
+
crossmintAuth?: _crossmint_client_sdk_auth.CrossmintAuth;
|
|
8
|
+
login: (defaultEmail?: string | React.MouseEvent) => void;
|
|
9
|
+
logout: () => void;
|
|
10
|
+
jwt?: string;
|
|
11
|
+
user?: _crossmint_common_sdk_auth.SDKExternalUser;
|
|
12
|
+
status: AuthStatus;
|
|
13
|
+
getUser: () => void;
|
|
14
|
+
};
|
|
10
15
|
|
|
11
16
|
export { useCrossmintAuth };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a}from"../chunk-
|
|
1
|
+
import{d as a}from"../chunk-ISHNN6HB.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-BFHQZOV3.js";import"../chunk-VRC3MYU6.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-NQ2WKZU6.js";import"../chunk-QRX6P4MW.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-EVADF7QA.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-UAFW3OWA.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-KDD57XGV.js";import"../chunk-Q6MSOUTV.js";import"../chunk-ROJ6HFVK.js";import"../chunk-6LMKMBUO.js";import"../chunk-F7L7VKNG.js";import"../chunk-PXDN3KFO.js";export{a as useCrossmintAuth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXSSLMN52cjs = require('../chunk-XSSLMN52.cjs');require('../chunk-G4X36DW5.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-5QERQCD2.cjs');require('../chunk-2WSEHVNP.cjs');exports.CrossmintCheckoutProvider = _chunkXSSLMN52cjs.a; exports.useCrossmintCheckout = _chunkXSSLMN52cjs.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-KDD57XGV.js";import"../chunk-Q6MSOUTV.js";import"../chunk-ROJ6HFVK.js";import"../chunk-F7L7VKNG.js";import"../chunk-PXDN3KFO.js";export{a as CrossmintCheckoutProvider,b as useCrossmintCheckout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVSHZHQSVcjs = require('../chunk-VSHZHQSV.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-62JYTT2Y.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-FSG3MT7C.cjs');require('../chunk-E5PPNNTL.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-XSSLMN52.cjs');require('../chunk-G4X36DW5.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-BMLVCKVF.cjs');require('../chunk-5QERQCD2.cjs');require('../chunk-2WSEHVNP.cjs');exports.useOAuthWindowListener = _chunkVSHZHQSVcjs.j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a}from"../chunk-
|
|
1
|
+
import{j as a}from"../chunk-ISHNN6HB.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-BFHQZOV3.js";import"../chunk-VRC3MYU6.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-NQ2WKZU6.js";import"../chunk-QRX6P4MW.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-EVADF7QA.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-UAFW3OWA.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-KDD57XGV.js";import"../chunk-Q6MSOUTV.js";import"../chunk-ROJ6HFVK.js";import"../chunk-6LMKMBUO.js";import"../chunk-F7L7VKNG.js";import"../chunk-PXDN3KFO.js";export{a as useOAuthWindowListener};
|
package/dist/hooks/useWallet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVSHZHQSVcjs = require('../chunk-VSHZHQSV.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-62JYTT2Y.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-FSG3MT7C.cjs');require('../chunk-E5PPNNTL.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-XSSLMN52.cjs');require('../chunk-G4X36DW5.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-BMLVCKVF.cjs');require('../chunk-5QERQCD2.cjs');require('../chunk-2WSEHVNP.cjs');exports.useWallet = _chunkVSHZHQSVcjs.c;
|
|
@@ -1,20 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '@crossmint/common-sdk-base';
|
|
1
|
+
import * as _crossmint_wallets_sdk from '@crossmint/wallets-sdk';
|
|
2
|
+
import { PasskeySigner } from '../types/passkey.cjs';
|
|
3
|
+
import { GetOrCreateWalletProps } from '../types/wallet.cjs';
|
|
4
|
+
import 'ox';
|
|
6
5
|
|
|
7
|
-
declare function useWallet(): {
|
|
8
|
-
status: "not-loaded" | "in-progress"
|
|
9
|
-
wallet?:
|
|
10
|
-
|
|
11
|
-
error?:
|
|
12
|
-
|
|
6
|
+
declare function useWallet(): ({
|
|
7
|
+
status: "not-loaded" | "in-progress";
|
|
8
|
+
wallet?: undefined;
|
|
9
|
+
type?: undefined;
|
|
10
|
+
error?: undefined;
|
|
11
|
+
} & {
|
|
12
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
13
13
|
startedCreation: boolean;
|
|
14
14
|
reason?: string;
|
|
15
15
|
}>;
|
|
16
|
-
createPasskeySigner: (name: string) => Promise<
|
|
16
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
17
17
|
clearWallet: () => void;
|
|
18
|
-
|
|
18
|
+
passkeySigner?: PasskeySigner;
|
|
19
|
+
}) | ({
|
|
20
|
+
status: "loading-error";
|
|
21
|
+
wallet?: undefined;
|
|
22
|
+
type?: undefined;
|
|
23
|
+
error: string;
|
|
24
|
+
} & {
|
|
25
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
26
|
+
startedCreation: boolean;
|
|
27
|
+
reason?: string;
|
|
28
|
+
}>;
|
|
29
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
30
|
+
clearWallet: () => void;
|
|
31
|
+
passkeySigner?: PasskeySigner;
|
|
32
|
+
}) | ({
|
|
33
|
+
status: "loaded";
|
|
34
|
+
wallet: _crossmint_wallets_sdk.EVMSmartWallet;
|
|
35
|
+
type: "evm-smart-wallet";
|
|
36
|
+
error?: undefined;
|
|
37
|
+
} & {
|
|
38
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
39
|
+
startedCreation: boolean;
|
|
40
|
+
reason?: string;
|
|
41
|
+
}>;
|
|
42
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
43
|
+
clearWallet: () => void;
|
|
44
|
+
passkeySigner?: PasskeySigner;
|
|
45
|
+
}) | ({
|
|
46
|
+
status: "loaded";
|
|
47
|
+
wallet: _crossmint_wallets_sdk.SolanaSmartWallet;
|
|
48
|
+
type: "solana-smart-wallet";
|
|
49
|
+
error?: undefined;
|
|
50
|
+
} & {
|
|
51
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
52
|
+
startedCreation: boolean;
|
|
53
|
+
reason?: string;
|
|
54
|
+
}>;
|
|
55
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
56
|
+
clearWallet: () => void;
|
|
57
|
+
passkeySigner?: PasskeySigner;
|
|
58
|
+
});
|
|
19
59
|
|
|
20
60
|
export { useWallet };
|
|
@@ -1,20 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '@crossmint/common-sdk-base';
|
|
1
|
+
import * as _crossmint_wallets_sdk from '@crossmint/wallets-sdk';
|
|
2
|
+
import { PasskeySigner } from '../types/passkey.js';
|
|
3
|
+
import { GetOrCreateWalletProps } from '../types/wallet.js';
|
|
4
|
+
import 'ox';
|
|
6
5
|
|
|
7
|
-
declare function useWallet(): {
|
|
8
|
-
status: "not-loaded" | "in-progress"
|
|
9
|
-
wallet?:
|
|
10
|
-
|
|
11
|
-
error?:
|
|
12
|
-
|
|
6
|
+
declare function useWallet(): ({
|
|
7
|
+
status: "not-loaded" | "in-progress";
|
|
8
|
+
wallet?: undefined;
|
|
9
|
+
type?: undefined;
|
|
10
|
+
error?: undefined;
|
|
11
|
+
} & {
|
|
12
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
13
13
|
startedCreation: boolean;
|
|
14
14
|
reason?: string;
|
|
15
15
|
}>;
|
|
16
|
-
createPasskeySigner: (name: string) => Promise<
|
|
16
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
17
17
|
clearWallet: () => void;
|
|
18
|
-
|
|
18
|
+
passkeySigner?: PasskeySigner;
|
|
19
|
+
}) | ({
|
|
20
|
+
status: "loading-error";
|
|
21
|
+
wallet?: undefined;
|
|
22
|
+
type?: undefined;
|
|
23
|
+
error: string;
|
|
24
|
+
} & {
|
|
25
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
26
|
+
startedCreation: boolean;
|
|
27
|
+
reason?: string;
|
|
28
|
+
}>;
|
|
29
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
30
|
+
clearWallet: () => void;
|
|
31
|
+
passkeySigner?: PasskeySigner;
|
|
32
|
+
}) | ({
|
|
33
|
+
status: "loaded";
|
|
34
|
+
wallet: _crossmint_wallets_sdk.EVMSmartWallet;
|
|
35
|
+
type: "evm-smart-wallet";
|
|
36
|
+
error?: undefined;
|
|
37
|
+
} & {
|
|
38
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
39
|
+
startedCreation: boolean;
|
|
40
|
+
reason?: string;
|
|
41
|
+
}>;
|
|
42
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
43
|
+
clearWallet: () => void;
|
|
44
|
+
passkeySigner?: PasskeySigner;
|
|
45
|
+
}) | ({
|
|
46
|
+
status: "loaded";
|
|
47
|
+
wallet: _crossmint_wallets_sdk.SolanaSmartWallet;
|
|
48
|
+
type: "solana-smart-wallet";
|
|
49
|
+
error?: undefined;
|
|
50
|
+
} & {
|
|
51
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
52
|
+
startedCreation: boolean;
|
|
53
|
+
reason?: string;
|
|
54
|
+
}>;
|
|
55
|
+
createPasskeySigner: (name: string, promptType?: "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error") => Promise<PasskeySigner | null>;
|
|
56
|
+
clearWallet: () => void;
|
|
57
|
+
passkeySigner?: PasskeySigner;
|
|
58
|
+
});
|
|
19
59
|
|
|
20
60
|
export { useWallet };
|
package/dist/hooks/useWallet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"../chunk-
|
|
1
|
+
import{c as a}from"../chunk-ISHNN6HB.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-BFHQZOV3.js";import"../chunk-VRC3MYU6.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-NQ2WKZU6.js";import"../chunk-QRX6P4MW.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-EVADF7QA.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-UAFW3OWA.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-KDD57XGV.js";import"../chunk-Q6MSOUTV.js";import"../chunk-ROJ6HFVK.js";import"../chunk-6LMKMBUO.js";import"../chunk-F7L7VKNG.js";import"../chunk-PXDN3KFO.js";export{a as useWallet};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-S73E6EBO.cjs');require('./chunk-2VQLMU5A.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-S73E6EBO.cjs');require('./chunk-2VQLMU5A.cjs');var _chunkFIZ5CKILcjs = require('./chunk-FIZ5CKIL.cjs');require('./chunk-HOKYWKAW.cjs');require('./chunk-QLPV72AE.cjs');require('./chunk-XUT4N66R.cjs');require('./chunk-3EQVCVCE.cjs');var _chunkUX27EUXMcjs = require('./chunk-UX27EUXM.cjs');require('./chunk-56YL3XJW.cjs');require('./chunk-KI4HRYHD.cjs');var _chunkDQD3L5EOcjs = require('./chunk-DQD3L5EO.cjs');require('./chunk-5IFQJPBE.cjs');require('./chunk-NFLGT52C.cjs');require('./chunk-NZQIZ4ZY.cjs');require('./chunk-IMV35JZB.cjs');require('./chunk-EUXGP4IN.cjs');var _chunkSU6V65HRcjs = require('./chunk-SU6V65HR.cjs');require('./chunk-O5J2ZIJ6.cjs');var _chunkMPBGLLBNcjs = require('./chunk-MPBGLLBN.cjs');require('./chunk-W4UPIFFS.cjs');require('./chunk-X5BBXO27.cjs');var _chunk5XZRIBQ4cjs = require('./chunk-5XZRIBQ4.cjs');var _chunkMZ6SRZXQcjs = require('./chunk-MZ6SRZXQ.cjs');var _chunkVSHZHQSVcjs = require('./chunk-VSHZHQSV.cjs');require('./chunk-BR77Q3PK.cjs');require('./chunk-HG5ML6KX.cjs');require('./chunk-Z2FGFHRQ.cjs');require('./chunk-FASRTACD.cjs');require('./chunk-62JYTT2Y.cjs');require('./chunk-2BOQSASO.cjs');require('./chunk-HLGNSXEQ.cjs');require('./chunk-FSG3MT7C.cjs');require('./chunk-E5PPNNTL.cjs');require('./chunk-WABJHG6B.cjs');require('./chunk-TM7WDKYR.cjs');require('./chunk-VI6TW7JT.cjs');require('./chunk-VWBAHXIO.cjs');require('./chunk-FQ246XXN.cjs');require('./chunk-ZBQCXWMD.cjs');require('./chunk-NRN4WNQL.cjs');require('./chunk-I4GMMHQR.cjs');require('./chunk-SRQAQHYK.cjs');require('./chunk-QYQERFYL.cjs');require('./chunk-E65EGG73.cjs');var _chunkXSSLMN52cjs = require('./chunk-XSSLMN52.cjs');require('./chunk-G4X36DW5.cjs');var _chunkGPQZG7HCcjs = require('./chunk-GPQZG7HC.cjs');require('./chunk-BMLVCKVF.cjs');require('./chunk-5QERQCD2.cjs');require('./chunk-2WSEHVNP.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');exports.AuthContext = _chunkVSHZHQSVcjs.t; exports.CrossmintAuthProvider = _chunkVSHZHQSVcjs.u; exports.CrossmintCheckoutProvider = _chunkXSSLMN52cjs.a; exports.CrossmintEmbeddedCheckout = _chunkFIZ5CKILcjs.a; exports.CrossmintEvents = _clientsdkbase.CrossmintEvents; exports.CrossmintHostedCheckout = _chunkUX27EUXMcjs.a; exports.CrossmintNFTCollectionView = _chunk5XZRIBQ4cjs.a; exports.CrossmintNFTDetail = _chunkMZ6SRZXQcjs.a; exports.CrossmintPayButton_DEPRECATED = _chunkSU6V65HRcjs.a; exports.CrossmintPaymentElement_DEPRECATED = _chunkDQD3L5EOcjs.a; exports.CrossmintProvider = _chunkGPQZG7HCcjs.a; exports.CrossmintWalletProvider = _chunkVSHZHQSVcjs.b; exports.EmbeddedAuthForm = _chunkMPBGLLBNcjs.a; exports.WalletContext = _chunkVSHZHQSVcjs.a; exports.useAuth = _chunkVSHZHQSVcjs.v; exports.useCrossmint = _chunkGPQZG7HCcjs.b; exports.useCrossmintCheckout = _chunkXSSLMN52cjs.b; exports.useCrossmintEvents = _clientsdkbase.useCrossmintEvents; exports.useWallet = _chunkVSHZHQSVcjs.c;
|
package/dist/index.d.cts
CHANGED
|
@@ -9,14 +9,16 @@ export { CrossmintContext, CrossmintProvider, useCrossmint } from './hooks/useCr
|
|
|
9
9
|
export { CrossmintCheckoutContext, CrossmintCheckoutProvider, useCrossmintCheckout } from './hooks/useCrossmintCheckout.cjs';
|
|
10
10
|
export { useWallet } from './hooks/useWallet.cjs';
|
|
11
11
|
export { useAuth } from './hooks/useAuth.cjs';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export { CrossmintWalletProvider, WalletConfig, WalletContext } from './providers/CrossmintWalletProvider.cjs';
|
|
12
|
+
export { AuthContext, CrossmintAuthProvider } from './providers/CrossmintAuthProvider.cjs';
|
|
13
|
+
export { CrossmintWalletProvider, WalletContext } from './providers/CrossmintWalletProvider.cjs';
|
|
15
14
|
export { CrossmintEvent, CrossmintEventMap, CrossmintEvents, useCrossmintEvents } from '@crossmint/client-sdk-base';
|
|
16
|
-
export {
|
|
15
|
+
export { EVMSmartWallet, SolanaSmartWallet } from '@crossmint/wallets-sdk';
|
|
17
16
|
import 'react/jsx-runtime';
|
|
18
17
|
import '@crossmint/common-sdk-base';
|
|
19
18
|
import 'react';
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
19
|
+
import './types/passkey.cjs';
|
|
20
|
+
import 'ox';
|
|
21
|
+
import './types/wallet.cjs';
|
|
22
|
+
import './types/auth.cjs';
|
|
22
23
|
import '@crossmint/common-sdk-auth';
|
|
24
|
+
import '@crossmint/client-sdk-auth';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,14 +9,16 @@ export { CrossmintContext, CrossmintProvider, useCrossmint } from './hooks/useCr
|
|
|
9
9
|
export { CrossmintCheckoutContext, CrossmintCheckoutProvider, useCrossmintCheckout } from './hooks/useCrossmintCheckout.js';
|
|
10
10
|
export { useWallet } from './hooks/useWallet.js';
|
|
11
11
|
export { useAuth } from './hooks/useAuth.js';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export { CrossmintWalletProvider, WalletConfig, WalletContext } from './providers/CrossmintWalletProvider.js';
|
|
12
|
+
export { AuthContext, CrossmintAuthProvider } from './providers/CrossmintAuthProvider.js';
|
|
13
|
+
export { CrossmintWalletProvider, WalletContext } from './providers/CrossmintWalletProvider.js';
|
|
15
14
|
export { CrossmintEvent, CrossmintEventMap, CrossmintEvents, useCrossmintEvents } from '@crossmint/client-sdk-base';
|
|
16
|
-
export {
|
|
15
|
+
export { EVMSmartWallet, SolanaSmartWallet } from '@crossmint/wallets-sdk';
|
|
17
16
|
import 'react/jsx-runtime';
|
|
18
17
|
import '@crossmint/common-sdk-base';
|
|
19
18
|
import 'react';
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
19
|
+
import './types/passkey.js';
|
|
20
|
+
import 'ox';
|
|
21
|
+
import './types/wallet.js';
|
|
22
|
+
import './types/auth.js';
|
|
22
23
|
import '@crossmint/common-sdk-auth';
|
|
24
|
+
import '@crossmint/client-sdk-auth';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-3BUVHV54.js";import"./chunk-72MMCJ2E.js";import{a as
|
|
1
|
+
import"./chunk-3BUVHV54.js";import"./chunk-72MMCJ2E.js";import{a as C}from"./chunk-JA4A4XNR.js";import"./chunk-ZL65VGQJ.js";import"./chunk-5X3MPD2V.js";import"./chunk-WHFUW3W3.js";import"./chunk-NB7AJIPT.js";import{a as n}from"./chunk-Z5SZYNSO.js";import"./chunk-EA7H4AXL.js";import"./chunk-KFL42A3A.js";import{a as o}from"./chunk-2ZIM34DD.js";import"./chunk-RYQRCUKB.js";import"./chunk-QASKWI5Y.js";import"./chunk-4IHRWQWT.js";import"./chunk-JGM3G5E2.js";import"./chunk-IAJBYU5C.js";import{a as s}from"./chunk-RLWOLQ4K.js";import"./chunk-72P3JMXX.js";import{a as c}from"./chunk-KQYQJ3PO.js";import"./chunk-DGZQUCSD.js";import"./chunk-2POV64LQ.js";import{a as t}from"./chunk-5NEQHK6G.js";import{a as r}from"./chunk-FKRXNNNG.js";import{a as l,b as i,c as f,t as x,u as E,v}from"./chunk-ISHNN6HB.js";import"./chunk-JSNUJJQJ.js";import"./chunk-VHNBXIOC.js";import"./chunk-TNCETEEL.js";import"./chunk-BFHQZOV3.js";import"./chunk-VRC3MYU6.js";import"./chunk-2VBA64WU.js";import"./chunk-EMXNIC4M.js";import"./chunk-NQ2WKZU6.js";import"./chunk-QRX6P4MW.js";import"./chunk-NBJIJZGO.js";import"./chunk-SFDQPSSP.js";import"./chunk-77PBG2JJ.js";import"./chunk-EVADF7QA.js";import"./chunk-H34D6PAN.js";import"./chunk-JPJKOERH.js";import"./chunk-UAFW3OWA.js";import"./chunk-C3JRTLQP.js";import"./chunk-E4TBJMOO.js";import"./chunk-OOLXYAO7.js";import"./chunk-WW6GUXHG.js";import{a,b as p}from"./chunk-KDD57XGV.js";import"./chunk-Q6MSOUTV.js";import{a as e,b as m}from"./chunk-ROJ6HFVK.js";import"./chunk-6LMKMBUO.js";import"./chunk-F7L7VKNG.js";import"./chunk-PXDN3KFO.js";import{CrossmintEvents as w,useCrossmintEvents as V}from"@crossmint/client-sdk-base";export{x as AuthContext,E as CrossmintAuthProvider,a as CrossmintCheckoutProvider,C as CrossmintEmbeddedCheckout,w as CrossmintEvents,n as CrossmintHostedCheckout,t as CrossmintNFTCollectionView,r as CrossmintNFTDetail,s as CrossmintPayButton_DEPRECATED,o as CrossmintPaymentElement_DEPRECATED,e as CrossmintProvider,i as CrossmintWalletProvider,c as EmbeddedAuthForm,l as WalletContext,v as useAuth,m as useCrossmint,p as useCrossmintCheckout,V as useCrossmintEvents,f as useWallet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVSHZHQSVcjs = require('../chunk-VSHZHQSV.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-62JYTT2Y.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-FSG3MT7C.cjs');require('../chunk-E5PPNNTL.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-XSSLMN52.cjs');require('../chunk-G4X36DW5.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-BMLVCKVF.cjs');require('../chunk-5QERQCD2.cjs');require('../chunk-2WSEHVNP.cjs');exports.AuthContext = _chunkVSHZHQSVcjs.t; exports.CrossmintAuthProvider = _chunkVSHZHQSVcjs.u;
|
|
@@ -2,19 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ReactNode, MouseEvent } from 'react';
|
|
4
4
|
import { CrossmintAuth } from '@crossmint/client-sdk-auth';
|
|
5
|
-
import { EVMSmartWalletChain } from '@crossmint/client-sdk-smart-wallet';
|
|
6
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
7
6
|
import { SDKExternalUser } from '@crossmint/common-sdk-auth';
|
|
7
|
+
import { LoginMethod, AuthStatus } from '../types/auth.cjs';
|
|
8
|
+
import { CrossmintAuthEmbeddedWallets } from '../types/wallet.cjs';
|
|
9
|
+
import '@crossmint/wallets-sdk';
|
|
8
10
|
|
|
9
|
-
type CrossmintAuthWalletConfig = {
|
|
10
|
-
defaultChain: EVMSmartWalletChain;
|
|
11
|
-
createOnLogin: "all-users" | "off";
|
|
12
|
-
type: "evm-smart-wallet";
|
|
13
|
-
showPasskeyHelpers?: boolean;
|
|
14
|
-
};
|
|
15
|
-
type LoginMethod = "email" | "google" | "farcaster" | "web3" | "twitter";
|
|
16
11
|
type CrossmintAuthProviderProps = {
|
|
17
|
-
embeddedWallets?:
|
|
12
|
+
embeddedWallets?: CrossmintAuthEmbeddedWallets;
|
|
18
13
|
appearance?: UIConfig;
|
|
19
14
|
termsOfServiceText?: string | ReactNode;
|
|
20
15
|
prefetchOAuthUrls?: boolean;
|
|
@@ -25,8 +20,7 @@ type CrossmintAuthProviderProps = {
|
|
|
25
20
|
refreshRoute?: string;
|
|
26
21
|
logoutRoute?: string;
|
|
27
22
|
};
|
|
28
|
-
type
|
|
29
|
-
interface AuthContextType {
|
|
23
|
+
type AuthContextType = {
|
|
30
24
|
crossmintAuth?: CrossmintAuth;
|
|
31
25
|
login: (defaultEmail?: string | MouseEvent) => void;
|
|
32
26
|
logout: () => void;
|
|
@@ -34,8 +28,8 @@ interface AuthContextType {
|
|
|
34
28
|
user?: SDKExternalUser;
|
|
35
29
|
status: AuthStatus;
|
|
36
30
|
getUser: () => void;
|
|
37
|
-
}
|
|
31
|
+
};
|
|
38
32
|
declare const AuthContext: React.Context<AuthContextType>;
|
|
39
33
|
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance, termsOfServiceText, prefetchOAuthUrls, authModalTitle, onLoginSuccess, loginMethods, refreshRoute, logoutRoute, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
40
34
|
|
|
41
|
-
export { AuthContext,
|
|
35
|
+
export { AuthContext, CrossmintAuthProvider };
|
|
@@ -2,19 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ReactNode, MouseEvent } from 'react';
|
|
4
4
|
import { CrossmintAuth } from '@crossmint/client-sdk-auth';
|
|
5
|
-
import { EVMSmartWalletChain } from '@crossmint/client-sdk-smart-wallet';
|
|
6
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
7
6
|
import { SDKExternalUser } from '@crossmint/common-sdk-auth';
|
|
7
|
+
import { LoginMethod, AuthStatus } from '../types/auth.js';
|
|
8
|
+
import { CrossmintAuthEmbeddedWallets } from '../types/wallet.js';
|
|
9
|
+
import '@crossmint/wallets-sdk';
|
|
8
10
|
|
|
9
|
-
type CrossmintAuthWalletConfig = {
|
|
10
|
-
defaultChain: EVMSmartWalletChain;
|
|
11
|
-
createOnLogin: "all-users" | "off";
|
|
12
|
-
type: "evm-smart-wallet";
|
|
13
|
-
showPasskeyHelpers?: boolean;
|
|
14
|
-
};
|
|
15
|
-
type LoginMethod = "email" | "google" | "farcaster" | "web3" | "twitter";
|
|
16
11
|
type CrossmintAuthProviderProps = {
|
|
17
|
-
embeddedWallets?:
|
|
12
|
+
embeddedWallets?: CrossmintAuthEmbeddedWallets;
|
|
18
13
|
appearance?: UIConfig;
|
|
19
14
|
termsOfServiceText?: string | ReactNode;
|
|
20
15
|
prefetchOAuthUrls?: boolean;
|
|
@@ -25,8 +20,7 @@ type CrossmintAuthProviderProps = {
|
|
|
25
20
|
refreshRoute?: string;
|
|
26
21
|
logoutRoute?: string;
|
|
27
22
|
};
|
|
28
|
-
type
|
|
29
|
-
interface AuthContextType {
|
|
23
|
+
type AuthContextType = {
|
|
30
24
|
crossmintAuth?: CrossmintAuth;
|
|
31
25
|
login: (defaultEmail?: string | MouseEvent) => void;
|
|
32
26
|
logout: () => void;
|
|
@@ -34,8 +28,8 @@ interface AuthContextType {
|
|
|
34
28
|
user?: SDKExternalUser;
|
|
35
29
|
status: AuthStatus;
|
|
36
30
|
getUser: () => void;
|
|
37
|
-
}
|
|
31
|
+
};
|
|
38
32
|
declare const AuthContext: React.Context<AuthContextType>;
|
|
39
33
|
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance, termsOfServiceText, prefetchOAuthUrls, authModalTitle, onLoginSuccess, loginMethods, refreshRoute, logoutRoute, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
40
34
|
|
|
41
|
-
export { AuthContext,
|
|
35
|
+
export { AuthContext, CrossmintAuthProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a,u as b}from"../chunk-
|
|
1
|
+
import{t as a,u as b}from"../chunk-ISHNN6HB.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-BFHQZOV3.js";import"../chunk-VRC3MYU6.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-NQ2WKZU6.js";import"../chunk-QRX6P4MW.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-EVADF7QA.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-UAFW3OWA.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-KDD57XGV.js";import"../chunk-Q6MSOUTV.js";import"../chunk-ROJ6HFVK.js";import"../chunk-6LMKMBUO.js";import"../chunk-F7L7VKNG.js";import"../chunk-PXDN3KFO.js";export{a as AuthContext,b as CrossmintAuthProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVSHZHQSVcjs = require('../chunk-VSHZHQSV.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-62JYTT2Y.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-FSG3MT7C.cjs');require('../chunk-E5PPNNTL.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-XSSLMN52.cjs');require('../chunk-G4X36DW5.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-BMLVCKVF.cjs');require('../chunk-5QERQCD2.cjs');require('../chunk-2WSEHVNP.cjs');exports.CrossmintWalletProvider = _chunkVSHZHQSVcjs.b; exports.WalletContext = _chunkVSHZHQSVcjs.a;
|
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { EVMSmartWallet,
|
|
4
|
+
import { EVMSmartWallet, SolanaSmartWallet } from '@crossmint/wallets-sdk';
|
|
5
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
+
import { PasskeySigner } from '../types/passkey.cjs';
|
|
7
|
+
import { GetOrCreateWalletProps } from '../types/wallet.cjs';
|
|
8
|
+
import 'ox';
|
|
6
9
|
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
wallet?: EVMSmartWallet;
|
|
11
|
-
passkeySigner?: PasskeySigner;
|
|
12
|
-
error?: SmartWalletError;
|
|
13
|
-
getOrCreateWallet: (config?: Pick<WalletConfig, "signer" | "type">) => Promise<{
|
|
10
|
+
type ValidPasskeyPromptType = "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error";
|
|
11
|
+
type WalletContextFunctions = {
|
|
12
|
+
getOrCreateWallet: (args: GetOrCreateWalletProps) => Promise<{
|
|
14
13
|
startedCreation: boolean;
|
|
15
14
|
reason?: string;
|
|
16
15
|
}>;
|
|
17
|
-
createPasskeySigner: (name: string) => Promise<PasskeySigner | null>;
|
|
16
|
+
createPasskeySigner: (name: string, promptType?: ValidPasskeyPromptType) => Promise<PasskeySigner | null>;
|
|
18
17
|
clearWallet: () => void;
|
|
18
|
+
passkeySigner?: PasskeySigner;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
type WalletType = {
|
|
21
|
+
"evm-smart-wallet": EVMSmartWallet;
|
|
22
|
+
"solana-smart-wallet": SolanaSmartWallet;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type LoadedWalletState<T extends keyof WalletType> = {
|
|
25
|
+
status: "loaded";
|
|
26
|
+
wallet: WalletType[T];
|
|
27
|
+
type: T;
|
|
28
|
+
error?: undefined;
|
|
29
|
+
};
|
|
30
|
+
type WalletContext = ({
|
|
31
|
+
status: "not-loaded" | "in-progress";
|
|
32
|
+
wallet?: undefined;
|
|
33
|
+
type?: undefined;
|
|
34
|
+
error?: undefined;
|
|
35
|
+
} & WalletContextFunctions) | ({
|
|
36
|
+
status: "loading-error";
|
|
37
|
+
wallet?: undefined;
|
|
38
|
+
type?: undefined;
|
|
39
|
+
error: string;
|
|
40
|
+
} & WalletContextFunctions) | (LoadedWalletState<"evm-smart-wallet"> & WalletContextFunctions) | (LoadedWalletState<"solana-smart-wallet"> & WalletContextFunctions);
|
|
41
|
+
declare const WalletContext: React.Context<WalletContext>;
|
|
42
|
+
declare function CrossmintWalletProvider({ children, showPasskeyHelpers, appearance, }: {
|
|
25
43
|
children: ReactNode;
|
|
26
|
-
defaultChain: EVMSmartWalletChain;
|
|
27
44
|
showPasskeyHelpers?: boolean;
|
|
28
45
|
appearance?: UIConfig;
|
|
29
46
|
}): react_jsx_runtime.JSX.Element;
|
|
30
47
|
|
|
31
|
-
export { CrossmintWalletProvider,
|
|
48
|
+
export { CrossmintWalletProvider, WalletContext };
|