@crossmint/client-sdk-react-native-ui 1.2.8 → 1.2.9
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-ABQRUAX5.js → chunk-27GU5SPZ.js} +1 -1
- package/dist/{chunk-HWLFA5UG.mjs → chunk-2OG2MQ54.mjs} +1 -1
- package/dist/{chunk-TMCRBV7K.mjs → chunk-37AEAZHE.mjs} +1 -1
- package/dist/{chunk-IHO3BYEU.js → chunk-3SYE2FK5.js} +1 -1
- package/dist/{chunk-FGRXL2GD.mjs → chunk-6C4MNI2Z.mjs} +1 -1
- package/dist/{chunk-56IPIA4X.js → chunk-6MHQ4FZG.js} +1 -1
- package/dist/{chunk-PM2LO4KN.js → chunk-DM5STWIH.js} +1 -1
- package/dist/{chunk-WFTVJ2AK.js → chunk-FADHNU4V.js} +1 -1
- package/dist/{chunk-IREDECIR.js → chunk-IOFYD4XR.js} +1 -1
- package/dist/{chunk-O6YZRGCV.mjs → chunk-KFHLBGYY.mjs} +1 -1
- package/dist/{chunk-HSQYYJRF.js → chunk-NR4LQKBQ.js} +1 -1
- package/dist/{chunk-22VMQJNT.mjs → chunk-QXSHKTCF.mjs} +1 -1
- package/dist/{chunk-CJ3FRU5E.js → chunk-SW47UKES.js} +1 -1
- package/dist/{chunk-4YIB443L.js → chunk-SZQYKJWY.js} +1 -1
- package/dist/{chunk-DPBIJMXF.mjs → chunk-UJ5SHCOX.mjs} +1 -1
- package/dist/{chunk-RNJ4GXD7.mjs → chunk-VUUYDH5G.mjs} +1 -1
- package/dist/{chunk-LQDC2VM6.mjs → chunk-WBCVUPII.mjs} +1 -1
- package/dist/{chunk-MUFTOAHO.mjs → chunk-WY5GIBWL.mjs} +1 -1
- 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/index.js +1 -1
- package/dist/components/embed/v3/index.mjs +1 -1
- package/dist/components/icons/index.js +1 -1
- package/dist/components/icons/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.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/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/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/utils/createCrossmintApiClient.js +1 -1
- package/dist/utils/createCrossmintApiClient.mjs +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE27445QAjs = require('./chunk-E27445QA.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE27445QAjs = require('./chunk-E27445QA.js');var _chunkSZQYKJWYjs = require('./chunk-SZQYKJWY.js');var _chunkNR4LQKBQjs = require('./chunk-NR4LQKBQ.js');var _chunkDM5STWIHjs = require('./chunk-DM5STWIH.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _react = require('react');var _reactnative = require('react-native');var _clientsdkrnwindow = require('@crossmint/client-sdk-rn-window');var _clientsigners = require('@crossmint/client-signers');var _commonsdkbase = require('@crossmint/common-sdk-base');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _jsxruntime = require('react/jsx-runtime');var X=2,L="Passkey signers are not supported in React Native. Use a different signer type such as 'device', or 'external-wallet'.";function he(u){var c,m;return u==null?!1:!!(((c=u.recovery)==null?void 0:c.type)==="passkey"||(m=u.signers)!=null&&m.some(p=>p.type==="passkey"))}function be({children:u}){let c=_react.useContext.call(void 0, _clientsdkreactbase.CrossmintWalletBaseContext),m=_react.useCallback.call(void 0, f=>_chunkUJ2ZZKXZjs.i.call(void 0, this,null,function*(){var M,x;if(((M=f.recovery)==null?void 0:M.type)==="passkey"||(x=f.signers)!=null&&x.some(r=>r.type==="passkey"))throw new Error(L);return c.createWallet(f)}),[c.createWallet]),p=_react.useCallback.call(void 0, f=>_chunkUJ2ZZKXZjs.i.call(void 0, this,null,function*(){throw new Error(L)}),[]),D=_react.useMemo.call(void 0, ()=>_chunkUJ2ZZKXZjs.b.call(void 0, _chunkUJ2ZZKXZjs.a.call(void 0, {},c),{createWallet:m,createPasskeySigner:p}),[c,m,p]);return _jsxruntime.jsx.call(void 0, _clientsdkreactbase.CrossmintWalletBaseContext.Provider,{value:D,children:u})}function ge({children:u,createOnLogin:c,appearance:m,showOtpSignerPrompt:p=!0,callbacks:D,deviceSignerKeyStorage:f}){let M=_react.useMemo.call(void 0, ()=>f!=null?f:_chunkE27445QAjs.a.call(void 0, ),[]),{crossmint:x}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintWalletProvider must be used within CrossmintProvider"),r=_clientsdkreactbase.useLogger.call(void 0, _chunkSZQYKJWYjs.a),{apiKey:N,appId:O}=x,T=_react.useMemo.call(void 0, ()=>{let e=_commonsdkbase.validateAPIKey.call(void 0, N);if(!e.isValid)throw new Error("Invalid API key");return e},[N]),$=_react.useMemo.call(void 0, ()=>_clientsigners.environmentUrlConfig[T.environment],[T.environment]),k=_react.useRef.call(void 0, null),t=_react.useRef.call(void 0, null),[U,q]=_react.useState.call(void 0, !1),P=_react.useRef.call(void 0, !1),l=_react.useRef.call(void 0, !1),a=_react.useRef.call(void 0, 0),A=_react.useRef.call(void 0, 0),h=_react.useRef.call(void 0, 0),Q=_react.useMemo.call(void 0, ()=>O!=null?{crossmintAppId:O}:{},[O]),d=_react.useCallback.call(void 0, e=>_chunkUJ2ZZKXZjs.i.call(void 0, this,null,function*(){var n;if(t.current!=null){let o=t.current;if(l.current){r.info("react-native.wallet.webview.handshake.skip.in-progress",{trigger:e,generation:a.current});return}if(P.current&&o.isConnected){r.info("react-native.wallet.webview.handshake.skip.already-connected",{trigger:e,generation:a.current});return}l.current=!0;let i=Date.now();A.current=i;let w=a.current;try{r.info("react-native.wallet.webview.handshake.start",{trigger:e,generation:w,platform:_reactnative.Platform.OS}),P.current=!0,o.isConnected=!1,yield o.handshakeWithChild();let s=Date.now()-i;h.current=0,r.info("react-native.wallet.webview.handshake.success",{trigger:e,generation:w,durationMs:s})}catch(s){let E=Date.now()-i,b=s instanceof Error?s.message:String(s),v=b.startsWith("Timed out")||b.startsWith("Max retries");if(v&&h.current<X){h.current++;let g=h.current;r.info("react-native.wallet.webview.handshake.retry",{trigger:e,generation:w,durationMs:E,retryAttempt:g,maxRetries:X,error:b}),a.current++,P.current=!1,l.current=!1,t.current!=null&&(t.current.isConnected=!1),(n=k.current)==null||n.reload(),d("eager");return}h.current=0,w===a.current&&(P.current=!1),r.error("react-native.wallet.webview.handshake.error",{trigger:e,generation:w,durationMs:E,error:b,retriesExhausted:v}),console.error("[CrossmintWalletProvider] Handshake error:",s)}finally{w===a.current&&(l.current=!1)}}else r.warn("react-native.wallet.webview.handshake.skip",{trigger:e,reason:"parent not initialized"})}),[r]);_react.useEffect.call(void 0, ()=>{k.current!=null&&t.current==null&&(r.info("react-native.wallet.webview.initializing"),t.current=new (0, _clientsdkrnwindow.WebViewParent)(k,{incomingEvents:_clientsigners.signerOutboundEvents,outgoingEvents:_clientsigners.signerInboundEvents,handshakeOptions:{timeoutMs:3e4,intervalMs:100},recovery:{recoverableErrorCodes:[_clientsigners.SignerErrorCode.IndexedDbFatal]}}),r.info("react-native.wallet.webview.initialized"),d("eager"))},[U,r,d]);let Z=_react.useCallback.call(void 0, ()=>_chunkUJ2ZZKXZjs.i.call(void 0, this,null,function*(){var e,n;r.info("react-native.wallet.webview.onLoadEnd",{handshakeInProgress:l.current,isConnected:(n=(e=t.current)==null?void 0:e.isConnected)!=null?n:!1,generation:a.current}),yield d("onLoadEnd")}),[r,d]),ee=_react.useCallback.call(void 0, e=>{var i,w;let n=t.current;if(n==null)return;let o=e.nativeEvent.data;if(o==="frame-ready"){r.info("react-native.wallet.webview.frame-ready.received",{handshakeInProgress:l.current,isConnected:(w=(i=t.current)==null?void 0:i.isConnected)!=null?w:!1,generation:a.current,msSinceHandshakeStart:A.current>0?Date.now()-A.current:null}),d("frame-ready");return}try{let s=JSON.parse(o);if(s&&typeof s.type=="string"&&s.type.startsWith("console.")){let E=s.type.split(".")[1],b=(s.data||[]).map(W=>{try{return W==="[Function]"||W==="[Circular Reference]"||W==="[Unserializable Object]"?W:JSON.parse(W)}catch(Ce){return W}}),v=`react-native.wallet.webview.console.${E}`,g={webview_args:b};switch(E){case"log":r.info(v,g);break;case"error":r.error(v,g);break;case"warn":r.warn(v,g);break;case"info":r.info(v,g);break;case"debug":r.debug(v,g);break;default:r.info("react-native.wallet.webview.console.unknown",{webview_method:E,webview_args:b})}return}}catch(s){}n.handleMessage(e)},[r,d]),re=()=>{if(t.current==null)throw new Error("WebView not ready or handshake incomplete");return t.current},te=({emailSignerProps:e,phoneSignerProps:n})=>p?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkNR4LQKBQjs.a,_chunkUJ2ZZKXZjs.a.call(void 0, {},e)),_jsxruntime.jsx.call(void 0, _chunkDM5STWIHjs.a,_chunkUJ2ZZKXZjs.a.call(void 0, {},n))]}):null,ne=()=>_chunkUJ2ZZKXZjs.i.call(void 0, this,null,function*(){r.info("react-native.wallet.webview.init.start"),q(!0);let e=0,n=100;for(;t.current==null&&e<n;)yield new Promise(o=>setTimeout(o,50)),e++;if(t.current==null)throw r.error("react-native.wallet.webview.init.timeout",{attempts:e}),new Error("WebView not ready or handshake incomplete");r.info("react-native.wallet.webview.init.success",{attempts:e})});return _react.useEffect.call(void 0, ()=>{if(he(c))throw new Error(L)},[c]),_jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletBaseProvider,{createOnLogin:c,appearance:m,showOtpSignerPrompt:p,initializeWebView:ne,callbacks:D,renderUI:te,clientTEEConnection:re,deviceSignerKeyStorage:M,children:[_jsxruntime.jsx.call(void 0, be,{children:u}),U&&_jsxruntime.jsx.call(void 0, _reactnative.View,{style:{position:"absolute",width:1,height:1,opacity:0,pointerEvents:"none"},children:_jsxruntime.jsx.call(void 0, _clientsdkrnwindow.RNWebView,{ref:k,source:{uri:$},globals:Q,onLoadEnd:Z,onMessage:ee,onError:e=>{console.error("[CrossmintWalletProvider] WebView error:",e.nativeEvent)},onHttpError:e=>{console.error("[CrossmintWalletProvider] WebView HTTP error:",e.nativeEvent)},onContentProcessDidTerminate:()=>{var n,o,i;let e=a.current;a.current++,r.warn("react-native.wallet.webview.process.terminated",{prevGeneration:e,newGeneration:a.current,wasConnected:(o=(n=t.current)==null?void 0:n.isConnected)!=null?o:!1,hadHandshakeInProgress:l.current}),P.current=!1,l.current=!1,h.current=0,t.current!=null&&(t.current.isConnected=!1),(i=k.current)==null||i.reload(),d("eager")},onRenderProcessGone:()=>{var n,o,i;let e=a.current;a.current++,r.warn("react-native.wallet.webview.process.renderGone",{prevGeneration:e,newGeneration:a.current,wasConnected:(o=(n=t.current)==null?void 0:n.isConnected)!=null?o:!1,hadHandshakeInProgress:l.current}),P.current=!1,l.current=!1,h.current=0,t.current!=null&&(t.current.isConnected=!1),(i=k.current)==null||i.reload(),d("eager")},style:{width:1,height:1},javaScriptCanOpenWindowsAutomatically:!1,thirdPartyCookiesEnabled:!1,sharedCookiesEnabled:!1,incognito:!1,setSupportMultipleWindows:!1,originWhitelist:[_clientsigners.environmentUrlConfig[T.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function Te(u){return _jsxruntime.jsx.call(void 0, ge,_chunkUJ2ZZKXZjs.a.call(void 0, {},u))}exports.a = Te;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-QXSHKTCF.mjs";import{j as n}from"./chunk-MQXUVEHR.mjs";n();import{CrossmintApiClient as r}from"@crossmint/common-sdk-base";function m(t,e){return new r(t,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-native-ui",version:i.version},apiKeyExpectations:e}})}export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as K}from"./chunk-B53SE7VF.mjs";import{a as H}from"./chunk-
|
|
1
|
+
import{a as K}from"./chunk-B53SE7VF.mjs";import{a as H}from"./chunk-KFHLBGYY.mjs";import{a as z}from"./chunk-6C4MNI2Z.mjs";import{a as B}from"./chunk-VUUYDH5G.mjs";import{a as S,b as G,i as R,j as _}from"./chunk-MQXUVEHR.mjs";_();import{useCallback as V,useRef as y,useMemo as I,useEffect as j,useState as ae,useContext as oe}from"react";import{Platform as se,View as ie}from"react-native";import{RNWebView as ce,WebViewParent as le}from"@crossmint/client-sdk-rn-window";import{environmentUrlConfig as F,signerInboundEvents as ue,signerOutboundEvents as de,SignerErrorCode as we}from"@crossmint/client-signers";import{validateAPIKey as fe}from"@crossmint/common-sdk-base";import{CrossmintWalletBaseProvider as ve,CrossmintWalletBaseContext as J,useCrossmint as me}from"@crossmint/client-sdk-react-base";import{useLogger as pe}from"@crossmint/client-sdk-react-base";import{Fragment as ye,jsx as C,jsxs as Y}from"react/jsx-runtime";var X=2,L="Passkey signers are not supported in React Native. Use a different signer type such as 'device', or 'external-wallet'.";function he(u){var c,m;return u==null?!1:!!(((c=u.recovery)==null?void 0:c.type)==="passkey"||(m=u.signers)!=null&&m.some(p=>p.type==="passkey"))}function be({children:u}){let c=oe(J),m=V(f=>R(this,null,function*(){var M,x;if(((M=f.recovery)==null?void 0:M.type)==="passkey"||(x=f.signers)!=null&&x.some(r=>r.type==="passkey"))throw new Error(L);return c.createWallet(f)}),[c.createWallet]),p=V(f=>R(this,null,function*(){throw new Error(L)}),[]),D=I(()=>G(S({},c),{createWallet:m,createPasskeySigner:p}),[c,m,p]);return C(J.Provider,{value:D,children:u})}function ge({children:u,createOnLogin:c,appearance:m,showOtpSignerPrompt:p=!0,callbacks:D,deviceSignerKeyStorage:f}){let M=I(()=>f!=null?f:K(),[]),{crossmint:x}=me("CrossmintWalletProvider must be used within CrossmintProvider"),r=pe(H),{apiKey:N,appId:O}=x,T=I(()=>{let e=fe(N);if(!e.isValid)throw new Error("Invalid API key");return e},[N]),$=I(()=>F[T.environment],[T.environment]),k=y(null),t=y(null),[U,q]=ae(!1),P=y(!1),l=y(!1),a=y(0),A=y(0),h=y(0),Q=I(()=>O!=null?{crossmintAppId:O}:{},[O]),d=V(e=>R(this,null,function*(){var n;if(t.current!=null){let o=t.current;if(l.current){r.info("react-native.wallet.webview.handshake.skip.in-progress",{trigger:e,generation:a.current});return}if(P.current&&o.isConnected){r.info("react-native.wallet.webview.handshake.skip.already-connected",{trigger:e,generation:a.current});return}l.current=!0;let i=Date.now();A.current=i;let w=a.current;try{r.info("react-native.wallet.webview.handshake.start",{trigger:e,generation:w,platform:se.OS}),P.current=!0,o.isConnected=!1,yield o.handshakeWithChild();let s=Date.now()-i;h.current=0,r.info("react-native.wallet.webview.handshake.success",{trigger:e,generation:w,durationMs:s})}catch(s){let E=Date.now()-i,b=s instanceof Error?s.message:String(s),v=b.startsWith("Timed out")||b.startsWith("Max retries");if(v&&h.current<X){h.current++;let g=h.current;r.info("react-native.wallet.webview.handshake.retry",{trigger:e,generation:w,durationMs:E,retryAttempt:g,maxRetries:X,error:b}),a.current++,P.current=!1,l.current=!1,t.current!=null&&(t.current.isConnected=!1),(n=k.current)==null||n.reload(),d("eager");return}h.current=0,w===a.current&&(P.current=!1),r.error("react-native.wallet.webview.handshake.error",{trigger:e,generation:w,durationMs:E,error:b,retriesExhausted:v}),console.error("[CrossmintWalletProvider] Handshake error:",s)}finally{w===a.current&&(l.current=!1)}}else r.warn("react-native.wallet.webview.handshake.skip",{trigger:e,reason:"parent not initialized"})}),[r]);j(()=>{k.current!=null&&t.current==null&&(r.info("react-native.wallet.webview.initializing"),t.current=new le(k,{incomingEvents:de,outgoingEvents:ue,handshakeOptions:{timeoutMs:3e4,intervalMs:100},recovery:{recoverableErrorCodes:[we.IndexedDbFatal]}}),r.info("react-native.wallet.webview.initialized"),d("eager"))},[U,r,d]);let Z=V(()=>R(this,null,function*(){var e,n;r.info("react-native.wallet.webview.onLoadEnd",{handshakeInProgress:l.current,isConnected:(n=(e=t.current)==null?void 0:e.isConnected)!=null?n:!1,generation:a.current}),yield d("onLoadEnd")}),[r,d]),ee=V(e=>{var i,w;let n=t.current;if(n==null)return;let o=e.nativeEvent.data;if(o==="frame-ready"){r.info("react-native.wallet.webview.frame-ready.received",{handshakeInProgress:l.current,isConnected:(w=(i=t.current)==null?void 0:i.isConnected)!=null?w:!1,generation:a.current,msSinceHandshakeStart:A.current>0?Date.now()-A.current:null}),d("frame-ready");return}try{let s=JSON.parse(o);if(s&&typeof s.type=="string"&&s.type.startsWith("console.")){let E=s.type.split(".")[1],b=(s.data||[]).map(W=>{try{return W==="[Function]"||W==="[Circular Reference]"||W==="[Unserializable Object]"?W:JSON.parse(W)}catch(Ce){return W}}),v=`react-native.wallet.webview.console.${E}`,g={webview_args:b};switch(E){case"log":r.info(v,g);break;case"error":r.error(v,g);break;case"warn":r.warn(v,g);break;case"info":r.info(v,g);break;case"debug":r.debug(v,g);break;default:r.info("react-native.wallet.webview.console.unknown",{webview_method:E,webview_args:b})}return}}catch(s){}n.handleMessage(e)},[r,d]),re=()=>{if(t.current==null)throw new Error("WebView not ready or handshake incomplete");return t.current},te=({emailSignerProps:e,phoneSignerProps:n})=>p?Y(ye,{children:[C(z,S({},e)),C(B,S({},n))]}):null,ne=()=>R(this,null,function*(){r.info("react-native.wallet.webview.init.start"),q(!0);let e=0,n=100;for(;t.current==null&&e<n;)yield new Promise(o=>setTimeout(o,50)),e++;if(t.current==null)throw r.error("react-native.wallet.webview.init.timeout",{attempts:e}),new Error("WebView not ready or handshake incomplete");r.info("react-native.wallet.webview.init.success",{attempts:e})});return j(()=>{if(he(c))throw new Error(L)},[c]),Y(ve,{createOnLogin:c,appearance:m,showOtpSignerPrompt:p,initializeWebView:ne,callbacks:D,renderUI:te,clientTEEConnection:re,deviceSignerKeyStorage:M,children:[C(be,{children:u}),U&&C(ie,{style:{position:"absolute",width:1,height:1,opacity:0,pointerEvents:"none"},children:C(ce,{ref:k,source:{uri:$},globals:Q,onLoadEnd:Z,onMessage:ee,onError:e=>{console.error("[CrossmintWalletProvider] WebView error:",e.nativeEvent)},onHttpError:e=>{console.error("[CrossmintWalletProvider] WebView HTTP error:",e.nativeEvent)},onContentProcessDidTerminate:()=>{var n,o,i;let e=a.current;a.current++,r.warn("react-native.wallet.webview.process.terminated",{prevGeneration:e,newGeneration:a.current,wasConnected:(o=(n=t.current)==null?void 0:n.isConnected)!=null?o:!1,hadHandshakeInProgress:l.current}),P.current=!1,l.current=!1,h.current=0,t.current!=null&&(t.current.isConnected=!1),(i=k.current)==null||i.reload(),d("eager")},onRenderProcessGone:()=>{var n,o,i;let e=a.current;a.current++,r.warn("react-native.wallet.webview.process.renderGone",{prevGeneration:e,newGeneration:a.current,wasConnected:(o=(n=t.current)==null?void 0:n.isConnected)!=null?o:!1,hadHandshakeInProgress:l.current}),P.current=!1,l.current=!1,h.current=0,t.current!=null&&(t.current.isConnected=!1),(i=k.current)==null||i.reload(),d("eager")},style:{width:1,height:1},javaScriptCanOpenWindowsAutomatically:!1,thirdPartyCookiesEnabled:!1,sharedCookiesEnabled:!1,incognito:!1,setSupportMultipleWindows:!1,originWhitelist:[F[T.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function Ae(u){return C(ge,S({},u))}export{Ae as a};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 _chunk6MHQ4FZGjs = require('./chunk-6MHQ4FZG.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _commonsdkbase = require('@crossmint/common-sdk-base');var _reactnative = require('react-native');var _expoconstants = require('expo-constants'); var _expoconstants2 = _interopRequireDefault(_expoconstants);var _expodevice = require('expo-device'); var e = _interopRequireWildcard(_expodevice);function _(n,i){var s,c,f,g,v,m,u,l,p,k,L;let t=_commonsdkbase.validateAPIKey.call(void 0, n);if(!t.isValid)throw new Error(`Invalid API key: ${t.message}`);let{environment:d,projectId:N}=t,a=new (0, _commonsdkbase.SdkLogger)({packageName:_chunk6MHQ4FZGjs.a.name,packageVersion:_chunk6MHQ4FZGjs.a.version,environment:d,projectId:N,platform:"react-native",consoleLogLevel:i}),h=(m=(v=(c=(s=_expoconstants2.default.expoConfig)==null?void 0:s.ios)==null?void 0:c.bundleIdentifier)!=null?v:(g=(f=_expoconstants2.default.expoConfig)==null?void 0:f.android)==null?void 0:g.package)!=null?m:void 0,o={};e!=null&&(o.device=(p=(l=(u=e.modelName)!=null?u:e.deviceName)!=null?l:e.brand)!=null?p:void 0,o.os_version=(k=e.osVersion)!=null?k:void 0,o.os_name=(L=e.osName)!=null?L:void 0);let C=new (0, _commonsdkbase.ReactNativeDatadogSink)(d,h,o);return a.addSink(C),y(a),a}function y(n){_reactnative.AppState.addEventListener("change",i=>{(i==="background"||i==="inactive")&&typeof n.flush=="function"&&n.flush()})}exports.a = _;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as T}from"./chunk-QSJ3WM3P.mjs";import{a as w}from"./chunk-Q7FND4V5.mjs";import{a as k}from"./chunk-VIBDMAQ2.mjs";import{a as x}from"./chunk-FZLLUULB.mjs";import{a as e}from"./chunk-NNQRBIYL.mjs";import{a as C}from"./chunk-TAR3YOZH.mjs";import{j as f}from"./chunk-MQXUVEHR.mjs";f();import{View as l,Modal as R,StyleSheet as B,Dimensions as E,TouchableOpacity as z,Text as I}from"react-native";import{jsx as t,jsxs as S}from"react/jsx-runtime";var{width:D}=E.get("window");function j({email:i,open:n,setOpen:O,step:v,onSubmitOTP:P,onResendOTPCode:V,onSubmitEmail:M,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),O(!1))}let d=B.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(D-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(R,{visible:n,transparent:!0,animationType:"fade",onRequestClose:s,statusBarTranslucent:!0,children:t(l,{style:d.centeredView,children:S(l,{style:d.modalView,children:[t(z,{style:d.closeButton,onPress:s,hitSlop:{top:10,bottom:10,left:10,right:10},children:t(k,{size:16,color:((c=o==null?void 0:o.colors)==null?void 0:c.textSecondary)||e["cm-text-secondary"]})}),v==="initial"?t(T,{contactInfo:i!=null?i:"",contactType:"email",icon:t(w,{size:22,color:((g=o==null?void 0:o.colors)==null?void 0:g.textPrimary)||e["cm-text-primary"]}),onConfirm:M,onCancel:s,appearance:o}):t(x,{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(C,{size:22,color:((h=o==null?void 0:o.colors)==null?void 0:h.background)||e["cm-background-primary"]})}),title:"Check your email",description:S(I,{children:["A temporary login code has been sent to"," ",t(I,{style:{fontWeight:"bold"},children:i})]}),helpText:`Can't find the email? Check spam folder.
|
|
2
2
|
Some emails may take several minutes to arrive.`,onSubmitOTP:P,onResendCode:V,appearance:o,otpLength:9,keyboardType:"default",autoComplete:"one-time-code",textContentType:"oneTimeCode"})]})})}):null}export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var o={name:"@crossmint/client-sdk-react-native-ui",version:"1.2.
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var o={name:"@crossmint/client-sdk-react-native-ui",version:"1.2.9",repository:"https://github.com/Crossmint/crossmint-sdk",license:"Apache-2.0",author:"Paella Labs Inc",sideEffects:!1,main:"./dist/index.js",module:"./dist/index.mjs",types:"./dist/index.d.ts",files:["dist","ios","android","expo-module.config.json","app.plugin.js","LICENSE","README.md"],scripts:{build:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",dev:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch","generate:docs":"typedoc && node scripts/generate-reference.mjs"},dependencies:{"@crossmint/client-sdk-auth":"workspace:*","@crossmint/client-sdk-base":"workspace:*","@crossmint/client-sdk-react-base":"workspace:*","@crossmint/client-sdk-rn-window":"workspace:*","@crossmint/client-signers":"workspace:*","@crossmint/common-sdk-auth":"workspace:*","@crossmint/common-sdk-base":"workspace:*","@crossmint/wallets-sdk":"workspace:*","@noble/curves":"1.9.7","@solana/web3.js":"1.98.1",bs58:"^5.0.0","expo-constants":"~18.0.9","expo-device":"~8.0.9","expo-secure-store":"~15.0.7","expo-web-browser":"~15.0.8","lodash.clonedeep":"4.5.0","lodash.isequal":"4.5.0",mitt:"3.0.1","react-native-get-random-values":"2.0.0","react-native-svg":"15.14.0","react-native-webview":"13.15.0",zod:"3.22.4"},devDependencies:{"@expo/config-plugins":"^9.0.17","@types/react":"19.1.10","expo-modules-core":"~3.0.29",typedoc:"0.28.16"},peerDependencies:{"@expo/config-plugins":">=9.0.0","@solana/web3.js":"^1.98.1","expo-modules-core":">=2.0.0",react:">=17.0.2","react-native":">=0.74.3"}};exports.a = o;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHWVRN6WIjs = require('./chunk-HWVRN6WI.js');var _chunk6D2IS3QMjs = require('./chunk-6D2IS3QM.js');var _chunkUSB5CJHJjs = require('./chunk-USB5CJHJ.js');var _chunkDHS5QL3Njs = require('./chunk-DHS5QL3N.js');var _chunk7JVRFVMCjs = require('./chunk-7JVRFVMC.js');var _chunk7RSFPZ6Ejs = require('./chunk-7RSFPZ6E.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _reactnative = require('react-native');var _jsxruntime = require('react/jsx-runtime');var{width:U}=_reactnative.Dimensions.get("window");function L({phone:i,open:n,setOpen:O,step:x,onSubmitOTP:I,onResendOTPCode:M,onSubmitPhone:R,rejectRef:r,appearance:o}){var m,u,c,g,y,b;function s(){var h;n&&((h=r.current)==null||h.call(r,new Error("User cancelled")),O(!1))}let l=_reactnative.StyleSheet.create({modalOverlay:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center",padding:16},modalContainer:{backgroundColor:((m=o==null?void 0:o.colors)==null?void 0:m.background)||_chunk7RSFPZ6Ejs.a["cm-background-primary"],borderRadius:(o==null?void 0:o.borderRadius)||12,padding:32,width:Math.min(U-32,400),maxHeight:"80%",position:"relative",alignItems:"center",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)||_chunk7RSFPZ6Ejs.a["cm-muted-primary"],alignItems:"center",justifyContent:"center",zIndex:1}});return n?_jsxruntime.jsx.call(void 0, _reactnative.Modal,{visible:n,transparent:!0,animationType:"fade",onRequestClose:s,statusBarTranslucent:!0,children:_jsxruntime.jsx.call(void 0, _reactnative.View,{style:l.modalOverlay,children:_jsxruntime.jsxs.call(void 0, _reactnative.View,{style:l.modalContainer,children:[_jsxruntime.jsx.call(void 0, _reactnative.TouchableOpacity,{style:l.closeButton,onPress:s,hitSlop:{top:10,bottom:10,left:10,right:10},children:_jsxruntime.jsx.call(void 0, _chunkDHS5QL3Njs.a,{size:16,color:((c=o==null?void 0:o.colors)==null?void 0:c.textSecondary)||_chunk7RSFPZ6Ejs.a["cm-text-secondary"]})}),x==="initial"?_jsxruntime.jsx.call(void 0, _chunkHWVRN6WIjs.a,{contactInfo:i!=null?i:"",contactType:"phone",icon:_jsxruntime.jsx.call(void 0, _chunk6D2IS3QMjs.a,{size:22,color:((g=o==null?void 0:o.colors)==null?void 0:g.textPrimary)||_chunk7RSFPZ6Ejs.a["cm-text-primary"]}),onConfirm:R,onCancel:s,appearance:o}):_jsxruntime.jsx.call(void 0, _chunk7JVRFVMCjs.a,{contactInfo:i!=null?i:"",contactType:"phone",icon:_jsxruntime.jsx.call(void 0, _reactnative.View,{style:{backgroundColor:((y=o==null?void 0:o.colors)==null?void 0:y.accent)||_chunk7RSFPZ6Ejs.a["cm-accent"],borderRadius:999,padding:12},children:_jsxruntime.jsx.call(void 0, _chunkUSB5CJHJjs.a,{size:22,color:((b=o==null?void 0:o.colors)==null?void 0:b.background)||_chunk7RSFPZ6Ejs.a["cm-background-primary"]})}),title:"Check your phone",description:_jsxruntime.jsxs.call(void 0, _reactnative.Text,{children:["A temporary login code has been sent via SMS to"," ",_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:{fontWeight:"bold"},children:i})]}),helpText:`Can't receive the SMS? Check your phone number.
|
|
2
2
|
Some messages may take several minutes to arrive.`,onSubmitOTP:I,onResendCode:M,appearance:o,otpLength:10,keyboardType:"number-pad",autoComplete:"sms-otp",textContentType:"oneTimeCode"})]})})}):null}exports.a = L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6MHQ4FZGjs = require('./chunk-6MHQ4FZG.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _commonsdkbase = require('@crossmint/common-sdk-base');function C(t,e){return new (0, _commonsdkbase.CrossmintApiClient)(t,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-native-ui",version:_chunk6MHQ4FZGjs.a.version},apiKeyExpectations:e}})}exports.a = C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW47UKESjs = require('./chunk-SW47UKES.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _jsxruntime = require('react/jsx-runtime');function i(t){return _jsxruntime.jsx.call(void 0, _chunkSW47UKESjs.a,_chunkUJ2ZZKXZjs.a.call(void 0, {},t))}exports.a = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-WBCVUPII.mjs";import{j as d}from"./chunk-MQXUVEHR.mjs";d();import{useMemo as l}from"react";import a from"expo-constants";import{CrossmintProvider as x,createLoggerContext as L}from"@crossmint/client-sdk-react-base";import{jsx as g}from"react/jsx-runtime";var P=L();function y({children:c,apiKey:o,overrideBaseUrl:v,appId:e,consoleLogLevel:r}){var t,i,s,n,m;let f=l(()=>C(o,r),[o,r]),p=(m=e!=null?e:(i=(t=a.expoConfig)==null?void 0:t.ios)==null?void 0:i.bundleIdentifier)!=null?m:(n=(s=a.expoConfig)==null?void 0:s.android)==null?void 0:n.package;return g(P.Provider,{value:f,children:g(x,{apiKey:o,appId:p,overrideBaseUrl:v,children:c})})}export{P as a,y as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHWVRN6WIjs = require('./chunk-HWVRN6WI.js');var _chunkIXX52LLPjs = require('./chunk-IXX52LLP.js');var _chunkDHS5QL3Njs = require('./chunk-DHS5QL3N.js');var _chunk7JVRFVMCjs = require('./chunk-7JVRFVMC.js');var _chunk7RSFPZ6Ejs = require('./chunk-7RSFPZ6E.js');var _chunkILCU5W7Rjs = require('./chunk-ILCU5W7R.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _reactnative = require('react-native');var _jsxruntime = require('react/jsx-runtime');var{width:D}=_reactnative.Dimensions.get("window");function X({email:i,open:n,setOpen:O,step:v,onSubmitOTP:P,onResendOTPCode:V,onSubmitEmail:M,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),O(!1))}let d=_reactnative.StyleSheet.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)||_chunk7RSFPZ6Ejs.a["cm-background-primary"],borderRadius:(o==null?void 0:o.borderRadius)||12,padding:32,alignItems:"center",width:Math.min(D-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)||_chunk7RSFPZ6Ejs.a["cm-muted-primary"],alignItems:"center",justifyContent:"center",zIndex:1}});return n?_jsxruntime.jsx.call(void 0, _reactnative.Modal,{visible:n,transparent:!0,animationType:"fade",onRequestClose:s,statusBarTranslucent:!0,children:_jsxruntime.jsx.call(void 0, _reactnative.View,{style:d.centeredView,children:_jsxruntime.jsxs.call(void 0, _reactnative.View,{style:d.modalView,children:[_jsxruntime.jsx.call(void 0, _reactnative.TouchableOpacity,{style:d.closeButton,onPress:s,hitSlop:{top:10,bottom:10,left:10,right:10},children:_jsxruntime.jsx.call(void 0, _chunkDHS5QL3Njs.a,{size:16,color:((c=o==null?void 0:o.colors)==null?void 0:c.textSecondary)||_chunk7RSFPZ6Ejs.a["cm-text-secondary"]})}),v==="initial"?_jsxruntime.jsx.call(void 0, _chunkHWVRN6WIjs.a,{contactInfo:i!=null?i:"",contactType:"email",icon:_jsxruntime.jsx.call(void 0, _chunkIXX52LLPjs.a,{size:22,color:((g=o==null?void 0:o.colors)==null?void 0:g.textPrimary)||_chunk7RSFPZ6Ejs.a["cm-text-primary"]}),onConfirm:M,onCancel:s,appearance:o}):_jsxruntime.jsx.call(void 0, _chunk7JVRFVMCjs.a,{contactInfo:i!=null?i:"",contactType:"email",icon:_jsxruntime.jsx.call(void 0, _reactnative.View,{style:{backgroundColor:((b=o==null?void 0:o.colors)==null?void 0:b.accent)||_chunk7RSFPZ6Ejs.a["cm-accent"],borderRadius:999,padding:12},children:_jsxruntime.jsx.call(void 0, _chunkILCU5W7Rjs.a,{size:22,color:((h=o==null?void 0:o.colors)==null?void 0:h.background)||_chunk7RSFPZ6Ejs.a["cm-background-primary"]})}),title:"Check your email",description:_jsxruntime.jsxs.call(void 0, _reactnative.Text,{children:["A temporary login code has been sent to"," ",_jsxruntime.jsx.call(void 0, _reactnative.Text,{style:{fontWeight:"bold"},children:i})]}),helpText:`Can't find the email? Check spam folder.
|
|
2
2
|
Some emails may take several minutes to arrive.`,onSubmitOTP:P,onResendCode:V,appearance:o,otpLength:9,keyboardType:"default",autoComplete:"one-time-code",textContentType:"oneTimeCode"})]})})}):null}exports.a = X;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var o={name:"@crossmint/client-sdk-react-native-ui",version:"1.2.
|
|
1
|
+
var o={name:"@crossmint/client-sdk-react-native-ui",version:"1.2.9",repository:"https://github.com/Crossmint/crossmint-sdk",license:"Apache-2.0",author:"Paella Labs Inc",sideEffects:!1,main:"./dist/index.js",module:"./dist/index.mjs",types:"./dist/index.d.ts",files:["dist","ios","android","expo-module.config.json","app.plugin.js","LICENSE","README.md"],scripts:{build:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",dev:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch","generate:docs":"typedoc && node scripts/generate-reference.mjs"},dependencies:{"@crossmint/client-sdk-auth":"workspace:*","@crossmint/client-sdk-base":"workspace:*","@crossmint/client-sdk-react-base":"workspace:*","@crossmint/client-sdk-rn-window":"workspace:*","@crossmint/client-signers":"workspace:*","@crossmint/common-sdk-auth":"workspace:*","@crossmint/common-sdk-base":"workspace:*","@crossmint/wallets-sdk":"workspace:*","@noble/curves":"1.9.7","@solana/web3.js":"1.98.1",bs58:"^5.0.0","expo-constants":"~18.0.9","expo-device":"~8.0.9","expo-secure-store":"~15.0.7","expo-web-browser":"~15.0.8","lodash.clonedeep":"4.5.0","lodash.isequal":"4.5.0",mitt:"3.0.1","react-native-get-random-values":"2.0.0","react-native-svg":"15.14.0","react-native-webview":"13.15.0",zod:"3.22.4"},devDependencies:{"@expo/config-plugins":"^9.0.17","@types/react":"19.1.10","expo-modules-core":"~3.0.29",typedoc:"0.28.16"},peerDependencies:{"@expo/config-plugins":">=9.0.0","@solana/web3.js":"^1.98.1","expo-modules-core":">=2.0.0",react:">=17.0.2","react-native":">=0.74.3"}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKC25BH5Yjs = require('./chunk-KC25BH5Y.js');var _chunkO37L7FBLjs = require('./chunk-O37L7FBL.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKC25BH5Yjs = require('./chunk-KC25BH5Y.js');var _chunkO37L7FBLjs = require('./chunk-O37L7FBL.js');var _chunkFADHNU4Vjs = require('./chunk-FADHNU4V.js');var _chunkYCJZ67P2js = require('./chunk-YCJZ67P2.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _react = require('react');var _reactnative = require('react-native');var _clientsdkbase = require('@crossmint/client-sdk-base');var _clientsdkrnwindow = require('@crossmint/client-sdk-rn-window');var _jsxruntime = require('react/jsx-runtime');function Y(t){var u;let[e,C]=_react.useState.call(void 0, null),[v,E]=_react.useState.call(void 0, 0),V=_react.useRef.call(void 0, (u=t.payment.crypto.payer)==null?void 0:u.initialChain),n=_react.useRef.call(void 0, t);if(F(t,n.current)){let r=_chunkUJ2ZZKXZjs.a.call(void 0, {},t),o=H(t,V.current);o.shouldPreserve&&(r.payment.crypto.payer=o.updatedPayer),n.current=r}let{crossmint:i}=_clientsdkreactbase.useCrossmint.call(void 0, ),P=_chunkFADHNU4Vjs.a.call(void 0, i,{usageOrigin:"client"}),k=_clientsdkbase.crossmintEmbeddedCheckoutV3Service.call(void 0, {apiClient:P}),s=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{let r=s.current;if(!r||e)return;let o=new (0, _clientsdkrnwindow.WebViewParent)({current:r},{incomingEvents:_clientsdkbase.embeddedCheckoutV3IncomingEvents,outgoingEvents:_clientsdkbase.embeddedCheckoutV3OutgoingEvents});C(o)},[s.current,e]),_react.useEffect.call(void 0, ()=>{if(e==null)return;let r=a=>E(a.height);e.on("ui:height.changed",r);let o=a=>{_chunkYCJZ67P2js.a.emit("order:updated",a)};return e.on("order:updated",o),()=>{e.off("ui:height.changed"),e.off("order:updated")}},[e]);let S=r=>{e&&e.handleMessage(r)};return _jsxruntime.jsxs.call(void 0, _reactnative.View,{style:{flex:1},children:[_jsxruntime.jsx.call(void 0, _clientsdkrnwindow.RNWebView,{ref:s,globals:i.appId?{crossmintAppId:i.appId}:void 0,source:{uri:k.iframe.getUrl(n.current)},onMessage:S,style:{width:"100%",minWidth:"100%",height:v,backgroundColor:"transparent",overflow:void 0,opacity:1,padding:0,boxShadow:"none",borderWidth:0,transform:[{translateX:0}]},allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,allowsBackForwardNavigationGestures:!1,allowsLinkPreview:!1,scrollEnabled:!0,bounces:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,domStorageEnabled:!0,mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,geolocationEnabled:!0,userAgent:_chunkO37L7FBLjs.c,paymentRequestEnabled:!0}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?_jsxruntime.jsx.call(void 0, _chunkKC25BH5Yjs.a,{payer:n.current.payment.crypto.payer,webViewClient:e}):_jsxruntime.jsx.call(void 0, L,{message:"If 'payment.crypto.enabled' is true, 'payment.crypto.payer' must be provided. Support for not providing a payer is not yet implemented."}):null]})}function F(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function H(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:_chunkUJ2ZZKXZjs.b.call(void 0, _chunkUJ2ZZKXZjs.a.call(void 0, {},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}function L({message:t}){throw new Error(t)}exports.a = Y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk3SYE2FK5js = require('./chunk-3SYE2FK5.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _react = require('react');var _expoconstants = require('expo-constants'); var _expoconstants2 = _interopRequireDefault(_expoconstants);var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _jsxruntime = require('react/jsx-runtime');var P=_clientsdkreactbase.createLoggerContext.call(void 0, );function b({children:c,apiKey:o,overrideBaseUrl:v,appId:e,consoleLogLevel:r}){var t,i,s,n,m;let f=_react.useMemo.call(void 0, ()=>_chunk3SYE2FK5js.a.call(void 0, o,r),[o,r]),p=(m=e!=null?e:(i=(t=_expoconstants2.default.expoConfig)==null?void 0:t.ios)==null?void 0:i.bundleIdentifier)!=null?m:(n=(s=_expoconstants2.default.expoConfig)==null?void 0:s.android)==null?void 0:n.package;return _jsxruntime.jsx.call(void 0, P.Provider,{value:f,children:_jsxruntime.jsx.call(void 0, _clientsdkreactbase.CrossmintProvider,{apiKey:o,appId:p,overrideBaseUrl:v,children:c})})}exports.a = P; exports.b = b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-WY5GIBWL.mjs";import{a as e,j as o}from"./chunk-MQXUVEHR.mjs";o();import{jsx as m}from"react/jsx-runtime";function n(t){return m(d,e({},t))}export{n as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as k}from"./chunk-QSJ3WM3P.mjs";import{a as C}from"./chunk-LY56PZQE.mjs";import{a as S}from"./chunk-XON2LPPB.mjs";import{a as T}from"./chunk-VIBDMAQ2.mjs";import{a as w}from"./chunk-FZLLUULB.mjs";import{a as e}from"./chunk-NNQRBIYL.mjs";import{j as f}from"./chunk-MQXUVEHR.mjs";f();import{View as d,StyleSheet as B,Dimensions as z,Modal as D,TouchableOpacity as V,Text as P}from"react-native";import{jsx as t,jsxs as v}from"react/jsx-runtime";var{width:U}=z.get("window");function X({phone:i,open:n,setOpen:O,step:x,onSubmitOTP:I,onResendOTPCode:M,onSubmitPhone:R,rejectRef:r,appearance:o}){var m,u,c,g,y,b;function s(){var h;n&&((h=r.current)==null||h.call(r,new Error("User cancelled")),O(!1))}let l=B.create({modalOverlay:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center",padding:16},modalContainer:{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,width:Math.min(U-32,400),maxHeight:"80%",position:"relative",alignItems:"center",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(D,{visible:n,transparent:!0,animationType:"fade",onRequestClose:s,statusBarTranslucent:!0,children:t(d,{style:l.modalOverlay,children:v(d,{style:l.modalContainer,children:[t(V,{style:l.closeButton,onPress:s,hitSlop:{top:10,bottom:10,left:10,right:10},children:t(T,{size:16,color:((c=o==null?void 0:o.colors)==null?void 0:c.textSecondary)||e["cm-text-secondary"]})}),x==="initial"?t(k,{contactInfo:i!=null?i:"",contactType:"phone",icon:t(C,{size:22,color:((g=o==null?void 0:o.colors)==null?void 0:g.textPrimary)||e["cm-text-primary"]}),onConfirm:R,onCancel:s,appearance:o}):t(w,{contactInfo:i!=null?i:"",contactType:"phone",icon:t(d,{style:{backgroundColor:((y=o==null?void 0:o.colors)==null?void 0:y.accent)||e["cm-accent"],borderRadius:999,padding:12},children:t(S,{size:22,color:((b=o==null?void 0:o.colors)==null?void 0:b.background)||e["cm-background-primary"]})}),title:"Check your phone",description:v(P,{children:["A temporary login code has been sent via SMS to"," ",t(P,{style:{fontWeight:"bold"},children:i})]}),helpText:`Can't receive the SMS? Check your phone number.
|
|
2
2
|
Some messages may take several minutes to arrive.`,onSubmitOTP:I,onResendCode:M,appearance:o,otpLength:10,keyboardType:"number-pad",autoComplete:"sms-otp",textContentType:"oneTimeCode"})]})})}):null}export{X as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-QXSHKTCF.mjs";import{j as D}from"./chunk-MQXUVEHR.mjs";D();import{SdkLogger as R,ReactNativeDatadogSink as S,validateAPIKey as b}from"@crossmint/common-sdk-base";import{AppState as w}from"react-native";import I from"expo-constants";import*as e from"expo-device";function j(n,i){var s,c,f,g,v,m,u,l,p,k,L;let t=b(n);if(!t.isValid)throw new Error(`Invalid API key: ${t.message}`);let{environment:d,projectId:N}=t,a=new R({packageName:r.name,packageVersion:r.version,environment:d,projectId:N,platform:"react-native",consoleLogLevel:i}),h=(m=(v=(c=(s=I.expoConfig)==null?void 0:s.ios)==null?void 0:c.bundleIdentifier)!=null?v:(g=(f=I.expoConfig)==null?void 0:f.android)==null?void 0:g.package)!=null?m:void 0,o={};e!=null&&(o.device=(p=(l=(u=e.modelName)!=null?u:e.deviceName)!=null?l:e.brand)!=null?p:void 0,o.os_version=(k=e.osVersion)!=null?k:void 0,o.os_name=(L=e.osName)!=null?L:void 0);let C=new S(d,h,o);return a.addSink(C),y(a),a}function y(n){w.addEventListener("change",i=>{(i==="background"||i==="inactive")&&typeof n.flush=="function"&&n.flush()})}export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-R5IJHPXW.mjs";import{c as y}from"./chunk-D3SDPAWK.mjs";import{a as h}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-R5IJHPXW.mjs";import{c as y}from"./chunk-D3SDPAWK.mjs";import{a as h}from"./chunk-2OG2MQ54.mjs";import{a as f}from"./chunk-3XZ5S6JN.mjs";import{a as d,b as m,j as p}from"./chunk-MQXUVEHR.mjs";p();import{useCrossmint as W}from"@crossmint/client-sdk-react-base";import{useEffect as g,useRef as l,useState as w}from"react";import{View as I}from"react-native";import{crossmintEmbeddedCheckoutV3Service as A}from"@crossmint/client-sdk-base";import{RNWebView as M,WebViewParent as R}from"@crossmint/client-sdk-rn-window";import{embeddedCheckoutV3IncomingEvents as O,embeddedCheckoutV3OutgoingEvents as U}from"@crossmint/client-sdk-base";import{jsx as c,jsxs as N}from"react/jsx-runtime";function Z(t){var u;let[e,C]=w(null),[v,E]=w(0),V=l((u=t.payment.crypto.payer)==null?void 0:u.initialChain),n=l(t);if(F(t,n.current)){let r=d({},t),o=H(t,V.current);o.shouldPreserve&&(r.payment.crypto.payer=o.updatedPayer),n.current=r}let{crossmint:i}=W(),P=h(i,{usageOrigin:"client"}),k=A({apiClient:P}),s=l(null);g(()=>{let r=s.current;if(!r||e)return;let o=new R({current:r},{incomingEvents:O,outgoingEvents:U});C(o)},[s.current,e]),g(()=>{if(e==null)return;let r=a=>E(a.height);e.on("ui:height.changed",r);let o=a=>{f.emit("order:updated",a)};return e.on("order:updated",o),()=>{e.off("ui:height.changed"),e.off("order:updated")}},[e]);let S=r=>{e&&e.handleMessage(r)};return N(I,{style:{flex:1},children:[c(M,{ref:s,globals:i.appId?{crossmintAppId:i.appId}:void 0,source:{uri:k.iframe.getUrl(n.current)},onMessage:S,style:{width:"100%",minWidth:"100%",height:v,backgroundColor:"transparent",overflow:void 0,opacity:1,padding:0,boxShadow:"none",borderWidth:0,transform:[{translateX:0}]},allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,allowsBackForwardNavigationGestures:!1,allowsLinkPreview:!1,scrollEnabled:!0,bounces:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,domStorageEnabled:!0,mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,geolocationEnabled:!0,userAgent:y,paymentRequestEnabled:!0}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?c(b,{payer:n.current.payment.crypto.payer,webViewClient:e}):c(L,{message:"If 'payment.crypto.enabled' is true, 'payment.crypto.payer' must be provided. Support for not providing a payer is not yet implemented."}):null]})}function F(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function H(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:m(d({},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}function L({message:t}){throw new Error(t)}export{Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-YH6JB5L2.js');require('../../chunk-TIYUDE7C.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-YH6JB5L2.js');require('../../chunk-TIYUDE7C.js');var _chunkIOFYD4XRjs = require('../../chunk-IOFYD4XR.js');require('../../chunk-SW47UKES.js');require('../../chunk-KC25BH5Y.js');require('../../chunk-O37L7FBL.js');require('../../chunk-FADHNU4V.js');require('../../chunk-YCJZ67P2.js');require('../../chunk-6MHQ4FZG.js');require('../../chunk-UJ2ZZKXZ.js');exports.CrossmintEmbeddedCheckout = _chunkIOFYD4XRjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-7MK66CKW.mjs";import"../../chunk-QEOJTTGG.mjs";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-7MK66CKW.mjs";import"../../chunk-QEOJTTGG.mjs";import{a}from"../../chunk-UJ5SHCOX.mjs";import"../../chunk-WY5GIBWL.mjs";import"../../chunk-R5IJHPXW.mjs";import"../../chunk-D3SDPAWK.mjs";import"../../chunk-2OG2MQ54.mjs";import"../../chunk-3XZ5S6JN.mjs";import"../../chunk-QXSHKTCF.mjs";import"../../chunk-MQXUVEHR.mjs";export{a as CrossmintEmbeddedCheckout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIOFYD4XRjs = require('../../../chunk-IOFYD4XR.js');require('../../../chunk-SW47UKES.js');require('../../../chunk-KC25BH5Y.js');require('../../../chunk-O37L7FBL.js');require('../../../chunk-FADHNU4V.js');require('../../../chunk-YCJZ67P2.js');require('../../../chunk-6MHQ4FZG.js');require('../../../chunk-UJ2ZZKXZ.js');exports.CrossmintEmbeddedCheckout = _chunkIOFYD4XRjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-UJ5SHCOX.mjs";import"../../../chunk-WY5GIBWL.mjs";import"../../../chunk-R5IJHPXW.mjs";import"../../../chunk-D3SDPAWK.mjs";import"../../../chunk-2OG2MQ54.mjs";import"../../../chunk-3XZ5S6JN.mjs";import"../../../chunk-QXSHKTCF.mjs";import"../../../chunk-MQXUVEHR.mjs";export{a as CrossmintEmbeddedCheckout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW47UKESjs = require('../../../chunk-SW47UKES.js');require('../../../chunk-KC25BH5Y.js');require('../../../chunk-O37L7FBL.js');require('../../../chunk-FADHNU4V.js');require('../../../chunk-YCJZ67P2.js');require('../../../chunk-6MHQ4FZG.js');require('../../../chunk-UJ2ZZKXZ.js');exports.EmbeddedCheckoutV3WebView = _chunkSW47UKESjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-WY5GIBWL.mjs";import"../../../chunk-R5IJHPXW.mjs";import"../../../chunk-D3SDPAWK.mjs";import"../../../chunk-2OG2MQ54.mjs";import"../../../chunk-3XZ5S6JN.mjs";import"../../../chunk-QXSHKTCF.mjs";import"../../../chunk-MQXUVEHR.mjs";export{a as EmbeddedCheckoutV3WebView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-TIYUDE7C.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-TIYUDE7C.js');var _chunkIOFYD4XRjs = require('../../../chunk-IOFYD4XR.js');require('../../../chunk-SW47UKES.js');require('../../../chunk-KC25BH5Y.js');require('../../../chunk-O37L7FBL.js');require('../../../chunk-FADHNU4V.js');require('../../../chunk-YCJZ67P2.js');require('../../../chunk-6MHQ4FZG.js');require('../../../chunk-UJ2ZZKXZ.js');exports.CrossmintEmbeddedCheckout = _chunkIOFYD4XRjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../chunk-QEOJTTGG.mjs";import{a}from"../../../chunk-
|
|
1
|
+
import"../../../chunk-QEOJTTGG.mjs";import{a}from"../../../chunk-UJ5SHCOX.mjs";import"../../../chunk-WY5GIBWL.mjs";import"../../../chunk-R5IJHPXW.mjs";import"../../../chunk-D3SDPAWK.mjs";import"../../../chunk-2OG2MQ54.mjs";import"../../../chunk-3XZ5S6JN.mjs";import"../../../chunk-QXSHKTCF.mjs";import"../../../chunk-MQXUVEHR.mjs";export{a as CrossmintEmbeddedCheckout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-GRV4I3A3.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-GRV4I3A3.js');var _chunkIXX52LLPjs = require('../../chunk-IXX52LLP.js');var _chunk6D2IS3QMjs = require('../../chunk-6D2IS3QM.js');var _chunkUSB5CJHJjs = require('../../chunk-USB5CJHJ.js');var _chunkDHS5QL3Njs = require('../../chunk-DHS5QL3N.js');var _chunkILCU5W7Rjs = require('../../chunk-ILCU5W7R.js');require('../../chunk-MN53XU2K.js');require('../../chunk-UJ2ZZKXZ.js');exports.MailCheckIcon = _chunkILCU5W7Rjs.a; exports.MailIcon = _chunkIXX52LLPjs.a; exports.PhoneIcon = _chunk6D2IS3QMjs.a; exports.SmartphoneIcon = _chunkUSB5CJHJjs.a; exports.XIcon = _chunkDHS5QL3Njs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-MST7DPZX.mjs";import{a as
|
|
1
|
+
import"../../chunk-MST7DPZX.mjs";import{a as b}from"../../chunk-Q7FND4V5.mjs";import{a as c}from"../../chunk-LY56PZQE.mjs";import{a as d}from"../../chunk-XON2LPPB.mjs";import{a as e}from"../../chunk-VIBDMAQ2.mjs";import{a}from"../../chunk-TAR3YOZH.mjs";import"../../chunk-7T2TZQ6N.mjs";import"../../chunk-MQXUVEHR.mjs";export{a as MailCheckIcon,b as MailIcon,c as PhoneIcon,d as SmartphoneIcon,e as XIcon};
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-LHUIIVKS.js');require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-LHUIIVKS.js');require('../chunk-5LCSBRG2.js');require('../chunk-7HHKCWRG.js');var _chunkWDZ5ARQJjs = require('../chunk-WDZ5ARQJ.js');require('../chunk-YH6JB5L2.js');require('../chunk-TIYUDE7C.js');var _chunkIOFYD4XRjs = require('../chunk-IOFYD4XR.js');require('../chunk-SW47UKES.js');require('../chunk-KC25BH5Y.js');require('../chunk-O37L7FBL.js');require('../chunk-FADHNU4V.js');var _chunkNR4LQKBQjs = require('../chunk-NR4LQKBQ.js');var _chunkDM5STWIHjs = require('../chunk-DM5STWIH.js');require('../chunk-HWVRN6WI.js');require('../chunk-GRV4I3A3.js');require('../chunk-IXX52LLP.js');require('../chunk-6D2IS3QM.js');require('../chunk-USB5CJHJ.js');require('../chunk-DHS5QL3N.js');require('../chunk-7JVRFVMC.js');require('../chunk-7RSFPZ6E.js');require('../chunk-ILCU5W7R.js');require('../chunk-MN53XU2K.js');require('../chunk-YCJZ67P2.js');require('../chunk-6MHQ4FZG.js');require('../chunk-UJ2ZZKXZ.js');exports.CrossmintEmbeddedCheckout = _chunkIOFYD4XRjs.a; exports.EmailSignersDialog = _chunkNR4LQKBQjs.a; exports.ExportPrivateKeyButton = _chunkWDZ5ARQJjs.a; exports.PhoneSignersDialog = _chunkDM5STWIHjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-OLQY6A2R.mjs";import"../chunk-VVIYX33C.mjs";import{a as d}from"../chunk-TSBXPXHP.mjs";import"../chunk-
|
|
1
|
+
import"../chunk-OLQY6A2R.mjs";import"../chunk-XHI6LDBZ.mjs";import"../chunk-VVIYX33C.mjs";import{a as d}from"../chunk-TSBXPXHP.mjs";import"../chunk-7MK66CKW.mjs";import"../chunk-QEOJTTGG.mjs";import{a as c}from"../chunk-UJ5SHCOX.mjs";import"../chunk-WY5GIBWL.mjs";import"../chunk-R5IJHPXW.mjs";import"../chunk-D3SDPAWK.mjs";import"../chunk-2OG2MQ54.mjs";import{a}from"../chunk-6C4MNI2Z.mjs";import{a as b}from"../chunk-VUUYDH5G.mjs";import"../chunk-QSJ3WM3P.mjs";import"../chunk-MST7DPZX.mjs";import"../chunk-Q7FND4V5.mjs";import"../chunk-LY56PZQE.mjs";import"../chunk-XON2LPPB.mjs";import"../chunk-VIBDMAQ2.mjs";import"../chunk-FZLLUULB.mjs";import"../chunk-NNQRBIYL.mjs";import"../chunk-TAR3YOZH.mjs";import"../chunk-7T2TZQ6N.mjs";import"../chunk-3XZ5S6JN.mjs";import"../chunk-QXSHKTCF.mjs";import"../chunk-MQXUVEHR.mjs";export{c as CrossmintEmbeddedCheckout,a as EmailSignersDialog,d as ExportPrivateKeyButton,b as PhoneSignersDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNR4LQKBQjs = require('../../chunk-NR4LQKBQ.js');require('../../chunk-HWVRN6WI.js');require('../../chunk-GRV4I3A3.js');require('../../chunk-IXX52LLP.js');require('../../chunk-6D2IS3QM.js');require('../../chunk-USB5CJHJ.js');require('../../chunk-DHS5QL3N.js');require('../../chunk-7JVRFVMC.js');require('../../chunk-7RSFPZ6E.js');require('../../chunk-ILCU5W7R.js');require('../../chunk-MN53XU2K.js');require('../../chunk-UJ2ZZKXZ.js');exports.EmailSignersDialog = _chunkNR4LQKBQjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-6C4MNI2Z.mjs";import"../../chunk-QSJ3WM3P.mjs";import"../../chunk-MST7DPZX.mjs";import"../../chunk-Q7FND4V5.mjs";import"../../chunk-LY56PZQE.mjs";import"../../chunk-XON2LPPB.mjs";import"../../chunk-VIBDMAQ2.mjs";import"../../chunk-FZLLUULB.mjs";import"../../chunk-NNQRBIYL.mjs";import"../../chunk-TAR3YOZH.mjs";import"../../chunk-7T2TZQ6N.mjs";import"../../chunk-MQXUVEHR.mjs";export{a as EmailSignersDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDM5STWIHjs = require('../../chunk-DM5STWIH.js');require('../../chunk-HWVRN6WI.js');require('../../chunk-GRV4I3A3.js');require('../../chunk-IXX52LLP.js');require('../../chunk-6D2IS3QM.js');require('../../chunk-USB5CJHJ.js');require('../../chunk-DHS5QL3N.js');require('../../chunk-7JVRFVMC.js');require('../../chunk-7RSFPZ6E.js');require('../../chunk-ILCU5W7R.js');require('../../chunk-MN53XU2K.js');require('../../chunk-UJ2ZZKXZ.js');exports.PhoneSignersDialog = _chunkDM5STWIHjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-VUUYDH5G.mjs";import"../../chunk-QSJ3WM3P.mjs";import"../../chunk-MST7DPZX.mjs";import"../../chunk-Q7FND4V5.mjs";import"../../chunk-LY56PZQE.mjs";import"../../chunk-XON2LPPB.mjs";import"../../chunk-VIBDMAQ2.mjs";import"../../chunk-FZLLUULB.mjs";import"../../chunk-NNQRBIYL.mjs";import"../../chunk-TAR3YOZH.mjs";import"../../chunk-7T2TZQ6N.mjs";import"../../chunk-MQXUVEHR.mjs";export{a as PhoneSignersDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5LCSBRG2.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5LCSBRG2.js');var _chunkNR4LQKBQjs = require('../../chunk-NR4LQKBQ.js');var _chunkDM5STWIHjs = require('../../chunk-DM5STWIH.js');require('../../chunk-HWVRN6WI.js');require('../../chunk-GRV4I3A3.js');require('../../chunk-IXX52LLP.js');require('../../chunk-6D2IS3QM.js');require('../../chunk-USB5CJHJ.js');require('../../chunk-DHS5QL3N.js');require('../../chunk-7JVRFVMC.js');require('../../chunk-7RSFPZ6E.js');require('../../chunk-ILCU5W7R.js');require('../../chunk-MN53XU2K.js');require('../../chunk-UJ2ZZKXZ.js');exports.EmailSignersDialog = _chunkNR4LQKBQjs.a; exports.PhoneSignersDialog = _chunkDM5STWIHjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-XHI6LDBZ.mjs";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-XHI6LDBZ.mjs";import{a}from"../../chunk-6C4MNI2Z.mjs";import{a as b}from"../../chunk-VUUYDH5G.mjs";import"../../chunk-QSJ3WM3P.mjs";import"../../chunk-MST7DPZX.mjs";import"../../chunk-Q7FND4V5.mjs";import"../../chunk-LY56PZQE.mjs";import"../../chunk-XON2LPPB.mjs";import"../../chunk-VIBDMAQ2.mjs";import"../../chunk-FZLLUULB.mjs";import"../../chunk-NNQRBIYL.mjs";import"../../chunk-TAR3YOZH.mjs";import"../../chunk-7T2TZQ6N.mjs";import"../../chunk-MQXUVEHR.mjs";export{a as EmailSignersDialog,b as PhoneSignersDialog};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-LGFXZLML.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-LGFXZLML.js');var _chunk27GU5SPZjs = require('./chunk-27GU5SPZ.js');require('./chunk-E27445QA.js');var _chunkSZQYKJWYjs = require('./chunk-SZQYKJWY.js');require('./chunk-LHUIIVKS.js');require('./chunk-5LCSBRG2.js');require('./chunk-7HHKCWRG.js');var _chunkWDZ5ARQJjs = require('./chunk-WDZ5ARQJ.js');require('./chunk-YH6JB5L2.js');require('./chunk-TIYUDE7C.js');var _chunkIOFYD4XRjs = require('./chunk-IOFYD4XR.js');require('./chunk-SW47UKES.js');require('./chunk-KC25BH5Y.js');require('./chunk-O37L7FBL.js');require('./chunk-FADHNU4V.js');var _chunkNR4LQKBQjs = require('./chunk-NR4LQKBQ.js');var _chunkDM5STWIHjs = require('./chunk-DM5STWIH.js');require('./chunk-HWVRN6WI.js');require('./chunk-GRV4I3A3.js');require('./chunk-IXX52LLP.js');require('./chunk-6D2IS3QM.js');require('./chunk-USB5CJHJ.js');require('./chunk-DHS5QL3N.js');require('./chunk-7JVRFVMC.js');require('./chunk-7RSFPZ6E.js');require('./chunk-ILCU5W7R.js');require('./chunk-MN53XU2K.js');var _chunkZMWG2W3Ljs = require('./chunk-ZMWG2W3L.js');require('./chunk-7F5UBHFN.js');var _chunk34DRTZGRjs = require('./chunk-34DRTZGR.js');require('./chunk-YCJZ67P2.js');require('./chunk-3SYE2FK5.js');require('./chunk-6MHQ4FZG.js');require('./chunk-GJ2G6EXX.js');require('./chunk-YK3HC7C7.js');var _chunkUJ2ZZKXZjs = require('./chunk-UJ2ZZKXZ.js');_chunkUJ2ZZKXZjs.j.call(void 0, );var _walletssdk = require('@crossmint/wallets-sdk');exports.CrossmintAuthProvider = _chunkZMWG2W3Ljs.b; exports.CrossmintCheckoutProvider = _chunk34DRTZGRjs.a; exports.CrossmintEmbeddedCheckout = _chunkIOFYD4XRjs.a; exports.CrossmintProvider = _chunkSZQYKJWYjs.b; exports.CrossmintWalletProvider = _chunk27GU5SPZjs.a; exports.EVMWallet = _walletssdk.EVMWallet; exports.EmailSignersDialog = _chunkNR4LQKBQjs.a; exports.ExportPrivateKeyButton = _chunkWDZ5ARQJjs.a; exports.PhoneSignersDialog = _chunkDM5STWIHjs.a; exports.SolanaWallet = _walletssdk.SolanaWallet; exports.StellarWallet = _walletssdk.StellarWallet; exports.Wallet = _walletssdk.Wallet; exports.useCrossmint = _chunkZMWG2W3Ljs.d; exports.useCrossmintAuth = _chunkZMWG2W3Ljs.c; exports.useCrossmintCheckout = _chunk34DRTZGRjs.b; exports.useWallet = _chunkZMWG2W3Ljs.e; exports.useWalletOtpSigner = _chunkZMWG2W3Ljs.f;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-MGVG6OR5.mjs";import{a as y}from"./chunk-
|
|
1
|
+
import"./chunk-MGVG6OR5.mjs";import{a as y}from"./chunk-37AEAZHE.mjs";import"./chunk-B53SE7VF.mjs";import{b as p}from"./chunk-KFHLBGYY.mjs";import"./chunk-OLQY6A2R.mjs";import"./chunk-XHI6LDBZ.mjs";import"./chunk-VVIYX33C.mjs";import{a as x}from"./chunk-TSBXPXHP.mjs";import"./chunk-7MK66CKW.mjs";import"./chunk-QEOJTTGG.mjs";import{a as c}from"./chunk-UJ5SHCOX.mjs";import"./chunk-WY5GIBWL.mjs";import"./chunk-R5IJHPXW.mjs";import"./chunk-D3SDPAWK.mjs";import"./chunk-2OG2MQ54.mjs";import{a as i}from"./chunk-6C4MNI2Z.mjs";import{a as m}from"./chunk-VUUYDH5G.mjs";import"./chunk-QSJ3WM3P.mjs";import"./chunk-MST7DPZX.mjs";import"./chunk-Q7FND4V5.mjs";import"./chunk-LY56PZQE.mjs";import"./chunk-XON2LPPB.mjs";import"./chunk-VIBDMAQ2.mjs";import"./chunk-FZLLUULB.mjs";import"./chunk-NNQRBIYL.mjs";import"./chunk-TAR3YOZH.mjs";import"./chunk-7T2TZQ6N.mjs";import{b as o,c as n,d as s,e as a,f as l}from"./chunk-HRJPYX64.mjs";import"./chunk-YMTSGWEM.mjs";import{a as t,b as r}from"./chunk-WVTNKWBK.mjs";import"./chunk-3XZ5S6JN.mjs";import"./chunk-WBCVUPII.mjs";import"./chunk-QXSHKTCF.mjs";import"./chunk-FVJDXADH.mjs";import"./chunk-AP7B3EQS.mjs";import{j as e}from"./chunk-MQXUVEHR.mjs";e();import{EVMWallet as h,SolanaWallet as k,StellarWallet as v,Wallet as A}from"@crossmint/wallets-sdk";export{o as CrossmintAuthProvider,t as CrossmintCheckoutProvider,c as CrossmintEmbeddedCheckout,p as CrossmintProvider,y as CrossmintWalletProvider,h as EVMWallet,i as EmailSignersDialog,x as ExportPrivateKeyButton,m as PhoneSignersDialog,k as SolanaWallet,v as StellarWallet,A as Wallet,s as useCrossmint,n as useCrossmintAuth,r as useCrossmintCheckout,a as useWallet,l as useWalletOtpSigner};
|
package/dist/logger/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3SYE2FK5js = require('../chunk-3SYE2FK5.js');require('../chunk-6MHQ4FZG.js');require('../chunk-UJ2ZZKXZ.js');exports.initReactNativeLogger = _chunk3SYE2FK5js.a;
|
package/dist/logger/init.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-WBCVUPII.mjs";import"../chunk-QXSHKTCF.mjs";import"../chunk-MQXUVEHR.mjs";export{a as initReactNativeLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSZQYKJWYjs = require('../chunk-SZQYKJWY.js');require('../chunk-3SYE2FK5.js');require('../chunk-6MHQ4FZG.js');require('../chunk-UJ2ZZKXZ.js');exports.CrossmintProvider = _chunkSZQYKJWYjs.b; exports.LoggerContext = _chunkSZQYKJWYjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-KFHLBGYY.mjs";import"../chunk-WBCVUPII.mjs";import"../chunk-QXSHKTCF.mjs";import"../chunk-MQXUVEHR.mjs";export{b as CrossmintProvider,a as LoggerContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk27GU5SPZjs = require('../chunk-27GU5SPZ.js');require('../chunk-E27445QA.js');require('../chunk-SZQYKJWY.js');require('../chunk-NR4LQKBQ.js');require('../chunk-DM5STWIH.js');require('../chunk-HWVRN6WI.js');require('../chunk-GRV4I3A3.js');require('../chunk-IXX52LLP.js');require('../chunk-6D2IS3QM.js');require('../chunk-USB5CJHJ.js');require('../chunk-DHS5QL3N.js');require('../chunk-7JVRFVMC.js');require('../chunk-7RSFPZ6E.js');require('../chunk-ILCU5W7R.js');require('../chunk-MN53XU2K.js');require('../chunk-3SYE2FK5.js');require('../chunk-6MHQ4FZG.js');require('../chunk-GJ2G6EXX.js');require('../chunk-YK3HC7C7.js');require('../chunk-UJ2ZZKXZ.js');exports.CrossmintWalletProvider = _chunk27GU5SPZjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-37AEAZHE.mjs";import"../chunk-B53SE7VF.mjs";import"../chunk-KFHLBGYY.mjs";import"../chunk-6C4MNI2Z.mjs";import"../chunk-VUUYDH5G.mjs";import"../chunk-QSJ3WM3P.mjs";import"../chunk-MST7DPZX.mjs";import"../chunk-Q7FND4V5.mjs";import"../chunk-LY56PZQE.mjs";import"../chunk-XON2LPPB.mjs";import"../chunk-VIBDMAQ2.mjs";import"../chunk-FZLLUULB.mjs";import"../chunk-NNQRBIYL.mjs";import"../chunk-TAR3YOZH.mjs";import"../chunk-7T2TZQ6N.mjs";import"../chunk-WBCVUPII.mjs";import"../chunk-QXSHKTCF.mjs";import"../chunk-FVJDXADH.mjs";import"../chunk-AP7B3EQS.mjs";import"../chunk-MQXUVEHR.mjs";export{a as CrossmintWalletProvider};
|
package/dist/providers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-LGFXZLML.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-LGFXZLML.js');var _chunk27GU5SPZjs = require('../chunk-27GU5SPZ.js');require('../chunk-E27445QA.js');var _chunkSZQYKJWYjs = require('../chunk-SZQYKJWY.js');require('../chunk-NR4LQKBQ.js');require('../chunk-DM5STWIH.js');require('../chunk-HWVRN6WI.js');require('../chunk-GRV4I3A3.js');require('../chunk-IXX52LLP.js');require('../chunk-6D2IS3QM.js');require('../chunk-USB5CJHJ.js');require('../chunk-DHS5QL3N.js');require('../chunk-7JVRFVMC.js');require('../chunk-7RSFPZ6E.js');require('../chunk-ILCU5W7R.js');require('../chunk-MN53XU2K.js');var _chunkZMWG2W3Ljs = require('../chunk-ZMWG2W3L.js');require('../chunk-7F5UBHFN.js');require('../chunk-34DRTZGR.js');require('../chunk-YCJZ67P2.js');require('../chunk-3SYE2FK5.js');require('../chunk-6MHQ4FZG.js');require('../chunk-GJ2G6EXX.js');require('../chunk-YK3HC7C7.js');require('../chunk-UJ2ZZKXZ.js');exports.CrossmintAuthProvider = _chunkZMWG2W3Ljs.b; exports.CrossmintProvider = _chunkSZQYKJWYjs.b; exports.CrossmintWalletProvider = _chunk27GU5SPZjs.a;
|
package/dist/providers/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-MGVG6OR5.mjs";import{a as c}from"../chunk-
|
|
1
|
+
import"../chunk-MGVG6OR5.mjs";import{a as c}from"../chunk-37AEAZHE.mjs";import"../chunk-B53SE7VF.mjs";import{b}from"../chunk-KFHLBGYY.mjs";import"../chunk-6C4MNI2Z.mjs";import"../chunk-VUUYDH5G.mjs";import"../chunk-QSJ3WM3P.mjs";import"../chunk-MST7DPZX.mjs";import"../chunk-Q7FND4V5.mjs";import"../chunk-LY56PZQE.mjs";import"../chunk-XON2LPPB.mjs";import"../chunk-VIBDMAQ2.mjs";import"../chunk-FZLLUULB.mjs";import"../chunk-NNQRBIYL.mjs";import"../chunk-TAR3YOZH.mjs";import"../chunk-7T2TZQ6N.mjs";import{b as a}from"../chunk-HRJPYX64.mjs";import"../chunk-YMTSGWEM.mjs";import"../chunk-WVTNKWBK.mjs";import"../chunk-3XZ5S6JN.mjs";import"../chunk-WBCVUPII.mjs";import"../chunk-QXSHKTCF.mjs";import"../chunk-FVJDXADH.mjs";import"../chunk-AP7B3EQS.mjs";import"../chunk-MQXUVEHR.mjs";export{a as CrossmintAuthProvider,b as CrossmintProvider,c as CrossmintWalletProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFADHNU4Vjs = require('../chunk-FADHNU4V.js');require('../chunk-6MHQ4FZG.js');require('../chunk-UJ2ZZKXZ.js');exports.createCrossmintApiClient = _chunkFADHNU4Vjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2OG2MQ54.mjs";import"../chunk-QXSHKTCF.mjs";import"../chunk-MQXUVEHR.mjs";export{a as createCrossmintApiClient};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/client-sdk-react-native-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"zod": "3.22.4",
|
|
35
35
|
"@crossmint/client-sdk-auth": "1.3.13",
|
|
36
36
|
"@crossmint/client-sdk-base": "2.4.1",
|
|
37
|
-
"@crossmint/client-sdk-react-base": "2.0.26",
|
|
38
37
|
"@crossmint/client-sdk-rn-window": "0.3.16",
|
|
39
38
|
"@crossmint/client-signers": "0.2.0",
|
|
39
|
+
"@crossmint/client-sdk-react-base": "2.0.27",
|
|
40
40
|
"@crossmint/common-sdk-auth": "1.1.11",
|
|
41
41
|
"@crossmint/common-sdk-base": "0.10.1",
|
|
42
|
-
"@crossmint/wallets-sdk": "1.5.
|
|
42
|
+
"@crossmint/wallets-sdk": "1.5.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@expo/config-plugins": "^9.0.17",
|