@crossmint/client-sdk-react-ui 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +111 -15
- package/dist/index.d.ts +111 -15
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-2GKCAJHH.cjs +0 -1
- package/dist/chunk-2POV64LQ.js +0 -1
- package/dist/chunk-2WSEHVNP.cjs +0 -1
- package/dist/chunk-3JU4ZK3P.cjs +0 -1
- package/dist/chunk-3KOG25LO.js +0 -1
- package/dist/chunk-3SOJNFPL.js +0 -1
- package/dist/chunk-4IHRWQWT.js +0 -1
- package/dist/chunk-4JRNSO77.js +0 -1
- package/dist/chunk-4P7W56CY.cjs +0 -1
- package/dist/chunk-5IFQJPBE.cjs +0 -1
- package/dist/chunk-72P3JMXX.js +0 -1
- package/dist/chunk-77PBG2JJ.js +0 -1
- package/dist/chunk-7LDD5W53.cjs +0 -1
- package/dist/chunk-A4BJYIF5.js +0 -1
- package/dist/chunk-AC4SM3GW.cjs +0 -1
- package/dist/chunk-AZYHTJE6.cjs +0 -1
- package/dist/chunk-B2XYCMBI.js +0 -1
- package/dist/chunk-BOD2OKYA.js +0 -1
- package/dist/chunk-BX5T4LI2.cjs +0 -1
- package/dist/chunk-DGZQUCSD.js +0 -1
- package/dist/chunk-EUXGP4IN.cjs +0 -1
- package/dist/chunk-EVADF7QA.js +0 -1
- package/dist/chunk-IAJBYU5C.js +0 -1
- package/dist/chunk-IMV35JZB.cjs +0 -1
- package/dist/chunk-JDYEU555.cjs +0 -1
- package/dist/chunk-JGM3G5E2.js +0 -1
- package/dist/chunk-KKDAGPHA.js +0 -1
- package/dist/chunk-LHTD23W4.js +0 -1
- package/dist/chunk-LZ5XEFKY.cjs +0 -1
- package/dist/chunk-MAAWYMXE.cjs +0 -1
- package/dist/chunk-N3HOGZN4.js +0 -0
- package/dist/chunk-NBJIJZGO.js +0 -1
- package/dist/chunk-NFLGT52C.cjs +0 -1
- package/dist/chunk-NZQIZ4ZY.cjs +0 -1
- package/dist/chunk-O5J2ZIJ6.cjs +0 -1
- package/dist/chunk-OOLXYAO7.js +0 -1
- package/dist/chunk-OPV6W7NY.js +0 -1
- package/dist/chunk-ORB6HDGX.cjs +0 -1
- package/dist/chunk-P4TABCC7.cjs +0 -1
- package/dist/chunk-PHNKWD7H.cjs +0 -1
- package/dist/chunk-PXDN3KFO.js +0 -1
- package/dist/chunk-QASKWI5Y.js +0 -1
- package/dist/chunk-QYQERFYL.cjs +0 -1
- package/dist/chunk-RJGOALQ6.cjs +0 -1
- package/dist/chunk-RYQRCUKB.js +0 -1
- package/dist/chunk-U6FTIAJO.js +0 -1
- package/dist/chunk-VGTN2OW5.js +0 -1
- package/dist/chunk-VI6TW7JT.cjs +0 -1
- package/dist/chunk-VL5XDIXZ.js +0 -1
- package/dist/chunk-VWBAHXIO.cjs +0 -1
- package/dist/chunk-W4UPIFFS.cjs +0 -1
- package/dist/chunk-W7CLE3ZW.cjs +0 -1
- package/dist/chunk-WABJHG6B.cjs +0 -1
- package/dist/chunk-WDT4N453.js +0 -1
- package/dist/chunk-X5BBXO27.cjs +0 -1
- package/dist/chunk-XJUALSXH.cjs +0 -1
- package/dist/chunk-YIKXFG7V.js +0 -1
- package/dist/chunk-YLAJFXWZ.js +0 -0
- package/dist/chunk-ZNIJXDW4.cjs +0 -1
- package/dist/chunk-ZUZEZZX7.js +0 -1
- package/dist/components/CrossmintNFTCollectionView.cjs +0 -1
- package/dist/components/CrossmintNFTCollectionView.d.cts +0 -6
- package/dist/components/CrossmintNFTCollectionView.d.ts +0 -6
- package/dist/components/CrossmintNFTCollectionView.js +0 -1
- package/dist/components/CrossmintNFTDetail.cjs +0 -1
- package/dist/components/CrossmintNFTDetail.d.cts +0 -6
- package/dist/components/CrossmintNFTDetail.d.ts +0 -6
- package/dist/components/CrossmintNFTDetail.js +0 -1
- package/dist/components/auth/AuthModal.cjs +0 -1
- package/dist/components/auth/AuthModal.d.cts +0 -18
- package/dist/components/auth/AuthModal.d.ts +0 -18
- package/dist/components/auth/AuthModal.js +0 -1
- package/dist/components/auth/PasskeyPrompt.cjs +0 -1
- package/dist/components/auth/PasskeyPrompt.d.cts +0 -15
- package/dist/components/auth/PasskeyPrompt.d.ts +0 -15
- package/dist/components/auth/PasskeyPrompt.js +0 -1
- package/dist/components/common/PoweredByCrossmint.cjs +0 -1
- package/dist/components/common/PoweredByCrossmint.d.cts +0 -7
- package/dist/components/common/PoweredByCrossmint.d.ts +0 -7
- package/dist/components/common/PoweredByCrossmint.js +0 -1
- package/dist/components/embed/EmbeddedCheckoutIFrame.cjs +0 -1
- package/dist/components/embed/EmbeddedCheckoutIFrame.d.cts +0 -9
- package/dist/components/embed/EmbeddedCheckoutIFrame.d.ts +0 -9
- package/dist/components/embed/EmbeddedCheckoutIFrame.js +0 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.cjs +0 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.d.cts +0 -6
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.d.ts +0 -6
- package/dist/components/embed/crypto/CryptoEmbeddedCheckout.js +0 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.cjs +0 -1
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.d.cts +0 -6
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.d.ts +0 -6
- package/dist/components/embed/crypto/CryptoEmbeddedCheckoutIFrame.js +0 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.cjs +0 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.d.cts +0 -6
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.d.ts +0 -6
- package/dist/components/embed/fiat/FiatEmbeddedCheckout.js +0 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.cjs +0 -1
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.d.cts +0 -6
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.d.ts +0 -6
- package/dist/components/embed/fiat/FiatEmbeddedCheckoutIFrame.js +0 -1
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.cjs +0 -1
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.d.cts +0 -6
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.d.ts +0 -6
- package/dist/components/embed/fiat/FiatPaymentElement_OLD.js +0 -1
- package/dist/components/embed/index.cjs +0 -1
- package/dist/components/embed/index.d.cts +0 -6
- package/dist/components/embed/index.d.ts +0 -6
- package/dist/components/embed/index.js +0 -1
- package/dist/components/hosted/CrossmintPayButton.cjs +0 -1
- package/dist/components/hosted/CrossmintPayButton.d.cts +0 -11
- package/dist/components/hosted/CrossmintPayButton.d.ts +0 -11
- package/dist/components/hosted/CrossmintPayButton.js +0 -1
- package/dist/components/hosted/index.cjs +0 -1
- package/dist/components/hosted/index.d.cts +0 -4
- package/dist/components/hosted/index.d.ts +0 -4
- package/dist/components/hosted/index.js +0 -1
- package/dist/components/hosted/styles.cjs +0 -1
- package/dist/components/hosted/styles.d.cts +0 -11
- package/dist/components/hosted/styles.d.ts +0 -11
- package/dist/components/hosted/styles.js +0 -1
- package/dist/components/index.cjs +0 -1
- package/dist/components/index.d.cts +0 -8
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.js +0 -1
- package/dist/consts/version.cjs +0 -1
- package/dist/consts/version.d.cts +0 -3
- package/dist/consts/version.d.ts +0 -3
- package/dist/consts/version.js +0 -1
- package/dist/hooks/index.cjs +0 -1
- package/dist/hooks/index.d.cts +0 -11
- package/dist/hooks/index.d.ts +0 -11
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/useAuth.cjs +0 -1
- package/dist/hooks/useAuth.d.cts +0 -13
- package/dist/hooks/useAuth.d.ts +0 -13
- package/dist/hooks/useAuth.js +0 -1
- package/dist/hooks/useCrossmint.cjs +0 -1
- package/dist/hooks/useCrossmint.d.cts +0 -15
- package/dist/hooks/useCrossmint.d.ts +0 -15
- package/dist/hooks/useCrossmint.js +0 -1
- package/dist/hooks/useDeepEffect.cjs +0 -1
- package/dist/hooks/useDeepEffect.d.cts +0 -5
- package/dist/hooks/useDeepEffect.d.ts +0 -5
- package/dist/hooks/useDeepEffect.js +0 -1
- package/dist/hooks/useEnvironment.cjs +0 -1
- package/dist/hooks/useEnvironment.d.cts +0 -5
- package/dist/hooks/useEnvironment.d.ts +0 -5
- package/dist/hooks/useEnvironment.js +0 -1
- package/dist/hooks/useRefreshToken.cjs +0 -1
- package/dist/hooks/useRefreshToken.d.cts +0 -11
- package/dist/hooks/useRefreshToken.d.ts +0 -11
- package/dist/hooks/useRefreshToken.js +0 -1
- package/dist/hooks/useWallet.cjs +0 -1
- package/dist/hooks/useWallet.d.cts +0 -18
- package/dist/hooks/useWallet.d.ts +0 -18
- package/dist/hooks/useWallet.js +0 -1
- package/dist/icons/fingerprint.cjs +0 -1
- package/dist/icons/fingerprint.d.cts +0 -5
- package/dist/icons/fingerprint.d.ts +0 -5
- package/dist/icons/fingerprint.js +0 -1
- package/dist/icons/passkey.cjs +0 -1
- package/dist/icons/passkey.d.cts +0 -5
- package/dist/icons/passkey.d.ts +0 -5
- package/dist/icons/passkey.js +0 -1
- package/dist/icons/passkeyPromptLogo.cjs +0 -1
- package/dist/icons/passkeyPromptLogo.d.cts +0 -8
- package/dist/icons/passkeyPromptLogo.d.ts +0 -8
- package/dist/icons/passkeyPromptLogo.js +0 -1
- package/dist/icons/poweredByLeaf.cjs +0 -1
- package/dist/icons/poweredByLeaf.d.cts +0 -8
- package/dist/icons/poweredByLeaf.d.ts +0 -8
- package/dist/icons/poweredByLeaf.js +0 -1
- package/dist/icons/x.cjs +0 -1
- package/dist/icons/x.d.cts +0 -7
- package/dist/icons/x.d.ts +0 -7
- package/dist/icons/x.js +0 -1
- package/dist/providers/CrossmintAuthProvider.cjs +0 -1
- package/dist/providers/CrossmintAuthProvider.d.cts +0 -34
- package/dist/providers/CrossmintAuthProvider.d.ts +0 -34
- package/dist/providers/CrossmintAuthProvider.js +0 -1
- package/dist/providers/CrossmintWalletProvider.cjs +0 -1
- package/dist/providers/CrossmintWalletProvider.d.cts +0 -30
- package/dist/providers/CrossmintWalletProvider.d.ts +0 -30
- package/dist/providers/CrossmintWalletProvider.js +0 -1
- package/dist/providers/index.cjs +0 -1
- package/dist/providers/index.d.cts +0 -7
- package/dist/providers/index.d.ts +0 -7
- package/dist/providers/index.js +0 -1
- package/dist/testUtils.cjs +0 -1
- package/dist/testUtils.d.cts +0 -4
- package/dist/testUtils.d.ts +0 -4
- package/dist/testUtils.js +0 -1
- package/dist/twind.config.cjs +0 -1
- package/dist/twind.config.d.cts +0 -9
- package/dist/twind.config.d.ts +0 -9
- package/dist/twind.config.js +0 -1
- package/dist/utils/authCookies.cjs +0 -1
- package/dist/utils/authCookies.d.cts +0 -7
- package/dist/utils/authCookies.d.ts +0 -7
- package/dist/utils/authCookies.js +0 -1
- package/dist/utils/classNames.cjs +0 -1
- package/dist/utils/classNames.d.cts +0 -11
- package/dist/utils/classNames.d.ts +0 -11
- package/dist/utils/classNames.js +0 -1
package/dist/icons/passkey.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-77PBG2JJ.js";import"../chunk-PXDN3KFO.js";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVWBAHXIOcjs = require('../chunk-VWBAHXIO.cjs');require('../chunk-2WSEHVNP.cjs');exports.default = _chunkVWBAHXIOcjs.a;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
3
|
-
|
|
4
|
-
declare function PasskeyPromptLogo({ appearance }: {
|
|
5
|
-
appearance?: UIConfig;
|
|
6
|
-
}): react_jsx_runtime.JSX.Element;
|
|
7
|
-
|
|
8
|
-
export { PasskeyPromptLogo as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
3
|
-
|
|
4
|
-
declare function PasskeyPromptLogo({ appearance }: {
|
|
5
|
-
appearance?: UIConfig;
|
|
6
|
-
}): react_jsx_runtime.JSX.Element;
|
|
7
|
-
|
|
8
|
-
export { PasskeyPromptLogo as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-EVADF7QA.js";import"../chunk-PXDN3KFO.js";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAZYHTJE6cjs = require('../chunk-AZYHTJE6.cjs');require('../chunk-2WSEHVNP.cjs');exports.PoweredByLeaf = _chunkAZYHTJE6cjs.a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-WDT4N453.js";import"../chunk-PXDN3KFO.js";export{a as PoweredByLeaf};
|
package/dist/icons/x.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBX5T4LI2cjs = require('../chunk-BX5T4LI2.cjs');require('../chunk-2WSEHVNP.cjs');exports.default = _chunkBX5T4LI2cjs.a;
|
package/dist/icons/x.d.cts
DELETED
package/dist/icons/x.d.ts
DELETED
package/dist/icons/x.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-4JRNSO77.js";import"../chunk-PXDN3KFO.js";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJUALSXHcjs = require('../chunk-XJUALSXH.cjs');require('../chunk-ZNIJXDW4.cjs');require('../chunk-MAAWYMXE.cjs');require('../chunk-P4TABCC7.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-AZYHTJE6.cjs');require('../chunk-BX5T4LI2.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-RJGOALQ6.cjs');require('../chunk-PHNKWD7H.cjs');require('../chunk-3JU4ZK3P.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-2WSEHVNP.cjs');exports.AuthContext = _chunkXJUALSXHcjs.d; exports.CrossmintAuthProvider = _chunkXJUALSXHcjs.e;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { EVMSmartWalletChain } from '@crossmint/client-sdk-smart-wallet';
|
|
5
|
-
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
-
import { SDKExternalUser } from '@crossmint/common-sdk-auth';
|
|
7
|
-
|
|
8
|
-
type CrossmintAuthWalletConfig = {
|
|
9
|
-
defaultChain: EVMSmartWalletChain;
|
|
10
|
-
createOnLogin: "all-users" | "off";
|
|
11
|
-
type: "evm-smart-wallet";
|
|
12
|
-
showWalletModals?: boolean;
|
|
13
|
-
};
|
|
14
|
-
type LoginMethod = "email" | "google" | "farcaster";
|
|
15
|
-
type CrossmintAuthProviderProps = {
|
|
16
|
-
embeddedWallets?: CrossmintAuthWalletConfig;
|
|
17
|
-
appearance?: UIConfig;
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
loginMethods?: LoginMethod[];
|
|
20
|
-
};
|
|
21
|
-
type AuthStatus = "logged-in" | "logged-out" | "in-progress";
|
|
22
|
-
type AuthContextType = {
|
|
23
|
-
login: () => void;
|
|
24
|
-
logout: () => void;
|
|
25
|
-
jwt?: string;
|
|
26
|
-
refreshToken?: string;
|
|
27
|
-
user?: SDKExternalUser;
|
|
28
|
-
status: AuthStatus;
|
|
29
|
-
getUser: () => void;
|
|
30
|
-
};
|
|
31
|
-
declare const AuthContext: react.Context<AuthContextType>;
|
|
32
|
-
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance, loginMethods, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
33
|
-
|
|
34
|
-
export { AuthContext, CrossmintAuthProvider, type CrossmintAuthProviderProps, type CrossmintAuthWalletConfig, type LoginMethod };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { EVMSmartWalletChain } from '@crossmint/client-sdk-smart-wallet';
|
|
5
|
-
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
-
import { SDKExternalUser } from '@crossmint/common-sdk-auth';
|
|
7
|
-
|
|
8
|
-
type CrossmintAuthWalletConfig = {
|
|
9
|
-
defaultChain: EVMSmartWalletChain;
|
|
10
|
-
createOnLogin: "all-users" | "off";
|
|
11
|
-
type: "evm-smart-wallet";
|
|
12
|
-
showWalletModals?: boolean;
|
|
13
|
-
};
|
|
14
|
-
type LoginMethod = "email" | "google" | "farcaster";
|
|
15
|
-
type CrossmintAuthProviderProps = {
|
|
16
|
-
embeddedWallets?: CrossmintAuthWalletConfig;
|
|
17
|
-
appearance?: UIConfig;
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
loginMethods?: LoginMethod[];
|
|
20
|
-
};
|
|
21
|
-
type AuthStatus = "logged-in" | "logged-out" | "in-progress";
|
|
22
|
-
type AuthContextType = {
|
|
23
|
-
login: () => void;
|
|
24
|
-
logout: () => void;
|
|
25
|
-
jwt?: string;
|
|
26
|
-
refreshToken?: string;
|
|
27
|
-
user?: SDKExternalUser;
|
|
28
|
-
status: AuthStatus;
|
|
29
|
-
getUser: () => void;
|
|
30
|
-
};
|
|
31
|
-
declare const AuthContext: react.Context<AuthContextType>;
|
|
32
|
-
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance, loginMethods, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
33
|
-
|
|
34
|
-
export { AuthContext, CrossmintAuthProvider, type CrossmintAuthProviderProps, type CrossmintAuthWalletConfig, type LoginMethod };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b}from"../chunk-BOD2OKYA.js";import"../chunk-3SOJNFPL.js";import"../chunk-OPV6W7NY.js";import"../chunk-3KOG25LO.js";import"../chunk-EVADF7QA.js";import"../chunk-WDT4N453.js";import"../chunk-4JRNSO77.js";import"../chunk-NBJIJZGO.js";import"../chunk-U6FTIAJO.js";import"../chunk-LHTD23W4.js";import"../chunk-VGTN2OW5.js";import"../chunk-OOLXYAO7.js";import"../chunk-77PBG2JJ.js";import"../chunk-PXDN3KFO.js";export{a as AuthContext,b as CrossmintAuthProvider};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJUALSXHcjs = require('../chunk-XJUALSXH.cjs');require('../chunk-ZNIJXDW4.cjs');require('../chunk-MAAWYMXE.cjs');require('../chunk-P4TABCC7.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-AZYHTJE6.cjs');require('../chunk-BX5T4LI2.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-RJGOALQ6.cjs');require('../chunk-PHNKWD7H.cjs');require('../chunk-3JU4ZK3P.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-2WSEHVNP.cjs');exports.CrossmintWalletProvider = _chunkXJUALSXHcjs.b; exports.WalletContext = _chunkXJUALSXHcjs.a;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { EVMSmartWallet, SmartWalletError, WalletParams, EVMSmartWalletChain } from '@crossmint/client-sdk-smart-wallet';
|
|
5
|
-
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
-
|
|
7
|
-
type WalletStatus = "not-loaded" | "in-progress" | "loaded" | "loading-error";
|
|
8
|
-
type WalletContext = {
|
|
9
|
-
status: WalletStatus;
|
|
10
|
-
wallet?: EVMSmartWallet;
|
|
11
|
-
error?: SmartWalletError;
|
|
12
|
-
getOrCreateWallet: (config?: Pick<WalletConfig, "signer" | "type">) => Promise<{
|
|
13
|
-
startedCreation: boolean;
|
|
14
|
-
reason?: string;
|
|
15
|
-
}>;
|
|
16
|
-
clearWallet: () => void;
|
|
17
|
-
};
|
|
18
|
-
declare const WalletContext: react.Context<WalletContext>;
|
|
19
|
-
type WalletConfig = WalletParams & {
|
|
20
|
-
type: "evm-smart-wallet";
|
|
21
|
-
};
|
|
22
|
-
declare function CrossmintWalletProvider({ children, defaultChain, showWalletModals, // enabled by default
|
|
23
|
-
appearance, }: {
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
defaultChain: EVMSmartWalletChain;
|
|
26
|
-
showWalletModals?: boolean;
|
|
27
|
-
appearance?: UIConfig;
|
|
28
|
-
}): react_jsx_runtime.JSX.Element;
|
|
29
|
-
|
|
30
|
-
export { CrossmintWalletProvider, type WalletConfig, WalletContext };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { EVMSmartWallet, SmartWalletError, WalletParams, EVMSmartWalletChain } from '@crossmint/client-sdk-smart-wallet';
|
|
5
|
-
import { UIConfig } from '@crossmint/common-sdk-base';
|
|
6
|
-
|
|
7
|
-
type WalletStatus = "not-loaded" | "in-progress" | "loaded" | "loading-error";
|
|
8
|
-
type WalletContext = {
|
|
9
|
-
status: WalletStatus;
|
|
10
|
-
wallet?: EVMSmartWallet;
|
|
11
|
-
error?: SmartWalletError;
|
|
12
|
-
getOrCreateWallet: (config?: Pick<WalletConfig, "signer" | "type">) => Promise<{
|
|
13
|
-
startedCreation: boolean;
|
|
14
|
-
reason?: string;
|
|
15
|
-
}>;
|
|
16
|
-
clearWallet: () => void;
|
|
17
|
-
};
|
|
18
|
-
declare const WalletContext: react.Context<WalletContext>;
|
|
19
|
-
type WalletConfig = WalletParams & {
|
|
20
|
-
type: "evm-smart-wallet";
|
|
21
|
-
};
|
|
22
|
-
declare function CrossmintWalletProvider({ children, defaultChain, showWalletModals, // enabled by default
|
|
23
|
-
appearance, }: {
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
defaultChain: EVMSmartWalletChain;
|
|
26
|
-
showWalletModals?: boolean;
|
|
27
|
-
appearance?: UIConfig;
|
|
28
|
-
}): react_jsx_runtime.JSX.Element;
|
|
29
|
-
|
|
30
|
-
export { CrossmintWalletProvider, type WalletConfig, WalletContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-BOD2OKYA.js";import"../chunk-3SOJNFPL.js";import"../chunk-OPV6W7NY.js";import"../chunk-3KOG25LO.js";import"../chunk-EVADF7QA.js";import"../chunk-WDT4N453.js";import"../chunk-4JRNSO77.js";import"../chunk-NBJIJZGO.js";import"../chunk-U6FTIAJO.js";import"../chunk-LHTD23W4.js";import"../chunk-VGTN2OW5.js";import"../chunk-OOLXYAO7.js";import"../chunk-77PBG2JJ.js";import"../chunk-PXDN3KFO.js";export{b as CrossmintWalletProvider,a as WalletContext};
|
package/dist/providers/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJUALSXHcjs = require('../chunk-XJUALSXH.cjs');require('../chunk-ZNIJXDW4.cjs');require('../chunk-MAAWYMXE.cjs');require('../chunk-P4TABCC7.cjs');require('../chunk-VWBAHXIO.cjs');require('../chunk-AZYHTJE6.cjs');require('../chunk-BX5T4LI2.cjs');require('../chunk-WABJHG6B.cjs');require('../chunk-RJGOALQ6.cjs');require('../chunk-PHNKWD7H.cjs');require('../chunk-3JU4ZK3P.cjs');require('../chunk-QYQERFYL.cjs');require('../chunk-VI6TW7JT.cjs');require('../chunk-2WSEHVNP.cjs');exports.AuthContext = _chunkXJUALSXHcjs.d; exports.CrossmintAuthProvider = _chunkXJUALSXHcjs.e; exports.CrossmintWalletProvider = _chunkXJUALSXHcjs.b; exports.WalletContext = _chunkXJUALSXHcjs.a;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { AuthContext, CrossmintAuthProvider, CrossmintAuthProviderProps, CrossmintAuthWalletConfig, LoginMethod } from './CrossmintAuthProvider.cjs';
|
|
2
|
-
export { CrossmintWalletProvider, WalletConfig, WalletContext } from './CrossmintWalletProvider.cjs';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@crossmint/client-sdk-smart-wallet';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '@crossmint/common-sdk-auth';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { AuthContext, CrossmintAuthProvider, CrossmintAuthProviderProps, CrossmintAuthWalletConfig, LoginMethod } from './CrossmintAuthProvider.js';
|
|
2
|
-
export { CrossmintWalletProvider, WalletConfig, WalletContext } from './CrossmintWalletProvider.js';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@crossmint/client-sdk-smart-wallet';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '@crossmint/common-sdk-auth';
|
package/dist/providers/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,d as c,e as d}from"../chunk-BOD2OKYA.js";import"../chunk-3SOJNFPL.js";import"../chunk-OPV6W7NY.js";import"../chunk-3KOG25LO.js";import"../chunk-EVADF7QA.js";import"../chunk-WDT4N453.js";import"../chunk-4JRNSO77.js";import"../chunk-NBJIJZGO.js";import"../chunk-U6FTIAJO.js";import"../chunk-LHTD23W4.js";import"../chunk-VGTN2OW5.js";import"../chunk-OOLXYAO7.js";import"../chunk-77PBG2JJ.js";import"../chunk-PXDN3KFO.js";export{c as AuthContext,d as CrossmintAuthProvider,b as CrossmintWalletProvider,a as WalletContext};
|
package/dist/testUtils.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var a="sk_development_12341234",i= exports.waitForSettledState =e=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){yield new Promise(o=>setTimeout(o,20)),e()});exports.MOCK_API_KEY = a; exports.waitForSettledState = i;
|
package/dist/testUtils.d.cts
DELETED
package/dist/testUtils.d.ts
DELETED
package/dist/testUtils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as t}from"./chunk-PXDN3KFO.js";var i="sk_development_12341234",n=e=>t(void 0,null,function*(){yield new Promise(o=>setTimeout(o,20)),e()});export{i as MOCK_API_KEY,n as waitForSettledState};
|
package/dist/twind.config.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkORB6HDGXcjs = require('./chunk-ORB6HDGX.cjs');require('./chunk-2WSEHVNP.cjs');exports.default = _chunkORB6HDGXcjs.a;
|
package/dist/twind.config.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as _twind_preset_tailwind from '@twind/preset-tailwind';
|
|
2
|
-
import * as _twind_core from '@twind/core';
|
|
3
|
-
|
|
4
|
-
declare const _default: _twind_core.TwindConfig<_twind_core.BaseTheme & _twind_preset_tailwind.TailwindTheme & {
|
|
5
|
-
screens: Record<string, _twind_core.MaybeArray<_twind_core.ScreenValue>>;
|
|
6
|
-
colors: Record<string, _twind_core.MaybeColorValue>;
|
|
7
|
-
}>;
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/twind.config.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as _twind_preset_tailwind from '@twind/preset-tailwind';
|
|
2
|
-
import * as _twind_core from '@twind/core';
|
|
3
|
-
|
|
4
|
-
declare const _default: _twind_core.TwindConfig<_twind_core.BaseTheme & _twind_preset_tailwind.TailwindTheme & {
|
|
5
|
-
screens: Record<string, _twind_core.MaybeArray<_twind_core.ScreenValue>>;
|
|
6
|
-
colors: Record<string, _twind_core.MaybeColorValue>;
|
|
7
|
-
}>;
|
|
8
|
-
|
|
9
|
-
export { _default as default };
|
package/dist/twind.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-YIKXFG7V.js";import"./chunk-PXDN3KFO.js";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3JU4ZK3Pcjs = require('../chunk-3JU4ZK3P.cjs');require('../chunk-2WSEHVNP.cjs');exports.REFRESH_TOKEN_PREFIX = _chunk3JU4ZK3Pcjs.b; exports.SESSION_PREFIX = _chunk3JU4ZK3Pcjs.a; exports.deleteCookie = _chunk3JU4ZK3Pcjs.e; exports.getCookie = _chunk3JU4ZK3Pcjs.c; exports.setCookie = _chunk3JU4ZK3Pcjs.d;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const SESSION_PREFIX = "crossmint-jwt";
|
|
2
|
-
declare const REFRESH_TOKEN_PREFIX = "crossmint-refresh-token";
|
|
3
|
-
declare function getCookie(name: string): string | undefined;
|
|
4
|
-
declare function setCookie(name: string, value: string, expiresAt?: string): void;
|
|
5
|
-
declare function deleteCookie(name: string): void;
|
|
6
|
-
|
|
7
|
-
export { REFRESH_TOKEN_PREFIX, SESSION_PREFIX, deleteCookie, getCookie, setCookie };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const SESSION_PREFIX = "crossmint-jwt";
|
|
2
|
-
declare const REFRESH_TOKEN_PREFIX = "crossmint-refresh-token";
|
|
3
|
-
declare function getCookie(name: string): string | undefined;
|
|
4
|
-
declare function setCookie(name: string, value: string, expiresAt?: string): void;
|
|
5
|
-
declare function deleteCookie(name: string): void;
|
|
6
|
-
|
|
7
|
-
export { REFRESH_TOKEN_PREFIX, SESSION_PREFIX, deleteCookie, getCookie, setCookie };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-VGTN2OW5.js";import"../chunk-PXDN3KFO.js";export{b as REFRESH_TOKEN_PREFIX,a as SESSION_PREFIX,e as deleteCookie,c as getCookie,d as setCookie};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWABJHG6Bcjs = require('../chunk-WABJHG6B.cjs');require('../chunk-2WSEHVNP.cjs');exports.classNames = _chunkWABJHG6Bcjs.a;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Combines multiple class names into a single string.
|
|
5
|
-
*
|
|
6
|
-
* @param inputs - The class names to combine.
|
|
7
|
-
* @returns The combined class names as a string.
|
|
8
|
-
*/
|
|
9
|
-
declare function classNames(...inputs: ClassValue[]): string;
|
|
10
|
-
|
|
11
|
-
export { classNames };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Combines multiple class names into a single string.
|
|
5
|
-
*
|
|
6
|
-
* @param inputs - The class names to combine.
|
|
7
|
-
* @returns The combined class names as a string.
|
|
8
|
-
*/
|
|
9
|
-
declare function classNames(...inputs: ClassValue[]): string;
|
|
10
|
-
|
|
11
|
-
export { classNames };
|
package/dist/utils/classNames.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-NBJIJZGO.js";import"../chunk-PXDN3KFO.js";export{a as classNames};
|