@crossmint/client-sdk-react-native-ui 0.13.4 → 0.13.5

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.
Files changed (39) hide show
  1. package/dist/{chunk-TETUIGAB.mjs → chunk-3OCXL2UM.mjs} +1 -1
  2. package/dist/{chunk-KPJ2TLTH.mjs → chunk-B45CGCKW.mjs} +1 -1
  3. package/dist/{chunk-J36PDK5V.mjs → chunk-BBJN5CC7.mjs} +1 -1
  4. package/dist/{chunk-PPCFBEW2.mjs → chunk-CDPGRPI5.mjs} +1 -1
  5. package/dist/chunk-DAOQZUNX.mjs +1 -0
  6. package/dist/chunk-FPU3LFHH.js +1 -0
  7. package/dist/{chunk-C5OFI35N.mjs → chunk-HTXR2XI5.mjs} +1 -1
  8. package/dist/{chunk-M6QYYMLH.js → chunk-IJ4Y6BW7.js} +1 -1
  9. package/dist/{chunk-R53VL63J.js → chunk-MYCTCBES.js} +1 -1
  10. package/dist/{chunk-KEQROZQT.js → chunk-PMXBI6YK.js} +1 -1
  11. package/dist/{chunk-LOWHFH2U.js → chunk-SLCEQFJ5.js} +1 -1
  12. package/dist/{chunk-YDVGBH2H.js → chunk-UWXM75PI.js} +1 -1
  13. package/dist/{chunk-VHALUNVO.js → chunk-XKSRGLO3.js} +1 -1
  14. package/dist/{chunk-QPXWIB5H.mjs → chunk-XNTD2XPG.mjs} +1 -1
  15. package/dist/components/embed/index.js +1 -1
  16. package/dist/components/embed/index.mjs +1 -1
  17. package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
  18. package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.mjs +1 -1
  19. package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.js +1 -1
  20. package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.mjs +1 -1
  21. package/dist/components/embed/v3/index.js +1 -1
  22. package/dist/components/embed/v3/index.mjs +1 -1
  23. package/dist/components/index.js +1 -1
  24. package/dist/components/index.mjs +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/index.mjs +1 -1
  27. package/dist/logger/init.js +1 -1
  28. package/dist/logger/init.mjs +1 -1
  29. package/dist/providers/CrossmintProvider.js +1 -1
  30. package/dist/providers/CrossmintProvider.mjs +1 -1
  31. package/dist/providers/CrossmintWalletProvider.js +1 -1
  32. package/dist/providers/CrossmintWalletProvider.mjs +1 -1
  33. package/dist/providers/index.js +1 -1
  34. package/dist/providers/index.mjs +1 -1
  35. package/dist/utils/createCrossmintApiClient.js +1 -1
  36. package/dist/utils/createCrossmintApiClient.mjs +1 -1
  37. package/package.json +3 -3
  38. package/dist/chunk-A3OLN6DV.js +0 -1
  39. package/dist/chunk-ZCMT733Z.mjs +0 -1
@@ -1 +1 @@
1
- var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.4",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","app.plugin.js","LICENSE"],scripts:{build:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",dev:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch"},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:*","@datadog/mobile-react-native":"2.13.2","@solana/web3.js":"1.98.1",bs58:"^5.0.0","lucide-react-native":"0.548.0",mitt:"3.0.1","react-native-svg":"15.14.0",zod:"3.22.4"},devDependencies:{"@expo/config-plugins":"^9.0.17","@types/react":"19.1.10","expo-constants":"~18.0.9","expo-device":"~8.0.9","expo-secure-store":"~15.0.7","expo-web-browser":"~15.0.8"},peerDependencies:{"@expo/config-plugins":">=9.0.0","@solana/web3.js":"^1.98.1","expo-constants":">=17 <19","expo-device":">=7 <9","expo-secure-store":">=14 <16","expo-web-browser":">=14 <16",react:">=17.0.2","react-native":">=0.74.3","react-native-webview":">=13.15.0 <14"}};export{t as a};
1
+ var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.5",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","app.plugin.js","LICENSE"],scripts:{build:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",dev:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch"},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:*","@datadog/mobile-react-native":"2.13.2","@solana/web3.js":"1.98.1",bs58:"^5.0.0","lucide-react-native":"0.548.0",mitt:"3.0.1","react-native-svg":"15.14.0",zod:"3.22.4"},devDependencies:{"@expo/config-plugins":"^9.0.17","@types/react":"19.1.10","expo-constants":"~18.0.9","expo-device":"~8.0.9","expo-secure-store":"~15.0.7","expo-web-browser":"~15.0.8"},peerDependencies:{"@expo/config-plugins":">=9.0.0","@solana/web3.js":"^1.98.1","expo-constants":">=17 <19","expo-device":">=7 <9","expo-secure-store":">=14 <16","expo-web-browser":">=14 <16",react:">=17.0.2","react-native":">=0.74.3","react-native-webview":">=13.15.0 <14"}};export{t as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-PPCFBEW2.mjs";import{a as e}from"./chunk-PSSAAY7D.mjs";import{jsx as t}from"react/jsx-runtime";function i(d){return t(o,e({},d))}export{i as a};
1
+ import{a as o}from"./chunk-CDPGRPI5.mjs";import{a as e}from"./chunk-PSSAAY7D.mjs";import{jsx as t}from"react/jsx-runtime";function i(d){return t(o,e({},d))}export{i as a};
@@ -1 +1 @@
1
- import{a as t}from"./chunk-TETUIGAB.mjs";import{e as r}from"./chunk-PSSAAY7D.mjs";import{DATADOG_CLIENT_TOKEN as g,SdkLogger as m,ReactNativeDatadogSink as p,validateAPIKey as v}from"@crossmint/common-sdk-base";import n from"expo-constants";import*as s from"@datadog/mobile-react-native";var{DdSdkReactNative:f,DatadogProviderConfiguration:u}=s;function D(i){return r(this,null,function*(){var o;try{let e=new u(g,(o=i.environment)!=null?o:"production","crossmint-sdk",!1,!1,!1);e.site="datadoghq.com",yield f.initialize(e)}catch(e){e instanceof Error&&e.message.includes("Native modules require")?console.warn("[React Native UI SDK] Datadog SDK initialization failed. Native modules require a development build (not Expo Go).",e):console.warn("[React Native UI SDK]",e instanceof Error?e.message:String(e))}})}function w(i){let o=v(i);if(!o.isValid)throw new Error(`Invalid API key: ${o.message}`);let{environment:e,projectId:c}=o,a=new m({packageName:t.name,packageVersion:t.version,environment:e,projectId:c,platform:"react-native"}),d=n.executionEnvironment==="storeClient"||n.appOwnership==="expo"||!!n.expoVersion;D({environment:e,isExpoGo:d});let l=new p(e,s);return a.addSink(l),a}export{D as a,w as b};
1
+ import{a as t}from"./chunk-3OCXL2UM.mjs";import{e as r}from"./chunk-PSSAAY7D.mjs";import{DATADOG_CLIENT_TOKEN as g,SdkLogger as m,ReactNativeDatadogSink as p,validateAPIKey as v}from"@crossmint/common-sdk-base";import n from"expo-constants";import*as s from"@datadog/mobile-react-native";var{DdSdkReactNative:f,DatadogProviderConfiguration:u}=s;function D(i){return r(this,null,function*(){var o;try{let e=new u(g,(o=i.environment)!=null?o:"production","crossmint-sdk",!1,!1,!1);e.site="datadoghq.com",yield f.initialize(e)}catch(e){e instanceof Error&&e.message.includes("Native modules require")?console.warn("[React Native UI SDK] Datadog SDK initialization failed. Native modules require a development build (not Expo Go).",e):console.warn("[React Native UI SDK]",e instanceof Error?e.message:String(e))}})}function w(i){let o=v(i);if(!o.isValid)throw new Error(`Invalid API key: ${o.message}`);let{environment:e,projectId:c}=o,a=new m({packageName:t.name,packageVersion:t.version,environment:e,projectId:c,platform:"react-native"}),d=n.executionEnvironment==="storeClient"||n.appOwnership==="expo"||!!n.expoVersion;D({environment:e,isExpoGo:d});let l=new p(e,s);return a.addSink(l),a}export{D as a,w as b};
@@ -1 +1 @@
1
- import{c as h}from"./chunk-PCJMDUSI.mjs";import{a as y}from"./chunk-FX23A4BR.mjs";import{a as f}from"./chunk-C5OFI35N.mjs";import{a as p}from"./chunk-FFQ6EQCL.mjs";import{a as d,b as m}from"./chunk-PSSAAY7D.mjs";import{useCrossmint as S}from"@crossmint/client-sdk-react-base";import{useEffect as b,useRef as l,useState as g}from"react";import{View as W}from"react-native";import{crossmintEmbeddedCheckoutV3Service as I}from"@crossmint/client-sdk-base";import{RNWebView as A,WebViewParent as M}from"@crossmint/client-sdk-rn-window";import{embeddedCheckoutV3IncomingEvents as R,embeddedCheckoutV3OutgoingEvents as O}from"@crossmint/client-sdk-base";import{jsx as c,jsxs as L}from"react/jsx-runtime";function Y(t){var u;let[e,w]=g(null),[C,v]=g(0),E=l((u=t.payment.crypto.payer)==null?void 0:u.initialChain),n=l(t);if(U(t,n.current)){let r=d({},t),o=F(t,E.current);o.shouldPreserve&&(r.payment.crypto.payer=o.updatedPayer),n.current=r}let{crossmint:i}=S(),V=f(i,{usageOrigin:"client"}),P=I({apiClient:V}),s=l(null);b(()=>{let r=s.current;if(!r||e)return;let o=new M({current:r},{incomingEvents:R,outgoingEvents:O});w(o)},[s.current,e]),b(()=>{if(e==null)return;let r=a=>v(a.height);e.on("ui:height.changed",r);let o=a=>{p.emit("order:updated",a)};return e.on("order:updated",o),()=>{e.off("ui:height.changed"),e.off("order:updated")}},[e]);let k=r=>{e&&e.handleMessage(r)};return L(W,{style:{flex:1},children:[c(A,{ref:s,globals:i.appId?{crossmintAppId:i.appId}:void 0,source:{uri:P.iframe.getUrl(n.current)},onMessage:k,style:{width:"100%",minWidth:"100%",height:C,backgroundColor:"transparent",overflow:"hidden",opacity:1,padding:0,boxShadow:"none",borderWidth:0,transform:[{translateX:0}]},allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,allowsBackForwardNavigationGestures:!1,allowsLinkPreview:!1,scrollEnabled:!1,bounces:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,domStorageEnabled:!0,mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,geolocationEnabled:!0,userAgent:h,paymentRequestEnabled:!0}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?c(y,{payer:n.current.payment.crypto.payer,webViewClient:e}):c(H,{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 U(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function F(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:m(d({},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}function H({message:t}){throw new Error(t)}export{Y as a};
1
+ import{c as h}from"./chunk-PCJMDUSI.mjs";import{a as y}from"./chunk-FX23A4BR.mjs";import{a as f}from"./chunk-HTXR2XI5.mjs";import{a as p}from"./chunk-FFQ6EQCL.mjs";import{a as d,b as m}from"./chunk-PSSAAY7D.mjs";import{useCrossmint as S}from"@crossmint/client-sdk-react-base";import{useEffect as b,useRef as l,useState as g}from"react";import{View as W}from"react-native";import{crossmintEmbeddedCheckoutV3Service as I}from"@crossmint/client-sdk-base";import{RNWebView as A,WebViewParent as M}from"@crossmint/client-sdk-rn-window";import{embeddedCheckoutV3IncomingEvents as R,embeddedCheckoutV3OutgoingEvents as O}from"@crossmint/client-sdk-base";import{jsx as c,jsxs as L}from"react/jsx-runtime";function Y(t){var u;let[e,w]=g(null),[C,v]=g(0),E=l((u=t.payment.crypto.payer)==null?void 0:u.initialChain),n=l(t);if(U(t,n.current)){let r=d({},t),o=F(t,E.current);o.shouldPreserve&&(r.payment.crypto.payer=o.updatedPayer),n.current=r}let{crossmint:i}=S(),V=f(i,{usageOrigin:"client"}),P=I({apiClient:V}),s=l(null);b(()=>{let r=s.current;if(!r||e)return;let o=new M({current:r},{incomingEvents:R,outgoingEvents:O});w(o)},[s.current,e]),b(()=>{if(e==null)return;let r=a=>v(a.height);e.on("ui:height.changed",r);let o=a=>{p.emit("order:updated",a)};return e.on("order:updated",o),()=>{e.off("ui:height.changed"),e.off("order:updated")}},[e]);let k=r=>{e&&e.handleMessage(r)};return L(W,{style:{flex:1},children:[c(A,{ref:s,globals:i.appId?{crossmintAppId:i.appId}:void 0,source:{uri:P.iframe.getUrl(n.current)},onMessage:k,style:{width:"100%",minWidth:"100%",height:C,backgroundColor:"transparent",overflow:"hidden",opacity:1,padding:0,boxShadow:"none",borderWidth:0,transform:[{translateX:0}]},allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,allowsBackForwardNavigationGestures:!1,allowsLinkPreview:!1,scrollEnabled:!1,bounces:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,domStorageEnabled:!0,mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,geolocationEnabled:!0,userAgent:h,paymentRequestEnabled:!0}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?c(y,{payer:n.current.payment.crypto.payer,webViewClient:e}):c(H,{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 U(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function F(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:m(d({},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}function H({message:t}){throw new Error(t)}export{Y as a};
@@ -0,0 +1 @@
1
+ import{a as W}from"./chunk-XNTD2XPG.mjs";import{a as C}from"./chunk-XNDIT72O.mjs";import{a as E}from"./chunk-3QSVHCEH.mjs";import{a as d,e as f}from"./chunk-PSSAAY7D.mjs";import{useCallback as P,useRef as y,useMemo as v,useEffect as D,useState as S}from"react";import{View as z}from"react-native";import{RNWebView as x,WebViewParent as F}from"@crossmint/client-sdk-rn-window";import{environmentUrlConfig as V,signerInboundEvents as j,signerOutboundEvents as H,SignerErrorCode as K}from"@crossmint/client-signers";import{validateAPIKey as B}from"@crossmint/common-sdk-base";import{CrossmintWalletUIBaseProvider as G,useCrossmint as J}from"@crossmint/client-sdk-react-base";import{useLogger as _}from"@crossmint/client-sdk-react-base";import{Fragment as q,jsx as l,jsxs as k}from"react/jsx-runtime";function $({children:w,createOnLogin:I,appearance:U,headlessSigningFlow:b=!0,callbacks:O}){let{crossmint:R}=J("CrossmintWalletProvider must be used within CrossmintProvider"),n=_(W),{apiKey:h,appId:u}=R,m=v(()=>{let e=B(h);if(!e.isValid)throw new Error("Invalid API key");return e},[h]),M=v(()=>V[m.environment],[m.environment]),a=y(null),t=y(null),[g,L]=S(!1),T=v(()=>u!=null?{crossmintAppId:u}:{},[u]);D(()=>{a.current!=null&&t.current==null&&(n.info("react-native.wallet.webview.initializing"),t.current=new F(a,{incomingEvents:H,outgoingEvents:j,handshakeOptions:{timeoutMs:3e4,intervalMs:500},recovery:{recoverableErrorCodes:[K.IndexedDbFatal]}}),n.info("react-native.wallet.webview.initialized"))},[g,n]);let A=P(()=>f(this,null,function*(){let e=t.current;if(e!=null)try{n.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),n.info("react-native.wallet.webview.handshake.success")}catch(r){n.error("react-native.wallet.webview.handshake.error",{error:r instanceof Error?r.message:String(r)}),console.error("[CrossmintWalletProvider] Handshake error:",r)}}),[n]),N=P(e=>{let r=t.current;if(r!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let p=o.type.split(".")[1],s=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(Z){return i}}),c=`[WebView:${p.toUpperCase()}]`;switch(p){case"log":console.log(c,...s);break;case"error":console.error(c,...s);break;case"warn":console.warn(c,...s);break;case"info":console.info(c,...s);break;default:console.log(`[WebView Unknown:${p}]`,...s)}return}}catch(o){}r.handleMessage(e)}},[]);return k(G,{createOnLogin:I,appearance:U,headlessSigningFlow:b,initializeWebView:()=>f(this,null,function*(){n.info("react-native.wallet.webview.init.start"),L(!0);let e=0,r=100;for(;t.current==null&&e<r;)yield new Promise(o=>setTimeout(o,50)),e++;if(t.current==null)throw n.error("react-native.wallet.webview.init.timeout",{attempts:e}),new Error("WebView not ready or handshake incomplete");n.info("react-native.wallet.webview.init.success",{attempts:e})}),callbacks:O,renderUI:b?void 0:({emailSignerProps:e,phoneSignerProps:r})=>k(q,{children:[l(C,d({},e)),l(E,d({},r))]}),clientTEEConnection:()=>{if(t.current==null)throw new Error("WebView not ready or handshake incomplete");return t.current},children:[w,g&&l(z,{style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:l(x,{ref:a,source:{uri:M},globals:T,onLoadEnd:A,onMessage:N,onError:e=>{console.error("[CrossmintWalletProvider] WebView error:",e.nativeEvent)},onHttpError:e=>{console.error("[CrossmintWalletProvider] WebView HTTP error:",e.nativeEvent)},onContentProcessDidTerminate:()=>{var e;return(e=a.current)==null?void 0:e.reload()},onRenderProcessGone:()=>{var e;return(e=a.current)==null?void 0:e.reload()},style:{width:1,height:1},javaScriptCanOpenWindowsAutomatically:!1,thirdPartyCookiesEnabled:!1,sharedCookiesEnabled:!1,incognito:!1,setSupportMultipleWindows:!1,originWhitelist:[V[m.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function ue(w){return l($,d({},w))}export{ue as a};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUWXM75PIjs = require('./chunk-UWXM75PI.js');var _chunkYJORUMPBjs = require('./chunk-YJORUMPB.js');var _chunkMVVSGLQLjs = require('./chunk-MVVSGLQL.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');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');function $({children:w,createOnLogin:I,appearance:U,headlessSigningFlow:b=!0,callbacks:O}){let{crossmint:R}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintWalletProvider must be used within CrossmintProvider"),n=_clientsdkreactbase.useLogger.call(void 0, _chunkUWXM75PIjs.a),{apiKey:h,appId:u}=R,m=_react.useMemo.call(void 0, ()=>{let e=_commonsdkbase.validateAPIKey.call(void 0, h);if(!e.isValid)throw new Error("Invalid API key");return e},[h]),M=_react.useMemo.call(void 0, ()=>_clientsigners.environmentUrlConfig[m.environment],[m.environment]),a=_react.useRef.call(void 0, null),t=_react.useRef.call(void 0, null),[g,L]=_react.useState.call(void 0, !1),T=_react.useMemo.call(void 0, ()=>u!=null?{crossmintAppId:u}:{},[u]);_react.useEffect.call(void 0, ()=>{a.current!=null&&t.current==null&&(n.info("react-native.wallet.webview.initializing"),t.current=new (0, _clientsdkrnwindow.WebViewParent)(a,{incomingEvents:_clientsigners.signerOutboundEvents,outgoingEvents:_clientsigners.signerInboundEvents,handshakeOptions:{timeoutMs:3e4,intervalMs:500},recovery:{recoverableErrorCodes:[_clientsigners.SignerErrorCode.IndexedDbFatal]}}),n.info("react-native.wallet.webview.initialized"))},[g,n]);let A=_react.useCallback.call(void 0, ()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){let e=t.current;if(e!=null)try{n.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),n.info("react-native.wallet.webview.handshake.success")}catch(r){n.error("react-native.wallet.webview.handshake.error",{error:r instanceof Error?r.message:String(r)}),console.error("[CrossmintWalletProvider] Handshake error:",r)}}),[n]),N=_react.useCallback.call(void 0, e=>{let r=t.current;if(r!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let p=o.type.split(".")[1],s=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(Z){return i}}),c=`[WebView:${p.toUpperCase()}]`;switch(p){case"log":console.log(c,...s);break;case"error":console.error(c,...s);break;case"warn":console.warn(c,...s);break;case"info":console.info(c,...s);break;default:console.log(`[WebView Unknown:${p}]`,...s)}return}}catch(o){}r.handleMessage(e)}},[]);return _jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletUIBaseProvider,{createOnLogin:I,appearance:U,headlessSigningFlow:b,initializeWebView:()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){n.info("react-native.wallet.webview.init.start"),L(!0);let e=0,r=100;for(;t.current==null&&e<r;)yield new Promise(o=>setTimeout(o,50)),e++;if(t.current==null)throw n.error("react-native.wallet.webview.init.timeout",{attempts:e}),new Error("WebView not ready or handshake incomplete");n.info("react-native.wallet.webview.init.success",{attempts:e})}),callbacks:O,renderUI:b?void 0:({emailSignerProps:e,phoneSignerProps:r})=>_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkYJORUMPBjs.a,_chunkJ42HASCIjs.a.call(void 0, {},e)),_jsxruntime.jsx.call(void 0, _chunkMVVSGLQLjs.a,_chunkJ42HASCIjs.a.call(void 0, {},r))]}),clientTEEConnection:()=>{if(t.current==null)throw new Error("WebView not ready or handshake incomplete");return t.current},children:[w,g&&_jsxruntime.jsx.call(void 0, _reactnative.View,{style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:_jsxruntime.jsx.call(void 0, _clientsdkrnwindow.RNWebView,{ref:a,source:{uri:M},globals:T,onLoadEnd:A,onMessage:N,onError:e=>{console.error("[CrossmintWalletProvider] WebView error:",e.nativeEvent)},onHttpError:e=>{console.error("[CrossmintWalletProvider] WebView HTTP error:",e.nativeEvent)},onContentProcessDidTerminate:()=>{var e;return(e=a.current)==null?void 0:e.reload()},onRenderProcessGone:()=>{var e;return(e=a.current)==null?void 0:e.reload()},style:{width:1,height:1},javaScriptCanOpenWindowsAutomatically:!1,thirdPartyCookiesEnabled:!1,sharedCookiesEnabled:!1,incognito:!1,setSupportMultipleWindows:!1,originWhitelist:[_clientsigners.environmentUrlConfig[m.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function we(w){return _jsxruntime.jsx.call(void 0, $,_chunkJ42HASCIjs.a.call(void 0, {},w))}exports.a = we;
@@ -1 +1 @@
1
- import{a as n}from"./chunk-TETUIGAB.mjs";import{CrossmintApiClient as e}from"@crossmint/common-sdk-base";function C(i,t){return new e(i,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-native-ui",version:n.version},apiKeyExpectations:t}})}export{C as a};
1
+ import{a as n}from"./chunk-3OCXL2UM.mjs";import{CrossmintApiClient as e}from"@crossmint/common-sdk-base";function C(i,t){return new e(i,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-native-ui",version:n.version},apiKeyExpectations:t}})}export{C as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQEWHOQ7js = require('./chunk-YQEWHOQ7.js');var _chunkVACQTZRTjs = require('./chunk-VACQTZRT.js');var _chunkVHALUNVOjs = require('./chunk-VHALUNVO.js');var _chunk2D2RJCVXjs = require('./chunk-2D2RJCVX.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');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 Q(t){var u;let[e,w]=_react.useState.call(void 0, null),[C,v]=_react.useState.call(void 0, 0),E=_react.useRef.call(void 0, (u=t.payment.crypto.payer)==null?void 0:u.initialChain),n=_react.useRef.call(void 0, t);if(U(t,n.current)){let r=_chunkJ42HASCIjs.a.call(void 0, {},t),o=F(t,E.current);o.shouldPreserve&&(r.payment.crypto.payer=o.updatedPayer),n.current=r}let{crossmint:i}=_clientsdkreactbase.useCrossmint.call(void 0, ),V=_chunkVHALUNVOjs.a.call(void 0, i,{usageOrigin:"client"}),P=_clientsdkbase.crossmintEmbeddedCheckoutV3Service.call(void 0, {apiClient:V}),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});w(o)},[s.current,e]),_react.useEffect.call(void 0, ()=>{if(e==null)return;let r=a=>v(a.height);e.on("ui:height.changed",r);let o=a=>{_chunk2D2RJCVXjs.a.emit("order:updated",a)};return e.on("order:updated",o),()=>{e.off("ui:height.changed"),e.off("order:updated")}},[e]);let k=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:P.iframe.getUrl(n.current)},onMessage:k,style:{width:"100%",minWidth:"100%",height:C,backgroundColor:"transparent",overflow:"hidden",opacity:1,padding:0,boxShadow:"none",borderWidth:0,transform:[{translateX:0}]},allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,allowsBackForwardNavigationGestures:!1,allowsLinkPreview:!1,scrollEnabled:!1,bounces:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,domStorageEnabled:!0,mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,geolocationEnabled:!0,userAgent:_chunkYQEWHOQ7js.c,paymentRequestEnabled:!0}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?_jsxruntime.jsx.call(void 0, _chunkVACQTZRTjs.a,{payer:n.current.payment.crypto.payer,webViewClient:e}):_jsxruntime.jsx.call(void 0, H,{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 U(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function F(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:_chunkJ42HASCIjs.b.call(void 0, _chunkJ42HASCIjs.a.call(void 0, {},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}function H({message:t}){throw new Error(t)}exports.a = Q;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQEWHOQ7js = require('./chunk-YQEWHOQ7.js');var _chunkVACQTZRTjs = require('./chunk-VACQTZRT.js');var _chunkXKSRGLO3js = require('./chunk-XKSRGLO3.js');var _chunk2D2RJCVXjs = require('./chunk-2D2RJCVX.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');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 Q(t){var u;let[e,w]=_react.useState.call(void 0, null),[C,v]=_react.useState.call(void 0, 0),E=_react.useRef.call(void 0, (u=t.payment.crypto.payer)==null?void 0:u.initialChain),n=_react.useRef.call(void 0, t);if(U(t,n.current)){let r=_chunkJ42HASCIjs.a.call(void 0, {},t),o=F(t,E.current);o.shouldPreserve&&(r.payment.crypto.payer=o.updatedPayer),n.current=r}let{crossmint:i}=_clientsdkreactbase.useCrossmint.call(void 0, ),V=_chunkXKSRGLO3js.a.call(void 0, i,{usageOrigin:"client"}),P=_clientsdkbase.crossmintEmbeddedCheckoutV3Service.call(void 0, {apiClient:V}),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});w(o)},[s.current,e]),_react.useEffect.call(void 0, ()=>{if(e==null)return;let r=a=>v(a.height);e.on("ui:height.changed",r);let o=a=>{_chunk2D2RJCVXjs.a.emit("order:updated",a)};return e.on("order:updated",o),()=>{e.off("ui:height.changed"),e.off("order:updated")}},[e]);let k=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:P.iframe.getUrl(n.current)},onMessage:k,style:{width:"100%",minWidth:"100%",height:C,backgroundColor:"transparent",overflow:"hidden",opacity:1,padding:0,boxShadow:"none",borderWidth:0,transform:[{translateX:0}]},allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,allowsBackForwardNavigationGestures:!1,allowsLinkPreview:!1,scrollEnabled:!1,bounces:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,domStorageEnabled:!0,mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,geolocationEnabled:!0,userAgent:_chunkYQEWHOQ7js.c,paymentRequestEnabled:!0}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?_jsxruntime.jsx.call(void 0, _chunkVACQTZRTjs.a,{payer:n.current.payment.crypto.payer,webViewClient:e}):_jsxruntime.jsx.call(void 0, H,{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 U(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function F(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:_chunkJ42HASCIjs.b.call(void 0, _chunkJ42HASCIjs.a.call(void 0, {},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}function H({message:t}){throw new Error(t)}exports.a = Q;
@@ -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 _chunkLOWHFH2Ujs = require('./chunk-LOWHFH2U.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _commonsdkbase = require('@crossmint/common-sdk-base');var _expoconstants = require('expo-constants'); var _expoconstants2 = _interopRequireDefault(_expoconstants);var _mobilereactnative = require('@datadog/mobile-react-native'); var s = _interopRequireWildcard(_mobilereactnative);var{DdSdkReactNative:f,DatadogProviderConfiguration:u}=s;function D(i){return _chunkJ42HASCIjs.e.call(void 0, this,null,function*(){var o;try{let e=new u(_commonsdkbase.DATADOG_CLIENT_TOKEN,(o=i.environment)!=null?o:"production","crossmint-sdk",!1,!1,!1);e.site="datadoghq.com",yield f.initialize(e)}catch(e){e instanceof Error&&e.message.includes("Native modules require")?console.warn("[React Native UI SDK] Datadog SDK initialization failed. Native modules require a development build (not Expo Go).",e):console.warn("[React Native UI SDK]",e instanceof Error?e.message:String(e))}})}function x(i){let o=_commonsdkbase.validateAPIKey.call(void 0, i);if(!o.isValid)throw new Error(`Invalid API key: ${o.message}`);let{environment:e,projectId:c}=o,a=new (0, _commonsdkbase.SdkLogger)({packageName:_chunkLOWHFH2Ujs.a.name,packageVersion:_chunkLOWHFH2Ujs.a.version,environment:e,projectId:c,platform:"react-native"}),d=_expoconstants2.default.executionEnvironment==="storeClient"||_expoconstants2.default.appOwnership==="expo"||!!_expoconstants2.default.expoVersion;D({environment:e,isExpoGo:d});let l=new (0, _commonsdkbase.ReactNativeDatadogSink)(e,s);return a.addSink(l),a}exports.a = D; exports.b = x;
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 _chunkSLCEQFJ5js = require('./chunk-SLCEQFJ5.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _commonsdkbase = require('@crossmint/common-sdk-base');var _expoconstants = require('expo-constants'); var _expoconstants2 = _interopRequireDefault(_expoconstants);var _mobilereactnative = require('@datadog/mobile-react-native'); var s = _interopRequireWildcard(_mobilereactnative);var{DdSdkReactNative:f,DatadogProviderConfiguration:u}=s;function D(i){return _chunkJ42HASCIjs.e.call(void 0, this,null,function*(){var o;try{let e=new u(_commonsdkbase.DATADOG_CLIENT_TOKEN,(o=i.environment)!=null?o:"production","crossmint-sdk",!1,!1,!1);e.site="datadoghq.com",yield f.initialize(e)}catch(e){e instanceof Error&&e.message.includes("Native modules require")?console.warn("[React Native UI SDK] Datadog SDK initialization failed. Native modules require a development build (not Expo Go).",e):console.warn("[React Native UI SDK]",e instanceof Error?e.message:String(e))}})}function x(i){let o=_commonsdkbase.validateAPIKey.call(void 0, i);if(!o.isValid)throw new Error(`Invalid API key: ${o.message}`);let{environment:e,projectId:c}=o,a=new (0, _commonsdkbase.SdkLogger)({packageName:_chunkSLCEQFJ5js.a.name,packageVersion:_chunkSLCEQFJ5js.a.version,environment:e,projectId:c,platform:"react-native"}),d=_expoconstants2.default.executionEnvironment==="storeClient"||_expoconstants2.default.appOwnership==="expo"||!!_expoconstants2.default.expoVersion;D({environment:e,isExpoGo:d});let l=new (0, _commonsdkbase.ReactNativeDatadogSink)(e,s);return a.addSink(l),a}exports.a = D; exports.b = x;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM6QYYMLHjs = require('./chunk-M6QYYMLH.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkM6QYYMLHjs.a,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = s;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIJ4Y6BW7js = require('./chunk-IJ4Y6BW7.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkIJ4Y6BW7js.a,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = s;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.4",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","app.plugin.js","LICENSE"],scripts:{build:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",dev:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch"},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:*","@datadog/mobile-react-native":"2.13.2","@solana/web3.js":"1.98.1",bs58:"^5.0.0","lucide-react-native":"0.548.0",mitt:"3.0.1","react-native-svg":"15.14.0",zod:"3.22.4"},devDependencies:{"@expo/config-plugins":"^9.0.17","@types/react":"19.1.10","expo-constants":"~18.0.9","expo-device":"~8.0.9","expo-secure-store":"~15.0.7","expo-web-browser":"~15.0.8"},peerDependencies:{"@expo/config-plugins":">=9.0.0","@solana/web3.js":"^1.98.1","expo-constants":">=17 <19","expo-device":">=7 <9","expo-secure-store":">=14 <16","expo-web-browser":">=14 <16",react:">=17.0.2","react-native":">=0.74.3","react-native-webview":">=13.15.0 <14"}};exports.a = t;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.5",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","app.plugin.js","LICENSE"],scripts:{build:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",dev:"cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch"},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:*","@datadog/mobile-react-native":"2.13.2","@solana/web3.js":"1.98.1",bs58:"^5.0.0","lucide-react-native":"0.548.0",mitt:"3.0.1","react-native-svg":"15.14.0",zod:"3.22.4"},devDependencies:{"@expo/config-plugins":"^9.0.17","@types/react":"19.1.10","expo-constants":"~18.0.9","expo-device":"~8.0.9","expo-secure-store":"~15.0.7","expo-web-browser":"~15.0.8"},peerDependencies:{"@expo/config-plugins":">=9.0.0","@solana/web3.js":"^1.98.1","expo-constants":">=17 <19","expo-device":">=7 <9","expo-secure-store":">=14 <16","expo-web-browser":">=14 <16",react:">=17.0.2","react-native":">=0.74.3","react-native-webview":">=13.15.0 <14"}};exports.a = t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkR53VL63Jjs = require('./chunk-R53VL63J.js');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 k({children:d,apiKey:o,overrideBaseUrl:p}){var r,e,t,i,n;let g=_react.useMemo.call(void 0, ()=>_chunkR53VL63Jjs.b.call(void 0, o),[o]),C=(n=(e=(r=_expoconstants2.default.expoConfig)==null?void 0:r.ios)==null?void 0:e.bundleIdentifier)!=null?n:(i=(t=_expoconstants2.default.expoConfig)==null?void 0:t.android)==null?void 0:i.package;return _jsxruntime.jsx.call(void 0, P.Provider,{value:g,children:_jsxruntime.jsx.call(void 0, _clientsdkreactbase.CrossmintProvider,{apiKey:o,appId:C,overrideBaseUrl:p,children:d})})}exports.a = P; exports.b = k;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkMYCTCBESjs = require('./chunk-MYCTCBES.js');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 k({children:d,apiKey:o,overrideBaseUrl:p}){var r,e,t,i,n;let g=_react.useMemo.call(void 0, ()=>_chunkMYCTCBESjs.b.call(void 0, o),[o]),C=(n=(e=(r=_expoconstants2.default.expoConfig)==null?void 0:r.ios)==null?void 0:e.bundleIdentifier)!=null?n:(i=(t=_expoconstants2.default.expoConfig)==null?void 0:t.android)==null?void 0:i.package;return _jsxruntime.jsx.call(void 0, P.Provider,{value:g,children:_jsxruntime.jsx.call(void 0, _clientsdkreactbase.CrossmintProvider,{apiKey:o,appId:C,overrideBaseUrl:p,children:d})})}exports.a = P; exports.b = k;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLOWHFH2Ujs = require('./chunk-LOWHFH2U.js');var _commonsdkbase = require('@crossmint/common-sdk-base');function a(i,t){return new (0, _commonsdkbase.CrossmintApiClient)(i,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-native-ui",version:_chunkLOWHFH2Ujs.a.version},apiKeyExpectations:t}})}exports.a = a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSLCEQFJ5js = require('./chunk-SLCEQFJ5.js');var _commonsdkbase = require('@crossmint/common-sdk-base');function a(i,t){return new (0, _commonsdkbase.CrossmintApiClient)(i,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-native-ui",version:_chunkSLCEQFJ5js.a.version},apiKeyExpectations:t}})}exports.a = a;
@@ -1 +1 @@
1
- import{b as s}from"./chunk-J36PDK5V.mjs";import{useMemo as c}from"react";import m from"expo-constants";import{CrossmintProvider as f,createLoggerContext as v}from"@crossmint/client-sdk-react-base";import{jsx as a}from"react/jsx-runtime";var P=v();function I({children:d,apiKey:o,overrideBaseUrl:p}){var r,e,t,i,n;let g=c(()=>s(o),[o]),C=(n=(e=(r=m.expoConfig)==null?void 0:r.ios)==null?void 0:e.bundleIdentifier)!=null?n:(i=(t=m.expoConfig)==null?void 0:t.android)==null?void 0:i.package;return a(P.Provider,{value:g,children:a(f,{apiKey:o,appId:C,overrideBaseUrl:p,children:d})})}export{P as a,I as b};
1
+ import{b as s}from"./chunk-BBJN5CC7.mjs";import{useMemo as c}from"react";import m from"expo-constants";import{CrossmintProvider as f,createLoggerContext as v}from"@crossmint/client-sdk-react-base";import{jsx as a}from"react/jsx-runtime";var P=v();function I({children:d,apiKey:o,overrideBaseUrl:p}){var r,e,t,i,n;let g=c(()=>s(o),[o]),C=(n=(e=(r=m.expoConfig)==null?void 0:r.ios)==null?void 0:e.bundleIdentifier)!=null?n:(i=(t=m.expoConfig)==null?void 0:t.android)==null?void 0:i.package;return a(P.Provider,{value:g,children:a(f,{apiKey:o,appId:C,overrideBaseUrl:p,children:d})})}export{P as a,I as b};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-DKQZSNOO.js');require('../../chunk-72MMCJ2E.js');var _chunkKEQROZQTjs = require('../../chunk-KEQROZQT.js');require('../../chunk-M6QYYMLH.js');require('../../chunk-YQEWHOQ7.js');require('../../chunk-VACQTZRT.js');require('../../chunk-VHALUNVO.js');require('../../chunk-2D2RJCVX.js');require('../../chunk-LOWHFH2U.js');require('../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkKEQROZQTjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-DKQZSNOO.js');require('../../chunk-72MMCJ2E.js');var _chunkPMXBI6YKjs = require('../../chunk-PMXBI6YK.js');require('../../chunk-IJ4Y6BW7.js');require('../../chunk-YQEWHOQ7.js');require('../../chunk-VACQTZRT.js');require('../../chunk-XKSRGLO3.js');require('../../chunk-2D2RJCVX.js');require('../../chunk-SLCEQFJ5.js');require('../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkPMXBI6YKjs.a;
@@ -1 +1 @@
1
- import"../../chunk-TIQGKXQA.mjs";import"../../chunk-MB7H3PBJ.mjs";import{a}from"../../chunk-KPJ2TLTH.mjs";import"../../chunk-PPCFBEW2.mjs";import"../../chunk-PCJMDUSI.mjs";import"../../chunk-FX23A4BR.mjs";import"../../chunk-C5OFI35N.mjs";import"../../chunk-FFQ6EQCL.mjs";import"../../chunk-TETUIGAB.mjs";import"../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
1
+ import"../../chunk-TIQGKXQA.mjs";import"../../chunk-MB7H3PBJ.mjs";import{a}from"../../chunk-B45CGCKW.mjs";import"../../chunk-CDPGRPI5.mjs";import"../../chunk-PCJMDUSI.mjs";import"../../chunk-FX23A4BR.mjs";import"../../chunk-HTXR2XI5.mjs";import"../../chunk-FFQ6EQCL.mjs";import"../../chunk-3OCXL2UM.mjs";import"../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKEQROZQTjs = require('../../../chunk-KEQROZQT.js');require('../../../chunk-M6QYYMLH.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-VHALUNVO.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-LOWHFH2U.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkKEQROZQTjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPMXBI6YKjs = require('../../../chunk-PMXBI6YK.js');require('../../../chunk-IJ4Y6BW7.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-XKSRGLO3.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-SLCEQFJ5.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkPMXBI6YKjs.a;
@@ -1 +1 @@
1
- import{a}from"../../../chunk-KPJ2TLTH.mjs";import"../../../chunk-PPCFBEW2.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-C5OFI35N.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-TETUIGAB.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
1
+ import{a}from"../../../chunk-B45CGCKW.mjs";import"../../../chunk-CDPGRPI5.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-HTXR2XI5.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-3OCXL2UM.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM6QYYMLHjs = require('../../../chunk-M6QYYMLH.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-VHALUNVO.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-LOWHFH2U.js');require('../../../chunk-J42HASCI.js');exports.EmbeddedCheckoutV3WebView = _chunkM6QYYMLHjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIJ4Y6BW7js = require('../../../chunk-IJ4Y6BW7.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-XKSRGLO3.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-SLCEQFJ5.js');require('../../../chunk-J42HASCI.js');exports.EmbeddedCheckoutV3WebView = _chunkIJ4Y6BW7js.a;
@@ -1 +1 @@
1
- import{a}from"../../../chunk-PPCFBEW2.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-C5OFI35N.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-TETUIGAB.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as EmbeddedCheckoutV3WebView};
1
+ import{a}from"../../../chunk-CDPGRPI5.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-HTXR2XI5.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-3OCXL2UM.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as EmbeddedCheckoutV3WebView};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-72MMCJ2E.js');var _chunkKEQROZQTjs = require('../../../chunk-KEQROZQT.js');require('../../../chunk-M6QYYMLH.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-VHALUNVO.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-LOWHFH2U.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkKEQROZQTjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-72MMCJ2E.js');var _chunkPMXBI6YKjs = require('../../../chunk-PMXBI6YK.js');require('../../../chunk-IJ4Y6BW7.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-XKSRGLO3.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-SLCEQFJ5.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkPMXBI6YKjs.a;
@@ -1 +1 @@
1
- import"../../../chunk-MB7H3PBJ.mjs";import{a}from"../../../chunk-KPJ2TLTH.mjs";import"../../../chunk-PPCFBEW2.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-C5OFI35N.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-TETUIGAB.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
1
+ import"../../../chunk-MB7H3PBJ.mjs";import{a}from"../../../chunk-B45CGCKW.mjs";import"../../../chunk-CDPGRPI5.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-HTXR2XI5.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-3OCXL2UM.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2PX34LDU.js');require('../chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('../chunk-UA34B5QB.js');require('../chunk-DKQZSNOO.js');require('../chunk-72MMCJ2E.js');var _chunkKEQROZQTjs = require('../chunk-KEQROZQT.js');require('../chunk-M6QYYMLH.js');require('../chunk-YQEWHOQ7.js');require('../chunk-VACQTZRT.js');require('../chunk-VHALUNVO.js');require('../chunk-I4D3YJW2.js');var _chunkYJORUMPBjs = require('../chunk-YJORUMPB.js');var _chunkMVVSGLQLjs = require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-2D2RJCVX.js');require('../chunk-LOWHFH2U.js');require('../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkKEQROZQTjs.a; exports.EmailSignersDialog = _chunkYJORUMPBjs.a; exports.ExportPrivateKeyButton = _chunkUA34B5QBjs.a; exports.PhoneSignersDialog = _chunkMVVSGLQLjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2PX34LDU.js');require('../chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('../chunk-UA34B5QB.js');require('../chunk-DKQZSNOO.js');require('../chunk-72MMCJ2E.js');var _chunkPMXBI6YKjs = require('../chunk-PMXBI6YK.js');require('../chunk-IJ4Y6BW7.js');require('../chunk-YQEWHOQ7.js');require('../chunk-VACQTZRT.js');require('../chunk-XKSRGLO3.js');require('../chunk-I4D3YJW2.js');var _chunkYJORUMPBjs = require('../chunk-YJORUMPB.js');var _chunkMVVSGLQLjs = require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-2D2RJCVX.js');require('../chunk-SLCEQFJ5.js');require('../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkPMXBI6YKjs.a; exports.EmailSignersDialog = _chunkYJORUMPBjs.a; exports.ExportPrivateKeyButton = _chunkUA34B5QBjs.a; exports.PhoneSignersDialog = _chunkMVVSGLQLjs.a;
@@ -1 +1 @@
1
- import"../chunk-UBHIBMTA.mjs";import"../chunk-5CLFJLE4.mjs";import{a as d}from"../chunk-EF2YTIUF.mjs";import"../chunk-TIQGKXQA.mjs";import"../chunk-MB7H3PBJ.mjs";import{a as c}from"../chunk-KPJ2TLTH.mjs";import"../chunk-PPCFBEW2.mjs";import"../chunk-PCJMDUSI.mjs";import"../chunk-FX23A4BR.mjs";import"../chunk-C5OFI35N.mjs";import"../chunk-J7Q2R6UH.mjs";import{a}from"../chunk-XNDIT72O.mjs";import{a as b}from"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-FFQ6EQCL.mjs";import"../chunk-TETUIGAB.mjs";import"../chunk-PSSAAY7D.mjs";export{c as CrossmintEmbeddedCheckout,a as EmailSignersDialog,d as ExportPrivateKeyButton,b as PhoneSignersDialog};
1
+ import"../chunk-UBHIBMTA.mjs";import"../chunk-5CLFJLE4.mjs";import{a as d}from"../chunk-EF2YTIUF.mjs";import"../chunk-TIQGKXQA.mjs";import"../chunk-MB7H3PBJ.mjs";import{a as c}from"../chunk-B45CGCKW.mjs";import"../chunk-CDPGRPI5.mjs";import"../chunk-PCJMDUSI.mjs";import"../chunk-FX23A4BR.mjs";import"../chunk-HTXR2XI5.mjs";import"../chunk-J7Q2R6UH.mjs";import{a}from"../chunk-XNDIT72O.mjs";import{a as b}from"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-FFQ6EQCL.mjs";import"../chunk-3OCXL2UM.mjs";import"../chunk-PSSAAY7D.mjs";export{c as CrossmintEmbeddedCheckout,a as EmailSignersDialog,d as ExportPrivateKeyButton,b as PhoneSignersDialog};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-C62HRWJA.js');var _chunkA3OLN6DVjs = require('./chunk-A3OLN6DV.js');var _chunkYDVGBH2Hjs = require('./chunk-YDVGBH2H.js');require('./chunk-2PX34LDU.js');require('./chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('./chunk-UA34B5QB.js');require('./chunk-DKQZSNOO.js');require('./chunk-72MMCJ2E.js');var _chunkKEQROZQTjs = require('./chunk-KEQROZQT.js');require('./chunk-M6QYYMLH.js');require('./chunk-YQEWHOQ7.js');require('./chunk-VACQTZRT.js');require('./chunk-VHALUNVO.js');require('./chunk-I4D3YJW2.js');var _chunkYJORUMPBjs = require('./chunk-YJORUMPB.js');var _chunkMVVSGLQLjs = require('./chunk-MVVSGLQL.js');require('./chunk-F7VXWATP.js');require('./chunk-DC5HCBPK.js');require('./chunk-EI5LOD4Y.js');var _chunkK75IJHIBjs = require('./chunk-K75IJHIB.js');require('./chunk-SHTETN4C.js');var _chunk77GXCNDPjs = require('./chunk-77GXCNDP.js');require('./chunk-2D2RJCVX.js');var _chunkMKCQJOIOjs = require('./chunk-MKCQJOIO.js');require('./chunk-R53VL63J.js');require('./chunk-LOWHFH2U.js');require('./chunk-J42HASCI.js');var _walletssdk = require('@crossmint/wallets-sdk');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintCheckoutProvider = _chunk77GXCNDPjs.a; exports.CrossmintEmbeddedCheckout = _chunkKEQROZQTjs.a; exports.CrossmintProvider = _chunkYDVGBH2Hjs.b; exports.CrossmintWalletProvider = _chunkA3OLN6DVjs.a; exports.EVMWallet = _walletssdk.EVMWallet; exports.EmailSignersDialog = _chunkYJORUMPBjs.a; exports.ExportPrivateKeyButton = _chunkUA34B5QBjs.a; exports.PhoneSignersDialog = _chunkMVVSGLQLjs.a; exports.SolanaWallet = _walletssdk.SolanaWallet; exports.Wallet = _walletssdk.Wallet; exports.useAuth = _chunkK75IJHIBjs.d; exports.useCrossmint = _chunkK75IJHIBjs.e; exports.useCrossmintAuth = _chunkK75IJHIBjs.c; exports.useCrossmintCheckout = _chunk77GXCNDPjs.b; exports.useWallet = _chunkK75IJHIBjs.f; exports.useWalletEmailSigner = _chunkMKCQJOIOjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-C62HRWJA.js');var _chunkFPU3LFHHjs = require('./chunk-FPU3LFHH.js');var _chunkUWXM75PIjs = require('./chunk-UWXM75PI.js');require('./chunk-2PX34LDU.js');require('./chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('./chunk-UA34B5QB.js');require('./chunk-DKQZSNOO.js');require('./chunk-72MMCJ2E.js');var _chunkPMXBI6YKjs = require('./chunk-PMXBI6YK.js');require('./chunk-IJ4Y6BW7.js');require('./chunk-YQEWHOQ7.js');require('./chunk-VACQTZRT.js');require('./chunk-XKSRGLO3.js');require('./chunk-I4D3YJW2.js');var _chunkYJORUMPBjs = require('./chunk-YJORUMPB.js');var _chunkMVVSGLQLjs = require('./chunk-MVVSGLQL.js');require('./chunk-F7VXWATP.js');require('./chunk-DC5HCBPK.js');require('./chunk-EI5LOD4Y.js');var _chunkK75IJHIBjs = require('./chunk-K75IJHIB.js');require('./chunk-SHTETN4C.js');var _chunk77GXCNDPjs = require('./chunk-77GXCNDP.js');require('./chunk-2D2RJCVX.js');var _chunkMKCQJOIOjs = require('./chunk-MKCQJOIO.js');require('./chunk-MYCTCBES.js');require('./chunk-SLCEQFJ5.js');require('./chunk-J42HASCI.js');var _walletssdk = require('@crossmint/wallets-sdk');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintCheckoutProvider = _chunk77GXCNDPjs.a; exports.CrossmintEmbeddedCheckout = _chunkPMXBI6YKjs.a; exports.CrossmintProvider = _chunkUWXM75PIjs.b; exports.CrossmintWalletProvider = _chunkFPU3LFHHjs.a; exports.EVMWallet = _walletssdk.EVMWallet; exports.EmailSignersDialog = _chunkYJORUMPBjs.a; exports.ExportPrivateKeyButton = _chunkUA34B5QBjs.a; exports.PhoneSignersDialog = _chunkMVVSGLQLjs.a; exports.SolanaWallet = _walletssdk.SolanaWallet; exports.Wallet = _walletssdk.Wallet; exports.useAuth = _chunkK75IJHIBjs.d; exports.useCrossmint = _chunkK75IJHIBjs.e; exports.useCrossmintAuth = _chunkK75IJHIBjs.c; exports.useCrossmintCheckout = _chunk77GXCNDPjs.b; exports.useWallet = _chunkK75IJHIBjs.f; exports.useWalletEmailSigner = _chunkMKCQJOIOjs.a;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import"./chunk-I3QSTPTV.mjs";import{a as y}from"./chunk-ZCMT733Z.mjs";import{b as i}from"./chunk-QPXWIB5H.mjs";import"./chunk-UBHIBMTA.mjs";import"./chunk-5CLFJLE4.mjs";import{a as x}from"./chunk-EF2YTIUF.mjs";import"./chunk-TIQGKXQA.mjs";import"./chunk-MB7H3PBJ.mjs";import{a as c}from"./chunk-KPJ2TLTH.mjs";import"./chunk-PPCFBEW2.mjs";import"./chunk-PCJMDUSI.mjs";import"./chunk-FX23A4BR.mjs";import"./chunk-C5OFI35N.mjs";import"./chunk-J7Q2R6UH.mjs";import{a as m}from"./chunk-XNDIT72O.mjs";import{a as l}from"./chunk-3QSVHCEH.mjs";import"./chunk-D5QADN6Z.mjs";import"./chunk-YLJDAK2S.mjs";import"./chunk-7USVT6EZ.mjs";import{b as o,c as a,d as n,e as p,f as s}from"./chunk-HS74BZSE.mjs";import"./chunk-ZCKUSOGC.mjs";import{a as e,b as r}from"./chunk-IUDQDPIN.mjs";import"./chunk-FFQ6EQCL.mjs";import{a as t}from"./chunk-J477SX6P.mjs";import"./chunk-J36PDK5V.mjs";import"./chunk-TETUIGAB.mjs";import"./chunk-PSSAAY7D.mjs";import{EVMWallet as C,SolanaWallet as W,Wallet as k}from"@crossmint/wallets-sdk";export{o as CrossmintAuthProvider,e as CrossmintCheckoutProvider,c as CrossmintEmbeddedCheckout,i as CrossmintProvider,y as CrossmintWalletProvider,C as EVMWallet,m as EmailSignersDialog,x as ExportPrivateKeyButton,l as PhoneSignersDialog,W as SolanaWallet,k as Wallet,n as useAuth,p as useCrossmint,a as useCrossmintAuth,r as useCrossmintCheckout,s as useWallet,t as useWalletEmailSigner};
1
+ import"./chunk-I3QSTPTV.mjs";import{a as y}from"./chunk-DAOQZUNX.mjs";import{b as i}from"./chunk-XNTD2XPG.mjs";import"./chunk-UBHIBMTA.mjs";import"./chunk-5CLFJLE4.mjs";import{a as x}from"./chunk-EF2YTIUF.mjs";import"./chunk-TIQGKXQA.mjs";import"./chunk-MB7H3PBJ.mjs";import{a as c}from"./chunk-B45CGCKW.mjs";import"./chunk-CDPGRPI5.mjs";import"./chunk-PCJMDUSI.mjs";import"./chunk-FX23A4BR.mjs";import"./chunk-HTXR2XI5.mjs";import"./chunk-J7Q2R6UH.mjs";import{a as m}from"./chunk-XNDIT72O.mjs";import{a as l}from"./chunk-3QSVHCEH.mjs";import"./chunk-D5QADN6Z.mjs";import"./chunk-YLJDAK2S.mjs";import"./chunk-7USVT6EZ.mjs";import{b as o,c as a,d as n,e as p,f as s}from"./chunk-HS74BZSE.mjs";import"./chunk-ZCKUSOGC.mjs";import{a as e,b as r}from"./chunk-IUDQDPIN.mjs";import"./chunk-FFQ6EQCL.mjs";import{a as t}from"./chunk-J477SX6P.mjs";import"./chunk-BBJN5CC7.mjs";import"./chunk-3OCXL2UM.mjs";import"./chunk-PSSAAY7D.mjs";import{EVMWallet as C,SolanaWallet as W,Wallet as k}from"@crossmint/wallets-sdk";export{o as CrossmintAuthProvider,e as CrossmintCheckoutProvider,c as CrossmintEmbeddedCheckout,i as CrossmintProvider,y as CrossmintWalletProvider,C as EVMWallet,m as EmailSignersDialog,x as ExportPrivateKeyButton,l as PhoneSignersDialog,W as SolanaWallet,k as Wallet,n as useAuth,p as useCrossmint,a as useCrossmintAuth,r as useCrossmintCheckout,s as useWallet,t as useWalletEmailSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkR53VL63Jjs = require('../chunk-R53VL63J.js');require('../chunk-LOWHFH2U.js');require('../chunk-J42HASCI.js');exports.initReactNativeLogger = _chunkR53VL63Jjs.b; exports.initializeDatadog = _chunkR53VL63Jjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMYCTCBESjs = require('../chunk-MYCTCBES.js');require('../chunk-SLCEQFJ5.js');require('../chunk-J42HASCI.js');exports.initReactNativeLogger = _chunkMYCTCBESjs.b; exports.initializeDatadog = _chunkMYCTCBESjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-J36PDK5V.mjs";import"../chunk-TETUIGAB.mjs";import"../chunk-PSSAAY7D.mjs";export{b as initReactNativeLogger,a as initializeDatadog};
1
+ import{a,b}from"../chunk-BBJN5CC7.mjs";import"../chunk-3OCXL2UM.mjs";import"../chunk-PSSAAY7D.mjs";export{b as initReactNativeLogger,a as initializeDatadog};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYDVGBH2Hjs = require('../chunk-YDVGBH2H.js');require('../chunk-R53VL63J.js');require('../chunk-LOWHFH2U.js');require('../chunk-J42HASCI.js');exports.CrossmintProvider = _chunkYDVGBH2Hjs.b; exports.LoggerContext = _chunkYDVGBH2Hjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUWXM75PIjs = require('../chunk-UWXM75PI.js');require('../chunk-MYCTCBES.js');require('../chunk-SLCEQFJ5.js');require('../chunk-J42HASCI.js');exports.CrossmintProvider = _chunkUWXM75PIjs.b; exports.LoggerContext = _chunkUWXM75PIjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-QPXWIB5H.mjs";import"../chunk-J36PDK5V.mjs";import"../chunk-TETUIGAB.mjs";import"../chunk-PSSAAY7D.mjs";export{b as CrossmintProvider,a as LoggerContext};
1
+ import{a,b}from"../chunk-XNTD2XPG.mjs";import"../chunk-BBJN5CC7.mjs";import"../chunk-3OCXL2UM.mjs";import"../chunk-PSSAAY7D.mjs";export{b as CrossmintProvider,a as LoggerContext};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkA3OLN6DVjs = require('../chunk-A3OLN6DV.js');require('../chunk-YDVGBH2H.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-R53VL63J.js');require('../chunk-LOWHFH2U.js');require('../chunk-J42HASCI.js');exports.CrossmintWalletProvider = _chunkA3OLN6DVjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFPU3LFHHjs = require('../chunk-FPU3LFHH.js');require('../chunk-UWXM75PI.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-MYCTCBES.js');require('../chunk-SLCEQFJ5.js');require('../chunk-J42HASCI.js');exports.CrossmintWalletProvider = _chunkFPU3LFHHjs.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-ZCMT733Z.mjs";import"../chunk-QPXWIB5H.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-J36PDK5V.mjs";import"../chunk-TETUIGAB.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintWalletProvider};
1
+ import{a}from"../chunk-DAOQZUNX.mjs";import"../chunk-XNTD2XPG.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-BBJN5CC7.mjs";import"../chunk-3OCXL2UM.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintWalletProvider};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-C62HRWJA.js');var _chunkA3OLN6DVjs = require('../chunk-A3OLN6DV.js');var _chunkYDVGBH2Hjs = require('../chunk-YDVGBH2H.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');var _chunkK75IJHIBjs = require('../chunk-K75IJHIB.js');require('../chunk-SHTETN4C.js');require('../chunk-77GXCNDP.js');require('../chunk-2D2RJCVX.js');require('../chunk-MKCQJOIO.js');require('../chunk-R53VL63J.js');require('../chunk-LOWHFH2U.js');require('../chunk-J42HASCI.js');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintProvider = _chunkYDVGBH2Hjs.b; exports.CrossmintWalletProvider = _chunkA3OLN6DVjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-C62HRWJA.js');var _chunkFPU3LFHHjs = require('../chunk-FPU3LFHH.js');var _chunkUWXM75PIjs = require('../chunk-UWXM75PI.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');var _chunkK75IJHIBjs = require('../chunk-K75IJHIB.js');require('../chunk-SHTETN4C.js');require('../chunk-77GXCNDP.js');require('../chunk-2D2RJCVX.js');require('../chunk-MKCQJOIO.js');require('../chunk-MYCTCBES.js');require('../chunk-SLCEQFJ5.js');require('../chunk-J42HASCI.js');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintProvider = _chunkUWXM75PIjs.b; exports.CrossmintWalletProvider = _chunkFPU3LFHHjs.a;
@@ -1 +1 @@
1
- import"../chunk-I3QSTPTV.mjs";import{a as c}from"../chunk-ZCMT733Z.mjs";import{b}from"../chunk-QPXWIB5H.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import{b as a}from"../chunk-HS74BZSE.mjs";import"../chunk-ZCKUSOGC.mjs";import"../chunk-IUDQDPIN.mjs";import"../chunk-FFQ6EQCL.mjs";import"../chunk-J477SX6P.mjs";import"../chunk-J36PDK5V.mjs";import"../chunk-TETUIGAB.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintAuthProvider,b as CrossmintProvider,c as CrossmintWalletProvider};
1
+ import"../chunk-I3QSTPTV.mjs";import{a as c}from"../chunk-DAOQZUNX.mjs";import{b}from"../chunk-XNTD2XPG.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import{b as a}from"../chunk-HS74BZSE.mjs";import"../chunk-ZCKUSOGC.mjs";import"../chunk-IUDQDPIN.mjs";import"../chunk-FFQ6EQCL.mjs";import"../chunk-J477SX6P.mjs";import"../chunk-BBJN5CC7.mjs";import"../chunk-3OCXL2UM.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintAuthProvider,b as CrossmintProvider,c as CrossmintWalletProvider};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVHALUNVOjs = require('../chunk-VHALUNVO.js');require('../chunk-LOWHFH2U.js');require('../chunk-J42HASCI.js');exports.createCrossmintApiClient = _chunkVHALUNVOjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXKSRGLO3js = require('../chunk-XKSRGLO3.js');require('../chunk-SLCEQFJ5.js');require('../chunk-J42HASCI.js');exports.createCrossmintApiClient = _chunkXKSRGLO3js.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-C5OFI35N.mjs";import"../chunk-TETUIGAB.mjs";import"../chunk-PSSAAY7D.mjs";export{a as createCrossmintApiClient};
1
+ import{a}from"../chunk-HTXR2XI5.mjs";import"../chunk-3OCXL2UM.mjs";import"../chunk-PSSAAY7D.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": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "repository": "https://github.com/Crossmint/crossmint-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Paella Labs Inc",
@@ -23,12 +23,12 @@
23
23
  "zod": "3.22.4",
24
24
  "@crossmint/client-sdk-auth": "1.2.39",
25
25
  "@crossmint/client-sdk-base": "1.7.6",
26
- "@crossmint/client-sdk-react-base": "0.7.7",
26
+ "@crossmint/client-sdk-react-base": "0.7.8",
27
27
  "@crossmint/client-sdk-rn-window": "0.3.12",
28
28
  "@crossmint/client-signers": "0.1.2",
29
29
  "@crossmint/common-sdk-auth": "1.0.61",
30
30
  "@crossmint/common-sdk-base": "0.9.10",
31
- "@crossmint/wallets-sdk": "0.18.6"
31
+ "@crossmint/wallets-sdk": "0.18.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@expo/config-plugins": "^9.0.17",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYDVGBH2Hjs = require('./chunk-YDVGBH2H.js');var _chunkYJORUMPBjs = require('./chunk-YJORUMPB.js');var _chunkMVVSGLQLjs = require('./chunk-MVVSGLQL.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');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');function _({children:w,createOnLogin:k,appearance:U,headlessSigningFlow:b=!0,callbacks:O}){let{crossmint:R}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintWalletProvider must be used within CrossmintProvider"),n=_clientsdkreactbase.useLogger.call(void 0, _chunkYDVGBH2Hjs.a),{apiKey:g,appId:u}=R,m=_react.useMemo.call(void 0, ()=>{let e=_commonsdkbase.validateAPIKey.call(void 0, g);if(!e.isValid)throw new Error("Invalid API key");return e},[g]),L=_react.useMemo.call(void 0, ()=>_clientsigners.environmentUrlConfig[m.environment],[m.environment]),a=_react.useRef.call(void 0, null),t=_react.useRef.call(void 0, null),[h,M]=_react.useState.call(void 0, !1),T=_react.useMemo.call(void 0, ()=>u!=null?{crossmintAppId:u}:{},[u]);_react.useEffect.call(void 0, ()=>{a.current!=null&&t.current==null&&(n.info("react-native.wallet.webview.initializing"),t.current=new (0, _clientsdkrnwindow.WebViewParent)(a,{incomingEvents:_clientsigners.signerOutboundEvents,outgoingEvents:_clientsigners.signerInboundEvents,recovery:{recoverableErrorCodes:[_clientsigners.SignerErrorCode.IndexedDbFatal]}}),n.info("react-native.wallet.webview.initialized"))},[h,n]);let A=_react.useCallback.call(void 0, ()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){let e=t.current;if(e!=null)try{n.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),n.info("react-native.wallet.webview.handshake.success")}catch(r){n.error("react-native.wallet.webview.handshake.error",{error:r instanceof Error?r.message:String(r)}),console.error("[CrossmintWalletProvider] Handshake error:",r)}}),[n]),N=_react.useCallback.call(void 0, e=>{let r=t.current;if(r!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let p=o.type.split(".")[1],s=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(Z){return i}}),c=`[WebView:${p.toUpperCase()}]`;switch(p){case"log":console.log(c,...s);break;case"error":console.error(c,...s);break;case"warn":console.warn(c,...s);break;case"info":console.info(c,...s);break;default:console.log(`[WebView Unknown:${p}]`,...s)}return}}catch(o){}r.handleMessage(e)}},[]);return _jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletUIBaseProvider,{createOnLogin:k,appearance:U,headlessSigningFlow:b,initializeWebView:()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){n.info("react-native.wallet.webview.init.start"),M(!0);let e=0,r=100;for(;t.current==null&&e<r;)yield new Promise(o=>setTimeout(o,50)),e++;if(t.current==null)throw n.error("react-native.wallet.webview.init.timeout",{attempts:e}),new Error("WebView not ready or handshake incomplete");n.info("react-native.wallet.webview.init.success",{attempts:e})}),callbacks:O,renderUI:b?void 0:({emailSignerProps:e,phoneSignerProps:r})=>_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkYJORUMPBjs.a,_chunkJ42HASCIjs.a.call(void 0, {},e)),_jsxruntime.jsx.call(void 0, _chunkMVVSGLQLjs.a,_chunkJ42HASCIjs.a.call(void 0, {},r))]}),clientTEEConnection:()=>{if(t.current==null)throw new Error("WebView not ready or handshake incomplete");return t.current},children:[w,h&&_jsxruntime.jsx.call(void 0, _reactnative.View,{style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:_jsxruntime.jsx.call(void 0, _clientsdkrnwindow.RNWebView,{ref:a,source:{uri:L},globals:T,onLoadEnd:A,onMessage:N,onError:e=>{console.error("[CrossmintWalletProvider] WebView error:",e.nativeEvent)},onHttpError:e=>{console.error("[CrossmintWalletProvider] WebView HTTP error:",e.nativeEvent)},onContentProcessDidTerminate:()=>{var e;return(e=a.current)==null?void 0:e.reload()},onRenderProcessGone:()=>{var e;return(e=a.current)==null?void 0:e.reload()},style:{width:1,height:1},javaScriptCanOpenWindowsAutomatically:!1,thirdPartyCookiesEnabled:!1,sharedCookiesEnabled:!1,incognito:!1,setSupportMultipleWindows:!1,originWhitelist:[_clientsigners.environmentUrlConfig[m.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function we(w){return _jsxruntime.jsx.call(void 0, _,_chunkJ42HASCIjs.a.call(void 0, {},w))}exports.a = we;
@@ -1 +0,0 @@
1
- import{a as W}from"./chunk-QPXWIB5H.mjs";import{a as C}from"./chunk-XNDIT72O.mjs";import{a as E}from"./chunk-3QSVHCEH.mjs";import{a as d,e as f}from"./chunk-PSSAAY7D.mjs";import{useCallback as P,useRef as y,useMemo as v,useEffect as D,useState as S}from"react";import{View as z}from"react-native";import{RNWebView as x,WebViewParent as F}from"@crossmint/client-sdk-rn-window";import{environmentUrlConfig as V,signerInboundEvents as j,signerOutboundEvents as H,SignerErrorCode as K}from"@crossmint/client-signers";import{validateAPIKey as B}from"@crossmint/common-sdk-base";import{CrossmintWalletUIBaseProvider as G,useCrossmint as J}from"@crossmint/client-sdk-react-base";import{useLogger as $}from"@crossmint/client-sdk-react-base";import{Fragment as q,jsx as l,jsxs as I}from"react/jsx-runtime";function _({children:w,createOnLogin:k,appearance:U,headlessSigningFlow:b=!0,callbacks:O}){let{crossmint:R}=J("CrossmintWalletProvider must be used within CrossmintProvider"),n=$(W),{apiKey:g,appId:u}=R,m=v(()=>{let e=B(g);if(!e.isValid)throw new Error("Invalid API key");return e},[g]),L=v(()=>V[m.environment],[m.environment]),a=y(null),t=y(null),[h,M]=S(!1),T=v(()=>u!=null?{crossmintAppId:u}:{},[u]);D(()=>{a.current!=null&&t.current==null&&(n.info("react-native.wallet.webview.initializing"),t.current=new F(a,{incomingEvents:H,outgoingEvents:j,recovery:{recoverableErrorCodes:[K.IndexedDbFatal]}}),n.info("react-native.wallet.webview.initialized"))},[h,n]);let A=P(()=>f(this,null,function*(){let e=t.current;if(e!=null)try{n.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),n.info("react-native.wallet.webview.handshake.success")}catch(r){n.error("react-native.wallet.webview.handshake.error",{error:r instanceof Error?r.message:String(r)}),console.error("[CrossmintWalletProvider] Handshake error:",r)}}),[n]),N=P(e=>{let r=t.current;if(r!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let p=o.type.split(".")[1],s=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(Z){return i}}),c=`[WebView:${p.toUpperCase()}]`;switch(p){case"log":console.log(c,...s);break;case"error":console.error(c,...s);break;case"warn":console.warn(c,...s);break;case"info":console.info(c,...s);break;default:console.log(`[WebView Unknown:${p}]`,...s)}return}}catch(o){}r.handleMessage(e)}},[]);return I(G,{createOnLogin:k,appearance:U,headlessSigningFlow:b,initializeWebView:()=>f(this,null,function*(){n.info("react-native.wallet.webview.init.start"),M(!0);let e=0,r=100;for(;t.current==null&&e<r;)yield new Promise(o=>setTimeout(o,50)),e++;if(t.current==null)throw n.error("react-native.wallet.webview.init.timeout",{attempts:e}),new Error("WebView not ready or handshake incomplete");n.info("react-native.wallet.webview.init.success",{attempts:e})}),callbacks:O,renderUI:b?void 0:({emailSignerProps:e,phoneSignerProps:r})=>I(q,{children:[l(C,d({},e)),l(E,d({},r))]}),clientTEEConnection:()=>{if(t.current==null)throw new Error("WebView not ready or handshake incomplete");return t.current},children:[w,h&&l(z,{style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:l(x,{ref:a,source:{uri:L},globals:T,onLoadEnd:A,onMessage:N,onError:e=>{console.error("[CrossmintWalletProvider] WebView error:",e.nativeEvent)},onHttpError:e=>{console.error("[CrossmintWalletProvider] WebView HTTP error:",e.nativeEvent)},onContentProcessDidTerminate:()=>{var e;return(e=a.current)==null?void 0:e.reload()},onRenderProcessGone:()=>{var e;return(e=a.current)==null?void 0:e.reload()},style:{width:1,height:1},javaScriptCanOpenWindowsAutomatically:!1,thirdPartyCookiesEnabled:!1,sharedCookiesEnabled:!1,incognito:!1,setSupportMultipleWindows:!1,originWhitelist:[V[m.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function ue(w){return l(_,d({},w))}export{ue as a};