@crossmint/client-sdk-react-ui 1.19.20 → 2.0.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/README.md +1 -2
- package/dist/chunk-2W3Q2GIL.js +1 -0
- package/dist/{chunk-NKK4PGEL.js → chunk-4556GX3G.js} +1 -1
- package/dist/{chunk-BXG2KPPD.js → chunk-5HATMA5N.js} +1 -1
- package/dist/{chunk-3ETY45HE.cjs → chunk-5OALKBUX.cjs} +1 -1
- package/dist/chunk-6WZW6KZ3.cjs +1 -0
- package/dist/{chunk-N255SBZA.cjs → chunk-6Z2HROUQ.cjs} +1 -1
- package/dist/{chunk-HIVWKWQ2.cjs → chunk-A7H6M63M.cjs} +1 -1
- package/dist/{chunk-D6PUZA5Q.js → chunk-B3UY67U5.js} +1 -1
- package/dist/{chunk-A3QBMKZL.js → chunk-CKWLLRTX.js} +1 -1
- package/dist/{chunk-GASWSCIL.js → chunk-DWQPB5HZ.js} +1 -1
- package/dist/chunk-EH5XD6A5.js +1 -0
- package/dist/{chunk-NRA277KB.js → chunk-EI3KLVME.js} +1 -1
- package/dist/chunk-FIZ3VF2B.cjs +1 -0
- package/dist/{chunk-JW5JLJEM.cjs → chunk-HOW6K2BA.cjs} +1 -1
- package/dist/{chunk-ZZDPSTJL.cjs → chunk-JN2PYF4E.cjs} +1 -1
- package/dist/{chunk-4WCNDXRL.cjs → chunk-LUTNJ7UT.cjs} +1 -1
- package/dist/chunk-MKI2Q7J5.js +11 -0
- package/dist/{chunk-AXM7WDBC.cjs → chunk-OVUNO2FE.cjs} +1 -1
- package/dist/chunk-PI6HNTXR.js +1 -0
- package/dist/{chunk-X4HTLBRG.cjs → chunk-RFEZTRN2.cjs} +1 -1
- package/dist/{chunk-5ILSA4AV.cjs → chunk-THXQX2XB.cjs} +1 -1
- package/dist/{chunk-QY62GXOA.cjs → chunk-VEMJ3QZC.cjs} +1 -1
- package/dist/{chunk-N4KWBHJZ.js → chunk-VKQYDNA6.js} +1 -1
- package/dist/{chunk-D62R34F3.js → chunk-XLX43RQW.js} +2 -2
- package/dist/{chunk-7VCJBUBM.js → chunk-XUDWTWR2.js} +1 -1
- package/dist/chunk-YFSV5ASY.cjs +11 -0
- package/dist/{chunk-76GGISIW.cjs → chunk-YSLLYWYP.cjs} +1 -1
- package/dist/chunk-Z5L5LNGY.cjs +1 -0
- package/dist/{chunk-ID64FY43.js → chunk-ZWBJFN4M.js} +1 -1
- package/dist/chunk-ZZWM62WG.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/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/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/auth/methods/web3/Web3Connectors.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3Connectors.js +1 -1
- package/dist/components/common/Divider.cjs +1 -1
- package/dist/components/common/Divider.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/handleSendTransaction.cjs +1 -1
- package/dist/components/embed/v3/crypto/utils/handleSendTransaction.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/EmailOTPInput.cjs +1 -1
- package/dist/components/signers/EmailOTPInput.js +1 -1
- package/dist/components/signers/EmailSignersDialog.cjs +1 -1
- package/dist/components/signers/EmailSignersDialog.d.cts +3 -1
- package/dist/components/signers/EmailSignersDialog.d.ts +3 -1
- package/dist/components/signers/EmailSignersDialog.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 +2 -2
- package/dist/hooks/index.d.ts +2 -2
- 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/hooks/useWallet.cjs +1 -1
- package/dist/hooks/useWallet.d.cts +7 -68
- package/dist/hooks/useWallet.d.ts +7 -68
- package/dist/hooks/useWallet.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/providers/CrossmintAuthProvider.cjs +1 -1
- package/dist/providers/CrossmintAuthProvider.d.cts +2 -3
- package/dist/providers/CrossmintAuthProvider.d.ts +2 -3
- package/dist/providers/CrossmintAuthProvider.js +1 -1
- package/dist/providers/CrossmintWalletProvider.cjs +1 -1
- package/dist/providers/CrossmintWalletProvider.d.cts +27 -38
- package/dist/providers/CrossmintWalletProvider.d.ts +27 -38
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/auth/AuthFormProvider.cjs +1 -1
- package/dist/providers/auth/AuthFormProvider.d.cts +5 -6
- package/dist/providers/auth/AuthFormProvider.d.ts +5 -6
- package/dist/providers/auth/AuthFormProvider.js +1 -1
- package/dist/providers/dynamic/DynamicWalletProvider.cjs +1 -0
- package/dist/providers/dynamic/DynamicWalletProvider.d.cts +29 -0
- package/dist/providers/dynamic/DynamicWalletProvider.d.ts +29 -0
- package/dist/providers/dynamic/DynamicWalletProvider.js +1 -0
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.d.cts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/types/auth.d.cts +2 -7
- package/dist/types/auth.d.ts +2 -7
- package/dist/types/wallet.cjs +1 -1
- package/dist/types/wallet.d.cts +2 -6
- package/dist/types/wallet.d.ts +2 -6
- package/dist/types/wallet.js +1 -0
- package/dist/utils/createCrossmintApiClient.cjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/dist/utils/errorUtils.cjs +1 -1
- package/dist/utils/errorUtils.d.cts +1 -1
- package/dist/utils/errorUtils.d.ts +1 -1
- package/dist/utils/errorUtils.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-3U4DUXCZ.cjs +0 -1
- package/dist/chunk-AHO6ZTD2.cjs +0 -1
- package/dist/chunk-C22ZEFQD.js +0 -1
- package/dist/chunk-CDSQUWS7.cjs +0 -1
- package/dist/chunk-FFTKGVUN.js +0 -1
- package/dist/chunk-GARYGAY7.cjs +0 -1
- package/dist/chunk-JOMJPVZA.js +0 -1
- package/dist/chunk-LYUOGA56.cjs +0 -1
- package/dist/chunk-OF5NOVD3.js +0 -1
- package/dist/chunk-P7UQAP6A.js +0 -1
- package/dist/chunk-URI4SATB.js +0 -6
- package/dist/chunk-VGOZPJQG.cjs +0 -1
- package/dist/chunk-WJQ4ZR5O.cjs +0 -6
- package/dist/chunk-WQVJJ44F.js +0 -1
- package/dist/chunk-ZZYJ6XM2.js +0 -1
- package/dist/hooks/useDynamicConnect.cjs +0 -1
- package/dist/hooks/useDynamicConnect.d.cts +0 -10
- package/dist/hooks/useDynamicConnect.d.ts +0 -10
- package/dist/hooks/useDynamicConnect.js +0 -1
- package/dist/hooks/useSignerInvisibleIFrame.cjs +0 -1
- package/dist/hooks/useSignerInvisibleIFrame.d.cts +0 -414
- package/dist/hooks/useSignerInvisibleIFrame.d.ts +0 -414
- package/dist/hooks/useSignerInvisibleIFrame.js +0 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.cjs +0 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.d.cts +0 -11
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.d.ts +0 -11
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.js +0 -1
- package/dist/providers/signers/CrossmintSignerProvider.cjs +0 -1
- package/dist/providers/signers/CrossmintSignerProvider.d.cts +0 -26
- package/dist/providers/signers/CrossmintSignerProvider.d.ts +0 -26
- package/dist/providers/signers/CrossmintSignerProvider.js +0 -1
- package/dist/utils/mapSignerToWalletType.cjs +0 -1
- package/dist/utils/mapSignerToWalletType.d.cts +0 -3
- package/dist/utils/mapSignerToWalletType.d.ts +0 -3
- package/dist/utils/mapSignerToWalletType.js +0 -1
- /package/dist/{chunk-2PVYNZP7.cjs → chunk-IXEWRW2O.cjs} +0 -0
- /package/dist/{chunk-QVXTNSBH.js → chunk-J2QFL7IO.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -10,15 +10,15 @@ export { CrossmintCheckoutContext, CrossmintCheckoutProvider, useCrossmintChecko
|
|
|
10
10
|
export { useWallet } from './hooks/useWallet.js';
|
|
11
11
|
export { useAuth } from './hooks/useAuth.js';
|
|
12
12
|
export { AuthContext, CrossmintAuthProvider } from './providers/CrossmintAuthProvider.js';
|
|
13
|
-
export { CrossmintWalletProvider, WalletContext } from './providers/CrossmintWalletProvider.js';
|
|
13
|
+
export { CrossmintWalletProvider, WalletContext, useWalletContext } from './providers/CrossmintWalletProvider.js';
|
|
14
|
+
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
15
|
+
export { Balances, Chain, EVMWallet, Permission, SolanaWallet, Wallet } from '@crossmint/wallets-sdk';
|
|
14
16
|
export { LoginMethod } from './types/auth.js';
|
|
15
17
|
export { CrossmintEvent, CrossmintEventMap, CrossmintEvents, useCrossmintEvents } from '@crossmint/client-sdk-base';
|
|
16
|
-
export { DelegatedSigner, EVMSmartWallet, EVMSmartWalletChain, SolanaSmartWallet, WalletBalance, isValidEVMChain } from '@crossmint/wallets-sdk';
|
|
17
18
|
import 'react/jsx-runtime';
|
|
18
19
|
import '@crossmint/common-sdk-base';
|
|
19
20
|
import 'react';
|
|
20
21
|
import './types/passkey.js';
|
|
21
22
|
import 'ox';
|
|
22
|
-
import '@crossmint/client-sdk-react-base';
|
|
23
23
|
import '@crossmint/common-sdk-auth';
|
|
24
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{a as M,b as d}from"./chunk-2W3Q2GIL.js";import"./chunk-3BUVHV54.js";import"./chunk-72MMCJ2E.js";import{a as h}from"./chunk-B3UY67U5.js";import"./chunk-5HATMA5N.js";import"./chunk-5X3MPD2V.js";import"./chunk-WHFUW3W3.js";import"./chunk-NB7AJIPT.js";import{a as m}from"./chunk-DWQPB5HZ.js";import"./chunk-EA7H4AXL.js";import"./chunk-KFL42A3A.js";import{a as r}from"./chunk-XUDWTWR2.js";import"./chunk-72P3JMXX.js";import{a as e}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 u}from"./chunk-CKWLLRTX.js";import"./chunk-DGZQUCSD.js";import"./chunk-2POV64LQ.js";import{a as t}from"./chunk-EI3KLVME.js";import{a as o}from"./chunk-ZWBJFN4M.js";import{A as E,B as a,s as x,t as i,x as v,y,z as C}from"./chunk-MKI2Q7J5.js";import"./chunk-4KDASQO6.js";import"./chunk-ZZWM62WG.js";import"./chunk-JSOMGEEA.js";import"./chunk-XLX43RQW.js";import"./chunk-JSNUJJQJ.js";import"./chunk-VHNBXIOC.js";import"./chunk-TNCETEEL.js";import"./chunk-LD3MRJ3F.js";import"./chunk-BFHQZOV3.js";import"./chunk-PI6HNTXR.js";import"./chunk-UDQUVZUQ.js";import"./chunk-2VBA64WU.js";import"./chunk-EMXNIC4M.js";import"./chunk-RZG2PAKA.js";import"./chunk-NBJIJZGO.js";import"./chunk-SFDQPSSP.js";import"./chunk-77PBG2JJ.js";import"./chunk-HVZ5M3FY.js";import"./chunk-H34D6PAN.js";import"./chunk-JPJKOERH.js";import"./chunk-VWL76U5G.js";import"./chunk-UAFW3OWA.js";import"./chunk-VLDE23JX.js";import"./chunk-C3JRTLQP.js";import"./chunk-E4TBJMOO.js";import"./chunk-OOLXYAO7.js";import"./chunk-WW6GUXHG.js";import{a as n,b as f}from"./chunk-VKQYDNA6.js";import"./chunk-4556GX3G.js";import{a as s,b as p}from"./chunk-ROJ6HFVK.js";import"./chunk-UILJI3DM.js";import"./chunk-EH5XD6A5.js";import"./chunk-PXDN3KFO.js";import{CrossmintEvents as z,useCrossmintEvents as A}from"@crossmint/client-sdk-base";export{x as AuthContext,i as CrossmintAuthProvider,n as CrossmintCheckoutProvider,h as CrossmintEmbeddedCheckout,z as CrossmintEvents,m as CrossmintHostedCheckout,t as CrossmintNFTCollectionView,o as CrossmintNFTDetail,r as CrossmintPayButton_DEPRECATED,e as CrossmintPaymentElement_DEPRECATED,s as CrossmintProvider,C as CrossmintWalletProvider,M as EVMWallet,u as EmbeddedAuthForm,d as SolanaWallet,v as WalletContext,a as useAuth,p as useCrossmint,f as useCrossmintCheckout,A as useCrossmintEvents,E as useWallet,y as useWalletContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYFSV5ASYcjs = require('../chunk-YFSV5ASY.cjs');require('../chunk-PZ3KXKJD.cjs');require('../chunk-Z5L5LNGY.cjs');require('../chunk-DGY7DTSC.cjs');require('../chunk-A7H6M63M.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-AHD64NAJ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-6WZW6KZ3.cjs');require('../chunk-WMBBIP2C.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-JNLQRLIC.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-TWX7ZBKZ.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-TXOVDTYK.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-YXF74MVI.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-JN2PYF4E.cjs');require('../chunk-RFEZTRN2.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-PZUWRGVP.cjs');require('../chunk-5OALKBUX.cjs');require('../chunk-2WSEHVNP.cjs');exports.AuthContext = _chunkYFSV5ASYcjs.s; exports.CrossmintAuthProvider = _chunkYFSV5ASYcjs.t;
|
|
@@ -4,11 +4,10 @@ import { MouseEvent, ReactNode } from 'react';
|
|
|
4
4
|
import { CrossmintAuth } from '@crossmint/client-sdk-auth';
|
|
5
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
6
|
import { SDKExternalUser } from '@crossmint/common-sdk-auth';
|
|
7
|
-
import { AuthStatus,
|
|
7
|
+
import { AuthStatus, LoginMethod } from '../types/auth.cjs';
|
|
8
8
|
import '@crossmint/client-sdk-react-base';
|
|
9
9
|
|
|
10
10
|
type CrossmintAuthProviderProps = {
|
|
11
|
-
embeddedWallets?: CrossmintAuthProviderEmbeddedWallets;
|
|
12
11
|
appearance?: UIConfig;
|
|
13
12
|
termsOfServiceText?: string | ReactNode;
|
|
14
13
|
prefetchOAuthUrls?: boolean;
|
|
@@ -29,6 +28,6 @@ type AuthContextType = {
|
|
|
29
28
|
getUser: () => void;
|
|
30
29
|
};
|
|
31
30
|
declare const AuthContext: React.Context<AuthContextType>;
|
|
32
|
-
declare function CrossmintAuthProvider({
|
|
31
|
+
declare function CrossmintAuthProvider({ children, appearance, termsOfServiceText, prefetchOAuthUrls, authModalTitle, onLoginSuccess, loginMethods, refreshRoute, logoutRoute, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
33
32
|
|
|
34
33
|
export { AuthContext, CrossmintAuthProvider };
|
|
@@ -4,11 +4,10 @@ import { MouseEvent, ReactNode } from 'react';
|
|
|
4
4
|
import { CrossmintAuth } from '@crossmint/client-sdk-auth';
|
|
5
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
6
|
import { SDKExternalUser } from '@crossmint/common-sdk-auth';
|
|
7
|
-
import { AuthStatus,
|
|
7
|
+
import { AuthStatus, LoginMethod } from '../types/auth.js';
|
|
8
8
|
import '@crossmint/client-sdk-react-base';
|
|
9
9
|
|
|
10
10
|
type CrossmintAuthProviderProps = {
|
|
11
|
-
embeddedWallets?: CrossmintAuthProviderEmbeddedWallets;
|
|
12
11
|
appearance?: UIConfig;
|
|
13
12
|
termsOfServiceText?: string | ReactNode;
|
|
14
13
|
prefetchOAuthUrls?: boolean;
|
|
@@ -29,6 +28,6 @@ type AuthContextType = {
|
|
|
29
28
|
getUser: () => void;
|
|
30
29
|
};
|
|
31
30
|
declare const AuthContext: React.Context<AuthContextType>;
|
|
32
|
-
declare function CrossmintAuthProvider({
|
|
31
|
+
declare function CrossmintAuthProvider({ children, appearance, termsOfServiceText, prefetchOAuthUrls, authModalTitle, onLoginSuccess, loginMethods, refreshRoute, logoutRoute, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
33
32
|
|
|
34
33
|
export { AuthContext, CrossmintAuthProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{s as a,t as b}from"../chunk-MKI2Q7J5.js";import"../chunk-4KDASQO6.js";import"../chunk-ZZWM62WG.js";import"../chunk-JSOMGEEA.js";import"../chunk-XLX43RQW.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-LD3MRJ3F.js";import"../chunk-BFHQZOV3.js";import"../chunk-PI6HNTXR.js";import"../chunk-UDQUVZUQ.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-RZG2PAKA.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-HVZ5M3FY.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-VWL76U5G.js";import"../chunk-UAFW3OWA.js";import"../chunk-VLDE23JX.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-VKQYDNA6.js";import"../chunk-4556GX3G.js";import"../chunk-ROJ6HFVK.js";import"../chunk-UILJI3DM.js";import"../chunk-EH5XD6A5.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 _chunkYFSV5ASYcjs = require('../chunk-YFSV5ASY.cjs');require('../chunk-PZ3KXKJD.cjs');require('../chunk-Z5L5LNGY.cjs');require('../chunk-DGY7DTSC.cjs');require('../chunk-A7H6M63M.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-AHD64NAJ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-6WZW6KZ3.cjs');require('../chunk-WMBBIP2C.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-JNLQRLIC.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-TWX7ZBKZ.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-TXOVDTYK.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-YXF74MVI.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-JN2PYF4E.cjs');require('../chunk-RFEZTRN2.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-PZUWRGVP.cjs');require('../chunk-5OALKBUX.cjs');require('../chunk-2WSEHVNP.cjs');exports.CrossmintWalletProvider = _chunkYFSV5ASYcjs.z; exports.WalletContext = _chunkYFSV5ASYcjs.x; exports.useWalletContext = _chunkYFSV5ASYcjs.y;
|
|
@@ -1,54 +1,43 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { Dispatch, SetStateAction, ReactNode } from 'react';
|
|
4
|
+
import { Wallet, Chain, WalletArgsFor } from '@crossmint/wallets-sdk';
|
|
5
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
+
import { CreateOnLogin } from '@crossmint/client-sdk-react-base';
|
|
6
7
|
import { PasskeySigner } from '../types/passkey.cjs';
|
|
7
|
-
import { GetOrCreateWalletProps } from '@crossmint/client-sdk-react-base';
|
|
8
8
|
import 'ox';
|
|
9
9
|
|
|
10
10
|
type ValidPasskeyPromptType = "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error";
|
|
11
|
-
type
|
|
12
|
-
|
|
11
|
+
type ValidWalletState = {
|
|
12
|
+
status: "not-loaded";
|
|
13
|
+
} | {
|
|
14
|
+
status: "in-progress";
|
|
15
|
+
} | {
|
|
16
|
+
status: "error";
|
|
17
|
+
error: Error;
|
|
18
|
+
} | {
|
|
19
|
+
status: "loaded";
|
|
20
|
+
wallet: Wallet<Chain>;
|
|
21
|
+
};
|
|
22
|
+
type WalletContextType = {
|
|
23
|
+
walletState: ValidWalletState;
|
|
24
|
+
setWalletState: Dispatch<SetStateAction<ValidWalletState>>;
|
|
25
|
+
showPasskeyHelpers?: boolean;
|
|
26
|
+
appearance?: UIConfig;
|
|
27
|
+
createPasskeyPrompt: (type: ValidPasskeyPromptType) => () => Promise<void>;
|
|
28
|
+
getOrCreateWallet: <C extends Chain>(args: WalletArgsFor<C>) => Promise<{
|
|
13
29
|
startedCreation: boolean;
|
|
14
|
-
reason?: string;
|
|
15
30
|
}>;
|
|
16
|
-
createPasskeySigner: (
|
|
31
|
+
createPasskeySigner: () => Promise<PasskeySigner>;
|
|
17
32
|
clearWallet: () => void;
|
|
18
|
-
experimental_getOrCreateWalletWithRecoveryKey?: (args: {
|
|
19
|
-
type: "solana-smart-wallet";
|
|
20
|
-
email: string;
|
|
21
|
-
}) => Promise<void>;
|
|
22
|
-
passkeySigner?: PasskeySigner;
|
|
23
|
-
};
|
|
24
|
-
type WalletType = {
|
|
25
|
-
"evm-smart-wallet": EVMSmartWallet;
|
|
26
|
-
"solana-smart-wallet": SolanaSmartWallet;
|
|
27
|
-
};
|
|
28
|
-
type LoadedWalletState<T extends keyof WalletType> = {
|
|
29
|
-
status: "loaded";
|
|
30
|
-
wallet: WalletType[T];
|
|
31
|
-
type: T;
|
|
32
|
-
error?: undefined;
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type?: undefined;
|
|
38
|
-
error?: undefined;
|
|
39
|
-
} & WalletContextFunctions) | ({
|
|
40
|
-
status: "loading-error";
|
|
41
|
-
wallet?: undefined;
|
|
42
|
-
type?: undefined;
|
|
43
|
-
error: string;
|
|
44
|
-
} & WalletContextFunctions) | (LoadedWalletState<"evm-smart-wallet"> & WalletContextFunctions) | (LoadedWalletState<"solana-smart-wallet"> & WalletContextFunctions);
|
|
45
|
-
declare const WalletContext: React.Context<WalletContext>;
|
|
46
|
-
declare function CrossmintWalletProvider({ children, showPasskeyHelpers, appearance, experimental_enableRecoveryKeys, experimental_signersURL, }: {
|
|
34
|
+
declare const WalletContext: React.Context<WalletContextType | null>;
|
|
35
|
+
declare function useWalletContext(componentName?: string): WalletContextType;
|
|
36
|
+
declare function CrossmintWalletProvider({ children, showPasskeyHelpers, appearance, createOnLogin, }: {
|
|
47
37
|
children: ReactNode;
|
|
48
38
|
showPasskeyHelpers?: boolean;
|
|
49
39
|
appearance?: UIConfig;
|
|
50
|
-
|
|
51
|
-
experimental_signersURL?: string;
|
|
40
|
+
createOnLogin?: CreateOnLogin;
|
|
52
41
|
}): react_jsx_runtime.JSX.Element;
|
|
53
42
|
|
|
54
|
-
export { CrossmintWalletProvider, WalletContext };
|
|
43
|
+
export { CrossmintWalletProvider, WalletContext, useWalletContext };
|
|
@@ -1,54 +1,43 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { Dispatch, SetStateAction, ReactNode } from 'react';
|
|
4
|
+
import { Wallet, Chain, WalletArgsFor } from '@crossmint/wallets-sdk';
|
|
5
5
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
+
import { CreateOnLogin } from '@crossmint/client-sdk-react-base';
|
|
6
7
|
import { PasskeySigner } from '../types/passkey.js';
|
|
7
|
-
import { GetOrCreateWalletProps } from '@crossmint/client-sdk-react-base';
|
|
8
8
|
import 'ox';
|
|
9
9
|
|
|
10
10
|
type ValidPasskeyPromptType = "create-wallet" | "transaction" | "not-supported" | "create-wallet-error" | "transaction-error";
|
|
11
|
-
type
|
|
12
|
-
|
|
11
|
+
type ValidWalletState = {
|
|
12
|
+
status: "not-loaded";
|
|
13
|
+
} | {
|
|
14
|
+
status: "in-progress";
|
|
15
|
+
} | {
|
|
16
|
+
status: "error";
|
|
17
|
+
error: Error;
|
|
18
|
+
} | {
|
|
19
|
+
status: "loaded";
|
|
20
|
+
wallet: Wallet<Chain>;
|
|
21
|
+
};
|
|
22
|
+
type WalletContextType = {
|
|
23
|
+
walletState: ValidWalletState;
|
|
24
|
+
setWalletState: Dispatch<SetStateAction<ValidWalletState>>;
|
|
25
|
+
showPasskeyHelpers?: boolean;
|
|
26
|
+
appearance?: UIConfig;
|
|
27
|
+
createPasskeyPrompt: (type: ValidPasskeyPromptType) => () => Promise<void>;
|
|
28
|
+
getOrCreateWallet: <C extends Chain>(args: WalletArgsFor<C>) => Promise<{
|
|
13
29
|
startedCreation: boolean;
|
|
14
|
-
reason?: string;
|
|
15
30
|
}>;
|
|
16
|
-
createPasskeySigner: (
|
|
31
|
+
createPasskeySigner: () => Promise<PasskeySigner>;
|
|
17
32
|
clearWallet: () => void;
|
|
18
|
-
experimental_getOrCreateWalletWithRecoveryKey?: (args: {
|
|
19
|
-
type: "solana-smart-wallet";
|
|
20
|
-
email: string;
|
|
21
|
-
}) => Promise<void>;
|
|
22
|
-
passkeySigner?: PasskeySigner;
|
|
23
|
-
};
|
|
24
|
-
type WalletType = {
|
|
25
|
-
"evm-smart-wallet": EVMSmartWallet;
|
|
26
|
-
"solana-smart-wallet": SolanaSmartWallet;
|
|
27
|
-
};
|
|
28
|
-
type LoadedWalletState<T extends keyof WalletType> = {
|
|
29
|
-
status: "loaded";
|
|
30
|
-
wallet: WalletType[T];
|
|
31
|
-
type: T;
|
|
32
|
-
error?: undefined;
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type?: undefined;
|
|
38
|
-
error?: undefined;
|
|
39
|
-
} & WalletContextFunctions) | ({
|
|
40
|
-
status: "loading-error";
|
|
41
|
-
wallet?: undefined;
|
|
42
|
-
type?: undefined;
|
|
43
|
-
error: string;
|
|
44
|
-
} & WalletContextFunctions) | (LoadedWalletState<"evm-smart-wallet"> & WalletContextFunctions) | (LoadedWalletState<"solana-smart-wallet"> & WalletContextFunctions);
|
|
45
|
-
declare const WalletContext: React.Context<WalletContext>;
|
|
46
|
-
declare function CrossmintWalletProvider({ children, showPasskeyHelpers, appearance, experimental_enableRecoveryKeys, experimental_signersURL, }: {
|
|
34
|
+
declare const WalletContext: React.Context<WalletContextType | null>;
|
|
35
|
+
declare function useWalletContext(componentName?: string): WalletContextType;
|
|
36
|
+
declare function CrossmintWalletProvider({ children, showPasskeyHelpers, appearance, createOnLogin, }: {
|
|
47
37
|
children: ReactNode;
|
|
48
38
|
showPasskeyHelpers?: boolean;
|
|
49
39
|
appearance?: UIConfig;
|
|
50
|
-
|
|
51
|
-
experimental_signersURL?: string;
|
|
40
|
+
createOnLogin?: CreateOnLogin;
|
|
52
41
|
}): react_jsx_runtime.JSX.Element;
|
|
53
42
|
|
|
54
|
-
export { CrossmintWalletProvider, WalletContext };
|
|
43
|
+
export { CrossmintWalletProvider, WalletContext, useWalletContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{x as a,y as b,z as c}from"../chunk-MKI2Q7J5.js";import"../chunk-4KDASQO6.js";import"../chunk-ZZWM62WG.js";import"../chunk-JSOMGEEA.js";import"../chunk-XLX43RQW.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-LD3MRJ3F.js";import"../chunk-BFHQZOV3.js";import"../chunk-PI6HNTXR.js";import"../chunk-UDQUVZUQ.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-RZG2PAKA.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-HVZ5M3FY.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-VWL76U5G.js";import"../chunk-UAFW3OWA.js";import"../chunk-VLDE23JX.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-VKQYDNA6.js";import"../chunk-4556GX3G.js";import"../chunk-ROJ6HFVK.js";import"../chunk-UILJI3DM.js";import"../chunk-EH5XD6A5.js";import"../chunk-PXDN3KFO.js";export{c as CrossmintWalletProvider,a as WalletContext,b as useWalletContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYFSV5ASYcjs = require('../../chunk-YFSV5ASY.cjs');require('../../chunk-PZ3KXKJD.cjs');require('../../chunk-Z5L5LNGY.cjs');require('../../chunk-DGY7DTSC.cjs');require('../../chunk-A7H6M63M.cjs');require('../../chunk-BR77Q3PK.cjs');require('../../chunk-HG5ML6KX.cjs');require('../../chunk-Z2FGFHRQ.cjs');require('../../chunk-AHD64NAJ.cjs');require('../../chunk-FASRTACD.cjs');require('../../chunk-6WZW6KZ3.cjs');require('../../chunk-WMBBIP2C.cjs');require('../../chunk-2BOQSASO.cjs');require('../../chunk-HLGNSXEQ.cjs');require('../../chunk-JNLQRLIC.cjs');require('../../chunk-WABJHG6B.cjs');require('../../chunk-TM7WDKYR.cjs');require('../../chunk-VI6TW7JT.cjs');require('../../chunk-TWX7ZBKZ.cjs');require('../../chunk-FQ246XXN.cjs');require('../../chunk-ZBQCXWMD.cjs');require('../../chunk-TXOVDTYK.cjs');require('../../chunk-NRN4WNQL.cjs');require('../../chunk-YXF74MVI.cjs');require('../../chunk-I4GMMHQR.cjs');require('../../chunk-SRQAQHYK.cjs');require('../../chunk-QYQERFYL.cjs');require('../../chunk-E65EGG73.cjs');require('../../chunk-JN2PYF4E.cjs');require('../../chunk-RFEZTRN2.cjs');require('../../chunk-GPQZG7HC.cjs');require('../../chunk-PZUWRGVP.cjs');require('../../chunk-5OALKBUX.cjs');require('../../chunk-2WSEHVNP.cjs');exports.AuthFormProvider = _chunkYFSV5ASYcjs.b; exports.useAuthForm = _chunkYFSV5ASYcjs.a;
|
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { OAuthProvider } from '@crossmint/common-sdk-auth';
|
|
4
4
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
5
|
-
import { LoginMethod
|
|
6
|
-
import '@crossmint/client-sdk-react-base';
|
|
5
|
+
import { LoginMethod } from '../../types/auth.cjs';
|
|
6
|
+
import { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
7
7
|
|
|
8
8
|
type AuthStep = "initial" | "otp" | "qrCode" | "web3" | "web3/metamask" | "web3/walletconnect";
|
|
9
9
|
type OAuthUrlMap = Record<OAuthProvider, string>;
|
|
@@ -24,13 +24,12 @@ interface AuthFormContextType {
|
|
|
24
24
|
}
|
|
25
25
|
type ContextInitialStateProps = {
|
|
26
26
|
appearance?: UIConfig;
|
|
27
|
+
loginMethods: LoginMethod[];
|
|
27
28
|
termsOfServiceText?: string | ReactNode;
|
|
28
29
|
authModalTitle?: string;
|
|
29
|
-
|
|
30
|
-
defaultEmail?: string;
|
|
30
|
+
createOnLogin?: BaseCrossmintWalletProviderProps;
|
|
31
31
|
baseUrl: string;
|
|
32
|
-
|
|
33
|
-
embeddedWallets: CrossmintAuthProviderEmbeddedWallets;
|
|
32
|
+
defaultEmail?: string;
|
|
34
33
|
};
|
|
35
34
|
type AuthFormProviderProps = {
|
|
36
35
|
setDialogOpen?: (open: boolean, successfulLogin?: boolean) => void;
|
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { OAuthProvider } from '@crossmint/common-sdk-auth';
|
|
4
4
|
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
5
|
-
import { LoginMethod
|
|
6
|
-
import '@crossmint/client-sdk-react-base';
|
|
5
|
+
import { LoginMethod } from '../../types/auth.js';
|
|
6
|
+
import { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
7
7
|
|
|
8
8
|
type AuthStep = "initial" | "otp" | "qrCode" | "web3" | "web3/metamask" | "web3/walletconnect";
|
|
9
9
|
type OAuthUrlMap = Record<OAuthProvider, string>;
|
|
@@ -24,13 +24,12 @@ interface AuthFormContextType {
|
|
|
24
24
|
}
|
|
25
25
|
type ContextInitialStateProps = {
|
|
26
26
|
appearance?: UIConfig;
|
|
27
|
+
loginMethods: LoginMethod[];
|
|
27
28
|
termsOfServiceText?: string | ReactNode;
|
|
28
29
|
authModalTitle?: string;
|
|
29
|
-
|
|
30
|
-
defaultEmail?: string;
|
|
30
|
+
createOnLogin?: BaseCrossmintWalletProviderProps;
|
|
31
31
|
baseUrl: string;
|
|
32
|
-
|
|
33
|
-
embeddedWallets: CrossmintAuthProviderEmbeddedWallets;
|
|
32
|
+
defaultEmail?: string;
|
|
34
33
|
};
|
|
35
34
|
type AuthFormProviderProps = {
|
|
36
35
|
setDialogOpen?: (open: boolean, successfulLogin?: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a,b}from"../../chunk-MKI2Q7J5.js";import"../../chunk-4KDASQO6.js";import"../../chunk-ZZWM62WG.js";import"../../chunk-JSOMGEEA.js";import"../../chunk-XLX43RQW.js";import"../../chunk-JSNUJJQJ.js";import"../../chunk-VHNBXIOC.js";import"../../chunk-TNCETEEL.js";import"../../chunk-LD3MRJ3F.js";import"../../chunk-BFHQZOV3.js";import"../../chunk-PI6HNTXR.js";import"../../chunk-UDQUVZUQ.js";import"../../chunk-2VBA64WU.js";import"../../chunk-EMXNIC4M.js";import"../../chunk-RZG2PAKA.js";import"../../chunk-NBJIJZGO.js";import"../../chunk-SFDQPSSP.js";import"../../chunk-77PBG2JJ.js";import"../../chunk-HVZ5M3FY.js";import"../../chunk-H34D6PAN.js";import"../../chunk-JPJKOERH.js";import"../../chunk-VWL76U5G.js";import"../../chunk-UAFW3OWA.js";import"../../chunk-VLDE23JX.js";import"../../chunk-C3JRTLQP.js";import"../../chunk-E4TBJMOO.js";import"../../chunk-OOLXYAO7.js";import"../../chunk-WW6GUXHG.js";import"../../chunk-VKQYDNA6.js";import"../../chunk-4556GX3G.js";import"../../chunk-ROJ6HFVK.js";import"../../chunk-UILJI3DM.js";import"../../chunk-EH5XD6A5.js";import"../../chunk-PXDN3KFO.js";export{b as AuthFormProvider,a as useAuthForm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYFSV5ASYcjs = require('../../chunk-YFSV5ASY.cjs');require('../../chunk-PZ3KXKJD.cjs');require('../../chunk-Z5L5LNGY.cjs');require('../../chunk-DGY7DTSC.cjs');require('../../chunk-A7H6M63M.cjs');require('../../chunk-BR77Q3PK.cjs');require('../../chunk-HG5ML6KX.cjs');require('../../chunk-Z2FGFHRQ.cjs');require('../../chunk-AHD64NAJ.cjs');require('../../chunk-FASRTACD.cjs');require('../../chunk-6WZW6KZ3.cjs');require('../../chunk-WMBBIP2C.cjs');require('../../chunk-2BOQSASO.cjs');require('../../chunk-HLGNSXEQ.cjs');require('../../chunk-JNLQRLIC.cjs');require('../../chunk-WABJHG6B.cjs');require('../../chunk-TM7WDKYR.cjs');require('../../chunk-VI6TW7JT.cjs');require('../../chunk-TWX7ZBKZ.cjs');require('../../chunk-FQ246XXN.cjs');require('../../chunk-ZBQCXWMD.cjs');require('../../chunk-TXOVDTYK.cjs');require('../../chunk-NRN4WNQL.cjs');require('../../chunk-YXF74MVI.cjs');require('../../chunk-I4GMMHQR.cjs');require('../../chunk-SRQAQHYK.cjs');require('../../chunk-QYQERFYL.cjs');require('../../chunk-E65EGG73.cjs');require('../../chunk-JN2PYF4E.cjs');require('../../chunk-RFEZTRN2.cjs');require('../../chunk-GPQZG7HC.cjs');require('../../chunk-PZUWRGVP.cjs');require('../../chunk-5OALKBUX.cjs');require('../../chunk-2WSEHVNP.cjs');exports.DynamicWalletProvider = _chunkYFSV5ASYcjs.w; exports.useDynamicWallet = _chunkYFSV5ASYcjs.v;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { EvmExternalWalletSignerConfig, SolanaExternalWalletSignerConfig } from '@crossmint/wallets-sdk';
|
|
4
|
+
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
5
|
+
|
|
6
|
+
type DynamicWalletContextType = {
|
|
7
|
+
isDynamicWalletConnected: boolean;
|
|
8
|
+
sdkHasLoaded: boolean;
|
|
9
|
+
getAdminSigner: () => Promise<EvmExternalWalletSignerConfig | SolanaExternalWalletSignerConfig>;
|
|
10
|
+
initialize: (jwt?: string, onSdkLoaded?: (loaded: boolean) => void) => void;
|
|
11
|
+
cleanup: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare function useDynamicWallet(): DynamicWalletContextType;
|
|
14
|
+
type DynamicWalletProviderProps = {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
apiKeyEnvironment: APIKeyEnvironmentPrefix;
|
|
18
|
+
loginMethods?: string[];
|
|
19
|
+
appearance?: {
|
|
20
|
+
colors?: {
|
|
21
|
+
textPrimary?: string;
|
|
22
|
+
textSecondary?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
onSdkLoaded?: (loaded: boolean) => void;
|
|
26
|
+
};
|
|
27
|
+
declare function DynamicWalletProvider({ children, enabled, apiKeyEnvironment, loginMethods, appearance, onSdkLoaded, }: DynamicWalletProviderProps): react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
export { DynamicWalletProvider, useDynamicWallet };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { EvmExternalWalletSignerConfig, SolanaExternalWalletSignerConfig } from '@crossmint/wallets-sdk';
|
|
4
|
+
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
5
|
+
|
|
6
|
+
type DynamicWalletContextType = {
|
|
7
|
+
isDynamicWalletConnected: boolean;
|
|
8
|
+
sdkHasLoaded: boolean;
|
|
9
|
+
getAdminSigner: () => Promise<EvmExternalWalletSignerConfig | SolanaExternalWalletSignerConfig>;
|
|
10
|
+
initialize: (jwt?: string, onSdkLoaded?: (loaded: boolean) => void) => void;
|
|
11
|
+
cleanup: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare function useDynamicWallet(): DynamicWalletContextType;
|
|
14
|
+
type DynamicWalletProviderProps = {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
apiKeyEnvironment: APIKeyEnvironmentPrefix;
|
|
18
|
+
loginMethods?: string[];
|
|
19
|
+
appearance?: {
|
|
20
|
+
colors?: {
|
|
21
|
+
textPrimary?: string;
|
|
22
|
+
textSecondary?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
onSdkLoaded?: (loaded: boolean) => void;
|
|
26
|
+
};
|
|
27
|
+
declare function DynamicWalletProvider({ children, enabled, apiKeyEnvironment, loginMethods, appearance, onSdkLoaded, }: DynamicWalletProviderProps): react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
export { DynamicWalletProvider, useDynamicWallet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as a,w as b}from"../../chunk-MKI2Q7J5.js";import"../../chunk-4KDASQO6.js";import"../../chunk-ZZWM62WG.js";import"../../chunk-JSOMGEEA.js";import"../../chunk-XLX43RQW.js";import"../../chunk-JSNUJJQJ.js";import"../../chunk-VHNBXIOC.js";import"../../chunk-TNCETEEL.js";import"../../chunk-LD3MRJ3F.js";import"../../chunk-BFHQZOV3.js";import"../../chunk-PI6HNTXR.js";import"../../chunk-UDQUVZUQ.js";import"../../chunk-2VBA64WU.js";import"../../chunk-EMXNIC4M.js";import"../../chunk-RZG2PAKA.js";import"../../chunk-NBJIJZGO.js";import"../../chunk-SFDQPSSP.js";import"../../chunk-77PBG2JJ.js";import"../../chunk-HVZ5M3FY.js";import"../../chunk-H34D6PAN.js";import"../../chunk-JPJKOERH.js";import"../../chunk-VWL76U5G.js";import"../../chunk-UAFW3OWA.js";import"../../chunk-VLDE23JX.js";import"../../chunk-C3JRTLQP.js";import"../../chunk-E4TBJMOO.js";import"../../chunk-OOLXYAO7.js";import"../../chunk-WW6GUXHG.js";import"../../chunk-VKQYDNA6.js";import"../../chunk-4556GX3G.js";import"../../chunk-ROJ6HFVK.js";import"../../chunk-UILJI3DM.js";import"../../chunk-EH5XD6A5.js";import"../../chunk-PXDN3KFO.js";export{b as DynamicWalletProvider,a as useDynamicWallet};
|
package/dist/providers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYFSV5ASYcjs = require('../chunk-YFSV5ASY.cjs');require('../chunk-PZ3KXKJD.cjs');require('../chunk-Z5L5LNGY.cjs');require('../chunk-DGY7DTSC.cjs');require('../chunk-A7H6M63M.cjs');require('../chunk-BR77Q3PK.cjs');require('../chunk-HG5ML6KX.cjs');require('../chunk-Z2FGFHRQ.cjs');require('../chunk-AHD64NAJ.cjs');require('../chunk-FASRTACD.cjs');require('../chunk-6WZW6KZ3.cjs');require('../chunk-WMBBIP2C.cjs');require('../chunk-2BOQSASO.cjs');require('../chunk-HLGNSXEQ.cjs');require('../chunk-JNLQRLIC.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-TM7WDKYR.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-TWX7ZBKZ.cjs');require('../chunk-FQ246XXN.cjs');require('../chunk-ZBQCXWMD.cjs');require('../chunk-TXOVDTYK.cjs');require('../chunk-NRN4WNQL.cjs');require('../chunk-YXF74MVI.cjs');require('../chunk-I4GMMHQR.cjs');require('../chunk-SRQAQHYK.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-E65EGG73.cjs');require('../chunk-JN2PYF4E.cjs');require('../chunk-RFEZTRN2.cjs');require('../chunk-GPQZG7HC.cjs');require('../chunk-PZUWRGVP.cjs');require('../chunk-5OALKBUX.cjs');require('../chunk-2WSEHVNP.cjs');exports.AuthContext = _chunkYFSV5ASYcjs.s; exports.CrossmintAuthProvider = _chunkYFSV5ASYcjs.t; exports.CrossmintWalletProvider = _chunkYFSV5ASYcjs.z; exports.WalletContext = _chunkYFSV5ASYcjs.x; exports.useWalletContext = _chunkYFSV5ASYcjs.y;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AuthContext, CrossmintAuthProvider } from './CrossmintAuthProvider.cjs';
|
|
2
|
-
export { CrossmintWalletProvider, WalletContext } from './CrossmintWalletProvider.cjs';
|
|
2
|
+
export { CrossmintWalletProvider, WalletContext, useWalletContext } from './CrossmintWalletProvider.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@crossmint/client-sdk-auth';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AuthContext, CrossmintAuthProvider } from './CrossmintAuthProvider.js';
|
|
2
|
-
export { CrossmintWalletProvider, WalletContext } from './CrossmintWalletProvider.js';
|
|
2
|
+
export { CrossmintWalletProvider, WalletContext, useWalletContext } from './CrossmintWalletProvider.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@crossmint/client-sdk-auth';
|
package/dist/providers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{s as a,t as b,x as c,y as d,z as e}from"../chunk-MKI2Q7J5.js";import"../chunk-4KDASQO6.js";import"../chunk-ZZWM62WG.js";import"../chunk-JSOMGEEA.js";import"../chunk-XLX43RQW.js";import"../chunk-JSNUJJQJ.js";import"../chunk-VHNBXIOC.js";import"../chunk-TNCETEEL.js";import"../chunk-LD3MRJ3F.js";import"../chunk-BFHQZOV3.js";import"../chunk-PI6HNTXR.js";import"../chunk-UDQUVZUQ.js";import"../chunk-2VBA64WU.js";import"../chunk-EMXNIC4M.js";import"../chunk-RZG2PAKA.js";import"../chunk-NBJIJZGO.js";import"../chunk-SFDQPSSP.js";import"../chunk-77PBG2JJ.js";import"../chunk-HVZ5M3FY.js";import"../chunk-H34D6PAN.js";import"../chunk-JPJKOERH.js";import"../chunk-VWL76U5G.js";import"../chunk-UAFW3OWA.js";import"../chunk-VLDE23JX.js";import"../chunk-C3JRTLQP.js";import"../chunk-E4TBJMOO.js";import"../chunk-OOLXYAO7.js";import"../chunk-WW6GUXHG.js";import"../chunk-VKQYDNA6.js";import"../chunk-4556GX3G.js";import"../chunk-ROJ6HFVK.js";import"../chunk-UILJI3DM.js";import"../chunk-EH5XD6A5.js";import"../chunk-PXDN3KFO.js";export{a as AuthContext,b as CrossmintAuthProvider,e as CrossmintWalletProvider,c as WalletContext,d as useWalletContext};
|
package/dist/types/auth.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
2
2
|
|
|
3
3
|
type OtpEmailPayload = {
|
|
4
4
|
email: string;
|
|
@@ -6,10 +6,5 @@ type OtpEmailPayload = {
|
|
|
6
6
|
};
|
|
7
7
|
type LoginMethod = "email" | "google" | "farcaster" | "twitter" | "web3" | "web3:evm-only" | "web3:solana-only";
|
|
8
8
|
type AuthStatus = "logged-in" | "logged-out" | "in-progress" | "initializing";
|
|
9
|
-
type CrossmintAuthProviderEmbeddedWallets = Omit<CrossmintAuthEmbeddedWallets, "type"> & {
|
|
10
|
-
type?: CrossmintAuthEmbeddedWallets["type"];
|
|
11
|
-
experimental_enableRecoveryKeys?: boolean;
|
|
12
|
-
experimental_signersURL?: string;
|
|
13
|
-
};
|
|
14
9
|
|
|
15
|
-
export type { AuthStatus,
|
|
10
|
+
export type { AuthStatus, LoginMethod, OtpEmailPayload };
|
package/dist/types/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
2
2
|
|
|
3
3
|
type OtpEmailPayload = {
|
|
4
4
|
email: string;
|
|
@@ -6,10 +6,5 @@ type OtpEmailPayload = {
|
|
|
6
6
|
};
|
|
7
7
|
type LoginMethod = "email" | "google" | "farcaster" | "twitter" | "web3" | "web3:evm-only" | "web3:solana-only";
|
|
8
8
|
type AuthStatus = "logged-in" | "logged-out" | "in-progress" | "initializing";
|
|
9
|
-
type CrossmintAuthProviderEmbeddedWallets = Omit<CrossmintAuthEmbeddedWallets, "type"> & {
|
|
10
|
-
type?: CrossmintAuthEmbeddedWallets["type"];
|
|
11
|
-
experimental_enableRecoveryKeys?: boolean;
|
|
12
|
-
experimental_signersURL?: string;
|
|
13
|
-
};
|
|
14
9
|
|
|
15
|
-
export type { AuthStatus,
|
|
10
|
+
export type { AuthStatus, LoginMethod, OtpEmailPayload };
|
package/dist/types/wallet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFIZ3VF2Bcjs = require('../chunk-FIZ3VF2B.cjs');require('../chunk-2WSEHVNP.cjs');exports.EVMWallet = _chunkFIZ3VF2Bcjs.a; exports.SolanaWallet = _chunkFIZ3VF2Bcjs.b;
|
package/dist/types/wallet.d.cts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
type GetOrCreateWalletAdminSigner = EVMSignerInput | SolanaSignerInput | undefined;
|
|
5
|
-
|
|
6
|
-
export type { GetOrCreateWalletAdminSigner };
|
|
1
|
+
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
2
|
+
export { Balances, Chain, EVMWallet, Permission, SolanaWallet, Wallet } from '@crossmint/wallets-sdk';
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
type GetOrCreateWalletAdminSigner = EVMSignerInput | SolanaSignerInput | undefined;
|
|
5
|
-
|
|
6
|
-
export type { GetOrCreateWalletAdminSigner };
|
|
1
|
+
export { BaseCrossmintWalletProviderProps } from '@crossmint/client-sdk-react-base';
|
|
2
|
+
export { Balances, Chain, EVMWallet, Permission, SolanaWallet, Wallet } from '@crossmint/wallets-sdk';
|
package/dist/types/wallet.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-2W3Q2GIL.js";import"../chunk-PXDN3KFO.js";export{a as EVMWallet,b as SolanaWallet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRFEZTRN2cjs = require('../chunk-RFEZTRN2.cjs');require('../chunk-5OALKBUX.cjs');require('../chunk-2WSEHVNP.cjs');exports.createCrossmintApiClient = _chunkRFEZTRN2cjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-4556GX3G.js";import"../chunk-EH5XD6A5.js";import"../chunk-PXDN3KFO.js";export{a as createCrossmintApiClient};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2WSEHVNP.cjs');function s(r){return{status:"error",error:r instanceof Error?r.message:String(r)}}exports.deriveWalletErrorState = s;
|
package/dist/utils/errorUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"../chunk-PXDN3KFO.js";function n(r){return{status:"error",error:r instanceof Error?r.message:String(r)}}export{n as deriveWalletErrorState};
|