@crossmint/client-sdk-react-ui 1.10.2 → 1.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZOHRCGGI.cjs → chunk-4DICVJSP.cjs} +3 -3
- package/dist/{chunk-NX473NO2.cjs → chunk-6NPGETRZ.cjs} +3 -3
- package/dist/{chunk-MWRMO6JC.js → chunk-6PCSAKDU.js} +2 -2
- package/dist/{chunk-MWRMO6JC.js.map → chunk-6PCSAKDU.js.map} +1 -1
- package/dist/{chunk-67AB7TWG.cjs → chunk-AQELE4DZ.cjs} +3 -3
- package/dist/{chunk-SMCUFLHP.cjs → chunk-CY2PXN5Y.cjs} +3 -3
- package/dist/{chunk-FOCUIKYH.cjs → chunk-EBMORHG3.cjs} +160 -79
- package/dist/chunk-EBMORHG3.cjs.map +1 -0
- package/dist/{chunk-GN7OANUR.js → chunk-EFT2TZG5.js} +2 -2
- package/dist/{chunk-DVONA2BZ.cjs → chunk-FLWOWTHQ.cjs} +3 -3
- package/dist/{chunk-3RXUFZTR.cjs → chunk-G526QBKQ.cjs} +3 -3
- package/dist/{chunk-XJYLJQA5.js → chunk-HQG5G5PG.js} +4 -3
- package/dist/{chunk-XJYLJQA5.js.map → chunk-HQG5G5PG.js.map} +1 -1
- package/dist/{chunk-DJ32OEWG.cjs → chunk-HSLAH2PN.cjs} +4 -4
- package/dist/{chunk-DJ32OEWG.cjs.map → chunk-HSLAH2PN.cjs.map} +1 -1
- package/dist/{chunk-RTC2AZ6A.cjs → chunk-ITCHCRGX.cjs} +2 -2
- package/dist/{chunk-RTC2AZ6A.cjs.map → chunk-ITCHCRGX.cjs.map} +1 -1
- package/dist/{chunk-6TUZ5CU7.js → chunk-KCGRRFIF.js} +2 -2
- package/dist/{chunk-HVI7FCLP.js → chunk-KHZQYMF7.js} +2 -2
- package/dist/{chunk-QB4KFTCT.js → chunk-KSDNMTQD.js} +2 -2
- package/dist/{chunk-WK5RAFJ3.js → chunk-NFWMF6T7.js} +4 -4
- package/dist/chunk-NFWMF6T7.js.map +1 -0
- package/dist/{chunk-EVL7VEPX.js → chunk-NKOG6FTK.js} +2 -2
- package/dist/{chunk-ZCYU7QA6.cjs → chunk-Q3UM7UCM.cjs} +4 -4
- package/dist/chunk-Q3UM7UCM.cjs.map +1 -0
- package/dist/{chunk-YO7ZZF32.js → chunk-Q4BSNZSI.js} +2 -2
- package/dist/{chunk-COLJFFZF.cjs → chunk-RYB3MSFQ.cjs} +3 -3
- package/dist/{chunk-CUODMU27.js → chunk-T5WAVOPI.js} +236 -155
- package/dist/chunk-T5WAVOPI.js.map +1 -0
- package/dist/{chunk-MDV3M7FD.cjs → chunk-TK2JDIUN.cjs} +5 -4
- package/dist/chunk-TK2JDIUN.cjs.map +1 -0
- package/dist/{chunk-Y4UEFDMP.js → chunk-X3RNS2B7.js} +2 -2
- package/dist/{chunk-6DNBJVR5.js → chunk-ZSWTJ6E7.js} +4 -4
- package/dist/chunk-ZSWTJ6E7.js.map +1 -0
- package/dist/components/CrossmintNFTCollectionView.cjs +3 -3
- package/dist/components/CrossmintNFTCollectionView.js +2 -2
- package/dist/components/CrossmintNFTDetail.cjs +3 -3
- package/dist/components/CrossmintNFTDetail.js +2 -2
- package/dist/components/auth/AuthForm.cjs +7 -8
- package/dist/components/auth/AuthForm.js +6 -7
- package/dist/components/auth/AuthFormBackButton.cjs +28 -2
- package/dist/components/auth/AuthFormBackButton.d.cts +1 -1
- package/dist/components/auth/AuthFormBackButton.d.ts +1 -1
- package/dist/components/auth/AuthFormBackButton.js +27 -1
- package/dist/components/auth/AuthFormDialog.cjs +7 -8
- package/dist/components/auth/AuthFormDialog.js +6 -7
- package/dist/components/auth/EmbeddedAuthForm.cjs +8 -9
- package/dist/components/auth/EmbeddedAuthForm.js +7 -8
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs +7 -8
- package/dist/components/auth/methods/email/EmailAuthFlow.js +6 -7
- package/dist/components/auth/methods/email/EmailOTPInput.cjs +7 -8
- package/dist/components/auth/methods/email/EmailOTPInput.js +6 -7
- package/dist/components/auth/methods/email/EmailSignIn.cjs +7 -8
- package/dist/components/auth/methods/email/EmailSignIn.js +6 -7
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +7 -8
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +6 -7
- package/dist/components/auth/methods/google/GoogleSignIn.cjs +7 -8
- package/dist/components/auth/methods/google/GoogleSignIn.js +6 -7
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +7 -8
- package/dist/components/auth/methods/web3/Web3AuthFlow.js +6 -7
- package/dist/components/auth/methods/web3/{Web3SignIn.cjs → Web3AuthFlowButton.cjs} +8 -9
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.d.cts +5 -0
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.d.ts +5 -0
- package/dist/components/auth/methods/web3/{Web3SignIn.js → Web3AuthFlowButton.js} +9 -10
- package/dist/components/auth/methods/web3/{Web3ConnectButton.cjs → Web3Connector.cjs} +3 -3
- package/dist/components/auth/methods/web3/{Web3ConnectButton.d.cts → Web3Connector.d.cts} +2 -2
- package/dist/components/auth/methods/web3/{Web3ConnectButton.d.ts → Web3Connector.d.ts} +2 -2
- package/dist/components/auth/methods/web3/{Web3ConnectButton.js → Web3Connector.js} +4 -4
- package/dist/components/auth/methods/web3/Web3ConnectorButton.cjs +9 -0
- package/dist/components/auth/methods/web3/{Web3ProviderButton.d.cts → Web3ConnectorButton.d.cts} +2 -2
- package/dist/components/auth/methods/web3/{Web3ProviderButton.d.ts → Web3ConnectorButton.d.ts} +2 -2
- package/dist/components/auth/methods/web3/Web3ConnectorButton.js +9 -0
- package/dist/components/auth/methods/web3/{Web3AuthWrapper.cjs → Web3ConnectorContainer.cjs} +8 -9
- package/dist/components/auth/methods/web3/{Web3AuthWrapper.d.ts → Web3ConnectorContainer.d.cts} +2 -2
- package/dist/components/auth/methods/web3/{Web3AuthWrapper.d.cts → Web3ConnectorContainer.d.ts} +2 -2
- package/dist/components/auth/methods/web3/{Web3AuthWrapper.js → Web3ConnectorContainer.js} +9 -10
- package/dist/components/auth/methods/web3/Web3Connectors.cjs +7 -8
- package/dist/components/auth/methods/web3/Web3Connectors.js +6 -7
- package/dist/components/common/Divider.cjs +7 -8
- package/dist/components/common/Divider.js +6 -7
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs +9 -10
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +8 -9
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +8 -9
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +7 -8
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs +33 -8
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs.map +1 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.d.cts +5 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.d.ts +5 -1
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js +35 -10
- package/dist/components/embed/v3/crypto/CryptoWalletConnectionHandler.js.map +1 -1
- package/dist/components/embed/v3/index.cjs +9 -10
- package/dist/components/embed/v3/index.js +8 -9
- package/dist/components/hosted/CrossmintPayButton.cjs +3 -3
- package/dist/components/hosted/CrossmintPayButton.js +2 -2
- package/dist/components/hosted/index.cjs +3 -3
- package/dist/components/hosted/index.js +2 -2
- package/dist/components/index.cjs +13 -14
- package/dist/components/index.js +12 -13
- package/dist/consts/version.cjs +2 -2
- package/dist/consts/version.js +1 -1
- package/dist/hooks/index.cjs +7 -8
- package/dist/hooks/index.js +6 -7
- package/dist/hooks/useAuth.cjs +7 -8
- package/dist/hooks/useAuth.js +6 -7
- package/dist/hooks/useCrossmintAuth.cjs +7 -8
- package/dist/hooks/useCrossmintAuth.js +6 -7
- package/dist/hooks/useCrossmintCheckout.cjs +4 -4
- package/dist/hooks/useCrossmintCheckout.js +3 -3
- package/dist/hooks/useOAuthWindowListener.cjs +7 -8
- package/dist/hooks/useOAuthWindowListener.js +6 -7
- package/dist/hooks/useWallet.cjs +7 -8
- package/dist/hooks/useWallet.js +6 -7
- package/dist/index.cjs +13 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -13
- package/dist/index.js.map +1 -1
- package/dist/providers/CrossmintAuthProvider.cjs +7 -8
- package/dist/providers/CrossmintAuthProvider.js +6 -7
- package/dist/providers/CrossmintWalletProvider.cjs +7 -8
- package/dist/providers/CrossmintWalletProvider.js +6 -7
- package/dist/providers/auth/AuthFormProvider.cjs +7 -8
- package/dist/providers/auth/AuthFormProvider.d.cts +2 -0
- package/dist/providers/auth/AuthFormProvider.d.ts +2 -0
- package/dist/providers/auth/AuthFormProvider.js +6 -7
- package/dist/providers/index.cjs +7 -8
- package/dist/providers/index.js +6 -7
- package/dist/utils/createCrossmintApiClient.cjs +3 -3
- package/dist/utils/createCrossmintApiClient.js +2 -2
- package/package.json +3 -3
- package/src/components/auth/AuthForm.tsx +24 -2
- package/src/components/auth/AuthFormBackButton.tsx +9 -1
- package/src/components/auth/AuthFormDialog.tsx +1 -1
- package/src/components/auth/methods/email/EmailOTPInput.tsx +5 -3
- package/src/components/auth/methods/email/EmailSignIn.tsx +3 -2
- package/src/components/auth/methods/farcaster/FarcasterSignIn.tsx +5 -2
- package/src/components/auth/methods/web3/Web3AuthFlow.tsx +2 -2
- package/src/components/auth/methods/web3/{Web3SignIn.tsx → Web3AuthFlowButton.tsx} +6 -3
- package/src/components/auth/methods/web3/{Web3ConnectButton.tsx → Web3Connector.tsx} +1 -1
- package/src/components/auth/methods/web3/{Web3ProviderButton.tsx → Web3ConnectorButton.tsx} +1 -1
- package/src/components/auth/methods/web3/{Web3AuthWrapper.tsx → Web3ConnectorContainer.tsx} +5 -5
- package/src/components/auth/methods/web3/Web3Connectors.tsx +12 -8
- package/src/components/embed/v3/EmbeddedCheckoutV3IFrame.tsx +1 -0
- package/src/components/embed/v3/crypto/CryptoWalletConnectionHandler.tsx +35 -8
- package/src/hooks/useOAuthWindowListener.ts +13 -10
- package/src/providers/auth/AuthFormProvider.tsx +6 -0
- package/dist/chunk-6DNBJVR5.js.map +0 -1
- package/dist/chunk-CUODMU27.js.map +0 -1
- package/dist/chunk-FOCUIKYH.cjs.map +0 -1
- package/dist/chunk-GY6G3ZC2.cjs +0 -41
- package/dist/chunk-GY6G3ZC2.cjs.map +0 -1
- package/dist/chunk-MDV3M7FD.cjs.map +0 -1
- package/dist/chunk-QJ44PL7L.js +0 -41
- package/dist/chunk-QJ44PL7L.js.map +0 -1
- package/dist/chunk-WK5RAFJ3.js.map +0 -1
- package/dist/chunk-ZCYU7QA6.cjs.map +0 -1
- package/dist/components/auth/methods/web3/Web3ProviderButton.cjs +0 -9
- package/dist/components/auth/methods/web3/Web3ProviderButton.js +0 -9
- package/dist/components/auth/methods/web3/Web3SignIn.d.cts +0 -5
- package/dist/components/auth/methods/web3/Web3SignIn.d.ts +0 -5
- /package/dist/{chunk-ZOHRCGGI.cjs.map → chunk-4DICVJSP.cjs.map} +0 -0
- /package/dist/{chunk-NX473NO2.cjs.map → chunk-6NPGETRZ.cjs.map} +0 -0
- /package/dist/{chunk-67AB7TWG.cjs.map → chunk-AQELE4DZ.cjs.map} +0 -0
- /package/dist/{chunk-SMCUFLHP.cjs.map → chunk-CY2PXN5Y.cjs.map} +0 -0
- /package/dist/{chunk-GN7OANUR.js.map → chunk-EFT2TZG5.js.map} +0 -0
- /package/dist/{chunk-DVONA2BZ.cjs.map → chunk-FLWOWTHQ.cjs.map} +0 -0
- /package/dist/{chunk-3RXUFZTR.cjs.map → chunk-G526QBKQ.cjs.map} +0 -0
- /package/dist/{chunk-6TUZ5CU7.js.map → chunk-KCGRRFIF.js.map} +0 -0
- /package/dist/{chunk-HVI7FCLP.js.map → chunk-KHZQYMF7.js.map} +0 -0
- /package/dist/{chunk-QB4KFTCT.js.map → chunk-KSDNMTQD.js.map} +0 -0
- /package/dist/{chunk-EVL7VEPX.js.map → chunk-NKOG6FTK.js.map} +0 -0
- /package/dist/{chunk-YO7ZZF32.js.map → chunk-Q4BSNZSI.js.map} +0 -0
- /package/dist/{chunk-COLJFFZF.cjs.map → chunk-RYB3MSFQ.cjs.map} +0 -0
- /package/dist/{chunk-Y4UEFDMP.js.map → chunk-X3RNS2B7.js.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3AuthWrapper.cjs.map → Web3AuthFlowButton.cjs.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3AuthWrapper.js.map → Web3AuthFlowButton.js.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3ConnectButton.cjs.map → Web3Connector.cjs.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3ConnectButton.js.map → Web3Connector.js.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3ProviderButton.cjs.map → Web3ConnectorButton.cjs.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3ProviderButton.js.map → Web3ConnectorButton.js.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3SignIn.cjs.map → Web3ConnectorContainer.cjs.map} +0 -0
- /package/dist/components/auth/methods/web3/{Web3SignIn.js.map → Web3ConnectorContainer.js.map} +0 -0
package/dist/chunk-GY6G3ZC2.cjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunk5RX5WFEWcjs = require('./chunk-5RX5WFEW.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkHCW4RO2Ocjs = require('./chunk-HCW4RO2O.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunk4DAZAO6Ycjs = require('./chunk-4DAZAO6Y.cjs');
|
|
12
|
-
|
|
13
|
-
// src/components/auth/AuthFormBackButton.tsx
|
|
14
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
15
|
-
var AuthFormBackButton = (_a) => {
|
|
16
|
-
var _b = _a, {
|
|
17
|
-
className,
|
|
18
|
-
iconColor,
|
|
19
|
-
ringColor
|
|
20
|
-
} = _b, props = _chunk4DAZAO6Ycjs.__objRest.call(void 0, _b, [
|
|
21
|
-
"className",
|
|
22
|
-
"iconColor",
|
|
23
|
-
"ringColor"
|
|
24
|
-
]);
|
|
25
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26
|
-
"button",
|
|
27
|
-
_chunk4DAZAO6Ycjs.__spreadProps.call(void 0, _chunk4DAZAO6Ycjs.__spreadValues.call(void 0, {
|
|
28
|
-
className: _chunk5RX5WFEWcjs.classNames.call(void 0,
|
|
29
|
-
"absolute rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none",
|
|
30
|
-
className
|
|
31
|
-
)
|
|
32
|
-
}, props), {
|
|
33
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCW4RO2Ocjs.LeftArrowIcon, { className: "w-6 h-6", style: { color: iconColor } })
|
|
34
|
-
})
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
exports.AuthFormBackButton = AuthFormBackButton;
|
|
41
|
-
//# sourceMappingURL=chunk-GY6G3ZC2.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/auth/AuthFormBackButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAkBY;AAdL,IAAM,qBAAqB,CAAC,OAKyD;AALzD,eAC/B;AAAA;AAAA,IACA;AAAA,IACA;AAAA,EAPJ,IAImC,IAI5B,kBAJ4B,IAI5B;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACI;AAAA,IAAC;AAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,MACJ;AAAA,OACI,QALP;AAAA,MAOG,8BAAC,iBAAc,WAAU,WAAU,OAAO,EAAE,OAAO,UAAU,GAAG;AAAA;AAAA,EACpE;AAER","sourcesContent":["import type React from \"react\";\nimport { classNames } from \"../../utils/classNames\";\nimport { LeftArrowIcon } from \"@/icons/leftArrow\";\n\nexport const AuthFormBackButton = ({\n className,\n iconColor,\n ringColor,\n ...props\n}: React.HTMLAttributes<HTMLButtonElement> & { iconColor?: string; ringColor?: string }) => {\n return (\n <button\n className={classNames(\n \"absolute rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none\",\n className\n )}\n {...props}\n >\n <LeftArrowIcon className=\"w-6 h-6\" style={{ color: iconColor }} />\n </button>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/embed/v3/EmbeddedCheckoutV3IFrame.tsx"],"names":[],"mappings":";;;;;;;;AACA,SAAS,MAAM,WAAW,QAAQ,gBAAgB;AAElD;AAAA,EAGI;AAAA,OACG;AA2CC,mBACI,KADJ;AAvCR,IAAM,gCAAgC;AAAA,EAAK;AAAA;AAAA,IAEvC,OAAO,gEAAwC,EAAE,KAAK,CAAC,SAAS;AAAA,MAC5D,SAAS,IAAI;AAAA,IACjB,EAAE;AAAA;AACN;AAEO,SAAS,yBAAyB,OAAyC;AAC9E,QAAM,CAAC,cAAc,eAAe,IAAI,SAAiD,IAAI;AAC7F,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,CAAC;AAEtC,QAAM,EAAE,UAAU,IAAI,aAAa;AACnC,QAAM,YAAY,yBAAyB,WAAW;AAAA,IAClD,aAAa;AAAA,EACjB,CAAC;AACD,QAAM,iBAAiB,mCAAmC,EAAE,UAAU,CAAC;AAEvE,QAAM,MAAM,OAA0B,IAAI;AAE1C,YAAU,MAAM;AACZ,UAAM,SAAS,IAAI;AACnB,QAAI,CAAC,UAAU,cAAc;AACzB;AAAA,IACJ;AACA,oBAAgB,eAAe,OAAO,aAAa,MAAM,CAAC;AAAA,EAC9D,GAAG,CAAC,IAAI,SAAS,YAAY,CAAC;AAE9B,YAAU,MAAM;AACZ,QAAI,gBAAgB,MAAM;AACtB;AAAA,IACJ;AACA,iBAAa,GAAG,qBAAqB,CAAC,SAAS,UAAU,KAAK,MAAM,CAAC;AAErE,WAAO,MAAM;AACT,mBAAa,IAAI,mBAAmB;AAAA,IACxC;AAAA,EACJ,GAAG,CAAC,YAAY,CAAC;AAEjB,SACI,iCACI;AAAA;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,KAAK,eAAe,OAAO,OAAO,KAAK;AAAA,QACvC,IAAG;AAAA,QACH,MAAK;AAAA,QACL,OAAM;AAAA,QACN,OAAO;AAAA,UACH,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,OAAO;AAAA,UACP,UAAU;AAAA,UACV,UAAU;AAAA,UACV,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,QAAQ,GAAG,MAAM;AAAA,UACjB,iBAAiB;AAAA,QACrB;AAAA;AAAA,IACJ;AAAA,IACC,MAAM,QAAQ,OAAO,UAClB;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,mBAAmB,UAAU,cAAc,EAAE;AAAA;AAAA,IACjD,IACA;AAAA,KACR;AAER","sourcesContent":["import { useCrossmint } from \"@/hooks\";\nimport { lazy, useEffect, useRef, useState } from \"react\";\n\nimport {\n type CrossmintEmbeddedCheckoutV3Props,\n type EmbeddedCheckoutV3IFrameEmitter,\n crossmintEmbeddedCheckoutV3Service,\n} from \"@crossmint/client-sdk-base\";\n\nimport { createCrossmintApiClient } from \"@/utils/createCrossmintApiClient\";\n\nconst CryptoWalletConnectionHandler = lazy(() =>\n // @ts-expect-error - Error because we dont use 'module' field in tsconfig, which is expected because we use tsup to compile\n import(\"./crypto/CryptoWalletConnectionHandler\").then((mod) => ({\n default: mod.CryptoWalletConnectionHandler,\n }))\n);\n\nexport function EmbeddedCheckoutV3IFrame(props: CrossmintEmbeddedCheckoutV3Props) {\n const [iframeClient, setIframeClient] = useState<EmbeddedCheckoutV3IFrameEmitter | null>(null);\n const [height, setHeight] = useState(0);\n\n const { crossmint } = useCrossmint();\n const apiClient = createCrossmintApiClient(crossmint, {\n usageOrigin: \"client\",\n });\n const embedV3Service = crossmintEmbeddedCheckoutV3Service({ apiClient });\n\n const ref = useRef<HTMLIFrameElement>(null);\n\n useEffect(() => {\n const iframe = ref.current;\n if (!iframe || iframeClient) {\n return;\n }\n setIframeClient(embedV3Service.iframe.createClient(iframe));\n }, [ref.current, iframeClient]);\n\n useEffect(() => {\n if (iframeClient == null) {\n return;\n }\n iframeClient.on(\"ui:height.changed\", (data) => setHeight(data.height));\n\n return () => {\n iframeClient.off(\"ui:height.changed\");\n };\n }, [iframeClient]);\n\n return (\n <>\n <iframe\n ref={ref}\n src={embedV3Service.iframe.getUrl(props)}\n id=\"crossmint-embedded-checkout.iframe\"\n role=\"crossmint-embedded-checkout.iframe\"\n allow=\"payment *\"\n style={{\n boxShadow: \"none\",\n border: \"none\",\n padding: \"0px\",\n width: \"100%\",\n minWidth: \"100%\",\n overflow: \"hidden\",\n display: \"block\",\n userSelect: \"none\",\n transform: \"translate(0px)\",\n opacity: \"1\",\n transition: \"ease 0s, opacity 0.4s ease 0.1s\",\n height: `${height}px`,\n backgroundColor: \"transparent\",\n }}\n />\n {props.payment.crypto.enabled ? (\n <CryptoWalletConnectionHandler\n iframeClient={iframeClient}\n apiKeyEnvironment={apiClient[\"parsedAPIKey\"].environment}\n />\n ) : null}\n </>\n );\n}\n"]}
|
package/dist/chunk-QJ44PL7L.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
classNames
|
|
3
|
-
} from "./chunk-RZPQIRIY.js";
|
|
4
|
-
import {
|
|
5
|
-
LeftArrowIcon
|
|
6
|
-
} from "./chunk-ZDQGQY7Z.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-CRTRMMJ7.js";
|
|
12
|
-
|
|
13
|
-
// src/components/auth/AuthFormBackButton.tsx
|
|
14
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
var AuthFormBackButton = (_a) => {
|
|
16
|
-
var _b = _a, {
|
|
17
|
-
className,
|
|
18
|
-
iconColor,
|
|
19
|
-
ringColor
|
|
20
|
-
} = _b, props = __objRest(_b, [
|
|
21
|
-
"className",
|
|
22
|
-
"iconColor",
|
|
23
|
-
"ringColor"
|
|
24
|
-
]);
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
"button",
|
|
27
|
-
__spreadProps(__spreadValues({
|
|
28
|
-
className: classNames(
|
|
29
|
-
"absolute rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none",
|
|
30
|
-
className
|
|
31
|
-
)
|
|
32
|
-
}, props), {
|
|
33
|
-
children: /* @__PURE__ */ jsx(LeftArrowIcon, { className: "w-6 h-6", style: { color: iconColor } })
|
|
34
|
-
})
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
AuthFormBackButton
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=chunk-QJ44PL7L.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/auth/AuthFormBackButton.tsx"],"sourcesContent":["import type React from \"react\";\nimport { classNames } from \"../../utils/classNames\";\nimport { LeftArrowIcon } from \"@/icons/leftArrow\";\n\nexport const AuthFormBackButton = ({\n className,\n iconColor,\n ringColor,\n ...props\n}: React.HTMLAttributes<HTMLButtonElement> & { iconColor?: string; ringColor?: string }) => {\n return (\n <button\n className={classNames(\n \"absolute rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none\",\n className\n )}\n {...props}\n >\n <LeftArrowIcon className=\"w-6 h-6\" style={{ color: iconColor }} />\n </button>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAkBY;AAdL,IAAM,qBAAqB,CAAC,OAKyD;AALzD,eAC/B;AAAA;AAAA,IACA;AAAA,IACA;AAAA,EAPJ,IAImC,IAI5B,kBAJ4B,IAI5B;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACI;AAAA,IAAC;AAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,MACJ;AAAA,OACI,QALP;AAAA,MAOG,8BAAC,iBAAc,WAAU,WAAU,OAAO,EAAE,OAAO,UAAU,GAAG;AAAA;AAAA,EACpE;AAER;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/auth/methods/web3/Web3ProviderButton.tsx"],"sourcesContent":["import type { UIConfig } from \"@crossmint/common-sdk-base\";\nimport type React from \"react\";\nimport { classNames } from \"../../../../utils/classNames\";\n\nexport function Web3ProviderButton({\n title,\n appearance,\n img,\n ...props\n}: {\n title: string;\n appearance?: UIConfig;\n img: string;\n} & React.ButtonHTMLAttributes<HTMLButtonElement>) {\n return (\n <button\n className={classNames(\n \"relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center\",\n \"transition-colors duration-200 ease-in-out\",\n \"hover:bg-cm-hover focus:bg-cm-hover outline-none\"\n )}\n style={{\n borderRadius: appearance?.borderRadius,\n borderColor: appearance?.colors?.border,\n backgroundColor: appearance?.colors?.buttonBackground,\n }}\n {...props}\n >\n <>\n <img src={img} alt={title} className=\"h-[25px] w-[25px] absolute left-[18px]\" />\n <span className=\"font-medium\" style={{ color: appearance?.colors?.textPrimary }}>\n {title}\n </span>\n </>\n <span className=\"sr-only\">Sign in with {title}</span>\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;AA4BY,mBACI,KADJ;AAxBL,SAAS,mBAAmB,IASgB;AAThB,eAC/B;AAAA;AAAA,IACA;AAAA,IACA;AAAA,EAPJ,IAImC,IAI5B,kBAJ4B,IAI5B;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAPJ,MAAAA,KAAAC,KAAA;AAcI,SACI;AAAA,IAAC;AAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,MACJ;AAAA,MACA,OAAO;AAAA,QACH,cAAc,yCAAY;AAAA,QAC1B,cAAaD,MAAA,yCAAY,WAAZ,gBAAAA,IAAoB;AAAA,QACjC,kBAAiBC,MAAA,yCAAY,WAAZ,gBAAAA,IAAoB;AAAA,MACzC;AAAA,OACI,QAXP;AAAA,MAaG;AAAA,yCACI;AAAA,8BAAC,SAAI,KAAK,KAAK,KAAK,OAAO,WAAU,0CAAyC;AAAA,UAC9E,oBAAC,UAAK,WAAU,eAAc,OAAO,EAAE,QAAO,8CAAY,WAAZ,mBAAoB,YAAY,GACzE,iBACL;AAAA,WACJ;AAAA,QACA,qBAAC,UAAK,WAAU,WAAU;AAAA;AAAA,UAAc;AAAA,WAAM;AAAA;AAAA;AAAA,EAClD;AAER;","names":["_a","_b"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/auth/methods/web3/Web3ConnectButton.tsx"],"names":[],"mappings":";;;;;;;;AAoBQ,mBAEQ,KADJ,YADJ;AAhBD,SAAS,kBAAkB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAOG;AAlBH;AAmBI,SACI,iCACI;AAAA,yBAAC,SAAI,WAAU,0DACX;AAAA,0BAAC,SAAI,KAAK,MAAM,KAAK,YAAY,WAAU,qBAAoB;AAAA,MAC/D;AAAA,QAAC;AAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO,EAAE,QAAO,8CAAY,WAAZ,mBAAoB,YAAY;AAAA,UAE/C;AAAA;AAAA,MACL;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO,EAAE,QAAO,8CAAY,WAAZ,mBAAoB,YAAY;AAAA,UACnD;AAAA;AAAA,MAED;AAAA,OACJ;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACG,WAAW;AAAA,UACP;AAAA,UACA;AAAA,UACA;AAAA,UACA,YAAY,2CAA2C;AAAA,QAC3D;AAAA,QACA,OAAO;AAAA,UACH,cAAc,yCAAY;AAAA,UAC1B,cAAa,8CAAY,WAAZ,mBAAoB;AAAA,UACjC,kBAAiB,8CAAY,WAAZ,mBAAoB;AAAA,QACzC;AAAA,QACA,SAAS,YAAY,SAAY;AAAA,QAEjC,8BAAC,UAAK,WAAU,eAAc,OAAO,EAAE,QAAO,8CAAY,WAAZ,mBAAoB,YAAY,GACzE,sBACL;AAAA;AAAA,IACJ;AAAA,IAEA,oBAAC,SAAI,WAAU,4BACX,8BAAC,sBAAmB,QAAO,8CAAY,WAAZ,mBAAoB,eAAe,GAClE;AAAA,KACJ;AAER","sourcesContent":["import type { UIConfig } from \"@crossmint/common-sdk-base\";\nimport { PoweredByCrossmint } from \"@/components/common/PoweredByCrossmint\";\nimport { classNames } from \"@/utils/classNames\";\n\nexport function Web3ConnectButton({\n icon,\n appearance,\n isLoading,\n onConnectClick,\n headingText,\n buttonText,\n}: {\n icon: string;\n appearance?: UIConfig;\n isLoading: boolean;\n onConnectClick: () => void;\n headingText: string;\n buttonText: string;\n}) {\n return (\n <>\n <div className=\"flex flex-col items-center text-center mt-8 mb-4 gap-2\">\n <img src={icon} alt={\"metamask\"} className=\"h-[74px] w-[74px]\" />\n <h3\n className=\"text-lg font-semibold text-cm-text-primary\"\n style={{ color: appearance?.colors?.textPrimary }}\n >\n {headingText}\n </h3>\n <p\n className=\"text-base font-normal text-cm-text-primary\"\n style={{ color: appearance?.colors?.textPrimary }}\n >\n Don’t see your wallet? Check your other browser windows.\n </p>\n </div>\n\n <button\n className={classNames(\n \"relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center\",\n \"transition-colors duration-200 ease-in-out\",\n \"hover:bg-cm-hover focus:bg-cm-hover outline-none\",\n isLoading ? \"cursor-not-allowed bg-cm-muted-primary\" : \"\"\n )}\n style={{\n borderRadius: appearance?.borderRadius,\n borderColor: appearance?.colors?.border,\n backgroundColor: appearance?.colors?.buttonBackground,\n }}\n onClick={isLoading ? undefined : onConnectClick}\n >\n <span className=\"font-medium\" style={{ color: appearance?.colors?.textPrimary }}>\n {buttonText}\n </span>\n </button>\n\n <div className=\"flex justify-center pt-4\">\n <PoweredByCrossmint color={appearance?.colors?.textSecondary} />\n </div>\n </>\n );\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkDJ32OEWGcjs = require('../../../../chunk-DJ32OEWG.cjs');
|
|
4
|
-
require('../../../../chunk-5RX5WFEW.cjs');
|
|
5
|
-
require('../../../../chunk-4DAZAO6Y.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.Web3ProviderButton = _chunkDJ32OEWGcjs.Web3ProviderButton;
|
|
9
|
-
//# sourceMappingURL=Web3ProviderButton.cjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3AuthWrapper.cjs.map → Web3AuthFlowButton.cjs.map}
RENAMED
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3AuthWrapper.js.map → Web3AuthFlowButton.js.map}
RENAMED
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3ConnectButton.cjs.map → Web3Connector.cjs.map}
RENAMED
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3ConnectButton.js.map → Web3Connector.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3ProviderButton.js.map → Web3ConnectorButton.js.map}
RENAMED
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3SignIn.cjs.map → Web3ConnectorContainer.cjs.map}
RENAMED
|
File without changes
|
/package/dist/components/auth/methods/web3/{Web3SignIn.js.map → Web3ConnectorContainer.js.map}
RENAMED
|
File without changes
|