@crossmint/client-sdk-react-native-ui 1.0.4 → 1.1.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/chunk-2LHAVQDL.js +1 -0
- package/dist/chunk-37TKX2AS.js +1 -0
- package/dist/{chunk-SNGN2C5V.js → chunk-3FBCOA5Q.js} +1 -1
- package/dist/chunk-3FPXEECQ.js +1 -0
- package/dist/chunk-3LVSYXD6.mjs +1 -0
- package/dist/chunk-4EBFS2LY.mjs +1 -0
- package/dist/chunk-4EVH2LVP.js +1 -0
- package/dist/chunk-4GUZHOD6.js +1 -0
- package/dist/chunk-4XI5PNDY.mjs +1 -0
- package/dist/chunk-5276D2J3.js +1 -0
- package/dist/chunk-55P442RU.js +1 -0
- package/dist/chunk-5OGTOGBE.js +2 -0
- package/dist/chunk-5XTVBDZD.js +1 -0
- package/dist/chunk-67Z6QY5X.mjs +1 -0
- package/dist/chunk-6EHK6FE4.mjs +1 -0
- package/dist/chunk-6SC5DDHW.js +1 -0
- package/dist/chunk-7573EHPC.mjs +1 -0
- package/dist/{chunk-R4AKS6SV.js → chunk-7AMJYMIL.js} +1 -1
- package/dist/chunk-7S7G5AEZ.js +1 -0
- package/dist/chunk-7UXEUMEA.mjs +2 -0
- package/dist/chunk-A32QK47S.js +1 -0
- package/dist/chunk-AXQNJ6P5.mjs +1 -0
- package/dist/chunk-AY4NQNL2.js +1 -0
- package/dist/chunk-BP63EHIH.mjs +1 -0
- package/dist/chunk-CB4O4U7N.js +1 -0
- package/dist/chunk-CVNNPHHC.mjs +1 -0
- package/dist/chunk-DAERG6FM.js +1 -0
- package/dist/chunk-DCWNSPWC.js +1 -0
- package/dist/chunk-E5XQNXJ6.mjs +1 -0
- package/dist/chunk-EU5BBX2G.js +1 -0
- package/dist/chunk-EUIDKBS7.js +1 -0
- package/dist/chunk-FHG7Y3B2.js +1 -0
- package/dist/chunk-FKHEMIRR.js +1 -0
- package/dist/chunk-FUXBVE4N.mjs +1 -0
- package/dist/chunk-GTBJ6SM6.mjs +1 -0
- package/dist/chunk-GUSANCWE.mjs +1 -0
- package/dist/chunk-GYFXX3S4.js +1 -0
- package/dist/chunk-HCABBSIE.mjs +1 -0
- package/dist/chunk-HNQKTLQ5.js +1 -0
- package/dist/{chunk-7JOOUJJ2.js → chunk-IMGW2ENF.js} +3 -3
- package/dist/chunk-INFBLVRX.js +1 -0
- package/dist/chunk-IVKDLJHC.mjs +1 -0
- package/dist/chunk-JDI5YAT3.mjs +1 -0
- package/dist/chunk-L3XYSJK3.js +1 -0
- package/dist/chunk-LZHSNX3O.js +1 -0
- package/dist/chunk-MVBKLS3P.mjs +1 -0
- package/dist/chunk-NAZHVLXC.mjs +1 -0
- package/dist/chunk-NBK4T7QJ.js +1 -0
- package/dist/chunk-ND3HLTOS.mjs +1 -0
- package/dist/chunk-NR7JUGTU.js +1 -0
- package/dist/chunk-O4HZNHTS.mjs +1 -0
- package/dist/{chunk-R4DCEEUP.mjs → chunk-OP5W4CEA.mjs} +3 -3
- package/dist/chunk-PEZ37X4S.js +1 -0
- package/dist/chunk-PZXSKAWQ.mjs +1 -0
- package/dist/chunk-Q4IW3VOW.mjs +1 -0
- package/dist/chunk-QZP5C7M5.mjs +1 -0
- package/dist/chunk-RZ5NAERX.mjs +1 -0
- package/dist/chunk-S5O4QBFM.mjs +1 -0
- package/dist/chunk-SOJZCPJL.mjs +1 -0
- package/dist/chunk-SPG5LDJQ.mjs +1 -0
- package/dist/chunk-TJRVTCJX.mjs +2 -0
- package/dist/{chunk-RIKAIN6N.js → chunk-TWZI6S7U.js} +1 -1
- package/dist/chunk-TZKIJ5KX.mjs +1 -0
- package/dist/chunk-UJTROZMN.js +1 -0
- package/dist/chunk-UYWLWCLN.mjs +1 -0
- package/dist/chunk-UZIY546T.js +2 -0
- package/dist/chunk-VECZ4E3A.mjs +1 -0
- package/dist/chunk-VG3RYWDG.mjs +1 -0
- package/dist/chunk-VS54UJOO.mjs +1 -0
- package/dist/chunk-VZ5LCEL6.js +1 -0
- package/dist/chunk-W5BITU26.mjs +1 -0
- package/dist/{chunk-2U67EBAU.js → chunk-WJP5GQ35.js} +1 -1
- package/dist/chunk-WWBVTF23.mjs +1 -0
- package/dist/{chunk-TQIJ7OZD.js → chunk-X5DFNNBV.js} +1 -1
- package/dist/chunk-XD7WEGQZ.mjs +1 -0
- package/dist/chunk-XIBSZLHT.js +1 -0
- package/dist/chunk-XONQWEM5.mjs +1 -0
- package/dist/chunk-YRWIRSZH.js +1 -0
- package/dist/components/embed/index.js +1 -1
- package/dist/components/embed/index.mjs +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.mjs +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.js +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.mjs +1 -1
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.js +1 -1
- package/dist/components/embed/v3/crypto/PayerConnectionHandler.mjs +1 -1
- package/dist/components/embed/v3/index.js +1 -1
- package/dist/components/embed/v3/index.mjs +1 -1
- package/dist/components/icons/MailCheckIcon.js +1 -1
- package/dist/components/icons/MailCheckIcon.mjs +1 -1
- package/dist/components/icons/MailIcon.js +1 -1
- package/dist/components/icons/MailIcon.mjs +1 -1
- package/dist/components/icons/PhoneIcon.js +1 -1
- package/dist/components/icons/PhoneIcon.mjs +1 -1
- package/dist/components/icons/PngIcon.js +1 -1
- package/dist/components/icons/PngIcon.mjs +1 -1
- package/dist/components/icons/SmartphoneIcon.js +1 -1
- package/dist/components/icons/SmartphoneIcon.mjs +1 -1
- package/dist/components/icons/XIcon.js +1 -1
- package/dist/components/icons/XIcon.mjs +1 -1
- package/dist/components/icons/index.js +1 -1
- package/dist/components/icons/index.mjs +1 -1
- package/dist/components/icons/types.js +1 -1
- package/dist/components/icons/types.mjs +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/signers/BaseCodeInput.js +1 -1
- package/dist/components/signers/BaseCodeInput.mjs +1 -1
- package/dist/components/signers/BaseConfirmation.js +1 -1
- package/dist/components/signers/BaseConfirmation.mjs +1 -1
- package/dist/components/signers/EmailSignersDialog.js +1 -1
- package/dist/components/signers/EmailSignersDialog.mjs +1 -1
- package/dist/components/signers/PhoneSignersDialog.js +1 -1
- package/dist/components/signers/PhoneSignersDialog.mjs +1 -1
- package/dist/components/signers/index.js +1 -1
- package/dist/components/signers/index.mjs +1 -1
- package/dist/components/wallets/ExportPrivateKeyButton.js +1 -1
- package/dist/components/wallets/ExportPrivateKeyButton.mjs +1 -1
- package/dist/components/wallets/index.js +1 -1
- package/dist/components/wallets/index.mjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/useAuth.js +1 -1
- package/dist/hooks/useAuth.mjs +1 -1
- package/dist/hooks/useCrossmintCheckout.js +1 -1
- package/dist/hooks/useCrossmintCheckout.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/logger/init.js +1 -1
- package/dist/logger/init.mjs +1 -1
- package/dist/native/NativeDeviceSignerKeyStorage.js +1 -1
- package/dist/native/NativeDeviceSignerKeyStorage.mjs +1 -1
- package/dist/native/SoftwareDeviceSignerKeyStorage.d.mts +37 -0
- package/dist/native/SoftwareDeviceSignerKeyStorage.d.ts +37 -0
- package/dist/native/SoftwareDeviceSignerKeyStorage.js +1 -0
- package/dist/native/SoftwareDeviceSignerKeyStorage.mjs +1 -0
- package/dist/native/createDeviceSignerKeyStorage.d.mts +20 -0
- package/dist/native/createDeviceSignerKeyStorage.d.ts +20 -0
- package/dist/native/createDeviceSignerKeyStorage.js +1 -0
- package/dist/native/createDeviceSignerKeyStorage.mjs +1 -0
- package/dist/plugin/mods/addQueryToAndroidManifest.js +1 -1
- package/dist/plugin/mods/addQueryToAndroidManifest.mjs +1 -1
- package/dist/plugin/withCrossmintUI.js +1 -1
- package/dist/plugin/withCrossmintUI.mjs +1 -1
- package/dist/plugin/withDeviceSigner.js +1 -1
- package/dist/plugin/withDeviceSigner.mjs +1 -1
- package/dist/plugin/withGooglePay.js +1 -1
- package/dist/plugin/withGooglePay.mjs +1 -1
- package/dist/providers/CrossmintAuthProvider.js +1 -1
- package/dist/providers/CrossmintAuthProvider.mjs +1 -1
- package/dist/providers/CrossmintProvider.d.mts +2 -2
- package/dist/providers/CrossmintProvider.d.ts +2 -2
- package/dist/providers/CrossmintProvider.js +1 -1
- package/dist/providers/CrossmintProvider.mjs +1 -1
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/CrossmintWalletProvider.mjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.mjs +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/index.mjs +1 -1
- package/dist/styles/theme.js +1 -1
- package/dist/styles/theme.mjs +1 -1
- package/dist/types/auth.js +1 -1
- package/dist/types/auth.mjs +1 -0
- package/dist/utils/SecureStorage.js +1 -1
- package/dist/utils/SecureStorage.mjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/dist/utils/createCrossmintApiClient.mjs +1 -1
- package/dist/utils/embed/userAgent.js +1 -1
- package/dist/utils/embed/userAgent.mjs +1 -1
- package/dist/utils/eventEmitter.js +1 -1
- package/dist/utils/eventEmitter.mjs +1 -1
- package/package.json +14 -12
- package/dist/chunk-2D2RJCVX.js +0 -1
- package/dist/chunk-2PX34LDU.js +0 -1
- package/dist/chunk-2RDEJU3T.js +0 -2
- package/dist/chunk-2UY6GCV3.js +0 -1
- package/dist/chunk-3G67LZY4.js +0 -2
- package/dist/chunk-3TFUHD5V.mjs +0 -1
- package/dist/chunk-4P5ABAFD.mjs +0 -1
- package/dist/chunk-4PB62QZH.mjs +0 -1
- package/dist/chunk-5CLFJLE4.mjs +0 -0
- package/dist/chunk-6N7XF54Y.mjs +0 -1
- package/dist/chunk-72MMCJ2E.js +0 -1
- package/dist/chunk-77GXCNDP.js +0 -1
- package/dist/chunk-7JGGPJBX.mjs +0 -1
- package/dist/chunk-7USVT6EZ.mjs +0 -1
- package/dist/chunk-AHAHB7QD.mjs +0 -1
- package/dist/chunk-AJMHVVST.js +0 -1
- package/dist/chunk-BOG3QIA2.js +0 -1
- package/dist/chunk-C62HRWJA.js +0 -1
- package/dist/chunk-C7S2X5RD.mjs +0 -1
- package/dist/chunk-D4347S2W.mjs +0 -1
- package/dist/chunk-DKQZSNOO.js +0 -1
- package/dist/chunk-DL5D6VSE.mjs +0 -1
- package/dist/chunk-EI5LOD4Y.js +0 -1
- package/dist/chunk-FFQ6EQCL.mjs +0 -1
- package/dist/chunk-FVINRPAB.js +0 -1
- package/dist/chunk-I3QSTPTV.mjs +0 -0
- package/dist/chunk-I4D3YJW2.js +0 -1
- package/dist/chunk-IJN37RF2.js +0 -1
- package/dist/chunk-INFXPCQ2.js +0 -1
- package/dist/chunk-IUDQDPIN.mjs +0 -1
- package/dist/chunk-J62V5BQX.mjs +0 -1
- package/dist/chunk-J7Q2R6UH.mjs +0 -0
- package/dist/chunk-JPPAYHQP.js +0 -1
- package/dist/chunk-K6ZOIECD.mjs +0 -1
- package/dist/chunk-L3FU4JVL.mjs +0 -1
- package/dist/chunk-LHEOII54.js +0 -1
- package/dist/chunk-LOFHVHXQ.js +0 -1
- package/dist/chunk-MB7H3PBJ.mjs +0 -0
- package/dist/chunk-MIIWRDK7.mjs +0 -1
- package/dist/chunk-NG4FYS2Z.mjs +0 -1
- package/dist/chunk-NNGGH73Y.mjs +0 -1
- package/dist/chunk-NSOPIJTO.mjs +0 -1
- package/dist/chunk-NVBPI6JQ.js +0 -1
- package/dist/chunk-PCJMDUSI.mjs +0 -1
- package/dist/chunk-PHECZO2O.mjs +0 -1
- package/dist/chunk-QE2FX5MA.mjs +0 -1
- package/dist/chunk-QHJA7VYD.js +0 -1
- package/dist/chunk-QHTHMZZV.mjs +0 -1
- package/dist/chunk-RWTMQGU7.js +0 -1
- package/dist/chunk-S75MIWI2.js +0 -1
- package/dist/chunk-T6FKCQE2.js +0 -1
- package/dist/chunk-TIQGKXQA.mjs +0 -0
- package/dist/chunk-TSRZEXRU.mjs +0 -1
- package/dist/chunk-TVASK7FQ.js +0 -1
- package/dist/chunk-U3CLRKGH.js +0 -1
- package/dist/chunk-UBHIBMTA.mjs +0 -0
- package/dist/chunk-UO2GSJW5.js +0 -1
- package/dist/chunk-W4PUVHWF.mjs +0 -2
- package/dist/chunk-W62R4744.js +0 -1
- package/dist/chunk-WDMEQNBX.mjs +0 -1
- package/dist/chunk-WH3PVAVN.js +0 -1
- package/dist/chunk-XZ5LQIRB.mjs +0 -1
- package/dist/chunk-YJIX6E2P.mjs +0 -0
- package/dist/chunk-YMCYXFCG.mjs +0 -2
- package/dist/chunk-YQEWHOQ7.js +0 -1
- package/dist/chunk-Z36IMAC2.js +0 -1
- package/dist/chunk-ZP2QWJOD.mjs +0 -1
package/dist/chunk-WDMEQNBX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-7USVT6EZ.mjs";import{f as w}from"./chunk-4P5ABAFD.mjs";import{useState as P}from"react";import{View as d,Text as n,TouchableOpacity as k,StyleSheet as W,ActivityIndicator as H}from"react-native";import{jsx as r,jsxs as s}from"react/jsx-runtime";function N({contactInfo:I,contactType:e,icon:v,onConfirm:z,onCancel:R,appearance:t}){var u,g,f,b,x,C,h,T,S,B;let[l,m]=P(!1),[c,y]=P(null),V=()=>w(this,null,function*(){m(!0),y(null);try{yield z()}catch(A){console.error(`Failed to send ${e} code`,A),y(`Failed to send ${e==="email"?"email":"SMS"}. Please try again.`)}finally{m(!1)}}),o=W.create({container:{width:"100%"},title:{fontSize:24,fontWeight:"600",color:((u=t==null?void 0:t.colors)==null?void 0:u.textPrimary)||i["cm-text-primary"],textAlign:"center",marginBottom:8},description:{fontSize:16,color:((g=t==null?void 0:t.colors)==null?void 0:g.textSecondary)||i["cm-text-secondary"],textAlign:"center",marginBottom:24,lineHeight:22},contactContainer:{borderWidth:1,borderColor:((f=t==null?void 0:t.colors)==null?void 0:f.border)||i["cm-border"],borderRadius:(t==null?void 0:t.borderRadius)||12,padding:16,marginBottom:24,flexDirection:"row",alignItems:"center"},contactText:{fontSize:16,color:((b=t==null?void 0:t.colors)==null?void 0:b.textPrimary)||i["cm-text-primary"],marginLeft:12,flex:1},errorText:{fontSize:14,color:((x=t==null?void 0:t.colors)==null?void 0:x.danger)||i["cm-danger"],textAlign:"center",marginBottom:16},buttonContainer:{flexDirection:"row",gap:12},button:{flex:1,paddingVertical:16,paddingHorizontal:24,borderRadius:999,alignItems:"center",justifyContent:"center",minHeight:52},primaryButton:{backgroundColor:((C=t==null?void 0:t.colors)==null?void 0:C.accent)||i["cm-accent"]},secondaryButton:{backgroundColor:"transparent",borderWidth:1,borderColor:((h=t==null?void 0:t.colors)==null?void 0:h.border)||i["cm-border"]},disabledButton:{opacity:.6},buttonText:{fontSize:16,fontWeight:"500",color:((T=t==null?void 0:t.colors)==null?void 0:T.background)||i["cm-background-primary"]},secondaryButtonText:{color:((S=t==null?void 0:t.colors)==null?void 0:S.textPrimary)||i["cm-text-primary"]}});return s(d,{style:o.container,children:[r(n,{style:o.title,children:"Confirm it's you"}),s(n,{style:o.description,children:["You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code",e==="phone"?" via SMS":"","."]}),s(d,{style:o.contactContainer,children:[v,r(n,{style:o.contactText,children:I})]}),c&&r(n,{style:o.errorText,children:c}),s(d,{style:o.buttonContainer,children:[r(k,{style:[o.button,o.secondaryButton],onPress:R,disabled:l,children:r(n,{style:[o.buttonText,o.secondaryButtonText],children:"Cancel"})}),r(k,{style:[o.button,o.primaryButton,l&&o.disabledButton],onPress:V,disabled:l,children:l?r(H,{color:((B=t==null?void 0:t.colors)==null?void 0:B.background)||i["cm-background-primary"]}):r(n,{style:o.buttonText,children:"Send code"})})]})]})}export{N as a};
|
package/dist/chunk-WH3PVAVN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI5LOD4Yjs = require('./chunk-EI5LOD4Y.js');var _chunkIJN37RF2js = require('./chunk-IJN37RF2.js');var _react = require('react');var _reactnative = require('react-native');var _jsxruntime = require('react/jsx-runtime');function M({contactInfo:I,contactType:e,icon:v,onConfirm:z,onCancel:R,appearance:t}){var u,g,f,b,x,C,h,T,S,B;let[l,m]=_react.useState.call(void 0, !1),[c,y]=_react.useState.call(void 0, null),V=()=>_chunkIJN37RF2js.f.call(void 0, this,null,function*(){m(!0),y(null);try{yield z()}catch(A){console.error(`Failed to send ${e} code`,A),y(`Failed to send ${e==="email"?"email":"SMS"}. Please try again.`)}finally{m(!1)}}),o=_reactnative.StyleSheet.create({container:{width:"100%"},title:{fontSize:24,fontWeight:"600",color:((u=t==null?void 0:t.colors)==null?void 0:u.textPrimary)||_chunkEI5LOD4Yjs.a["cm-text-primary"],textAlign:"center",marginBottom:8},description:{fontSize:16,color:((g=t==null?void 0:t.colors)==null?void 0:g.textSecondary)||_chunkEI5LOD4Yjs.a["cm-text-secondary"],textAlign:"center",marginBottom:24,lineHeight:22},contactContainer:{borderWidth:1,borderColor:((f=t==null?void 0:t.colors)==null?void 0:f.border)||_chunkEI5LOD4Yjs.a["cm-border"],borderRadius:(t==null?void 0:t.borderRadius)||12,padding:16,marginBottom:24,flexDirection:"row",alignItems:"center"},contactText:{fontSize:16,color:((b=t==null?void 0:t.colors)==null?void 0:b.textPrimary)||_chunkEI5LOD4Yjs.a["cm-text-primary"],marginLeft:12,flex:1},errorText:{fontSize:14,color:((x=t==null?void 0:t.colors)==null?void 0:x.danger)||_chunkEI5LOD4Yjs.a["cm-danger"],textAlign:"center",marginBottom:16},buttonContainer:{flexDirection:"row",gap:12},button:{flex:1,paddingVertical:16,paddingHorizontal:24,borderRadius:999,alignItems:"center",justifyContent:"center",minHeight:52},primaryButton:{backgroundColor:((C=t==null?void 0:t.colors)==null?void 0:C.accent)||_chunkEI5LOD4Yjs.a["cm-accent"]},secondaryButton:{backgroundColor:"transparent",borderWidth:1,borderColor:((h=t==null?void 0:t.colors)==null?void 0:h.border)||_chunkEI5LOD4Yjs.a["cm-border"]},disabledButton:{opacity:.6},buttonText:{fontSize:16,fontWeight:"500",color:((T=t==null?void 0:t.colors)==null?void 0:T.background)||_chunkEI5LOD4Yjs.a["cm-background-primary"]},secondaryButtonText:{color:((S=t==null?void 0:t.colors)==null?void 0:S.textPrimary)||_chunkEI5LOD4Yjs.a["cm-text-primary"]}});return _jsxruntime.jsxs.call(void 0, _reactnative.View,{style:o.container,children:[_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:o.title,children:"Confirm it's you"}),_jsxruntime.jsxs.call(void 0, _reactnative.Text,{style:o.description,children:["You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code",e==="phone"?" via SMS":"","."]}),_jsxruntime.jsxs.call(void 0, _reactnative.View,{style:o.contactContainer,children:[v,_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:o.contactText,children:I})]}),c&&_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:o.errorText,children:c}),_jsxruntime.jsxs.call(void 0, _reactnative.View,{style:o.buttonContainer,children:[_jsxruntime.jsx.call(void 0, _reactnative.TouchableOpacity,{style:[o.button,o.secondaryButton],onPress:R,disabled:l,children:_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:[o.buttonText,o.secondaryButtonText],children:"Cancel"})}),_jsxruntime.jsx.call(void 0, _reactnative.TouchableOpacity,{style:[o.button,o.primaryButton,l&&o.disabledButton],onPress:V,disabled:l,children:l?_jsxruntime.jsx.call(void 0, _reactnative.ActivityIndicator,{color:((B=t==null?void 0:t.colors)==null?void 0:B.background)||_chunkEI5LOD4Yjs.a["cm-background-primary"]}):_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:o.buttonText,children:"Send code"})})]})]})}exports.a = M;
|
package/dist/chunk-XZ5LQIRB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-7JGGPJBX.mjs";import{e as I}from"./chunk-4P5ABAFD.mjs";var r=I((t,e)=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAxUlEQVR4AeyVbQrCQAxEqx5F9Gyi51E8m+JR/Ji3mIXQlM0PhUK3ZJZt8oa0oXTXw5+vqQZn9X1K76Rg8Qj3ETUAPAqLakqHAYsHrwMouIRuDhKx17JKClboYF72RVEDy90LkVuMNW91jRK18qNNb9AcZB9RH1FzAk1geV/RTTN5SOmY3Yj472/Tjy8weoOX8sSOJSljzVttUYPrt8q8s2cyLDbzsi+KGpxUuUijp1FuKmDx4HVM1AAAcKNN9kyGxSOLjw8AAAD//6BjmDAAAAAGSURBVAMAy+IoMbHLqDcAAAAASUVORK5CYII="});import{jsx as m}from"react/jsx-runtime";function u({size:n=22,color:p,strokeWidth:c=2}){return m(o,{source:r(),size:n,color:p})}export{u as a};
|
package/dist/chunk-YJIX6E2P.mjs
DELETED
|
File without changes
|
package/dist/chunk-YMCYXFCG.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as w}from"./chunk-TSRZEXRU.mjs";import{a as T}from"./chunk-NG4FYS2Z.mjs";import{a as k}from"./chunk-WDMEQNBX.mjs";import{a as f}from"./chunk-C7S2X5RD.mjs";import{a as C}from"./chunk-J62V5BQX.mjs";import{a as e}from"./chunk-7USVT6EZ.mjs";import{View as l,Modal as M,StyleSheet as R,Dimensions as B,TouchableOpacity as E,Text as x}from"react-native";import{jsx as t,jsxs as I}from"react/jsx-runtime";var{width:z}=B.get("window");function X({email:i,open:n,setOpen:S,step:O,onSubmitOTP:v,onResendOTPCode:P,onSubmitEmail:V,rejectRef:r,appearance:o}){var m,u,c,g,b,h;function s(){var y;n&&((y=r.current)==null||y.call(r,new Error),S(!1))}let d=R.create({centeredView:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center",padding:16},modalView:{backgroundColor:((m=o==null?void 0:o.colors)==null?void 0:m.background)||e["cm-background-primary"],borderRadius:(o==null?void 0:o.borderRadius)||12,padding:32,alignItems:"center",width:Math.min(z-32,400),maxHeight:"80%",position:"relative",shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5},closeButton:{position:"absolute",top:16,right:16,width:32,height:32,borderRadius:6,backgroundColor:((u=o==null?void 0:o.colors)==null?void 0:u.inputBackground)||e["cm-muted-primary"],alignItems:"center",justifyContent:"center",zIndex:1}});return n?t(M,{visible:n,transparent:!0,animationType:"fade",onRequestClose:s,statusBarTranslucent:!0,children:t(l,{style:d.centeredView,children:I(l,{style:d.modalView,children:[t(E,{style:d.closeButton,onPress:s,hitSlop:{top:10,bottom:10,left:10,right:10},children:t(w,{size:16,color:((c=o==null?void 0:o.colors)==null?void 0:c.textSecondary)||e["cm-text-secondary"]})}),O==="initial"?t(k,{contactInfo:i!=null?i:"",contactType:"email",icon:t(C,{size:22,color:((g=o==null?void 0:o.colors)==null?void 0:g.textPrimary)||e["cm-text-primary"]}),onConfirm:V,onCancel:s,appearance:o}):t(T,{contactInfo:i!=null?i:"",contactType:"email",icon:t(l,{style:{backgroundColor:((b=o==null?void 0:o.colors)==null?void 0:b.accent)||e["cm-accent"],borderRadius:999,padding:12},children:t(f,{size:22,color:((h=o==null?void 0:o.colors)==null?void 0:h.background)||e["cm-background-primary"]})}),title:"Check your email",description:I(x,{children:["A temporary login code has been sent to"," ",t(x,{style:{fontWeight:"bold"},children:i})]}),helpText:`Can't find the email? Check spam folder.
|
|
2
|
-
Some emails may take several minutes to arrive.`,onSubmitOTP:v,onResendCode:P,appearance:o,otpLength:9,keyboardType:"default",autoComplete:"one-time-code",textContentType:"oneTimeCode"})]})})}):null}export{X as a};
|
package/dist/chunk-YQEWHOQ7.js
DELETED
|
@@ -1 +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; } }var _reactnative = require('react-native');var _expodevice = require('expo-device'); var e = _interopRequireWildcard(_expodevice);var o=e.osVersion||"0",r= exports.b =e.modelName||"Unknown",t= exports.c =_reactnative.Platform.OS==="ios"?`Mozilla/5.0 (iPhone; CPU iPhone OS ${o.toString().replace(/\./g,"_")} like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/${Math.floor(Number(o)/2)}.0 Mobile/15E148 Safari/604.1`:`Mozilla/5.0 (Linux; Android ${o}; ${r}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36`;exports.a = o; exports.b = r; exports.c = t;
|
package/dist/chunk-Z36IMAC2.js
DELETED
|
@@ -1 +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; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkU3CLRKGHjs = require('./chunk-U3CLRKGH.js');var _chunkIJN37RF2js = require('./chunk-IJN37RF2.js');var _react = require('react');var _expowebbrowser = require('expo-web-browser'); var n = _interopRequireWildcard(_expowebbrowser);var _expoconstants = require('expo-constants'); var _expoconstants2 = _interopRequireDefault(_expoconstants);var _reactnative = require('react-native');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');function U(){let r=_react.useContext.call(void 0, w);if(r==null)throw new Error("useCrossmintAuth must be used within a CrossmintAuthProvider");return r}var _jsxruntime = require('react/jsx-runtime');var W={google:null,twitter:null},F={crossmintAuth:void 0,login:()=>{},logout:()=>_chunkIJN37RF2js.f.call(void 0, void 0,null,function*(){}),jwt:void 0,user:void 0,status:"initializing",getUser:()=>{},loginWithOAuth:()=>Promise.resolve(),createAuthSession:()=>Promise.resolve(null)},w= exports.a =_react.createContext.call(void 0, F);function G({children:r}){let{setJwt:e}=_clientsdkreactbase.useCrossmint.call(void 0, ),{jwt:t}=U();return _react.useEffect.call(void 0, ()=>{e(t)},[e,t]),r}function V({children:r,appSchema:e}){let t=_clientsdkreactbase.useCrossmintAuthBase.call(void 0, ),[h,g]=_react.useState.call(void 0, W),[f,i]=_react.useState.call(void 0, !1),A=Array.isArray(e)?e[0]:e,P=_expoconstants2.default.executionEnvironment==="storeClient"||_expoconstants2.default.appOwnership==="expo"||!!_expoconstants2.default.expoVersion?"exp://127.0.0.1:8081":A,y=_react.useCallback.call(void 0, ()=>_chunkIJN37RF2js.f.call(void 0, this,null,function*(){try{let u=Object.keys(W).map(s=>_chunkIJN37RF2js.f.call(void 0, this,null,function*(){var m;let l=yield(m=t.crossmintAuth)==null?void 0:m.getOAuthUrl(s,{appSchema:P});return{[s]:l}})),a=Object.assign({},...yield Promise.all(u));g(a)}catch(o){console.error(o)}}),[t.crossmintAuth,P]);_react.useEffect.call(void 0, ()=>{t.user==null&&y()},[y,t.user]);let N=()=>t.status==="initializing"?"initializing":f?"in-progress":t.jwt!=null?"logged-in":"logged-out",E=o=>_chunkIJN37RF2js.f.call(void 0, this,null,function*(){var u,a;try{i(!0);let s=(a=h[o])!=null?a:yield(u=t.crossmintAuth)==null?void 0:u.getOAuthUrl(o,{appSchema:P});yield n.warmUpAsync();let l=new URL(s);if(o==="google"&&l.searchParams.append("provider_prompt","select_account"),_reactnative.Platform.OS==="android")yield n.openBrowserAsync(l.toString());else{let m=yield n.openAuthSessionAsync(l.toString());m.type==="success"&&(yield x(m.url))}yield n.coolDownAsync()}catch(s){throw console.error("[CrossmintAuthProvider] Error during OAuth login:",s),new Error(`Error during OAuth login: ${s}`)}finally{i(!1)}}),x=_react.useCallback.call(void 0, o=>_chunkIJN37RF2js.f.call(void 0, this,null,function*(){var a;let u=o.includes("://")?_(o):o;if(u!=null)try{return i(!0),yield(a=t.crossmintAuth)==null?void 0:a.handleRefreshAuthMaterial(u)}catch(s){throw s}finally{i(!1)}return null}),[t.crossmintAuth]);return _jsxruntime.jsx.call(void 0, w.Provider,{value:{crossmintAuth:t.crossmintAuth,logout:t.logout,jwt:t.jwt,user:t.user,status:N(),getUser:t.getUser,login:()=>{},loginWithOAuth:E,createAuthSession:x},children:_jsxruntime.jsx.call(void 0, G,{children:r})})}function ut(t){var h=t,{children:r}=h,e=_chunkIJN37RF2js.d.call(void 0, h,["children"]);var i,A;let g=(A=e.appSchema)!=null?A:(i=_expoconstants2.default.expoConfig)==null?void 0:i.scheme,f=_react.useMemo.call(void 0, ()=>{var C;return(C=e.storageProvider)!=null?C:new _chunkU3CLRKGHjs.a},[e.storageProvider]);return _jsxruntime.jsx.call(void 0, _clientsdkreactbase.CrossmintAuthBaseProvider,{onLoginSuccess:e.onLoginSuccess,refreshRoute:e.refreshRoute,logoutRoute:e.logoutRoute,storageProvider:f,children:_jsxruntime.jsx.call(void 0, V,{appSchema:g,children:r})})}var _=r=>{let e=/[?&]oneTimeSecret=([^&#]+)/,t=r.match(e);return t?decodeURIComponent(t[1]):void 0};exports.a = w; exports.b = ut; exports.c = U; exports.d = _clientsdkreactbase.useCrossmint; exports.e = _clientsdkreactbase.useWallet; exports.f = _clientsdkreactbase.useWalletOtpSigner;
|
package/dist/chunk-ZP2QWJOD.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as o}from"./chunk-4P5ABAFD.mjs";import{useEffect as a}from"react";function u({payer:r,webViewClient:e}){return a(()=>{if(e==null)return;let t=e.on("crypto:send-transaction",l=>o(this,[l],function*({chain:s,serializedTransaction:c}){try{yield r.handleChainSwitch(s);let n=yield r.handleSignAndSendTransaction(c);n.success?e.send("crypto:send-transaction:success",{txId:n.txId}):e.send("crypto:send-transaction:failed",{error:n.errorMessage})}catch(n){console.error("[PayerConnectionHandler] Failed to send transaction",n),e.send("crypto:send-transaction:failed",{error:n.message||"An unknown error occurred"})}}));return()=>{e.off(t)}},[e]),null}export{u as a};
|