@crossmint/client-sdk-react-native-ui 0.13.13 → 0.13.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZZVPF774.mjs → chunk-36KGO2GQ.mjs} +1 -1
- package/dist/{chunk-M43HEN6J.js → chunk-3DGNPSJP.js} +1 -1
- package/dist/chunk-7FQE67ST.js +1 -0
- package/dist/chunk-7MVSNPOX.mjs +1 -0
- package/dist/{chunk-BB7D45HQ.mjs → chunk-BX262TFX.mjs} +1 -1
- package/dist/{chunk-DFIO6CJ7.mjs → chunk-GURVSBKA.mjs} +1 -1
- package/dist/{chunk-7BLZMB7R.js → chunk-HISVOHMJ.js} +1 -1
- package/dist/{chunk-VVFXBMVW.js → chunk-HJQXAZKJ.js} +1 -1
- package/dist/{chunk-VCPBP3CM.js → chunk-IZYRPLOF.js} +1 -1
- package/dist/{chunk-62D3JI7K.mjs → chunk-J46VKPOU.mjs} +1 -1
- package/dist/chunk-KB7HQVUY.mjs +1 -0
- package/dist/{chunk-JJF4U5VR.mjs → chunk-KM6ECT5L.mjs} +1 -1
- package/dist/chunk-V2GJ3Y3K.js +1 -0
- package/dist/{chunk-6WKTVPDO.js → chunk-W5IDI3HT.js} +1 -1
- package/dist/components/embed/index.js +1 -1
- package/dist/components/embed/index.mjs +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.mjs +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.js +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3WebView.mjs +1 -1
- package/dist/components/embed/v3/index.js +1 -1
- package/dist/components/embed/v3/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/logger/init.d.mts +4 -7
- package/dist/logger/init.d.ts +4 -7
- package/dist/logger/init.js +1 -1
- package/dist/logger/init.mjs +1 -1
- package/dist/providers/CrossmintProvider.js +1 -1
- package/dist/providers/CrossmintProvider.mjs +1 -1
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/CrossmintWalletProvider.mjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.mjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/dist/utils/createCrossmintApiClient.mjs +1 -1
- package/package.json +9 -8
- package/dist/chunk-INJNIKL6.js +0 -1
- package/dist/chunk-KRPDPF4O.mjs +0 -1
- package/dist/chunk-NIY4Q6GG.js +0 -1
- package/dist/chunk-QJDHFKBM.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-KM6ECT5L.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}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkV2GJ3Y3Kjs = require('./chunk-V2GJ3Y3K.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, ()=>_chunkV2GJ3Y3Kjs.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var c={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.15",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","lodash.clonedeep":"4.5.0","lodash.isequal":"4.5.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 = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-KB7HQVUY.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
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-KB7HQVUY.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{a as W}from"./chunk-
|
|
1
|
+
import{a as W}from"./chunk-J46VKPOU.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
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHJQXAZKJjs = require('./chunk-HJQXAZKJ.js');var _chunkJ42HASCIjs = require('./chunk-J42HASCI.js');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkHJQXAZKJjs.a,_chunkJ42HASCIjs.a.call(void 0, {},d))}exports.a = s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQEWHOQ7js = require('./chunk-YQEWHOQ7.js');var _chunkVACQTZRTjs = require('./chunk-VACQTZRT.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQEWHOQ7js = require('./chunk-YQEWHOQ7.js');var _chunkVACQTZRTjs = require('./chunk-VACQTZRT.js');var _chunkW5IDI3HTjs = require('./chunk-W5IDI3HT.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=_chunkW5IDI3HTjs.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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3DGNPSJPjs = require('./chunk-3DGNPSJP.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, _chunk3DGNPSJPjs.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
|
-
import{
|
|
1
|
+
import{a as s}from"./chunk-7MVSNPOX.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 c={name:"@crossmint/client-sdk-react-native-ui",version:"0.13.15",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","lodash.clonedeep":"4.5.0","lodash.isequal":"4.5.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{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-
|
|
1
|
+
import{c as h}from"./chunk-PCJMDUSI.mjs";import{a as y}from"./chunk-FX23A4BR.mjs";import{a as f}from"./chunk-BX262TFX.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
|
+
"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 _chunk7FQE67STjs = require('./chunk-7FQE67ST.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:_chunk7FQE67STjs.a.name,packageVersion:_chunk7FQE67STjs.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});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7FQE67STjs = require('./chunk-7FQE67ST.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:_chunk7FQE67STjs.a.version},apiKeyExpectations:t}})}exports.a = a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-DKQZSNOO.js');require('../../chunk-72MMCJ2E.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-DKQZSNOO.js');require('../../chunk-72MMCJ2E.js');var _chunkHISVOHMJjs = require('../../chunk-HISVOHMJ.js');require('../../chunk-HJQXAZKJ.js');require('../../chunk-YQEWHOQ7.js');require('../../chunk-VACQTZRT.js');require('../../chunk-W5IDI3HT.js');require('../../chunk-2D2RJCVX.js');require('../../chunk-7FQE67ST.js');require('../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkHISVOHMJjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TIQGKXQA.mjs";import"../../chunk-MB7H3PBJ.mjs";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-TIQGKXQA.mjs";import"../../chunk-MB7H3PBJ.mjs";import{a}from"../../chunk-36KGO2GQ.mjs";import"../../chunk-KM6ECT5L.mjs";import"../../chunk-PCJMDUSI.mjs";import"../../chunk-FX23A4BR.mjs";import"../../chunk-BX262TFX.mjs";import"../../chunk-FFQ6EQCL.mjs";import"../../chunk-KB7HQVUY.mjs";import"../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHISVOHMJjs = require('../../../chunk-HISVOHMJ.js');require('../../../chunk-HJQXAZKJ.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-W5IDI3HT.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-7FQE67ST.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkHISVOHMJjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-36KGO2GQ.mjs";import"../../../chunk-KM6ECT5L.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-BX262TFX.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-KB7HQVUY.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHJQXAZKJjs = require('../../../chunk-HJQXAZKJ.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-W5IDI3HT.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-7FQE67ST.js');require('../../../chunk-J42HASCI.js');exports.EmbeddedCheckoutV3WebView = _chunkHJQXAZKJjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-KM6ECT5L.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-BX262TFX.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-KB7HQVUY.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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../chunk-72MMCJ2E.js');var _chunkHISVOHMJjs = require('../../../chunk-HISVOHMJ.js');require('../../../chunk-HJQXAZKJ.js');require('../../../chunk-YQEWHOQ7.js');require('../../../chunk-VACQTZRT.js');require('../../../chunk-W5IDI3HT.js');require('../../../chunk-2D2RJCVX.js');require('../../../chunk-7FQE67ST.js');require('../../../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkHISVOHMJjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../chunk-MB7H3PBJ.mjs";import{a}from"../../../chunk-
|
|
1
|
+
import"../../../chunk-MB7H3PBJ.mjs";import{a}from"../../../chunk-36KGO2GQ.mjs";import"../../../chunk-KM6ECT5L.mjs";import"../../../chunk-PCJMDUSI.mjs";import"../../../chunk-FX23A4BR.mjs";import"../../../chunk-BX262TFX.mjs";import"../../../chunk-FFQ6EQCL.mjs";import"../../../chunk-KB7HQVUY.mjs";import"../../../chunk-PSSAAY7D.mjs";export{a as CrossmintEmbeddedCheckout};
|
package/dist/components/index.js
CHANGED
|
@@ -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
|
|
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 _chunkHISVOHMJjs = require('../chunk-HISVOHMJ.js');require('../chunk-HJQXAZKJ.js');require('../chunk-YQEWHOQ7.js');require('../chunk-VACQTZRT.js');require('../chunk-W5IDI3HT.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-7FQE67ST.js');require('../chunk-J42HASCI.js');exports.CrossmintEmbeddedCheckout = _chunkHISVOHMJjs.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-
|
|
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-36KGO2GQ.mjs";import"../chunk-KM6ECT5L.mjs";import"../chunk-PCJMDUSI.mjs";import"../chunk-FX23A4BR.mjs";import"../chunk-BX262TFX.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-KB7HQVUY.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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-C62HRWJA.js');var _chunkIZYRPLOFjs = require('./chunk-IZYRPLOF.js');var _chunk3DGNPSJPjs = require('./chunk-3DGNPSJP.js');require('./chunk-2PX34LDU.js');require('./chunk-AJMHVVST.js');var _chunkUA34B5QBjs = require('./chunk-UA34B5QB.js');require('./chunk-DKQZSNOO.js');require('./chunk-72MMCJ2E.js');var _chunkHISVOHMJjs = require('./chunk-HISVOHMJ.js');require('./chunk-HJQXAZKJ.js');require('./chunk-YQEWHOQ7.js');require('./chunk-VACQTZRT.js');require('./chunk-W5IDI3HT.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-V2GJ3Y3K.js');require('./chunk-7FQE67ST.js');require('./chunk-J42HASCI.js');var _walletssdk = require('@crossmint/wallets-sdk');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintCheckoutProvider = _chunk77GXCNDPjs.a; exports.CrossmintEmbeddedCheckout = _chunkHISVOHMJjs.a; exports.CrossmintProvider = _chunk3DGNPSJPjs.b; exports.CrossmintWalletProvider = _chunkIZYRPLOFjs.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-
|
|
1
|
+
import"./chunk-I3QSTPTV.mjs";import{a as y}from"./chunk-GURVSBKA.mjs";import{b as i}from"./chunk-J46VKPOU.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-36KGO2GQ.mjs";import"./chunk-KM6ECT5L.mjs";import"./chunk-PCJMDUSI.mjs";import"./chunk-FX23A4BR.mjs";import"./chunk-BX262TFX.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-7MVSNPOX.mjs";import"./chunk-KB7HQVUY.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};
|
package/dist/logger/init.d.mts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
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
|
|
14
|
+
export { initReactNativeLogger };
|
package/dist/logger/init.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
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
|
|
14
|
+
export { initReactNativeLogger };
|
package/dist/logger/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV2GJ3Y3Kjs = require('../chunk-V2GJ3Y3K.js');require('../chunk-7FQE67ST.js');require('../chunk-J42HASCI.js');exports.initReactNativeLogger = _chunkV2GJ3Y3Kjs.a;
|
package/dist/logger/init.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../chunk-7MVSNPOX.mjs";import"../chunk-KB7HQVUY.mjs";import"../chunk-PSSAAY7D.mjs";export{a as initReactNativeLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3DGNPSJPjs = require('../chunk-3DGNPSJP.js');require('../chunk-V2GJ3Y3K.js');require('../chunk-7FQE67ST.js');require('../chunk-J42HASCI.js');exports.CrossmintProvider = _chunk3DGNPSJPjs.b; exports.LoggerContext = _chunk3DGNPSJPjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-J46VKPOU.mjs";import"../chunk-7MVSNPOX.mjs";import"../chunk-KB7HQVUY.mjs";import"../chunk-PSSAAY7D.mjs";export{b as CrossmintProvider,a as LoggerContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIZYRPLOFjs = require('../chunk-IZYRPLOF.js');require('../chunk-3DGNPSJP.js');require('../chunk-YJORUMPB.js');require('../chunk-MVVSGLQL.js');require('../chunk-F7VXWATP.js');require('../chunk-DC5HCBPK.js');require('../chunk-EI5LOD4Y.js');require('../chunk-V2GJ3Y3K.js');require('../chunk-7FQE67ST.js');require('../chunk-J42HASCI.js');exports.CrossmintWalletProvider = _chunkIZYRPLOFjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GURVSBKA.mjs";import"../chunk-J46VKPOU.mjs";import"../chunk-XNDIT72O.mjs";import"../chunk-3QSVHCEH.mjs";import"../chunk-D5QADN6Z.mjs";import"../chunk-YLJDAK2S.mjs";import"../chunk-7USVT6EZ.mjs";import"../chunk-7MVSNPOX.mjs";import"../chunk-KB7HQVUY.mjs";import"../chunk-PSSAAY7D.mjs";export{a as CrossmintWalletProvider};
|
package/dist/providers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-C62HRWJA.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-C62HRWJA.js');var _chunkIZYRPLOFjs = require('../chunk-IZYRPLOF.js');var _chunk3DGNPSJPjs = require('../chunk-3DGNPSJP.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-V2GJ3Y3K.js');require('../chunk-7FQE67ST.js');require('../chunk-J42HASCI.js');exports.CrossmintAuthProvider = _chunkK75IJHIBjs.b; exports.CrossmintProvider = _chunk3DGNPSJPjs.b; exports.CrossmintWalletProvider = _chunkIZYRPLOFjs.a;
|
package/dist/providers/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-I3QSTPTV.mjs";import{a as c}from"../chunk-
|
|
1
|
+
import"../chunk-I3QSTPTV.mjs";import{a as c}from"../chunk-GURVSBKA.mjs";import{b}from"../chunk-J46VKPOU.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-7MVSNPOX.mjs";import"../chunk-KB7HQVUY.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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkW5IDI3HTjs = require('../chunk-W5IDI3HT.js');require('../chunk-7FQE67ST.js');require('../chunk-J42HASCI.js');exports.createCrossmintApiClient = _chunkW5IDI3HTjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-BX262TFX.mjs";import"../chunk-KB7HQVUY.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.
|
|
3
|
+
"version": "0.13.15",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -14,21 +14,22 @@
|
|
|
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",
|
|
19
|
+
"lodash.clonedeep": "4.5.0",
|
|
20
|
+
"lodash.isequal": "4.5.0",
|
|
20
21
|
"lucide-react-native": "0.548.0",
|
|
21
22
|
"mitt": "3.0.1",
|
|
22
23
|
"react-native-svg": "15.14.0",
|
|
23
24
|
"zod": "3.22.4",
|
|
24
|
-
"@crossmint/client-sdk-
|
|
25
|
-
"@crossmint/client-sdk-react-base": "0.7.13",
|
|
26
|
-
"@crossmint/client-sdk-base": "1.7.10",
|
|
25
|
+
"@crossmint/client-sdk-react-base": "0.7.14",
|
|
27
26
|
"@crossmint/client-sdk-rn-window": "0.3.14",
|
|
27
|
+
"@crossmint/client-sdk-auth": "1.2.44",
|
|
28
28
|
"@crossmint/client-signers": "0.1.2",
|
|
29
|
-
"@crossmint/common-sdk-auth": "1.0.
|
|
30
|
-
"@crossmint/common-sdk-base": "0.9.
|
|
31
|
-
"@crossmint/wallets-sdk": "0.18.
|
|
29
|
+
"@crossmint/common-sdk-auth": "1.0.66",
|
|
30
|
+
"@crossmint/common-sdk-base": "0.9.14",
|
|
31
|
+
"@crossmint/wallets-sdk": "0.18.12",
|
|
32
|
+
"@crossmint/client-sdk-base": "1.7.11"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@expo/config-plugins": "^9.0.17",
|
package/dist/chunk-INJNIKL6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|
package/dist/chunk-KRPDPF4O.mjs
DELETED
|
@@ -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};
|
package/dist/chunk-NIY4Q6GG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _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;
|
package/dist/chunk-QJDHFKBM.mjs
DELETED
|
@@ -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};
|