@crossmint/client-sdk-react-native-ui 0.13.30 → 0.13.32
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-2D2RJCVX.js +1 -0
- package/dist/chunk-2PX34LDU.js +1 -0
- package/dist/chunk-33A67NJB.js +1 -0
- package/dist/chunk-3QSVHCEH.mjs +2 -0
- package/dist/chunk-4K5AKIUY.mjs +1 -0
- package/dist/chunk-5CLFJLE4.mjs +0 -0
- package/dist/chunk-72MMCJ2E.js +1 -0
- package/dist/chunk-77GXCNDP.js +1 -0
- package/dist/chunk-7USVT6EZ.mjs +1 -0
- package/dist/chunk-AJMHVVST.js +1 -0
- package/dist/chunk-C62HRWJA.js +1 -0
- package/dist/chunk-D4347S2W.mjs +1 -0
- package/dist/chunk-D5QADN6Z.mjs +1 -0
- package/dist/chunk-DC5HCBPK.js +1 -0
- package/dist/chunk-DGDGCUWI.js +1 -0
- package/dist/chunk-DKQZSNOO.js +1 -0
- package/dist/chunk-DRF2SEV2.mjs +1 -0
- package/dist/chunk-DZIX4GTA.mjs +1 -0
- package/dist/chunk-EEGS6YBT.mjs +1 -0
- package/dist/chunk-EF2YTIUF.mjs +1 -0
- package/dist/chunk-EF5KYLDO.js +1 -0
- package/dist/chunk-EI5LOD4Y.js +1 -0
- package/dist/chunk-F7VXWATP.js +1 -0
- package/dist/chunk-FFQ6EQCL.mjs +1 -0
- package/dist/chunk-FX23A4BR.mjs +1 -0
- package/dist/chunk-GP5U5576.js +1 -0
- package/dist/chunk-I3QSTPTV.mjs +0 -0
- package/dist/chunk-I4D3YJW2.js +1 -0
- package/dist/chunk-IUDQDPIN.mjs +1 -0
- package/dist/chunk-J42HASCI.js +1 -0
- package/dist/chunk-J477SX6P.mjs +1 -0
- package/dist/chunk-J7Q2R6UH.mjs +0 -0
- package/dist/chunk-K36KMDCG.js +1 -0
- package/dist/chunk-KBGJNOSB.js +1 -0
- package/dist/chunk-LK3AO6AY.mjs +1 -0
- package/dist/chunk-LOFHVHXQ.js +1 -0
- package/dist/chunk-MB7H3PBJ.mjs +0 -0
- package/dist/chunk-MKCQJOIO.js +1 -0
- package/dist/chunk-MVVSGLQL.js +2 -0
- package/dist/chunk-OCOGB3KT.mjs +1 -0
- package/dist/chunk-PCJMDUSI.mjs +1 -0
- package/dist/chunk-PSSAAY7D.mjs +1 -0
- package/dist/chunk-RRFC7QEE.js +1 -0
- package/dist/chunk-SHTETN4C.js +1 -0
- package/dist/chunk-TIQGKXQA.mjs +0 -0
- package/dist/chunk-TUC3RZ6L.mjs +1 -0
- package/dist/chunk-UA34B5QB.js +1 -0
- package/dist/chunk-UBHIBMTA.mjs +0 -0
- package/dist/chunk-VACQTZRT.js +1 -0
- package/dist/chunk-VQE67ZFF.js +1 -0
- package/dist/chunk-XNDIT72O.mjs +2 -0
- package/dist/chunk-YJORUMPB.js +2 -0
- package/dist/chunk-YLJDAK2S.mjs +1 -0
- package/dist/chunk-YQEWHOQ7.js +1 -0
- package/dist/chunk-ZCKUSOGC.mjs +1 -0
- package/dist/chunk-ZI3GTSDG.mjs +1 -0
- package/dist/components/embed/index.js +1 -16
- package/dist/components/embed/index.mjs +1 -16
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -14
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.mjs +1 -14
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.js +1 -13
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.mjs +1 -13
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.js +1 -8
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.mjs +1 -8
- package/dist/components/embed/v3/index.js +1 -15
- package/dist/components/embed/v3/index.mjs +1 -15
- package/dist/components/index.js +1 -34
- package/dist/components/index.mjs +1 -34
- package/dist/components/signers/BaseCodeInput.js +1 -9
- package/dist/components/signers/BaseCodeInput.mjs +1 -9
- package/dist/components/signers/BaseConfirmation.js +1 -9
- package/dist/components/signers/BaseConfirmation.mjs +1 -9
- package/dist/components/signers/EmailSignersDialog.js +1 -11
- package/dist/components/signers/EmailSignersDialog.mjs +1 -11
- package/dist/components/signers/PhoneSignersDialog.js +1 -11
- package/dist/components/signers/PhoneSignersDialog.mjs +1 -11
- package/dist/components/signers/index.js +1 -16
- package/dist/components/signers/index.mjs +1 -16
- package/dist/components/wallets/ExportPrivateKeyButton.js +1 -8
- package/dist/components/wallets/ExportPrivateKeyButton.mjs +1 -8
- package/dist/components/wallets/index.js +1 -9
- package/dist/components/wallets/index.mjs +1 -9
- package/dist/hooks/index.js +1 -26
- package/dist/hooks/index.mjs +1 -26
- package/dist/hooks/useAuth.js +1 -14
- package/dist/hooks/useAuth.mjs +1 -14
- package/dist/hooks/useCrossmintCheckout.js +1 -11
- package/dist/hooks/useCrossmintCheckout.mjs +1 -11
- package/dist/hooks/useWalletEmailSigner.js +1 -8
- package/dist/hooks/useWalletEmailSigner.mjs +1 -8
- package/dist/index.js +1 -79
- package/dist/index.mjs +1 -79
- package/dist/logger/init.js +1 -9
- package/dist/logger/init.mjs +1 -9
- package/dist/plugin/mods/addQueryToAndroidManifest.js +1 -8
- package/dist/plugin/mods/addQueryToAndroidManifest.mjs +1 -8
- package/dist/plugin/withGooglePay.js +1 -57
- package/dist/plugin/withGooglePay.mjs +1 -57
- package/dist/providers/CrossmintAuthProvider.js +1 -14
- package/dist/providers/CrossmintAuthProvider.mjs +1 -14
- package/dist/providers/CrossmintProvider.js +1 -12
- package/dist/providers/CrossmintProvider.mjs +1 -12
- package/dist/providers/CrossmintWalletProvider.js +1 -16
- package/dist/providers/CrossmintWalletProvider.mjs +1 -16
- package/dist/providers/index.js +1 -28
- package/dist/providers/index.mjs +1 -28
- package/dist/styles/index.js +1 -8
- package/dist/styles/index.mjs +1 -8
- package/dist/styles/theme.js +1 -8
- package/dist/styles/theme.mjs +1 -8
- package/dist/types/auth.js +1 -1
- package/dist/types/auth.mjs +0 -1
- package/dist/utils/SecureStorage.js +1 -8
- package/dist/utils/SecureStorage.mjs +1 -8
- package/dist/utils/createCrossmintApiClient.js +1 -9
- package/dist/utils/createCrossmintApiClient.mjs +1 -9
- package/dist/utils/embed/userAgent.js +1 -12
- package/dist/utils/embed/userAgent.mjs +1 -12
- package/dist/utils/eventEmitter.js +1 -8
- package/dist/utils/eventEmitter.mjs +1 -8
- package/package.json +1 -1
- package/dist/chunk-24MMQ2R4.js +0 -15
- package/dist/chunk-24MMQ2R4.js.map +0 -1
- package/dist/chunk-2DNOAXOE.mjs +0 -8
- package/dist/chunk-2DNOAXOE.mjs.map +0 -1
- package/dist/chunk-2TEAOLM6.mjs +0 -149
- package/dist/chunk-2TEAOLM6.mjs.map +0 -1
- package/dist/chunk-34OVOZB2.mjs +0 -111
- package/dist/chunk-34OVOZB2.mjs.map +0 -1
- package/dist/chunk-3AWDWMZ2.mjs +0 -18
- package/dist/chunk-3AWDWMZ2.mjs.map +0 -1
- package/dist/chunk-3PJ6FXFT.mjs +0 -1
- package/dist/chunk-3PJ6FXFT.mjs.map +0 -1
- package/dist/chunk-3SFSPJXM.mjs +0 -55
- package/dist/chunk-3SFSPJXM.mjs.map +0 -1
- package/dist/chunk-4AJTICKY.mjs +0 -44
- package/dist/chunk-4AJTICKY.mjs.map +0 -1
- package/dist/chunk-4HKXTAVR.js +0 -14
- package/dist/chunk-4HKXTAVR.js.map +0 -1
- package/dist/chunk-4V7NDO5X.mjs +0 -157
- package/dist/chunk-4V7NDO5X.mjs.map +0 -1
- package/dist/chunk-4WJIXD7U.mjs +0 -14
- package/dist/chunk-4WJIXD7U.mjs.map +0 -1
- package/dist/chunk-5V6ONJWT.mjs +0 -61
- package/dist/chunk-5V6ONJWT.mjs.map +0 -1
- package/dist/chunk-5ZBDQUNG.js +0 -1
- package/dist/chunk-5ZBDQUNG.js.map +0 -1
- package/dist/chunk-6S5SEVGS.js +0 -17
- package/dist/chunk-6S5SEVGS.js.map +0 -1
- package/dist/chunk-6Z74KC25.mjs +0 -1
- package/dist/chunk-6Z74KC25.mjs.map +0 -1
- package/dist/chunk-7SPIOD4K.mjs +0 -66
- package/dist/chunk-7SPIOD4K.mjs.map +0 -1
- package/dist/chunk-ALMDA3KN.mjs +0 -199
- package/dist/chunk-ALMDA3KN.mjs.map +0 -1
- package/dist/chunk-BE4HT2U7.mjs +0 -1
- package/dist/chunk-BE4HT2U7.mjs.map +0 -1
- package/dist/chunk-BTH5QRIT.js +0 -149
- package/dist/chunk-BTH5QRIT.js.map +0 -1
- package/dist/chunk-BUB4U2GE.js +0 -44
- package/dist/chunk-BUB4U2GE.js.map +0 -1
- package/dist/chunk-BUTZZ7JB.js +0 -36
- package/dist/chunk-BUTZZ7JB.js.map +0 -1
- package/dist/chunk-CFHHVHNZ.mjs +0 -157
- package/dist/chunk-CFHHVHNZ.mjs.map +0 -1
- package/dist/chunk-CV6RWU2T.js +0 -50
- package/dist/chunk-CV6RWU2T.js.map +0 -1
- package/dist/chunk-DD2MVD6A.mjs +0 -36
- package/dist/chunk-DD2MVD6A.mjs.map +0 -1
- package/dist/chunk-EKXEDMRD.mjs +0 -71
- package/dist/chunk-EKXEDMRD.mjs.map +0 -1
- package/dist/chunk-FCDPEDXH.mjs +0 -148
- package/dist/chunk-FCDPEDXH.mjs.map +0 -1
- package/dist/chunk-FQID5LOL.js +0 -22
- package/dist/chunk-FQID5LOL.js.map +0 -1
- package/dist/chunk-FRD6HEIM.mjs +0 -22
- package/dist/chunk-FRD6HEIM.mjs.map +0 -1
- package/dist/chunk-GYBEEYGB.mjs +0 -1
- package/dist/chunk-GYBEEYGB.mjs.map +0 -1
- package/dist/chunk-HELXBZ7D.js +0 -18
- package/dist/chunk-HELXBZ7D.js.map +0 -1
- package/dist/chunk-IBQK5B7B.js +0 -71
- package/dist/chunk-IBQK5B7B.js.map +0 -1
- package/dist/chunk-IHZNXV5S.js +0 -1
- package/dist/chunk-IHZNXV5S.js.map +0 -1
- package/dist/chunk-IMME6ZBV.js +0 -61
- package/dist/chunk-IMME6ZBV.js.map +0 -1
- package/dist/chunk-J2MDWDV6.mjs +0 -1
- package/dist/chunk-J2MDWDV6.mjs.map +0 -1
- package/dist/chunk-KK4SQ7WF.js +0 -1
- package/dist/chunk-KK4SQ7WF.js.map +0 -1
- package/dist/chunk-KOUCOMBE.js +0 -148
- package/dist/chunk-KOUCOMBE.js.map +0 -1
- package/dist/chunk-MMVER6VO.js +0 -1
- package/dist/chunk-MMVER6VO.js.map +0 -1
- package/dist/chunk-MVLQR6RI.js +0 -199
- package/dist/chunk-MVLQR6RI.js.map +0 -1
- package/dist/chunk-NBWATZY4.js +0 -157
- package/dist/chunk-NBWATZY4.js.map +0 -1
- package/dist/chunk-OTRMAWWU.js +0 -55
- package/dist/chunk-OTRMAWWU.js.map +0 -1
- package/dist/chunk-P35PHJU5.mjs +0 -17
- package/dist/chunk-P35PHJU5.mjs.map +0 -1
- package/dist/chunk-PUTC7LI4.mjs +0 -348
- package/dist/chunk-PUTC7LI4.mjs.map +0 -1
- package/dist/chunk-Q2Y5CZT4.js +0 -157
- package/dist/chunk-Q2Y5CZT4.js.map +0 -1
- package/dist/chunk-Q7YPX4RJ.js +0 -66
- package/dist/chunk-Q7YPX4RJ.js.map +0 -1
- package/dist/chunk-R47XMJ32.js +0 -1
- package/dist/chunk-R47XMJ32.js.map +0 -1
- package/dist/chunk-RSCBYS6I.mjs +0 -15
- package/dist/chunk-RSCBYS6I.mjs.map +0 -1
- package/dist/chunk-RTLOANMR.mjs +0 -50
- package/dist/chunk-RTLOANMR.mjs.map +0 -1
- package/dist/chunk-S3OC5AT3.mjs +0 -24
- package/dist/chunk-S3OC5AT3.mjs.map +0 -1
- package/dist/chunk-SHSENRY7.js +0 -24
- package/dist/chunk-SHSENRY7.js.map +0 -1
- package/dist/chunk-TNPZITVL.mjs +0 -1
- package/dist/chunk-TNPZITVL.mjs.map +0 -1
- package/dist/chunk-UNIFCVYR.js +0 -348
- package/dist/chunk-UNIFCVYR.js.map +0 -1
- package/dist/chunk-VCF2YXCO.js +0 -208
- package/dist/chunk-VCF2YXCO.js.map +0 -1
- package/dist/chunk-XNVZRSGL.js +0 -111
- package/dist/chunk-XNVZRSGL.js.map +0 -1
- package/dist/chunk-XUGJXLWC.js +0 -8
- package/dist/chunk-XUGJXLWC.js.map +0 -1
- package/dist/chunk-XXJ7LQ44.js +0 -1
- package/dist/chunk-XXJ7LQ44.js.map +0 -1
- package/dist/chunk-Z7Y7COJM.mjs +0 -208
- package/dist/chunk-Z7Y7COJM.mjs.map +0 -1
- package/dist/components/embed/index.js.map +0 -1
- package/dist/components/embed/index.mjs.map +0 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js.map +0 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.mjs.map +0 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.js.map +0 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.mjs.map +0 -1
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.js.map +0 -1
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.mjs.map +0 -1
- package/dist/components/embed/v3/index.js.map +0 -1
- package/dist/components/embed/v3/index.mjs.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs.map +0 -1
- package/dist/components/signers/BaseCodeInput.js.map +0 -1
- package/dist/components/signers/BaseCodeInput.mjs.map +0 -1
- package/dist/components/signers/BaseConfirmation.js.map +0 -1
- package/dist/components/signers/BaseConfirmation.mjs.map +0 -1
- package/dist/components/signers/EmailSignersDialog.js.map +0 -1
- package/dist/components/signers/EmailSignersDialog.mjs.map +0 -1
- package/dist/components/signers/PhoneSignersDialog.js.map +0 -1
- package/dist/components/signers/PhoneSignersDialog.mjs.map +0 -1
- package/dist/components/signers/index.js.map +0 -1
- package/dist/components/signers/index.mjs.map +0 -1
- package/dist/components/wallets/ExportPrivateKeyButton.js.map +0 -1
- package/dist/components/wallets/ExportPrivateKeyButton.mjs.map +0 -1
- package/dist/components/wallets/index.js.map +0 -1
- package/dist/components/wallets/index.mjs.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/hooks/useAuth.js.map +0 -1
- package/dist/hooks/useAuth.mjs.map +0 -1
- package/dist/hooks/useCrossmintCheckout.js.map +0 -1
- package/dist/hooks/useCrossmintCheckout.mjs.map +0 -1
- package/dist/hooks/useWalletEmailSigner.js.map +0 -1
- package/dist/hooks/useWalletEmailSigner.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/logger/init.js.map +0 -1
- package/dist/logger/init.mjs.map +0 -1
- package/dist/plugin/mods/addQueryToAndroidManifest.js.map +0 -1
- package/dist/plugin/mods/addQueryToAndroidManifest.mjs.map +0 -1
- package/dist/plugin/withGooglePay.js.map +0 -1
- package/dist/plugin/withGooglePay.mjs.map +0 -1
- package/dist/providers/CrossmintAuthProvider.js.map +0 -1
- package/dist/providers/CrossmintAuthProvider.mjs.map +0 -1
- package/dist/providers/CrossmintProvider.js.map +0 -1
- package/dist/providers/CrossmintProvider.mjs.map +0 -1
- package/dist/providers/CrossmintWalletProvider.js.map +0 -1
- package/dist/providers/CrossmintWalletProvider.mjs.map +0 -1
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/index.mjs.map +0 -1
- package/dist/styles/index.js.map +0 -1
- package/dist/styles/index.mjs.map +0 -1
- package/dist/styles/theme.js.map +0 -1
- package/dist/styles/theme.mjs.map +0 -1
- package/dist/types/auth.js.map +0 -1
- package/dist/types/auth.mjs.map +0 -1
- package/dist/utils/SecureStorage.js.map +0 -1
- package/dist/utils/SecureStorage.mjs.map +0 -1
- package/dist/utils/createCrossmintApiClient.js.map +0 -1
- package/dist/utils/createCrossmintApiClient.mjs.map +0 -1
- package/dist/utils/embed/userAgent.js.map +0 -1
- package/dist/utils/embed/userAgent.mjs.map +0 -1
- package/dist/utils/eventEmitter.js.map +0 -1
- package/dist/utils/eventEmitter.mjs.map +0 -1
|
@@ -1,57 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addQueryToAndroidManifest
|
|
3
|
-
} from "../chunk-4WJIXD7U.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__require
|
|
6
|
-
} from "../chunk-7SPIOD4K.mjs";
|
|
7
|
-
|
|
8
|
-
// src/plugin/withGooglePay.ts
|
|
9
|
-
import { withAndroidManifest, createRunOncePlugin, AndroidConfig } from "@expo/config-plugins";
|
|
10
|
-
var { addMetaDataItemToMainApplication, getMainApplicationOrThrow } = AndroidConfig.Manifest;
|
|
11
|
-
var pkg = __require("@crossmint/client-sdk-react-native-ui/package.json");
|
|
12
|
-
var withGooglePay = (config, options = { enableGooglePay: false }) => {
|
|
13
|
-
if (!options.enableGooglePay) {
|
|
14
|
-
return config;
|
|
15
|
-
}
|
|
16
|
-
return withAndroidManifest(config, (config2) => {
|
|
17
|
-
const mainApplication = getMainApplicationOrThrow(config2.modResults);
|
|
18
|
-
addMetaDataItemToMainApplication(mainApplication, "com.google.android.gms.wallet.api.enabled", "true");
|
|
19
|
-
config2.modResults = addQueryToAndroidManifest(config2.modResults, {
|
|
20
|
-
intent: [
|
|
21
|
-
{
|
|
22
|
-
action: [
|
|
23
|
-
{
|
|
24
|
-
$: {
|
|
25
|
-
"android:name": "org.chromium.intent.action.PAY"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
action: [
|
|
32
|
-
{
|
|
33
|
-
$: {
|
|
34
|
-
"android:name": "org.chromium.intent.action.IS_READY_TO_PAY"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
action: [
|
|
41
|
-
{
|
|
42
|
-
$: {
|
|
43
|
-
"android:name": "org.chromium.intent.action.UPDATE_PAYMENT_DETAILS"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
});
|
|
50
|
-
return config2;
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
var withGooglePay_default = createRunOncePlugin(withGooglePay, pkg.name, pkg.version);
|
|
54
|
-
export {
|
|
55
|
-
withGooglePay_default as default
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=withGooglePay.mjs.map
|
|
1
|
+
import{a as e}from"../chunk-D4347S2W.mjs";import{c as r}from"../chunk-PSSAAY7D.mjs";import{withAndroidManifest as l,createRunOncePlugin as d,AndroidConfig as m}from"@expo/config-plugins";var{addMetaDataItemToMainApplication:g,getMainApplicationOrThrow:u}=m.Manifest,a=r("@crossmint/client-sdk-react-native-ui/package.json"),P=(n,i={enableGooglePay:!1})=>i.enableGooglePay?l(n,o=>{let t=u(o.modResults);return g(t,"com.google.android.gms.wallet.api.enabled","true"),o.modResults=e(o.modResults,{intent:[{action:[{$:{"android:name":"org.chromium.intent.action.PAY"}}]},{action:[{$:{"android:name":"org.chromium.intent.action.IS_READY_TO_PAY"}}]},{action:[{$:{"android:name":"org.chromium.intent.action.UPDATE_PAYMENT_DETAILS"}}]}]}),o}):n,y=d(P,a.name,a.version);export{y as default};
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkVCF2YXCOjs = require('../chunk-VCF2YXCO.js');
|
|
5
|
-
require('../chunk-IBQK5B7B.js');
|
|
6
|
-
require('../chunk-BUTZZ7JB.js');
|
|
7
|
-
require('../chunk-XUGJXLWC.js');
|
|
8
|
-
require('../chunk-OTRMAWWU.js');
|
|
9
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.AuthContext = _chunkVCF2YXCOjs.AuthContext; exports.CrossmintAuthProvider = _chunkVCF2YXCOjs.CrossmintAuthProvider;
|
|
14
|
-
//# sourceMappingURL=CrossmintAuthProvider.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEF5KYLDOjs = require('../chunk-EF5KYLDO.js');require('../chunk-SHTETN4C.js');require('../chunk-77GXCNDP.js');require('../chunk-MKCQJOIO.js');require('../chunk-2D2RJCVX.js');require('../chunk-J42HASCI.js');exports.AuthContext = _chunkEF5KYLDOjs.a; exports.CrossmintAuthProvider = _chunkEF5KYLDOjs.b;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
AuthContext,
|
|
3
|
-
CrossmintAuthProvider
|
|
4
|
-
} from "../chunk-Z7Y7COJM.mjs";
|
|
5
|
-
import "../chunk-EKXEDMRD.mjs";
|
|
6
|
-
import "../chunk-DD2MVD6A.mjs";
|
|
7
|
-
import "../chunk-2DNOAXOE.mjs";
|
|
8
|
-
import "../chunk-3SFSPJXM.mjs";
|
|
9
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
10
|
-
export {
|
|
11
|
-
AuthContext,
|
|
12
|
-
CrossmintAuthProvider
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=CrossmintAuthProvider.mjs.map
|
|
1
|
+
import{a,b}from"../chunk-LK3AO6AY.mjs";import"../chunk-ZCKUSOGC.mjs";import"../chunk-IUDQDPIN.mjs";import"../chunk-J477SX6P.mjs";import"../chunk-FFQ6EQCL.mjs";import"../chunk-PSSAAY7D.mjs";export{a as AuthContext,b as CrossmintAuthProvider};
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkSHSENRY7js = require('../chunk-SHSENRY7.js');
|
|
5
|
-
require('../chunk-CV6RWU2T.js');
|
|
6
|
-
require('../chunk-IMME6ZBV.js');
|
|
7
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.CrossmintProvider = _chunkSHSENRY7js.CrossmintProvider; exports.LoggerContext = _chunkSHSENRY7js.LoggerContext;
|
|
12
|
-
//# sourceMappingURL=CrossmintProvider.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK36KMDCGjs = require('../chunk-K36KMDCG.js');require('../chunk-VQE67ZFF.js');require('../chunk-DGDGCUWI.js');require('../chunk-J42HASCI.js');exports.CrossmintProvider = _chunkK36KMDCGjs.b; exports.LoggerContext = _chunkK36KMDCGjs.a;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
CrossmintProvider,
|
|
3
|
-
LoggerContext
|
|
4
|
-
} from "../chunk-S3OC5AT3.mjs";
|
|
5
|
-
import "../chunk-RTLOANMR.mjs";
|
|
6
|
-
import "../chunk-5V6ONJWT.mjs";
|
|
7
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
8
|
-
export {
|
|
9
|
-
CrossmintProvider,
|
|
10
|
-
LoggerContext
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=CrossmintProvider.mjs.map
|
|
1
|
+
import{a,b}from"../chunk-DRF2SEV2.mjs";import"../chunk-EEGS6YBT.mjs";import"../chunk-ZI3GTSDG.mjs";import"../chunk-PSSAAY7D.mjs";export{b as CrossmintProvider,a as LoggerContext};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkUNIFCVYRjs = require('../chunk-UNIFCVYR.js');
|
|
4
|
-
require('../chunk-SHSENRY7.js');
|
|
5
|
-
require('../chunk-Q2Y5CZT4.js');
|
|
6
|
-
require('../chunk-NBWATZY4.js');
|
|
7
|
-
require('../chunk-MVLQR6RI.js');
|
|
8
|
-
require('../chunk-BTH5QRIT.js');
|
|
9
|
-
require('../chunk-HELXBZ7D.js');
|
|
10
|
-
require('../chunk-CV6RWU2T.js');
|
|
11
|
-
require('../chunk-IMME6ZBV.js');
|
|
12
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
exports.CrossmintWalletProvider = _chunkUNIFCVYRjs.CrossmintWalletProvider;
|
|
16
|
-
//# sourceMappingURL=CrossmintWalletProvider.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGP5U5576js = require('../chunk-GP5U5576.js');require('../chunk-K36KMDCG.js');require('../chunk-VQE67ZFF.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-DGDGCUWI.js');require('../chunk-J42HASCI.js');exports.CrossmintWalletProvider = _chunkGP5U5576js.a;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
CrossmintWalletProvider
|
|
3
|
-
} from "../chunk-PUTC7LI4.mjs";
|
|
4
|
-
import "../chunk-S3OC5AT3.mjs";
|
|
5
|
-
import "../chunk-CFHHVHNZ.mjs";
|
|
6
|
-
import "../chunk-4V7NDO5X.mjs";
|
|
7
|
-
import "../chunk-ALMDA3KN.mjs";
|
|
8
|
-
import "../chunk-2TEAOLM6.mjs";
|
|
9
|
-
import "../chunk-3AWDWMZ2.mjs";
|
|
10
|
-
import "../chunk-RTLOANMR.mjs";
|
|
11
|
-
import "../chunk-5V6ONJWT.mjs";
|
|
12
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
13
|
-
export {
|
|
14
|
-
CrossmintWalletProvider
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=CrossmintWalletProvider.mjs.map
|
|
1
|
+
import{a}from"../chunk-4K5AKIUY.mjs";import"../chunk-DRF2SEV2.mjs";import"../chunk-EEGS6YBT.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-ZI3GTSDG.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintWalletProvider};
|
package/dist/providers/index.js
CHANGED
|
@@ -1,28 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkUNIFCVYRjs = require('../chunk-UNIFCVYR.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkSHSENRY7js = require('../chunk-SHSENRY7.js');
|
|
8
|
-
require('../chunk-Q2Y5CZT4.js');
|
|
9
|
-
require('../chunk-NBWATZY4.js');
|
|
10
|
-
require('../chunk-MVLQR6RI.js');
|
|
11
|
-
require('../chunk-BTH5QRIT.js');
|
|
12
|
-
require('../chunk-HELXBZ7D.js');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _chunkVCF2YXCOjs = require('../chunk-VCF2YXCO.js');
|
|
16
|
-
require('../chunk-IBQK5B7B.js');
|
|
17
|
-
require('../chunk-BUTZZ7JB.js');
|
|
18
|
-
require('../chunk-XUGJXLWC.js');
|
|
19
|
-
require('../chunk-OTRMAWWU.js');
|
|
20
|
-
require('../chunk-CV6RWU2T.js');
|
|
21
|
-
require('../chunk-IMME6ZBV.js');
|
|
22
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
exports.CrossmintAuthProvider = _chunkVCF2YXCOjs.CrossmintAuthProvider; exports.CrossmintProvider = _chunkSHSENRY7js.CrossmintProvider; exports.CrossmintWalletProvider = _chunkUNIFCVYRjs.CrossmintWalletProvider;
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-C62HRWJA.js');var _chunkGP5U5576js = require('../chunk-GP5U5576.js');var _chunkK36KMDCGjs = require('../chunk-K36KMDCG.js');var _chunkEF5KYLDOjs = require('../chunk-EF5KYLDO.js');require('../chunk-SHTETN4C.js');require('../chunk-77GXCNDP.js');require('../chunk-MKCQJOIO.js');require('../chunk-VQE67ZFF.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-2D2RJCVX.js');require('../chunk-DGDGCUWI.js');require('../chunk-J42HASCI.js');exports.CrossmintAuthProvider = _chunkEF5KYLDOjs.b; exports.CrossmintProvider = _chunkK36KMDCGjs.b; exports.CrossmintWalletProvider = _chunkGP5U5576js.a;
|
package/dist/providers/index.mjs
CHANGED
|
@@ -1,28 +1 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
CrossmintWalletProvider
|
|
4
|
-
} from "../chunk-PUTC7LI4.mjs";
|
|
5
|
-
import {
|
|
6
|
-
CrossmintProvider
|
|
7
|
-
} from "../chunk-S3OC5AT3.mjs";
|
|
8
|
-
import "../chunk-CFHHVHNZ.mjs";
|
|
9
|
-
import "../chunk-4V7NDO5X.mjs";
|
|
10
|
-
import "../chunk-ALMDA3KN.mjs";
|
|
11
|
-
import "../chunk-2TEAOLM6.mjs";
|
|
12
|
-
import "../chunk-3AWDWMZ2.mjs";
|
|
13
|
-
import {
|
|
14
|
-
CrossmintAuthProvider
|
|
15
|
-
} from "../chunk-Z7Y7COJM.mjs";
|
|
16
|
-
import "../chunk-EKXEDMRD.mjs";
|
|
17
|
-
import "../chunk-DD2MVD6A.mjs";
|
|
18
|
-
import "../chunk-2DNOAXOE.mjs";
|
|
19
|
-
import "../chunk-3SFSPJXM.mjs";
|
|
20
|
-
import "../chunk-RTLOANMR.mjs";
|
|
21
|
-
import "../chunk-5V6ONJWT.mjs";
|
|
22
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
23
|
-
export {
|
|
24
|
-
CrossmintAuthProvider,
|
|
25
|
-
CrossmintProvider,
|
|
26
|
-
CrossmintWalletProvider
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import"../chunk-I3QSTPTV.mjs";import{a as c}from"../chunk-4K5AKIUY.mjs";import{b}from"../chunk-DRF2SEV2.mjs";import{b as a}from"../chunk-LK3AO6AY.mjs";import"../chunk-ZCKUSOGC.mjs";import"../chunk-IUDQDPIN.mjs";import"../chunk-J477SX6P.mjs";import"../chunk-EEGS6YBT.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-FFQ6EQCL.mjs";import"../chunk-ZI3GTSDG.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintAuthProvider,b as CrossmintProvider,c as CrossmintWalletProvider};
|
package/dist/styles/index.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkHELXBZ7Djs = require('../chunk-HELXBZ7D.js');
|
|
4
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.theme = _chunkHELXBZ7Djs.theme;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI5LOD4Yjs = require('../chunk-EI5LOD4Y.js');require('../chunk-J42HASCI.js');exports.theme = _chunkEI5LOD4Yjs.a;
|
package/dist/styles/index.mjs
CHANGED
package/dist/styles/theme.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkHELXBZ7Djs = require('../chunk-HELXBZ7D.js');
|
|
4
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.theme = _chunkHELXBZ7Djs.theme;
|
|
8
|
-
//# sourceMappingURL=theme.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI5LOD4Yjs = require('../chunk-EI5LOD4Y.js');require('../chunk-J42HASCI.js');exports.theme = _chunkEI5LOD4Yjs.a;
|
package/dist/styles/theme.mjs
CHANGED
package/dist/types/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";
|
package/dist/types/auth.mjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=auth.mjs.map
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkIBQK5B7Bjs = require('../chunk-IBQK5B7B.js');
|
|
4
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.SecureStorage = _chunkIBQK5B7Bjs.SecureStorage;
|
|
8
|
-
//# sourceMappingURL=SecureStorage.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSHTETN4Cjs = require('../chunk-SHTETN4C.js');require('../chunk-J42HASCI.js');exports.SecureStorage = _chunkSHTETN4Cjs.a;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
SecureStorage
|
|
3
|
-
} from "../chunk-EKXEDMRD.mjs";
|
|
4
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
5
|
-
export {
|
|
6
|
-
SecureStorage
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=SecureStorage.mjs.map
|
|
1
|
+
import{a}from"../chunk-ZCKUSOGC.mjs";import"../chunk-PSSAAY7D.mjs";export{a as SecureStorage};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkFQID5LOLjs = require('../chunk-FQID5LOL.js');
|
|
4
|
-
require('../chunk-IMME6ZBV.js');
|
|
5
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.createCrossmintApiClient = _chunkFQID5LOLjs.createCrossmintApiClient;
|
|
9
|
-
//# sourceMappingURL=createCrossmintApiClient.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRRFC7QEEjs = require('../chunk-RRFC7QEE.js');require('../chunk-DGDGCUWI.js');require('../chunk-J42HASCI.js');exports.createCrossmintApiClient = _chunkRRFC7QEEjs.a;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
createCrossmintApiClient
|
|
3
|
-
} from "../chunk-FRD6HEIM.mjs";
|
|
4
|
-
import "../chunk-5V6ONJWT.mjs";
|
|
5
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
6
|
-
export {
|
|
7
|
-
createCrossmintApiClient
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=createCrossmintApiClient.mjs.map
|
|
1
|
+
import{a}from"../chunk-DZIX4GTA.mjs";import"../chunk-ZI3GTSDG.mjs";import"../chunk-PSSAAY7D.mjs";export{a as createCrossmintApiClient};
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunk24MMQ2R4js = require('../../chunk-24MMQ2R4.js');
|
|
6
|
-
require('../../chunk-Q7YPX4RJ.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.modelName = _chunk24MMQ2R4js.modelName; exports.osVersion = _chunk24MMQ2R4js.osVersion; exports.userAgent = _chunk24MMQ2R4js.userAgent;
|
|
12
|
-
//# sourceMappingURL=userAgent.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQEWHOQ7js = require('../../chunk-YQEWHOQ7.js');require('../../chunk-J42HASCI.js');exports.modelName = _chunkYQEWHOQ7js.b; exports.osVersion = _chunkYQEWHOQ7js.a; exports.userAgent = _chunkYQEWHOQ7js.c;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
modelName,
|
|
3
|
-
osVersion,
|
|
4
|
-
userAgent
|
|
5
|
-
} from "../../chunk-RSCBYS6I.mjs";
|
|
6
|
-
import "../../chunk-7SPIOD4K.mjs";
|
|
7
|
-
export {
|
|
8
|
-
modelName,
|
|
9
|
-
osVersion,
|
|
10
|
-
userAgent
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=userAgent.mjs.map
|
|
1
|
+
import{a,b,c}from"../../chunk-PCJMDUSI.mjs";import"../../chunk-PSSAAY7D.mjs";export{b as modelName,a as osVersion,c as userAgent};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkXUGJXLWCjs = require('../chunk-XUGJXLWC.js');
|
|
4
|
-
require('../chunk-Q7YPX4RJ.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.localEventEmitter = _chunkXUGJXLWCjs.localEventEmitter;
|
|
8
|
-
//# sourceMappingURL=eventEmitter.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2D2RJCVXjs = require('../chunk-2D2RJCVX.js');require('../chunk-J42HASCI.js');exports.localEventEmitter = _chunk2D2RJCVXjs.a;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
localEventEmitter
|
|
3
|
-
} from "../chunk-2DNOAXOE.mjs";
|
|
4
|
-
import "../chunk-7SPIOD4K.mjs";
|
|
5
|
-
export {
|
|
6
|
-
localEventEmitter
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=eventEmitter.mjs.map
|
|
1
|
+
import{a}from"../chunk-FFQ6EQCL.mjs";import"../chunk-PSSAAY7D.mjs";export{a as localEventEmitter};
|
package/package.json
CHANGED
package/dist/chunk-24MMQ2R4.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/utils/embed/userAgent.ts
|
|
2
|
-
var _reactnative = require('react-native');
|
|
3
|
-
var _expodevice = require('expo-device'); var Device = _interopRequireWildcard(_expodevice);
|
|
4
|
-
var osVersion2 = Device.osVersion || "0";
|
|
5
|
-
var modelName2 = Device.modelName || "Unknown";
|
|
6
|
-
var userAgent = _reactnative.Platform.OS === "ios" ? `Mozilla/5.0 (iPhone; CPU iPhone OS ${osVersion2.toString().replace(/\./g, "_")} like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/${Math.floor(
|
|
7
|
-
Number(osVersion2) / 2
|
|
8
|
-
)}.0 Mobile/15E148 Safari/604.1` : `Mozilla/5.0 (Linux; Android ${osVersion2}; ${modelName2}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36`;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.osVersion = osVersion2; exports.modelName = modelName2; exports.userAgent = userAgent;
|
|
15
|
-
//# sourceMappingURL=chunk-24MMQ2R4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/embed/userAgent.ts"],"names":["osVersion","modelName"],"mappings":";AAAA,SAAS,gBAAgB;AACzB,YAAY,YAAY;AAEjB,IAAMA,aAAmB,oBAAa;AACtC,IAAMC,aAAmB,oBAAa;AAEtC,IAAM,YACT,SAAS,OAAO,QACV,sCAAsCD,WACjC,SAAS,EACT,QAAQ,OAAO,GAAG,CAAC,oEAAoE,KAAK;AAAA,EAC7F,OAAOA,UAAS,IAAI;AACxB,CAAC,kCACD,+BAA+BA,UAAS,KAAKC,UAAS","sourcesContent":["import { Platform } from \"react-native\";\nimport * as Device from \"expo-device\";\n\nexport const osVersion = Device.osVersion || \"0\";\nexport const modelName = Device.modelName || \"Unknown\";\n\nexport const userAgent =\n Platform.OS === \"ios\"\n ? `Mozilla/5.0 (iPhone; CPU iPhone OS ${osVersion\n .toString()\n .replace(/\\./g, \"_\")} like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/${Math.floor(\n Number(osVersion) / 2\n )}.0 Mobile/15E148 Safari/604.1`\n : `Mozilla/5.0 (Linux; Android ${osVersion}; ${modelName}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36`;\n"]}
|
package/dist/chunk-2DNOAXOE.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/eventEmitter.ts"],"sourcesContent":["import type { Order } from \"@crossmint/client-sdk-base\";\nimport mitt from \"mitt\";\n\nexport type LocalEventEmitterEvents = {\n \"order:updated\": {\n order?: Order;\n orderClientSecret?: string;\n };\n \"order:creation-failed\": {\n errorMessage: string;\n };\n};\n\n// Create a singleton instance for global use\nexport const localEventEmitter = mitt<LocalEventEmitterEvents>();\n"],"mappings":";AACA,OAAO,UAAU;AAaV,IAAM,oBAAoB,KAA8B;","names":[]}
|
package/dist/chunk-2TEAOLM6.mjs
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
theme
|
|
3
|
-
} from "./chunk-3AWDWMZ2.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__async
|
|
6
|
-
} from "./chunk-7SPIOD4K.mjs";
|
|
7
|
-
|
|
8
|
-
// src/components/signers/BaseConfirmation.tsx
|
|
9
|
-
import { useState } from "react";
|
|
10
|
-
import { View, Text, TouchableOpacity, StyleSheet, ActivityIndicator } from "react-native";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
function BaseConfirmation({
|
|
13
|
-
contactInfo,
|
|
14
|
-
contactType,
|
|
15
|
-
icon,
|
|
16
|
-
onConfirm,
|
|
17
|
-
onCancel,
|
|
18
|
-
appearance
|
|
19
|
-
}) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
21
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
22
|
-
const [error, setError] = useState(null);
|
|
23
|
-
const handleConfirm = () => __async(this, null, function* () {
|
|
24
|
-
setIsLoading(true);
|
|
25
|
-
setError(null);
|
|
26
|
-
try {
|
|
27
|
-
yield onConfirm();
|
|
28
|
-
} catch (error2) {
|
|
29
|
-
console.error(`Failed to send ${contactType} code`, error2);
|
|
30
|
-
setError(`Failed to send ${contactType === "email" ? "email" : "SMS"}. Please try again.`);
|
|
31
|
-
} finally {
|
|
32
|
-
setIsLoading(false);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const dynamicStyles = StyleSheet.create({
|
|
36
|
-
container: {
|
|
37
|
-
width: "100%"
|
|
38
|
-
},
|
|
39
|
-
title: {
|
|
40
|
-
fontSize: 24,
|
|
41
|
-
fontWeight: "600",
|
|
42
|
-
color: ((_a = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _a.textPrimary) || theme["cm-text-primary"],
|
|
43
|
-
textAlign: "center",
|
|
44
|
-
marginBottom: 8
|
|
45
|
-
},
|
|
46
|
-
description: {
|
|
47
|
-
fontSize: 16,
|
|
48
|
-
color: ((_b = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _b.textSecondary) || theme["cm-text-secondary"],
|
|
49
|
-
textAlign: "center",
|
|
50
|
-
marginBottom: 24,
|
|
51
|
-
lineHeight: 22
|
|
52
|
-
},
|
|
53
|
-
contactContainer: {
|
|
54
|
-
borderWidth: 1,
|
|
55
|
-
borderColor: ((_c = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _c.border) || theme["cm-border"],
|
|
56
|
-
borderRadius: (appearance == null ? void 0 : appearance.borderRadius) || 12,
|
|
57
|
-
padding: 16,
|
|
58
|
-
marginBottom: 24,
|
|
59
|
-
flexDirection: "row",
|
|
60
|
-
alignItems: "center"
|
|
61
|
-
},
|
|
62
|
-
contactText: {
|
|
63
|
-
fontSize: 16,
|
|
64
|
-
color: ((_d = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _d.textPrimary) || theme["cm-text-primary"],
|
|
65
|
-
marginLeft: 12,
|
|
66
|
-
flex: 1
|
|
67
|
-
},
|
|
68
|
-
errorText: {
|
|
69
|
-
fontSize: 14,
|
|
70
|
-
color: ((_e = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _e.danger) || theme["cm-danger"],
|
|
71
|
-
textAlign: "center",
|
|
72
|
-
marginBottom: 16
|
|
73
|
-
},
|
|
74
|
-
buttonContainer: {
|
|
75
|
-
flexDirection: "row",
|
|
76
|
-
gap: 12
|
|
77
|
-
},
|
|
78
|
-
button: {
|
|
79
|
-
flex: 1,
|
|
80
|
-
paddingVertical: 16,
|
|
81
|
-
paddingHorizontal: 24,
|
|
82
|
-
borderRadius: 999,
|
|
83
|
-
alignItems: "center",
|
|
84
|
-
justifyContent: "center",
|
|
85
|
-
minHeight: 52
|
|
86
|
-
},
|
|
87
|
-
primaryButton: {
|
|
88
|
-
backgroundColor: ((_f = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _f.accent) || theme["cm-accent"]
|
|
89
|
-
},
|
|
90
|
-
secondaryButton: {
|
|
91
|
-
backgroundColor: "transparent",
|
|
92
|
-
borderWidth: 1,
|
|
93
|
-
borderColor: ((_g = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _g.border) || theme["cm-border"]
|
|
94
|
-
},
|
|
95
|
-
disabledButton: {
|
|
96
|
-
opacity: 0.6
|
|
97
|
-
},
|
|
98
|
-
buttonText: {
|
|
99
|
-
fontSize: 16,
|
|
100
|
-
fontWeight: "500",
|
|
101
|
-
color: ((_h = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _h.background) || theme["cm-background-primary"]
|
|
102
|
-
},
|
|
103
|
-
secondaryButtonText: {
|
|
104
|
-
color: ((_i = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _i.textPrimary) || theme["cm-text-primary"]
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
return /* @__PURE__ */ jsxs(View, { style: dynamicStyles.container, children: [
|
|
108
|
-
/* @__PURE__ */ jsx(Text, { style: dynamicStyles.title, children: "Confirm it's you" }),
|
|
109
|
-
/* @__PURE__ */ jsxs(Text, { style: dynamicStyles.description, children: [
|
|
110
|
-
"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code",
|
|
111
|
-
contactType === "phone" ? " via SMS" : "",
|
|
112
|
-
"."
|
|
113
|
-
] }),
|
|
114
|
-
/* @__PURE__ */ jsxs(View, { style: dynamicStyles.contactContainer, children: [
|
|
115
|
-
icon,
|
|
116
|
-
/* @__PURE__ */ jsx(Text, { style: dynamicStyles.contactText, children: contactInfo })
|
|
117
|
-
] }),
|
|
118
|
-
error && /* @__PURE__ */ jsx(Text, { style: dynamicStyles.errorText, children: error }),
|
|
119
|
-
/* @__PURE__ */ jsxs(View, { style: dynamicStyles.buttonContainer, children: [
|
|
120
|
-
/* @__PURE__ */ jsx(
|
|
121
|
-
TouchableOpacity,
|
|
122
|
-
{
|
|
123
|
-
style: [dynamicStyles.button, dynamicStyles.secondaryButton],
|
|
124
|
-
onPress: onCancel,
|
|
125
|
-
disabled: isLoading,
|
|
126
|
-
children: /* @__PURE__ */ jsx(Text, { style: [dynamicStyles.buttonText, dynamicStyles.secondaryButtonText], children: "Cancel" })
|
|
127
|
-
}
|
|
128
|
-
),
|
|
129
|
-
/* @__PURE__ */ jsx(
|
|
130
|
-
TouchableOpacity,
|
|
131
|
-
{
|
|
132
|
-
style: [
|
|
133
|
-
dynamicStyles.button,
|
|
134
|
-
dynamicStyles.primaryButton,
|
|
135
|
-
isLoading && dynamicStyles.disabledButton
|
|
136
|
-
],
|
|
137
|
-
onPress: handleConfirm,
|
|
138
|
-
disabled: isLoading,
|
|
139
|
-
children: isLoading ? /* @__PURE__ */ jsx(ActivityIndicator, { color: ((_j = appearance == null ? void 0 : appearance.colors) == null ? void 0 : _j.background) || theme["cm-background-primary"] }) : /* @__PURE__ */ jsx(Text, { style: dynamicStyles.buttonText, children: "Send code" })
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] })
|
|
143
|
-
] });
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export {
|
|
147
|
-
BaseConfirmation
|
|
148
|
-
};
|
|
149
|
-
//# sourceMappingURL=chunk-2TEAOLM6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/signers/BaseConfirmation.tsx"],"sourcesContent":["import { useState, type ReactNode } from \"react\";\nimport { View, Text, TouchableOpacity, StyleSheet, ActivityIndicator } from \"react-native\";\nimport type { UIConfig } from \"@crossmint/common-sdk-base\";\nimport { theme } from \"../../styles/theme\";\n\ninterface BaseConfirmationProps {\n contactInfo: string;\n contactType: \"email\" | \"phone\";\n icon: ReactNode;\n onConfirm: () => Promise<void>;\n onCancel?: () => void;\n appearance?: UIConfig;\n}\n\nexport function BaseConfirmation({\n contactInfo,\n contactType,\n icon,\n onConfirm,\n onCancel,\n appearance,\n}: BaseConfirmationProps) {\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const handleConfirm = async () => {\n setIsLoading(true);\n setError(null);\n try {\n await onConfirm();\n } catch (error) {\n console.error(`Failed to send ${contactType} code`, error);\n setError(`Failed to send ${contactType === \"email\" ? \"email\" : \"SMS\"}. Please try again.`);\n } finally {\n setIsLoading(false);\n }\n };\n\n const dynamicStyles = StyleSheet.create({\n container: {\n width: \"100%\",\n },\n title: {\n fontSize: 24,\n fontWeight: \"600\",\n color: appearance?.colors?.textPrimary || theme[\"cm-text-primary\"],\n textAlign: \"center\",\n marginBottom: 8,\n },\n description: {\n fontSize: 16,\n color: appearance?.colors?.textSecondary || theme[\"cm-text-secondary\"],\n textAlign: \"center\",\n marginBottom: 24,\n lineHeight: 22,\n },\n contactContainer: {\n borderWidth: 1,\n borderColor: appearance?.colors?.border || theme[\"cm-border\"],\n borderRadius: appearance?.borderRadius || 12,\n padding: 16,\n marginBottom: 24,\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n contactText: {\n fontSize: 16,\n color: appearance?.colors?.textPrimary || theme[\"cm-text-primary\"],\n marginLeft: 12,\n flex: 1,\n },\n errorText: {\n fontSize: 14,\n color: appearance?.colors?.danger || theme[\"cm-danger\"],\n textAlign: \"center\",\n marginBottom: 16,\n },\n buttonContainer: {\n flexDirection: \"row\",\n gap: 12,\n },\n button: {\n flex: 1,\n paddingVertical: 16,\n paddingHorizontal: 24,\n borderRadius: 999,\n alignItems: \"center\",\n justifyContent: \"center\",\n minHeight: 52,\n },\n primaryButton: {\n backgroundColor: appearance?.colors?.accent || theme[\"cm-accent\"],\n },\n secondaryButton: {\n backgroundColor: \"transparent\",\n borderWidth: 1,\n borderColor: appearance?.colors?.border || theme[\"cm-border\"],\n },\n disabledButton: {\n opacity: 0.6,\n },\n buttonText: {\n fontSize: 16,\n fontWeight: \"500\",\n color: appearance?.colors?.background || theme[\"cm-background-primary\"],\n },\n secondaryButtonText: {\n color: appearance?.colors?.textPrimary || theme[\"cm-text-primary\"],\n },\n });\n\n return (\n <View style={dynamicStyles.container}>\n <Text style={dynamicStyles.title}>Confirm it's you</Text>\n <Text style={dynamicStyles.description}>\n You're using this wallet for the first time on this device. Click 'Send code' to get a one-time\n verification code{contactType === \"phone\" ? \" via SMS\" : \"\"}.\n </Text>\n\n <View style={dynamicStyles.contactContainer}>\n {icon}\n <Text style={dynamicStyles.contactText}>{contactInfo}</Text>\n </View>\n\n {error && <Text style={dynamicStyles.errorText}>{error}</Text>}\n\n <View style={dynamicStyles.buttonContainer}>\n <TouchableOpacity\n style={[dynamicStyles.button, dynamicStyles.secondaryButton]}\n onPress={onCancel}\n disabled={isLoading}\n >\n <Text style={[dynamicStyles.buttonText, dynamicStyles.secondaryButtonText]}>Cancel</Text>\n </TouchableOpacity>\n\n <TouchableOpacity\n style={[\n dynamicStyles.button,\n dynamicStyles.primaryButton,\n isLoading && dynamicStyles.disabledButton,\n ]}\n onPress={handleConfirm}\n disabled={isLoading}\n >\n {isLoading ? (\n <ActivityIndicator color={appearance?.colors?.background || theme[\"cm-background-primary\"]} />\n ) : (\n <Text style={dynamicStyles.buttonText}>Send code</Text>\n )}\n </TouchableOpacity>\n </View>\n </View>\n );\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,gBAAgC;AACzC,SAAS,MAAM,MAAM,kBAAkB,YAAY,yBAAyB;AAgHhE,cACA,YADA;AAnGL,SAAS,iBAAiB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAA0B;AArB1B;AAsBI,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAwB,IAAI;AAEtD,QAAM,gBAAgB,MAAY;AAC9B,iBAAa,IAAI;AACjB,aAAS,IAAI;AACb,QAAI;AACA,YAAM,UAAU;AAAA,IACpB,SAASA,QAAO;AACZ,cAAQ,MAAM,kBAAkB,WAAW,SAASA,MAAK;AACzD,eAAS,kBAAkB,gBAAgB,UAAU,UAAU,KAAK,qBAAqB;AAAA,IAC7F,UAAE;AACE,mBAAa,KAAK;AAAA,IACtB;AAAA,EACJ;AAEA,QAAM,gBAAgB,WAAW,OAAO;AAAA,IACpC,WAAW;AAAA,MACP,OAAO;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACH,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,SAAO,8CAAY,WAAZ,mBAAoB,gBAAe,MAAM,iBAAiB;AAAA,MACjE,WAAW;AAAA,MACX,cAAc;AAAA,IAClB;AAAA,IACA,aAAa;AAAA,MACT,UAAU;AAAA,MACV,SAAO,8CAAY,WAAZ,mBAAoB,kBAAiB,MAAM,mBAAmB;AAAA,MACrE,WAAW;AAAA,MACX,cAAc;AAAA,MACd,YAAY;AAAA,IAChB;AAAA,IACA,kBAAkB;AAAA,MACd,aAAa;AAAA,MACb,eAAa,8CAAY,WAAZ,mBAAoB,WAAU,MAAM,WAAW;AAAA,MAC5D,eAAc,yCAAY,iBAAgB;AAAA,MAC1C,SAAS;AAAA,MACT,cAAc;AAAA,MACd,eAAe;AAAA,MACf,YAAY;AAAA,IAChB;AAAA,IACA,aAAa;AAAA,MACT,UAAU;AAAA,MACV,SAAO,8CAAY,WAAZ,mBAAoB,gBAAe,MAAM,iBAAiB;AAAA,MACjE,YAAY;AAAA,MACZ,MAAM;AAAA,IACV;AAAA,IACA,WAAW;AAAA,MACP,UAAU;AAAA,MACV,SAAO,8CAAY,WAAZ,mBAAoB,WAAU,MAAM,WAAW;AAAA,MACtD,WAAW;AAAA,MACX,cAAc;AAAA,IAClB;AAAA,IACA,iBAAiB;AAAA,MACb,eAAe;AAAA,MACf,KAAK;AAAA,IACT;AAAA,IACA,QAAQ;AAAA,MACJ,MAAM;AAAA,MACN,iBAAiB;AAAA,MACjB,mBAAmB;AAAA,MACnB,cAAc;AAAA,MACd,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,WAAW;AAAA,IACf;AAAA,IACA,eAAe;AAAA,MACX,mBAAiB,8CAAY,WAAZ,mBAAoB,WAAU,MAAM,WAAW;AAAA,IACpE;AAAA,IACA,iBAAiB;AAAA,MACb,iBAAiB;AAAA,MACjB,aAAa;AAAA,MACb,eAAa,8CAAY,WAAZ,mBAAoB,WAAU,MAAM,WAAW;AAAA,IAChE;AAAA,IACA,gBAAgB;AAAA,MACZ,SAAS;AAAA,IACb;AAAA,IACA,YAAY;AAAA,MACR,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,SAAO,8CAAY,WAAZ,mBAAoB,eAAc,MAAM,uBAAuB;AAAA,IAC1E;AAAA,IACA,qBAAqB;AAAA,MACjB,SAAO,8CAAY,WAAZ,mBAAoB,gBAAe,MAAM,iBAAiB;AAAA,IACrE;AAAA,EACJ,CAAC;AAED,SACI,qBAAC,QAAK,OAAO,cAAc,WACvB;AAAA,wBAAC,QAAK,OAAO,cAAc,OAAO,8BAAgB;AAAA,IAClD,qBAAC,QAAK,OAAO,cAAc,aAAa;AAAA;AAAA,MAElB,gBAAgB,UAAU,aAAa;AAAA,MAAG;AAAA,OAChE;AAAA,IAEA,qBAAC,QAAK,OAAO,cAAc,kBACtB;AAAA;AAAA,MACD,oBAAC,QAAK,OAAO,cAAc,aAAc,uBAAY;AAAA,OACzD;AAAA,IAEC,SAAS,oBAAC,QAAK,OAAO,cAAc,WAAY,iBAAM;AAAA,IAEvD,qBAAC,QAAK,OAAO,cAAc,iBACvB;AAAA;AAAA,QAAC;AAAA;AAAA,UACG,OAAO,CAAC,cAAc,QAAQ,cAAc,eAAe;AAAA,UAC3D,SAAS;AAAA,UACT,UAAU;AAAA,UAEV,8BAAC,QAAK,OAAO,CAAC,cAAc,YAAY,cAAc,mBAAmB,GAAG,oBAAM;AAAA;AAAA,MACtF;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACG,OAAO;AAAA,YACH,cAAc;AAAA,YACd,cAAc;AAAA,YACd,aAAa,cAAc;AAAA,UAC/B;AAAA,UACA,SAAS;AAAA,UACT,UAAU;AAAA,UAET,sBACG,oBAAC,qBAAkB,SAAO,8CAAY,WAAZ,mBAAoB,eAAc,MAAM,uBAAuB,GAAG,IAE5F,oBAAC,QAAK,OAAO,cAAc,YAAY,uBAAS;AAAA;AAAA,MAExD;AAAA,OACJ;AAAA,KACJ;AAER;","names":["error"]}
|