@crossmint/client-sdk-react-native-ui 0.13.13 → 0.13.14

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 (42) hide show
  1. package/dist/{chunk-ZZVPF774.mjs → chunk-2DBEOELT.mjs} +1 -1
  2. package/dist/{chunk-6WKTVPDO.js → chunk-2QJBYAW4.js} +1 -1
  3. package/dist/{chunk-BB7D45HQ.mjs → chunk-ARP2DGYK.mjs} +1 -1
  4. package/dist/{chunk-JJF4U5VR.mjs → chunk-AXN3ZZKH.mjs} +1 -1
  5. package/dist/{chunk-INJNIKL6.js → chunk-C36ERFGW.js} +1 -1
  6. package/dist/{chunk-M43HEN6J.js → chunk-COVGRSFV.js} +1 -1
  7. package/dist/{chunk-DFIO6CJ7.mjs → chunk-CTGCSSIX.mjs} +1 -1
  8. package/dist/{chunk-62D3JI7K.mjs → chunk-HN535QSB.mjs} +1 -1
  9. package/dist/chunk-SIDDK3DS.mjs +1 -0
  10. package/dist/chunk-SV7C7TBT.mjs +1 -0
  11. package/dist/{chunk-VCPBP3CM.js → chunk-UVNCKAKH.js} +1 -1
  12. package/dist/{chunk-VVFXBMVW.js → chunk-WEZDVVDF.js} +1 -1
  13. package/dist/{chunk-7BLZMB7R.js → chunk-YLVMWK7M.js} +1 -1
  14. package/dist/chunk-YNGHCY7O.js +1 -0
  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.d.mts +4 -7
  28. package/dist/logger/init.d.ts +4 -7
  29. package/dist/logger/init.js +1 -1
  30. package/dist/logger/init.mjs +1 -1
  31. package/dist/providers/CrossmintProvider.js +1 -1
  32. package/dist/providers/CrossmintProvider.mjs +1 -1
  33. package/dist/providers/CrossmintWalletProvider.js +1 -1
  34. package/dist/providers/CrossmintWalletProvider.mjs +1 -1
  35. package/dist/providers/index.js +1 -1
  36. package/dist/providers/index.mjs +1 -1
  37. package/dist/utils/createCrossmintApiClient.js +1 -1
  38. package/dist/utils/createCrossmintApiClient.mjs +1 -1
  39. package/package.json +7 -8
  40. package/dist/chunk-KRPDPF4O.mjs +0 -1
  41. package/dist/chunk-NIY4Q6GG.js +0 -1
  42. package/dist/chunk-QJDHFKBM.mjs +0 -1
@@ -1 +1 @@
1
- import{a as o}from"./chunk-JJF4U5VR.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-AXN3ZZKH.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
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkINJNIKL6js = require('./chunk-INJNIKL6.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:_chunkINJNIKL6js.a.version},apiKeyExpectations:t}})}exports.a = a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkC36ERFGWjs = require('./chunk-C36ERFGW.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:_chunkC36ERFGWjs.a.version},apiKeyExpectations:t}})}exports.a = a;
@@ -1 +1 @@
1
- import{a as n}from"./chunk-QJDHFKBM.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-SIDDK3DS.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
- import{c as h}from"./chunk-PCJMDUSI.mjs";import{a as y}from"./chunk-FX23A4BR.mjs";import{a as f}from"./chunk-BB7D45HQ.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-ARP2DGYK.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 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.13",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.0","@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.14",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:*","@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 _chunkNIY4Q6GGjs = require('./chunk-NIY4Q6GG.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, ()=>_chunkNIY4Q6GGjs.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 _chunkYNGHCY7Ojs = require('./chunk-YNGHCY7O.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, ()=>_chunkYNGHCY7Ojs.a.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
- import{a as W}from"./chunk-62D3JI7K.mjs";import{a as E}from"./chunk-XNDIT72O.mjs";import{a as P}from"./chunk-3QSVHCEH.mjs";import{a as w,e as m}from"./chunk-PSSAAY7D.mjs";import{useCallback as y,useRef as V,useMemo as f,useEffect as S,useState as z}from"react";import{View as x}from"react-native";import{RNWebView as _,WebViewParent as F}from"@crossmint/client-sdk-rn-window";import{environmentUrlConfig as k,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 c,jsxs as I}from"react/jsx-runtime";function q({children:d,createOnLogin:O,appearance:U,headlessSigningFlow:p=!0,callbacks:M}){let{crossmint:R}=J("CrossmintWalletProvider must be used within CrossmintProvider"),r=$(W),{apiKey:g,appId:u}=R,v=f(()=>{let e=B(g);if(!e.isValid)throw new Error("Invalid API key");return e},[g]),L=f(()=>k[v.environment],[v.environment]),a=V(null),n=V(null),[h,T]=z(!1),A=f(()=>u!=null?{crossmintAppId:u}:{},[u]);S(()=>{a.current!=null&&n.current==null&&(r.info("react-native.wallet.webview.initializing"),n.current=new F(a,{incomingEvents:H,outgoingEvents:j,handshakeOptions:{timeoutMs:3e4,intervalMs:100},recovery:{recoverableErrorCodes:[K.IndexedDbFatal]}}),r.info("react-native.wallet.webview.initialized"))},[h,r]);let N=y(()=>m(this,null,function*(){let e=n.current;if(e!=null)try{r.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),r.info("react-native.wallet.webview.handshake.success")}catch(t){r.error("react-native.wallet.webview.handshake.error",{error:t instanceof Error?t.message:String(t)}),console.error("[CrossmintWalletProvider] Handshake error:",t)}}),[r]),D=y(e=>{let t=n.current;if(t!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let b=o.type.split(".")[1],C=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(ee){return i}}),s=`react-native.wallet.webview.console.${b}`,l={webview_args:C};switch(b){case"log":r.info(s,l);break;case"error":r.error(s,l);break;case"warn":r.warn(s,l);break;case"info":r.info(s,l);break;case"debug":r.debug(s,l);break;default:r.info("react-native.wallet.webview.console.unknown",{webview_method:b,webview_args:C})}return}}catch(o){}t.handleMessage(e)}},[r]);return I(G,{createOnLogin:O,appearance:U,headlessSigningFlow:p,initializeWebView:()=>m(this,null,function*(){r.info("react-native.wallet.webview.init.start"),T(!0);let e=0,t=100;for(;n.current==null&&e<t;)yield new Promise(o=>setTimeout(o,50)),e++;if(n.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})}),callbacks:M,renderUI:p?void 0:({emailSignerProps:e,phoneSignerProps:t})=>I(Q,{children:[c(E,w({},e)),c(P,w({},t))]}),clientTEEConnection:()=>{if(n.current==null)throw new Error("WebView not ready or handshake incomplete");return n.current},children:[d,h&&c(x,{style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:c(_,{ref:a,source:{uri:L},globals:A,onLoadEnd:N,onMessage:D,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:[k[v.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function ve(d){return c(q,w({},d))}export{ve as a};
1
+ import{a as W}from"./chunk-HN535QSB.mjs";import{a as E}from"./chunk-XNDIT72O.mjs";import{a as P}from"./chunk-3QSVHCEH.mjs";import{a as w,e as m}from"./chunk-PSSAAY7D.mjs";import{useCallback as y,useRef as V,useMemo as f,useEffect as S,useState as z}from"react";import{View as x}from"react-native";import{RNWebView as _,WebViewParent as F}from"@crossmint/client-sdk-rn-window";import{environmentUrlConfig as k,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 c,jsxs as I}from"react/jsx-runtime";function q({children:d,createOnLogin:O,appearance:U,headlessSigningFlow:p=!0,callbacks:M}){let{crossmint:R}=J("CrossmintWalletProvider must be used within CrossmintProvider"),r=$(W),{apiKey:g,appId:u}=R,v=f(()=>{let e=B(g);if(!e.isValid)throw new Error("Invalid API key");return e},[g]),L=f(()=>k[v.environment],[v.environment]),a=V(null),n=V(null),[h,T]=z(!1),A=f(()=>u!=null?{crossmintAppId:u}:{},[u]);S(()=>{a.current!=null&&n.current==null&&(r.info("react-native.wallet.webview.initializing"),n.current=new F(a,{incomingEvents:H,outgoingEvents:j,handshakeOptions:{timeoutMs:3e4,intervalMs:100},recovery:{recoverableErrorCodes:[K.IndexedDbFatal]}}),r.info("react-native.wallet.webview.initialized"))},[h,r]);let N=y(()=>m(this,null,function*(){let e=n.current;if(e!=null)try{r.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),r.info("react-native.wallet.webview.handshake.success")}catch(t){r.error("react-native.wallet.webview.handshake.error",{error:t instanceof Error?t.message:String(t)}),console.error("[CrossmintWalletProvider] Handshake error:",t)}}),[r]),D=y(e=>{let t=n.current;if(t!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let b=o.type.split(".")[1],C=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(ee){return i}}),s=`react-native.wallet.webview.console.${b}`,l={webview_args:C};switch(b){case"log":r.info(s,l);break;case"error":r.error(s,l);break;case"warn":r.warn(s,l);break;case"info":r.info(s,l);break;case"debug":r.debug(s,l);break;default:r.info("react-native.wallet.webview.console.unknown",{webview_method:b,webview_args:C})}return}}catch(o){}t.handleMessage(e)}},[r]);return I(G,{createOnLogin:O,appearance:U,headlessSigningFlow:p,initializeWebView:()=>m(this,null,function*(){r.info("react-native.wallet.webview.init.start"),T(!0);let e=0,t=100;for(;n.current==null&&e<t;)yield new Promise(o=>setTimeout(o,50)),e++;if(n.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})}),callbacks:M,renderUI:p?void 0:({emailSignerProps:e,phoneSignerProps:t})=>I(Q,{children:[c(E,w({},e)),c(P,w({},t))]}),clientTEEConnection:()=>{if(n.current==null)throw new Error("WebView not ready or handshake incomplete");return n.current},children:[d,h&&c(x,{style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:c(_,{ref:a,source:{uri:L},globals:A,onLoadEnd:N,onMessage:D,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:[k[v.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function ve(d){return c(q,w({},d))}export{ve as a};
@@ -1 +1 @@
1
- import{b as s}from"./chunk-KRPDPF4O.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{a as s}from"./chunk-SV7C7TBT.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};
@@ -0,0 +1 @@
1
+ var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.14",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:*","@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};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-SIDDK3DS.mjs";import{SdkLogger as h,ReactNativeDatadogSink as R,validateAPIKey as S}from"@crossmint/common-sdk-base";import{AppState as b}from"react-native";import D from"expo-constants";import*as e from"expo-device";function P(i){var d,s,c,f,g,v,m,u,p,l,k;let n=S(i);if(!n.isValid)throw new Error(`Invalid API key: ${n.message}`);let{environment:r,projectId:I}=n,t=new h({packageName:a.name,packageVersion:a.version,environment:r,projectId:I,platform:"react-native"}),N=(v=(g=(s=(d=D.expoConfig)==null?void 0:d.ios)==null?void 0:s.bundleIdentifier)!=null?g:(f=(c=D.expoConfig)==null?void 0:c.android)==null?void 0:f.package)!=null?v:void 0,o={};e!=null&&(o.device=(p=(u=(m=e.modelName)!=null?m:e.deviceName)!=null?u:e.brand)!=null?p:void 0,o.os_version=(l=e.osVersion)!=null?l:void 0,o.os_name=(k=e.osName)!=null?k:void 0);let L=new R(r,N,o);return t.addSink(L),w(t),t}function w(i){b.addEventListener("change",n=>{(n==="background"||n==="inactive")&&typeof i.flush=="function"&&i.flush()})}export{P as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM43HEN6Jjs = require('./chunk-M43HEN6J.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 q({children:d,createOnLogin:O,appearance:U,headlessSigningFlow:p=!0,callbacks:M}){let{crossmint:R}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintWalletProvider must be used within CrossmintProvider"),r=_clientsdkreactbase.useLogger.call(void 0, _chunkM43HEN6Jjs.a),{apiKey:g,appId:u}=R,v=_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[v.environment],[v.environment]),a=_react.useRef.call(void 0, null),n=_react.useRef.call(void 0, null),[h,T]=_react.useState.call(void 0, !1),A=_react.useMemo.call(void 0, ()=>u!=null?{crossmintAppId:u}:{},[u]);_react.useEffect.call(void 0, ()=>{a.current!=null&&n.current==null&&(r.info("react-native.wallet.webview.initializing"),n.current=new (0, _clientsdkrnwindow.WebViewParent)(a,{incomingEvents:_clientsigners.signerOutboundEvents,outgoingEvents:_clientsigners.signerInboundEvents,handshakeOptions:{timeoutMs:3e4,intervalMs:100},recovery:{recoverableErrorCodes:[_clientsigners.SignerErrorCode.IndexedDbFatal]}}),r.info("react-native.wallet.webview.initialized"))},[h,r]);let N=_react.useCallback.call(void 0, ()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){let e=n.current;if(e!=null)try{r.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),r.info("react-native.wallet.webview.handshake.success")}catch(t){r.error("react-native.wallet.webview.handshake.error",{error:t instanceof Error?t.message:String(t)}),console.error("[CrossmintWalletProvider] Handshake error:",t)}}),[r]),D=_react.useCallback.call(void 0, e=>{let t=n.current;if(t!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let b=o.type.split(".")[1],C=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(ee){return i}}),s=`react-native.wallet.webview.console.${b}`,l={webview_args:C};switch(b){case"log":r.info(s,l);break;case"error":r.error(s,l);break;case"warn":r.warn(s,l);break;case"info":r.info(s,l);break;case"debug":r.debug(s,l);break;default:r.info("react-native.wallet.webview.console.unknown",{webview_method:b,webview_args:C})}return}}catch(o){}t.handleMessage(e)}},[r]);return _jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletUIBaseProvider,{createOnLogin:O,appearance:U,headlessSigningFlow:p,initializeWebView:()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){r.info("react-native.wallet.webview.init.start"),T(!0);let e=0,t=100;for(;n.current==null&&e<t;)yield new Promise(o=>setTimeout(o,50)),e++;if(n.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})}),callbacks:M,renderUI:p?void 0:({emailSignerProps:e,phoneSignerProps:t})=>_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, {},t))]}),clientTEEConnection:()=>{if(n.current==null)throw new Error("WebView not ready or handshake incomplete");return n.current},children:[d,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:A,onLoadEnd:N,onMessage:D,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[v.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function ue(d){return _jsxruntime.jsx.call(void 0, q,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = ue;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCOVGRSFVjs = require('./chunk-COVGRSFV.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 q({children:d,createOnLogin:O,appearance:U,headlessSigningFlow:p=!0,callbacks:M}){let{crossmint:R}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintWalletProvider must be used within CrossmintProvider"),r=_clientsdkreactbase.useLogger.call(void 0, _chunkCOVGRSFVjs.a),{apiKey:g,appId:u}=R,v=_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[v.environment],[v.environment]),a=_react.useRef.call(void 0, null),n=_react.useRef.call(void 0, null),[h,T]=_react.useState.call(void 0, !1),A=_react.useMemo.call(void 0, ()=>u!=null?{crossmintAppId:u}:{},[u]);_react.useEffect.call(void 0, ()=>{a.current!=null&&n.current==null&&(r.info("react-native.wallet.webview.initializing"),n.current=new (0, _clientsdkrnwindow.WebViewParent)(a,{incomingEvents:_clientsigners.signerOutboundEvents,outgoingEvents:_clientsigners.signerInboundEvents,handshakeOptions:{timeoutMs:3e4,intervalMs:100},recovery:{recoverableErrorCodes:[_clientsigners.SignerErrorCode.IndexedDbFatal]}}),r.info("react-native.wallet.webview.initialized"))},[h,r]);let N=_react.useCallback.call(void 0, ()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){let e=n.current;if(e!=null)try{r.info("react-native.wallet.webview.handshake.start"),e.isConnected=!1,yield e.handshakeWithChild(),r.info("react-native.wallet.webview.handshake.success")}catch(t){r.error("react-native.wallet.webview.handshake.error",{error:t instanceof Error?t.message:String(t)}),console.error("[CrossmintWalletProvider] Handshake error:",t)}}),[r]),D=_react.useCallback.call(void 0, e=>{let t=n.current;if(t!=null){try{let o=JSON.parse(e.nativeEvent.data);if(o&&typeof o.type=="string"&&o.type.startsWith("console.")){let b=o.type.split(".")[1],C=(o.data||[]).map(i=>{try{return i==="[Function]"||i==="[Circular Reference]"||i==="[Unserializable Object]"?i:JSON.parse(i)}catch(ee){return i}}),s=`react-native.wallet.webview.console.${b}`,l={webview_args:C};switch(b){case"log":r.info(s,l);break;case"error":r.error(s,l);break;case"warn":r.warn(s,l);break;case"info":r.info(s,l);break;case"debug":r.debug(s,l);break;default:r.info("react-native.wallet.webview.console.unknown",{webview_method:b,webview_args:C})}return}}catch(o){}t.handleMessage(e)}},[r]);return _jsxruntime.jsxs.call(void 0, _clientsdkreactbase.CrossmintWalletUIBaseProvider,{createOnLogin:O,appearance:U,headlessSigningFlow:p,initializeWebView:()=>_chunkJ42HASCIjs.e.call(void 0, this,null,function*(){r.info("react-native.wallet.webview.init.start"),T(!0);let e=0,t=100;for(;n.current==null&&e<t;)yield new Promise(o=>setTimeout(o,50)),e++;if(n.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})}),callbacks:M,renderUI:p?void 0:({emailSignerProps:e,phoneSignerProps:t})=>_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, {},t))]}),clientTEEConnection:()=>{if(n.current==null)throw new Error("WebView not ready or handshake incomplete");return n.current},children:[d,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:A,onLoadEnd:N,onMessage:D,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[v.environment]],cacheEnabled:!0,cacheMode:"LOAD_DEFAULT"})})]})}function ue(d){return _jsxruntime.jsx.call(void 0, q,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = ue;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQEWHOQ7js = require('./chunk-YQEWHOQ7.js');var _chunkVACQTZRTjs = require('./chunk-VACQTZRT.js');var _chunk6WKTVPDOjs = require('./chunk-6WKTVPDO.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=_chunk6WKTVPDOjs.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 _chunk2QJBYAW4js = require('./chunk-2QJBYAW4.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=_chunk2QJBYAW4js.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});var _chunkVVFXBMVWjs = require('./chunk-VVFXBMVW.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkVVFXBMVWjs.a,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = s;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWEZDVVDFjs = require('./chunk-WEZDVVDF.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkWEZDVVDFjs.a,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = s;
@@ -0,0 +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 _chunkC36ERFGWjs = require('./chunk-C36ERFGW.js');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 E(i){var d,s,c,f,g,v,m,u,p,l,k;let n=_commonsdkbase.validateAPIKey.call(void 0, i);if(!n.isValid)throw new Error(`Invalid API key: ${n.message}`);let{environment:r,projectId:I}=n,t=new (0, _commonsdkbase.SdkLogger)({packageName:_chunkC36ERFGWjs.a.name,packageVersion:_chunkC36ERFGWjs.a.version,environment:r,projectId:I,platform:"react-native"}),N=(v=(g=(s=(d=_expoconstants2.default.expoConfig)==null?void 0:d.ios)==null?void 0:s.bundleIdentifier)!=null?g:(f=(c=_expoconstants2.default.expoConfig)==null?void 0:c.android)==null?void 0:f.package)!=null?v:void 0,o={};e!=null&&(o.device=(p=(u=(m=e.modelName)!=null?m:e.deviceName)!=null?u:e.brand)!=null?p:void 0,o.os_version=(l=e.osVersion)!=null?l:void 0,o.os_name=(k=e.osName)!=null?k:void 0);let L=new (0, _commonsdkbase.ReactNativeDatadogSink)(r,N,o);return t.addSink(L),w(t),t}function w(i){_reactnative.AppState.addEventListener("change",n=>{(n==="background"||n==="inactive")&&typeof i.flush=="function"&&i.flush()})}exports.a = E;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-DKQZSNOO.js');require('../../chunk-72MMCJ2E.js');var _chunk7BLZMB7Rjs = require('../../chunk-7BLZMB7R.js');require('../../chunk-VVFXBMVW.js');require('../../chunk-YQEWHOQ7.js');require('../../chunk-VACQTZRT.js');require('../../chunk-6WKTVPDO.js');require('../../chunk-2D2RJCVX.js');require('../../chunk-INJNIKL6.js');require('../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunk7BLZMB7Rjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-DKQZSNOO.js');require('../../chunk-72MMCJ2E.js');var _chunkYLVMWK7Mjs = require('../../chunk-YLVMWK7M.js');require('../../chunk-WEZDVVDF.js');require('../../chunk-YQEWHOQ7.js');require('../../chunk-VACQTZRT.js');require('../../chunk-2QJBYAW4.js');require('../../chunk-2D2RJCVX.js');require('../../chunk-C36ERFGW.js');require('../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkYLVMWK7Mjs.a;
@@ -1 +1 @@
1
- import"../../chunk-TIQGKXQA.mjs";import"../../chunk-MB7H3PBJ.mjs";import{a}from"../../chunk-ZZVPF774.mjs";import"../../chunk-JJF4U5VR.mjs";import"../../chunk-PCJMDUSI.mjs";import"../../chunk-FX23A4BR.mjs";import"../../chunk-BB7D45HQ.mjs";import"../../chunk-FFQ6EQCL.mjs";import"../../chunk-QJDHFKBM.mjs";import"../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
1
+ import"../../chunk-TIQGKXQA.mjs";import"../../chunk-MB7H3PBJ.mjs";import{a}from"../../chunk-2DBEOELT.mjs";import"../../chunk-AXN3ZZKH.mjs";import"../../chunk-PCJMDUSI.mjs";import"../../chunk-FX23A4BR.mjs";import"../../chunk-ARP2DGYK.mjs";import"../../chunk-FFQ6EQCL.mjs";import"../../chunk-SIDDK3DS.mjs";import"../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7BLZMB7Rjs = require('../../../chunk-7BLZMB7R.js');require('../../../chunk-VVFXBMVW.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-6WKTVPDO.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-INJNIKL6.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunk7BLZMB7Rjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYLVMWK7Mjs = require('../../../chunk-YLVMWK7M.js');require('../../../chunk-WEZDVVDF.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-2QJBYAW4.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-C36ERFGW.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkYLVMWK7Mjs.a;
@@ -1 +1 @@
1
- import{a}from"../../../chunk-ZZVPF774.mjs";import"../../../chunk-JJF4U5VR.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-BB7D45HQ.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-QJDHFKBM.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
1
+ import{a}from"../../../chunk-2DBEOELT.mjs";import"../../../chunk-AXN3ZZKH.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-ARP2DGYK.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-SIDDK3DS.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVVFXBMVWjs = require('../../../chunk-VVFXBMVW.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-6WKTVPDO.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-INJNIKL6.js');require('../../../chunk-J42HASCI.js');exports.EmbeddedCheckoutV3WebView = _chunkVVFXBMVWjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWEZDVVDFjs = require('../../../chunk-WEZDVVDF.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-2QJBYAW4.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-C36ERFGW.js');require('../../../chunk-J42HASCI.js');exports.EmbeddedCheckoutV3WebView = _chunkWEZDVVDFjs.a;
@@ -1 +1 @@
1
- import{a}from"../../../chunk-JJF4U5VR.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-BB7D45HQ.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-QJDHFKBM.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as EmbeddedCheckoutV3WebView};
1
+ import{a}from"../../../chunk-AXN3ZZKH.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-ARP2DGYK.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-SIDDK3DS.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 _chunk7BLZMB7Rjs = require('../../../chunk-7BLZMB7R.js');require('../../../chunk-VVFXBMVW.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-6WKTVPDO.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-INJNIKL6.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunk7BLZMB7Rjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-72MMCJ2E.js');var _chunkYLVMWK7Mjs = require('../../../chunk-YLVMWK7M.js');require('../../../chunk-WEZDVVDF.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-2QJBYAW4.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-C36ERFGW.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkYLVMWK7Mjs.a;
@@ -1 +1 @@
1
- import"../../../chunk-MB7H3PBJ.mjs";import{a}from"../../../chunk-ZZVPF774.mjs";import"../../../chunk-JJF4U5VR.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-BB7D45HQ.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-QJDHFKBM.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
1
+ import"../../../chunk-MB7H3PBJ.mjs";import{a}from"../../../chunk-2DBEOELT.mjs";import"../../../chunk-AXN3ZZKH.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-ARP2DGYK.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-SIDDK3DS.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 _chunk7BLZMB7Rjs = require('../chunk-7BLZMB7R.js');require('../chunk-VVFXBMVW.js');require('../chunk-YQEWHOQ7.js');require('../chunk-VACQTZRT.js');require('../chunk-6WKTVPDO.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-INJNIKL6.js');require('../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunk7BLZMB7Rjs.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 _chunkYLVMWK7Mjs = require('../chunk-YLVMWK7M.js');require('../chunk-WEZDVVDF.js');require('../chunk-YQEWHOQ7.js');require('../chunk-VACQTZRT.js');require('../chunk-2QJBYAW4.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-C36ERFGW.js');require('../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkYLVMWK7Mjs.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-ZZVPF774.mjs";import"../chunk-JJF4U5VR.mjs";import"../chunk-PCJMDUSI.mjs";import"../chunk-FX23A4BR.mjs";import"../chunk-BB7D45HQ.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-QJDHFKBM.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-2DBEOELT.mjs";import"../chunk-AXN3ZZKH.mjs";import"../chunk-PCJMDUSI.mjs";import"../chunk-FX23A4BR.mjs";import"../chunk-ARP2DGYK.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-SIDDK3DS.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 _chunkVCPBP3CMjs = require('./chunk-VCPBP3CM.js');var _chunkM43HEN6Jjs = require('./chunk-M43HEN6J.js');require('./chunk-2PX34LDU.js');require('./chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('./chunk-UA34B5QB.js');require('./chunk-DKQZSNOO.js');require('./chunk-72MMCJ2E.js');var _chunk7BLZMB7Rjs = require('./chunk-7BLZMB7R.js');require('./chunk-VVFXBMVW.js');require('./chunk-YQEWHOQ7.js');require('./chunk-VACQTZRT.js');require('./chunk-6WKTVPDO.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-NIY4Q6GG.js');require('./chunk-INJNIKL6.js');require('./chunk-J42HASCI.js');var _walletssdk = require('@crossmint/wallets-sdk');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintCheckoutProvider = _chunk77GXCNDPjs.a; exports.CrossmintEmbeddedCheckout = _chunk7BLZMB7Rjs.a; exports.CrossmintProvider = _chunkM43HEN6Jjs.b; exports.CrossmintWalletProvider = _chunkVCPBP3CMjs.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 _chunkUVNCKAKHjs = require('./chunk-UVNCKAKH.js');var _chunkCOVGRSFVjs = require('./chunk-COVGRSFV.js');require('./chunk-2PX34LDU.js');require('./chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('./chunk-UA34B5QB.js');require('./chunk-DKQZSNOO.js');require('./chunk-72MMCJ2E.js');var _chunkYLVMWK7Mjs = require('./chunk-YLVMWK7M.js');require('./chunk-WEZDVVDF.js');require('./chunk-YQEWHOQ7.js');require('./chunk-VACQTZRT.js');require('./chunk-2QJBYAW4.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-YNGHCY7O.js');require('./chunk-C36ERFGW.js');require('./chunk-J42HASCI.js');var _walletssdk = require('@crossmint/wallets-sdk');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintCheckoutProvider = _chunk77GXCNDPjs.a; exports.CrossmintEmbeddedCheckout = _chunkYLVMWK7Mjs.a; exports.CrossmintProvider = _chunkCOVGRSFVjs.b; exports.CrossmintWalletProvider = _chunkUVNCKAKHjs.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-DFIO6CJ7.mjs";import{b as i}from"./chunk-62D3JI7K.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-ZZVPF774.mjs";import"./chunk-JJF4U5VR.mjs";import"./chunk-PCJMDUSI.mjs";import"./chunk-FX23A4BR.mjs";import"./chunk-BB7D45HQ.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-KRPDPF4O.mjs";import"./chunk-QJDHFKBM.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-CTGCSSIX.mjs";import{b as i}from"./chunk-HN535QSB.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-2DBEOELT.mjs";import"./chunk-AXN3ZZKH.mjs";import"./chunk-PCJMDUSI.mjs";import"./chunk-FX23A4BR.mjs";import"./chunk-ARP2DGYK.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-SV7C7TBT.mjs";import"./chunk-SIDDK3DS.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,17 +1,14 @@
1
- import { APIKeyEnvironmentPrefix, SdkLogger } from '@crossmint/common-sdk-base';
1
+ import { SdkLogger } from '@crossmint/common-sdk-base';
2
2
 
3
- type InitializeDatadogOptions = {
4
- environment: APIKeyEnvironmentPrefix;
5
- isExpoGo: boolean;
6
- };
7
- declare function initializeDatadog(options: InitializeDatadogOptions): Promise<void>;
8
3
  /**
9
4
  * Initialize the SDK logger for the React Native UI SDK
10
5
  * Should be called once when the SDK is initialized (typically in CrossmintProvider)
11
6
  * This handles React Native-specific Datadog sink initialization
7
+ *
8
+ *
12
9
  * @param apiKey - API key to determine environment (development/staging/production) and project ID
13
10
  * @returns The initialized logger instance
14
11
  */
15
12
  declare function initReactNativeLogger(apiKey: string): SdkLogger;
16
13
 
17
- export { initReactNativeLogger, initializeDatadog };
14
+ export { initReactNativeLogger };
@@ -1,17 +1,14 @@
1
- import { APIKeyEnvironmentPrefix, SdkLogger } from '@crossmint/common-sdk-base';
1
+ import { SdkLogger } from '@crossmint/common-sdk-base';
2
2
 
3
- type InitializeDatadogOptions = {
4
- environment: APIKeyEnvironmentPrefix;
5
- isExpoGo: boolean;
6
- };
7
- declare function initializeDatadog(options: InitializeDatadogOptions): Promise<void>;
8
3
  /**
9
4
  * Initialize the SDK logger for the React Native UI SDK
10
5
  * Should be called once when the SDK is initialized (typically in CrossmintProvider)
11
6
  * This handles React Native-specific Datadog sink initialization
7
+ *
8
+ *
12
9
  * @param apiKey - API key to determine environment (development/staging/production) and project ID
13
10
  * @returns The initialized logger instance
14
11
  */
15
12
  declare function initReactNativeLogger(apiKey: string): SdkLogger;
16
13
 
17
- export { initReactNativeLogger, initializeDatadog };
14
+ export { initReactNativeLogger };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNIY4Q6GGjs = require('../chunk-NIY4Q6GG.js');require('../chunk-INJNIKL6.js');require('../chunk-J42HASCI.js');exports.initReactNativeLogger = _chunkNIY4Q6GGjs.b; exports.initializeDatadog = _chunkNIY4Q6GGjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYNGHCY7Ojs = require('../chunk-YNGHCY7O.js');require('../chunk-C36ERFGW.js');require('../chunk-J42HASCI.js');exports.initReactNativeLogger = _chunkYNGHCY7Ojs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-KRPDPF4O.mjs";import"../chunk-QJDHFKBM.mjs";import"../chunk-PSSAAY7D.mjs";export{b as initReactNativeLogger,a as initializeDatadog};
1
+ import{a}from"../chunk-SV7C7TBT.mjs";import"../chunk-SIDDK3DS.mjs";import"../chunk-PSSAAY7D.mjs";export{a as initReactNativeLogger};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM43HEN6Jjs = require('../chunk-M43HEN6J.js');require('../chunk-NIY4Q6GG.js');require('../chunk-INJNIKL6.js');require('../chunk-J42HASCI.js');exports.CrossmintProvider = _chunkM43HEN6Jjs.b; exports.LoggerContext = _chunkM43HEN6Jjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCOVGRSFVjs = require('../chunk-COVGRSFV.js');require('../chunk-YNGHCY7O.js');require('../chunk-C36ERFGW.js');require('../chunk-J42HASCI.js');exports.CrossmintProvider = _chunkCOVGRSFVjs.b; exports.LoggerContext = _chunkCOVGRSFVjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-62D3JI7K.mjs";import"../chunk-KRPDPF4O.mjs";import"../chunk-QJDHFKBM.mjs";import"../chunk-PSSAAY7D.mjs";export{b as CrossmintProvider,a as LoggerContext};
1
+ import{a,b}from"../chunk-HN535QSB.mjs";import"../chunk-SV7C7TBT.mjs";import"../chunk-SIDDK3DS.mjs";import"../chunk-PSSAAY7D.mjs";export{b as CrossmintProvider,a as LoggerContext};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVCPBP3CMjs = require('../chunk-VCPBP3CM.js');require('../chunk-M43HEN6J.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-NIY4Q6GG.js');require('../chunk-INJNIKL6.js');require('../chunk-J42HASCI.js');exports.CrossmintWalletProvider = _chunkVCPBP3CMjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUVNCKAKHjs = require('../chunk-UVNCKAKH.js');require('../chunk-COVGRSFV.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-YNGHCY7O.js');require('../chunk-C36ERFGW.js');require('../chunk-J42HASCI.js');exports.CrossmintWalletProvider = _chunkUVNCKAKHjs.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-DFIO6CJ7.mjs";import"../chunk-62D3JI7K.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-KRPDPF4O.mjs";import"../chunk-QJDHFKBM.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintWalletProvider};
1
+ import{a}from"../chunk-CTGCSSIX.mjs";import"../chunk-HN535QSB.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-SV7C7TBT.mjs";import"../chunk-SIDDK3DS.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 _chunkVCPBP3CMjs = require('../chunk-VCPBP3CM.js');var _chunkM43HEN6Jjs = require('../chunk-M43HEN6J.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-NIY4Q6GG.js');require('../chunk-INJNIKL6.js');require('../chunk-J42HASCI.js');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintProvider = _chunkM43HEN6Jjs.b; exports.CrossmintWalletProvider = _chunkVCPBP3CMjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-C62HRWJA.js');var _chunkUVNCKAKHjs = require('../chunk-UVNCKAKH.js');var _chunkCOVGRSFVjs = require('../chunk-COVGRSFV.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-YNGHCY7O.js');require('../chunk-C36ERFGW.js');require('../chunk-J42HASCI.js');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintProvider = _chunkCOVGRSFVjs.b; exports.CrossmintWalletProvider = _chunkUVNCKAKHjs.a;
@@ -1 +1 @@
1
- import"../chunk-I3QSTPTV.mjs";import{a as c}from"../chunk-DFIO6CJ7.mjs";import{b}from"../chunk-62D3JI7K.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-KRPDPF4O.mjs";import"../chunk-QJDHFKBM.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-CTGCSSIX.mjs";import{b}from"../chunk-HN535QSB.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-SV7C7TBT.mjs";import"../chunk-SIDDK3DS.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 _chunk6WKTVPDOjs = require('../chunk-6WKTVPDO.js');require('../chunk-INJNIKL6.js');require('../chunk-J42HASCI.js');exports.createCrossmintApiClient = _chunk6WKTVPDOjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2QJBYAW4js = require('../chunk-2QJBYAW4.js');require('../chunk-C36ERFGW.js');require('../chunk-J42HASCI.js');exports.createCrossmintApiClient = _chunk2QJBYAW4js.a;
@@ -1 +1 @@
1
- import{a}from"../chunk-BB7D45HQ.mjs";import"../chunk-QJDHFKBM.mjs";import"../chunk-PSSAAY7D.mjs";export{a as createCrossmintApiClient};
1
+ import{a}from"../chunk-ARP2DGYK.mjs";import"../chunk-SIDDK3DS.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.13",
3
+ "version": "0.13.14",
4
4
  "repository": "https://github.com/Crossmint/crossmint-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Paella Labs Inc",
@@ -14,21 +14,20 @@
14
14
  "LICENSE"
15
15
  ],
16
16
  "dependencies": {
17
- "@datadog/mobile-react-native": "~2.13.0",
18
17
  "@solana/web3.js": "1.98.1",
19
18
  "bs58": "^5.0.0",
20
19
  "lucide-react-native": "0.548.0",
21
20
  "mitt": "3.0.1",
22
21
  "react-native-svg": "15.14.0",
23
22
  "zod": "3.22.4",
24
- "@crossmint/client-sdk-auth": "1.2.43",
25
- "@crossmint/client-sdk-react-base": "0.7.13",
26
- "@crossmint/client-sdk-base": "1.7.10",
23
+ "@crossmint/client-sdk-auth": "1.2.44",
24
+ "@crossmint/client-sdk-base": "1.7.11",
25
+ "@crossmint/client-sdk-react-base": "0.7.14",
27
26
  "@crossmint/client-sdk-rn-window": "0.3.14",
28
27
  "@crossmint/client-signers": "0.1.2",
29
- "@crossmint/common-sdk-auth": "1.0.65",
30
- "@crossmint/common-sdk-base": "0.9.13",
31
- "@crossmint/wallets-sdk": "0.18.11"
28
+ "@crossmint/common-sdk-auth": "1.0.66",
29
+ "@crossmint/common-sdk-base": "0.9.14",
30
+ "@crossmint/wallets-sdk": "0.18.12"
32
31
  },
33
32
  "devDependencies": {
34
33
  "@expo/config-plugins": "^9.0.17",
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-QJDHFKBM.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 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkINJNIKL6js = require('./chunk-INJNIKL6.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:_chunkINJNIKL6js.a.name,packageVersion:_chunkINJNIKL6js.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 +0,0 @@
1
- var t={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.13",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.0","@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};